@univerjs-pro/sheets-pivot 0.4.2 → 0.5.0-beta.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.
- package/README.md +13 -15
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/types/commands/command/add-pivot-field.command.d.ts +11 -0
- package/lib/types/commands/command/add-pivot-table.command.d.ts +9 -0
- package/lib/types/commands/command/move-pivot-field.command.d.ts +11 -0
- package/lib/types/commands/command/pivot-drill-down.command.d.ts +6 -0
- package/lib/types/commands/command/remove-pivot-field.command.d.ts +8 -0
- package/lib/types/commands/command/set-pivot-collapse.command.d.ts +9 -0
- package/lib/types/commands/command/set-pivot-filter.command.d.ts +10 -0
- package/lib/types/commands/command/set-pivot-sort.command.d.ts +10 -0
- package/lib/types/commands/command/update-pivot-setting.command.d.ts +15 -0
- package/lib/types/commands/command/update-pivot-source.command.d.ts +9 -0
- package/lib/types/commands/command/update-value-position.command.d.ts +8 -0
- package/lib/types/commands/command/util.d.ts +3 -1
- package/lib/types/common/const.d.ts +44 -44
- package/lib/types/const/const.d.ts +8 -0
- package/lib/types/const/type.d.ts +10 -7
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +12 -0
- package/lib/types/controllers/sheets-pivot-interceptor.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +7 -0
- package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +9 -0
- package/lib/types/facade/f-pivot-table.d.ts +83 -0
- package/lib/types/facade/f-workbook.d.ts +72 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +25 -2
- package/lib/types/services/sheets-pivot-table.service.d.ts +9 -1
- package/lib/types/util.d.ts +35 -3
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +40 -21
- package/lib/locale/en-US.json +0 -30
- package/lib/locale/fa-IR.json +0 -30
- package/lib/locale/ru-RU.json +0 -30
- package/lib/locale/vi-VN.json +0 -30
- package/lib/locale/zh-CN.json +0 -30
- package/lib/locale/zh-TW.json +0 -30
package/lib/types/index.d.ts
CHANGED
|
@@ -17,13 +17,36 @@ export { UpdatePivotFieldSourceInfoMutation } from './commands/mutations/update-
|
|
|
17
17
|
export { UpdatePivotTableSourceRangeMutation } from './commands/mutations/update-pivot-table-source.mutation';
|
|
18
18
|
export { UpdateValuePositionMutation } from './commands/mutations/update-value-position.mutation';
|
|
19
19
|
export { PivotTableViewDirtyMarkOperation } from './commands/operations/pivot-table-dirty-view.operation';
|
|
20
|
+
export { AddPivotFieldCommand } from './commands/command/add-pivot-field.command';
|
|
21
|
+
export { AddPivotTableCommand } from './commands/command/add-pivot-table.command';
|
|
22
|
+
export { MovePivotFieldCommand } from './commands/command/move-pivot-field.command';
|
|
23
|
+
export { PivotDrillDownCommand } from './commands/command/pivot-drill-down.command';
|
|
24
|
+
export { RemovePivotFieldCommand } from './commands/command/remove-pivot-field.command';
|
|
25
|
+
export { SetPivotCollapseCommand } from './commands/command/set-pivot-collapse.command';
|
|
26
|
+
export { SetPivotFilterCommand } from './commands/command/set-pivot-filter.command';
|
|
27
|
+
export { SetPivotSortCommand } from './commands/command/set-pivot-sort.command';
|
|
28
|
+
export { UpdatePivotFieldSettingCommand } from './commands/command/update-pivot-setting.command';
|
|
29
|
+
export { UpdatePivotTableSourceRangeCommand } from './commands/command/update-pivot-source.command';
|
|
30
|
+
export { UpdatePivotValuePositionCommand } from './commands/command/update-value-position.command';
|
|
20
31
|
export { BLANK_ROW_COUNT, getAdjustRangesPosition, PivotDisplayDataType, PositionType, SHEET_PIVOT_TABLE_PLUGIN } from './const/const';
|
|
21
32
|
export { DEFAULT_PIVOT_NUMBER, defaultThemeStyle, transFromCellValue } from './const/const';
|
|
22
|
-
export type { IAddPivotFieldMutationParams,
|
|
33
|
+
export type { IAddPivotFieldMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig, IRangePosition, IRemovePivotFieldMutationParams, IRemovePivotTableMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotPositionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, IUnitRangeNameWithSubUnitId, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams, } from './const/type';
|
|
23
34
|
export { PivotTableOperationEnum } from './const/type';
|
|
24
35
|
export { SheetsPivotTableConfigModel } from './models/sheets-pivot-config-model';
|
|
25
36
|
export { SheetsPivotDataSourceModel } from './models/sheets-pivot-data-source-model';
|
|
26
37
|
export { SheetsPivotTableAdaptorModel } from './models/sheets-pivot-table-adaptor-model';
|
|
27
38
|
export { UniverSheetsPivotTablePlugin } from './plugin';
|
|
28
39
|
export { SheetsPivotRPCService } from './services/sheets-pivot-rpc.service';
|
|
29
|
-
export { canUsePivot, getPivotCellInfo, getPivotInfoByLicense, getPivotTableInfo, unionPivotViewRange } from './util';
|
|
40
|
+
export { canUsePivot, generateSetRangeValueMutations, getEmptyPivotRanges, getInsertRowColMutations, getPivotCellInfo, getPivotInfoByLicense, getPivotTableInfo, unionPivotViewRange } from './util';
|
|
41
|
+
export type { IAddPivotFieldCommandParams } from './commands/command/add-pivot-field.command';
|
|
42
|
+
export type { IAddPivotTableCommandParams } from './commands/command/add-pivot-table.command';
|
|
43
|
+
export type { IMovePivotFieldCommandParams } from './commands/command/move-pivot-field.command';
|
|
44
|
+
export type { IPivotDrillDownCommandParams } from './commands/command/pivot-drill-down.command';
|
|
45
|
+
export type { IRemovePivotFieldCommandParams } from './commands/command/remove-pivot-field.command';
|
|
46
|
+
export type { ISetPivotCollapseCommandParams } from './commands/command/set-pivot-collapse.command';
|
|
47
|
+
export type { ISetPivotFilterCommandParams } from './commands/command/set-pivot-filter.command';
|
|
48
|
+
export type { ISetPivotSortCommandParams } from './commands/command/set-pivot-sort.command';
|
|
49
|
+
export type { IUpdatePivotFieldSettingCommandParams } from './commands/command/update-pivot-setting.command';
|
|
50
|
+
export type { IUpdatePivotTableSourceRangeCommandParams } from './commands/command/update-pivot-source.command';
|
|
51
|
+
export type { IUpdatePivotValuePositionCommandParams } from './commands/command/update-value-position.command';
|
|
52
|
+
export { SheetsPivotTableService } from './services/sheets-pivot-table.service';
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPivotPerformCheckParams } from '../const/type';
|
|
2
|
+
import { AsyncInterceptorManager, Disposable, InterceptorManager } from '@univerjs/core';
|
|
2
3
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
4
|
import { SheetsPivotTableAdaptorModel } from '../models/sheets-pivot-table-adaptor-model';
|
|
4
5
|
export declare class SheetsPivotTableService extends Disposable {
|
|
5
6
|
private _sheetInterceptorService;
|
|
6
7
|
private _sheetsPivotTableAdaptorModel;
|
|
8
|
+
readonly asyncInterceptor: AsyncInterceptorManager<{
|
|
9
|
+
PIVOT_PERFORM_CHECK: import('@univerjs/core/common/interceptor.js').IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
|
|
10
|
+
}>;
|
|
11
|
+
readonly interceptor: InterceptorManager<{
|
|
12
|
+
PIVOT_MUTATION_GENERATE: import('@univerjs/core').IInterceptor<import('@univerjs/core').IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
|
|
13
|
+
}>;
|
|
7
14
|
constructor(_sheetInterceptorService: SheetInterceptorService, _sheetsPivotTableAdaptorModel: SheetsPivotTableAdaptorModel);
|
|
8
15
|
private _init;
|
|
16
|
+
getPivotPerformCheck(params: IPivotPerformCheckParams): Promise<import('@univerjs/core').Nullable<boolean>>;
|
|
9
17
|
private _initViewModelBySheetInterceptor;
|
|
10
18
|
}
|
package/lib/types/util.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Injector, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IAccessor, IMutationInfo, Injector, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
2
|
+
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
+
import { ILabelViewHeaderMapItem, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
4
|
+
import { IGetPivotDataLocalMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
|
|
4
5
|
import { SheetsPivotDataSourceModel } from './models/sheets-pivot-data-source-model';
|
|
5
6
|
export declare const generateDefaultEmptyCache: (textOptions: {
|
|
6
7
|
filter: string;
|
|
@@ -50,3 +51,34 @@ export declare function getPivotInfoByLicense(defaultPivotCount: number, ls?: st
|
|
|
50
51
|
count: number;
|
|
51
52
|
timeValid: boolean;
|
|
52
53
|
};
|
|
54
|
+
export declare function generateSetRangeValueMutations(injector: Injector, unitId: string, subUnitId: string, ranges: IRange[]): {
|
|
55
|
+
setRangeValueUndoMutation: {
|
|
56
|
+
id: string;
|
|
57
|
+
params: ISetRangeValuesMutationParams;
|
|
58
|
+
};
|
|
59
|
+
setRangeValueRedoMutation: {
|
|
60
|
+
id: string;
|
|
61
|
+
params: ISetRangeValuesMutationParams;
|
|
62
|
+
};
|
|
63
|
+
shouldClear: boolean;
|
|
64
|
+
};
|
|
65
|
+
export declare function getEmptyPivotRanges(cellInfo: IPivotCellPositionInfo): {
|
|
66
|
+
startRow: number;
|
|
67
|
+
endRow: number;
|
|
68
|
+
startColumn: number;
|
|
69
|
+
endColumn: number;
|
|
70
|
+
}[];
|
|
71
|
+
export declare function getPivotRowColCount(view: PivotView, startCell: {
|
|
72
|
+
row: number;
|
|
73
|
+
col: number;
|
|
74
|
+
}, isEmpty: boolean): {
|
|
75
|
+
rowCount: number;
|
|
76
|
+
colCount: number;
|
|
77
|
+
};
|
|
78
|
+
export declare function getInsertRowColMutations(accessor: IAccessor, view: PivotView, cellInfo: IPivotCellPositionInfo, isEmpty: boolean): {
|
|
79
|
+
undos: IMutationInfo<object>[];
|
|
80
|
+
redos: IMutationInfo<object>[];
|
|
81
|
+
};
|
|
82
|
+
export declare function getHeaderViewMaxText(labelView: LabelViewItem, textInfo: Record<string, string>, isCol: boolean, formatMap: Record<string, string>): string;
|
|
83
|
+
export declare function getValueViewMaxText(rowView: PivotViewItem): string;
|
|
84
|
+
export declare function getCornerMaxText(corner: PivotViewItem): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x247be7,_0x3b48e6){const _0x732653=_0x401c,_0x384539=_0x247be7();while(!![]){try{const _0x19b229=parseInt(_0x732653(0x1d9))/0x1+-parseInt(_0x732653(0x1d5))/0x2+parseInt(_0x732653(0x1e1))/0x3*(-parseInt(_0x732653(0x1f0))/0x4)+parseInt(_0x732653(0x206))/0x5*(parseInt(_0x732653(0x1db))/0x6)+parseInt(_0x732653(0x1f3))/0x7+parseInt(_0x732653(0x1d7))/0x8*(-parseInt(_0x732653(0x1dd))/0x9)+parseInt(_0x732653(0x1fa))/0xa;if(_0x19b229===_0x3b48e6)break;else _0x384539['push'](_0x384539['shift']());}catch(_0x13deee){_0x384539['push'](_0x384539['shift']());}}}(_0x280a,0xd5bf1),function(_0x5af1b4,_0x2e1cfc){const _0x104fd4=_0x401c;typeof exports==_0x104fd4(0x1e5)&&typeof module<'u'?_0x2e1cfc(exports,require(_0x104fd4(0x1f2)),require(_0x104fd4(0x201)),require(_0x104fd4(0x1d8)),require(_0x104fd4(0x1f5))):typeof define==_0x104fd4(0x1dc)&&define[_0x104fd4(0x200)]?define([_0x104fd4(0x1e8),_0x104fd4(0x1f2),_0x104fd4(0x201),_0x104fd4(0x1d8),_0x104fd4(0x1f5)],_0x2e1cfc):(_0x5af1b4=typeof globalThis<'u'?globalThis:_0x5af1b4||self,_0x2e1cfc(_0x5af1b4['UniverProSheetsPivotFacade']={},_0x5af1b4[_0x104fd4(0x1d3)],_0x5af1b4['UniverSheetsFacade'],_0x5af1b4[_0x104fd4(0x1eb)],_0x5af1b4[_0x104fd4(0x1ea)]));}(this,function(_0x4cbd3b,_0x5dc1ad,_0x335d9c,_0x67b590,_0x478e1d){'use strict';const _0x43ca6b=_0x401c;var _0xf909d9=Object['defineProperty'],_0x437731=(_0x5de9e4,_0x11f64d,_0x58a056)=>_0x11f64d in _0x5de9e4?_0xf909d9(_0x5de9e4,_0x11f64d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58a056}):_0x5de9e4[_0x11f64d]=_0x58a056,_0x6171aa=(_0x31e77f,_0x4683fa,_0x5413fb)=>_0x437731(_0x31e77f,typeof _0x4683fa!='symbol'?_0x4683fa+'':_0x4683fa,_0x5413fb);class _0x35d6f6{constructor(_0x57d8f5,_0x4362af,_0x39761b,_0x3959a5){const _0x39032d=_0x401c;_0x6171aa(this,'unitId'),_0x6171aa(this,_0x39032d(0x1ef)),_0x6171aa(this,_0x39032d(0x1e7)),_0x6171aa(this,'_injector'),(this[_0x39032d(0x1f9)]=_0x57d8f5,this[_0x39032d(0x1ef)]=_0x4362af,this[_0x39032d(0x1e7)]=_0x39761b,this['_injector']=_0x3959a5);}[_0x43ca6b(0x1e9)](){const _0x363937=_0x43ca6b;return this[_0x363937(0x1e0)]['get'](_0x478e1d[_0x363937(0x207)])['getPivotTableConfig'](this['unitId'],this['subUnitId'],this[_0x363937(0x1e7)]);}async['remove'](){const _0x501e61=_0x43ca6b;return await this[_0x501e61(0x1e0)][_0x501e61(0x1e6)](_0x5dc1ad[_0x501e61(0x202)])[_0x501e61(0x1ff)](_0x478e1d[_0x501e61(0x204)]['id'],{'unitId':this['unitId'],'subUnitId':this[_0x501e61(0x1ef)],'pivotTableId':this[_0x501e61(0x1e7)]});}async['addField'](_0x450024,_0x5e7a05,_0x18ab17){const _0x448dbf=_0x43ca6b,_0x259b71=this[_0x448dbf(0x1e0)],_0x35aac2=this[_0x448dbf(0x1f9)],_0x21c47d=this[_0x448dbf(0x1ef)],_0x13b8bb=this[_0x448dbf(0x1e7)],_0x1ea348=_0x259b71[_0x448dbf(0x1e6)](_0x5dc1ad['ICommandService']),_0x283aa1=_0x259b71[_0x448dbf(0x1e6)](_0x478e1d['SheetsPivotTableConfigModel']),_0x301668=_0x283aa1['getPivotTableConfig'](_0x35aac2,_0x21c47d,_0x13b8bb),_0x53037b=_0x283aa1[_0x448dbf(0x1f4)](_0x35aac2,_0x13b8bb);if(!_0x301668||!_0x53037b)return!0x1;let _0x47df7b=_0x450024;typeof _0x47df7b==_0x448dbf(0x205)&&(_0x47df7b=_0x283aa1['getCollection'](_0x35aac2,_0x13b8bb)['fieldIds'][_0x450024]);const _0x521373={'unitId':_0x35aac2,'subUnitId':_0x21c47d,'pivotTableId':_0x13b8bb,'dataFieldId':_0x47df7b,'fieldArea':_0x5e7a05,'index':_0x18ab17};return _0x1ea348[_0x448dbf(0x1df)](_0x478e1d[_0x448dbf(0x1ee)]['id'],_0x521373);}async[_0x43ca6b(0x1f6)](_0x370ece){const _0x527131=_0x43ca6b,_0x12090a=this[_0x527131(0x1e0)],_0x48e527=this['unitId'],_0x4df0ec=this[_0x527131(0x1ef)],_0x14acfe=this['pivotTableId'],_0x4970bc=_0x12090a[_0x527131(0x1e6)](_0x5dc1ad[_0x527131(0x202)]),_0x158810={'unitId':_0x48e527,'subUnitId':_0x4df0ec,'pivotTableId':_0x14acfe,'fieldIds':_0x370ece};return _0x4970bc['executeCommand'](_0x478e1d[_0x527131(0x1f7)]['id'],_0x158810);}async[_0x43ca6b(0x1da)](_0x3ed42d,_0x59de46,_0x4edb4b){const _0x5312d5=_0x43ca6b,_0x573499=this[_0x5312d5(0x1e0)],_0xde2b23=this[_0x5312d5(0x1f9)],_0x48beff=this[_0x5312d5(0x1ef)],_0x5d38c9=this['pivotTableId'],_0x2e5cf8=_0x573499[_0x5312d5(0x1e6)](_0x5dc1ad[_0x5312d5(0x202)]),_0x38995b={'unitId':_0xde2b23,'subUnitId':_0x48beff,'pivotTableId':_0x5d38c9,'fieldId':_0x3ed42d,'area':_0x59de46,'index':_0x4edb4b};return _0x2e5cf8['executeCommand'](_0x478e1d[_0x5312d5(0x203)]['id'],_0x38995b);}async['updateValuePosition'](_0x342dfe,_0x41402d){const _0x48bf61=_0x43ca6b,_0x2501d7=this[_0x48bf61(0x1e0)],_0xe62fe2=this[_0x48bf61(0x1f9)],_0x492cb2=this['subUnitId'],_0x15ec5b=this[_0x48bf61(0x1e7)],_0x2ddbb5=_0x2501d7[_0x48bf61(0x1e6)](_0x5dc1ad[_0x48bf61(0x202)]),_0x5c4164={'unitId':_0xe62fe2,'subUnitId':_0x492cb2,'pivotTableId':_0x15ec5b,'position':_0x342dfe,'index':_0x41402d};return _0x2ddbb5[_0x48bf61(0x1df)](_0x478e1d[_0x48bf61(0x1fb)]['id'],_0x5c4164);}async['setSubtotalType'](_0x5afed4,_0x22598e){const _0x4434b7=_0x43ca6b,_0x16e6dc=this[_0x4434b7(0x1e0)],_0x5bb88a=this['unitId'],_0x443e20=this[_0x4434b7(0x1ef)],_0xac303a=this['pivotTableId'],_0x42e303=_0x16e6dc[_0x4434b7(0x1e6)](_0x5dc1ad[_0x4434b7(0x202)]),_0x536396={'unitId':_0x5bb88a,'subUnitId':_0x443e20,'pivotTableId':_0xac303a,'fieldId':_0x5afed4,'subtotalType':_0x22598e};return _0x42e303[_0x4434b7(0x1df)](_0x478e1d['SetPivotSubtotalTypeMutation']['id'],_0x536396);}async[_0x43ca6b(0x1fe)](_0x3377f9,_0x943da6){const _0xb72f69=_0x43ca6b,_0x4715ec=this[_0xb72f69(0x1e0)],_0xbd59b9=this[_0xb72f69(0x1f9)],_0x5ab688=this[_0xb72f69(0x1ef)],_0x2cef11=this[_0xb72f69(0x1e7)],_0x200a82=_0x4715ec[_0xb72f69(0x1e6)](_0x5dc1ad[_0xb72f69(0x202)]),_0xe0da49={'unitId':_0xbd59b9,'subUnitId':_0x5ab688,'tableFieldId':_0x3377f9,'pivotTableId':_0x2cef11,'info':_0x943da6};return _0x200a82['executeCommand'](_0x478e1d['SetPivotSortCommand']['id'],_0xe0da49);}async[_0x43ca6b(0x1de)](_0x4a1183,_0x4f8228,_0x23bba5){const _0x448739=_0x43ca6b,_0x5131e9=this[_0x448739(0x1e0)],_0x498245=this[_0x448739(0x1f9)],_0x47deb2=this[_0x448739(0x1ef)],_0x51c488=this[_0x448739(0x1e7)],_0x4a6437=_0x5131e9[_0x448739(0x1e6)](_0x5dc1ad[_0x448739(0x202)]),_0x4f13d6={'unitId':_0x498245,'subUnitId':_0x47deb2,'pivotTableId':_0x51c488,'tableFieldId':_0x4a1183,'items':_0x4f8228,'isAll':_0x23bba5};return _0x4a6437[_0x448739(0x1df)](_0x478e1d[_0x448739(0x1e4)]['id'],_0x4f13d6);}async[_0x43ca6b(0x1d6)](_0x54827f,_0x4bc220){const _0x3150c4=_0x43ca6b,_0x244c4e=this['_injector'],_0x129f97=this[_0x3150c4(0x1f9)],_0x377501=this[_0x3150c4(0x1ef)],_0x19accf=this['pivotTableId'],_0x30434c=_0x244c4e[_0x3150c4(0x1e6)](_0x5dc1ad[_0x3150c4(0x202)]),_0x51a74d={'unitId':_0x129f97,'subUnitId':_0x377501,'pivotTableId':_0x19accf,'fieldId':_0x54827f,'name':_0x4bc220};return _0x30434c[_0x3150c4(0x1df)](_0x478e1d[_0x3150c4(0x1e2)]['id'],_0x51a74d);}}class _0x582375 extends _0x335d9c[_0x43ca6b(0x1fd)]{async[_0x43ca6b(0x1f1)](_0x36dcaa,_0x130962,_0x56abac){const _0x3602a2=_0x43ca6b,_0x5a1a75=this[_0x3602a2(0x1e0)],_0x589a2a=_0x5a1a75[_0x3602a2(0x1e6)](_0x5dc1ad[_0x3602a2(0x202)]),_0x3f8a2e=_0x67b590[_0x3602a2(0x1ec)](0x8),_0x283d69={'positionType':_0x130962,'pivotTableId':_0x3f8a2e,'pivotTableConfig':{'targetCellInfo':_0x56abac,'sourceRangeInfo':_0x36dcaa,'isEmpty':!0x0}};if(await _0x589a2a['executeCommand'](_0x478e1d['AddPivotTableCommand']['id'],_0x283d69))return new _0x35d6f6(_0x56abac[_0x3602a2(0x1f9)],_0x56abac[_0x3602a2(0x1ef)],_0x3f8a2e,_0x5a1a75);}['getPivotTableByCell'](_0x295eeb,_0x46e7af,_0x2c1c80,_0x1d991b){const _0x2ee3b4=_0x43ca6b,_0x1e2c71=this['_injector'],_0x3dc64a=_0x1e2c71['get'](_0x478e1d[_0x2ee3b4(0x1fc)])[_0x2ee3b4(0x1ed)](_0x295eeb,_0x46e7af,_0x2c1c80,_0x1d991b);if(_0x3dc64a)return new _0x35d6f6(_0x295eeb,_0x46e7af,_0x3dc64a,_0x1e2c71);}}_0x335d9c[_0x43ca6b(0x1fd)][_0x43ca6b(0x1d4)](_0x582375),_0x4cbd3b[_0x43ca6b(0x1e3)]=_0x35d6f6,Object['defineProperty'](_0x4cbd3b,Symbol[_0x43ca6b(0x208)],{'value':_0x43ca6b(0x1f8)});}));function _0x401c(_0xb81f60,_0xb9a96d){const _0x280a0d=_0x280a();return _0x401c=function(_0x401ce9,_0x1c6423){_0x401ce9=_0x401ce9-0x1d3;let _0x3a7634=_0x280a0d[_0x401ce9];return _0x3a7634;},_0x401c(_0xb81f60,_0xb9a96d);}function _0x280a(){const _0x535ec=['function','27RxqwCy','setLabelManualFilter','executeCommand','_injector','44670qnIJWY','RenamePivotFieldMutation','FPivotTable','SetPivotFilterCommand','object','get','pivotTableId','exports','getConfig','UniverProSheetsPivot','UniverProEnginePivot','generateHexNumber','getPivotTableIdByCell','AddPivotFieldCommand','subUnitId','364FlpeYX','addPivotTable','@univerjs/core','636440YAlrbT','getCollection','@univerjs-pro/sheets-pivot','removeField','RemovePivotFieldCommand','Module','unitId','24031180igrnIE','UpdatePivotValuePositionCommand','SheetsPivotTableAdaptorModel','FWorkbook','setLabelSort','syncExecuteCommand','amd','@univerjs/sheets/facade','ICommandService','MovePivotFieldCommand','RemovePivotTableMutation','number','4013355gTZXht','SheetsPivotTableConfigModel','toStringTag','UniverCore','extend','2054378PBtwNf','renameField','2013136kfjfjQ','@univerjs-pro/engine-pivot','715901gtGLTL','updateFieldPosition','6sJpBXs'];_0x280a=function(){return _0x535ec;};return _0x280a();}
|