@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.
- package/README.md +5 -5
- 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/commands/command/add-pivot-field.command.d.ts +1 -1
- package/lib/types/commands/command/move-pivot-table.command.d.ts +15 -0
- package/lib/types/common/const.d.ts +40 -40
- package/lib/types/const/const.d.ts +1 -1
- package/lib/types/const/type.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -0
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-pivot-table.d.ts +16 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +1 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/sheets-pivot-table.service.d.ts +1 -1
- package/lib/types/util.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 +18 -13
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @univerjs/
|
|
1
|
+
# @univerjs-pro/sheets-pivot
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/packages/@univerjs-pro/sheets-pivot)
|
|
4
|
+
[](https://img.shields.io/npm/l/@univerjs-pro/sheets-pivot)
|
|
5
5
|

|
|
6
6
|

|
|
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/
|
|
18
|
+
npm install @univerjs-pro/sheets-pivot-ui @univerjs-pro/sheets-pivot
|
|
19
19
|
|
|
20
20
|
# Using pnpm
|
|
21
|
-
pnpm add @univerjs/
|
|
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';
|
|
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;
|