@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3-experimental.20250106-4af1f4e
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 +40 -40
- 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 _0x4102(){const _0x15ba66=['SetPivotFilterCommand','AddPivotFieldCommand','_injector','getConfig','getUnit','getPivotTableConfig','AddPivotTableCommand','getCollection','13416741YRHKku','MovePivotTableCommand','SetPivotSubtotalTypeMutation','RemovePivotFieldCommand','getPivotTableIdByCell','FPivotTable','10fnPpJE','5EjLmFq','IUniverInstanceService','setSubtotalType','RenamePivotFieldMutation','9056aziFRa','3194668NuCNSu','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','toStringTag','MovePivotFieldCommand','removeField','pivotTableId','renameField','getSheetId','Module','getSheetBySheetName','unitId','move','setLabelManualFilter','rangeInfo','updateFieldPosition','@univerjs/sheets/facade','SheetsPivotTableConfigModel','defineProperty','1539258pPdxLf','3892gUywnz','unionPivotViewRange','RemovePivotTableMutation','@univerjs-pro/sheets-pivot','21661200vtWJwl','updateValuePosition','addPivotTable','@univerjs-pro/engine-pivot','getPivotTableRangeInfo','@univerjs/core','174707aTcUcP','1027485fKCSuX','extend','symbol','setLabelSort','ICommandService','get','executeCommand','subUnitId'];_0x4102=function(){return _0x15ba66;};return _0x4102();}const _0x54d38d=_0x50b4;(function(_0x4bbbd5,_0x121c71){const _0x2baeb8=_0x50b4,_0x476760=_0x4bbbd5();while(!![]){try{const _0x4c67aa=parseInt(_0x2baeb8(0x1c2))/0x1+parseInt(_0x2baeb8(0x1d9))/0x2*(-parseInt(_0x2baeb8(0x1c3))/0x3)+parseInt(_0x2baeb8(0x1a5))/0x4*(-parseInt(_0x2baeb8(0x1da))/0x5)+parseInt(_0x2baeb8(0x1b7))/0x6+parseInt(_0x2baeb8(0x1b8))/0x7*(-parseInt(_0x2baeb8(0x1a4))/0x8)+parseInt(_0x2baeb8(0x1d3))/0x9+parseInt(_0x2baeb8(0x1bc))/0xa;if(_0x4c67aa===_0x121c71)break;else _0x476760['push'](_0x476760['shift']());}catch(_0xd51f71){_0x476760['push'](_0x476760['shift']());}}}(_0x4102,0xe7581));function _0x50b4(_0x5501c0,_0x5607d0){const _0x4102ed=_0x4102();return _0x50b4=function(_0x50b468,_0x61212e){_0x50b468=_0x50b468-0x1a1;let _0x5a3ef4=_0x4102ed[_0x50b468];return _0x5a3ef4;},_0x50b4(_0x5501c0,_0x5607d0);}var C=Object[_0x54d38d(0x1b6)],p=(_0x183cd1,_0xae994c,_0xe304b2)=>_0xae994c in _0x183cd1?C(_0x183cd1,_0xae994c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe304b2}):_0x183cd1[_0xae994c]=_0xe304b2,l=(_0x18ee8a,_0x1ba38f,_0x3b2b42)=>p(_0x18ee8a,typeof _0x1ba38f!=_0x54d38d(0x1c5)?_0x1ba38f+'':_0x1ba38f,_0x3b2b42);Object[_0x54d38d(0x1b6)](exports,Symbol[_0x54d38d(0x1a7)],{'value':_0x54d38d(0x1ad)});const r=require(_0x54d38d(0x1c1)),b=require(_0x54d38d(0x1b4)),S=require(_0x54d38d(0x1bf)),d=require(_0x54d38d(0x1bb));class I{constructor(_0x1f4a8d,_0x50af97,_0x5819c9,_0xbce3){const _0x2ce461=_0x54d38d;l(this,'unitId'),l(this,'subUnitId'),l(this,_0x2ce461(0x1aa)),l(this,_0x2ce461(0x1cd)),(this['unitId']=_0x1f4a8d,this['subUnitId']=_0x50af97,this[_0x2ce461(0x1aa)]=_0x5819c9,this[_0x2ce461(0x1cd)]=_0xbce3);}[_0x54d38d(0x1ce)](){const _0x3ed394=_0x54d38d;return this[_0x3ed394(0x1cd)][_0x3ed394(0x1c8)](d[_0x3ed394(0x1b5)])[_0x3ed394(0x1d0)](this[_0x3ed394(0x1af)],this['subUnitId'],this[_0x3ed394(0x1aa)]);}['getPivotTableRangeInfo'](){const _0x154a9a=_0x54d38d;var _0xdd0d53;const _0xf8ed07=(_0xdd0d53=this['_injector']['get'](d[_0x154a9a(0x1b5)])[_0x154a9a(0x1c0)](this[_0x154a9a(0x1af)],this['subUnitId'],this[_0x154a9a(0x1aa)]))==null?void 0x0:_0xdd0d53[_0x154a9a(0x1b2)];if(_0xf8ed07)return d[_0x154a9a(0x1b9)](_0xf8ed07);}async['remove'](){const _0x7c6200=_0x54d38d;return await this[_0x7c6200(0x1cd)][_0x7c6200(0x1c8)](r['ICommandService'])['syncExecuteCommand'](d[_0x7c6200(0x1ba)]['id'],{'unitId':this[_0x7c6200(0x1af)],'subUnitId':this[_0x7c6200(0x1ca)],'pivotTableId':this[_0x7c6200(0x1aa)]});}async['addField'](_0x66efe6,_0x2763ea,_0x10bbed){const _0x49fdd2=_0x54d38d,_0x539cee=this[_0x49fdd2(0x1cd)],_0xe476df=this['unitId'],_0xc3bba6=this[_0x49fdd2(0x1ca)],_0x4bd4b9=this[_0x49fdd2(0x1aa)],_0x1ec84d=_0x539cee['get'](r[_0x49fdd2(0x1c7)]),_0x222e3c=_0x539cee[_0x49fdd2(0x1c8)](d['SheetsPivotTableConfigModel']),_0x2bce3f=_0x222e3c['getPivotTableConfig'](_0xe476df,_0xc3bba6,_0x4bd4b9),_0x327796=_0x222e3c[_0x49fdd2(0x1d2)](_0xe476df,_0x4bd4b9);if(!_0x2bce3f||!_0x327796)return!0x1;let _0x384743=_0x66efe6;typeof _0x384743=='number'&&(_0x384743=_0x222e3c[_0x49fdd2(0x1d2)](_0xe476df,_0x4bd4b9)['fieldIds'][_0x66efe6]);const _0x122d5f={'unitId':_0xe476df,'subUnitId':_0xc3bba6,'pivotTableId':_0x4bd4b9,'dataFieldId':_0x384743,'fieldArea':_0x2763ea,'index':_0x10bbed};return _0x1ec84d['executeCommand'](d[_0x49fdd2(0x1cc)]['id'],_0x122d5f);}async[_0x54d38d(0x1a9)](_0x1dc8fc){const _0x31bf39=_0x54d38d,_0x7ed0f8=this[_0x31bf39(0x1cd)],_0x34b4a9=this[_0x31bf39(0x1af)],_0x2b20ca=this[_0x31bf39(0x1ca)],_0x19f934=this[_0x31bf39(0x1aa)],_0xa51b36=_0x7ed0f8[_0x31bf39(0x1c8)](r['ICommandService']),_0x57f36c={'unitId':_0x34b4a9,'subUnitId':_0x2b20ca,'pivotTableId':_0x19f934,'fieldIds':_0x1dc8fc};return _0xa51b36[_0x31bf39(0x1c9)](d[_0x31bf39(0x1d6)]['id'],_0x57f36c);}async[_0x54d38d(0x1b3)](_0x258231,_0x2e484a,_0x1887e9){const _0x192ab7=_0x54d38d,_0x402fe7=this[_0x192ab7(0x1cd)],_0xf96a9c=this[_0x192ab7(0x1af)],_0x3533e0=this[_0x192ab7(0x1ca)],_0x59e52f=this['pivotTableId'],_0x48a198=_0x402fe7[_0x192ab7(0x1c8)](r['ICommandService']),_0x37983d={'unitId':_0xf96a9c,'subUnitId':_0x3533e0,'pivotTableId':_0x59e52f,'fieldId':_0x258231,'area':_0x2e484a,'index':_0x1887e9};return _0x48a198[_0x192ab7(0x1c9)](d[_0x192ab7(0x1a8)]['id'],_0x37983d);}async[_0x54d38d(0x1bd)](_0x4caca8,_0x15ee3c){const _0x43e025=_0x54d38d,_0x17472f=this[_0x43e025(0x1cd)],_0x3a8722=this[_0x43e025(0x1af)],_0x52ecca=this[_0x43e025(0x1ca)],_0x327060=this[_0x43e025(0x1aa)],_0x234bd0=_0x17472f[_0x43e025(0x1c8)](r['ICommandService']),_0x59997f={'unitId':_0x3a8722,'subUnitId':_0x52ecca,'pivotTableId':_0x327060,'position':_0x4caca8,'index':_0x15ee3c};return _0x234bd0[_0x43e025(0x1c9)](d['UpdatePivotValuePositionCommand']['id'],_0x59997f);}async[_0x54d38d(0x1a2)](_0x494845,_0x56602d){const _0x6ba401=_0x54d38d,_0x161c92=this[_0x6ba401(0x1cd)],_0x38ed97=this[_0x6ba401(0x1af)],_0x3910bd=this[_0x6ba401(0x1ca)],_0x5e182b=this[_0x6ba401(0x1aa)],_0x39abfa=_0x161c92[_0x6ba401(0x1c8)](r[_0x6ba401(0x1c7)]),_0x210a41={'unitId':_0x38ed97,'subUnitId':_0x3910bd,'pivotTableId':_0x5e182b,'fieldId':_0x494845,'subtotalType':_0x56602d};return _0x39abfa['executeCommand'](d[_0x6ba401(0x1d5)]['id'],_0x210a41);}async[_0x54d38d(0x1c6)](_0x4ac828,_0x39739a){const _0x4f21d1=_0x54d38d,_0x13ebfd=this[_0x4f21d1(0x1cd)],_0x2b719e=this[_0x4f21d1(0x1af)],_0x4e34b8=this[_0x4f21d1(0x1ca)],_0x6a9ef=this[_0x4f21d1(0x1aa)],_0x4dbe56=_0x13ebfd['get'](r['ICommandService']),_0x2a04d0={'unitId':_0x2b719e,'subUnitId':_0x4e34b8,'tableFieldId':_0x4ac828,'pivotTableId':_0x6a9ef,'info':_0x39739a};return _0x4dbe56[_0x4f21d1(0x1c9)](d['SetPivotSortCommand']['id'],_0x2a04d0);}async[_0x54d38d(0x1b1)](_0x316f78,_0x336dcc,_0x214efa){const _0x2eea2b=_0x54d38d,_0x2d3a67=this[_0x2eea2b(0x1cd)],_0x2f9ab4=this[_0x2eea2b(0x1af)],_0x4d1d19=this[_0x2eea2b(0x1ca)],_0x8c8712=this[_0x2eea2b(0x1aa)],_0x155449=_0x2d3a67[_0x2eea2b(0x1c8)](r[_0x2eea2b(0x1c7)]),_0x82601d={'unitId':_0x2f9ab4,'subUnitId':_0x4d1d19,'pivotTableId':_0x8c8712,'tableFieldId':_0x316f78,'items':_0x336dcc,'isAll':_0x214efa};return _0x155449[_0x2eea2b(0x1c9)](d[_0x2eea2b(0x1cb)]['id'],_0x82601d);}async[_0x54d38d(0x1ab)](_0xc14c30,_0x230a6f){const _0x1f3f93=_0x54d38d,_0x2cde0d=this[_0x1f3f93(0x1cd)],_0xb9465a=this[_0x1f3f93(0x1af)],_0x59abb0=this['subUnitId'],_0x5431fa=this[_0x1f3f93(0x1aa)],_0x17acea=_0x2cde0d[_0x1f3f93(0x1c8)](r['ICommandService']),_0x3c57f6={'unitId':_0xb9465a,'subUnitId':_0x59abb0,'pivotTableId':_0x5431fa,'fieldId':_0xc14c30,'name':_0x230a6f};return _0x17acea[_0x1f3f93(0x1c9)](d[_0x1f3f93(0x1a3)]['id'],_0x3c57f6);}async[_0x54d38d(0x1b0)](_0xf09d0,_0x116db8,_0x21944e){const _0xe647c8=_0x54d38d,_0x51b104=this[_0xe647c8(0x1cd)][_0xe647c8(0x1c8)](r[_0xe647c8(0x1c7)]),_0x3f5331=this[_0xe647c8(0x1cd)][_0xe647c8(0x1c8)](r[_0xe647c8(0x1a1)])[_0xe647c8(0x1cf)](this['unitId']),_0x32a3ef=_0x3f5331==null?void 0x0:_0x3f5331[_0xe647c8(0x1ae)](_0xf09d0);if(!_0x3f5331||!_0x32a3ef)throw new Error(_0xe647c8(0x1a6));return _0x51b104[_0xe647c8(0x1c9)](d[_0xe647c8(0x1d4)]['id'],{'pivotTableId':this[_0xe647c8(0x1aa)],'targetCellInfo':{'subUnitId':_0x32a3ef[_0xe647c8(0x1ac)](),'unitId':this[_0xe647c8(0x1af)],'row':_0x116db8,'col':_0x21944e},'originTargetInfo':{'subUnitId':this[_0xe647c8(0x1ca)],'unitId':this[_0xe647c8(0x1af)]}});}}class P extends b['FWorkbook']{async[_0x54d38d(0x1be)](_0x1dd10e,_0x245463,_0x5339d3){const _0x3885e5=_0x54d38d,_0x7a1808=this[_0x3885e5(0x1cd)],_0x288c0c=_0x7a1808[_0x3885e5(0x1c8)](r['ICommandService']),_0xe0eb24=S['generateHexNumber'](0x8),_0x4756de={'positionType':_0x245463,'pivotTableId':_0xe0eb24,'pivotTableConfig':{'targetCellInfo':_0x5339d3,'sourceRangeInfo':_0x1dd10e,'isEmpty':!0x0}};if(await _0x288c0c[_0x3885e5(0x1c9)](d[_0x3885e5(0x1d1)]['id'],_0x4756de))return new I(_0x5339d3['unitId'],_0x5339d3[_0x3885e5(0x1ca)],_0xe0eb24,_0x7a1808);}['getPivotTableByCell'](_0xa2e682,_0x149729,_0x455feb,_0x235785){const _0xe474cf=_0x54d38d,_0x15d4de=this[_0xe474cf(0x1cd)],_0x3b3fd9=_0x15d4de[_0xe474cf(0x1c8)](d['SheetsPivotTableAdaptorModel'])[_0xe474cf(0x1d7)](_0xa2e682,_0x149729,_0x455feb,_0x235785);if(_0x3b3fd9)return new I(_0xa2e682,_0x149729,_0x3b3fd9,_0x15d4de);}}b['FWorkbook'][_0x54d38d(0x1c4)](P),exports[_0x54d38d(0x1d8)]=I;
|