@univerjs-pro/sheets-pivot 0.5.1 → 0.5.2-nightly.202412291605

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.
Files changed (42) hide show
  1. package/README.md +5 -5
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ru-RU.js +1 -1
  8. package/lib/cjs/locale/vi-VN.js +1 -1
  9. package/lib/cjs/locale/zh-CN.js +1 -1
  10. package/lib/cjs/locale/zh-TW.js +1 -1
  11. package/lib/es/facade.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/en-US.js +1 -1
  14. package/lib/es/locale/fa-IR.js +1 -1
  15. package/lib/es/locale/fr-FR.js +1 -1
  16. package/lib/es/locale/ru-RU.js +1 -1
  17. package/lib/es/locale/vi-VN.js +1 -1
  18. package/lib/es/locale/zh-CN.js +1 -1
  19. package/lib/es/locale/zh-TW.js +1 -1
  20. package/lib/types/commands/command/add-pivot-field.command.d.ts +1 -1
  21. package/lib/types/commands/command/move-pivot-table.command.d.ts +15 -0
  22. package/lib/types/common/const.d.ts +40 -40
  23. package/lib/types/const/const.d.ts +1 -1
  24. package/lib/types/const/type.d.ts +1 -1
  25. package/lib/types/controllers/config.schema.d.ts +1 -0
  26. package/lib/types/controllers/const.d.ts +1 -1
  27. package/lib/types/facade/f-pivot-table.d.ts +16 -1
  28. package/lib/types/index.d.ts +3 -0
  29. package/lib/types/models/sheets-pivot-data-source-model.d.ts +1 -1
  30. package/lib/types/plugin.d.ts +0 -1
  31. package/lib/types/services/sheets-pivot-table.service.d.ts +1 -1
  32. package/lib/types/util.d.ts +1 -1
  33. package/lib/umd/facade.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/en-US.js +1 -1
  36. package/lib/umd/locale/fa-IR.js +1 -1
  37. package/lib/umd/locale/fr-FR.js +1 -1
  38. package/lib/umd/locale/ru-RU.js +1 -1
  39. package/lib/umd/locale/vi-VN.js +1 -1
  40. package/lib/umd/locale/zh-CN.js +1 -1
  41. package/lib/umd/locale/zh-TW.js +1 -1
  42. package/package.json +18 -13
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @univerjs/sheet-pivot
1
+ # @univerjs-pro/sheets-pivot
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@univerjs/sheet-pivot)](https://npmjs.org/packages/@univerjs/sheet-pivot)
4
- [![license](https://img.shields.io/npm/l/@univerjs/sheet-pivot)](https://img.shields.io/npm/l/@univerjs/sheet-pivot)
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/sheets-pivot)](https://npmjs.org/packages/@univerjs-pro/sheets-pivot)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/sheets-pivot)](https://img.shields.io/npm/l/@univerjs-pro/sheets-pivot)
5
5
  ![CSS Included](https://img.shields.io/badge/CSS_Included-blue?logo=CSS3)
6
6
  ![i18n](https://img.shields.io/badge/zh--CN%20%7C%20en--US-cornflowerblue?label=i18n)
7
7
 
@@ -15,10 +15,10 @@ A pivot table is a powerful data analysis tool used for quickly and dynamically
15
15
 
16
16
  ```shell
17
17
  # Using npm
18
- npm install @univerjs/sheet-pivot-ui @univerjs/sheet-pivot
18
+ npm install @univerjs-pro/sheets-pivot-ui @univerjs-pro/sheets-pivot
19
19
 
20
20
  # Using pnpm
21
- pnpm add @univerjs/sheet-pivot-ui @univerjs/sheet-pivot
21
+ pnpm add @univerjs-pro/sheets-pivot-ui @univerjs-pro/sheets-pivot
22
22
  ```
23
23
 
24
24
  ### Import
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0xe3aa(_0x2cca30,_0x4de628){const _0x5e1540=_0x5e15();return _0xe3aa=function(_0xe3aad7,_0x63e363){_0xe3aad7=_0xe3aad7-0x1b1;let _0xe122f5=_0x5e1540[_0xe3aad7];return _0xe122f5;},_0xe3aa(_0x2cca30,_0x4de628);}const _0x4049a3=_0xe3aa;(function(_0x10a79c,_0x1e102b){const _0x380e22=_0xe3aa,_0x28f5bd=_0x10a79c();while(!![]){try{const _0x352e84=parseInt(_0x380e22(0x1d1))/0x1+-parseInt(_0x380e22(0x1b8))/0x2+-parseInt(_0x380e22(0x1c5))/0x3+parseInt(_0x380e22(0x1c9))/0x4*(parseInt(_0x380e22(0x1b9))/0x5)+parseInt(_0x380e22(0x1d9))/0x6+-parseInt(_0x380e22(0x1ba))/0x7*(parseInt(_0x380e22(0x1cc))/0x8)+parseInt(_0x380e22(0x1d8))/0x9;if(_0x352e84===_0x1e102b)break;else _0x28f5bd['push'](_0x28f5bd['shift']());}catch(_0x3b3eec){_0x28f5bd['push'](_0x28f5bd['shift']());}}}(_0x5e15,0xccd9c));function _0x5e15(){const _0x4390c5=['RemovePivotFieldCommand','RemovePivotTableMutation','addPivotTable','setLabelSort','MovePivotFieldCommand','9882855CUBcmN','5286936psnrqV','addField','ICommandService','updateValuePosition','fieldIds','unitId','SetPivotSortCommand','generateHexNumber','@univerjs/sheets/facade','pivotTableId','FWorkbook','setLabelManualFilter','AddPivotTableCommand','@univerjs/core','SheetsPivotTableConfigModel','symbol','2885038XbQlps','10KXIUXe','7xYWeMy','get','getConfig','toStringTag','number','getPivotTableConfig','RenamePivotFieldMutation','@univerjs-pro/engine-pivot','executeCommand','subUnitId','Module','345000JGwVvc','SetPivotSubtotalTypeMutation','syncExecuteCommand','getPivotTableIdByCell','1178104FqEnGh','getCollection','_injector','9340200akMYTK','SetPivotFilterCommand','defineProperty','renameField','getPivotTableByCell','995809diIYoy','extend'];_0x5e15=function(){return _0x4390c5;};return _0x5e15();}var C=Object['defineProperty'],g=(_0x2715b6,_0x38cdd5,_0x2916af)=>_0x38cdd5 in _0x2715b6?C(_0x2715b6,_0x38cdd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2916af}):_0x2715b6[_0x38cdd5]=_0x2916af,l=(_0x126a22,_0x3e405d,_0x5ad585)=>g(_0x126a22,typeof _0x3e405d!=_0x4049a3(0x1b7)?_0x3e405d+'':_0x3e405d,_0x5ad585);Object[_0x4049a3(0x1ce)](exports,Symbol[_0x4049a3(0x1bd)],{'value':_0x4049a3(0x1c4)});const r=require(_0x4049a3(0x1b5)),b=require(_0x4049a3(0x1e1)),P=require(_0x4049a3(0x1c1)),a=require('@univerjs-pro/sheets-pivot');class I{constructor(_0x2220b5,_0x5637ea,_0x59ed64,_0x54111c){const _0x4040b3=_0x4049a3;l(this,_0x4040b3(0x1de)),l(this,_0x4040b3(0x1c3)),l(this,_0x4040b3(0x1b1)),l(this,'_injector'),(this['unitId']=_0x2220b5,this[_0x4040b3(0x1c3)]=_0x5637ea,this[_0x4040b3(0x1b1)]=_0x59ed64,this[_0x4040b3(0x1cb)]=_0x54111c);}[_0x4049a3(0x1bc)](){const _0x389c3d=_0x4049a3;return this[_0x389c3d(0x1cb)][_0x389c3d(0x1bb)](a[_0x389c3d(0x1b6)])[_0x389c3d(0x1bf)](this[_0x389c3d(0x1de)],this[_0x389c3d(0x1c3)],this[_0x389c3d(0x1b1)]);}async['remove'](){const _0x23bb00=_0x4049a3;return await this['_injector']['get'](r[_0x23bb00(0x1db)])[_0x23bb00(0x1c7)](a[_0x23bb00(0x1d4)]['id'],{'unitId':this[_0x23bb00(0x1de)],'subUnitId':this[_0x23bb00(0x1c3)],'pivotTableId':this[_0x23bb00(0x1b1)]});}async[_0x4049a3(0x1da)](_0x21ae34,_0x182ff7,_0x24af03){const _0x199c97=_0x4049a3,_0x5a9b5a=this[_0x199c97(0x1cb)],_0x3f2f71=this[_0x199c97(0x1de)],_0x3e73e6=this[_0x199c97(0x1c3)],_0x4be2f4=this[_0x199c97(0x1b1)],_0x35a8b5=_0x5a9b5a[_0x199c97(0x1bb)](r[_0x199c97(0x1db)]),_0x142552=_0x5a9b5a[_0x199c97(0x1bb)](a[_0x199c97(0x1b6)]),_0x17af9f=_0x142552[_0x199c97(0x1bf)](_0x3f2f71,_0x3e73e6,_0x4be2f4),_0x800caf=_0x142552[_0x199c97(0x1ca)](_0x3f2f71,_0x4be2f4);if(!_0x17af9f||!_0x800caf)return!0x1;let _0x1ed829=_0x21ae34;typeof _0x1ed829==_0x199c97(0x1be)&&(_0x1ed829=_0x142552[_0x199c97(0x1ca)](_0x3f2f71,_0x4be2f4)[_0x199c97(0x1dd)][_0x21ae34]);const _0x17e29e={'unitId':_0x3f2f71,'subUnitId':_0x3e73e6,'pivotTableId':_0x4be2f4,'dataFieldId':_0x1ed829,'fieldArea':_0x182ff7,'index':_0x24af03};return _0x35a8b5['executeCommand'](a['AddPivotFieldCommand']['id'],_0x17e29e);}async['removeField'](_0x30741f){const _0x494d82=_0x4049a3,_0x116406=this[_0x494d82(0x1cb)],_0x535291=this[_0x494d82(0x1de)],_0x3f97eb=this[_0x494d82(0x1c3)],_0x38cb47=this[_0x494d82(0x1b1)],_0x4746a9=_0x116406['get'](r[_0x494d82(0x1db)]),_0x2390ae={'unitId':_0x535291,'subUnitId':_0x3f97eb,'pivotTableId':_0x38cb47,'fieldIds':_0x30741f};return _0x4746a9[_0x494d82(0x1c2)](a[_0x494d82(0x1d3)]['id'],_0x2390ae);}async['updateFieldPosition'](_0x890fdd,_0xb717ab,_0x243674){const _0x39b74d=_0x4049a3,_0x50d74b=this[_0x39b74d(0x1cb)],_0x5713f6=this[_0x39b74d(0x1de)],_0x2a735b=this[_0x39b74d(0x1c3)],_0x4ba025=this[_0x39b74d(0x1b1)],_0x1dae7f=_0x50d74b[_0x39b74d(0x1bb)](r['ICommandService']),_0x2d954a={'unitId':_0x5713f6,'subUnitId':_0x2a735b,'pivotTableId':_0x4ba025,'fieldId':_0x890fdd,'area':_0xb717ab,'index':_0x243674};return _0x1dae7f[_0x39b74d(0x1c2)](a[_0x39b74d(0x1d7)]['id'],_0x2d954a);}async[_0x4049a3(0x1dc)](_0x5ea8d4,_0x2da4d4){const _0x1994be=_0x4049a3,_0x40126e=this['_injector'],_0x15609a=this[_0x1994be(0x1de)],_0xd02269=this[_0x1994be(0x1c3)],_0x4b5515=this['pivotTableId'],_0x46e63c=_0x40126e[_0x1994be(0x1bb)](r[_0x1994be(0x1db)]),_0x2926a0={'unitId':_0x15609a,'subUnitId':_0xd02269,'pivotTableId':_0x4b5515,'position':_0x5ea8d4,'index':_0x2da4d4};return _0x46e63c[_0x1994be(0x1c2)](a['UpdatePivotValuePositionCommand']['id'],_0x2926a0);}async['setSubtotalType'](_0x53a70f,_0x4d7a5c){const _0x3daa5a=_0x4049a3,_0x583707=this[_0x3daa5a(0x1cb)],_0x234f6b=this[_0x3daa5a(0x1de)],_0x32b223=this[_0x3daa5a(0x1c3)],_0x174523=this['pivotTableId'],_0x52c65a=_0x583707[_0x3daa5a(0x1bb)](r[_0x3daa5a(0x1db)]),_0x29330e={'unitId':_0x234f6b,'subUnitId':_0x32b223,'pivotTableId':_0x174523,'fieldId':_0x53a70f,'subtotalType':_0x4d7a5c};return _0x52c65a[_0x3daa5a(0x1c2)](a[_0x3daa5a(0x1c6)]['id'],_0x29330e);}async[_0x4049a3(0x1d6)](_0x42961c,_0x338751){const _0x46a9f0=_0x4049a3,_0x4598aa=this[_0x46a9f0(0x1cb)],_0x42fff3=this[_0x46a9f0(0x1de)],_0x309b75=this[_0x46a9f0(0x1c3)],_0x59a26c=this[_0x46a9f0(0x1b1)],_0x291ba9=_0x4598aa['get'](r[_0x46a9f0(0x1db)]),_0x41c0ce={'unitId':_0x42fff3,'subUnitId':_0x309b75,'tableFieldId':_0x42961c,'pivotTableId':_0x59a26c,'info':_0x338751};return _0x291ba9[_0x46a9f0(0x1c2)](a[_0x46a9f0(0x1df)]['id'],_0x41c0ce);}async[_0x4049a3(0x1b3)](_0x46c1c0,_0xc3d6ab,_0x5ac3cd){const _0x1690bd=_0x4049a3,_0x9cd50c=this['_injector'],_0x4c54ed=this[_0x1690bd(0x1de)],_0x349adb=this[_0x1690bd(0x1c3)],_0x175ea9=this[_0x1690bd(0x1b1)],_0x419c9a=_0x9cd50c['get'](r[_0x1690bd(0x1db)]),_0x302c6d={'unitId':_0x4c54ed,'subUnitId':_0x349adb,'pivotTableId':_0x175ea9,'tableFieldId':_0x46c1c0,'items':_0xc3d6ab,'isAll':_0x5ac3cd};return _0x419c9a[_0x1690bd(0x1c2)](a[_0x1690bd(0x1cd)]['id'],_0x302c6d);}async[_0x4049a3(0x1cf)](_0x5ebafb,_0xcea6f7){const _0x56e743=_0x4049a3,_0x3caf0c=this[_0x56e743(0x1cb)],_0x135a0c=this[_0x56e743(0x1de)],_0x50b982=this[_0x56e743(0x1c3)],_0x5d0802=this[_0x56e743(0x1b1)],_0x5b8c92=_0x3caf0c[_0x56e743(0x1bb)](r['ICommandService']),_0x22e3ab={'unitId':_0x135a0c,'subUnitId':_0x50b982,'pivotTableId':_0x5d0802,'fieldId':_0x5ebafb,'name':_0xcea6f7};return _0x5b8c92[_0x56e743(0x1c2)](a[_0x56e743(0x1c0)]['id'],_0x22e3ab);}}class S extends b[_0x4049a3(0x1b2)]{async[_0x4049a3(0x1d5)](_0x4bb8a6,_0x4858d5,_0x515f40){const _0x4355a3=_0x4049a3,_0x26d012=this[_0x4355a3(0x1cb)],_0x29b1ba=_0x26d012[_0x4355a3(0x1bb)](r[_0x4355a3(0x1db)]),_0x11939a=P[_0x4355a3(0x1e0)](0x8),_0x6c32d5={'positionType':_0x4858d5,'pivotTableId':_0x11939a,'pivotTableConfig':{'targetCellInfo':_0x515f40,'sourceRangeInfo':_0x4bb8a6,'isEmpty':!0x0}};if(await _0x29b1ba['executeCommand'](a[_0x4355a3(0x1b4)]['id'],_0x6c32d5))return new I(_0x515f40[_0x4355a3(0x1de)],_0x515f40[_0x4355a3(0x1c3)],_0x11939a,_0x26d012);}[_0x4049a3(0x1d0)](_0xb930de,_0x4ae810,_0x12cd03,_0x40be7b){const _0x1248c0=_0x4049a3,_0x468a13=this['_injector'],_0x572bb3=_0x468a13['get'](a['SheetsPivotTableAdaptorModel'])[_0x1248c0(0x1c8)](_0xb930de,_0x4ae810,_0x12cd03,_0x40be7b);if(_0x572bb3)return new I(_0xb930de,_0x4ae810,_0x572bb3,_0x468a13);}}b[_0x4049a3(0x1b2)][_0x4049a3(0x1d2)](S),exports['FPivotTable']=I;
1
+ 'use strict';const _0x2c5eb0=_0x233e;(function(_0x217838,_0x3397fd){const _0x1ac23d=_0x233e,_0x555d7b=_0x217838();while(!![]){try{const _0x5a1e5d=parseInt(_0x1ac23d(0x1f2))/0x1+parseInt(_0x1ac23d(0x1e6))/0x2*(-parseInt(_0x1ac23d(0x1e9))/0x3)+parseInt(_0x1ac23d(0x1c1))/0x4*(parseInt(_0x1ac23d(0x1e3))/0x5)+parseInt(_0x1ac23d(0x1ce))/0x6*(-parseInt(_0x1ac23d(0x1dd))/0x7)+-parseInt(_0x1ac23d(0x1c5))/0x8*(parseInt(_0x1ac23d(0x1df))/0x9)+-parseInt(_0x1ac23d(0x1da))/0xa*(parseInt(_0x1ac23d(0x1bd))/0xb)+parseInt(_0x1ac23d(0x1e8))/0xc;if(_0x5a1e5d===_0x3397fd)break;else _0x555d7b['push'](_0x555d7b['shift']());}catch(_0x451074){_0x555d7b['push'](_0x555d7b['shift']());}}}(_0x142e,0x40935));var C=Object[_0x2c5eb0(0x1ed)],p=(_0x3dfb3e,_0x1b465e,_0x513ab5)=>_0x1b465e in _0x3dfb3e?C(_0x3dfb3e,_0x1b465e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x513ab5}):_0x3dfb3e[_0x1b465e]=_0x513ab5,l=(_0x2dcc44,_0x8f3083,_0xa7632b)=>p(_0x2dcc44,typeof _0x8f3083!=_0x2c5eb0(0x1cc)?_0x8f3083+'':_0x8f3083,_0xa7632b);Object[_0x2c5eb0(0x1ed)](exports,Symbol[_0x2c5eb0(0x1ef)],{'value':_0x2c5eb0(0x1ea)});const r=require(_0x2c5eb0(0x1cd)),b=require(_0x2c5eb0(0x1c4)),S=require('@univerjs-pro/engine-pivot'),d=require(_0x2c5eb0(0x1d5));class I{constructor(_0x9ef0e2,_0x46feef,_0xc7d9f0,_0x22a74e){const _0x111a75=_0x2c5eb0;l(this,_0x111a75(0x1eb)),l(this,_0x111a75(0x1f6)),l(this,_0x111a75(0x1e1)),l(this,'_injector'),(this[_0x111a75(0x1eb)]=_0x9ef0e2,this[_0x111a75(0x1f6)]=_0x46feef,this[_0x111a75(0x1e1)]=_0xc7d9f0,this['_injector']=_0x22a74e);}[_0x2c5eb0(0x1ca)](){const _0x13af9b=_0x2c5eb0;return this[_0x13af9b(0x1c8)][_0x13af9b(0x1c0)](d[_0x13af9b(0x1e4)])[_0x13af9b(0x1de)](this[_0x13af9b(0x1eb)],this[_0x13af9b(0x1f6)],this['pivotTableId']);}['getPivotTableRangeInfo'](){const _0x3c1c75=_0x2c5eb0;var _0x17eeb6;const _0x4a3b18=(_0x17eeb6=this[_0x3c1c75(0x1c8)][_0x3c1c75(0x1c0)](d[_0x3c1c75(0x1e4)])[_0x3c1c75(0x1e0)](this[_0x3c1c75(0x1eb)],this[_0x3c1c75(0x1f6)],this[_0x3c1c75(0x1e1)]))==null?void 0x0:_0x17eeb6['rangeInfo'];if(_0x4a3b18)return d[_0x3c1c75(0x1d3)](_0x4a3b18);}async[_0x2c5eb0(0x1d1)](){const _0x1f53e8=_0x2c5eb0;return await this[_0x1f53e8(0x1c8)]['get'](r[_0x1f53e8(0x1bc)])['syncExecuteCommand'](d['RemovePivotTableMutation']['id'],{'unitId':this['unitId'],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x1f53e8(0x1e1)]});}async[_0x2c5eb0(0x1ee)](_0x371a8e,_0x47e257,_0x470cf8){const _0x491619=_0x2c5eb0,_0x3a073f=this[_0x491619(0x1c8)],_0x4824d6=this[_0x491619(0x1eb)],_0x157299=this[_0x491619(0x1f6)],_0x5d708b=this['pivotTableId'],_0x500812=_0x3a073f[_0x491619(0x1c0)](r[_0x491619(0x1bc)]),_0x4cd5ec=_0x3a073f[_0x491619(0x1c0)](d[_0x491619(0x1e4)]),_0x479014=_0x4cd5ec['getPivotTableConfig'](_0x4824d6,_0x157299,_0x5d708b),_0x14b229=_0x4cd5ec[_0x491619(0x1be)](_0x4824d6,_0x5d708b);if(!_0x479014||!_0x14b229)return!0x1;let _0x32016b=_0x371a8e;typeof _0x32016b==_0x491619(0x1db)&&(_0x32016b=_0x4cd5ec[_0x491619(0x1be)](_0x4824d6,_0x5d708b)[_0x491619(0x1d4)][_0x371a8e]);const _0x1a7b31={'unitId':_0x4824d6,'subUnitId':_0x157299,'pivotTableId':_0x5d708b,'dataFieldId':_0x32016b,'fieldArea':_0x47e257,'index':_0x470cf8};return _0x500812[_0x491619(0x1d0)](d[_0x491619(0x1cb)]['id'],_0x1a7b31);}async[_0x2c5eb0(0x1f0)](_0x1c437f){const _0x78aba8=_0x2c5eb0,_0x36d10d=this[_0x78aba8(0x1c8)],_0x345e81=this[_0x78aba8(0x1eb)],_0x382635=this['subUnitId'],_0x21a08a=this[_0x78aba8(0x1e1)],_0x4e9ec8=_0x36d10d[_0x78aba8(0x1c0)](r['ICommandService']),_0x2626a8={'unitId':_0x345e81,'subUnitId':_0x382635,'pivotTableId':_0x21a08a,'fieldIds':_0x1c437f};return _0x4e9ec8[_0x78aba8(0x1d0)](d['RemovePivotFieldCommand']['id'],_0x2626a8);}async['updateFieldPosition'](_0x4755a5,_0x24dcd4,_0x2be148){const _0x42f069=_0x2c5eb0,_0x26d882=this['_injector'],_0x174c4e=this[_0x42f069(0x1eb)],_0x2a6f9b=this[_0x42f069(0x1f6)],_0x52d151=this['pivotTableId'],_0x4d8962=_0x26d882['get'](r[_0x42f069(0x1bc)]),_0x3bb24d={'unitId':_0x174c4e,'subUnitId':_0x2a6f9b,'pivotTableId':_0x52d151,'fieldId':_0x4755a5,'area':_0x24dcd4,'index':_0x2be148};return _0x4d8962[_0x42f069(0x1d0)](d[_0x42f069(0x1d7)]['id'],_0x3bb24d);}async['updateValuePosition'](_0x55edec,_0x509cda){const _0x1b4067=_0x2c5eb0,_0x52fe40=this['_injector'],_0x1dd4c9=this[_0x1b4067(0x1eb)],_0x3bcd6f=this[_0x1b4067(0x1f6)],_0x441173=this['pivotTableId'],_0x9c6657=_0x52fe40[_0x1b4067(0x1c0)](r[_0x1b4067(0x1bc)]),_0x2f05ea={'unitId':_0x1dd4c9,'subUnitId':_0x3bcd6f,'pivotTableId':_0x441173,'position':_0x55edec,'index':_0x509cda};return _0x9c6657[_0x1b4067(0x1d0)](d[_0x1b4067(0x1d8)]['id'],_0x2f05ea);}async[_0x2c5eb0(0x1c7)](_0x29b897,_0x3f9e94){const _0x20f214=_0x2c5eb0,_0x148d31=this[_0x20f214(0x1c8)],_0x3e2e9b=this[_0x20f214(0x1eb)],_0x292ffd=this[_0x20f214(0x1f6)],_0x9a29d3=this[_0x20f214(0x1e1)],_0x56cf5e=_0x148d31['get'](r[_0x20f214(0x1bc)]),_0x2a686c={'unitId':_0x3e2e9b,'subUnitId':_0x292ffd,'pivotTableId':_0x9a29d3,'fieldId':_0x29b897,'subtotalType':_0x3f9e94};return _0x56cf5e[_0x20f214(0x1d0)](d[_0x20f214(0x1d2)]['id'],_0x2a686c);}async[_0x2c5eb0(0x1d9)](_0x471624,_0x134d28){const _0x3ade08=_0x2c5eb0,_0x89e0c6=this[_0x3ade08(0x1c8)],_0x499284=this[_0x3ade08(0x1eb)],_0x177e17=this[_0x3ade08(0x1f6)],_0x36c9e1=this[_0x3ade08(0x1e1)],_0x494479=_0x89e0c6[_0x3ade08(0x1c0)](r['ICommandService']),_0x31ba92={'unitId':_0x499284,'subUnitId':_0x177e17,'tableFieldId':_0x471624,'pivotTableId':_0x36c9e1,'info':_0x134d28};return _0x494479[_0x3ade08(0x1d0)](d[_0x3ade08(0x1ec)]['id'],_0x31ba92);}async['setLabelManualFilter'](_0x2cf6ad,_0x4c256c,_0x1f9731){const _0x3b27af=_0x2c5eb0,_0x43a0f5=this[_0x3b27af(0x1c8)],_0x4d0360=this[_0x3b27af(0x1eb)],_0x22512f=this[_0x3b27af(0x1f6)],_0x41fb8e=this[_0x3b27af(0x1e1)],_0x49c825=_0x43a0f5[_0x3b27af(0x1c0)](r[_0x3b27af(0x1bc)]),_0x358ad0={'unitId':_0x4d0360,'subUnitId':_0x22512f,'pivotTableId':_0x41fb8e,'tableFieldId':_0x2cf6ad,'items':_0x4c256c,'isAll':_0x1f9731};return _0x49c825['executeCommand'](d[_0x3b27af(0x1c2)]['id'],_0x358ad0);}async[_0x2c5eb0(0x1e7)](_0x14cc70,_0x32ff6d){const _0x12a350=_0x2c5eb0,_0xd93b6e=this['_injector'],_0xd397fb=this[_0x12a350(0x1eb)],_0xb7cb1d=this[_0x12a350(0x1f6)],_0x39c9bd=this[_0x12a350(0x1e1)],_0x38bc1f=_0xd93b6e[_0x12a350(0x1c0)](r[_0x12a350(0x1bc)]),_0x1524b0={'unitId':_0xd397fb,'subUnitId':_0xb7cb1d,'pivotTableId':_0x39c9bd,'fieldId':_0x14cc70,'name':_0x32ff6d};return _0x38bc1f[_0x12a350(0x1d0)](d['RenamePivotFieldMutation']['id'],_0x1524b0);}async[_0x2c5eb0(0x1c9)](_0x4a066b,_0x2ffa74,_0x28a60e){const _0x36f567=_0x2c5eb0,_0x231393=this[_0x36f567(0x1c8)][_0x36f567(0x1c0)](r['ICommandService']),_0xfc5bae=this[_0x36f567(0x1c8)]['get'](r[_0x36f567(0x1f5)])['getUnit'](this[_0x36f567(0x1eb)]),_0x4fada4=_0xfc5bae==null?void 0x0:_0xfc5bae['getSheetBySheetName'](_0x4a066b);if(!_0xfc5bae||!_0x4fada4)throw new Error(_0x36f567(0x1c3));return _0x231393['executeCommand'](d[_0x36f567(0x1dc)]['id'],{'pivotTableId':this[_0x36f567(0x1e1)],'targetCellInfo':{'subUnitId':_0x4fada4[_0x36f567(0x1e2)](),'unitId':this[_0x36f567(0x1eb)],'row':_0x2ffa74,'col':_0x28a60e},'originTargetInfo':{'subUnitId':this[_0x36f567(0x1f6)],'unitId':this[_0x36f567(0x1eb)]}});}}class P extends b[_0x2c5eb0(0x1c6)]{async[_0x2c5eb0(0x1d6)](_0x658c7e,_0x31f694,_0x2a9779){const _0xb11510=_0x2c5eb0,_0x4736aa=this[_0xb11510(0x1c8)],_0x5d7822=_0x4736aa[_0xb11510(0x1c0)](r[_0xb11510(0x1bc)]),_0x47bf92=S[_0xb11510(0x1f3)](0x8),_0x3cdf08={'positionType':_0x31f694,'pivotTableId':_0x47bf92,'pivotTableConfig':{'targetCellInfo':_0x2a9779,'sourceRangeInfo':_0x658c7e,'isEmpty':!0x0}};if(await _0x5d7822[_0xb11510(0x1d0)](d[_0xb11510(0x1f4)]['id'],_0x3cdf08))return new I(_0x2a9779[_0xb11510(0x1eb)],_0x2a9779['subUnitId'],_0x47bf92,_0x4736aa);}[_0x2c5eb0(0x1e5)](_0xba7b2,_0x153ac2,_0x57bdde,_0x3bcb29){const _0x24e9c7=_0x2c5eb0,_0x19861f=this[_0x24e9c7(0x1c8)],_0x4e3465=_0x19861f[_0x24e9c7(0x1c0)](d['SheetsPivotTableAdaptorModel'])[_0x24e9c7(0x1cf)](_0xba7b2,_0x153ac2,_0x57bdde,_0x3bcb29);if(_0x4e3465)return new I(_0xba7b2,_0x153ac2,_0x4e3465,_0x19861f);}}function _0x233e(_0x5c8824,_0x447d13){const _0x142e46=_0x142e();return _0x233e=function(_0x233e99,_0x44e218){_0x233e99=_0x233e99-0x1bc;let _0x32a7c3=_0x142e46[_0x233e99];return _0x32a7c3;},_0x233e(_0x5c8824,_0x447d13);}function _0x142e(){const _0x4b91d0=['SetPivotSubtotalTypeMutation','unionPivotViewRange','fieldIds','@univerjs-pro/sheets-pivot','addPivotTable','MovePivotFieldCommand','UpdatePivotValuePositionCommand','setLabelSort','2555890duTdDc','number','MovePivotTableCommand','4879DPbkwp','getPivotTableConfig','324aAjcGZ','getPivotTableRangeInfo','pivotTableId','getSheetId','798670GAblLK','SheetsPivotTableConfigModel','getPivotTableByCell','4oTfbRV','renameField','3999204eEAQBc','703167PEuIHI','Module','unitId','SetPivotSortCommand','defineProperty','addField','toStringTag','removeField','FPivotTable','397709XWcgiT','generateHexNumber','AddPivotTableCommand','IUniverInstanceService','subUnitId','ICommandService','11OkAFuc','getCollection','extend','get','8ZUhOut','SetPivotFilterCommand','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','@univerjs/sheets/facade','13064qSJkxc','FWorkbook','setSubtotalType','_injector','move','getConfig','AddPivotFieldCommand','symbol','@univerjs/core','24ajFnfd','getPivotTableIdByCell','executeCommand','remove'];_0x142e=function(){return _0x4b91d0;};return _0x142e();}b[_0x2c5eb0(0x1c6)][_0x2c5eb0(0x1bf)](P),exports[_0x2c5eb0(0x1f1)]=I;