@univerjs-pro/sheets-pivot 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -0
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -0
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -0
  11. package/lib/cjs/locale/it-IT.js +1 -0
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -0
  15. package/lib/cjs/locale/pt-BR.js +1 -0
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -0
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -0
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -0
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -0
  32. package/lib/es/locale/it-IT.js +1 -0
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -0
  36. package/lib/es/locale/pt-BR.js +1 -0
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -0
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -0
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -0
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -0
  53. package/lib/locale/it-IT.js +1 -0
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -0
  57. package/lib/locale/pt-BR.js +1 -0
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -0
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/commands/command/remove-pivot-table.command.d.ts +17 -0
  65. package/lib/types/facade/f-enum.d.ts +29 -1
  66. package/lib/types/facade/f-generic-pivot-table.d.ts +22 -22
  67. package/lib/types/facade/f-pivot-table.d.ts +338 -42
  68. package/lib/types/facade/f-workbook.d.ts +12 -17
  69. package/lib/types/facade/f-worksheet.d.ts +3 -2
  70. package/lib/types/index.d.ts +3 -1
  71. package/lib/types/locale/ar-SA.d.ts +3 -0
  72. package/lib/types/locale/ca-ES.d.ts +1 -1
  73. package/lib/types/locale/de-DE.d.ts +3 -0
  74. package/lib/types/locale/en-US.d.ts +1 -0
  75. package/lib/types/locale/es-ES.d.ts +1 -1
  76. package/lib/types/locale/fr-FR.d.ts +1 -1
  77. package/lib/types/locale/id-ID.d.ts +3 -0
  78. package/lib/types/locale/it-IT.d.ts +3 -0
  79. package/lib/types/locale/pl-PL.d.ts +3 -0
  80. package/lib/types/locale/pt-BR.d.ts +3 -0
  81. package/lib/types/locale/zh-HK.d.ts +3 -0
  82. package/lib/umd/facade.js +1 -1
  83. package/lib/umd/index.js +1 -1
  84. package/lib/umd/locale/ar-SA.js +1 -0
  85. package/lib/umd/locale/ca-ES.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -0
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -0
  92. package/lib/umd/locale/it-IT.js +1 -0
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/pl-PL.js +1 -0
  96. package/lib/umd/locale/pt-BR.js +1 -0
  97. package/lib/umd/locale/ru-RU.js +1 -1
  98. package/lib/umd/locale/sk-SK.js +1 -1
  99. package/lib/umd/locale/vi-VN.js +1 -1
  100. package/lib/umd/locale/zh-CN.js +1 -1
  101. package/lib/umd/locale/zh-HK.js +1 -0
  102. package/lib/umd/locale/zh-TW.js +1 -1
  103. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
- import type { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
2
- import type { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
1
+ import type { IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
2
+ import type { IPivotTableConfig, IPivotTableMatrixInfo, IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
3
3
  import type { Injector, IRange, Nullable } from '@univerjs/core';
4
4
  import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
5
5
  interface IPivotTableDataFieldInfo {
@@ -8,6 +8,20 @@ interface IPivotTableDataFieldInfo {
8
8
  fieldDataType: PivotDataFieldDataTypeEnum;
9
9
  displayName?: string;
10
10
  }
11
+ export interface IPivotTableFieldSettingOptions {
12
+ /**
13
+ * The display name of the pivot table field. Leave it undefined to keep the current display name.
14
+ */
15
+ displayName?: string;
16
+ /**
17
+ * The number format code of the pivot table field. Leave it undefined to keep the current format.
18
+ */
19
+ format?: string;
20
+ /**
21
+ * The subtotal type of the value field. Leave it undefined to keep the current subtotal type.
22
+ */
23
+ subtotalType?: PivotSubtotalTypeEnum;
24
+ }
11
25
  /**
12
26
  * The facade class for the pivot table.Which uses to setting the pivot table fields configs.
13
27
  * @hideconstructor
@@ -40,8 +54,9 @@ export declare class FPivotTable {
40
54
  * ```ts
41
55
  * const fWorkbook = univerAPI.getActiveWorkbook();
42
56
  * const unitId = fWorkbook.getId();
43
- * const fSheet = fWorkbook.getActiveSheet();
44
- * const subUnitId = fSheet.getSheetId();
57
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
58
+ * if (!fWorksheet) return;
59
+ * const subUnitId = fWorksheet.getSheetId();
45
60
  * // Here we assume that you already have a pivot table in cell A8 of the table.
46
61
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
47
62
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -51,12 +66,183 @@ export declare class FPivotTable {
51
66
  * ```
52
67
  */
53
68
  getConfig(): Nullable<IPivotTableConfig>;
69
+ /**
70
+ * @description Get the pivot table id.
71
+ * @returns {string} The pivot table id.
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const fWorkbook = univerAPI.getActiveWorkbook();
76
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
77
+ * if (!fWorksheet) return;
78
+ * const subUnitId = fWorksheet.getSheetId();
79
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
80
+ * const pivotTableId = fPivotTable?.getId();
81
+ * console.log(pivotTableId);
82
+ * ```
83
+ */
84
+ getId(): string;
85
+ /**
86
+ * @description Get the source range info of the pivot table.
87
+ * @typedef SourceInfo
88
+ * @property {string} unitId The unit id of the source workbook.
89
+ * @property {string} subUnitId The sheet id of the source worksheet.
90
+ * @property {string} sheetName The source worksheet name.
91
+ * @property {IRange} range The source data range.
92
+ * @returns {SourceInfo|undefined} The source range info or undefined if the pivot table no longer exists.
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * const fWorkbook = univerAPI.getActiveWorkbook();
97
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
98
+ * if (!fWorksheet) return;
99
+ * const subUnitId = fWorksheet.getSheetId();
100
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
101
+ * const sourceRangeInfo = fPivotTable?.getSourceRangeInfo();
102
+ * console.log(sourceRangeInfo?.range);
103
+ * ```
104
+ */
105
+ getSourceRangeInfo(): IUnitRangeNameWithSubUnitId | undefined;
106
+ /**
107
+ * @description Get the target cell info of the pivot table.
108
+ * @typedef TargetCellInfo
109
+ * @property {string} unitId The unit id of the target workbook.
110
+ * @property {string} subUnitId The sheet id of the target worksheet.
111
+ * @property {number} row The target row index.
112
+ * @property {number} col The target column index.
113
+ * @property {string} [sheetName] The target worksheet name if it is stored in the config.
114
+ * @returns {TargetCellInfo|undefined} The target cell info or undefined if the pivot table no longer exists.
115
+ *
116
+ * @example
117
+ * ```ts
118
+ * const fWorkbook = univerAPI.getActiveWorkbook();
119
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
120
+ * if (!fWorksheet) return;
121
+ * const subUnitId = fWorksheet.getSheetId();
122
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
123
+ * const targetCellInfo = fPivotTable?.getTargetCellInfo();
124
+ * console.log(targetCellInfo?.row, targetCellInfo?.col);
125
+ * ```
126
+ */
127
+ getTargetCellInfo(): IPivotTableConfig['targetCellInfo'] | undefined;
128
+ /**
129
+ * @description Get the display options of the pivot table.
130
+ * @typedef PivotTableOptions
131
+ * @property {number} [pageWrap] The max page fields count before wrapping to the next line.
132
+ * @property {boolean} [pageOverThenDown] Whether page fields are laid out over then down.
133
+ * @property {boolean} [showColHeaders] Whether to show column headers.
134
+ * @property {boolean} [showColStripes] Whether to show column stripes.
135
+ * @property {boolean} [showLastColumn] Whether to highlight the last column.
136
+ * @property {boolean} [showRowHeaders] Whether to show row headers.
137
+ * @property {boolean} [showRowStripes] Whether to show row stripes.
138
+ * @property {boolean} [mergeItems] Whether to merge repeated header items.
139
+ * @property {boolean} [repeatRowLabels] Whether to repeat row labels.
140
+ * @property {boolean} [showRowSubtotal] Whether to show row subtotals.
141
+ * @property {boolean} [showRowGrandTotal] Whether to show row grand totals.
142
+ * @property {boolean} [showColSubtotal] Whether to show column subtotals.
143
+ * @property {boolean} [showColGrandTotal] Whether to show column grand totals.
144
+ * @returns {PivotTableOptions|undefined} The display options or undefined if the pivot table no longer exists.
145
+ *
146
+ * @example
147
+ * ```ts
148
+ * const fWorkbook = univerAPI.getActiveWorkbook();
149
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
150
+ * if (!fWorksheet) return;
151
+ * const subUnitId = fWorksheet.getSheetId();
152
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
153
+ * const options = fPivotTable?.getOptions();
154
+ * console.log(options?.showRowGrandTotal);
155
+ * ```
156
+ */
157
+ getOptions(): IPivotTableOptions | undefined;
158
+ /**
159
+ * @description Get the pivot table matrix cache generated by the last render.
160
+ * @returns {IPivotTableMatrixInfo|undefined} The matrix cache or undefined if the pivot table has not rendered.
161
+ *
162
+ * @example
163
+ * ```ts
164
+ * const fWorkbook = univerAPI.getActiveWorkbook();
165
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
166
+ * if (!fWorksheet) return;
167
+ * const subUnitId = fWorksheet.getSheetId();
168
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
169
+ * const matrixInfo = fPivotTable?.getPivotTableMatrixInfo();
170
+ * console.log(matrixInfo?.matrix);
171
+ * ```
172
+ */
173
+ getPivotTableMatrixInfo(): IPivotTableMatrixInfo | undefined;
54
174
  /**
55
175
  * @description Set the pivot table fields config.It will add fields to the pivot table from provided config.Before setting the fields config, you should ensure the pivot table is empty to avoid the conflict.
56
176
  * @param {IPivotTableConfig['fieldsConfig']} config The pivot table fields config.
57
177
  * @returns {Promise<boolean>} Whether the pivot table fields config is set successfully.
58
178
  */
59
179
  setFieldsConfig(config: IPivotTableConfig['fieldsConfig']): Promise<boolean>;
180
+ /**
181
+ * @description Set the display options of the pivot table through command. It keeps undo/redo, collaboration and render update paths consistent with panel operations.
182
+ * @param {PivotTableOptions} options The display options to set.
183
+ * @typedef PivotTableOptions
184
+ * @property {number} [pageWrap] The max page fields count before wrapping to the next line.
185
+ * @property {boolean} [pageOverThenDown] Whether page fields are laid out over then down.
186
+ * @property {boolean} [showColHeaders] Whether to show column headers.
187
+ * @property {boolean} [showColStripes] Whether to show column stripes.
188
+ * @property {boolean} [showLastColumn] Whether to highlight the last column.
189
+ * @property {boolean} [showRowHeaders] Whether to show row headers.
190
+ * @property {boolean} [showRowStripes] Whether to show row stripes.
191
+ * @property {boolean} [mergeItems] Whether to merge repeated header items.
192
+ * @property {boolean} [repeatRowLabels] Whether to repeat row labels.
193
+ * @property {boolean} [showRowSubtotal] Whether to show row subtotals.
194
+ * @property {boolean} [showRowGrandTotal] Whether to show row grand totals.
195
+ * @property {boolean} [showColSubtotal] Whether to show column subtotals.
196
+ * @property {boolean} [showColGrandTotal] Whether to show column grand totals.
197
+ * @returns {Promise<boolean>} Whether the pivot table options are set successfully.
198
+ *
199
+ * @example
200
+ * ```ts
201
+ * const fWorkbook = univerAPI.getActiveWorkbook();
202
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
203
+ * if (!fWorksheet) return;
204
+ * const subUnitId = fWorksheet.getSheetId();
205
+ * const fPivotTable = fWorkbook.getPivotTableByCell(fWorkbook.getId(), subUnitId, 0, 8);
206
+ * await fPivotTable?.setOptions({
207
+ * repeatRowLabels: true,
208
+ * showRowGrandTotal: false,
209
+ * showColGrandTotal: true
210
+ * });
211
+ * ```
212
+ */
213
+ setOptions(options: IPivotTableOptions): Promise<boolean>;
214
+ /**
215
+ * @description Update the source range of the pivot table through command.
216
+ * @param {SourceInfo} dataRangeInfo The new source data range info.
217
+ * @typedef SourceInfo
218
+ * @property {string} unitId The unit id of the source workbook.
219
+ * @property {string} subUnitId The sheet id of the source worksheet.
220
+ * @property {string} sheetName The source worksheet name.
221
+ * @property {IRange} range The new source data range.
222
+ * @returns {Promise<boolean>} Whether the source range is updated successfully.
223
+ *
224
+ * @example
225
+ * ```ts
226
+ * const fWorkbook = univerAPI.getActiveWorkbook();
227
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
228
+ * if (!fWorksheet) return;
229
+ * const unitId = fWorkbook.getId();
230
+ * const subUnitId = fWorksheet.getSheetId();
231
+ * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
232
+ * await fPivotTable?.setSourceRange({
233
+ * unitId,
234
+ * subUnitId,
235
+ * sheetName: fWorksheet.getSheetName(),
236
+ * range: {
237
+ * startRow: 0,
238
+ * endRow: 100,
239
+ * startColumn: 0,
240
+ * endColumn: 6
241
+ * }
242
+ * });
243
+ * ```
244
+ */
245
+ setSourceRange(dataRangeInfo: IUnitRangeNameWithSubUnitId): Promise<boolean>;
60
246
  /**
61
247
  * @description Clear the fields by provided field area or clear all fields.
62
248
  * @param {PivotTableFiledAreaEnum} [resetArea] The area of the field to reset or undefined to reset all fields.
@@ -71,8 +257,9 @@ export declare class FPivotTable {
71
257
  * ```ts
72
258
  * const fWorkbook = univerAPI.getActiveWorkbook();
73
259
  * const unitId = fWorkbook.getId();
74
- * const fSheet = fWorkbook.getActiveSheet();
75
- * const subUnitId = fSheet.getSheetId();
260
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
261
+ * if (!fWorksheet) return;
262
+ * const subUnitId = fWorksheet.getSheetId();
76
263
  * // Here we assume that you already have a pivot table in cell A8 of the table.
77
264
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
78
265
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -90,8 +277,9 @@ export declare class FPivotTable {
90
277
  * ```ts
91
278
  * const fWorkbook = univerAPI.getActiveWorkbook();
92
279
  * const unitId = fWorkbook.getId();
93
- * const fSheet = fWorkbook.getActiveSheet();
94
- * const subUnitId = fSheet.getSheetId();
280
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
281
+ * if (!fWorksheet) return;
282
+ * const subUnitId = fWorksheet.getSheetId();
95
283
  * // Here we assume that you already have a pivot table in cell A8 of the table.
96
284
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
97
285
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -115,7 +303,8 @@ export declare class FPivotTable {
115
303
  * ```typescript
116
304
  * const fWorkbook = univerAPI.getActiveWorkbook();
117
305
  * const unitId = fWorkbook.getId();
118
- * const fSheet = fWorkbook.getActiveSheet();
306
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
307
+ * if (!fWorksheet) return;
119
308
  * // Here we assume that you already have a pivot table in cell A8 of the table.
120
309
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
121
310
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -135,8 +324,9 @@ export declare class FPivotTable {
135
324
  * ```ts
136
325
  * const fWorkbook = univerAPI.getActiveWorkbook();
137
326
  * const unitId = fWorkbook.getId();
138
- * const fSheet = fWorkbook.getActiveSheet();
139
- * const subUnitId = fSheet.getSheetId();
327
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
328
+ * if (!fWorksheet) return;
329
+ * const subUnitId = fWorksheet.getSheetId();
140
330
  * // Here we assume that you already have a pivot table in cell A8 of the table.
141
331
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
142
332
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -156,8 +346,9 @@ export declare class FPivotTable {
156
346
  * ```ts
157
347
  * const fWorkbook = univerAPI.getActiveWorkbook();
158
348
  * const unitId = fWorkbook.getId();
159
- * const fSheet = fWorkbook.getActiveSheet();
160
- * const subUnitId = fSheet.getSheetId();
349
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
350
+ * if (!fWorksheet) return;
351
+ * const subUnitId = fWorksheet.getSheetId();
161
352
  * // Here we assume that you already have a pivot table in cell A8 of the table.
162
353
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
163
354
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -177,8 +368,9 @@ export declare class FPivotTable {
177
368
  * ```ts
178
369
  * const fWorkbook = univerAPI.getActiveWorkbook();
179
370
  * const unitId = fWorkbook.getId();
180
- * const fSheet = fWorkbook.getActiveSheet();
181
- * const subUnitId = fSheet.getSheetId();
371
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
372
+ * if (!fWorksheet) return;
373
+ * const subUnitId = fWorksheet.getSheetId();
182
374
  * // Here we assume that you already have a pivot table in cell A8 of the table.
183
375
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
184
376
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -195,8 +387,9 @@ export declare class FPivotTable {
195
387
  * ```ts
196
388
  * const fWorkbook = univerAPI.getActiveWorkbook();
197
389
  * const unitId = fWorkbook.getId();
198
- * const fSheet = fWorkbook.getActiveSheet();
199
- * const subUnitId = fSheet.getSheetId();
390
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
391
+ * if (!fWorksheet) return;
392
+ * const subUnitId = fWorksheet.getSheetId();
200
393
  * // Here we assume that you already have a pivot table in cell A8 of the table.
201
394
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
202
395
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -215,8 +408,9 @@ export declare class FPivotTable {
215
408
  * ```ts
216
409
  * const fWorkbook = univerAPI.getActiveWorkbook();
217
410
  * const unitId = fWorkbook.getId();
218
- * const fSheet = fWorkbook.getActiveSheet();
219
- * const subUnitId = fSheet.getSheetId();
411
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
412
+ * if (!fWorksheet) return;
413
+ * const subUnitId = fWorksheet.getSheetId();
220
414
  * // Here we assume that you already have a pivot table in cell A8 of the table.
221
415
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
222
416
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -238,8 +432,9 @@ export declare class FPivotTable {
238
432
  * ```ts
239
433
  * const fWorkbook = univerAPI.getActiveWorkbook();
240
434
  * const unitId = fWorkbook.getId();
241
- * const fSheet = fWorkbook.getActiveSheet();
242
- * const subUnitId = fSheet.getSheetId();
435
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
436
+ * if (!fWorksheet) return;
437
+ * const subUnitId = fWorksheet.getSheetId();
243
438
  * // Here we assume that you already have a pivot table in cell A8 of the table.
244
439
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
245
440
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -260,8 +455,9 @@ export declare class FPivotTable {
260
455
  * ```ts
261
456
  * const fWorkbook = univerAPI.getActiveWorkbook();
262
457
  * const unitId = fWorkbook.getId();
263
- * const fSheet = fWorkbook.getActiveSheet();
264
- * const subUnitId = fSheet.getSheetId();
458
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
459
+ * if (!fWorksheet) return;
460
+ * const subUnitId = fWorksheet.getSheetId();
265
461
  * // Here we assume that you already have a pivot table in cell A8 of the table.
266
462
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
267
463
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -286,8 +482,9 @@ export declare class FPivotTable {
286
482
  * ```typescript
287
483
  * const fWorkbook = univerAPI.getActiveWorkbook();
288
484
  * const unitId = fWorkbook.getId();
289
- * const fSheet = fWorkbook.getActiveSheet();
290
- * const subUnitId = fSheet.getSheetId();
485
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
486
+ * if (!fWorksheet) return;
487
+ * const subUnitId = fWorksheet.getSheetId();
291
488
  * // Here we assume that you already have a pivot table in cell A8 of the table.
292
489
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
293
490
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -311,8 +508,9 @@ export declare class FPivotTable {
311
508
  * ```typescript
312
509
  * const fWorkbook = univerAPI.getActiveWorkbook();
313
510
  * const unitId = fWorkbook.getId();
314
- * const fSheet = fWorkbook.getActiveSheet();
315
- * const subUnitId = fSheet.getSheetId();
511
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
512
+ * if (!fWorksheet) return;
513
+ * const subUnitId = fWorksheet.getSheetId();
316
514
  * // Here we assume that you already have a pivot table in cell A8 of the table.
317
515
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
318
516
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -333,8 +531,9 @@ export declare class FPivotTable {
333
531
  * ```ts
334
532
  * const fWorkbook = univerAPI.getActiveWorkbook();
335
533
  * const unitId = fWorkbook.getId();
336
- * const fSheet = fWorkbook.getActiveSheet();
337
- * const subUnitId = fSheet.getSheetId();
534
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
535
+ * if (!fWorksheet) return;
536
+ * const subUnitId = fWorksheet.getSheetId();
338
537
  * // Here we assume that you already have a pivot table in cell A8 of the table.
339
538
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
340
539
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -347,6 +546,35 @@ export declare class FPivotTable {
347
546
  * ```
348
547
  */
349
548
  setSubtotalType(fieldId: string, subtotalType: PivotSubtotalTypeEnum): Promise<boolean>;
549
+ /**
550
+ * @description Set the pivot table field display name, number format or subtotal type through command.
551
+ * @param {string} tableFieldId - The pivot table field id.
552
+ * @param {PivotTableFieldSettingOptions} setting - The field setting options.
553
+ * @typedef PivotTableFieldSettingOptions
554
+ * @property {string} [displayName] The display name of the pivot table field. Leave it undefined to keep the current display name.
555
+ * @property {string} [format] The number format code of the pivot table field. Leave it undefined to keep the current format.
556
+ * @property {PivotSubtotalTypeEnum} [subtotalType] The subtotal type of the value field. Leave it undefined to keep the current subtotal type.
557
+ * @returns {Promise<boolean>} Whether the pivot table field setting is updated successfully.
558
+ *
559
+ * @example
560
+ * ```ts
561
+ * const fWorkbook = univerAPI.getActiveWorkbook();
562
+ * const unitId = fWorkbook.getId();
563
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
564
+ * if (!fWorksheet) return;
565
+ * const subUnitId = fWorksheet.getSheetId();
566
+ * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
567
+ * const valueId = fPivotTable?.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Value)[0];
568
+ * if (fPivotTable && valueId) {
569
+ * await fPivotTable.setFieldSetting(valueId, {
570
+ * displayName: 'Revenue',
571
+ * format: '$#,##0',
572
+ * subtotalType: univerAPI.Enum.PivotSubtotalTypeEnum.sum
573
+ * });
574
+ * }
575
+ * ```
576
+ */
577
+ setFieldSetting(tableFieldId: string, setting: IPivotTableFieldSettingOptions): Promise<boolean>;
350
578
  /**
351
579
  * @description Set the pivot table sort info.
352
580
  * @param {string} tableFieldId - The field id of the sort.
@@ -359,8 +587,9 @@ export declare class FPivotTable {
359
587
  * ```ts
360
588
  * const fWorkbook = univerAPI.getActiveWorkbook();
361
589
  * const unitId = fWorkbook.getId();
362
- * const fSheet = fWorkbook.getActiveSheet();
363
- * const subUnitId = fSheet.getSheetId();
590
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
591
+ * if (!fWorksheet) return;
592
+ * const subUnitId = fWorksheet.getSheetId();
364
593
  * // Here we assume that you already have a pivot table in cell A8 of the table.
365
594
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
366
595
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -384,8 +613,9 @@ export declare class FPivotTable {
384
613
  * ```ts
385
614
  * const fWorkbook = univerAPI.getActiveWorkbook();
386
615
  * const unitId = fWorkbook.getId();
387
- * const fSheet = fWorkbook.getActiveSheet();
388
- * const subUnitId = fSheet.getSheetId();
616
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
617
+ * if (!fWorksheet) return;
618
+ * const subUnitId = fWorksheet.getSheetId();
389
619
  * // Here we assume that you already have a pivot table in cell A8 of the table.
390
620
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
391
621
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -412,8 +642,9 @@ export declare class FPivotTable {
412
642
  * ```ts
413
643
  * const fWorkbook = univerAPI.getActiveWorkbook();
414
644
  * const unitId = fWorkbook.getId();
415
- * const fSheet = fWorkbook.getActiveSheet();
416
- * const subUnitId = fSheet.getSheetId();
645
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
646
+ * if (!fWorksheet) return;
647
+ * const subUnitId = fWorksheet.getSheetId();
417
648
  * // Here we assume that you already have a pivot table in cell A8 of the table.
418
649
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
419
650
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -432,7 +663,27 @@ export declare class FPivotTable {
432
663
  * }
433
664
  * ```
434
665
  */
435
- setValueFilter(fieldId: string, filterInfo: Omit<IPivotTableValueFilter, 'type'>): Promise<boolean>;
666
+ setValueFilter(fieldId: string, filterInfo?: Omit<IPivotTableValueFilter, 'type'>): Promise<boolean>;
667
+ /**
668
+ * @description Clear the value filter of the pivot table field through command.
669
+ * @param {string} fieldId - The field id of the value filter.
670
+ * @returns {Promise<boolean>} Whether the value filter is cleared successfully.
671
+ *
672
+ * @example
673
+ * ```ts
674
+ * const fWorkbook = univerAPI.getActiveWorkbook();
675
+ * const unitId = fWorkbook.getId();
676
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
677
+ * if (!fWorksheet) return;
678
+ * const subUnitId = fWorksheet.getSheetId();
679
+ * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
680
+ * const rowId = fPivotTable?.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row)[0];
681
+ * if (fPivotTable && rowId) {
682
+ * await fPivotTable.clearValueFilter(rowId);
683
+ * }
684
+ * ```
685
+ */
686
+ clearValueFilter(fieldId: string): Promise<boolean>;
436
687
  /**
437
688
  * @description Rename the pivot table field.
438
689
  * @param {string} fieldId - The field id.
@@ -443,8 +694,9 @@ export declare class FPivotTable {
443
694
  * ```typescript
444
695
  * const fWorkbook = univerAPI.getActiveWorkbook();
445
696
  * const unitId = fWorkbook.getId();
446
- * const fSheet = fWorkbook.getActiveSheet();
447
- * const subUnitId = fSheet.getSheetId();
697
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
698
+ * if (!fWorksheet) return;
699
+ * const subUnitId = fWorksheet.getSheetId();
448
700
  * // Here we assume that you already have a pivot table in cell A8 of the table.
449
701
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
450
702
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -467,8 +719,9 @@ export declare class FPivotTable {
467
719
  * ```typescript
468
720
  * const fWorkbook = univerAPI.getActiveWorkbook();
469
721
  * const unitId = fWorkbook.getId();
470
- * const fSheet = fWorkbook.getActiveSheet();
471
- * const subSheetName = fSheet.getSheetName();
722
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
723
+ * if (!fWorksheet) return;
724
+ * const subSheetName = fWorksheet.getSheetName();
472
725
  * // Here we assume that you already have a pivot table in cell A8 of the table.
473
726
  * // If not, please call fWorkbook.addPivotTable() according to the documentation.
474
727
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
@@ -490,8 +743,9 @@ export declare class FPivotTable {
490
743
  * // and drag the date dimension to the row or column
491
744
  * const fWorkbook = univerAPI.getActiveWorkbook();
492
745
  * const unitId = fWorkbook.getId();
493
- * const fSheet = fWorkbook.getActiveSheet();
494
- * const subUnitId = fSheet.getSheetId();
746
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
747
+ * if (!fWorksheet) return;
748
+ * const subUnitId = fWorksheet.getSheetId();
495
749
  * const pivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 0);
496
750
  * // Here we assume that the field index of the date type is 0
497
751
  * await pivotTable.addField(0, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
@@ -503,5 +757,47 @@ export declare class FPivotTable {
503
757
  * ```
504
758
  */
505
759
  setDateGroupType(tableFieldId: string, dateType: PivotDateGroupFieldDateTypeEnum): Promise<boolean>;
760
+ /**
761
+ * @description Collapse or expand a pivot table item by the cell position through command.
762
+ * @param {number} row - The row index of the pivot item cell.
763
+ * @param {number} col - The column index of the pivot item cell.
764
+ * @param {boolean} collapse - Whether to collapse the pivot item. True means collapse, false means expand.
765
+ * @returns {Promise<boolean>} Whether the pivot item collapse state is updated successfully.
766
+ *
767
+ * @example
768
+ * ```ts
769
+ * const fWorkbook = univerAPI.getActiveWorkbook();
770
+ * const unitId = fWorkbook.getId();
771
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
772
+ * if (!fWorksheet) return;
773
+ * const subUnitId = fWorksheet.getSheetId();
774
+ * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
775
+ * // the cell must be a cell has collapse or expand button, otherwise the command will fail, and the cell (2,8) is just an example, you can pass any cell in the pivot table which has collapse or expand button.
776
+ * await fPivotTable?.setCellCollapse(2, 8, true);
777
+ * ```
778
+ */
779
+ setCellCollapse(row: number, col: number, collapse: boolean): Promise<boolean>;
780
+ /**
781
+ * @description Drill down a pivot value cell through command and create a sheet with the related source records.
782
+ * @param {number} row - The row index of the pivot value cell.
783
+ * @param {number} col - The column index of the pivot value cell.
784
+ * @returns {Promise<boolean>} Whether the drill down sheet is created successfully.
785
+ *
786
+ * @example
787
+ * ```ts
788
+ * const fWorkbook = univerAPI.getActiveWorkbook();
789
+ * const unitId = fWorkbook.getId();
790
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
791
+ * if (!fWorksheet) return;
792
+ * const subUnitId = fWorksheet.getSheetId();
793
+ * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
794
+ * await fPivotTable?.drillDown(5, 10);
795
+ * ```
796
+ */
797
+ drillDown(row: number, col: number): Promise<boolean>;
798
+ private _getPivotPanelTableFieldInfo;
799
+ private _getPivotPanelSourceFieldInfo;
800
+ private _isDataFieldUsed;
801
+ private _isCellInCurrentPivotTable;
506
802
  }
507
803
  export {};
@@ -21,16 +21,17 @@ export interface IFWorkbookSheetsPivotMixin {
21
21
  * @param {SourceInfo} sourceInfo The source data range info of the pivot table.
22
22
  * @param {PositionType} positionType whether new a sheet or insert a pivot table to the existing sheet.
23
23
  * @param {AnchorCellInfo} anchorCellInfo The target cell info of the pivot table.
24
- * @returns {string|undefined} The added pivot table id.
24
+ * @returns {FPivotTable|undefined} The added pivot table instance.
25
25
  *
26
26
  * @example
27
27
  * ```typescript
28
28
  * // should ensure the sheet range A1:G9 is not empty
29
29
  * const fWorkbook = univerAPI.getActiveWorkbook();
30
30
  * const unitId = fWorkbook.getId();
31
- * const fSheet = fWorkbook.getActiveSheet();
32
- * const subUnitId = fSheet.getSheetId();
33
- * const sheetName = fSheet.getSheetName();
31
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
32
+ * if (!fWorksheet) return;
33
+ * const subUnitId = fWorksheet.getSheetId();
34
+ * const sheetName = fWorksheet.getSheetName();
34
35
  * const sourceInfo = {
35
36
  * unitId,
36
37
  * subUnitId,
@@ -48,17 +49,9 @@ export interface IFWorkbookSheetsPivotMixin {
48
49
  * row: 0,
49
50
  * col: 8
50
51
  * };
51
- * const fPivotTable = await fWorkbook.addPivotTable(sourceInfo, 'existing', anchorCellInfo);
52
- * const pivotTableId = fPivotTable.getPivotTableId();
53
- * let hasAdded = false;
54
- * // the addPivotTable is async, you can add pivot fields after the pivot table is added
55
- * univerAPI.addEvent(univerAPI.Event.PivotTableRendered, (params) => {
56
- * if (!hasAdded && params.pivotTableId === pivotTableId) {
57
- * fPivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
58
- * fPivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Value, 0);
59
- * hasAdded = true;
60
- * }
61
- * });
52
+ * const fPivotTable = await fWorkbook.addPivotTable(sourceInfo, univerAPI.Enum.PositionTypeEnum.Existing, anchorCellInfo);
53
+ * await fPivotTable?.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
54
+ * await fPivotTable?.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Value, 0);
62
55
  * ```
63
56
  */
64
57
  addPivotTable(sourceInfo: IUnitRangeName & {
@@ -76,8 +69,9 @@ export interface IFWorkbookSheetsPivotMixin {
76
69
  * ```typescript
77
70
  * const fWorkbook = univerAPI.getActiveWorkbook();
78
71
  * const unitId = fWorkbook.getId();
79
- * const fSheet = fWorkbook.getActiveSheet();
80
- * const subUnitId = fSheet.getSheetId();
72
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
73
+ * if (!fWorksheet) return;
74
+ * const subUnitId = fWorksheet.getSheetId();
81
75
  * const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
82
76
  * if(fPivotTable) {
83
77
  * fPivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
@@ -106,6 +100,7 @@ export declare class FWorkbookSheetsPivotMixin extends FWorkbook implements IFWo
106
100
  addPivotTable(sourceInfo: IUnitRangeName & {
107
101
  subUnitId: string;
108
102
  }, positionType: PositionType, anchorCellInfo: IPivotCellPositionInfo): Promise<FPivotTable | undefined>;
103
+ private _waitForPivotTableReady;
109
104
  getPivotTableByCell(unitId: string, subUnitId: string, row: number, col: number): FPivotTable | undefined;
110
105
  getPivotTableById(pivotTableId: string): FPivotTable | undefined;
111
106
  }
@@ -13,8 +13,9 @@ export interface IFWorksheetPivotMixin {
13
13
  * @example
14
14
  * ```typescript
15
15
  * const fWorkbook = univerAPI.getActiveWorkbook();
16
- * const fSheet = fWorkbook.getActiveSheet();
17
- * const pivotTable = fSheet.getPivotTableByCell(1, 1);
16
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
17
+ * if (!fWorksheet) return;
18
+ * const pivotTable = fWorksheet.getPivotTableByCell(1, 1);
18
19
  * if(pivotTable) {
19
20
  * pivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
20
21
  * }
@@ -11,6 +11,8 @@ export { PivotDrillDownCommand } from './commands/command/pivot-drill-down.comma
11
11
  export type { IPivotDrillDownCommandParams } from './commands/command/pivot-drill-down.command';
12
12
  export { RemovePivotFieldCommand } from './commands/command/remove-pivot-field.command';
13
13
  export type { IRemovePivotFieldCommandParams } from './commands/command/remove-pivot-field.command';
14
+ export { RemovePivotTableCommand } from './commands/command/remove-pivot-table.command';
15
+ export type { IRemovePivotTableCommandParams } from './commands/command/remove-pivot-table.command';
14
16
  export { ResetPivotFieldsConfigCommand } from './commands/command/reset-pivot-fields-config.command';
15
17
  export type { IResetPivotFieldsConfigCommandParams } from './commands/command/reset-pivot-fields-config.command';
16
18
  export { SetPivotCollapseCommand } from './commands/command/set-pivot-collapse.command';
@@ -53,7 +55,7 @@ export { UpdateValuePositionMutation } from './commands/mutations/update-value-p
53
55
  export { PivotTableViewDirtyMarkOperation } from './commands/operations/pivot-table-dirty-view.operation';
54
56
  export { BLANK_ROW_COUNT, getAdjustRangesPosition, PivotDisplayDataType, PositionType, SHEET_PIVOT_TABLE_PLUGIN } from './const/const';
55
57
  export { DEFAULT_PIVOT_NUMBER, defaultThemeStyle, transFromCellValue } from './const/const';
56
- export type { IAddPivotFieldMutationParams, IAddPivotTableMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, IPivotRangesInfo, IPivotRenderCache, IPivotTableAddedEventParams, IPivotTableCellData, IPivotTableConfig, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IPivotTableUpdatedEventParams, IPivotViewUpdateInfo, IRangePosition, IRemovePivotFieldMutationParams, IRemovePivotTableMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotPositionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, ISetPivotValueFilterMutationParams, IUnitRangeNameWithSubUnitId, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams, } from './const/type';
58
+ export type { IAddPivotFieldMutationParams, IAddPivotTableMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, IPivotRangesInfo, IPivotRenderCache, IPivotTableAddedEventParams, IPivotTableCellData, IPivotTableConfig, IPivotTableMatrixInfo, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IPivotTableUpdatedEventParams, IPivotViewUpdateInfo, IRangePosition, IRemovePivotFieldMutationParams, IRemovePivotTableMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotPositionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, ISetPivotValueFilterMutationParams, IUnitRangeNameWithSubUnitId, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams, } from './const/type';
57
59
  export { PivotTableOperationEnum } from './const/type';
58
60
  export { SHEETS_PIVOT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
59
61
  export type { IUniverSheetsPivotConfig } from './controllers/config.schema';
@@ -0,0 +1,3 @@
1
+ import type enUS from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;