@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3-nightly.202501041605
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/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/common/const.d.ts +41 -41
- 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/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 +11 -34
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xd1ce(_0x1bebbe,_0x57beaf){const _0x409b0b=_0x409b();return _0xd1ce=function(_0xd1ce9,_0x2524c6){_0xd1ce9=_0xd1ce9-0xaa;let _0x398797=_0x409b0b[_0xd1ce9];return _0x398797;},_0xd1ce(_0x1bebbe,_0x57beaf);}const _0x46c509=_0xd1ce;(function(_0x15434e,_0x3bcb67){const _0x2f881d=_0xd1ce,_0x1c2f20=_0x15434e();while(!![]){try{const _0x2567f5=parseInt(_0x2f881d(0xb5))/0x1*(parseInt(_0x2f881d(0xb8))/0x2)+parseInt(_0x2f881d(0xc8))/0x3+-parseInt(_0x2f881d(0xb1))/0x4+-parseInt(_0x2f881d(0xd5))/0x5*(-parseInt(_0x2f881d(0xdc))/0x6)+parseInt(_0x2f881d(0xc2))/0x7*(-parseInt(_0x2f881d(0xaf))/0x8)+parseInt(_0x2f881d(0xd9))/0x9*(-parseInt(_0x2f881d(0xde))/0xa)+parseInt(_0x2f881d(0xb4))/0xb;if(_0x2567f5===_0x3bcb67)break;else _0x1c2f20['push'](_0x1c2f20['shift']());}catch(_0x347858){_0x1c2f20['push'](_0x1c2f20['shift']());}}}(_0x409b,0x44c44));var C=Object[_0x46c509(0xda)],p=(_0x4f74c5,_0x13bf65,_0x528645)=>_0x13bf65 in _0x4f74c5?C(_0x4f74c5,_0x13bf65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x528645}):_0x4f74c5[_0x13bf65]=_0x528645,l=(_0x2abdaa,_0x1a5519,_0x3b7579)=>p(_0x2abdaa,typeof _0x1a5519!=_0x46c509(0xc7)?_0x1a5519+'':_0x1a5519,_0x3b7579);Object[_0x46c509(0xda)](exports,Symbol[_0x46c509(0xae)],{'value':_0x46c509(0xcf)});const r=require(_0x46c509(0xba)),b=require(_0x46c509(0xb6)),S=require(_0x46c509(0xbf)),d=require(_0x46c509(0xe4));function _0x409b(){const _0x4205e1=['getPivotTableConfig','getPivotTableRangeInfo','55006SaurJL','generateHexNumber','_injector','rangeInfo','getPivotTableIdByCell','symbol','102024bzaVVy','remove','RenamePivotFieldMutation','RemovePivotFieldCommand','addPivotTable','fieldIds','SetPivotFilterCommand','Module','unitId','AddPivotFieldCommand','unionPivotViewRange','FWorkbook','pivotTableId','50Xloinn','getUnit','ICommandService','setSubtotalType','143028npzwcm','defineProperty','UpdatePivotValuePositionCommand','324444kXmdxG','getSheetId','290BwfjgM','updateFieldPosition','getConfig','get','SheetsPivotTableAdaptorModel','updateValuePosition','@univerjs-pro/sheets-pivot','getCollection','MovePivotTableCommand','SheetsPivotTableConfigModel','syncExecuteCommand','toStringTag','328eTGfsj','executeCommand','1466036UPkWny','number','AddPivotTableCommand','9371736uVeFRR','4499UZQvQy','@univerjs/sheets/facade','subUnitId','2kYNjJO','getPivotTableByCell','@univerjs/core','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','IUniverInstanceService','SetPivotSubtotalTypeMutation','setLabelManualFilter','@univerjs-pro/engine-pivot'];_0x409b=function(){return _0x4205e1;};return _0x409b();}class I{constructor(_0x4c9f27,_0x524744,_0x43389a,_0x18b867){const _0xdd4c36=_0x46c509;l(this,_0xdd4c36(0xd0)),l(this,_0xdd4c36(0xb7)),l(this,_0xdd4c36(0xd4)),l(this,_0xdd4c36(0xc4)),(this[_0xdd4c36(0xd0)]=_0x4c9f27,this[_0xdd4c36(0xb7)]=_0x524744,this[_0xdd4c36(0xd4)]=_0x43389a,this[_0xdd4c36(0xc4)]=_0x18b867);}[_0x46c509(0xe0)](){const _0x199bdd=_0x46c509;return this[_0x199bdd(0xc4)][_0x199bdd(0xe1)](d[_0x199bdd(0xac)])[_0x199bdd(0xc0)](this[_0x199bdd(0xd0)],this[_0x199bdd(0xb7)],this[_0x199bdd(0xd4)]);}['getPivotTableRangeInfo'](){const _0x9e3d61=_0x46c509;var _0x316e62;const _0x40db0=(_0x316e62=this[_0x9e3d61(0xc4)][_0x9e3d61(0xe1)](d['SheetsPivotTableConfigModel'])[_0x9e3d61(0xc1)](this['unitId'],this[_0x9e3d61(0xb7)],this[_0x9e3d61(0xd4)]))==null?void 0x0:_0x316e62[_0x9e3d61(0xc5)];if(_0x40db0)return d[_0x9e3d61(0xd2)](_0x40db0);}async[_0x46c509(0xc9)](){const _0x1db1f4=_0x46c509;return await this['_injector']['get'](r[_0x1db1f4(0xd7)])[_0x1db1f4(0xad)](d['RemovePivotTableMutation']['id'],{'unitId':this[_0x1db1f4(0xd0)],'subUnitId':this[_0x1db1f4(0xb7)],'pivotTableId':this[_0x1db1f4(0xd4)]});}async['addField'](_0x42ad16,_0x4b3232,_0x47827c){const _0x55c6ae=_0x46c509,_0x2df833=this['_injector'],_0x31cd5b=this['unitId'],_0xbb340c=this[_0x55c6ae(0xb7)],_0x5a0034=this[_0x55c6ae(0xd4)],_0x413d66=_0x2df833[_0x55c6ae(0xe1)](r[_0x55c6ae(0xd7)]),_0x400802=_0x2df833[_0x55c6ae(0xe1)](d[_0x55c6ae(0xac)]),_0x1b2898=_0x400802[_0x55c6ae(0xc0)](_0x31cd5b,_0xbb340c,_0x5a0034),_0x5c1b06=_0x400802[_0x55c6ae(0xaa)](_0x31cd5b,_0x5a0034);if(!_0x1b2898||!_0x5c1b06)return!0x1;let _0x117a43=_0x42ad16;typeof _0x117a43==_0x55c6ae(0xb2)&&(_0x117a43=_0x400802['getCollection'](_0x31cd5b,_0x5a0034)[_0x55c6ae(0xcd)][_0x42ad16]);const _0xd49777={'unitId':_0x31cd5b,'subUnitId':_0xbb340c,'pivotTableId':_0x5a0034,'dataFieldId':_0x117a43,'fieldArea':_0x4b3232,'index':_0x47827c};return _0x413d66[_0x55c6ae(0xb0)](d[_0x55c6ae(0xd1)]['id'],_0xd49777);}async['removeField'](_0x21b566){const _0x3b51e2=_0x46c509,_0x4dc95b=this['_injector'],_0x597171=this[_0x3b51e2(0xd0)],_0x40184a=this[_0x3b51e2(0xb7)],_0xa119bb=this[_0x3b51e2(0xd4)],_0x1c6f37=_0x4dc95b[_0x3b51e2(0xe1)](r['ICommandService']),_0x24f866={'unitId':_0x597171,'subUnitId':_0x40184a,'pivotTableId':_0xa119bb,'fieldIds':_0x21b566};return _0x1c6f37['executeCommand'](d[_0x3b51e2(0xcb)]['id'],_0x24f866);}async[_0x46c509(0xdf)](_0x576f32,_0x965b1d,_0x38a80c){const _0x399147=_0x46c509,_0x38c759=this[_0x399147(0xc4)],_0x9f998d=this[_0x399147(0xd0)],_0x13d4b0=this[_0x399147(0xb7)],_0x35572b=this[_0x399147(0xd4)],_0x3cdb56=_0x38c759['get'](r['ICommandService']),_0x39bdc5={'unitId':_0x9f998d,'subUnitId':_0x13d4b0,'pivotTableId':_0x35572b,'fieldId':_0x576f32,'area':_0x965b1d,'index':_0x38a80c};return _0x3cdb56[_0x399147(0xb0)](d['MovePivotFieldCommand']['id'],_0x39bdc5);}async[_0x46c509(0xe3)](_0x2443b2,_0x38f716){const _0x540e6f=_0x46c509,_0x29deaa=this['_injector'],_0x33b96b=this[_0x540e6f(0xd0)],_0x283aa0=this[_0x540e6f(0xb7)],_0x4e27d4=this[_0x540e6f(0xd4)],_0x13d237=_0x29deaa[_0x540e6f(0xe1)](r[_0x540e6f(0xd7)]),_0x105880={'unitId':_0x33b96b,'subUnitId':_0x283aa0,'pivotTableId':_0x4e27d4,'position':_0x2443b2,'index':_0x38f716};return _0x13d237[_0x540e6f(0xb0)](d[_0x540e6f(0xdb)]['id'],_0x105880);}async[_0x46c509(0xd8)](_0xb688f,_0x716c93){const _0x5698b7=_0x46c509,_0x4086d6=this[_0x5698b7(0xc4)],_0x540b86=this[_0x5698b7(0xd0)],_0x5a9cfc=this[_0x5698b7(0xb7)],_0x447e94=this[_0x5698b7(0xd4)],_0x513dbc=_0x4086d6[_0x5698b7(0xe1)](r[_0x5698b7(0xd7)]),_0x4e7512={'unitId':_0x540b86,'subUnitId':_0x5a9cfc,'pivotTableId':_0x447e94,'fieldId':_0xb688f,'subtotalType':_0x716c93};return _0x513dbc[_0x5698b7(0xb0)](d[_0x5698b7(0xbd)]['id'],_0x4e7512);}async['setLabelSort'](_0x43f55d,_0x46b6ff){const _0x5861c7=_0x46c509,_0x1c52e7=this['_injector'],_0x649c33=this[_0x5861c7(0xd0)],_0x5bb8af=this['subUnitId'],_0x36e4f5=this[_0x5861c7(0xd4)],_0x126581=_0x1c52e7[_0x5861c7(0xe1)](r['ICommandService']),_0x4c0e93={'unitId':_0x649c33,'subUnitId':_0x5bb8af,'tableFieldId':_0x43f55d,'pivotTableId':_0x36e4f5,'info':_0x46b6ff};return _0x126581[_0x5861c7(0xb0)](d['SetPivotSortCommand']['id'],_0x4c0e93);}async[_0x46c509(0xbe)](_0x147a62,_0x16d372,_0x2f56d6){const _0x419857=_0x46c509,_0x2724ce=this['_injector'],_0x3dc0c3=this['unitId'],_0x2ddfba=this[_0x419857(0xb7)],_0x3626f9=this[_0x419857(0xd4)],_0x142270=_0x2724ce[_0x419857(0xe1)](r[_0x419857(0xd7)]),_0x21c1d5={'unitId':_0x3dc0c3,'subUnitId':_0x2ddfba,'pivotTableId':_0x3626f9,'tableFieldId':_0x147a62,'items':_0x16d372,'isAll':_0x2f56d6};return _0x142270[_0x419857(0xb0)](d[_0x419857(0xce)]['id'],_0x21c1d5);}async['renameField'](_0x58176c,_0x3453fe){const _0x5b2664=_0x46c509,_0x4dac68=this[_0x5b2664(0xc4)],_0x2a9673=this['unitId'],_0x447f92=this[_0x5b2664(0xb7)],_0x4d422=this[_0x5b2664(0xd4)],_0x2a9c0a=_0x4dac68[_0x5b2664(0xe1)](r['ICommandService']),_0x1ce0f4={'unitId':_0x2a9673,'subUnitId':_0x447f92,'pivotTableId':_0x4d422,'fieldId':_0x58176c,'name':_0x3453fe};return _0x2a9c0a['executeCommand'](d[_0x5b2664(0xca)]['id'],_0x1ce0f4);}async['move'](_0x59e880,_0x133c49,_0x4157c3){const _0x1eef0e=_0x46c509,_0x3f4238=this['_injector']['get'](r[_0x1eef0e(0xd7)]),_0x2a201a=this[_0x1eef0e(0xc4)][_0x1eef0e(0xe1)](r[_0x1eef0e(0xbc)])[_0x1eef0e(0xd6)](this[_0x1eef0e(0xd0)]),_0x14abbb=_0x2a201a==null?void 0x0:_0x2a201a['getSheetBySheetName'](_0x59e880);if(!_0x2a201a||!_0x14abbb)throw new Error(_0x1eef0e(0xbb));return _0x3f4238[_0x1eef0e(0xb0)](d[_0x1eef0e(0xab)]['id'],{'pivotTableId':this[_0x1eef0e(0xd4)],'targetCellInfo':{'subUnitId':_0x14abbb[_0x1eef0e(0xdd)](),'unitId':this[_0x1eef0e(0xd0)],'row':_0x133c49,'col':_0x4157c3},'originTargetInfo':{'subUnitId':this[_0x1eef0e(0xb7)],'unitId':this[_0x1eef0e(0xd0)]}});}}class P extends b['FWorkbook']{async[_0x46c509(0xcc)](_0xd80454,_0x1a2dfd,_0x449b13){const _0x2b3afd=_0x46c509,_0x3efbe0=this[_0x2b3afd(0xc4)],_0x3d3816=_0x3efbe0[_0x2b3afd(0xe1)](r[_0x2b3afd(0xd7)]),_0x13b0d2=S[_0x2b3afd(0xc3)](0x8),_0x127987={'positionType':_0x1a2dfd,'pivotTableId':_0x13b0d2,'pivotTableConfig':{'targetCellInfo':_0x449b13,'sourceRangeInfo':_0xd80454,'isEmpty':!0x0}};if(await _0x3d3816[_0x2b3afd(0xb0)](d[_0x2b3afd(0xb3)]['id'],_0x127987))return new I(_0x449b13['unitId'],_0x449b13[_0x2b3afd(0xb7)],_0x13b0d2,_0x3efbe0);}[_0x46c509(0xb9)](_0x5c979a,_0x3e61d2,_0x313a29,_0x965afa){const _0x3e9e4d=_0x46c509,_0xbfea80=this[_0x3e9e4d(0xc4)],_0x52b4ad=_0xbfea80['get'](d[_0x3e9e4d(0xe2)])[_0x3e9e4d(0xc6)](_0x5c979a,_0x3e61d2,_0x313a29,_0x965afa);if(_0x52b4ad)return new I(_0x5c979a,_0x3e61d2,_0x52b4ad,_0xbfea80);}}b[_0x46c509(0xd3)]['extend'](P),exports['FPivotTable']=I;
|