@univerjs-pro/sheets-pivot 0.5.0-nightly.202411230627 → 0.5.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/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/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/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/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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ea482=_0x211e;function _0x1d23(){const _0x2d2b91=['930NNFmLw','20171280JwHIWx','566221UoSPRz','11xKHiDj','RemovePivotTableMutation','3667545RbsOOq','_injector','subUnitId','getConfig','addPivotTable','20792tcckRE','SetPivotFilterCommand','FPivotTable','setLabelSort','setLabelManualFilter','FWorkbook','number','syncExecuteCommand','symbol','Module','6ILeqot','RenamePivotFieldMutation','getCollection','ICommandService','remove','11531485gnzHfi','pivotTableId','extend','RemovePivotFieldCommand','12808688ocGaiM','5244ZmYXMD','defineProperty','SetPivotSubtotalTypeMutation','UpdatePivotValuePositionCommand','getPivotTableConfig','updateFieldPosition','toStringTag','get','AddPivotTableCommand','SheetsPivotTableAdaptorModel','@univerjs/sheets/facade','updateValuePosition','@univerjs-pro/sheets-pivot','unitId','SheetsPivotTableConfigModel','fieldIds','@univerjs-pro/engine-pivot','10035kERsyM','SetPivotSortCommand','removeField','getPivotTableByCell','executeCommand'];_0x1d23=function(){return _0x2d2b91;};return _0x1d23();}(function(_0x35c258,_0x325608){const _0x5191bc=_0x211e,_0x5e1832=_0x35c258();while(!![]){try{const _0x5431b9=parseInt(_0x5191bc(0x15a))/0x1*(-parseInt(_0x5191bc(0x16c))/0x2)+-parseInt(_0x5191bc(0x158))/0x3*(parseInt(_0x5191bc(0x162))/0x4)+parseInt(_0x5191bc(0x153))/0x5*(parseInt(_0x5191bc(0x142))/0x6)+parseInt(_0x5191bc(0x13d))/0x7+-parseInt(_0x5191bc(0x141))/0x8+parseInt(_0x5191bc(0x15d))/0x9+-parseInt(_0x5191bc(0x159))/0xa*(-parseInt(_0x5191bc(0x15b))/0xb);if(_0x5431b9===_0x325608)break;else _0x5e1832['push'](_0x5e1832['shift']());}catch(_0x4ee162){_0x5e1832['push'](_0x5e1832['shift']());}}}(_0x1d23,0xdf621));var C=Object[_0x5ea482(0x143)],g=(_0x37e5ac,_0x2ba36a,_0x1ceb41)=>_0x2ba36a in _0x37e5ac?C(_0x37e5ac,_0x2ba36a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ceb41}):_0x37e5ac[_0x2ba36a]=_0x1ceb41,l=(_0x4d437c,_0x1d2db3,_0x191c5b)=>g(_0x4d437c,typeof _0x1d2db3!=_0x5ea482(0x16a)?_0x1d2db3+'':_0x1d2db3,_0x191c5b);Object[_0x5ea482(0x143)](exports,Symbol[_0x5ea482(0x148)],{'value':_0x5ea482(0x16b)});const r=require('@univerjs/core'),b=require(_0x5ea482(0x14c)),P=require(_0x5ea482(0x152)),a=require(_0x5ea482(0x14e));class I{constructor(_0x19c6a5,_0x3cfa71,_0x3d3f0a,_0x1780ce){const _0x3d6f65=_0x5ea482;l(this,_0x3d6f65(0x14f)),l(this,_0x3d6f65(0x15f)),l(this,_0x3d6f65(0x13e)),l(this,_0x3d6f65(0x15e)),(this['unitId']=_0x19c6a5,this[_0x3d6f65(0x15f)]=_0x3cfa71,this[_0x3d6f65(0x13e)]=_0x3d3f0a,this[_0x3d6f65(0x15e)]=_0x1780ce);}[_0x5ea482(0x160)](){const _0x4d8387=_0x5ea482;return this[_0x4d8387(0x15e)][_0x4d8387(0x149)](a[_0x4d8387(0x150)])[_0x4d8387(0x146)](this['unitId'],this['subUnitId'],this[_0x4d8387(0x13e)]);}async[_0x5ea482(0x170)](){const _0x20f87e=_0x5ea482;return await this['_injector'][_0x20f87e(0x149)](r['ICommandService'])[_0x20f87e(0x169)](a[_0x20f87e(0x15c)]['id'],{'unitId':this[_0x20f87e(0x14f)],'subUnitId':this[_0x20f87e(0x15f)],'pivotTableId':this[_0x20f87e(0x13e)]});}async['addField'](_0x1722f3,_0x4c1e93,_0x326700){const _0x28c34a=_0x5ea482,_0x1259f3=this[_0x28c34a(0x15e)],_0x8f56d1=this[_0x28c34a(0x14f)],_0x58fcda=this[_0x28c34a(0x15f)],_0x3bea46=this[_0x28c34a(0x13e)],_0x31ab7b=_0x1259f3[_0x28c34a(0x149)](r[_0x28c34a(0x16f)]),_0x4bdd2c=_0x1259f3[_0x28c34a(0x149)](a[_0x28c34a(0x150)]),_0x5a73ca=_0x4bdd2c['getPivotTableConfig'](_0x8f56d1,_0x58fcda,_0x3bea46),_0x631f6a=_0x4bdd2c[_0x28c34a(0x16e)](_0x8f56d1,_0x3bea46);if(!_0x5a73ca||!_0x631f6a)return!0x1;let _0x55020e=_0x1722f3;typeof _0x55020e==_0x28c34a(0x168)&&(_0x55020e=_0x4bdd2c[_0x28c34a(0x16e)](_0x8f56d1,_0x3bea46)[_0x28c34a(0x151)][_0x1722f3]);const _0x300136={'unitId':_0x8f56d1,'subUnitId':_0x58fcda,'pivotTableId':_0x3bea46,'dataFieldId':_0x55020e,'fieldArea':_0x4c1e93,'index':_0x326700};return _0x31ab7b[_0x28c34a(0x157)](a['AddPivotFieldCommand']['id'],_0x300136);}async[_0x5ea482(0x155)](_0x191f0a){const _0x5c4278=_0x5ea482,_0x4fcb42=this[_0x5c4278(0x15e)],_0x2c0829=this['unitId'],_0x5e89f1=this[_0x5c4278(0x15f)],_0x952b95=this[_0x5c4278(0x13e)],_0x4025a3=_0x4fcb42['get'](r[_0x5c4278(0x16f)]),_0x27a566={'unitId':_0x2c0829,'subUnitId':_0x5e89f1,'pivotTableId':_0x952b95,'fieldIds':_0x191f0a};return _0x4025a3['executeCommand'](a[_0x5c4278(0x140)]['id'],_0x27a566);}async[_0x5ea482(0x147)](_0x51bb99,_0x17d7c0,_0x18e75f){const _0x1c2a21=_0x5ea482,_0x2d59b7=this[_0x1c2a21(0x15e)],_0x4f512f=this[_0x1c2a21(0x14f)],_0x53b625=this[_0x1c2a21(0x15f)],_0x161070=this['pivotTableId'],_0x3420c3=_0x2d59b7[_0x1c2a21(0x149)](r[_0x1c2a21(0x16f)]),_0x5dc7d2={'unitId':_0x4f512f,'subUnitId':_0x53b625,'pivotTableId':_0x161070,'fieldId':_0x51bb99,'area':_0x17d7c0,'index':_0x18e75f};return _0x3420c3[_0x1c2a21(0x157)](a['MovePivotFieldCommand']['id'],_0x5dc7d2);}async[_0x5ea482(0x14d)](_0x495add,_0x3c605e){const _0x227d28=_0x5ea482,_0xa0e717=this[_0x227d28(0x15e)],_0x1a32fb=this[_0x227d28(0x14f)],_0x28df0c=this['subUnitId'],_0x353b67=this[_0x227d28(0x13e)],_0x1ba02b=_0xa0e717[_0x227d28(0x149)](r[_0x227d28(0x16f)]),_0x59b50d={'unitId':_0x1a32fb,'subUnitId':_0x28df0c,'pivotTableId':_0x353b67,'position':_0x495add,'index':_0x3c605e};return _0x1ba02b[_0x227d28(0x157)](a[_0x227d28(0x145)]['id'],_0x59b50d);}async['setSubtotalType'](_0xf17046,_0x147290){const _0x24a161=_0x5ea482,_0x51565c=this[_0x24a161(0x15e)],_0x473817=this[_0x24a161(0x14f)],_0x177681=this[_0x24a161(0x15f)],_0x5382d0=this[_0x24a161(0x13e)],_0x394dc3=_0x51565c[_0x24a161(0x149)](r[_0x24a161(0x16f)]),_0x3c23a1={'unitId':_0x473817,'subUnitId':_0x177681,'pivotTableId':_0x5382d0,'fieldId':_0xf17046,'subtotalType':_0x147290};return _0x394dc3[_0x24a161(0x157)](a[_0x24a161(0x144)]['id'],_0x3c23a1);}async[_0x5ea482(0x165)](_0x53d3ef,_0x4edefe){const _0x273cff=_0x5ea482,_0x44e54c=this[_0x273cff(0x15e)],_0x2b3900=this[_0x273cff(0x14f)],_0x50e978=this[_0x273cff(0x15f)],_0x2c2466=this['pivotTableId'],_0x1d4e66=_0x44e54c[_0x273cff(0x149)](r[_0x273cff(0x16f)]),_0x692967={'unitId':_0x2b3900,'subUnitId':_0x50e978,'tableFieldId':_0x53d3ef,'pivotTableId':_0x2c2466,'info':_0x4edefe};return _0x1d4e66[_0x273cff(0x157)](a[_0x273cff(0x154)]['id'],_0x692967);}async[_0x5ea482(0x166)](_0x1232c2,_0x3cb23c,_0x4710e3){const _0x57b535=_0x5ea482,_0xdef95=this[_0x57b535(0x15e)],_0x1b89ce=this[_0x57b535(0x14f)],_0x24ea1f=this[_0x57b535(0x15f)],_0x2bb0c1=this['pivotTableId'],_0x484ffc=_0xdef95[_0x57b535(0x149)](r['ICommandService']),_0x548fdb={'unitId':_0x1b89ce,'subUnitId':_0x24ea1f,'pivotTableId':_0x2bb0c1,'tableFieldId':_0x1232c2,'items':_0x3cb23c,'isAll':_0x4710e3};return _0x484ffc[_0x57b535(0x157)](a[_0x57b535(0x163)]['id'],_0x548fdb);}async['renameField'](_0x81f901,_0x4c84d4){const _0x817e4d=_0x5ea482,_0x2a137e=this['_injector'],_0x353cf8=this[_0x817e4d(0x14f)],_0x2e9912=this['subUnitId'],_0x5322b7=this[_0x817e4d(0x13e)],_0x56b1c2=_0x2a137e[_0x817e4d(0x149)](r['ICommandService']),_0x5ea96e={'unitId':_0x353cf8,'subUnitId':_0x2e9912,'pivotTableId':_0x5322b7,'fieldId':_0x81f901,'name':_0x4c84d4};return _0x56b1c2[_0x817e4d(0x157)](a[_0x817e4d(0x16d)]['id'],_0x5ea96e);}}class S extends b[_0x5ea482(0x167)]{async[_0x5ea482(0x161)](_0x1acc80,_0x2c7342,_0x3b9c21){const _0x22a8e2=_0x5ea482,_0x2700e7=this[_0x22a8e2(0x15e)],_0x5332b1=_0x2700e7['get'](r['ICommandService']),_0x578122=P['generateHexNumber'](0x8),_0x39db7c={'positionType':_0x2c7342,'pivotTableId':_0x578122,'pivotTableConfig':{'targetCellInfo':_0x3b9c21,'sourceRangeInfo':_0x1acc80,'isEmpty':!0x0}};if(await _0x5332b1[_0x22a8e2(0x157)](a[_0x22a8e2(0x14a)]['id'],_0x39db7c))return new I(_0x3b9c21[_0x22a8e2(0x14f)],_0x3b9c21['subUnitId'],_0x578122,_0x2700e7);}[_0x5ea482(0x156)](_0x934c13,_0x56ded7,_0x20c852,_0x24d8e6){const _0x5f262d=_0x5ea482,_0x4e5e3c=this[_0x5f262d(0x15e)],_0x26678c=_0x4e5e3c[_0x5f262d(0x149)](a[_0x5f262d(0x14b)])['getPivotTableIdByCell'](_0x934c13,_0x56ded7,_0x20c852,_0x24d8e6);if(_0x26678c)return new I(_0x934c13,_0x56ded7,_0x26678c,_0x4e5e3c);}}function _0x211e(_0xdad59,_0x58548b){const _0x1d238b=_0x1d23();return _0x211e=function(_0x211e9,_0x3665cb){_0x211e9=_0x211e9-0x13d;let _0x2fa481=_0x1d238b[_0x211e9];return _0x2fa481;},_0x211e(_0xdad59,_0x58548b);}b['FWorkbook'][_0x5ea482(0x13f)](S),exports[_0x5ea482(0x164)]=I;
|