@univerjs-pro/sheets-pivot 0.4.2 → 0.5.0-alpha.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/index.d.ts +1158 -29
- 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 +39 -20
- 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/commands/command/add-pivot-table-with-config.command.d.ts +0 -3
- package/lib/types/commands/command/util.d.ts +0 -12
- package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/change-apply-util.d.ts +0 -15
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +0 -7
- package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-field-position.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +0 -3
- package/lib/types/commands/mutations/update-value-position.mutation.d.ts +0 -3
- package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +0 -3
- package/lib/types/common/const.d.ts +0 -64
- package/lib/types/const/const.d.ts +0 -99
- package/lib/types/const/template.d.ts +0 -885
- package/lib/types/const/type.d.ts +0 -522
- package/lib/types/controllers/config.schema.d.ts +0 -6
- package/lib/types/controllers/const.d.ts +0 -1
- package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +0 -44
- package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +0 -20
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/fa-IR.d.ts +0 -3
- package/lib/types/locale/ru-RU.d.ts +0 -3
- package/lib/types/locale/vi-VN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts +0 -31
- package/lib/types/locale/zh-TW.d.ts +0 -3
- package/lib/types/models/sheets-pivot-config-model.d.ts +0 -58
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +0 -77
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +0 -101
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +0 -54
- package/lib/types/models/view-util.d.ts +0 -16
- package/lib/types/plugin.d.ts +0 -17
- package/lib/types/services/sheets-pivot-rpc.service.d.ts +0 -11
- package/lib/types/services/sheets-pivot-table.service.d.ts +0 -10
- package/lib/types/util.d.ts +0 -52
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x1317(_0x14f067,_0x128f31){const _0x22022d=_0x2202();return _0x1317=function(_0x131729,_0x3c6089){_0x131729=_0x131729-0x1c3;let _0x5ecbe2=_0x22022d[_0x131729];return _0x5ecbe2;},_0x1317(_0x14f067,_0x128f31);}function _0x2202(){const _0xb2cc36=['symbol','addField','updateFieldPosition','SetPivotFilterCommand','5410010rgbeTs','10bRXNDl','setLabelManualFilter','SetPivotSubtotalTypeMutation','subUnitId','SheetsPivotTableConfigModel','768mKVToD','number','UpdatePivotValuePositionCommand','getConfig','get','amd','function','setLabelSort','1162172XZkHlz','1805058OmenHy','9MZZsaa','UniverEnginePivot','object','getCollection','fieldIds','RemovePivotTableMutation','executeCommand','pivotTableId','getPivotTableByCell','_injector','defineProperty','renameField','Module','FPivotTable','ICommandService','SheetsPivotTableAdaptorModel','UniverSheetsFacade','updateValuePosition','11777337ujzKBS','unitId','removeField','@univerjs/core','toStringTag','FWorkbook','exports','SetPivotSortCommand','syncExecuteCommand','setSubtotalType','@univerjs/sheets/facade','385495QxzDGL','3460WgTlqg','AddPivotFieldCommand','getPivotTableConfig','21YnAEEN','UniverSheetsPivotFacade','MovePivotFieldCommand','RenamePivotFieldMutation','getPivotTableIdByCell','@univerjs-pro/sheets-pivot','UniverSheetsPivot','@univerjs-pro/engine-pivot','780272ODskYi'];_0x2202=function(){return _0xb2cc36;};return _0x2202();}(function(_0x38f8cd,_0x2620b4){const _0x2f0a6d=_0x1317,_0x22c687=_0x38f8cd();while(!![]){try{const _0x34e695=-parseInt(_0x2f0a6d(0x1c9))/0x1+parseInt(_0x2f0a6d(0x1ca))/0x2*(-parseInt(_0x2f0a6d(0x1e0))/0x3)+-parseInt(_0x2f0a6d(0x1e8))/0x4+-parseInt(_0x2f0a6d(0x1db))/0x5*(-parseInt(_0x2f0a6d(0x1e9))/0x6)+parseInt(_0x2f0a6d(0x1cd))/0x7*(parseInt(_0x2f0a6d(0x1d5))/0x8)+-parseInt(_0x2f0a6d(0x1ea))/0x9*(parseInt(_0x2f0a6d(0x1da))/0xa)+parseInt(_0x2f0a6d(0x1fc))/0xb;if(_0x34e695===_0x2620b4)break;else _0x22c687['push'](_0x22c687['shift']());}catch(_0xd87eee){_0x22c687['push'](_0x22c687['shift']());}}}(_0x2202,0x4a78c),function(_0x2dff2f,_0x534afe){const _0x164b27=_0x1317;typeof exports==_0x164b27(0x1ec)&&typeof module<'u'?_0x534afe(exports,require(_0x164b27(0x1ff)),require(_0x164b27(0x1c8)),require(_0x164b27(0x1d4)),require(_0x164b27(0x1d2))):typeof define==_0x164b27(0x1e6)&&define[_0x164b27(0x1e5)]?define([_0x164b27(0x1c4),_0x164b27(0x1ff),'@univerjs/sheets/facade','@univerjs-pro/engine-pivot',_0x164b27(0x1d2)],_0x534afe):(_0x2dff2f=typeof globalThis<'u'?globalThis:_0x2dff2f||self,_0x534afe(_0x2dff2f[_0x164b27(0x1ce)]={},_0x2dff2f['UniverCore'],_0x2dff2f[_0x164b27(0x1fa)],_0x2dff2f[_0x164b27(0x1eb)],_0x2dff2f[_0x164b27(0x1d3)]));}(this,function(_0x10f825,_0x26097,_0x1626ff,_0xadacc4,_0x2b6a91){'use strict';const _0x2b106c=_0x1317;var _0xeb87cf=Object[_0x2b106c(0x1f4)],_0x282aea=(_0x2d3b24,_0xe53ef3,_0x14eb4b)=>_0xe53ef3 in _0x2d3b24?_0xeb87cf(_0x2d3b24,_0xe53ef3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14eb4b}):_0x2d3b24[_0xe53ef3]=_0x14eb4b,_0x4dcf45=(_0x10e44b,_0xc5303a,_0x2f8dbe)=>_0x282aea(_0x10e44b,typeof _0xc5303a!=_0x2b106c(0x1d6)?_0xc5303a+'':_0xc5303a,_0x2f8dbe);class _0x3bc0a9{constructor(_0x5686a4,_0x5baea7,_0x21c37b,_0x1da93e){const _0x551d20=_0x2b106c;_0x4dcf45(this,_0x551d20(0x1fd)),_0x4dcf45(this,_0x551d20(0x1de)),_0x4dcf45(this,_0x551d20(0x1f1)),_0x4dcf45(this,_0x551d20(0x1f3)),(this[_0x551d20(0x1fd)]=_0x5686a4,this[_0x551d20(0x1de)]=_0x5baea7,this[_0x551d20(0x1f1)]=_0x21c37b,this[_0x551d20(0x1f3)]=_0x1da93e);}[_0x2b106c(0x1e3)](){const _0x31f0fe=_0x2b106c;return this[_0x31f0fe(0x1f3)][_0x31f0fe(0x1e4)](_0x2b6a91[_0x31f0fe(0x1df)])[_0x31f0fe(0x1cc)](this[_0x31f0fe(0x1fd)],this[_0x31f0fe(0x1de)],this['pivotTableId']);}async['remove'](){const _0x27ba2a=_0x2b106c;return await this['_injector']['get'](_0x26097[_0x27ba2a(0x1f8)])[_0x27ba2a(0x1c6)](_0x2b6a91[_0x27ba2a(0x1ef)]['id'],{'unitId':this[_0x27ba2a(0x1fd)],'subUnitId':this[_0x27ba2a(0x1de)],'pivotTableId':this[_0x27ba2a(0x1f1)]});}async[_0x2b106c(0x1d7)](_0x23a6a9,_0x32fe31,_0x396779){const _0x281192=_0x2b106c,_0x10725b=this[_0x281192(0x1f3)],_0x50187a=this[_0x281192(0x1fd)],_0x595903=this[_0x281192(0x1de)],_0x30ebde=this[_0x281192(0x1f1)],_0x57c5ee=_0x10725b[_0x281192(0x1e4)](_0x26097[_0x281192(0x1f8)]),_0x53d5b0=_0x10725b['get'](_0x2b6a91['SheetsPivotTableConfigModel']),_0x379902=_0x53d5b0[_0x281192(0x1cc)](_0x50187a,_0x595903,_0x30ebde),_0x129dd8=_0x53d5b0[_0x281192(0x1ed)](_0x50187a,_0x30ebde);if(!_0x379902||!_0x129dd8)return!0x1;let _0x4e81f5=_0x23a6a9;typeof _0x4e81f5==_0x281192(0x1e1)&&(_0x4e81f5=_0x53d5b0[_0x281192(0x1ed)](_0x50187a,_0x30ebde)[_0x281192(0x1ee)][_0x23a6a9]);const _0x3a498c={'unitId':_0x50187a,'subUnitId':_0x595903,'pivotTableId':_0x30ebde,'dataFieldId':_0x4e81f5,'fieldArea':_0x32fe31,'index':_0x396779};return _0x57c5ee[_0x281192(0x1f0)](_0x2b6a91[_0x281192(0x1cb)]['id'],_0x3a498c);}async[_0x2b106c(0x1fe)](_0x3bec06){const _0xc0a8f1=_0x2b106c,_0x3decbd=this[_0xc0a8f1(0x1f3)],_0x189379=this[_0xc0a8f1(0x1fd)],_0xeceffc=this[_0xc0a8f1(0x1de)],_0x3982fe=this[_0xc0a8f1(0x1f1)],_0x2e4aca=_0x3decbd['get'](_0x26097['ICommandService']),_0x5f08cf={'unitId':_0x189379,'subUnitId':_0xeceffc,'pivotTableId':_0x3982fe,'fieldIds':_0x3bec06};return _0x2e4aca[_0xc0a8f1(0x1f0)](_0x2b6a91['RemovePivotFieldCommand']['id'],_0x5f08cf);}async[_0x2b106c(0x1d8)](_0x14529f,_0x1d90aa,_0x3730b2){const _0x21b8cb=_0x2b106c,_0x5c170a=this['_injector'],_0x26dd83=this[_0x21b8cb(0x1fd)],_0xf75ff0=this[_0x21b8cb(0x1de)],_0x24d789=this[_0x21b8cb(0x1f1)],_0x285b84=_0x5c170a[_0x21b8cb(0x1e4)](_0x26097[_0x21b8cb(0x1f8)]),_0x59ce34={'unitId':_0x26dd83,'subUnitId':_0xf75ff0,'pivotTableId':_0x24d789,'fieldId':_0x14529f,'area':_0x1d90aa,'index':_0x3730b2};return _0x285b84[_0x21b8cb(0x1f0)](_0x2b6a91[_0x21b8cb(0x1cf)]['id'],_0x59ce34);}async[_0x2b106c(0x1fb)](_0x25d97f,_0x4b7765){const _0x3eb343=_0x2b106c,_0x2900be=this['_injector'],_0x475a81=this[_0x3eb343(0x1fd)],_0x48f171=this['subUnitId'],_0x44e73d=this[_0x3eb343(0x1f1)],_0x1524cf=_0x2900be[_0x3eb343(0x1e4)](_0x26097[_0x3eb343(0x1f8)]),_0x1cba52={'unitId':_0x475a81,'subUnitId':_0x48f171,'pivotTableId':_0x44e73d,'position':_0x25d97f,'index':_0x4b7765};return _0x1524cf[_0x3eb343(0x1f0)](_0x2b6a91[_0x3eb343(0x1e2)]['id'],_0x1cba52);}async[_0x2b106c(0x1c7)](_0x1df348,_0x558dc9){const _0x6b1cfa=_0x2b106c,_0x1033b1=this[_0x6b1cfa(0x1f3)],_0xb91831=this['unitId'],_0x5e748e=this[_0x6b1cfa(0x1de)],_0x342232=this[_0x6b1cfa(0x1f1)],_0x36fd9c=_0x1033b1['get'](_0x26097[_0x6b1cfa(0x1f8)]),_0x537e45={'unitId':_0xb91831,'subUnitId':_0x5e748e,'pivotTableId':_0x342232,'fieldId':_0x1df348,'subtotalType':_0x558dc9};return _0x36fd9c['executeCommand'](_0x2b6a91[_0x6b1cfa(0x1dd)]['id'],_0x537e45);}async[_0x2b106c(0x1e7)](_0x24c8cf,_0x10f8dd){const _0x3bd23a=_0x2b106c,_0x513b08=this['_injector'],_0x4d683f=this[_0x3bd23a(0x1fd)],_0x2b112b=this[_0x3bd23a(0x1de)],_0x4b491c=this[_0x3bd23a(0x1f1)],_0x5d0881=_0x513b08['get'](_0x26097[_0x3bd23a(0x1f8)]),_0x7126d0={'unitId':_0x4d683f,'subUnitId':_0x2b112b,'tableFieldId':_0x24c8cf,'pivotTableId':_0x4b491c,'info':_0x10f8dd};return _0x5d0881[_0x3bd23a(0x1f0)](_0x2b6a91[_0x3bd23a(0x1c5)]['id'],_0x7126d0);}async[_0x2b106c(0x1dc)](_0x84a03c,_0x961edc,_0x52060c){const _0x2153ac=_0x2b106c,_0x34c130=this[_0x2153ac(0x1f3)],_0x1856ea=this[_0x2153ac(0x1fd)],_0x143c72=this[_0x2153ac(0x1de)],_0x4c23d5=this[_0x2153ac(0x1f1)],_0x480854=_0x34c130['get'](_0x26097[_0x2153ac(0x1f8)]),_0x5f0e5f={'unitId':_0x1856ea,'subUnitId':_0x143c72,'pivotTableId':_0x4c23d5,'tableFieldId':_0x84a03c,'items':_0x961edc,'isAll':_0x52060c};return _0x480854['executeCommand'](_0x2b6a91[_0x2153ac(0x1d9)]['id'],_0x5f0e5f);}async[_0x2b106c(0x1f5)](_0x437099,_0x4c27a5){const _0x501cb7=_0x2b106c,_0x3b8b63=this[_0x501cb7(0x1f3)],_0x4349c8=this[_0x501cb7(0x1fd)],_0x5744f5=this['subUnitId'],_0xce6707=this[_0x501cb7(0x1f1)],_0x28fa82=_0x3b8b63['get'](_0x26097[_0x501cb7(0x1f8)]),_0x5b0721={'unitId':_0x4349c8,'subUnitId':_0x5744f5,'pivotTableId':_0xce6707,'fieldId':_0x437099,'name':_0x4c27a5};return _0x28fa82['executeCommand'](_0x2b6a91[_0x501cb7(0x1d0)]['id'],_0x5b0721);}}class _0x326c74 extends _0x1626ff['FWorkbook']{async['addPivotTable'](_0x4a27b0,_0x43e40b,_0x38494b){const _0x14f03b=_0x2b106c,_0x3e8bd0=this['_injector'],_0x262b14=_0x3e8bd0[_0x14f03b(0x1e4)](_0x26097[_0x14f03b(0x1f8)]),_0x2383db=_0xadacc4['generateHexNumber'](0x8),_0x4fd76b={'positionType':_0x43e40b,'pivotTableId':_0x2383db,'pivotTableConfig':{'targetCellInfo':_0x38494b,'sourceRangeInfo':_0x4a27b0,'isEmpty':!0x0}};if(await _0x262b14[_0x14f03b(0x1f0)](_0x2b6a91['AddPivotTableCommand']['id'],_0x4fd76b))return new _0x3bc0a9(_0x38494b['unitId'],_0x38494b[_0x14f03b(0x1de)],_0x2383db,_0x3e8bd0);}[_0x2b106c(0x1f2)](_0x150ebd,_0x129fd2,_0x1cb749,_0x8710ac){const _0x9ee93e=_0x2b106c,_0x1b778c=this[_0x9ee93e(0x1f3)],_0x1944b4=_0x1b778c[_0x9ee93e(0x1e4)](_0x2b6a91[_0x9ee93e(0x1f9)])[_0x9ee93e(0x1d1)](_0x150ebd,_0x129fd2,_0x1cb749,_0x8710ac);if(_0x1944b4)return new _0x3bc0a9(_0x150ebd,_0x129fd2,_0x1944b4,_0x1b778c);}}_0x1626ff[_0x2b106c(0x1c3)]['extend'](_0x326c74),_0x10f825[_0x2b106c(0x1f7)]=_0x3bc0a9,Object[_0x2b106c(0x1f4)](_0x10f825,Symbol[_0x2b106c(0x200)],{'value':_0x2b106c(0x1f6)});}));
|