@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3-experimental.20250106-e3b7a39
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 +39 -39
- 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';const _0x2d8315=_0x463b;(function(_0x53dbc3,_0x40ef4c){const _0x13784d=_0x463b,_0x26d8d8=_0x53dbc3();while(!![]){try{const _0x560ea3=-parseInt(_0x13784d(0xce))/0x1+-parseInt(_0x13784d(0xbb))/0x2*(parseInt(_0x13784d(0xa7))/0x3)+-parseInt(_0x13784d(0xa6))/0x4*(parseInt(_0x13784d(0xa8))/0x5)+-parseInt(_0x13784d(0xc7))/0x6*(-parseInt(_0x13784d(0xc1))/0x7)+-parseInt(_0x13784d(0xcf))/0x8*(-parseInt(_0x13784d(0xc8))/0x9)+parseInt(_0x13784d(0xa4))/0xa*(-parseInt(_0x13784d(0xc0))/0xb)+parseInt(_0x13784d(0xad))/0xc;if(_0x560ea3===_0x40ef4c)break;else _0x26d8d8['push'](_0x26d8d8['shift']());}catch(_0x1234d7){_0x26d8d8['push'](_0x26d8d8['shift']());}}}(_0xe2d2,0x8f00c));function _0x463b(_0x461acd,_0x250c51){const _0xe2d20a=_0xe2d2();return _0x463b=function(_0x463b9f,_0x47a8ba){_0x463b9f=_0x463b9f-0xa3;let _0x43ba64=_0xe2d20a[_0x463b9f];return _0x43ba64;},_0x463b(_0x461acd,_0x250c51);}function _0xe2d2(){const _0x4bf8c2=['16FplAzd','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','syncExecuteCommand','SetPivotSubtotalTypeMutation','SetPivotSortCommand','10681231TnyPHW','74228RvYAhq','ICommandService','getPivotTableConfig','@univerjs/core','setSubtotalType','getConfig','642VeasQB','1306521TCoKNq','fieldIds','get','extend','generateHexNumber','IUniverInstanceService','460117OIgJdS','24saaJEy','@univerjs-pro/sheets-pivot','RemovePivotTableMutation','FWorkbook','executeCommand','addField','pivotTableId','symbol','AddPivotFieldCommand','MovePivotFieldCommand','updateFieldPosition','addPivotTable','remove','getSheetId','unitId','updateValuePosition','10EEiGFP','subUnitId','1869580Hmwsfz','53832sallRl','10qJTzqm','removeField','SetPivotFilterCommand','getCollection','getPivotTableRangeInfo','18301020LXfcqV','defineProperty','getPivotTableByCell','FPivotTable','SheetsPivotTableAdaptorModel','@univerjs/sheets/facade','getPivotTableIdByCell','move','SheetsPivotTableConfigModel','_injector','MovePivotTableCommand','UpdatePivotValuePositionCommand','setLabelManualFilter','renameField'];_0xe2d2=function(){return _0x4bf8c2;};return _0xe2d2();}var C=Object[_0x2d8315(0xae)],p=(_0x480673,_0x443872,_0x129945)=>_0x443872 in _0x480673?C(_0x480673,_0x443872,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x129945}):_0x480673[_0x443872]=_0x129945,l=(_0x5e47be,_0x4d5ebb,_0x371d38)=>p(_0x5e47be,typeof _0x4d5ebb!=_0x2d8315(0xd6)?_0x4d5ebb+'':_0x4d5ebb,_0x371d38);Object[_0x2d8315(0xae)](exports,Symbol['toStringTag'],{'value':'Module'});const r=require(_0x2d8315(0xc4)),b=require(_0x2d8315(0xb2)),S=require('@univerjs-pro/engine-pivot'),d=require(_0x2d8315(0xd0));class I{constructor(_0x3fab2f,_0x5d79cc,_0x3bfc37,_0x5762b4){const _0x1ceb1a=_0x2d8315;l(this,'unitId'),l(this,_0x1ceb1a(0xa5)),l(this,'pivotTableId'),l(this,'_injector'),(this[_0x1ceb1a(0xdd)]=_0x3fab2f,this[_0x1ceb1a(0xa5)]=_0x5d79cc,this[_0x1ceb1a(0xd5)]=_0x3bfc37,this[_0x1ceb1a(0xb6)]=_0x5762b4);}[_0x2d8315(0xc6)](){const _0x1ff8e3=_0x2d8315;return this[_0x1ff8e3(0xb6)][_0x1ff8e3(0xca)](d[_0x1ff8e3(0xb5)])['getPivotTableConfig'](this[_0x1ff8e3(0xdd)],this[_0x1ff8e3(0xa5)],this[_0x1ff8e3(0xd5)]);}[_0x2d8315(0xac)](){const _0x4a0b27=_0x2d8315;var _0x477f46;const _0x175467=(_0x477f46=this['_injector']['get'](d[_0x4a0b27(0xb5)])[_0x4a0b27(0xac)](this['unitId'],this[_0x4a0b27(0xa5)],this[_0x4a0b27(0xd5)]))==null?void 0x0:_0x477f46['rangeInfo'];if(_0x175467)return d['unionPivotViewRange'](_0x175467);}async[_0x2d8315(0xdb)](){const _0x33a1c5=_0x2d8315;return await this[_0x33a1c5(0xb6)]['get'](r[_0x33a1c5(0xc2)])[_0x33a1c5(0xbd)](d[_0x33a1c5(0xd1)]['id'],{'unitId':this[_0x33a1c5(0xdd)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x33a1c5(0xd5)]});}async[_0x2d8315(0xd4)](_0x559863,_0x45022d,_0x28e0f3){const _0x2e4c54=_0x2d8315,_0x268c0=this[_0x2e4c54(0xb6)],_0x5e341f=this[_0x2e4c54(0xdd)],_0x42dca4=this[_0x2e4c54(0xa5)],_0x12ac1e=this['pivotTableId'],_0x3c5ceb=_0x268c0['get'](r[_0x2e4c54(0xc2)]),_0x4e8617=_0x268c0[_0x2e4c54(0xca)](d['SheetsPivotTableConfigModel']),_0xc68aa=_0x4e8617[_0x2e4c54(0xc3)](_0x5e341f,_0x42dca4,_0x12ac1e),_0x101f9c=_0x4e8617['getCollection'](_0x5e341f,_0x12ac1e);if(!_0xc68aa||!_0x101f9c)return!0x1;let _0x49a8f8=_0x559863;typeof _0x49a8f8=='number'&&(_0x49a8f8=_0x4e8617[_0x2e4c54(0xab)](_0x5e341f,_0x12ac1e)[_0x2e4c54(0xc9)][_0x559863]);const _0xdde450={'unitId':_0x5e341f,'subUnitId':_0x42dca4,'pivotTableId':_0x12ac1e,'dataFieldId':_0x49a8f8,'fieldArea':_0x45022d,'index':_0x28e0f3};return _0x3c5ceb['executeCommand'](d[_0x2e4c54(0xd7)]['id'],_0xdde450);}async[_0x2d8315(0xa9)](_0x30374f){const _0x59c68a=_0x2d8315,_0x3cf6b8=this[_0x59c68a(0xb6)],_0x309296=this['unitId'],_0x52c1c9=this[_0x59c68a(0xa5)],_0x4958a0=this[_0x59c68a(0xd5)],_0x5699ee=_0x3cf6b8[_0x59c68a(0xca)](r[_0x59c68a(0xc2)]),_0x91ed72={'unitId':_0x309296,'subUnitId':_0x52c1c9,'pivotTableId':_0x4958a0,'fieldIds':_0x30374f};return _0x5699ee['executeCommand'](d['RemovePivotFieldCommand']['id'],_0x91ed72);}async[_0x2d8315(0xd9)](_0x53e7c3,_0x1a0cb1,_0x169c4b){const _0x474247=_0x2d8315,_0x57aa49=this[_0x474247(0xb6)],_0xca48e3=this['unitId'],_0x22270f=this[_0x474247(0xa5)],_0x173610=this['pivotTableId'],_0x25ee6f=_0x57aa49[_0x474247(0xca)](r['ICommandService']),_0x3bf794={'unitId':_0xca48e3,'subUnitId':_0x22270f,'pivotTableId':_0x173610,'fieldId':_0x53e7c3,'area':_0x1a0cb1,'index':_0x169c4b};return _0x25ee6f[_0x474247(0xd3)](d[_0x474247(0xd8)]['id'],_0x3bf794);}async[_0x2d8315(0xa3)](_0x566eda,_0x346f29){const _0x35c839=_0x2d8315,_0x4ee03c=this['_injector'],_0x176924=this[_0x35c839(0xdd)],_0x38b331=this[_0x35c839(0xa5)],_0xa5021d=this['pivotTableId'],_0x253503=_0x4ee03c[_0x35c839(0xca)](r['ICommandService']),_0x1a411c={'unitId':_0x176924,'subUnitId':_0x38b331,'pivotTableId':_0xa5021d,'position':_0x566eda,'index':_0x346f29};return _0x253503['executeCommand'](d[_0x35c839(0xb8)]['id'],_0x1a411c);}async[_0x2d8315(0xc5)](_0x3be9eb,_0x1f69bb){const _0x36e67e=_0x2d8315,_0x30563b=this[_0x36e67e(0xb6)],_0xcd48d6=this[_0x36e67e(0xdd)],_0xd80fa=this['subUnitId'],_0x5ba889=this['pivotTableId'],_0x598827=_0x30563b[_0x36e67e(0xca)](r[_0x36e67e(0xc2)]),_0x3a39b7={'unitId':_0xcd48d6,'subUnitId':_0xd80fa,'pivotTableId':_0x5ba889,'fieldId':_0x3be9eb,'subtotalType':_0x1f69bb};return _0x598827['executeCommand'](d[_0x36e67e(0xbe)]['id'],_0x3a39b7);}async['setLabelSort'](_0x3a6dc4,_0xf1dff1){const _0x513c9f=_0x2d8315,_0x568499=this['_injector'],_0x1a3a5c=this[_0x513c9f(0xdd)],_0x49c28f=this[_0x513c9f(0xa5)],_0x31941e=this['pivotTableId'],_0x55fc77=_0x568499['get'](r['ICommandService']),_0x4cd1fc={'unitId':_0x1a3a5c,'subUnitId':_0x49c28f,'tableFieldId':_0x3a6dc4,'pivotTableId':_0x31941e,'info':_0xf1dff1};return _0x55fc77[_0x513c9f(0xd3)](d[_0x513c9f(0xbf)]['id'],_0x4cd1fc);}async[_0x2d8315(0xb9)](_0x4ad4d2,_0x51ce6c,_0x10b57b){const _0x1bd159=_0x2d8315,_0x2931e8=this[_0x1bd159(0xb6)],_0x539976=this[_0x1bd159(0xdd)],_0x10d4b4=this[_0x1bd159(0xa5)],_0x2c81b3=this[_0x1bd159(0xd5)],_0x312c11=_0x2931e8[_0x1bd159(0xca)](r[_0x1bd159(0xc2)]),_0x467cad={'unitId':_0x539976,'subUnitId':_0x10d4b4,'pivotTableId':_0x2c81b3,'tableFieldId':_0x4ad4d2,'items':_0x51ce6c,'isAll':_0x10b57b};return _0x312c11[_0x1bd159(0xd3)](d[_0x1bd159(0xaa)]['id'],_0x467cad);}async[_0x2d8315(0xba)](_0x23343c,_0x1eec43){const _0x418d10=_0x2d8315,_0x201231=this['_injector'],_0x287bf3=this[_0x418d10(0xdd)],_0x3d5cc1=this[_0x418d10(0xa5)],_0x319d08=this[_0x418d10(0xd5)],_0x293e29=_0x201231[_0x418d10(0xca)](r[_0x418d10(0xc2)]),_0xf8df88={'unitId':_0x287bf3,'subUnitId':_0x3d5cc1,'pivotTableId':_0x319d08,'fieldId':_0x23343c,'name':_0x1eec43};return _0x293e29[_0x418d10(0xd3)](d['RenamePivotFieldMutation']['id'],_0xf8df88);}async[_0x2d8315(0xb4)](_0x1974ee,_0x5a5691,_0x4b06eb){const _0x4bcf10=_0x2d8315,_0xf8c46d=this['_injector'][_0x4bcf10(0xca)](r[_0x4bcf10(0xc2)]),_0x11aa16=this[_0x4bcf10(0xb6)][_0x4bcf10(0xca)](r[_0x4bcf10(0xcd)])['getUnit'](this[_0x4bcf10(0xdd)]),_0x282510=_0x11aa16==null?void 0x0:_0x11aa16['getSheetBySheetName'](_0x1974ee);if(!_0x11aa16||!_0x282510)throw new Error(_0x4bcf10(0xbc));return _0xf8c46d[_0x4bcf10(0xd3)](d[_0x4bcf10(0xb7)]['id'],{'pivotTableId':this[_0x4bcf10(0xd5)],'targetCellInfo':{'subUnitId':_0x282510[_0x4bcf10(0xdc)](),'unitId':this[_0x4bcf10(0xdd)],'row':_0x5a5691,'col':_0x4b06eb},'originTargetInfo':{'subUnitId':this[_0x4bcf10(0xa5)],'unitId':this[_0x4bcf10(0xdd)]}});}}class P extends b[_0x2d8315(0xd2)]{async[_0x2d8315(0xda)](_0x364712,_0x5095b7,_0x7468a9){const _0x32dd1f=_0x2d8315,_0x498e05=this[_0x32dd1f(0xb6)],_0x30d564=_0x498e05[_0x32dd1f(0xca)](r[_0x32dd1f(0xc2)]),_0xecbf69=S[_0x32dd1f(0xcc)](0x8),_0x4ec937={'positionType':_0x5095b7,'pivotTableId':_0xecbf69,'pivotTableConfig':{'targetCellInfo':_0x7468a9,'sourceRangeInfo':_0x364712,'isEmpty':!0x0}};if(await _0x30d564[_0x32dd1f(0xd3)](d['AddPivotTableCommand']['id'],_0x4ec937))return new I(_0x7468a9['unitId'],_0x7468a9[_0x32dd1f(0xa5)],_0xecbf69,_0x498e05);}[_0x2d8315(0xaf)](_0x2019c2,_0x469167,_0x301040,_0x5c5643){const _0x1ecba5=_0x2d8315,_0x2fa719=this[_0x1ecba5(0xb6)],_0xa52174=_0x2fa719['get'](d[_0x1ecba5(0xb1)])[_0x1ecba5(0xb3)](_0x2019c2,_0x469167,_0x301040,_0x5c5643);if(_0xa52174)return new I(_0x2019c2,_0x469167,_0xa52174,_0x2fa719);}}b['FWorkbook'][_0x2d8315(0xcb)](P),exports[_0x2d8315(0xb0)]=I;
|