@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3-nightly.202501051605
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 _0x5cd6(){const _0x49086a=['9ggJeZE','SheetsPivotTableConfigModel','subUnitId','rangeInfo','toStringTag','number','3645JgSDOB','_injector','symbol','updateFieldPosition','SetPivotSortCommand','820164qCfWdg','3042UTksuy','getCollection','move','getSheetBySheetName','defineProperty','pivotTableId','IUniverInstanceService','@univerjs-pro/engine-pivot','1549024LLRoQy','SheetsPivotTableAdaptorModel','ICommandService','getSheetId','getPivotTableRangeInfo','remove','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','RemovePivotFieldCommand','113319UEaQOM','199740FSDlwg','AddPivotTableCommand','getConfig','MovePivotFieldCommand','411834NEBIzx','getPivotTableConfig','addPivotTable','setLabelSort','FPivotTable','RemovePivotTableMutation','@univerjs-pro/sheets-pivot','165THOfEw','get','unionPivotViewRange','getUnit','AddPivotFieldCommand','extend','executeCommand','FWorkbook','3ecapFv','MovePivotTableCommand','@univerjs/sheets/facade','addField','414400ZTSYZT','unitId','SetPivotSubtotalTypeMutation','generateHexNumber'];_0x5cd6=function(){return _0x49086a;};return _0x5cd6();}const _0x5e8b45=_0x1f41;(function(_0x36eecd,_0x40ba5){const _0x70c121=_0x1f41,_0x30102f=_0x36eecd();while(!![]){try{const _0x3ecae2=parseInt(_0x70c121(0x1a1))/0x1+-parseInt(_0x70c121(0x1a6))/0x2*(parseInt(_0x70c121(0x1b5))/0x3)+-parseInt(_0x70c121(0x1c8))/0x4+parseInt(_0x70c121(0x1c3))/0x5*(parseInt(_0x70c121(0x1c9))/0x6)+parseInt(_0x70c121(0x1b9))/0x7+parseInt(_0x70c121(0x1d1))/0x8*(-parseInt(_0x70c121(0x1bd))/0x9)+parseInt(_0x70c121(0x1a2))/0xa*(parseInt(_0x70c121(0x1ad))/0xb);if(_0x3ecae2===_0x40ba5)break;else _0x30102f['push'](_0x30102f['shift']());}catch(_0x1614f5){_0x30102f['push'](_0x30102f['shift']());}}}(_0x5cd6,0x39e5a));function _0x1f41(_0x48729b,_0x14472c){const _0x5cd66c=_0x5cd6();return _0x1f41=function(_0x1f4183,_0xe7f3c){_0x1f4183=_0x1f4183-0x19d;let _0x528b3a=_0x5cd66c[_0x1f4183];return _0x528b3a;},_0x1f41(_0x48729b,_0x14472c);}var C=Object[_0x5e8b45(0x1cd)],p=(_0x18e003,_0x423a15,_0x22a7ff)=>_0x423a15 in _0x18e003?C(_0x18e003,_0x423a15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22a7ff}):_0x18e003[_0x423a15]=_0x22a7ff,l=(_0x754a1,_0xa503a9,_0x301a5f)=>p(_0x754a1,typeof _0xa503a9!=_0x5e8b45(0x1c5)?_0xa503a9+'':_0xa503a9,_0x301a5f);Object['defineProperty'](exports,Symbol[_0x5e8b45(0x1c1)],{'value':'Module'});const r=require('@univerjs/core'),b=require(_0x5e8b45(0x1b7)),S=require(_0x5e8b45(0x1d0)),d=require(_0x5e8b45(0x1ac));class I{constructor(_0x1a3fe2,_0x28678e,_0x5949e7,_0x354d90){const _0x3eb364=_0x5e8b45;l(this,'unitId'),l(this,_0x3eb364(0x1bf)),l(this,_0x3eb364(0x1ce)),l(this,_0x3eb364(0x1c4)),(this['unitId']=_0x1a3fe2,this[_0x3eb364(0x1bf)]=_0x28678e,this['pivotTableId']=_0x5949e7,this['_injector']=_0x354d90);}[_0x5e8b45(0x1a4)](){const _0x4caa0b=_0x5e8b45;return this['_injector'][_0x4caa0b(0x1ae)](d[_0x4caa0b(0x1be)])[_0x4caa0b(0x1a7)](this[_0x4caa0b(0x1ba)],this[_0x4caa0b(0x1bf)],this[_0x4caa0b(0x1ce)]);}[_0x5e8b45(0x19d)](){const _0x2d1f9d=_0x5e8b45;var _0x1eeeee;const _0x367f87=(_0x1eeeee=this[_0x2d1f9d(0x1c4)][_0x2d1f9d(0x1ae)](d['SheetsPivotTableConfigModel'])[_0x2d1f9d(0x19d)](this['unitId'],this[_0x2d1f9d(0x1bf)],this['pivotTableId']))==null?void 0x0:_0x1eeeee[_0x2d1f9d(0x1c0)];if(_0x367f87)return d[_0x2d1f9d(0x1af)](_0x367f87);}async[_0x5e8b45(0x19e)](){const _0x480a30=_0x5e8b45;return await this['_injector'][_0x480a30(0x1ae)](r[_0x480a30(0x1d3)])['syncExecuteCommand'](d[_0x480a30(0x1ab)]['id'],{'unitId':this[_0x480a30(0x1ba)],'subUnitId':this[_0x480a30(0x1bf)],'pivotTableId':this[_0x480a30(0x1ce)]});}async[_0x5e8b45(0x1b8)](_0x5c25a8,_0x213efd,_0xc5c56e){const _0x5711ab=_0x5e8b45,_0x37a01c=this[_0x5711ab(0x1c4)],_0x261363=this['unitId'],_0x366103=this[_0x5711ab(0x1bf)],_0x412b16=this['pivotTableId'],_0x2cd281=_0x37a01c[_0x5711ab(0x1ae)](r[_0x5711ab(0x1d3)]),_0x5bc8e9=_0x37a01c[_0x5711ab(0x1ae)](d[_0x5711ab(0x1be)]),_0x4d2fb0=_0x5bc8e9['getPivotTableConfig'](_0x261363,_0x366103,_0x412b16),_0x2c0174=_0x5bc8e9[_0x5711ab(0x1ca)](_0x261363,_0x412b16);if(!_0x4d2fb0||!_0x2c0174)return!0x1;let _0x4bde3a=_0x5c25a8;typeof _0x4bde3a==_0x5711ab(0x1c2)&&(_0x4bde3a=_0x5bc8e9['getCollection'](_0x261363,_0x412b16)['fieldIds'][_0x5c25a8]);const _0x562f21={'unitId':_0x261363,'subUnitId':_0x366103,'pivotTableId':_0x412b16,'dataFieldId':_0x4bde3a,'fieldArea':_0x213efd,'index':_0xc5c56e};return _0x2cd281['executeCommand'](d[_0x5711ab(0x1b1)]['id'],_0x562f21);}async['removeField'](_0x8c1dab){const _0x5c05ce=_0x5e8b45,_0x1003b7=this[_0x5c05ce(0x1c4)],_0xa60901=this[_0x5c05ce(0x1ba)],_0x2d58b2=this['subUnitId'],_0x10ad19=this[_0x5c05ce(0x1ce)],_0x570ba6=_0x1003b7[_0x5c05ce(0x1ae)](r[_0x5c05ce(0x1d3)]),_0x2d40c4={'unitId':_0xa60901,'subUnitId':_0x2d58b2,'pivotTableId':_0x10ad19,'fieldIds':_0x8c1dab};return _0x570ba6[_0x5c05ce(0x1b3)](d[_0x5c05ce(0x1a0)]['id'],_0x2d40c4);}async[_0x5e8b45(0x1c6)](_0x514ddb,_0x3148c4,_0x5bd472){const _0x396e19=_0x5e8b45,_0x137b3e=this[_0x396e19(0x1c4)],_0x56a421=this[_0x396e19(0x1ba)],_0x5b904b=this['subUnitId'],_0x5c6865=this[_0x396e19(0x1ce)],_0x408736=_0x137b3e[_0x396e19(0x1ae)](r['ICommandService']),_0x2ae33e={'unitId':_0x56a421,'subUnitId':_0x5b904b,'pivotTableId':_0x5c6865,'fieldId':_0x514ddb,'area':_0x3148c4,'index':_0x5bd472};return _0x408736[_0x396e19(0x1b3)](d[_0x396e19(0x1a5)]['id'],_0x2ae33e);}async['updateValuePosition'](_0x5501d8,_0x4fc7d9){const _0x224d84=_0x5e8b45,_0x4a14d2=this[_0x224d84(0x1c4)],_0x1a6815=this[_0x224d84(0x1ba)],_0x9c6fcf=this['subUnitId'],_0x59b886=this[_0x224d84(0x1ce)],_0x46a93f=_0x4a14d2['get'](r['ICommandService']),_0x51332b={'unitId':_0x1a6815,'subUnitId':_0x9c6fcf,'pivotTableId':_0x59b886,'position':_0x5501d8,'index':_0x4fc7d9};return _0x46a93f['executeCommand'](d['UpdatePivotValuePositionCommand']['id'],_0x51332b);}async['setSubtotalType'](_0x3698dd,_0x343104){const _0x1def41=_0x5e8b45,_0x1202c7=this[_0x1def41(0x1c4)],_0x2547d1=this[_0x1def41(0x1ba)],_0x2b6f49=this[_0x1def41(0x1bf)],_0x43dbac=this[_0x1def41(0x1ce)],_0x1a2cfa=_0x1202c7['get'](r['ICommandService']),_0x5a31df={'unitId':_0x2547d1,'subUnitId':_0x2b6f49,'pivotTableId':_0x43dbac,'fieldId':_0x3698dd,'subtotalType':_0x343104};return _0x1a2cfa[_0x1def41(0x1b3)](d[_0x1def41(0x1bb)]['id'],_0x5a31df);}async[_0x5e8b45(0x1a9)](_0x55368c,_0x25f2fa){const _0x50bffb=_0x5e8b45,_0x50ea05=this[_0x50bffb(0x1c4)],_0x515da2=this[_0x50bffb(0x1ba)],_0x3ed658=this[_0x50bffb(0x1bf)],_0x1ddfa3=this[_0x50bffb(0x1ce)],_0xc8b656=_0x50ea05[_0x50bffb(0x1ae)](r['ICommandService']),_0x669dd2={'unitId':_0x515da2,'subUnitId':_0x3ed658,'tableFieldId':_0x55368c,'pivotTableId':_0x1ddfa3,'info':_0x25f2fa};return _0xc8b656[_0x50bffb(0x1b3)](d[_0x50bffb(0x1c7)]['id'],_0x669dd2);}async['setLabelManualFilter'](_0x4fe649,_0x38650c,_0x49fecc){const _0x40b454=_0x5e8b45,_0x930050=this[_0x40b454(0x1c4)],_0x40d7fb=this[_0x40b454(0x1ba)],_0x185f4c=this[_0x40b454(0x1bf)],_0x3f6e99=this[_0x40b454(0x1ce)],_0x19c24d=_0x930050['get'](r['ICommandService']),_0x53a7f1={'unitId':_0x40d7fb,'subUnitId':_0x185f4c,'pivotTableId':_0x3f6e99,'tableFieldId':_0x4fe649,'items':_0x38650c,'isAll':_0x49fecc};return _0x19c24d[_0x40b454(0x1b3)](d['SetPivotFilterCommand']['id'],_0x53a7f1);}async['renameField'](_0x304352,_0x5bbd25){const _0x5aeeb2=_0x5e8b45,_0x5ca8e0=this[_0x5aeeb2(0x1c4)],_0x2acd53=this[_0x5aeeb2(0x1ba)],_0x19a0e8=this[_0x5aeeb2(0x1bf)],_0x4ac909=this[_0x5aeeb2(0x1ce)],_0x44d16a=_0x5ca8e0['get'](r[_0x5aeeb2(0x1d3)]),_0x26a394={'unitId':_0x2acd53,'subUnitId':_0x19a0e8,'pivotTableId':_0x4ac909,'fieldId':_0x304352,'name':_0x5bbd25};return _0x44d16a['executeCommand'](d['RenamePivotFieldMutation']['id'],_0x26a394);}async[_0x5e8b45(0x1cb)](_0x467635,_0x1c0f6c,_0x135cc4){const _0x3c4b5a=_0x5e8b45,_0x4e73ab=this['_injector'][_0x3c4b5a(0x1ae)](r[_0x3c4b5a(0x1d3)]),_0x1a21af=this['_injector'][_0x3c4b5a(0x1ae)](r[_0x3c4b5a(0x1cf)])[_0x3c4b5a(0x1b0)](this['unitId']),_0x4154bc=_0x1a21af==null?void 0x0:_0x1a21af[_0x3c4b5a(0x1cc)](_0x467635);if(!_0x1a21af||!_0x4154bc)throw new Error(_0x3c4b5a(0x19f));return _0x4e73ab[_0x3c4b5a(0x1b3)](d[_0x3c4b5a(0x1b6)]['id'],{'pivotTableId':this[_0x3c4b5a(0x1ce)],'targetCellInfo':{'subUnitId':_0x4154bc[_0x3c4b5a(0x1d4)](),'unitId':this['unitId'],'row':_0x1c0f6c,'col':_0x135cc4},'originTargetInfo':{'subUnitId':this[_0x3c4b5a(0x1bf)],'unitId':this[_0x3c4b5a(0x1ba)]}});}}class P extends b[_0x5e8b45(0x1b4)]{async[_0x5e8b45(0x1a8)](_0x1d97d4,_0x12ffde,_0x1ac80c){const _0x48f2b5=_0x5e8b45,_0x246640=this[_0x48f2b5(0x1c4)],_0x353587=_0x246640[_0x48f2b5(0x1ae)](r[_0x48f2b5(0x1d3)]),_0x1cefe8=S[_0x48f2b5(0x1bc)](0x8),_0x26a4ac={'positionType':_0x12ffde,'pivotTableId':_0x1cefe8,'pivotTableConfig':{'targetCellInfo':_0x1ac80c,'sourceRangeInfo':_0x1d97d4,'isEmpty':!0x0}};if(await _0x353587[_0x48f2b5(0x1b3)](d[_0x48f2b5(0x1a3)]['id'],_0x26a4ac))return new I(_0x1ac80c[_0x48f2b5(0x1ba)],_0x1ac80c[_0x48f2b5(0x1bf)],_0x1cefe8,_0x246640);}['getPivotTableByCell'](_0x38d178,_0x577535,_0x5f11c5,_0x16b8b4){const _0x2bf518=_0x5e8b45,_0x450edd=this[_0x2bf518(0x1c4)],_0x29f6e7=_0x450edd['get'](d[_0x2bf518(0x1d2)])['getPivotTableIdByCell'](_0x38d178,_0x577535,_0x5f11c5,_0x16b8b4);if(_0x29f6e7)return new I(_0x38d178,_0x577535,_0x29f6e7,_0x450edd);}}b[_0x5e8b45(0x1b4)][_0x5e8b45(0x1b2)](P),exports[_0x5e8b45(0x1aa)]=I;
|