@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3
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/fr-FR.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/fr-FR.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/common/const.d.ts +41 -41
- package/lib/types/controllers/const.d.ts +1 -1
- 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/fr-FR.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 +11 -34
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3139(){const _0x44163c=['pivotTableId','updateFieldPosition','symbol','RemovePivotFieldCommand','@univerjs-pro/sheets-pivot','getPivotTableRangeInfo','get','remove','move','extend','ICommandService','number','SetPivotSubtotalTypeMutation','10nfkKrQ','MovePivotTableCommand','subUnitId','setSubtotalType','15219999QernWC','29887416QDoQei','144dJWFfM','2939122lqCzMB','@univerjs/core','syncExecuteCommand','setLabelSort','getPivotTableIdByCell','defineProperty','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','updateValuePosition','generateHexNumber','119788bygSFO','RenamePivotFieldMutation','rangeInfo','SetPivotSortCommand','getConfig','12234929AEshtt','getPivotTableConfig','unitId','fieldIds','5WCXZfo','Module','5591502FcHFBz','15853035MJUcAG','addPivotTable','setLabelManualFilter','8PzvAdQ','FWorkbook','MovePivotFieldCommand','SheetsPivotTableConfigModel','executeCommand','AddPivotTableCommand','_injector','@univerjs-pro/engine-pivot','getUnit','1rgSISi','toStringTag'];_0x3139=function(){return _0x44163c;};return _0x3139();}const _0x522aec=_0x8163;function _0x8163(_0x1cd7a2,_0x16533d){const _0x3139dd=_0x3139();return _0x8163=function(_0x81632,_0x5e6d80){_0x81632=_0x81632-0x1b4;let _0x51c459=_0x3139dd[_0x81632];return _0x51c459;},_0x8163(_0x1cd7a2,_0x16533d);}(function(_0x4399ee,_0x52ee5e){const _0x430b02=_0x8163,_0x33f3fa=_0x4399ee();while(!![]){try{const _0x2b5e59=-parseInt(_0x430b02(0x1dd))/0x1*(-parseInt(_0x430b02(0x1bc))/0x2)+-parseInt(_0x430b02(0x1bb))/0x3*(-parseInt(_0x430b02(0x1c5))/0x4)+-parseInt(_0x430b02(0x1ce))/0x5*(parseInt(_0x430b02(0x1d0))/0x6)+parseInt(_0x430b02(0x1ca))/0x7*(parseInt(_0x430b02(0x1d4))/0x8)+-parseInt(_0x430b02(0x1b9))/0x9*(parseInt(_0x430b02(0x1b5))/0xa)+parseInt(_0x430b02(0x1d1))/0xb+-parseInt(_0x430b02(0x1ba))/0xc;if(_0x2b5e59===_0x52ee5e)break;else _0x33f3fa['push'](_0x33f3fa['shift']());}catch(_0x23e973){_0x33f3fa['push'](_0x33f3fa['shift']());}}}(_0x3139,0xefd83));var C=Object[_0x522aec(0x1c1)],p=(_0x503987,_0x683d44,_0x52747d)=>_0x683d44 in _0x503987?C(_0x503987,_0x683d44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52747d}):_0x503987[_0x683d44]=_0x52747d,l=(_0x290e30,_0x455d77,_0x129984)=>p(_0x290e30,typeof _0x455d77!=_0x522aec(0x1e1)?_0x455d77+'':_0x455d77,_0x129984);Object[_0x522aec(0x1c1)](exports,Symbol[_0x522aec(0x1de)],{'value':_0x522aec(0x1cf)});const r=require(_0x522aec(0x1bd)),b=require('@univerjs/sheets/facade'),S=require(_0x522aec(0x1db)),d=require(_0x522aec(0x1e3));class I{constructor(_0x55c4b5,_0x10e8ab,_0x20db25,_0x5ef477){const _0x493c72=_0x522aec;l(this,'unitId'),l(this,_0x493c72(0x1b7)),l(this,_0x493c72(0x1df)),l(this,_0x493c72(0x1da)),(this[_0x493c72(0x1cc)]=_0x55c4b5,this[_0x493c72(0x1b7)]=_0x10e8ab,this[_0x493c72(0x1df)]=_0x20db25,this['_injector']=_0x5ef477);}[_0x522aec(0x1c9)](){const _0x2e8a97=_0x522aec;return this[_0x2e8a97(0x1da)][_0x2e8a97(0x1e5)](d[_0x2e8a97(0x1d7)])[_0x2e8a97(0x1cb)](this[_0x2e8a97(0x1cc)],this[_0x2e8a97(0x1b7)],this['pivotTableId']);}[_0x522aec(0x1e4)](){const _0x555452=_0x522aec;var _0x361894;const _0x58c79b=(_0x361894=this[_0x555452(0x1da)][_0x555452(0x1e5)](d[_0x555452(0x1d7)])['getPivotTableRangeInfo'](this[_0x555452(0x1cc)],this[_0x555452(0x1b7)],this[_0x555452(0x1df)]))==null?void 0x0:_0x361894[_0x555452(0x1c7)];if(_0x58c79b)return d['unionPivotViewRange'](_0x58c79b);}async[_0x522aec(0x1e6)](){const _0x4dd342=_0x522aec;return await this['_injector'][_0x4dd342(0x1e5)](r[_0x4dd342(0x1e9)])[_0x4dd342(0x1be)](d['RemovePivotTableMutation']['id'],{'unitId':this[_0x4dd342(0x1cc)],'subUnitId':this[_0x4dd342(0x1b7)],'pivotTableId':this[_0x4dd342(0x1df)]});}async['addField'](_0x2119b9,_0x5b7da9,_0x152388){const _0x4afa32=_0x522aec,_0x293375=this['_injector'],_0x13c29b=this['unitId'],_0xcd41e4=this[_0x4afa32(0x1b7)],_0x198811=this[_0x4afa32(0x1df)],_0x322d40=_0x293375['get'](r[_0x4afa32(0x1e9)]),_0x3ffd70=_0x293375['get'](d[_0x4afa32(0x1d7)]),_0x2e6713=_0x3ffd70[_0x4afa32(0x1cb)](_0x13c29b,_0xcd41e4,_0x198811),_0x487152=_0x3ffd70['getCollection'](_0x13c29b,_0x198811);if(!_0x2e6713||!_0x487152)return!0x1;let _0x4672ae=_0x2119b9;typeof _0x4672ae==_0x4afa32(0x1ea)&&(_0x4672ae=_0x3ffd70['getCollection'](_0x13c29b,_0x198811)[_0x4afa32(0x1cd)][_0x2119b9]);const _0x589b87={'unitId':_0x13c29b,'subUnitId':_0xcd41e4,'pivotTableId':_0x198811,'dataFieldId':_0x4672ae,'fieldArea':_0x5b7da9,'index':_0x152388};return _0x322d40[_0x4afa32(0x1d8)](d['AddPivotFieldCommand']['id'],_0x589b87);}async['removeField'](_0x39ac10){const _0x2ed494=_0x522aec,_0x11a5cd=this[_0x2ed494(0x1da)],_0x363556=this[_0x2ed494(0x1cc)],_0x42884b=this['subUnitId'],_0x4c0b67=this[_0x2ed494(0x1df)],_0x518797=_0x11a5cd[_0x2ed494(0x1e5)](r[_0x2ed494(0x1e9)]),_0x538eac={'unitId':_0x363556,'subUnitId':_0x42884b,'pivotTableId':_0x4c0b67,'fieldIds':_0x39ac10};return _0x518797['executeCommand'](d[_0x2ed494(0x1e2)]['id'],_0x538eac);}async[_0x522aec(0x1e0)](_0x3e4bf4,_0x3ad863,_0x367a33){const _0x26368e=_0x522aec,_0x10c3fd=this[_0x26368e(0x1da)],_0x3b22fa=this['unitId'],_0x41665c=this[_0x26368e(0x1b7)],_0xa99b6d=this[_0x26368e(0x1df)],_0x19eecf=_0x10c3fd[_0x26368e(0x1e5)](r['ICommandService']),_0x180f54={'unitId':_0x3b22fa,'subUnitId':_0x41665c,'pivotTableId':_0xa99b6d,'fieldId':_0x3e4bf4,'area':_0x3ad863,'index':_0x367a33};return _0x19eecf[_0x26368e(0x1d8)](d[_0x26368e(0x1d6)]['id'],_0x180f54);}async[_0x522aec(0x1c3)](_0x216363,_0xad4cd3){const _0x59d1cf=_0x522aec,_0x522f84=this['_injector'],_0x18e22f=this['unitId'],_0x54da88=this['subUnitId'],_0x288e2e=this[_0x59d1cf(0x1df)],_0x36c460=_0x522f84[_0x59d1cf(0x1e5)](r[_0x59d1cf(0x1e9)]),_0x5c15a4={'unitId':_0x18e22f,'subUnitId':_0x54da88,'pivotTableId':_0x288e2e,'position':_0x216363,'index':_0xad4cd3};return _0x36c460[_0x59d1cf(0x1d8)](d['UpdatePivotValuePositionCommand']['id'],_0x5c15a4);}async[_0x522aec(0x1b8)](_0x1aa35d,_0x8d0282){const _0x301d96=_0x522aec,_0x2c17d7=this[_0x301d96(0x1da)],_0x5a0753=this[_0x301d96(0x1cc)],_0x4cfe84=this[_0x301d96(0x1b7)],_0x4fe861=this[_0x301d96(0x1df)],_0x5ea6da=_0x2c17d7['get'](r[_0x301d96(0x1e9)]),_0x1b8e96={'unitId':_0x5a0753,'subUnitId':_0x4cfe84,'pivotTableId':_0x4fe861,'fieldId':_0x1aa35d,'subtotalType':_0x8d0282};return _0x5ea6da[_0x301d96(0x1d8)](d[_0x301d96(0x1b4)]['id'],_0x1b8e96);}async[_0x522aec(0x1bf)](_0x4ecdf4,_0x596e7e){const _0x4ca536=_0x522aec,_0x4e1bea=this[_0x4ca536(0x1da)],_0x2ac2a1=this[_0x4ca536(0x1cc)],_0x38dd8c=this[_0x4ca536(0x1b7)],_0x48a197=this['pivotTableId'],_0x4e09ba=_0x4e1bea[_0x4ca536(0x1e5)](r[_0x4ca536(0x1e9)]),_0x445916={'unitId':_0x2ac2a1,'subUnitId':_0x38dd8c,'tableFieldId':_0x4ecdf4,'pivotTableId':_0x48a197,'info':_0x596e7e};return _0x4e09ba['executeCommand'](d[_0x4ca536(0x1c8)]['id'],_0x445916);}async[_0x522aec(0x1d3)](_0x217a1f,_0x1ab52c,_0x123bc3){const _0x552c76=_0x522aec,_0x4e19b6=this[_0x552c76(0x1da)],_0x458c74=this['unitId'],_0x1e0326=this['subUnitId'],_0x15ea6f=this['pivotTableId'],_0x485fb5=_0x4e19b6[_0x552c76(0x1e5)](r[_0x552c76(0x1e9)]),_0x1e46e7={'unitId':_0x458c74,'subUnitId':_0x1e0326,'pivotTableId':_0x15ea6f,'tableFieldId':_0x217a1f,'items':_0x1ab52c,'isAll':_0x123bc3};return _0x485fb5[_0x552c76(0x1d8)](d['SetPivotFilterCommand']['id'],_0x1e46e7);}async['renameField'](_0x50b93a,_0x10e879){const _0x54a022=_0x522aec,_0x5ad6c1=this['_injector'],_0x4fc74f=this[_0x54a022(0x1cc)],_0x4d1b2a=this[_0x54a022(0x1b7)],_0x152081=this[_0x54a022(0x1df)],_0x2ff30f=_0x5ad6c1[_0x54a022(0x1e5)](r['ICommandService']),_0x25f3bc={'unitId':_0x4fc74f,'subUnitId':_0x4d1b2a,'pivotTableId':_0x152081,'fieldId':_0x50b93a,'name':_0x10e879};return _0x2ff30f[_0x54a022(0x1d8)](d[_0x54a022(0x1c6)]['id'],_0x25f3bc);}async[_0x522aec(0x1e7)](_0x1f6b47,_0x325980,_0x2781fc){const _0x5dd550=_0x522aec,_0xbe5188=this[_0x5dd550(0x1da)][_0x5dd550(0x1e5)](r[_0x5dd550(0x1e9)]),_0x2383a4=this[_0x5dd550(0x1da)][_0x5dd550(0x1e5)](r['IUniverInstanceService'])[_0x5dd550(0x1dc)](this[_0x5dd550(0x1cc)]),_0x495edc=_0x2383a4==null?void 0x0:_0x2383a4['getSheetBySheetName'](_0x1f6b47);if(!_0x2383a4||!_0x495edc)throw new Error(_0x5dd550(0x1c2));return _0xbe5188[_0x5dd550(0x1d8)](d[_0x5dd550(0x1b6)]['id'],{'pivotTableId':this[_0x5dd550(0x1df)],'targetCellInfo':{'subUnitId':_0x495edc['getSheetId'](),'unitId':this[_0x5dd550(0x1cc)],'row':_0x325980,'col':_0x2781fc},'originTargetInfo':{'subUnitId':this[_0x5dd550(0x1b7)],'unitId':this[_0x5dd550(0x1cc)]}});}}class P extends b[_0x522aec(0x1d5)]{async[_0x522aec(0x1d2)](_0x79f922,_0x48920d,_0x4b39ed){const _0x4c24dc=_0x522aec,_0x17906d=this['_injector'],_0x228cdc=_0x17906d[_0x4c24dc(0x1e5)](r[_0x4c24dc(0x1e9)]),_0x20656b=S[_0x4c24dc(0x1c4)](0x8),_0x4f8314={'positionType':_0x48920d,'pivotTableId':_0x20656b,'pivotTableConfig':{'targetCellInfo':_0x4b39ed,'sourceRangeInfo':_0x79f922,'isEmpty':!0x0}};if(await _0x228cdc[_0x4c24dc(0x1d8)](d[_0x4c24dc(0x1d9)]['id'],_0x4f8314))return new I(_0x4b39ed[_0x4c24dc(0x1cc)],_0x4b39ed[_0x4c24dc(0x1b7)],_0x20656b,_0x17906d);}['getPivotTableByCell'](_0x4cd25d,_0x21c024,_0x14cd60,_0x472225){const _0x1ae4eb=_0x522aec,_0x37f0a8=this[_0x1ae4eb(0x1da)],_0x38df9a=_0x37f0a8[_0x1ae4eb(0x1e5)](d['SheetsPivotTableAdaptorModel'])[_0x1ae4eb(0x1c0)](_0x4cd25d,_0x21c024,_0x14cd60,_0x472225);if(_0x38df9a)return new I(_0x4cd25d,_0x21c024,_0x38df9a,_0x37f0a8);}}b['FWorkbook'][_0x522aec(0x1e8)](P),exports['FPivotTable']=I;
|