@univerjs-pro/sheets-pivot 0.5.0-alpha.0 → 0.5.0-beta.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/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/ru-RU.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-TW.js +1 -1
- package/lib/types/commands/command/add-pivot-field.command.d.ts +11 -0
- package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +3 -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 +14 -0
- package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/change-apply-util.d.ts +15 -0
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +7 -0
- package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-field-position.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-value-position.mutation.d.ts +3 -0
- package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +3 -0
- package/lib/types/common/const.d.ts +64 -0
- package/lib/types/const/const.d.ts +107 -0
- package/lib/types/const/template.d.ts +885 -0
- package/lib/types/const/type.d.ts +525 -0
- package/lib/types/controllers/config.schema.d.ts +6 -0
- package/lib/types/controllers/const.d.ts +1 -0
- package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +44 -0
- 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/controllers/sheets-pivot-rpc.controller.d.ts +20 -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 +52 -1158
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +31 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/sheets-pivot-config-model.d.ts +58 -0
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +77 -0
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +101 -0
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +54 -0
- package/lib/types/models/view-util.d.ts +16 -0
- package/lib/types/plugin.d.ts +17 -0
- package/lib/types/services/sheets-pivot-rpc.service.d.ts +11 -0
- package/lib/types/services/sheets-pivot-table.service.d.ts +18 -0
- package/lib/types/util.d.ts +84 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/ru-RU.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-TW.js +1 -1
- package/package.json +14 -14
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ae8d5=_0x1364;(function(_0x3dacad,_0x470a58){const _0x17e889=_0x1364,_0x1d9cc8=_0x3dacad();while(!![]){try{const _0x3f29f8=parseInt(_0x17e889(0x145))/0x1+-parseInt(_0x17e889(0x130))/0x2*(-parseInt(_0x17e889(0x11b))/0x3)+-parseInt(_0x17e889(0x11f))/0x4+parseInt(_0x17e889(0x124))/0x5+-parseInt(_0x17e889(0x12a))/0x6+-parseInt(_0x17e889(0x125))/0x7*(parseInt(_0x17e889(0x126))/0x8)+-parseInt(_0x17e889(0x12f))/0x9*(-parseInt(_0x17e889(0x11d))/0xa);if(_0x3f29f8===_0x470a58)break;else _0x1d9cc8['push'](_0x1d9cc8['shift']());}catch(_0x489c51){_0x1d9cc8['push'](_0x1d9cc8['shift']());}}}(_0x4d22,0xa748d));function _0x4d22(){const _0xf00657=['updateFieldPosition','5445366wwkQfx','syncExecuteCommand','AddPivotTableCommand','RenamePivotFieldMutation','@univerjs/sheets/facade','4338aoYzzK','1766isdWfv','symbol','getPivotTableConfig','number','pivotTableId','subUnitId','addField','removeField','getCollection','ICommandService','get','remove','fieldIds','renameField','getPivotTableIdByCell','RemovePivotFieldCommand','SetPivotFilterCommand','extend','unitId','SetPivotSubtotalTypeMutation','updateValuePosition','528925gwxpax','AddPivotFieldCommand','executeCommand','78fsJWBF','getConfig','18670zYOtVr','UpdatePivotValuePositionCommand','126120ySGXLt','RemovePivotTableMutation','SheetsPivotTableConfigModel','FWorkbook','_injector','2435400zDQFUQ','2201983WsWnxv','8Sirxbf','@univerjs/core','SheetsPivotTableAdaptorModel'];_0x4d22=function(){return _0xf00657;};return _0x4d22();}var C=Object['defineProperty'],g=(_0x2d31c2,_0x1885a0,_0x1fd19b)=>_0x1885a0 in _0x2d31c2?C(_0x2d31c2,_0x1885a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fd19b}):_0x2d31c2[_0x1885a0]=_0x1fd19b,l=(_0x31a6ef,_0x42aab5,_0x1c19d7)=>g(_0x31a6ef,typeof _0x42aab5!=_0x5ae8d5(0x131)?_0x42aab5+'':_0x42aab5,_0x1c19d7);function _0x1364(_0x3e35a5,_0x945067){const _0x4d22f9=_0x4d22();return _0x1364=function(_0x136496,_0x43fde7){_0x136496=_0x136496-0x11a;let _0x423421=_0x4d22f9[_0x136496];return _0x423421;},_0x1364(_0x3e35a5,_0x945067);}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const r=require(_0x5ae8d5(0x127)),b=require(_0x5ae8d5(0x12e)),P=require('@univerjs-pro/engine-pivot'),a=require('@univerjs-pro/sheets-pivot');class I{constructor(_0x161e05,_0x4eb5b4,_0x571327,_0x4d3f63){const _0x51cff2=_0x5ae8d5;l(this,_0x51cff2(0x142)),l(this,_0x51cff2(0x135)),l(this,_0x51cff2(0x134)),l(this,'_injector'),(this[_0x51cff2(0x142)]=_0x161e05,this[_0x51cff2(0x135)]=_0x4eb5b4,this['pivotTableId']=_0x571327,this[_0x51cff2(0x123)]=_0x4d3f63);}[_0x5ae8d5(0x11c)](){const _0x155f40=_0x5ae8d5;return this[_0x155f40(0x123)][_0x155f40(0x13a)](a[_0x155f40(0x121)])['getPivotTableConfig'](this[_0x155f40(0x142)],this[_0x155f40(0x135)],this[_0x155f40(0x134)]);}async[_0x5ae8d5(0x13b)](){const _0x2c7578=_0x5ae8d5;return await this[_0x2c7578(0x123)]['get'](r[_0x2c7578(0x139)])[_0x2c7578(0x12b)](a[_0x2c7578(0x120)]['id'],{'unitId':this[_0x2c7578(0x142)],'subUnitId':this[_0x2c7578(0x135)],'pivotTableId':this[_0x2c7578(0x134)]});}async[_0x5ae8d5(0x136)](_0x43ecd1,_0x24a27c,_0x2e1e57){const _0x5358e7=_0x5ae8d5,_0x54f82d=this['_injector'],_0x53d672=this[_0x5358e7(0x142)],_0x64b8a9=this[_0x5358e7(0x135)],_0xed9f41=this[_0x5358e7(0x134)],_0x4b21c5=_0x54f82d['get'](r[_0x5358e7(0x139)]),_0x41f0f0=_0x54f82d[_0x5358e7(0x13a)](a[_0x5358e7(0x121)]),_0x25e30e=_0x41f0f0[_0x5358e7(0x132)](_0x53d672,_0x64b8a9,_0xed9f41),_0x488ce1=_0x41f0f0[_0x5358e7(0x138)](_0x53d672,_0xed9f41);if(!_0x25e30e||!_0x488ce1)return!0x1;let _0x460f99=_0x43ecd1;typeof _0x460f99==_0x5358e7(0x133)&&(_0x460f99=_0x41f0f0[_0x5358e7(0x138)](_0x53d672,_0xed9f41)[_0x5358e7(0x13c)][_0x43ecd1]);const _0x5e7cad={'unitId':_0x53d672,'subUnitId':_0x64b8a9,'pivotTableId':_0xed9f41,'dataFieldId':_0x460f99,'fieldArea':_0x24a27c,'index':_0x2e1e57};return _0x4b21c5[_0x5358e7(0x11a)](a[_0x5358e7(0x146)]['id'],_0x5e7cad);}async[_0x5ae8d5(0x137)](_0x16e3d2){const _0x2847d7=_0x5ae8d5,_0x249628=this[_0x2847d7(0x123)],_0x5d5d1a=this[_0x2847d7(0x142)],_0x2b658f=this[_0x2847d7(0x135)],_0x48ea53=this[_0x2847d7(0x134)],_0x367bf5=_0x249628['get'](r['ICommandService']),_0x45163c={'unitId':_0x5d5d1a,'subUnitId':_0x2b658f,'pivotTableId':_0x48ea53,'fieldIds':_0x16e3d2};return _0x367bf5['executeCommand'](a[_0x2847d7(0x13f)]['id'],_0x45163c);}async[_0x5ae8d5(0x129)](_0x208d70,_0x4fc5d2,_0x5ed4be){const _0x420d97=_0x5ae8d5,_0x2d69bf=this[_0x420d97(0x123)],_0x8e9da5=this[_0x420d97(0x142)],_0x5b6d40=this['subUnitId'],_0x4f047d=this[_0x420d97(0x134)],_0x34b354=_0x2d69bf[_0x420d97(0x13a)](r[_0x420d97(0x139)]),_0x2a07df={'unitId':_0x8e9da5,'subUnitId':_0x5b6d40,'pivotTableId':_0x4f047d,'fieldId':_0x208d70,'area':_0x4fc5d2,'index':_0x5ed4be};return _0x34b354['executeCommand'](a['MovePivotFieldCommand']['id'],_0x2a07df);}async[_0x5ae8d5(0x144)](_0x1ddaa3,_0x5bf598){const _0x3d85cb=_0x5ae8d5,_0xe7731=this[_0x3d85cb(0x123)],_0x3ab2ba=this[_0x3d85cb(0x142)],_0x1f6ac9=this[_0x3d85cb(0x135)],_0x5e6702=this[_0x3d85cb(0x134)],_0x1dc39d=_0xe7731[_0x3d85cb(0x13a)](r[_0x3d85cb(0x139)]),_0x4a7168={'unitId':_0x3ab2ba,'subUnitId':_0x1f6ac9,'pivotTableId':_0x5e6702,'position':_0x1ddaa3,'index':_0x5bf598};return _0x1dc39d[_0x3d85cb(0x11a)](a[_0x3d85cb(0x11e)]['id'],_0x4a7168);}async['setSubtotalType'](_0x5464c4,_0x576935){const _0x51b539=_0x5ae8d5,_0x2d167d=this[_0x51b539(0x123)],_0x48104c=this[_0x51b539(0x142)],_0x29b2a0=this['subUnitId'],_0xa4e231=this[_0x51b539(0x134)],_0x40de96=_0x2d167d['get'](r[_0x51b539(0x139)]),_0x512e48={'unitId':_0x48104c,'subUnitId':_0x29b2a0,'pivotTableId':_0xa4e231,'fieldId':_0x5464c4,'subtotalType':_0x576935};return _0x40de96[_0x51b539(0x11a)](a[_0x51b539(0x143)]['id'],_0x512e48);}async['setLabelSort'](_0x3d3aba,_0x143129){const _0x49834f=_0x5ae8d5,_0x3041d4=this['_injector'],_0x4a0e36=this[_0x49834f(0x142)],_0x111cdf=this[_0x49834f(0x135)],_0x420fa3=this[_0x49834f(0x134)],_0x510958=_0x3041d4[_0x49834f(0x13a)](r[_0x49834f(0x139)]),_0x486bfc={'unitId':_0x4a0e36,'subUnitId':_0x111cdf,'tableFieldId':_0x3d3aba,'pivotTableId':_0x420fa3,'info':_0x143129};return _0x510958[_0x49834f(0x11a)](a['SetPivotSortCommand']['id'],_0x486bfc);}async['setLabelManualFilter'](_0xa4528d,_0x38266a,_0x164d9a){const _0xba181d=_0x5ae8d5,_0x480452=this[_0xba181d(0x123)],_0x36ae4c=this[_0xba181d(0x142)],_0x5c5da3=this[_0xba181d(0x135)],_0x35a766=this[_0xba181d(0x134)],_0x242153=_0x480452[_0xba181d(0x13a)](r[_0xba181d(0x139)]),_0x33adf8={'unitId':_0x36ae4c,'subUnitId':_0x5c5da3,'pivotTableId':_0x35a766,'tableFieldId':_0xa4528d,'items':_0x38266a,'isAll':_0x164d9a};return _0x242153[_0xba181d(0x11a)](a[_0xba181d(0x140)]['id'],_0x33adf8);}async[_0x5ae8d5(0x13d)](_0x3171ff,_0x4d471f){const _0x42bd91=_0x5ae8d5,_0x418907=this[_0x42bd91(0x123)],_0xaa24d6=this[_0x42bd91(0x142)],_0x2cc1d2=this[_0x42bd91(0x135)],_0x343977=this[_0x42bd91(0x134)],_0x5631f9=_0x418907[_0x42bd91(0x13a)](r['ICommandService']),_0x33b62a={'unitId':_0xaa24d6,'subUnitId':_0x2cc1d2,'pivotTableId':_0x343977,'fieldId':_0x3171ff,'name':_0x4d471f};return _0x5631f9['executeCommand'](a[_0x42bd91(0x12d)]['id'],_0x33b62a);}}class S extends b[_0x5ae8d5(0x122)]{async['addPivotTable'](_0x41073f,_0x3f813f,_0x41b938){const _0x1a5ba5=_0x5ae8d5,_0x30cdbd=this[_0x1a5ba5(0x123)],_0x138d25=_0x30cdbd['get'](r['ICommandService']),_0x2f71af=P['generateHexNumber'](0x8),_0x1800a2={'positionType':_0x3f813f,'pivotTableId':_0x2f71af,'pivotTableConfig':{'targetCellInfo':_0x41b938,'sourceRangeInfo':_0x41073f,'isEmpty':!0x0}};if(await _0x138d25[_0x1a5ba5(0x11a)](a[_0x1a5ba5(0x12c)]['id'],_0x1800a2))return new I(_0x41b938[_0x1a5ba5(0x142)],_0x41b938['subUnitId'],_0x2f71af,_0x30cdbd);}['getPivotTableByCell'](_0xd19943,_0xe29ccf,_0x2e58ea,_0x5d703c){const _0x300048=_0x5ae8d5,_0x47b337=this[_0x300048(0x123)],_0x4a676b=_0x47b337['get'](a[_0x300048(0x128)])[_0x300048(0x13e)](_0xd19943,_0xe29ccf,_0x2e58ea,_0x5d703c);if(_0x4a676b)return new I(_0xd19943,_0xe29ccf,_0x4a676b,_0x47b337);}}b[_0x5ae8d5(0x122)][_0x5ae8d5(0x141)](S),exports['FPivotTable']=I;
|