@univerjs-pro/sheets-pivot 1.2.0 → 1.3.1
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/group-command-util.d.ts +12 -0
- package/lib/types/commands/command/set-pivot-excel-date-group.command.d.ts +10 -0
- package/lib/types/commands/command/set-pivot-filter.command.d.ts +2 -0
- package/lib/types/commands/command/set-pivot-manual-groups.command.d.ts +10 -0
- package/lib/types/commands/command/set-pivot-number-group.command.d.ts +10 -0
- package/lib/types/commands/command/util.d.ts +7 -1
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +3 -1
- package/lib/types/config/config.d.ts +2 -2
- package/lib/types/const/const.d.ts +9 -2
- package/lib/types/const/type.d.ts +92 -1
- package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +2 -0
- package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +9 -2
- package/lib/types/facade/f-enum.d.ts +12 -3
- package/lib/types/facade/f-generic-pivot-table.d.ts +2 -1
- package/lib/types/facade/f-pivot-table.d.ts +101 -1
- package/lib/types/index.d.ts +7 -2
- package/lib/types/locale/en-US.d.ts +9 -0
- package/lib/types/models/sheets-pivot-config-model.d.ts +55 -9
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +18 -7
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +25 -3
- package/lib/types/record-filter-bridge.d.ts +9 -0
- package/lib/types/services/sheets-pivot-cache.service.d.ts +15 -3
- package/lib/types/services/sheets-pivot-table.service.d.ts +7 -0
- package/lib/types/util.d.ts +5 -11
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -11
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x296789=_0x2269;function _0x2269(_0x2a9468,_0x220086){_0x2a9468=_0x2a9468-0x18c;const _0x288778=_0x2887();let _0x2269e8=_0x288778[_0x2a9468];return _0x2269e8;}function _0x2887(){const _0x157f55=['{0}\x20–\x20{1}','(其他)','最大值项:','(空白)','工作表','年-季度','行标签','数值计数项:','平均值项:','{0}\x20{1}','2922395cPsUAu','月-日','计数项:','5533269YZsKQH','8soVfKm','{0}','801936knYTbh','年-月','{0}-{1}','476YbADQm','{0}\x20–\x20≤{1}','总体方差项:','标准偏差项:','求和项:','{0}:{1}','总体标准偏差项:','最小值项:','26789904iqbeey','列标签','年-月-日','{0}{1}','16413QweOlz','小时-分钟','乘积项:','2770212Kqkxas','509856OypiBm'];_0x2887=function(){return _0x157f55;};return _0x2887();}(function(_0x1fb617,_0x496c8b){const _0x506958=_0x2269,_0x4709ad=_0x1fb617();while(!![]){try{const _0x2808b7=parseInt(_0x506958(0x1ae))/0x1+parseInt(_0x506958(0x19b))/0x2+-parseInt(_0x506958(0x1aa))/0x3*(-parseInt(_0x506958(0x19e))/0x4)+parseInt(_0x506958(0x195))/0x5+parseInt(_0x506958(0x1ad))/0x6+-parseInt(_0x506958(0x198))/0x7*(-parseInt(_0x506958(0x199))/0x8)+-parseInt(_0x506958(0x1a6))/0x9;if(_0x2808b7===_0x496c8b)break;else _0x4709ad['push'](_0x4709ad['shift']());}catch(_0x336eb8){_0x4709ad['push'](_0x4709ad['shift']());}}}(_0x2887,0x66fe9));const e={'sheets-pivot':{'sheet':_0x296789(0x18f),'blankValue':_0x296789(0x18e),'otherValue':_0x296789(0x18c),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','rowLabels':_0x296789(0x191),'columnLabels':_0x296789(0x1a7),'averageName':_0x296789(0x193),'countName':_0x296789(0x197),'countNumsName':_0x296789(0x192),'maxName':_0x296789(0x18d),'minName':_0x296789(0x1a5),'productName':_0x296789(0x1ac),'stdDevName':_0x296789(0x1a1),'stdDevpName':_0x296789(0x1a4),'sumName':_0x296789(0x1a2),'varName':'方差项:','varpName':_0x296789(0x1a0),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','other':'其他','renderText':{'valueField':_0x296789(0x1a9),'subtotal':_0x296789(0x194),'grandTotal':'{0}\x20{1}','multipleGrandTotal':'{0}','subtotalWithValue':_0x296789(0x194)},'emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'},'dateGroup':{'second':'秒','year':'年','month':'月','day':'日','date':'日','hour':'小时','minute':'分钟','hourMinute':_0x296789(0x1ab),'quarter':'季度','monthDate':_0x296789(0x196),'yearQuarter':_0x296789(0x190),'yearMonth':_0x296789(0x19c),'yearMonthDate':_0x296789(0x1a8)},'numberGroupRange':'{0}\x20–\x20<{1}','numberGroupClosedRange':_0x296789(0x19f),'numberGroupBefore':'<{0}','numberGroupAfter':'>{0}','cellDateGroupDisplay':{'second':_0x296789(0x19a),'before':'之前','after':'之后','dayRange':_0x296789(0x1af),'minute':'{0}','hour':_0x296789(0x19a),'hourMinute':_0x296789(0x1a3),'date':'{0}','month':_0x296789(0x19a),'monthDate':_0x296789(0x19d),'quarter':'Q{0}','year':_0x296789(0x19a),'yearMonth':'{0}-{1}','yearMonthDate':'{0}-{1}-{2}','yearQuarter':'{0}-Q{1}'}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5664d2=_0x11e8;function _0x11e8(_0x23a37a,_0x51871b){_0x23a37a=_0x23a37a-0x1d5;const _0x4d59ba=_0x4d59();let _0x11e851=_0x4d59ba[_0x23a37a];return _0x11e851;}(function(_0x1ec1ae,_0x51a8be){const _0x41c400=_0x11e8,_0x4ddbaa=_0x1ec1ae();while(!![]){try{const _0x313773=-parseInt(_0x41c400(0x1e7))/0x1*(parseInt(_0x41c400(0x1f6))/0x2)+parseInt(_0x41c400(0x1d9))/0x3+parseInt(_0x41c400(0x1e1))/0x4+parseInt(_0x41c400(0x1d6))/0x5+-parseInt(_0x41c400(0x1db))/0x6*(parseInt(_0x41c400(0x1ed))/0x7)+-parseInt(_0x41c400(0x1f4))/0x8*(parseInt(_0x41c400(0x1f9))/0x9)+parseInt(_0x41c400(0x1f3))/0xa;if(_0x313773===_0x51a8be)break;else _0x4ddbaa['push'](_0x4ddbaa['shift']());}catch(_0x54a85c){_0x4ddbaa['push'](_0x4ddbaa['shift']());}}}(_0x4d59,0xafb30));const e={'sheets-pivot':{'sheet':'工作表','blankValue':_0x5664d2(0x1e0),'otherValue':_0x5664d2(0x1e5),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','rowLabels':_0x5664d2(0x1ea),'columnLabels':_0x5664d2(0x1f8),'averageName':_0x5664d2(0x1da),'countName':_0x5664d2(0x1e9),'countNumsName':_0x5664d2(0x1ef),'maxName':_0x5664d2(0x1e6),'minName':_0x5664d2(0x1e4),'productName':'乘積項:','stdDevName':_0x5664d2(0x1ec),'stdDevpName':_0x5664d2(0x1e8),'sumName':'總和項:','varName':_0x5664d2(0x1f7),'varpName':'母體變異數項:','subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','other':'其他','renderText':{'valueField':_0x5664d2(0x1dd),'subtotal':_0x5664d2(0x1f1),'grandTotal':_0x5664d2(0x1f1),'multipleGrandTotal':'{0}','subtotalWithValue':_0x5664d2(0x1f1)},'emptyPivot':{'filter':'篩選','row':'列','column':'欄','values':'值'},'dateGroup':{'second':'秒','year':'年','month':'月','day':'日','date':'日','hour':'小時','minute':'分鐘','hourMinute':_0x5664d2(0x1d7),'quarter':'季','monthDate':_0x5664d2(0x1f2),'yearQuarter':_0x5664d2(0x1dc),'yearMonth':_0x5664d2(0x1de),'yearMonthDate':'年-月-日'},'numberGroupRange':_0x5664d2(0x1e2),'numberGroupClosedRange':_0x5664d2(0x1d8),'numberGroupBefore':_0x5664d2(0x1df),'numberGroupAfter':_0x5664d2(0x1f0),'cellDateGroupDisplay':{'second':_0x5664d2(0x1f5),'before':'之前','after':'之後','dayRange':_0x5664d2(0x1d5),'minute':_0x5664d2(0x1f5),'hour':'{0}','hourMinute':_0x5664d2(0x1e3),'date':_0x5664d2(0x1f5),'month':_0x5664d2(0x1f5),'monthDate':_0x5664d2(0x1ee),'quarter':'Q{0}','year':_0x5664d2(0x1f5),'yearMonth':_0x5664d2(0x1ee),'yearMonthDate':'{0}-{1}-{2}','yearQuarter':_0x5664d2(0x1eb)}}};function _0x4d59(){const _0x23d41e=['3097248xoGWXJ','{0}\x20–\x20<{1}','{0}:{1}','最小值項:','(其他)','最大值項:','21478BxXlrX','母體標準差項:','計數項:','列標籤','{0}-Q{1}','標準差項:','11067XbINIk','{0}-{1}','數值計數項:','>{0}','{0}\x20{1}','月-日','4258550NIXVrq','97792bVUVrt','{0}','56qLTwqu','變異數項:','欄標籤','81naBmqA','{0}\x20–\x20{1}','972175sASEXh','小時-分鐘','{0}\x20–\x20≤{1}','199503zcGMlG','平均值項:','114DvLgol','年-季','{0}{1}','年-月','<{0}','(空白)'];_0x4d59=function(){return _0x23d41e;};return _0x4d59();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3b16(){const _0x2e655f=['小時-分鐘','計數項:','數值計數項:','{0}-Q{1}','976230bPIKXV','37809oxYnJC','乘積項:','Q{0}','標準差項:','年-月','平均值項:','欄標籤','11772wiVNXq','{0}\x20{1}','<{0}','年-季','總和項:','{0}','31580taICYW','{0}-{1}','160PTcvmJ','5869689ChtjuK','{0}\x20–\x20≤{1}','169202PRRxJh','66niwBNf','月-日','最小值項:','10160755KHLXxk','{0}-{1}-{2}','(其他)','母體變異數項:','{0}:{1}','工作表','>{0}','2285sBBFdE','{0}\x20–\x20<{1}','8ZnQpPy'];_0x3b16=function(){return _0x2e655f;};return _0x3b16();}const _0x2662f4=_0x409a;(function(_0xef8e04,_0x183009){const _0x12ffa7=_0x409a,_0x335739=_0xef8e04();while(!![]){try{const _0x39af99=parseInt(_0x12ffa7(0x124))/0x1+-parseInt(_0x12ffa7(0x136))/0x2+-parseInt(_0x12ffa7(0x125))/0x3*(-parseInt(_0x12ffa7(0x11f))/0x4)+-parseInt(_0x12ffa7(0x12f))/0x5*(-parseInt(_0x12ffa7(0x119))/0x6)+parseInt(_0x12ffa7(0x122))/0x7*(parseInt(_0x12ffa7(0x131))/0x8)+-parseInt(_0x12ffa7(0x137))/0x9*(parseInt(_0x12ffa7(0x121))/0xa)+-parseInt(_0x12ffa7(0x128))/0xb;if(_0x39af99===_0x183009)break;else _0x335739['push'](_0x335739['shift']());}catch(_0x4188c2){_0x335739['push'](_0x335739['shift']());}}}(_0x3b16,0x923e9));const e={'sheets-pivot':{'sheet':_0x2662f4(0x12d),'blankValue':'(空白)','otherValue':_0x2662f4(0x12a),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','rowLabels':'列標籤','columnLabels':_0x2662f4(0x118),'averageName':_0x2662f4(0x13c),'countName':_0x2662f4(0x133),'countNumsName':_0x2662f4(0x134),'maxName':'最大值項:','minName':_0x2662f4(0x127),'productName':_0x2662f4(0x138),'stdDevName':_0x2662f4(0x13a),'stdDevpName':'母體標準差項:','sumName':_0x2662f4(0x11d),'varName':'變異數項:','varpName':_0x2662f4(0x12b),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','other':'其他','renderText':{'valueField':'{0}{1}','subtotal':_0x2662f4(0x11a),'grandTotal':'{0}\x20{1}','multipleGrandTotal':_0x2662f4(0x11e),'subtotalWithValue':_0x2662f4(0x11a)},'emptyPivot':{'filter':'篩選','row':'列','column':'欄','values':'值'},'dateGroup':{'second':'秒','year':'年','month':'月','day':'日','date':'日','hour':'小時','minute':'分鐘','hourMinute':_0x2662f4(0x132),'quarter':'季','monthDate':_0x2662f4(0x126),'yearQuarter':_0x2662f4(0x11c),'yearMonth':_0x2662f4(0x13b),'yearMonthDate':'年-月-日'},'numberGroupRange':_0x2662f4(0x130),'numberGroupClosedRange':_0x2662f4(0x123),'numberGroupBefore':_0x2662f4(0x11b),'numberGroupAfter':_0x2662f4(0x12e),'cellDateGroupDisplay':{'second':_0x2662f4(0x11e),'before':'之前','after':'之後','dayRange':'{0}\x20–\x20{1}','minute':_0x2662f4(0x11e),'hour':_0x2662f4(0x11e),'hourMinute':_0x2662f4(0x12c),'date':_0x2662f4(0x11e),'month':_0x2662f4(0x11e),'monthDate':'{0}-{1}','quarter':_0x2662f4(0x139),'year':_0x2662f4(0x11e),'yearMonth':_0x2662f4(0x120),'yearMonthDate':_0x2662f4(0x129),'yearQuarter':_0x2662f4(0x135)}}};function _0x409a(_0x1773d5,_0x50845f){_0x1773d5=_0x1773d5-0x118;const _0x3b16c6=_0x3b16();let _0x409a8d=_0x3b16c6[_0x1773d5];return _0x409a8d;}export{e as default};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IFieldsCollectionJSON } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { IAccessor } from '@univerjs/core';
|
|
3
|
+
import type { IPivotDisplayBaseInfo, IPivotTableConfig } from '../../const/type';
|
|
4
|
+
interface IGroupCommandContext {
|
|
5
|
+
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
7
|
+
pivotTableId: string;
|
|
8
|
+
currentConfig: IPivotTableConfig;
|
|
9
|
+
currentCollection: IFieldsCollectionJSON;
|
|
10
|
+
}
|
|
11
|
+
export declare function applyPivotGroupPreview(accessor: IAccessor, context: IGroupCommandContext, preview: IPivotDisplayBaseInfo): Promise<boolean>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IExcelDateGrouping } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
export interface ISetPivotExcelDateGroupCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
tableFieldId: string;
|
|
8
|
+
grouping: IExcelDateGrouping;
|
|
9
|
+
}
|
|
10
|
+
export declare const SetPivotExcelDateGroupCommand: ICommand<ISetPivotExcelDateGroupCommandParams>;
|
|
@@ -20,6 +20,8 @@ export interface ISetPivotFilterCommandParams {
|
|
|
20
20
|
* @property {string[]} items The items to set the filter. Those items will be checked in the pivot table.
|
|
21
21
|
*/
|
|
22
22
|
items: string[];
|
|
23
|
+
/** Aggregate Pivot items that contain both selected and unselected typed source values. */
|
|
24
|
+
partialItems?: string[];
|
|
23
25
|
/**
|
|
24
26
|
* @property {boolean} isAll The flag to set all items. True means all items, false means only the items in the items array.
|
|
25
27
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IManualGroup } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
export interface ISetPivotManualGroupsCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
sourceFieldId: string;
|
|
8
|
+
groups: IManualGroup[];
|
|
9
|
+
}
|
|
10
|
+
export declare const SetPivotManualGroupsCommand: ICommand<ISetPivotManualGroupsCommandParams>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INumberGrouping } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
export interface ISetPivotNumberGroupCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
tableFieldId: string;
|
|
8
|
+
grouping: INumberGrouping;
|
|
9
|
+
}
|
|
10
|
+
export declare const SetPivotNumberGroupCommand: ICommand<ISetPivotNumberGroupCommandParams>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { IPivotTableChangeSet } from '@univerjs-pro/engine-pivot';
|
|
2
|
-
import type { IAccessor, ICommandService, IMutationInfo } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor, ICommandInfo, ICommandService, IMutationInfo } from '@univerjs/core';
|
|
3
3
|
import type { IPivotPerformCheckParams } from '../../const/type';
|
|
4
|
+
export interface IMutationPairGroup {
|
|
5
|
+
redos: ICommandInfo[];
|
|
6
|
+
undos: ICommandInfo[];
|
|
7
|
+
reverse: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function executeWithRollback(groups: IMutationPairGroup[], commandService: ICommandService): boolean;
|
|
4
10
|
interface IPivotHostInfo {
|
|
5
11
|
pivotTableId: string;
|
|
6
12
|
unitId: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { IMutation } from '@univerjs/core';
|
|
2
|
-
import type { IGetPivotDataLocalMutationParams, ISendInitPivotTextLocalMutationParams, ISendPivotConfigLocalMutationParams, ISendPivotDataLocalMutationParams, ISendPivotViewLocalMutationParams } from '../../const/type';
|
|
2
|
+
import type { IGetPivotDataLocalMutationParams, IInitializePivotRuntimeParams, IPivotRuntimeInitializedParams, ISendInitPivotTextLocalMutationParams, ISendPivotConfigLocalMutationParams, ISendPivotDataLocalMutationParams, ISendPivotViewLocalMutationParams } from '../../const/type';
|
|
3
|
+
export declare const InitializePivotRuntimeLocalMutation: IMutation<IInitializePivotRuntimeParams>;
|
|
4
|
+
export declare const PivotRuntimeInitializedLocalMutation: IMutation<IPivotRuntimeInitializedParams>;
|
|
3
5
|
export declare const GetPivotDataLocalMutation: IMutation<IGetPivotDataLocalMutationParams>;
|
|
4
6
|
export declare const SendPivotDataLocalMutation: IMutation<ISendPivotDataLocalMutationParams>;
|
|
5
7
|
export declare const SendPivotViewLocalMutation: IMutation<ISendPivotViewLocalMutationParams>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateSystem } from '@univerjs/core';
|
|
2
2
|
export declare const SHEETS_PIVOT_PLUGIN_CONFIG_KEY = "sheets-pivot.config";
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
4
|
export interface IUniverSheetsPivotConfig {
|
|
@@ -16,6 +16,6 @@ export interface IUniverSheetsPivotConfig {
|
|
|
16
16
|
/**
|
|
17
17
|
* Define the date system used for pivot date grouping calculations. The default value is Date1900.
|
|
18
18
|
*/
|
|
19
|
-
dateSystem?:
|
|
19
|
+
dateSystem?: DateSystem;
|
|
20
20
|
}
|
|
21
21
|
export declare const defaultPluginConfig: IUniverSheetsPivotConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { IPivotTableDateGroupInfo, IPivotTableNumberGroupInfo, IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { Injector, IRange } from '@univerjs/core';
|
|
3
3
|
import type enUS from '../locale/en-US';
|
|
4
4
|
import type { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
|
|
@@ -60,6 +60,8 @@ export declare const defaultEmptyPivotDataCellStyle: {
|
|
|
60
60
|
};
|
|
61
61
|
export declare const defaultThemeStyle: IThemeStyle;
|
|
62
62
|
export declare function getDateGroupDisplayArgs(dateType: PivotDateGroupFieldDateTypeEnum, dateStr: string): string[] | undefined;
|
|
63
|
+
export declare function getExcelDateGroupStr(injector: Injector, group: IPivotTableDateGroupInfo, key: number, dateSystem: DateSystem): string;
|
|
64
|
+
export declare function getNumberGroupStr(injector: Injector, group: IPivotTableNumberGroupInfo, key: number | string): string;
|
|
63
65
|
export declare const generatorAdjustPositionData: (injector: Injector, data: PivotView, pivotTableConfig: IPivotTableConfig, textInfo: Record<string, string>, direction?: "ltr" | "rtl", dateSystem?: DateSystem) => IAdjustPivotTableRes;
|
|
64
66
|
export declare function transFromCellValue(cellData: IPivotViewCellData, isValue: boolean, format: string | undefined, textInfo: Record<string, string>, multipleGrandTotalLabel?: string, subtotalLabel?: string, dateSystem?: DateSystem): IPivotViewValueType;
|
|
65
67
|
export declare function formatPivotRenderText(textInfo: Record<string, string>, templateKey: string, fallbackTemplate: string, ...args: unknown[]): string;
|
|
@@ -90,7 +92,12 @@ export declare enum PivotDisplayDataType {
|
|
|
90
92
|
ResetPivotTable = "resetPivotTable",
|
|
91
93
|
SetOption = "setOption",
|
|
92
94
|
SetPivotLayout = "setPivotLayout",
|
|
93
|
-
SetPivotDateGroup = "setPivotDateGroup"
|
|
95
|
+
SetPivotDateGroup = "setPivotDateGroup",
|
|
96
|
+
SetPivotExcelDateGroup = "setPivotExcelDateGroup",
|
|
97
|
+
SetPivotNumberGroup = "setPivotNumberGroup",
|
|
98
|
+
SetPivotManualGroups = "setPivotManualGroups",
|
|
99
|
+
ManualGroupMembers = "manualGroupMembers",
|
|
100
|
+
NumberGroupDefaults = "numberGroupDefaults"
|
|
94
101
|
}
|
|
95
102
|
export declare const defaultTextInfo: {
|
|
96
103
|
'sheets-pivot.blankValue': string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataField, FieldsCollection, IBaseGroupFieldJSON, IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableShowDataAsInfo, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotLayoutTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { DataField, FieldsCollection, IBaseGroupFieldJSON, IDataFieldManagerBaseJSON, IExcelDateGrouping, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IManualGroup, INumberGrouping, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableShowDataAsInfo, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotLayoutTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { CellValueType, ICellData, IRange, IStyleData, IUndoRedoCommandInfosByInterceptor, IUnitRangeName, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
3
|
import type { PivotDisplayDataType, PositionType } from './const';
|
|
4
4
|
export interface IPivotPerformCheckParams {
|
|
@@ -6,8 +6,28 @@ export interface IPivotPerformCheckParams {
|
|
|
6
6
|
view: PivotView;
|
|
7
7
|
isEmpty: boolean;
|
|
8
8
|
}
|
|
9
|
+
export interface IPivotManualFilterCoordinationParams {
|
|
10
|
+
unitId: string;
|
|
11
|
+
subUnitId: string;
|
|
12
|
+
pivotTableId: string;
|
|
13
|
+
tableFieldId: string;
|
|
14
|
+
items: string[];
|
|
15
|
+
partialItems?: string[];
|
|
16
|
+
isAll?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IPivotManualFilterCoordinationResult {
|
|
19
|
+
handled: boolean;
|
|
20
|
+
result: boolean;
|
|
21
|
+
}
|
|
9
22
|
export declare const PIVOT_PERFORM_CHECK: import("@univerjs/core").IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
|
|
23
|
+
export declare const PIVOT_MANUAL_FILTER_COORDINATION: import("@univerjs/core").IAsyncInterceptor<IPivotManualFilterCoordinationResult, IPivotManualFilterCoordinationParams>;
|
|
10
24
|
export declare const PIVOT_MUTATION_GENERATE: import("@univerjs/core").IInterceptor<IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
|
|
25
|
+
export declare const PIVOT_FIELD_REMOVE_COORDINATION: import("@univerjs/core").IInterceptor<string[], {
|
|
26
|
+
unitId: string;
|
|
27
|
+
subUnitId: string;
|
|
28
|
+
pivotTableId: string;
|
|
29
|
+
fieldIds: string[];
|
|
30
|
+
}>;
|
|
11
31
|
export interface IPivotTableConfigChangeInfo {
|
|
12
32
|
unitId: string;
|
|
13
33
|
subUnitId: string;
|
|
@@ -27,6 +47,11 @@ export interface IPivotReportScope {
|
|
|
27
47
|
unitId: string;
|
|
28
48
|
subUnitId: string;
|
|
29
49
|
}
|
|
50
|
+
export interface IPivotCollectionChange {
|
|
51
|
+
/** Workbook owning the source collections, which can differ from the report's target workbook. */
|
|
52
|
+
unitId: string;
|
|
53
|
+
pivotTableIds: readonly string[];
|
|
54
|
+
}
|
|
30
55
|
export interface ICollectionChangeInfo {
|
|
31
56
|
token: string;
|
|
32
57
|
type: CollectionChangeEnum;
|
|
@@ -42,6 +67,7 @@ export interface IAddPivotTableParams {
|
|
|
42
67
|
export interface IUpdatePivotTableSourceRangeMutationParams {
|
|
43
68
|
pivotTableId: string;
|
|
44
69
|
pivotCacheId?: string;
|
|
70
|
+
preserveCacheId?: boolean;
|
|
45
71
|
deleteIds: string[];
|
|
46
72
|
collectionJSON: IFieldsCollectionJSON;
|
|
47
73
|
dataRangeInfo: IUnitRangeNameWithSubUnitId;
|
|
@@ -109,6 +135,8 @@ export interface ISetPivotOptionMutationParams {
|
|
|
109
135
|
subUnitId: string;
|
|
110
136
|
pivotTableId: string;
|
|
111
137
|
options: IPivotTableOptions;
|
|
138
|
+
/** Changeset options are complete snapshots; direct mutation callers still apply patches. */
|
|
139
|
+
replace?: boolean;
|
|
112
140
|
}
|
|
113
141
|
export interface ISetPivotLayoutMutationParams {
|
|
114
142
|
unitId: string;
|
|
@@ -210,6 +238,8 @@ export interface IPivotCellPositionInfo {
|
|
|
210
238
|
sheetName?: string;
|
|
211
239
|
}
|
|
212
240
|
export interface IPivotTableConfig {
|
|
241
|
+
/** User-facing report name. Missing legacy values are normalized to an empty string. */
|
|
242
|
+
name?: string;
|
|
213
243
|
targetCellInfo: IPivotCellPositionInfo;
|
|
214
244
|
sourceRangeInfo: IUnitRangeNameWithSubUnitId;
|
|
215
245
|
pivotCacheId?: string;
|
|
@@ -269,6 +299,7 @@ export interface IDataFieldManagerJSON extends IDataFieldManagerBaseJSON {
|
|
|
269
299
|
export interface ISheetsPivotCacheSnapshot {
|
|
270
300
|
pivotCacheId: string;
|
|
271
301
|
sourceRangeInfo: IUnitRangeNameWithSubUnitId;
|
|
302
|
+
retainedSource?: boolean;
|
|
272
303
|
}
|
|
273
304
|
export interface IPivotTableJson {
|
|
274
305
|
dataFieldManagerConfig: Record<string, IDataFieldManagerJSON>;
|
|
@@ -359,6 +390,9 @@ export interface IPivotDisplayFilterInfo {
|
|
|
359
390
|
pivotTableId: string;
|
|
360
391
|
items: string[];
|
|
361
392
|
itemTypes: PivotDataFieldDataTypeEnum[];
|
|
393
|
+
itemLabels?: Record<string, string>;
|
|
394
|
+
checkedItems?: string[];
|
|
395
|
+
partialItems?: string[];
|
|
362
396
|
filterInfo: IPivotTableFilterInfo | undefined;
|
|
363
397
|
sortInfo: IPivotTableSortInfo | undefined;
|
|
364
398
|
format: string | undefined;
|
|
@@ -389,6 +423,7 @@ export interface IGetMovePivotFieldDataParams {
|
|
|
389
423
|
}
|
|
390
424
|
export interface IGetRemovePivotFieldDataParams {
|
|
391
425
|
fieldIds: string[];
|
|
426
|
+
retainFilterFieldIds?: string[];
|
|
392
427
|
}
|
|
393
428
|
export type IGetPivotCollapseDataParams = {
|
|
394
429
|
tableFieldId: string;
|
|
@@ -405,6 +440,7 @@ export type IGetPivotCollapseDataParams = {
|
|
|
405
440
|
export interface IGetPivotFilterDataParams {
|
|
406
441
|
tableFieldId: string;
|
|
407
442
|
items: string[];
|
|
443
|
+
partialItems?: string[];
|
|
408
444
|
isAll?: boolean;
|
|
409
445
|
}
|
|
410
446
|
export interface IGetPivotValueFilterDataParams {
|
|
@@ -435,6 +471,18 @@ export interface IGetPivotDateGroupParams {
|
|
|
435
471
|
tableFieldId: string;
|
|
436
472
|
dateType: PivotDateGroupFieldDateTypeEnum;
|
|
437
473
|
}
|
|
474
|
+
export interface IGetPivotExcelDateGroupParams {
|
|
475
|
+
tableFieldId: string;
|
|
476
|
+
grouping: IExcelDateGrouping;
|
|
477
|
+
}
|
|
478
|
+
export interface IGetPivotNumberGroupParams {
|
|
479
|
+
tableFieldId: string;
|
|
480
|
+
grouping: INumberGrouping;
|
|
481
|
+
}
|
|
482
|
+
export interface IGetPivotManualGroupsParams {
|
|
483
|
+
sourceFieldId: string;
|
|
484
|
+
groups: IManualGroup[];
|
|
485
|
+
}
|
|
438
486
|
export interface IGetPivotDrillDownDataParams {
|
|
439
487
|
tuple: string[][];
|
|
440
488
|
}
|
|
@@ -478,6 +526,20 @@ export interface IGetPivotDataLocalMutationParams extends IPivotLocalMutationBas
|
|
|
478
526
|
setOptions?: IGetPivotOptionParams;
|
|
479
527
|
setPivotLayout?: IGetPivotLayoutParams;
|
|
480
528
|
setPivotDateGroup?: IGetPivotDateGroupParams;
|
|
529
|
+
setPivotExcelDateGroup?: IGetPivotExcelDateGroupParams;
|
|
530
|
+
setPivotNumberGroup?: IGetPivotNumberGroupParams;
|
|
531
|
+
setPivotManualGroups?: IGetPivotManualGroupsParams;
|
|
532
|
+
manualGroupMembers?: {
|
|
533
|
+
sourceFieldId: string;
|
|
534
|
+
paths: Array<{
|
|
535
|
+
path: string;
|
|
536
|
+
memberKey?: string;
|
|
537
|
+
tupleKey?: string;
|
|
538
|
+
}>;
|
|
539
|
+
};
|
|
540
|
+
numberGroupDefaults?: {
|
|
541
|
+
tableFieldId: string;
|
|
542
|
+
};
|
|
481
543
|
};
|
|
482
544
|
}
|
|
483
545
|
export interface IPivotDisplayResult {
|
|
@@ -503,8 +565,17 @@ export interface IPivotDisplayResult {
|
|
|
503
565
|
setPivotOption?: IPivotDisplayBaseInfo;
|
|
504
566
|
setPivotLayout?: IPivotDisplayBaseInfo;
|
|
505
567
|
setPivotDateGroup?: IPivotDisplayBaseInfo;
|
|
568
|
+
setPivotExcelDateGroup?: IPivotDisplayBaseInfo;
|
|
569
|
+
setPivotNumberGroup?: IPivotDisplayBaseInfo;
|
|
570
|
+
setPivotManualGroups?: IPivotDisplayBaseInfo;
|
|
571
|
+
manualGroupMembers?: {
|
|
572
|
+
members: IManualGroup['members'];
|
|
573
|
+
error?: 'invalidSelection' | 'ambiguousMember';
|
|
574
|
+
};
|
|
575
|
+
numberGroupDefaults?: INumberGrouping;
|
|
506
576
|
}
|
|
507
577
|
export interface IPivotUpdatePivotSourceInfo {
|
|
578
|
+
pivotCacheId: string;
|
|
508
579
|
view: IPivotViewJSON;
|
|
509
580
|
changesets: IPivotTableChangeSet[];
|
|
510
581
|
isEmpty: boolean;
|
|
@@ -512,8 +583,10 @@ export interface IPivotUpdatePivotSourceInfo {
|
|
|
512
583
|
collectionConfig: IFieldsCollectionJSON;
|
|
513
584
|
oldCollectionConfig: IFieldsCollectionJSON;
|
|
514
585
|
deleteIds?: string[];
|
|
586
|
+
createdFieldIds: string[];
|
|
515
587
|
}
|
|
516
588
|
export interface IPivotAddPivotTableInfo {
|
|
589
|
+
pivotCacheId: string;
|
|
517
590
|
view: IPivotViewJSON;
|
|
518
591
|
isEmpty: boolean;
|
|
519
592
|
fieldsConfig: IPivotTableSnapshot;
|
|
@@ -532,29 +605,45 @@ export interface IPivotDisplayBaseInfo {
|
|
|
532
605
|
isEmpty: boolean;
|
|
533
606
|
pivotTableConfig: IPivotTableConfig;
|
|
534
607
|
shouldBeAddedGroupJSON?: IBaseGroupFieldJSON;
|
|
608
|
+
addedGroupJSON?: IBaseGroupFieldJSON[];
|
|
609
|
+
removedGroupJSON?: IBaseGroupFieldJSON[];
|
|
535
610
|
}
|
|
536
611
|
export interface ISendPivotViewItemLocalParams extends IPivotLocalMutationBaseParams {
|
|
612
|
+
runtimeId?: string;
|
|
537
613
|
view: IPivotViewJSON;
|
|
538
614
|
pivotConfig: IPivotTableConfig;
|
|
539
615
|
type: PivotTableOperationEnum;
|
|
540
616
|
}
|
|
541
617
|
export interface ISendPivotViewLocalMutationParams {
|
|
618
|
+
runtimeIds?: Record<string, string>;
|
|
542
619
|
single?: ISendPivotViewItemLocalParams;
|
|
543
620
|
batch?: ISendPivotViewItemLocalParams[];
|
|
544
621
|
collectionConfig?: Record<string, IDataFieldManagerJSON>;
|
|
622
|
+
pivotCacheConfigs?: IPivotTableJson['pivotCacheConfigs'];
|
|
545
623
|
}
|
|
546
624
|
export interface ISendPivotConfigLocalMutationParams {
|
|
625
|
+
runtimeId?: string;
|
|
626
|
+
runtimeIds?: Record<string, string>;
|
|
547
627
|
unitId: string;
|
|
548
628
|
subUnitId: string;
|
|
549
629
|
oldSubUnitId: string;
|
|
550
630
|
pivotTableId: string;
|
|
551
631
|
pivotTableConfig: IPivotTableConfig;
|
|
552
632
|
collectionConfig: IDataFieldManagerJSON;
|
|
633
|
+
pivotCacheConfigs?: IPivotTableJson['pivotCacheConfigs'];
|
|
553
634
|
}
|
|
554
635
|
export interface ISendInitPivotTextLocalMutationParams {
|
|
555
636
|
textInfo: Record<string, string>;
|
|
556
637
|
direction: 'ltr' | 'rtl';
|
|
557
638
|
}
|
|
639
|
+
export interface IInitializePivotRuntimeParams {
|
|
640
|
+
unitId: string;
|
|
641
|
+
runtimeId: string;
|
|
642
|
+
sequence: number;
|
|
643
|
+
}
|
|
644
|
+
export interface IPivotRuntimeInitializedParams extends IInitializePivotRuntimeParams {
|
|
645
|
+
error?: 'calculation-failed';
|
|
646
|
+
}
|
|
558
647
|
export interface ISendPivotDataLocalMutationParams extends IPivotLocalMutationBaseParams {
|
|
559
648
|
version: string;
|
|
560
649
|
result: IPivotDisplayResult;
|
|
@@ -585,6 +674,7 @@ export interface IPivotPanelTableListItemBase {
|
|
|
585
674
|
format?: string;
|
|
586
675
|
subTotalType?: PivotSubtotalTypeEnum;
|
|
587
676
|
showDataAs?: IPivotTableShowDataAsInfo;
|
|
677
|
+
filterInfo?: IPivotTableFilterInfo;
|
|
588
678
|
}
|
|
589
679
|
export interface IPivotPanelSourceList {
|
|
590
680
|
id: string;
|
|
@@ -601,6 +691,7 @@ export interface IPivotPanelDataInfo {
|
|
|
601
691
|
columnFields: IPivotPanelTableListItemBase[];
|
|
602
692
|
valueFields: IPivotPanelTableListItemBase[];
|
|
603
693
|
filterFields: IPivotPanelTableListItemBase[];
|
|
694
|
+
hiddenFields?: IPivotPanelTableListItemBase[];
|
|
604
695
|
positionInfo: IPivotTableConfig['targetCellInfo'];
|
|
605
696
|
}
|
|
606
697
|
export interface ICurrentDataMatrix {
|
|
@@ -14,6 +14,8 @@ export declare class SheetsPivotRefRangeController extends Disposable {
|
|
|
14
14
|
private readonly _sheetInterceptorService;
|
|
15
15
|
disposableCollection: DisposableCollection;
|
|
16
16
|
constructor(_injector: Injector, _refRangeService: RefRangeService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetInterceptorService: SheetInterceptorService);
|
|
17
|
+
private _getStructureMutations;
|
|
18
|
+
private _getRemovedFieldMutations;
|
|
17
19
|
private _onRefRangeChange;
|
|
18
20
|
private _refRangeHandle;
|
|
19
21
|
getRefRangeMutationsByMoveRange(params: IMoveRangeCommandParams, unitId: string, subUnitId: string): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, IConfigService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
|
|
3
3
|
import { SheetsPivotTableConfigModel } from '../models/sheets-pivot-config-model';
|
|
4
4
|
import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
|
|
@@ -9,7 +9,14 @@ export declare class SheetsPivotRPCController extends Disposable {
|
|
|
9
9
|
private readonly _sheetsPivotTableAdaptorModel;
|
|
10
10
|
private readonly _sheetsPivotTableConfigModel;
|
|
11
11
|
readonly _activeDirtyManagerService: IActiveDirtyManagerService;
|
|
12
|
-
|
|
12
|
+
private readonly _configService;
|
|
13
|
+
private readonly _univerInstanceService;
|
|
14
|
+
private readonly _initializations;
|
|
15
|
+
private _runtimeSequence;
|
|
16
|
+
constructor(_commandService: ICommandService, _sheetsPivotRpcService: SheetsPivotRPCService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel, _sheetsPivotTableConfigModel: SheetsPivotTableConfigModel, _activeDirtyManagerService: IActiveDirtyManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
17
|
+
private _initRuntimeLifecycle;
|
|
18
|
+
private _initializeRuntime;
|
|
19
|
+
dispose(): void;
|
|
13
20
|
private _initDataSendListener;
|
|
14
21
|
/**
|
|
15
22
|
* - register dirty service, used to mark the pivot table view dirty
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PivotCallbackEnum, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotDataFieldSortOperatorEnum, PivotDataFieldSortTypeEnum, PivotDataFieldTypeEnum,
|
|
1
|
+
import { PivotCallbackEnum, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotDataFieldSortOperatorEnum, PivotDataFieldSortTypeEnum, PivotDataFieldTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotDateGroupingMode, PivotExcelDateGroupUnit, PivotFilterTypeEnum, PivotLayoutTypeEnum, PivotShowAsBaseItemTypeEnum, PivotShowAsTypeEnum, PivotSubtotalPositionEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotViewCellValueTypeEnum, ST_PivotFilterOperatorEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { PositionType } from '@univerjs-pro/sheets-pivot';
|
|
3
|
+
import { DateSystem } from '@univerjs/core';
|
|
3
4
|
/**
|
|
4
5
|
* @ignore
|
|
5
6
|
*/
|
|
@@ -50,6 +51,14 @@ export interface IFSheetsPivotEnumMixin {
|
|
|
50
51
|
* Represents the date type of the pivot date group field. {@link PivotDateGroupFieldDateTypeEnum}
|
|
51
52
|
*/
|
|
52
53
|
PivotDateGroupFieldDateTypeEnum: typeof PivotDateGroupFieldDateTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Represents the pivot table date grouping mode. {@link PivotDateGroupingMode}
|
|
56
|
+
*/
|
|
57
|
+
PivotDateGroupingMode: typeof PivotDateGroupingMode;
|
|
58
|
+
/**
|
|
59
|
+
* Represents a calendar unit for Excel-style date grouping. {@link PivotExcelDateGroupUnit}
|
|
60
|
+
*/
|
|
61
|
+
PivotExcelDateGroupUnit: typeof PivotExcelDateGroupUnit;
|
|
53
62
|
/**
|
|
54
63
|
* Represents the show-as calculation type of a pivot value field. {@link PivotShowAsTypeEnum}
|
|
55
64
|
*/
|
|
@@ -75,9 +84,9 @@ export interface IFSheetsPivotEnumMixin {
|
|
|
75
84
|
*/
|
|
76
85
|
PivotDataFieldTypeEnum: typeof PivotDataFieldTypeEnum;
|
|
77
86
|
/**
|
|
78
|
-
* Represents the date system used by pivot date group fields. {@link
|
|
87
|
+
* Represents the date system used by pivot date group fields. {@link DateSystem}
|
|
79
88
|
*/
|
|
80
|
-
|
|
89
|
+
DateSystem: typeof DateSystem;
|
|
81
90
|
/**
|
|
82
91
|
* Represents the pivot cell style type generated by the pivot view. {@link PivotCellStyleTypeEnum}
|
|
83
92
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDataFieldValue, IPivotTableOptions, IPivotViewValueType, PivotLayoutTypeEnum, PivotTable, PivotTableLabelField, PivotTableValueField } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import type { IDataFieldValue, IPivotTableOptions, IPivotTableRecordFilter, IPivotViewValueType, PivotLayoutTypeEnum, PivotTable, PivotTableLabelField, PivotTableValueField } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import type { Injector } from '@univerjs/core';
|
|
3
3
|
import type { IDataFieldDataArray, IDimensionInfo, IFGenericPivotFilterOptions, IPivotTableCubeConfig, IPivotTableValueOptions } from './type';
|
|
4
4
|
import { DataFieldManager, PivotDataFieldDataTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
@@ -286,6 +286,7 @@ export declare class FGenericPivotTable {
|
|
|
286
286
|
remove(): void;
|
|
287
287
|
}
|
|
288
288
|
export declare class DefaultDataFieldManager extends DataFieldManager {
|
|
289
|
+
compileRecordFilter(filter: IPivotTableRecordFilter): (value: IDataFieldValue) => boolean;
|
|
289
290
|
getRangeData(data: IDataFieldDataArray): {
|
|
290
291
|
header: string[];
|
|
291
292
|
data: IDataFieldValue[][];
|