Skip to content

Commit 84cc81b

Browse files
committed
chore: update sdk to 0.24.0
1 parent 16555f1 commit 84cc81b

18 files changed

Lines changed: 1733 additions & 1153 deletions

File tree

content/guides/sheets/features/outline.ja-JP.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Univer Sheets では、アウトライン機能を使用すると以下が可能
4040
- 大規模データセットの整理:関連する列や行をまとめて、ナビゲーションを容易にします。
4141
- 折りたたみ可能なレポートの作成:ユーザーが必要に応じてレポートのセクションを展開または折りたためるようにします。
4242

43+
<PlaygroundFrame lang="ja-JP" slug="sheets/outline" clickToShow />
44+
4345
## プリセットモード
4446

4547
アウトライン機能は `@univerjs/preset-sheets-advanced` プリセットに含まれています。
@@ -114,7 +116,19 @@ univer.registerPlugin(UniverSheetsOutlineUIPlugin)
114116

115117
Univer の商用ライセンスをお持ちの場合は、[クライアントでのライセンス使用](/guides/pro/license#in-plugin-mode)を参照して設定してください。
116118

117-
## アウトライン機能の使用
119+
## Facade API
120+
121+
完全な Facade API の型定義は [FacadeAPI](/reference/facade/univer) を参照してください。
122+
123+
### インポート
124+
125+
<Callout type="info" title="プラグインモード注意">
126+
Facade パッケージの手動 import が必要なのはプラグインモードのみです。プリセットモードには対応する Facade パッケージが内蔵されているため、追加の import は不要です。
127+
</Callout>
128+
129+
```typescript
130+
import '@univerjs-pro/sheets-outline/facade'
131+
```
118132

119133
### 行アウトラインの作成
120134

@@ -225,8 +239,6 @@ const allOutlines = fWorksheet.getDimensionOutlines()
225239
- **交差グループ**:新しいグループは既存のグループと交差できません。
226240
- **最大深度**:アウトライングループには最大ネスト深度があります。
227241

228-
検証に失敗した場合、コマンドは実行されず、エラーは `SheetsOutlineErrorService` を通じて発行されます
242+
グループ解除の範囲は、グループ化された範囲を完全に含んでいる必要があります。そうでない場合、検証に失敗します
229243

230-
## Facade API リファレンス
231-
232-
アウトライン関連の完全な Facade API リストについては、[Worksheet Facade API](/reference/facade/worksheet) ドキュメントを参照してください。
244+
検証に失敗した場合、コマンドは実行されず、エラーは `SheetsOutlineErrorService` を通じて発行されます。

content/guides/sheets/features/outline.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Outline groups are commonly used in the following scenarios:
4040
- Organizing large datasets: Group related columns or rows together for easier navigation.
4141
- Creating collapsible reports: Allow users to expand or collapse sections of a report as needed.
4242

43+
<PlaygroundFrame lang="en-US" slug="sheets/outline" clickToShow />
44+
4345
## Preset Mode
4446

4547
The outline feature is included in the `@univerjs/preset-sheets-advanced` preset.
@@ -114,7 +116,19 @@ univer.registerPlugin(UniverSheetsOutlineUIPlugin)
114116

115117
If you have a commercial license for Univer, please refer to [Using License in Client](/guides/pro/license#in-plugin-mode) for configuration.
116118

117-
## Using the Outline Feature
119+
## Facade API
120+
121+
Complete Facade API type definitions can be found in the [FacadeAPI](/reference/facade/univer).
122+
123+
### Importing
124+
125+
<Callout type="info" title="Plugin mode note">
126+
Only plugin mode requires manually importing the Facade package. Preset mode already includes the corresponding Facade package, so no extra import is needed.
127+
</Callout>
128+
129+
```typescript
130+
import '@univerjs-pro/sheets-outline/facade'
131+
```
118132

119133
### Creating Row Outlines
120134

@@ -225,8 +239,6 @@ When creating outline groups, the following validations are performed:
225239
- **Crossing groups**: New groups cannot cross existing groups.
226240
- **Maximum depth**: There is a maximum nesting depth for outline groups.
227241

228-
If a validation fails, the command will not execute and an error will be emitted through the `SheetsOutlineErrorService`.
242+
The range for ungrouping must fully contain the outline group range, otherwise the validation will fail.
229243

230-
## Facade API Reference
231-
232-
For a complete list of outline-related Facade APIs, please refer to the [Worksheet Facade API](/reference/facade/worksheet) documentation.
244+
If a validation fails, the command will not execute and an error will be emitted through the `SheetsOutlineErrorService`.

content/guides/sheets/features/outline.zh-CN.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ icon: '#pro/ListChevronsUpDown'
4040
- 组织大型数据集:将相关的列或行组合在一起,便于导航。
4141
- 创建可折叠报表:允许用户根据需要展开或折叠报表的各个部分。
4242

43+
<PlaygroundFrame lang="zh-CN" slug="sheets/outline" clickToShow />
44+
4345
## 预设模式
4446

4547
分组功能包含在 `@univerjs/preset-sheets-advanced` 预设中。
@@ -114,7 +116,19 @@ univer.registerPlugin(UniverSheetsOutlineUIPlugin)
114116

115117
如果您拥有 Univer 的商业许可证,请参阅[在客户端中使用许可证](/guides/pro/license#in-plugin-mode)进行配置。
116118

117-
## 使用分组功能
119+
## Facade API
120+
121+
完整 Facade API 类型定义,请查看 [FacadeAPI](/reference/facade/univer)
122+
123+
### 引入
124+
125+
<Callout type="info" title="插件模式提示">
126+
仅插件模式需要手动引入 Facade 包。预设模式已内置对应的 Facade 包,无需额外导入。
127+
</Callout>
128+
129+
```typescript
130+
import '@univerjs-pro/sheets-outline/facade'
131+
```
118132

119133
### 创建行分组
120134

@@ -225,8 +239,6 @@ const allOutlines = fWorksheet.getDimensionOutlines()
225239
- **交叉组**:新组不能与现有组交叉。
226240
- **最大深度**:分组有最大嵌套深度限制。
227241

228-
如果验证失败,命令将不会执行,错误将通过 `SheetsOutlineErrorService` 发出
242+
取消分组的范围需完全包含分组范围,否则会验证失败
229243

230-
## Facade API 参考
231-
232-
有关分组相关的完整 Facade API 列表,请参阅 [Worksheet Facade API](/reference/facade/worksheet) 文档。
244+
如果验证失败,命令将不会执行,错误将通过 `SheetsOutlineErrorService` 发出。

content/guides/sheets/features/outline.zh-TW.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ icon: '#pro/ListChevronsUpDown'
4040
- 組織大型資料集:將相關的欄或列組合在一起,便於導覽。
4141
- 建立可摺疊報表:允許使用者根據需要展開或摺疊報表的各個部分。
4242

43+
<PlaygroundFrame lang="zh-TW" slug="sheets/outline" clickToShow />
44+
4345
## 預設模式
4446

4547
群組功能包含在 `@univerjs/preset-sheets-advanced` 預設中。
@@ -114,7 +116,19 @@ univer.registerPlugin(UniverSheetsOutlineUIPlugin)
114116

115117
如果您擁有 Univer 的商業授權,請參閱[在用戶端中使用授權](/guides/pro/license#in-plugin-mode)進行配置。
116118

117-
## 使用群組功能
119+
## Facade API
120+
121+
完整 Facade API 類型定義,請查看 [FacadeAPI](/reference/facade/univer)
122+
123+
### 導入
124+
125+
<Callout type="info" title="外掛模式提示">
126+
僅外掛模式需要手動引入 Facade 套件。預設模式已內建對應的 Facade 套件,無需額外引入。
127+
</Callout>
128+
129+
```typescript
130+
import '@univerjs-pro/sheets-outline/facade'
131+
```
118132

119133
### 建立列群組
120134

@@ -225,8 +239,6 @@ const allOutlines = fWorksheet.getDimensionOutlines()
225239
- **交叉群組**:新群組不能與現有群組交叉。
226240
- **最大深度**:群組有最大巢狀深度限制。
227241

228-
如果驗證失敗,命令將不會執行,錯誤將透過 `SheetsOutlineErrorService` 發出
242+
取消群組的範圍需完全包含群組範圍,否則會驗證失敗
229243

230-
## Facade API 參考
231-
232-
有關群組相關的完整 Facade API 列表,請參閱 [Worksheet Facade API](/reference/facade/worksheet) 文件。
244+
如果驗證失敗,命令將不會執行,錯誤將透過 `SheetsOutlineErrorService` 發出。

examples/univer-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@angular/compiler": "^21.2.12",
2424
"@angular/core": "^21.2.12",
2525
"@angular/platform-browser": "^21.2.12",
26-
"@univerjs/preset-sheets-core": "^0.23.0",
27-
"@univerjs/presets": "^0.23.0",
26+
"@univerjs/preset-sheets-core": "^0.24.0",
27+
"@univerjs/presets": "^0.24.0",
2828
"rxjs": "^7.8.2",
2929
"tslib": "^2.8.1",
3030
"zone.js": "^0.16.2"

examples/univer-astro/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@univerjs/preset-sheets-core": "^0.23.0",
14-
"@univerjs/presets": "^0.23.0",
13+
"@univerjs/preset-sheets-core": "^0.24.0",
14+
"@univerjs/presets": "^0.24.0",
1515
"astro": "^6.3.1"
1616
}
1717
}

examples/univer-nextjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"@univerjs/preset-sheets-core": "^0.23.0",
12-
"@univerjs/presets": "^0.23.0",
11+
"@univerjs/preset-sheets-core": "^0.24.0",
12+
"@univerjs/presets": "^0.24.0",
1313
"next": "16.1.4",
1414
"react": "19.2.6",
1515
"react-dom": "19.2.6"

examples/univer-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@univerjs/preset-sheets-core": "^0.23.0",
13-
"@univerjs/presets": "^0.23.0",
12+
"@univerjs/preset-sheets-core": "^0.24.0",
13+
"@univerjs/presets": "^0.24.0",
1414
"react": "^19.2.6",
1515
"react-dom": "^19.2.6"
1616
},

examples/univer-vue2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "vue-cli-service build"
88
},
99
"dependencies": {
10-
"@univerjs/preset-sheets-core": "^0.23.0",
11-
"@univerjs/presets": "^0.23.0",
10+
"@univerjs/preset-sheets-core": "^0.24.0",
11+
"@univerjs/presets": "^0.24.0",
1212
"core-js": "^3.49.0",
1313
"vue": "2.7.16"
1414
},

examples/univer-vue3/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@univerjs/preset-sheets-core": "^0.23.0",
13-
"@univerjs/presets": "^0.23.0",
12+
"@univerjs/preset-sheets-core": "^0.24.0",
13+
"@univerjs/presets": "^0.24.0",
1414
"vue": "^3.5.34"
1515
},
1616
"devDependencies": {

0 commit comments

Comments
 (0)