@univerjs-pro/sheets-pivot 0.5.0 → 0.5.1-nightly.202412011605
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 -0
- 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 -0
- 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 +43 -43
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-workbook.d.ts +8 -2
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/locale/fr-FR.d.ts +3 -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/fr-FR.js +1 -0
- 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 +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x260b(_0x46addb,_0x513141){const _0x18c1bf=_0x18c1();return _0x260b=function(_0x260b3f,_0x3c4859){_0x260b3f=_0x260b3f-0x1ab;let _0x4ca966=_0x18c1bf[_0x260b3f];return _0x4ca966;},_0x260b(_0x46addb,_0x513141);}const _0x40d800=_0x260b;(function(_0x269ecc,_0x4bedee){const _0x4b2fca=_0x260b,_0x34ba97=_0x269ecc();while(!![]){try{const _0xe9884b=-parseInt(_0x4b2fca(0x1cf))/0x1+-parseInt(_0x4b2fca(0x1be))/0x2*(parseInt(_0x4b2fca(0x1b2))/0x3)+parseInt(_0x4b2fca(0x1da))/0x4+-parseInt(_0x4b2fca(0x1cc))/0x5*(parseInt(_0x4b2fca(0x1d1))/0x6)+-parseInt(_0x4b2fca(0x1c5))/0x7+parseInt(_0x4b2fca(0x1c8))/0x8+parseInt(_0x4b2fca(0x1c3))/0x9;if(_0xe9884b===_0x4bedee)break;else _0x34ba97['push'](_0x34ba97['shift']());}catch(_0x84eba6){_0x34ba97['push'](_0x34ba97['shift']());}}}(_0x18c1,0x4de2b));var C=Object[_0x40d800(0x1d4)],g=(_0x239269,_0x231b9d,_0x32e197)=>_0x231b9d in _0x239269?C(_0x239269,_0x231b9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32e197}):_0x239269[_0x231b9d]=_0x32e197,l=(_0x337b53,_0x5a7e83,_0x587e74)=>g(_0x337b53,typeof _0x5a7e83!=_0x40d800(0x1d6)?_0x5a7e83+'':_0x5a7e83,_0x587e74);Object[_0x40d800(0x1d4)](exports,Symbol[_0x40d800(0x1c2)],{'value':_0x40d800(0x1b8)});const r=require(_0x40d800(0x1ae)),b=require(_0x40d800(0x1ca)),P=require(_0x40d800(0x1c6)),a=require('@univerjs-pro/sheets-pivot');class I{constructor(_0x3d0fc0,_0x3fa656,_0x4803d1,_0x47c5a7){const _0x2cefc8=_0x40d800;l(this,_0x2cefc8(0x1db)),l(this,_0x2cefc8(0x1c4)),l(this,'pivotTableId'),l(this,_0x2cefc8(0x1b0)),(this[_0x2cefc8(0x1db)]=_0x3d0fc0,this[_0x2cefc8(0x1c4)]=_0x3fa656,this['pivotTableId']=_0x4803d1,this['_injector']=_0x47c5a7);}['getConfig'](){const _0xe25f7f=_0x40d800;return this[_0xe25f7f(0x1b0)]['get'](a['SheetsPivotTableConfigModel'])[_0xe25f7f(0x1ba)](this[_0xe25f7f(0x1db)],this[_0xe25f7f(0x1c4)],this['pivotTableId']);}async[_0x40d800(0x1d0)](){const _0x1aa1c7=_0x40d800;return await this[_0x1aa1c7(0x1b0)][_0x1aa1c7(0x1c0)](r['ICommandService'])[_0x1aa1c7(0x1c7)](a['RemovePivotTableMutation']['id'],{'unitId':this[_0x1aa1c7(0x1db)],'subUnitId':this[_0x1aa1c7(0x1c4)],'pivotTableId':this[_0x1aa1c7(0x1d9)]});}async['addField'](_0x5d7859,_0x2ebe77,_0x5b9e4f){const _0x2d36cd=_0x40d800,_0x694db5=this[_0x2d36cd(0x1b0)],_0x4c6f70=this['unitId'],_0x8c99c0=this[_0x2d36cd(0x1c4)],_0x1c0058=this[_0x2d36cd(0x1d9)],_0x10f390=_0x694db5[_0x2d36cd(0x1c0)](r['ICommandService']),_0xbe5b8c=_0x694db5['get'](a[_0x2d36cd(0x1bd)]),_0x20daf9=_0xbe5b8c[_0x2d36cd(0x1ba)](_0x4c6f70,_0x8c99c0,_0x1c0058),_0x8cf308=_0xbe5b8c[_0x2d36cd(0x1ce)](_0x4c6f70,_0x1c0058);if(!_0x20daf9||!_0x8cf308)return!0x1;let _0x1dabc3=_0x5d7859;typeof _0x1dabc3==_0x2d36cd(0x1ab)&&(_0x1dabc3=_0xbe5b8c[_0x2d36cd(0x1ce)](_0x4c6f70,_0x1c0058)[_0x2d36cd(0x1b7)][_0x5d7859]);const _0xda6f4b={'unitId':_0x4c6f70,'subUnitId':_0x8c99c0,'pivotTableId':_0x1c0058,'dataFieldId':_0x1dabc3,'fieldArea':_0x2ebe77,'index':_0x5b9e4f};return _0x10f390[_0x2d36cd(0x1ac)](a['AddPivotFieldCommand']['id'],_0xda6f4b);}async[_0x40d800(0x1b6)](_0x2b183f){const _0x3787ac=_0x40d800,_0x496e0f=this['_injector'],_0x477e5d=this[_0x3787ac(0x1db)],_0x2f1a19=this[_0x3787ac(0x1c4)],_0x331a12=this['pivotTableId'],_0x1579d1=_0x496e0f[_0x3787ac(0x1c0)](r['ICommandService']),_0x1575d7={'unitId':_0x477e5d,'subUnitId':_0x2f1a19,'pivotTableId':_0x331a12,'fieldIds':_0x2b183f};return _0x1579d1[_0x3787ac(0x1ac)](a[_0x3787ac(0x1ad)]['id'],_0x1575d7);}async[_0x40d800(0x1c9)](_0x3c3454,_0x32ed8c,_0x3ce72c){const _0x1d05f5=_0x40d800,_0x449e66=this[_0x1d05f5(0x1b0)],_0x42e75b=this[_0x1d05f5(0x1db)],_0x4cd49e=this[_0x1d05f5(0x1c4)],_0x5b65a3=this[_0x1d05f5(0x1d9)],_0xa802bc=_0x449e66[_0x1d05f5(0x1c0)](r['ICommandService']),_0x2af73f={'unitId':_0x42e75b,'subUnitId':_0x4cd49e,'pivotTableId':_0x5b65a3,'fieldId':_0x3c3454,'area':_0x32ed8c,'index':_0x3ce72c};return _0xa802bc['executeCommand'](a['MovePivotFieldCommand']['id'],_0x2af73f);}async[_0x40d800(0x1bf)](_0x265fd0,_0x160700){const _0x444036=_0x40d800,_0x3cfeda=this[_0x444036(0x1b0)],_0xe13c59=this[_0x444036(0x1db)],_0xcedc02=this[_0x444036(0x1c4)],_0x4586d1=this['pivotTableId'],_0x2a37a5=_0x3cfeda[_0x444036(0x1c0)](r[_0x444036(0x1b3)]),_0xddfe0={'unitId':_0xe13c59,'subUnitId':_0xcedc02,'pivotTableId':_0x4586d1,'position':_0x265fd0,'index':_0x160700};return _0x2a37a5['executeCommand'](a['UpdatePivotValuePositionCommand']['id'],_0xddfe0);}async[_0x40d800(0x1b5)](_0x1cc4d4,_0x14ae07){const _0x57b3d9=_0x40d800,_0x375ae8=this[_0x57b3d9(0x1b0)],_0x5a2a5a=this[_0x57b3d9(0x1db)],_0x2be93f=this[_0x57b3d9(0x1c4)],_0x2af685=this['pivotTableId'],_0x464224=_0x375ae8['get'](r[_0x57b3d9(0x1b3)]),_0x331445={'unitId':_0x5a2a5a,'subUnitId':_0x2be93f,'pivotTableId':_0x2af685,'fieldId':_0x1cc4d4,'subtotalType':_0x14ae07};return _0x464224[_0x57b3d9(0x1ac)](a[_0x57b3d9(0x1bb)]['id'],_0x331445);}async['setLabelSort'](_0x133f96,_0x1b6606){const _0x1e4c37=_0x40d800,_0x1249e1=this[_0x1e4c37(0x1b0)],_0x28f7cd=this[_0x1e4c37(0x1db)],_0x3a11b2=this[_0x1e4c37(0x1c4)],_0x15e2af=this[_0x1e4c37(0x1d9)],_0x29ea62=_0x1249e1[_0x1e4c37(0x1c0)](r[_0x1e4c37(0x1b3)]),_0xfb9913={'unitId':_0x28f7cd,'subUnitId':_0x3a11b2,'tableFieldId':_0x133f96,'pivotTableId':_0x15e2af,'info':_0x1b6606};return _0x29ea62[_0x1e4c37(0x1ac)](a['SetPivotSortCommand']['id'],_0xfb9913);}async[_0x40d800(0x1cd)](_0x17636a,_0xd1b2e7,_0x280ca1){const _0x398948=_0x40d800,_0x418dfc=this['_injector'],_0x32267b=this['unitId'],_0x458247=this[_0x398948(0x1c4)],_0x4d0325=this[_0x398948(0x1d9)],_0x284f94=_0x418dfc[_0x398948(0x1c0)](r[_0x398948(0x1b3)]),_0x3fc2be={'unitId':_0x32267b,'subUnitId':_0x458247,'pivotTableId':_0x4d0325,'tableFieldId':_0x17636a,'items':_0xd1b2e7,'isAll':_0x280ca1};return _0x284f94[_0x398948(0x1ac)](a[_0x398948(0x1af)]['id'],_0x3fc2be);}async[_0x40d800(0x1cb)](_0x533000,_0x301591){const _0xd5b770=_0x40d800,_0x50264d=this['_injector'],_0x2fbdff=this[_0xd5b770(0x1db)],_0x13cfdd=this[_0xd5b770(0x1c4)],_0x19958d=this[_0xd5b770(0x1d9)],_0x7f32d5=_0x50264d['get'](r[_0xd5b770(0x1b3)]),_0x554ddf={'unitId':_0x2fbdff,'subUnitId':_0x13cfdd,'pivotTableId':_0x19958d,'fieldId':_0x533000,'name':_0x301591};return _0x7f32d5[_0xd5b770(0x1ac)](a[_0xd5b770(0x1d5)]['id'],_0x554ddf);}}function _0x18c1(){const _0x52775e=['RemovePivotFieldCommand','@univerjs/core','SetPivotFilterCommand','_injector','addPivotTable','6177mMVQlv','ICommandService','SheetsPivotTableAdaptorModel','setSubtotalType','removeField','fieldIds','Module','extend','getPivotTableConfig','SetPivotSubtotalTypeMutation','FPivotTable','SheetsPivotTableConfigModel','514jMLLCf','updateValuePosition','get','getPivotTableByCell','toStringTag','13223133KKLGnq','subUnitId','1455195xRFWLo','@univerjs-pro/engine-pivot','syncExecuteCommand','2094112PKvasB','updateFieldPosition','@univerjs/sheets/facade','renameField','3179465SOwxVm','setLabelManualFilter','getCollection','628876VOGKEK','remove','6LHNnWH','getPivotTableIdByCell','generateHexNumber','defineProperty','RenamePivotFieldMutation','symbol','FWorkbook','AddPivotTableCommand','pivotTableId','2359340BfNNRD','unitId','number','executeCommand'];_0x18c1=function(){return _0x52775e;};return _0x18c1();}class S extends b[_0x40d800(0x1d7)]{async[_0x40d800(0x1b1)](_0x4a463c,_0x1a3e33,_0x5ec6d9){const _0xe8dbdf=_0x40d800,_0x35fbde=this['_injector'],_0x4a9819=_0x35fbde['get'](r[_0xe8dbdf(0x1b3)]),_0x504180=P[_0xe8dbdf(0x1d3)](0x8),_0x58ad40={'positionType':_0x1a3e33,'pivotTableId':_0x504180,'pivotTableConfig':{'targetCellInfo':_0x5ec6d9,'sourceRangeInfo':_0x4a463c,'isEmpty':!0x0}};if(await _0x4a9819[_0xe8dbdf(0x1ac)](a[_0xe8dbdf(0x1d8)]['id'],_0x58ad40))return new I(_0x5ec6d9[_0xe8dbdf(0x1db)],_0x5ec6d9['subUnitId'],_0x504180,_0x35fbde);}[_0x40d800(0x1c1)](_0x5dd4b3,_0x5629f3,_0x59c5d8,_0x19ca69){const _0x2007a6=_0x40d800,_0x5758cb=this[_0x2007a6(0x1b0)],_0x389d6e=_0x5758cb['get'](a[_0x2007a6(0x1b4)])[_0x2007a6(0x1d2)](_0x5dd4b3,_0x5629f3,_0x59c5d8,_0x19ca69);if(_0x389d6e)return new I(_0x5dd4b3,_0x5629f3,_0x389d6e,_0x5758cb);}}b[_0x40d800(0x1d7)][_0x40d800(0x1b9)](S),exports[_0x40d800(0x1bc)]=I;
|