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

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 +39 -39
  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 _0xdee7f=_0x530b;(function(_0x2fd368,_0x305d55){const _0x1b786e=_0x530b,_0x1a103f=_0x2fd368();while(!![]){try{const _0x41419e=parseInt(_0x1b786e(0xeb))/0x1*(parseInt(_0x1b786e(0xcd))/0x2)+-parseInt(_0x1b786e(0xea))/0x3*(parseInt(_0x1b786e(0xd6))/0x4)+-parseInt(_0x1b786e(0xca))/0x5+parseInt(_0x1b786e(0xbd))/0x6+parseInt(_0x1b786e(0xcf))/0x7+-parseInt(_0x1b786e(0xe4))/0x8+-parseInt(_0x1b786e(0xe2))/0x9*(-parseInt(_0x1b786e(0xec))/0xa);if(_0x41419e===_0x305d55)break;else _0x1a103f['push'](_0x1a103f['shift']());}catch(_0x488827){_0x1a103f['push'](_0x1a103f['shift']());}}}(_0x8a5a,0x906c3));function _0x530b(_0x5ee39c,_0x340e01){const _0x8a5aec=_0x8a5a();return _0x530b=function(_0x530bea,_0x27537d){_0x530bea=_0x530bea-0xba;let _0x50f83f=_0x8a5aec[_0x530bea];return _0x50f83f;},_0x530b(_0x5ee39c,_0x340e01);}var C=Object[_0xdee7f(0xc3)],p=(_0x4586e0,_0x5d5fbe,_0x2fbf4c)=>_0x5d5fbe in _0x4586e0?C(_0x4586e0,_0x5d5fbe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fbf4c}):_0x4586e0[_0x5d5fbe]=_0x2fbf4c,l=(_0x189272,_0x1e3a77,_0x4266c3)=>p(_0x189272,typeof _0x1e3a77!=_0xdee7f(0xbc)?_0x1e3a77+'':_0x1e3a77,_0x4266c3);Object[_0xdee7f(0xc3)](exports,Symbol[_0xdee7f(0xbf)],{'value':_0xdee7f(0xdc)});const r=require(_0xdee7f(0xde)),b=require(_0xdee7f(0xe9)),S=require(_0xdee7f(0xbe)),d=require(_0xdee7f(0xc7));class I{constructor(_0xed311f,_0x35d7c,_0x40ca61,_0x1c9bc9){const _0x1ea82a=_0xdee7f;l(this,_0x1ea82a(0xc1)),l(this,_0x1ea82a(0xc5)),l(this,'pivotTableId'),l(this,_0x1ea82a(0xed)),(this[_0x1ea82a(0xc1)]=_0xed311f,this[_0x1ea82a(0xc5)]=_0x35d7c,this[_0x1ea82a(0xc0)]=_0x40ca61,this[_0x1ea82a(0xed)]=_0x1c9bc9);}[_0xdee7f(0xc9)](){const _0x20d9fe=_0xdee7f;return this[_0x20d9fe(0xed)]['get'](d[_0x20d9fe(0xd5)])[_0x20d9fe(0xe8)](this['unitId'],this['subUnitId'],this['pivotTableId']);}[_0xdee7f(0xd2)](){const _0x1101d6=_0xdee7f;var _0x25a5a7;const _0x2e10c0=(_0x25a5a7=this[_0x1101d6(0xed)]['get'](d[_0x1101d6(0xd5)])[_0x1101d6(0xd2)](this[_0x1101d6(0xc1)],this[_0x1101d6(0xc5)],this[_0x1101d6(0xc0)]))==null?void 0x0:_0x25a5a7['rangeInfo'];if(_0x2e10c0)return d[_0x1101d6(0xe6)](_0x2e10c0);}async['remove'](){const _0x53681f=_0xdee7f;return await this['_injector']['get'](r['ICommandService'])[_0x53681f(0xd4)](d['RemovePivotTableMutation']['id'],{'unitId':this[_0x53681f(0xc1)],'subUnitId':this[_0x53681f(0xc5)],'pivotTableId':this[_0x53681f(0xc0)]});}async[_0xdee7f(0xe3)](_0x963fb2,_0x3260b5,_0x1e14ad){const _0xa0a585=_0xdee7f,_0x2412d3=this['_injector'],_0x4e5183=this[_0xa0a585(0xc1)],_0x256cc5=this[_0xa0a585(0xc5)],_0x5448ee=this[_0xa0a585(0xc0)],_0xb89cdb=_0x2412d3[_0xa0a585(0xba)](r[_0xa0a585(0xf0)]),_0xf04bb9=_0x2412d3[_0xa0a585(0xba)](d[_0xa0a585(0xd5)]),_0x370b31=_0xf04bb9[_0xa0a585(0xe8)](_0x4e5183,_0x256cc5,_0x5448ee),_0x40c4a0=_0xf04bb9[_0xa0a585(0xc2)](_0x4e5183,_0x5448ee);if(!_0x370b31||!_0x40c4a0)return!0x1;let _0x37b8d3=_0x963fb2;typeof _0x37b8d3==_0xa0a585(0xc8)&&(_0x37b8d3=_0xf04bb9[_0xa0a585(0xc2)](_0x4e5183,_0x5448ee)[_0xa0a585(0xd1)][_0x963fb2]);const _0x393230={'unitId':_0x4e5183,'subUnitId':_0x256cc5,'pivotTableId':_0x5448ee,'dataFieldId':_0x37b8d3,'fieldArea':_0x3260b5,'index':_0x1e14ad};return _0xb89cdb[_0xa0a585(0xd7)](d[_0xa0a585(0xce)]['id'],_0x393230);}async[_0xdee7f(0xdd)](_0xa5567){const _0x6857e3=_0xdee7f,_0x4fa214=this[_0x6857e3(0xed)],_0x5483f2=this[_0x6857e3(0xc1)],_0x205e15=this[_0x6857e3(0xc5)],_0x2d537e=this[_0x6857e3(0xc0)],_0x55c978=_0x4fa214[_0x6857e3(0xba)](r[_0x6857e3(0xf0)]),_0x4d65f6={'unitId':_0x5483f2,'subUnitId':_0x205e15,'pivotTableId':_0x2d537e,'fieldIds':_0xa5567};return _0x55c978[_0x6857e3(0xd7)](d[_0x6857e3(0xcb)]['id'],_0x4d65f6);}async[_0xdee7f(0xe0)](_0x5ab31c,_0x12aa3a,_0x39867a){const _0x41e509=_0xdee7f,_0x5bf2a9=this[_0x41e509(0xed)],_0x3feae6=this[_0x41e509(0xc1)],_0x1b7a9=this['subUnitId'],_0x120881=this[_0x41e509(0xc0)],_0x50b35e=_0x5bf2a9[_0x41e509(0xba)](r[_0x41e509(0xf0)]),_0x363218={'unitId':_0x3feae6,'subUnitId':_0x1b7a9,'pivotTableId':_0x120881,'fieldId':_0x5ab31c,'area':_0x12aa3a,'index':_0x39867a};return _0x50b35e['executeCommand'](d[_0x41e509(0xdb)]['id'],_0x363218);}async['updateValuePosition'](_0x2d2981,_0x5d1fe9){const _0x12d1cd=_0xdee7f,_0x5944c7=this[_0x12d1cd(0xed)],_0x2d3d67=this[_0x12d1cd(0xc1)],_0x2a6f24=this['subUnitId'],_0x31c9cc=this[_0x12d1cd(0xc0)],_0x5438e8=_0x5944c7['get'](r[_0x12d1cd(0xf0)]),_0x32783e={'unitId':_0x2d3d67,'subUnitId':_0x2a6f24,'pivotTableId':_0x31c9cc,'position':_0x2d2981,'index':_0x5d1fe9};return _0x5438e8[_0x12d1cd(0xd7)](d[_0x12d1cd(0xe7)]['id'],_0x32783e);}async['setSubtotalType'](_0x97e4e5,_0x3c18fa){const _0x260da8=_0xdee7f,_0xc61288=this[_0x260da8(0xed)],_0x8a86f9=this[_0x260da8(0xc1)],_0x38fc30=this[_0x260da8(0xc5)],_0x291359=this['pivotTableId'],_0x595c86=_0xc61288[_0x260da8(0xba)](r[_0x260da8(0xf0)]),_0x365986={'unitId':_0x8a86f9,'subUnitId':_0x38fc30,'pivotTableId':_0x291359,'fieldId':_0x97e4e5,'subtotalType':_0x3c18fa};return _0x595c86['executeCommand'](d[_0x260da8(0xcc)]['id'],_0x365986);}async[_0xdee7f(0xc4)](_0x4da65f,_0x2d8d3d){const _0x5b1afe=_0xdee7f,_0x5e5a86=this[_0x5b1afe(0xed)],_0x542d90=this['unitId'],_0x16ae8b=this[_0x5b1afe(0xc5)],_0x379ac5=this['pivotTableId'],_0x15c3bc=_0x5e5a86['get'](r[_0x5b1afe(0xf0)]),_0x472a3a={'unitId':_0x542d90,'subUnitId':_0x16ae8b,'tableFieldId':_0x4da65f,'pivotTableId':_0x379ac5,'info':_0x2d8d3d};return _0x15c3bc[_0x5b1afe(0xd7)](d[_0x5b1afe(0xd0)]['id'],_0x472a3a);}async[_0xdee7f(0xee)](_0x279ece,_0x1af030,_0x5e1c5e){const _0xfa6bef=_0xdee7f,_0x395f46=this[_0xfa6bef(0xed)],_0x4c3802=this[_0xfa6bef(0xc1)],_0x1fe0e7=this[_0xfa6bef(0xc5)],_0x27ff4b=this[_0xfa6bef(0xc0)],_0x6a56f9=_0x395f46['get'](r[_0xfa6bef(0xf0)]),_0x45e696={'unitId':_0x4c3802,'subUnitId':_0x1fe0e7,'pivotTableId':_0x27ff4b,'tableFieldId':_0x279ece,'items':_0x1af030,'isAll':_0x5e1c5e};return _0x6a56f9[_0xfa6bef(0xd7)](d['SetPivotFilterCommand']['id'],_0x45e696);}async[_0xdee7f(0xd8)](_0x4ef33e,_0x10d437){const _0x5935ba=_0xdee7f,_0x5cffea=this['_injector'],_0x2eec00=this[_0x5935ba(0xc1)],_0x44dfd8=this['subUnitId'],_0x4f415a=this[_0x5935ba(0xc0)],_0x2c662b=_0x5cffea[_0x5935ba(0xba)](r[_0x5935ba(0xf0)]),_0x2591aa={'unitId':_0x2eec00,'subUnitId':_0x44dfd8,'pivotTableId':_0x4f415a,'fieldId':_0x4ef33e,'name':_0x10d437};return _0x2c662b[_0x5935ba(0xd7)](d[_0x5935ba(0xd3)]['id'],_0x2591aa);}async[_0xdee7f(0xda)](_0x14bb86,_0x523dc2,_0x4a0500){const _0x517ce8=_0xdee7f,_0x5b62df=this['_injector'][_0x517ce8(0xba)](r[_0x517ce8(0xf0)]),_0x2d8925=this[_0x517ce8(0xed)][_0x517ce8(0xba)](r['IUniverInstanceService'])[_0x517ce8(0xe1)](this[_0x517ce8(0xc1)]),_0x4f688d=_0x2d8925==null?void 0x0:_0x2d8925[_0x517ce8(0xdf)](_0x14bb86);if(!_0x2d8925||!_0x4f688d)throw new Error(_0x517ce8(0xe5));return _0x5b62df[_0x517ce8(0xd7)](d[_0x517ce8(0xbb)]['id'],{'pivotTableId':this[_0x517ce8(0xc0)],'targetCellInfo':{'subUnitId':_0x4f688d[_0x517ce8(0xd9)](),'unitId':this[_0x517ce8(0xc1)],'row':_0x523dc2,'col':_0x4a0500},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x517ce8(0xc1)]}});}}class P extends b[_0xdee7f(0xf3)]{async[_0xdee7f(0xf1)](_0x387703,_0x401035,_0x1a19dd){const _0x34ce9d=_0xdee7f,_0x4fc3d7=this[_0x34ce9d(0xed)],_0xac2f1e=_0x4fc3d7[_0x34ce9d(0xba)](r['ICommandService']),_0x106e54=S['generateHexNumber'](0x8),_0x9fa1c8={'positionType':_0x401035,'pivotTableId':_0x106e54,'pivotTableConfig':{'targetCellInfo':_0x1a19dd,'sourceRangeInfo':_0x387703,'isEmpty':!0x0}};if(await _0xac2f1e['executeCommand'](d[_0x34ce9d(0xc6)]['id'],_0x9fa1c8))return new I(_0x1a19dd[_0x34ce9d(0xc1)],_0x1a19dd[_0x34ce9d(0xc5)],_0x106e54,_0x4fc3d7);}['getPivotTableByCell'](_0xb3e69,_0x52c3b8,_0x417a2d,_0x459945){const _0x1b8ce4=_0xdee7f,_0x5c3403=this[_0x1b8ce4(0xed)],_0x549ea7=_0x5c3403[_0x1b8ce4(0xba)](d['SheetsPivotTableAdaptorModel'])[_0x1b8ce4(0xf2)](_0xb3e69,_0x52c3b8,_0x417a2d,_0x459945);if(_0x549ea7)return new I(_0xb3e69,_0x52c3b8,_0x549ea7,_0x5c3403);}}function _0x8a5a(){const _0x2fd77d=['setLabelSort','subUnitId','AddPivotTableCommand','@univerjs-pro/sheets-pivot','number','getConfig','5676885lwuupv','RemovePivotFieldCommand','SetPivotSubtotalTypeMutation','236jokpju','AddPivotFieldCommand','3644767jWHefd','SetPivotSortCommand','fieldIds','getPivotTableRangeInfo','RenamePivotFieldMutation','syncExecuteCommand','SheetsPivotTableConfigModel','2893684Vexfbd','executeCommand','renameField','getSheetId','move','MovePivotFieldCommand','Module','removeField','@univerjs/core','getSheetBySheetName','updateFieldPosition','getUnit','48483lIHszE','addField','4000152xlckhf','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','unionPivotViewRange','UpdatePivotValuePositionCommand','getPivotTableConfig','@univerjs/sheets/facade','3HdjAal','653ejRZiR','3930CFbKlh','_injector','setLabelManualFilter','extend','ICommandService','addPivotTable','getPivotTableIdByCell','FWorkbook','get','MovePivotTableCommand','symbol','1413276ijkMyI','@univerjs-pro/engine-pivot','toStringTag','pivotTableId','unitId','getCollection','defineProperty'];_0x8a5a=function(){return _0x2fd77d;};return _0x8a5a();}b[_0xdee7f(0xf3)][_0xdee7f(0xef)](P),exports['FPivotTable']=I;