@univerjs-pro/sheets-pivot 0.5.1 → 0.5.2
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 +39 -39
- 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 _0x394903=_0x8e6d;(function(_0x2fe311,_0x20e0fe){const _0xac143d=_0x8e6d,_0x3473dc=_0x2fe311();while(!![]){try{const _0x48968b=-parseInt(_0xac143d(0xd1))/0x1+-parseInt(_0xac143d(0x9f))/0x2*(-parseInt(_0xac143d(0xb4))/0x3)+-parseInt(_0xac143d(0xa4))/0x4+-parseInt(_0xac143d(0xa0))/0x5*(-parseInt(_0xac143d(0xa6))/0x6)+parseInt(_0xac143d(0xc2))/0x7+-parseInt(_0xac143d(0xce))/0x8+-parseInt(_0xac143d(0xb0))/0x9*(-parseInt(_0xac143d(0x9e))/0xa);if(_0x48968b===_0x20e0fe)break;else _0x3473dc['push'](_0x3473dc['shift']());}catch(_0x1c4a4b){_0x3473dc['push'](_0x3473dc['shift']());}}}(_0x40df,0x483b1));function _0x40df(){const _0x574edb=['@univerjs/sheets/facade','remove','2996Iljpad','IUniverInstanceService','@univerjs/core','pivotTableId','fieldIds','RemovePivotFieldCommand','rangeInfo','generateHexNumber','818690tcKqPo','2dMalPA','5DsCfZc','addPivotTable','MovePivotFieldCommand','@univerjs-pro/engine-pivot','2127800SORQbE','removeField','917268ifoTVI','RemovePivotTableMutation','toStringTag','getConfig','executeCommand','AddPivotTableCommand','setLabelManualFilter','SheetsPivotTableConfigModel','addField','SetPivotSubtotalTypeMutation','99YnwIQS','getSheetId','AddPivotFieldCommand','unionPivotViewRange','62739ApjuDD','_injector','ICommandService','RenamePivotFieldMutation','renameField','subUnitId','MovePivotTableCommand','syncExecuteCommand','getPivotTableConfig','@univerjs-pro/sheets-pivot','unitId','getCollection','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','extend','754222YlJjvi','get','setLabelSort','defineProperty','FPivotTable','SetPivotSortCommand','symbol','updateFieldPosition','getPivotTableRangeInfo','getPivotTableIdByCell','getPivotTableByCell','move','2810344IYtmaa'];_0x40df=function(){return _0x574edb;};return _0x40df();}var C=Object[_0x394903(0xc5)],p=(_0xda940f,_0x59a25b,_0x16e899)=>_0x59a25b in _0xda940f?C(_0xda940f,_0x59a25b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16e899}):_0xda940f[_0x59a25b]=_0x16e899,l=(_0x159258,_0x4cdfbf,_0x4f7881)=>p(_0x159258,typeof _0x4cdfbf!=_0x394903(0xc8)?_0x4cdfbf+'':_0x4cdfbf,_0x4f7881);Object[_0x394903(0xc5)](exports,Symbol[_0x394903(0xa8)],{'value':'Module'});const r=require(_0x394903(0xd3)),b=require(_0x394903(0xcf)),S=require(_0x394903(0xa3)),d=require(_0x394903(0xbd));function _0x8e6d(_0x1bd45f,_0x2c51e5){const _0x40dfc1=_0x40df();return _0x8e6d=function(_0x8e6d5a,_0x4995d0){_0x8e6d5a=_0x8e6d5a-0x9a;let _0x13e81b=_0x40dfc1[_0x8e6d5a];return _0x13e81b;},_0x8e6d(_0x1bd45f,_0x2c51e5);}class I{constructor(_0x3291db,_0x18b650,_0x20b1f0,_0x5d21f8){const _0x163a23=_0x394903;l(this,_0x163a23(0xbe)),l(this,'subUnitId'),l(this,_0x163a23(0xd4)),l(this,'_injector'),(this[_0x163a23(0xbe)]=_0x3291db,this[_0x163a23(0xb9)]=_0x18b650,this[_0x163a23(0xd4)]=_0x20b1f0,this['_injector']=_0x5d21f8);}[_0x394903(0xa9)](){const _0xe3d651=_0x394903;return this[_0xe3d651(0xb5)]['get'](d[_0xe3d651(0xad)])[_0xe3d651(0xbc)](this['unitId'],this['subUnitId'],this[_0xe3d651(0xd4)]);}['getPivotTableRangeInfo'](){const _0xde9b28=_0x394903;var _0x16765f;const _0x11b419=(_0x16765f=this[_0xde9b28(0xb5)][_0xde9b28(0xc3)](d[_0xde9b28(0xad)])[_0xde9b28(0xca)](this[_0xde9b28(0xbe)],this['subUnitId'],this[_0xde9b28(0xd4)]))==null?void 0x0:_0x16765f[_0xde9b28(0x9c)];if(_0x11b419)return d[_0xde9b28(0xb3)](_0x11b419);}async[_0x394903(0xd0)](){const _0x445e1c=_0x394903;return await this[_0x445e1c(0xb5)]['get'](r[_0x445e1c(0xb6)])[_0x445e1c(0xbb)](d[_0x445e1c(0xa7)]['id'],{'unitId':this['unitId'],'subUnitId':this[_0x445e1c(0xb9)],'pivotTableId':this[_0x445e1c(0xd4)]});}async[_0x394903(0xae)](_0x353077,_0x54011d,_0x4a5e6c){const _0x5a6db8=_0x394903,_0x5b7568=this[_0x5a6db8(0xb5)],_0x585836=this['unitId'],_0x200e8c=this[_0x5a6db8(0xb9)],_0x28feb8=this['pivotTableId'],_0x3103f2=_0x5b7568[_0x5a6db8(0xc3)](r[_0x5a6db8(0xb6)]),_0x5dc1ab=_0x5b7568[_0x5a6db8(0xc3)](d[_0x5a6db8(0xad)]),_0x38f463=_0x5dc1ab['getPivotTableConfig'](_0x585836,_0x200e8c,_0x28feb8),_0x52ad7b=_0x5dc1ab[_0x5a6db8(0xbf)](_0x585836,_0x28feb8);if(!_0x38f463||!_0x52ad7b)return!0x1;let _0x4e402b=_0x353077;typeof _0x4e402b=='number'&&(_0x4e402b=_0x5dc1ab[_0x5a6db8(0xbf)](_0x585836,_0x28feb8)[_0x5a6db8(0x9a)][_0x353077]);const _0x809486={'unitId':_0x585836,'subUnitId':_0x200e8c,'pivotTableId':_0x28feb8,'dataFieldId':_0x4e402b,'fieldArea':_0x54011d,'index':_0x4a5e6c};return _0x3103f2[_0x5a6db8(0xaa)](d[_0x5a6db8(0xb2)]['id'],_0x809486);}async[_0x394903(0xa5)](_0x31e9b9){const _0x4abe57=_0x394903,_0xa659a8=this['_injector'],_0x61c276=this[_0x4abe57(0xbe)],_0x55a8e9=this['subUnitId'],_0x1e0818=this[_0x4abe57(0xd4)],_0x3c6438=_0xa659a8[_0x4abe57(0xc3)](r[_0x4abe57(0xb6)]),_0x557618={'unitId':_0x61c276,'subUnitId':_0x55a8e9,'pivotTableId':_0x1e0818,'fieldIds':_0x31e9b9};return _0x3c6438['executeCommand'](d[_0x4abe57(0x9b)]['id'],_0x557618);}async[_0x394903(0xc9)](_0x57f1d9,_0x1a2478,_0xdcce66){const _0x5dccb1=_0x394903,_0x29e43a=this[_0x5dccb1(0xb5)],_0x43669b=this[_0x5dccb1(0xbe)],_0x525cd8=this['subUnitId'],_0x1b598f=this[_0x5dccb1(0xd4)],_0x5d7517=_0x29e43a[_0x5dccb1(0xc3)](r['ICommandService']),_0x4ca828={'unitId':_0x43669b,'subUnitId':_0x525cd8,'pivotTableId':_0x1b598f,'fieldId':_0x57f1d9,'area':_0x1a2478,'index':_0xdcce66};return _0x5d7517[_0x5dccb1(0xaa)](d[_0x5dccb1(0xa2)]['id'],_0x4ca828);}async['updateValuePosition'](_0x2f9732,_0xfed7f1){const _0x2bfd0c=_0x394903,_0x3a35eb=this[_0x2bfd0c(0xb5)],_0x56a57d=this['unitId'],_0x1695f1=this[_0x2bfd0c(0xb9)],_0x63252f=this['pivotTableId'],_0x5c0611=_0x3a35eb[_0x2bfd0c(0xc3)](r[_0x2bfd0c(0xb6)]),_0xfaf9cb={'unitId':_0x56a57d,'subUnitId':_0x1695f1,'pivotTableId':_0x63252f,'position':_0x2f9732,'index':_0xfed7f1};return _0x5c0611[_0x2bfd0c(0xaa)](d['UpdatePivotValuePositionCommand']['id'],_0xfaf9cb);}async['setSubtotalType'](_0x3ddfa9,_0x277bff){const _0xf8a3d1=_0x394903,_0x4c7e4f=this['_injector'],_0x542c74=this[_0xf8a3d1(0xbe)],_0x1df073=this[_0xf8a3d1(0xb9)],_0x9d85b6=this[_0xf8a3d1(0xd4)],_0x4f00c9=_0x4c7e4f[_0xf8a3d1(0xc3)](r[_0xf8a3d1(0xb6)]),_0x2441e1={'unitId':_0x542c74,'subUnitId':_0x1df073,'pivotTableId':_0x9d85b6,'fieldId':_0x3ddfa9,'subtotalType':_0x277bff};return _0x4f00c9[_0xf8a3d1(0xaa)](d[_0xf8a3d1(0xaf)]['id'],_0x2441e1);}async[_0x394903(0xc4)](_0x3f6a32,_0x41f4cf){const _0x276d07=_0x394903,_0x56c078=this[_0x276d07(0xb5)],_0x18bb86=this[_0x276d07(0xbe)],_0x16ae3f=this[_0x276d07(0xb9)],_0x26d3d8=this[_0x276d07(0xd4)],_0x33bf6b=_0x56c078[_0x276d07(0xc3)](r[_0x276d07(0xb6)]),_0x27794d={'unitId':_0x18bb86,'subUnitId':_0x16ae3f,'tableFieldId':_0x3f6a32,'pivotTableId':_0x26d3d8,'info':_0x41f4cf};return _0x33bf6b[_0x276d07(0xaa)](d[_0x276d07(0xc7)]['id'],_0x27794d);}async[_0x394903(0xac)](_0x96b584,_0x20d198,_0x44bf4f){const _0x147ee4=_0x394903,_0x1c9b3d=this[_0x147ee4(0xb5)],_0x3d8199=this[_0x147ee4(0xbe)],_0x5a70a1=this[_0x147ee4(0xb9)],_0x1556b7=this[_0x147ee4(0xd4)],_0x30b6e8=_0x1c9b3d['get'](r['ICommandService']),_0x45dcb8={'unitId':_0x3d8199,'subUnitId':_0x5a70a1,'pivotTableId':_0x1556b7,'tableFieldId':_0x96b584,'items':_0x20d198,'isAll':_0x44bf4f};return _0x30b6e8[_0x147ee4(0xaa)](d['SetPivotFilterCommand']['id'],_0x45dcb8);}async[_0x394903(0xb8)](_0x1ad812,_0x4ef137){const _0x14dfc9=_0x394903,_0x330233=this['_injector'],_0x1e29e0=this['unitId'],_0xdae66f=this[_0x14dfc9(0xb9)],_0x195ef6=this['pivotTableId'],_0x1d8afa=_0x330233[_0x14dfc9(0xc3)](r[_0x14dfc9(0xb6)]),_0x41cbc4={'unitId':_0x1e29e0,'subUnitId':_0xdae66f,'pivotTableId':_0x195ef6,'fieldId':_0x1ad812,'name':_0x4ef137};return _0x1d8afa['executeCommand'](d[_0x14dfc9(0xb7)]['id'],_0x41cbc4);}async[_0x394903(0xcd)](_0x428ce8,_0x978bbb,_0x4dd76c){const _0x3e13b2=_0x394903,_0x4f16cb=this[_0x3e13b2(0xb5)][_0x3e13b2(0xc3)](r['ICommandService']),_0x3cd254=this[_0x3e13b2(0xb5)]['get'](r[_0x3e13b2(0xd2)])['getUnit'](this[_0x3e13b2(0xbe)]),_0x24dd62=_0x3cd254==null?void 0x0:_0x3cd254['getSheetBySheetName'](_0x428ce8);if(!_0x3cd254||!_0x24dd62)throw new Error(_0x3e13b2(0xc0));return _0x4f16cb[_0x3e13b2(0xaa)](d[_0x3e13b2(0xba)]['id'],{'pivotTableId':this[_0x3e13b2(0xd4)],'targetCellInfo':{'subUnitId':_0x24dd62[_0x3e13b2(0xb1)](),'unitId':this[_0x3e13b2(0xbe)],'row':_0x978bbb,'col':_0x4dd76c},'originTargetInfo':{'subUnitId':this[_0x3e13b2(0xb9)],'unitId':this[_0x3e13b2(0xbe)]}});}}class P extends b['FWorkbook']{async[_0x394903(0xa1)](_0x39b112,_0x980806,_0x5b28f2){const _0x1f8261=_0x394903,_0x55b250=this[_0x1f8261(0xb5)],_0x5b67a9=_0x55b250['get'](r[_0x1f8261(0xb6)]),_0x4a90c6=S[_0x1f8261(0x9d)](0x8),_0x36e6bd={'positionType':_0x980806,'pivotTableId':_0x4a90c6,'pivotTableConfig':{'targetCellInfo':_0x5b28f2,'sourceRangeInfo':_0x39b112,'isEmpty':!0x0}};if(await _0x5b67a9['executeCommand'](d[_0x1f8261(0xab)]['id'],_0x36e6bd))return new I(_0x5b28f2[_0x1f8261(0xbe)],_0x5b28f2[_0x1f8261(0xb9)],_0x4a90c6,_0x55b250);}[_0x394903(0xcc)](_0x353d26,_0x140cdf,_0x41ae5c,_0x1cfb32){const _0x451666=_0x394903,_0x2bb60c=this[_0x451666(0xb5)],_0x1bf9c3=_0x2bb60c[_0x451666(0xc3)](d['SheetsPivotTableAdaptorModel'])[_0x451666(0xcb)](_0x353d26,_0x140cdf,_0x41ae5c,_0x1cfb32);if(_0x1bf9c3)return new I(_0x353d26,_0x140cdf,_0x1bf9c3,_0x2bb60c);}}b['FWorkbook'][_0x394903(0xc1)](P),exports[_0x394903(0xc6)]=I;
|