@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/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c5b7b=_0xbab4;(function(_0x4669bc,_0xd07f76){const _0x4aca96=_0xbab4,_0x14cd90=_0x4669bc();while(!![]){try{const _0x40486b=-parseInt(_0x4aca96(0xe1))/0x1*(parseInt(_0x4aca96(0xe0))/0x2)+-parseInt(_0x4aca96(0xf7))/0x3*(parseInt(_0x4aca96(0xf1))/0x4)+parseInt(_0x4aca96(0xf0))/0x5*(-parseInt(_0x4aca96(0xed))/0x6)+parseInt(_0x4aca96(0xf6))/0x7+-parseInt(_0x4aca96(0xde))/0x8+parseInt(_0x4aca96(0xe8))/0x9*(-parseInt(_0x4aca96(0xeb))/0xa)+parseInt(_0x4aca96(0xec))/0xb;if(_0x40486b===_0xd07f76)break;else _0x14cd90['push'](_0x14cd90['shift']());}catch(_0x53b681){_0x14cd90['push'](_0x14cd90['shift']());}}}(_0x21d3,0x7d3d5));function _0xbab4(_0x4748c2,_0x47c4ed){const _0x21d3d0=_0x21d3();return _0xbab4=function(_0xbab418,_0x423e95){_0xbab418=_0xbab418-0xde;let _0x5b6dd2=_0x21d3d0[_0xbab418];return _0x5b6dd2;},_0xbab4(_0x4748c2,_0x47c4ed);}const a={'sheets-pivot':{'blankValue':_0x2c5b7b(0xf8),'columnName':_0x2c5b7b(0xe7),'subTotalText':'Total','grandTotalText':_0x2c5b7b(0xe4),'valueText':_0x2c5b7b(0xe9),'averageName':_0x2c5b7b(0xe3),'countName':'Count\x20of\x20','countNumsName':_0x2c5b7b(0xf5),'maxName':_0x2c5b7b(0xf4),'minName':_0x2c5b7b(0xdf),'productName':'Product\x20of\x20','stdDevName':_0x2c5b7b(0xe6),'stdDevpName':_0x2c5b7b(0xf2),'sumName':_0x2c5b7b(0xef),'varName':'Var\x20of\x20','varpName':_0x2c5b7b(0xee),'subTotal':_0x2c5b7b(0xe2),'grandTotal':_0x2c5b7b(0xe4),'value':'value','blank':_0x2c5b7b(0xea),'emptyPivot':{'filter':_0x2c5b7b(0xe5),'row':'Row','column':'Column','values':_0x2c5b7b(0xf3)}}};export{a as default};function _0x21d3(){const _0x10073e=['Grand\x20Total','Filter','StdDev\x20of\x20','Column\x20','2941749rMagPu','Value','blank','10uWvkWo','30439420GnhHpw','52818dcWRTH','Varp\x20of\x20','Sum\x20of\x20','440GfBMIE','14164uLfCnr','StdDevp\x20of\x20','Values','Max\x20of\x20','Count\x20of\x20','5843768nbjrDz','861RNWQlt','(Blank)','3756456PweGUl','Min\x20of\x20','2kgumXD','501714pkFXeD','Subtotal','Average\x20of\x20'];_0x21d3=function(){return _0x10073e;};return _0x21d3();}
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51f6dc=_0x354c;(function(_0x59ae0f,_0x5afb90){const _0xf1b94=_0x354c,_0x2e3d3a=_0x59ae0f();while(!![]){try{const _0x529bf1=-parseInt(_0xf1b94(0x1bf))/0x1+-parseInt(_0xf1b94(0x1cf))/0x2+parseInt(_0xf1b94(0x1d0))/0x3+parseInt(_0xf1b94(0x1c3))/0x4+-parseInt(_0xf1b94(0x1c9))/0x5+-parseInt(_0xf1b94(0x1c8))/0x6*(parseInt(_0xf1b94(0x1cb))/0x7)+parseInt(_0xf1b94(0x1cc))/0x8;if(_0x529bf1===_0x5afb90)break;else _0x2e3d3a['push'](_0x2e3d3a['shift']());}catch(_0x3819ef){_0x2e3d3a['push'](_0x2e3d3a['shift']());}}}(_0xbec6,0x917d8));const a={'sheets-pivot':{'blankValue':_0x51f6dc(0x1c5),'columnName':_0x51f6dc(0x1cd),'subTotalText':_0x51f6dc(0x1c6),'grandTotalText':'کل','valueText':_0x51f6dc(0x1d3),'averageName':'میانگین\x20از\x20','countName':_0x51f6dc(0x1ca),'countNumsName':_0x51f6dc(0x1d4),'maxName':'بیشترین\x20از\x20','minName':_0x51f6dc(0x1d2),'productName':_0x51f6dc(0x1c2),'stdDevName':'انحراف\x20معیار\x20از\x20','stdDevpName':'انحراف\x20معیار\x20کلی\x20از\x20','sumName':_0x51f6dc(0x1c1),'varName':_0x51f6dc(0x1c7),'varpName':'واریانس\x20کلی\x20از\x20','subTotal':_0x51f6dc(0x1c6),'grandTotal':'کل','value':'مقدار','blank':_0x51f6dc(0x1ce),'emptyPivot':{'filter':_0x51f6dc(0x1d1),'row':_0x51f6dc(0x1c4),'column':_0x51f6dc(0x1c0),'values':'مقادیر'}}};function _0xbec6(){const _0x577e1a=['7NDXNJF','7639544mwhswa','ستون\x20','خالی','2266758QyKVGr','3033738WSMKzs','فیلتر','کمترین\x20از\x20','مقدار','تعداد\x20اعداد\x20از\x20','31239xNDtDk','ستون','جمع\x20از\x20','ضرب\x20از\x20','1735768asUNpG','سطر','(خالی)','جمع','واریانس\x20از\x20','2224740TVZcFO','1343975IEoPOI','تعداد\x20از\x20'];_0xbec6=function(){return _0x577e1a;};return _0xbec6();}function _0x354c(_0x4e9d08,_0x5eac01){const _0xbec6c2=_0xbec6();return _0x354c=function(_0x354c65,_0x5bf92e){_0x354c65=_0x354c65-0x1bf;let _0x24c47e=_0xbec6c2[_0x354c65];return _0x24c47e;},_0x354c(_0x4e9d08,_0x5eac01);}export{a as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x260ce6=_0x2bda;(function(_0x599039,_0x5bd679){const _0x4755f1=_0x2bda,_0x4ea5b7=_0x599039();while(!![]){try{const _0x41ccb1=-parseInt(_0x4755f1(0x11e))/0x1*(-parseInt(_0x4755f1(0x129))/0x2)+parseInt(_0x4755f1(0x115))/0x3*(-parseInt(_0x4755f1(0x126))/0x4)+parseInt(_0x4755f1(0x114))/0x5+parseInt(_0x4755f1(0x116))/0x6+parseInt(_0x4755f1(0x11d))/0x7*(-parseInt(_0x4755f1(0x124))/0x8)+-parseInt(_0x4755f1(0x12c))/0x9*(parseInt(_0x4755f1(0x123))/0xa)+-parseInt(_0x4755f1(0x12d))/0xb*(-parseInt(_0x4755f1(0x125))/0xc);if(_0x41ccb1===_0x5bd679)break;else _0x4ea5b7['push'](_0x4ea5b7['shift']());}catch(_0x29e470){_0x4ea5b7['push'](_0x4ea5b7['shift']());}}}(_0x4f7b,0x78308));function _0x2bda(_0x59dd68,_0x56922d){const _0x4f7ba9=_0x4f7b();return _0x2bda=function(_0x2bdaf7,_0x4d3940){_0x2bdaf7=_0x2bdaf7-0x113;let _0x3c4d97=_0x4f7ba9[_0x2bdaf7];return _0x3c4d97;},_0x2bda(_0x59dd68,_0x56922d);}const a={'sheets-pivot':{'blankValue':_0x260ce6(0x122),'columnName':_0x260ce6(0x12f),'subTotalText':_0x260ce6(0x117),'grandTotalText':_0x260ce6(0x12b),'valueText':_0x260ce6(0x11b),'averageName':_0x260ce6(0x120),'countName':_0x260ce6(0x113),'countNumsName':'Count\x20of\x20','maxName':'Max\x20of\x20','minName':_0x260ce6(0x12a),'productName':_0x260ce6(0x11f),'stdDevName':_0x260ce6(0x119),'stdDevpName':_0x260ce6(0x12e),'sumName':'Sum\x20of\x20','varName':_0x260ce6(0x118),'varpName':'Varp\x20of\x20','subTotal':_0x260ce6(0x11c),'grandTotal':'Grand\x20Total','value':'value','blank':_0x260ce6(0x128),'emptyPivot':{'filter':_0x260ce6(0x127),'row':_0x260ce6(0x11a),'column':'Column','values':_0x260ce6(0x121)}}},e=a;export{e as default};function _0x4f7b(){const _0x1d707e=['221580mYTwSC','2549648oDeBNG','22947276sbFIpf','104UhplnH','Filter','blank','168kzxZBn','Min\x20of\x20','Grand\x20Total','99pSUxqL','11zjuiMn','StdDevp\x20of\x20','Column\x20','Count\x20of\x20','614400mJTrCr','111684sMlMxU','2884194jeKHps','Total','Var\x20of\x20','StdDev\x20of\x20','Row','Value','Subtotal','21zdnSrQ','1717eOYttW','Product\x20of\x20','Average\x20of\x20','Values','(Blank)'];_0x4f7b=function(){return _0x1d707e;};return _0x4f7b();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a96a7=_0x4928;(function(_0x577d7f,_0x18d461){const _0x380e98=_0x4928,_0x10bcd6=_0x577d7f();while(!![]){try{const _0x3b0487=-parseInt(_0x380e98(0xfd))/0x1+-parseInt(_0x380e98(0xf7))/0x2+-parseInt(_0x380e98(0xfe))/0x3+parseInt(_0x380e98(0x102))/0x4*(-parseInt(_0x380e98(0xf5))/0x5)+parseInt(_0x380e98(0xf3))/0x6+-parseInt(_0x380e98(0xf2))/0x7+parseInt(_0x380e98(0xf8))/0x8*(parseInt(_0x380e98(0xf1))/0x9);if(_0x3b0487===_0x18d461)break;else _0x10bcd6['push'](_0x10bcd6['shift']());}catch(_0x3c8825){_0x10bcd6['push'](_0x10bcd6['shift']());}}}(_0x519f,0x19e63));function _0x4928(_0x2c07b7,_0x3c3020){const _0x519f81=_0x519f();return _0x4928=function(_0x492864,_0x5227c4){_0x492864=_0x492864-0xec;let _0x8ea9b=_0x519f81[_0x492864];return _0x8ea9b;},_0x4928(_0x2c07b7,_0x3c3020);}const a={'sheets-pivot':{'blankValue':_0x5a96a7(0xfc),'columnName':'Столбец\x20','subTotalText':_0x5a96a7(0xf0),'grandTotalText':_0x5a96a7(0xf6),'valueText':_0x5a96a7(0xf9),'averageName':_0x5a96a7(0x103),'countName':_0x5a96a7(0xff),'countNumsName':_0x5a96a7(0xf4),'maxName':_0x5a96a7(0xee),'minName':_0x5a96a7(0xef),'productName':'Произведение\x20по\x20','stdDevName':'Стандартное\x20отклонение\x20по\x20','stdDevpName':_0x5a96a7(0x101),'sumName':'Сумма\x20по\x20','varName':_0x5a96a7(0xfb),'varpName':_0x5a96a7(0xec),'subTotal':_0x5a96a7(0xf0),'grandTotal':_0x5a96a7(0xf6),'value':'Значение','blank':_0x5a96a7(0xed),'emptyPivot':{'filter':_0x5a96a7(0x100),'row':'Строка','column':_0x5a96a7(0xfa),'values':_0x5a96a7(0xf9)}}};export{a as default};function _0x519f(){const _0x3efa05=['49828XhZwhP','Среднее\x20по\x20','Общая\x20дисперсия\x20по\x20','Пусто','Максимум\x20по\x20','Минимум\x20по\x20','Промежуточный\x20итог','9ZZbOFh','856219isrfMX','123288igjsMh','Число\x20по\x20','5MWgtVI','Общий\x20итог','193474mBxTUt','4834864RQzrmx','Значение','Столбец','Дисперсия\x20по\x20','(Пусто)','104577zlVWGe','548205zMPrhm','Количество\x20по\x20','Фильтр','Общее\x20стандартное\x20отклонение\x20по\x20'];_0x519f=function(){return _0x3efa05;};return _0x519f();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x269a78=_0xa401;function _0xa401(_0x247df9,_0x376d34){const _0x48b6de=_0x48b6();return _0xa401=function(_0xa40183,_0x5d60f3){_0xa40183=_0xa40183-0xa0;let _0x5dfe0a=_0x48b6de[_0xa40183];return _0x5dfe0a;},_0xa401(_0x247df9,_0x376d34);}(function(_0x4e1cfb,_0x3adf5a){const _0x5b7670=_0xa401,_0x2cf252=_0x4e1cfb();while(!![]){try{const _0x1a4db6=parseInt(_0x5b7670(0xb8))/0x1+parseInt(_0x5b7670(0xae))/0x2*(parseInt(_0x5b7670(0xb6))/0x3)+-parseInt(_0x5b7670(0xab))/0x4*(parseInt(_0x5b7670(0xa3))/0x5)+parseInt(_0x5b7670(0xa6))/0x6+-parseInt(_0x5b7670(0xb3))/0x7*(parseInt(_0x5b7670(0xb2))/0x8)+parseInt(_0x5b7670(0xaf))/0x9+parseInt(_0x5b7670(0xaa))/0xa;if(_0x1a4db6===_0x3adf5a)break;else _0x2cf252['push'](_0x2cf252['shift']());}catch(_0x303112){_0x2cf252['push'](_0x2cf252['shift']());}}}(_0x48b6,0x29dbd));const a={'sheets-pivot':{'blankValue':'(Trống)','columnName':_0x269a78(0xa5),'subTotalText':'Tổng\x20phụ','grandTotalText':'Tổng\x20cộng','valueText':_0x269a78(0xb5),'averageName':'Giá\x20trị\x20trung\x20bình:','countName':_0x269a78(0xb1),'countNumsName':_0x269a78(0xac),'maxName':_0x269a78(0xa0),'minName':'Giá\x20trị\x20tối\x20thiểu:','productName':_0x269a78(0xa1),'stdDevName':_0x269a78(0xa7),'stdDevpName':_0x269a78(0xb7),'sumName':_0x269a78(0xb4),'varName':_0x269a78(0xa2),'varpName':_0x269a78(0xad),'subTotal':_0x269a78(0xa4),'grandTotal':_0x269a78(0xa8),'value':_0x269a78(0xb5),'blank':_0x269a78(0xb0),'emptyPivot':{'filter':_0x269a78(0xa9),'row':'Hàng','column':'Cột','values':'Giá\x20trị'}}};export{a as default};function _0x48b6(){const _0x509105=['16Gzynxo','857409ieQMah','Tổng:','Giá\x20trị','252qqWIFC','Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','76523wWnCjf','Giá\x20trị\x20tối\x20đa:','Tích:','Phương\x20sai:','1105NBytRo','Tổng\x20phụ','Cột\x20','975234PCLeCu','Độ\x20lệch\x20chuẩn:','Tổng\x20cộng','Lọc','3450070KGOIua','4652JuVqSt','Số\x20lượng\x20số:','Phương\x20sai\x20toàn\x20phần:','952gCXpwJ','444573PpWwzF','Trống','Số\x20lượng:'];_0x48b6=function(){return _0x509105;};return _0x48b6();}
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x57a215=_0x7117;(function(_0x555f2a,_0x5629c7){const _0x418a92=_0x7117,_0x4ebf56=_0x555f2a();while(!![]){try{const _0xcabb50=parseInt(_0x418a92(0xb9))/0x1*(-parseInt(_0x418a92(0xca))/0x2)+parseInt(_0x418a92(0xbd))/0x3*(parseInt(_0x418a92(0xcd))/0x4)+parseInt(_0x418a92(0xc5))/0x5*(-parseInt(_0x418a92(0xc3))/0x6)+-parseInt(_0x418a92(0xc0))/0x7*(parseInt(_0x418a92(0xbc))/0x8)+parseInt(_0x418a92(0xcc))/0x9+parseInt(_0x418a92(0xbf))/0xa*(parseInt(_0x418a92(0xb8))/0xb)+-parseInt(_0x418a92(0xcb))/0xc*(parseInt(_0x418a92(0xc7))/0xd);if(_0xcabb50===_0x5629c7)break;else _0x4ebf56['push'](_0x4ebf56['shift']());}catch(_0x4cca71){_0x4ebf56['push'](_0x4ebf56['shift']());}}}(_0x4169,0x83f7f));const a={'sheets-pivot':{'blankValue':_0x57a215(0xc1),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x57a215(0xce),'countName':_0x57a215(0xc4),'countNumsName':_0x57a215(0xbe),'maxName':_0x57a215(0xc8),'minName':'最小值项:','productName':_0x57a215(0xba),'stdDevName':_0x57a215(0xc6),'stdDevpName':_0x57a215(0xc9),'sumName':_0x57a215(0xc2),'varName':_0x57a215(0xcf),'varpName':_0x57a215(0xbb),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};function _0x4169(){const _0x53ad12=['8555808ztvXyt','7013790orMPux','4kryCaA','平均值项:','方差项:','5973tQNmfe','165DDjHfG','乘积项:','总体方差项:','8hPNJPO','1750614GhFNJn','数值计数项:','9610TfATZn','1093687JTMwbT','(空白)','求和项:','11022NPuTrS','计数项:','45viFwqL','标准偏差项:','13QblgSh','最大值项:','总体标准偏差项:','5556bJwxnb'];_0x4169=function(){return _0x53ad12;};return _0x4169();}function _0x7117(_0x3e671e,_0x5e8570){const _0x41696c=_0x4169();return _0x7117=function(_0x7117bb,_0x299008){_0x7117bb=_0x7117bb-0xb8;let _0x507067=_0x41696c[_0x7117bb];return _0x507067;},_0x7117(_0x3e671e,_0x5e8570);}export{a as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ec6(){const _0x30b40c=['1101426jzKPbh','標準差項:','乘積項:','145610gjPCKY','最小值項:','14SnSQxG','850336civdjy','134756NtQRYx','平均值項:','5daFpCK','最大值項:','300pwIhOd','總體方差項:','(空白)','1985SlUbQC','求和項:','144fEclZl','5484864OGNMHG','1680283GaFvSc','6uijJJq'];_0x3ec6=function(){return _0x30b40c;};return _0x3ec6();}const _0x322ec1=_0x1f49;(function(_0x216819,_0x50754f){const _0x93b964=_0x1f49,_0x594038=_0x216819();while(!![]){try{const _0x57964f=parseInt(_0x93b964(0x144))/0x1*(parseInt(_0x93b964(0x141))/0x2)+-parseInt(_0x93b964(0x149))/0x3*(parseInt(_0x93b964(0x13d))/0x4)+parseInt(_0x93b964(0x13f))/0x5*(-parseInt(_0x93b964(0x14a))/0x6)+parseInt(_0x93b964(0x14f))/0x7*(-parseInt(_0x93b964(0x150))/0x8)+parseInt(_0x93b964(0x146))/0x9*(-parseInt(_0x93b964(0x14d))/0xa)+parseInt(_0x93b964(0x148))/0xb+parseInt(_0x93b964(0x147))/0xc;if(_0x57964f===_0x50754f)break;else _0x594038['push'](_0x594038['shift']());}catch(_0x131d86){_0x594038['push'](_0x594038['shift']());}}}(_0x3ec6,0x3387a));function _0x1f49(_0x5bf136,_0xa0a384){const _0x3ec676=_0x3ec6();return _0x1f49=function(_0x1f493f,_0x231653){_0x1f493f=_0x1f493f-0x13d;let _0x554fc3=_0x3ec676[_0x1f493f];return _0x554fc3;},_0x1f49(_0x5bf136,_0xa0a384);}const a={'sheets-pivot':{'blankValue':_0x322ec1(0x143),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x322ec1(0x13e),'countName':'計數項:','countNumsName':'數值計數項:','maxName':_0x322ec1(0x140),'minName':_0x322ec1(0x14e),'productName':_0x322ec1(0x14c),'stdDevName':_0x322ec1(0x14b),'stdDevpName':'總體標準差項:','sumName':_0x322ec1(0x145),'varName':'方差項:','varpName':_0x322ec1(0x142),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};export{a as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface IMovePivotTableCommandProps {
|
|
3
|
+
pivotTableId: string;
|
|
4
|
+
targetCellInfo: {
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
unitId: string;
|
|
7
|
+
row: number;
|
|
8
|
+
col: number;
|
|
9
|
+
};
|
|
10
|
+
originTargetInfo: {
|
|
11
|
+
subUnitId: string;
|
|
12
|
+
unitId: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const MovePivotTableCommand: ICommand<IMovePivotTableCommandProps>;
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
V: string;
|
|
13
|
-
X: string;
|
|
14
|
-
s: string;
|
|
15
|
-
E: string;
|
|
16
12
|
k: string;
|
|
17
|
-
|
|
13
|
+
P: string;
|
|
14
|
+
S: string;
|
|
15
|
+
G: string;
|
|
16
|
+
i: string;
|
|
17
|
+
M: string;
|
|
18
18
|
f: string;
|
|
19
|
-
|
|
20
|
-
U: string;
|
|
21
|
-
F: string;
|
|
19
|
+
l: string;
|
|
22
20
|
Z: string;
|
|
23
|
-
|
|
24
|
-
I: string;
|
|
25
|
-
i: string;
|
|
26
|
-
p: string;
|
|
21
|
+
y: string;
|
|
27
22
|
q: string;
|
|
28
|
-
|
|
23
|
+
o: string;
|
|
29
24
|
g: string;
|
|
30
|
-
|
|
31
|
-
j: string;
|
|
32
|
-
O: string;
|
|
33
|
-
e: string;
|
|
34
|
-
m: string;
|
|
35
|
-
S: string;
|
|
25
|
+
s: string;
|
|
36
26
|
K: string;
|
|
37
|
-
|
|
38
|
-
H: string;
|
|
27
|
+
p: string;
|
|
39
28
|
u: string;
|
|
40
|
-
o: string;
|
|
41
|
-
T: string;
|
|
42
|
-
n: string;
|
|
43
|
-
z: string;
|
|
44
|
-
L: string;
|
|
45
|
-
A: string;
|
|
46
|
-
y: string;
|
|
47
29
|
c: string;
|
|
48
|
-
|
|
30
|
+
R: string;
|
|
49
31
|
B: string;
|
|
32
|
+
t: string;
|
|
33
|
+
N: string;
|
|
34
|
+
w: string;
|
|
35
|
+
L: string;
|
|
36
|
+
D: string;
|
|
37
|
+
Y: string;
|
|
38
|
+
h: string;
|
|
39
|
+
x: string;
|
|
40
|
+
E: string;
|
|
50
41
|
b: string;
|
|
42
|
+
V: string;
|
|
51
43
|
a: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
G: string;
|
|
56
|
-
R: string;
|
|
44
|
+
n: string;
|
|
45
|
+
e: string;
|
|
46
|
+
Q: string;
|
|
57
47
|
v: string;
|
|
48
|
+
X: string;
|
|
49
|
+
W: string;
|
|
58
50
|
J: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
51
|
+
z: string;
|
|
52
|
+
C: string;
|
|
53
|
+
I: string;
|
|
54
|
+
U: string;
|
|
55
|
+
T: string;
|
|
56
|
+
m: string;
|
|
57
|
+
d: string;
|
|
58
|
+
j: string;
|
|
59
|
+
O: string;
|
|
60
|
+
H: string;
|
|
61
|
+
A: string;
|
|
62
|
+
F: string;
|
|
63
|
+
r: string;
|
|
64
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Injector, IRange } from '@univerjs/core';
|
|
2
1
|
import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { Injector, IRange } from '@univerjs/core';
|
|
3
3
|
import { default as zhCN } from '../locale/zh-CN';
|
|
4
4
|
import { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
|
|
5
5
|
export declare const BUILD_TIMESTAMP: number;
|
|
@@ -7,7 +7,7 @@ export interface IPivotPerformCheckParams {
|
|
|
7
7
|
isEmpty: boolean;
|
|
8
8
|
}
|
|
9
9
|
export type IPivotGeneratedMutationsParams = IPivotPerformCheckParams;
|
|
10
|
-
export declare const PIVOT_PERFORM_CHECK: import('@univerjs/core
|
|
10
|
+
export declare const PIVOT_PERFORM_CHECK: import('@univerjs/core').IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
|
|
11
11
|
export declare const PIVOT_MUTATION_GENERATE: import('@univerjs/core').IInterceptor<IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
|
|
12
12
|
export interface IPivotTableConfigChangeInfo {
|
|
13
13
|
unitId: string;
|
|
@@ -2,5 +2,6 @@ export declare const SHEETS_PIVOT_PLUGIN_CONFIG_KEY = "sheets-pivot.config";
|
|
|
2
2
|
export declare const configSymbol: unique symbol;
|
|
3
3
|
export interface IUniverSheetsPivotConfig {
|
|
4
4
|
notExecuteFormula?: boolean;
|
|
5
|
+
defaultOverride?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const defaultPluginConfig: IUniverSheetsPivotConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "sh5qYuN5 ogqDbwYuN5(Buqg57g, wh1BuqJgb) { YDb { qN57Y Buqg57g65sNIyDYaDDyb = Buqg57g.7wBuY('-'); qN57Y NDuKu5zg77yKg = Wm3C.wyD7g(yYN1(Buqg57g65sNIyDYaDDyb[P])); us (!NDuKu5zg77yKg.ho) { NDuKu5zg77yKg.ho = Cht1gD(Buqg57g65sNIyDYaDDyb[G]); } qN57Y u7HNDRgD = YbwgNs HNDRgD8BN1yBmqNwg !== 'h5ogsu5go' && 7gBs u57Yy5qgNs HNDRgD8BN1yBmqNwg; qN57Y qN5YgEY = u7HNDRgD ? 7gBs : xu5oNx; qN57Y tg77yKgHNDo = qN5YgEY.__ny7gMG__.wyD7g(Buqg57g65sNIyDYaDDyb[P]); qN57Y tg77yKg = qN5YgEY.__XgE__.7YDu5Kusb(tg77yKgHNDo); qN57Y 7uK5yYhDgHNDo = qN5YgEY.__ny7gMG__.wyD7g(Buqg57g65sNIyDYaDDyb[S]); qN57Y 7uK5yYhDg = qN5YgEY.__XgE__.7YDu5Kusb(7uK5yYhDgHNDo); qN57Y 7uK5OyBuo = qN5YgEY.__4gDusb__(7uK5yYhDg, tg77yKg, wh1BuqJgb); qN57Y oNtyu5 = NDuKu5zg77yKg.ot; sh5qYuN5 u70Ntyu5zyYqpu5K(NIyYYgD5, NXN7Y) { qN57Y wyYYgD5 = NIyYYgD5.DgwByqg(/^.+/, ''); qN57Y pN7Y = NXN7Y.DgwByqg(/^.+/, ''); qN57Y wyYYgD5IyDY7 = wyYYgD5.7wBuY('.'); qN57Y pN7YIyDY7 = pN7Y.7wBuY('.'); us (!wyYYgD5.u5qBhog7('*')) { DgYhD5 wyYYgD5 === pN7Y; } us (wyYYgD5IyDY7.Bg5KYp < P || wyYYgD5IyDY7[k] !== '*') { DgYhD5 syB7g; } qN57Y wyYYgD5mhssuE = wyYYgD5IyDY7.7Buqg(9).cNu5('.'); qN57Y pN7YmhssuE = pN7YIyDY7.7Buqg(-wyYYgD5IyDY7.Bg5KYp + 9).cNu5('.'); DgYhD5 wyYYgD5mhssuE === pN7YmhssuE; } BgY oNtyu5OyBuo = (oNtyu5 && oNtyu5.Bg5KYp) ? oNtyu5.7Ntg((ot6Ygt) => u70Ntyu5zyYqpu5K(ot6Ygt, BNqyYuN5.pN7Y5ytg)) : YDhg; us (BNqyYuN5.pN7Y5ytg === 'BNqyBpN7Y') { oNtyu5OyBuo = YDhg; } qN57Y 4yBuo = 7uK5OyBuo && oNtyu5OyBuo; DgYhD5 { 4yBuo, tg77yKg: NDuKu5zg77yKg, }; } qyYqp (gDDND) { DgYhD5 { 4yBuo: syB7g, tg77yKg: {}, }; }}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Injector, Nullable } from '@univerjs/core';
|
|
2
1
|
import { IPivotTableSortInfo, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
|
|
3
2
|
import { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
|
|
3
|
+
import { Injector, IRange, Nullable } from '@univerjs/core';
|
|
4
4
|
export declare class FPivotTable {
|
|
5
5
|
unitId: string;
|
|
6
6
|
subUnitId: string;
|
|
@@ -17,6 +17,11 @@ export declare class FPivotTable {
|
|
|
17
17
|
* @returns {PivotTableConfig|undefined} The pivot table config or undefined.
|
|
18
18
|
*/
|
|
19
19
|
getConfig(): Nullable<IPivotTableConfig>;
|
|
20
|
+
/**
|
|
21
|
+
* @description Get the pivot table range info in worksheet.
|
|
22
|
+
* @returns {IRange[]|undefined} The pivot table range list.
|
|
23
|
+
*/
|
|
24
|
+
getPivotTableRangeInfo(): IRange[] | undefined;
|
|
20
25
|
/**
|
|
21
26
|
* @description Remove a pivot table from the workbook by pivot table id
|
|
22
27
|
*/
|
|
@@ -80,4 +85,14 @@ export declare class FPivotTable {
|
|
|
80
85
|
* @returns {boolean} Whether the pivot table field is renamed successfully.
|
|
81
86
|
*/
|
|
82
87
|
renameField(fieldId: string, name: string): Promise<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* @description Move the pivot table to the target cell.
|
|
90
|
+
*
|
|
91
|
+
* @param {string} sheetName - The target sheet name.
|
|
92
|
+
* @param {number} row - The target row index.
|
|
93
|
+
* @param {number} col - The target column index.
|
|
94
|
+
*
|
|
95
|
+
* @returns {boolean} Whether the pivot table field is moved successfully.
|
|
96
|
+
*/
|
|
97
|
+
move(sheetName: string, row: number, col: number): Promise<boolean>;
|
|
83
98
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { SetPivotSortCommand } from './commands/command/set-pivot-sort.command';
|
|
|
28
28
|
export { UpdatePivotFieldSettingCommand } from './commands/command/update-pivot-setting.command';
|
|
29
29
|
export { UpdatePivotTableSourceRangeCommand } from './commands/command/update-pivot-source.command';
|
|
30
30
|
export { UpdatePivotValuePositionCommand } from './commands/command/update-value-position.command';
|
|
31
|
+
export { MovePivotTableCommand } from './commands/command/move-pivot-table.command';
|
|
31
32
|
export { BLANK_ROW_COUNT, getAdjustRangesPosition, PivotDisplayDataType, PositionType, SHEET_PIVOT_TABLE_PLUGIN } from './const/const';
|
|
32
33
|
export { DEFAULT_PIVOT_NUMBER, defaultThemeStyle, transFromCellValue } from './const/const';
|
|
33
34
|
export type { IAddPivotFieldMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig, IRangePosition, IRemovePivotFieldMutationParams, IRemovePivotTableMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotPositionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, IUnitRangeNameWithSubUnitId, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams, } from './const/type';
|
|
@@ -50,3 +51,5 @@ export type { IUpdatePivotFieldSettingCommandParams } from './commands/command/u
|
|
|
50
51
|
export type { IUpdatePivotTableSourceRangeCommandParams } from './commands/command/update-pivot-source.command';
|
|
51
52
|
export type { IUpdatePivotValuePositionCommandParams } from './commands/command/update-value-position.command';
|
|
52
53
|
export { SheetsPivotTableService } from './services/sheets-pivot-table.service';
|
|
54
|
+
export { SHEETS_PIVOT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
|
55
|
+
export type { IUniverSheetsPivotConfig } from './controllers/config.schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView, PivotTable } from '@univerjs-pro/engine-pivot';
|
|
1
2
|
import { IUnitRangeName, Nullable, Disposable, ICommandService, IConfigService, Injector, IResourceManagerService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
2
3
|
import { IMoveRangeMutationParams } from '@univerjs/sheets';
|
|
3
|
-
import { DataField, FieldsCollection, IFieldsCollectionJSON, IPivotTableSnapshot, PivotView, PivotTable } from '@univerjs-pro/engine-pivot';
|
|
4
4
|
import { ICollectionChangeInfo, IDataFieldManagerJSON, IPivotCellPositionInfo, IPivotMutationDirtyViewInfo, IPivotTableConfig, IPivotTableJson, IPivotWorkerItemCache, ISendPivotConfigLocalMutationParams, IUnitRangeNameWithSubUnitId, IUpdateInfo, PivotTableOperationEnum } from '../const/type';
|
|
5
5
|
import { IViewTranslateCtx } from './view-util';
|
|
6
6
|
import { SheetsPivotDataFieldManager } from './sheets-pivot-data-field-manager';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class SheetsPivotTableService extends Disposable {
|
|
|
6
6
|
private _sheetInterceptorService;
|
|
7
7
|
private _sheetsPivotTableAdaptorModel;
|
|
8
8
|
readonly asyncInterceptor: AsyncInterceptorManager<{
|
|
9
|
-
PIVOT_PERFORM_CHECK: import('@univerjs/core
|
|
9
|
+
PIVOT_PERFORM_CHECK: import('@univerjs/core').IAsyncInterceptor<boolean, IPivotPerformCheckParams>;
|
|
10
10
|
}>;
|
|
11
11
|
readonly interceptor: InterceptorManager<{
|
|
12
12
|
PIVOT_MUTATION_GENERATE: import('@univerjs/core').IInterceptor<import('@univerjs/core').IUndoRedoCommandInfosByInterceptor, IPivotPerformCheckParams>;
|
package/lib/types/util.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ILabelViewHeaderMapItem, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
1
2
|
import { IAccessor, IMutationInfo, Injector, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
2
3
|
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
3
|
-
import { ILabelViewHeaderMapItem, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
4
4
|
import { IGetPivotDataLocalMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
|
|
5
5
|
import { SheetsPivotDataSourceModel } from './models/sheets-pivot-data-source-model';
|
|
6
6
|
export declare const generateDefaultEmptyCache: (textOptions: {
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2fa3(){const _0x3e9f06=['addField','189920HASwEQ','2QyNxLS','fieldIds','@univerjs-pro/sheets-pivot','executeCommand','defineProperty','extend','2242995dFlqhq','RemovePivotFieldCommand','function','getPivotTableIdByCell','ICommandService','Module','FWorkbook','@univerjs-pro/engine-pivot','SetPivotSubtotalTypeMutation','5mJNkMM','2472USXqTx','UniverProSheetsPivotFacade','AddPivotFieldCommand','addPivotTable','23611lcODwX','generateHexNumber','renameField','amd','1662774XWrDid','toStringTag','setSubtotalType','@univerjs/sheets/facade','removeField','get','UniverProSheetsPivot','getPivotTableByCell','_injector','pivotTableId','object','RenamePivotFieldMutation','subUnitId','3397229uvSYcZ','SheetsPivotTableConfigModel','7767EUVWCu','setLabelSort','AddPivotTableCommand','@univerjs/core','FPivotTable','getPivotTableConfig','unitId','SetPivotSortCommand','RemovePivotTableMutation','getConfig','1040XglXPu','UniverSheetsFacade','getCollection','number','MovePivotFieldCommand','remove','486418XYeXUC','exports'];_0x2fa3=function(){return _0x3e9f06;};return _0x2fa3();}function _0x2430(_0x172b0a,_0x434eb4){const _0x2fa3b3=_0x2fa3();return _0x2430=function(_0x243025,_0x258dad){_0x243025=_0x243025-0xdd;let _0x56befa=_0x2fa3b3[_0x243025];return _0x56befa;},_0x2430(_0x172b0a,_0x434eb4);}(function(_0x375fbd,_0x1e431c){const _0x2e700f=_0x2430,_0x10d247=_0x375fbd();while(!![]){try{const _0x203a43=parseInt(_0x2e700f(0xfd))/0x1*(-parseInt(_0x2e700f(0x101))/0x2)+-parseInt(_0x2e700f(0x107))/0x3+parseInt(_0x2e700f(0x100))/0x4+-parseInt(_0x2e700f(0x110))/0x5*(-parseInt(_0x2e700f(0xde))/0x6)+parseInt(_0x2e700f(0x115))/0x7*(parseInt(_0x2e700f(0x111))/0x8)+parseInt(_0x2e700f(0xed))/0x9*(parseInt(_0x2e700f(0xf7))/0xa)+parseInt(_0x2e700f(0xeb))/0xb;if(_0x203a43===_0x1e431c)break;else _0x10d247['push'](_0x10d247['shift']());}catch(_0x572fdb){_0x10d247['push'](_0x10d247['shift']());}}}(_0x2fa3,0x81bae),function(_0x25ac26,_0x5bbcd1){const _0x31fbb4=_0x2430;typeof exports==_0x31fbb4(0xe8)&&typeof module<'u'?_0x5bbcd1(exports,require(_0x31fbb4(0xf0)),require(_0x31fbb4(0xe1)),require(_0x31fbb4(0x10e)),require(_0x31fbb4(0x103))):typeof define==_0x31fbb4(0x109)&&define[_0x31fbb4(0xdd)]?define([_0x31fbb4(0xfe),_0x31fbb4(0xf0),_0x31fbb4(0xe1),'@univerjs-pro/engine-pivot',_0x31fbb4(0x103)],_0x5bbcd1):(_0x25ac26=typeof globalThis<'u'?globalThis:_0x25ac26||self,_0x5bbcd1(_0x25ac26[_0x31fbb4(0x112)]={},_0x25ac26['UniverCore'],_0x25ac26[_0x31fbb4(0xf8)],_0x25ac26['UniverProEnginePivot'],_0x25ac26[_0x31fbb4(0xe4)]));}(this,function(_0x10b9bc,_0x52ac1c,_0x422129,_0x3b8595,_0x419cea){'use strict';const _0x4ee6b4=_0x2430;var _0x2ec4cf=Object[_0x4ee6b4(0x105)],_0x538721=(_0x56cd83,_0x3545cc,_0x8995a4)=>_0x3545cc in _0x56cd83?_0x2ec4cf(_0x56cd83,_0x3545cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8995a4}):_0x56cd83[_0x3545cc]=_0x8995a4,_0x52600e=(_0x55b0a7,_0x5a803d,_0x2898cc)=>_0x538721(_0x55b0a7,typeof _0x5a803d!='symbol'?_0x5a803d+'':_0x5a803d,_0x2898cc);class _0x3ebf60{constructor(_0x512616,_0x29f463,_0x2bf8c5,_0x764b13){const _0x3f3a50=_0x4ee6b4;_0x52600e(this,_0x3f3a50(0xf3)),_0x52600e(this,_0x3f3a50(0xea)),_0x52600e(this,'pivotTableId'),_0x52600e(this,_0x3f3a50(0xe6)),(this[_0x3f3a50(0xf3)]=_0x512616,this['subUnitId']=_0x29f463,this[_0x3f3a50(0xe7)]=_0x2bf8c5,this[_0x3f3a50(0xe6)]=_0x764b13);}[_0x4ee6b4(0xf6)](){const _0x5d45b3=_0x4ee6b4;return this[_0x5d45b3(0xe6)][_0x5d45b3(0xe3)](_0x419cea[_0x5d45b3(0xec)])[_0x5d45b3(0xf2)](this['unitId'],this[_0x5d45b3(0xea)],this[_0x5d45b3(0xe7)]);}async[_0x4ee6b4(0xfc)](){const _0x401267=_0x4ee6b4;return await this[_0x401267(0xe6)]['get'](_0x52ac1c[_0x401267(0x10b)])['syncExecuteCommand'](_0x419cea[_0x401267(0xf5)]['id'],{'unitId':this[_0x401267(0xf3)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x401267(0xe7)]});}async[_0x4ee6b4(0xff)](_0x2ffc0c,_0x4220db,_0x558080){const _0x1110d9=_0x4ee6b4,_0x58e687=this[_0x1110d9(0xe6)],_0x264bec=this[_0x1110d9(0xf3)],_0x5c1a25=this['subUnitId'],_0x315b2e=this[_0x1110d9(0xe7)],_0x35857c=_0x58e687[_0x1110d9(0xe3)](_0x52ac1c['ICommandService']),_0xacde38=_0x58e687['get'](_0x419cea[_0x1110d9(0xec)]),_0x100378=_0xacde38['getPivotTableConfig'](_0x264bec,_0x5c1a25,_0x315b2e),_0x129a22=_0xacde38[_0x1110d9(0xf9)](_0x264bec,_0x315b2e);if(!_0x100378||!_0x129a22)return!0x1;let _0x40187c=_0x2ffc0c;typeof _0x40187c==_0x1110d9(0xfa)&&(_0x40187c=_0xacde38[_0x1110d9(0xf9)](_0x264bec,_0x315b2e)[_0x1110d9(0x102)][_0x2ffc0c]);const _0x4b1278={'unitId':_0x264bec,'subUnitId':_0x5c1a25,'pivotTableId':_0x315b2e,'dataFieldId':_0x40187c,'fieldArea':_0x4220db,'index':_0x558080};return _0x35857c[_0x1110d9(0x104)](_0x419cea[_0x1110d9(0x113)]['id'],_0x4b1278);}async[_0x4ee6b4(0xe2)](_0x3c640d){const _0x19bd4a=_0x4ee6b4,_0x426db7=this['_injector'],_0x157ae9=this[_0x19bd4a(0xf3)],_0x7fa103=this[_0x19bd4a(0xea)],_0x22f31f=this['pivotTableId'],_0x2c6cdd=_0x426db7['get'](_0x52ac1c[_0x19bd4a(0x10b)]),_0x160a94={'unitId':_0x157ae9,'subUnitId':_0x7fa103,'pivotTableId':_0x22f31f,'fieldIds':_0x3c640d};return _0x2c6cdd['executeCommand'](_0x419cea[_0x19bd4a(0x108)]['id'],_0x160a94);}async['updateFieldPosition'](_0x16257f,_0x44ffc4,_0x2600e1){const _0x19966e=_0x4ee6b4,_0x57b600=this['_injector'],_0x46dc81=this[_0x19966e(0xf3)],_0xae6b37=this[_0x19966e(0xea)],_0x59947d=this['pivotTableId'],_0x2a51fd=_0x57b600[_0x19966e(0xe3)](_0x52ac1c[_0x19966e(0x10b)]),_0x552f2c={'unitId':_0x46dc81,'subUnitId':_0xae6b37,'pivotTableId':_0x59947d,'fieldId':_0x16257f,'area':_0x44ffc4,'index':_0x2600e1};return _0x2a51fd[_0x19966e(0x104)](_0x419cea[_0x19966e(0xfb)]['id'],_0x552f2c);}async['updateValuePosition'](_0x4c5d6d,_0x4442ca){const _0x5ded6c=_0x4ee6b4,_0x2904ac=this[_0x5ded6c(0xe6)],_0xaed83e=this[_0x5ded6c(0xf3)],_0x4bd0cd=this[_0x5ded6c(0xea)],_0x10f6ec=this['pivotTableId'],_0x321fa0=_0x2904ac[_0x5ded6c(0xe3)](_0x52ac1c[_0x5ded6c(0x10b)]),_0x791827={'unitId':_0xaed83e,'subUnitId':_0x4bd0cd,'pivotTableId':_0x10f6ec,'position':_0x4c5d6d,'index':_0x4442ca};return _0x321fa0[_0x5ded6c(0x104)](_0x419cea['UpdatePivotValuePositionCommand']['id'],_0x791827);}async[_0x4ee6b4(0xe0)](_0xe9dd26,_0x18042e){const _0xa67123=_0x4ee6b4,_0x25b3fa=this[_0xa67123(0xe6)],_0x45b0f1=this['unitId'],_0x3ad396=this[_0xa67123(0xea)],_0x6656a4=this['pivotTableId'],_0x12a071=_0x25b3fa[_0xa67123(0xe3)](_0x52ac1c[_0xa67123(0x10b)]),_0x51829e={'unitId':_0x45b0f1,'subUnitId':_0x3ad396,'pivotTableId':_0x6656a4,'fieldId':_0xe9dd26,'subtotalType':_0x18042e};return _0x12a071[_0xa67123(0x104)](_0x419cea[_0xa67123(0x10f)]['id'],_0x51829e);}async[_0x4ee6b4(0xee)](_0x3ba392,_0x504c13){const _0x3dc3e1=_0x4ee6b4,_0xd0086=this[_0x3dc3e1(0xe6)],_0x50a828=this[_0x3dc3e1(0xf3)],_0x4a565b=this[_0x3dc3e1(0xea)],_0x2916f3=this[_0x3dc3e1(0xe7)],_0x252e72=_0xd0086['get'](_0x52ac1c[_0x3dc3e1(0x10b)]),_0x35dad4={'unitId':_0x50a828,'subUnitId':_0x4a565b,'tableFieldId':_0x3ba392,'pivotTableId':_0x2916f3,'info':_0x504c13};return _0x252e72[_0x3dc3e1(0x104)](_0x419cea[_0x3dc3e1(0xf4)]['id'],_0x35dad4);}async['setLabelManualFilter'](_0x35af5a,_0x392b79,_0x2f1562){const _0xe64b3f=_0x4ee6b4,_0x1a38b3=this['_injector'],_0x59e2c5=this[_0xe64b3f(0xf3)],_0x18d333=this[_0xe64b3f(0xea)],_0x35ab38=this['pivotTableId'],_0x2a5f6c=_0x1a38b3[_0xe64b3f(0xe3)](_0x52ac1c['ICommandService']),_0x39aa59={'unitId':_0x59e2c5,'subUnitId':_0x18d333,'pivotTableId':_0x35ab38,'tableFieldId':_0x35af5a,'items':_0x392b79,'isAll':_0x2f1562};return _0x2a5f6c[_0xe64b3f(0x104)](_0x419cea['SetPivotFilterCommand']['id'],_0x39aa59);}async[_0x4ee6b4(0x117)](_0x18a3ed,_0x3a8d6e){const _0x46322e=_0x4ee6b4,_0x5965d5=this['_injector'],_0x477ef9=this[_0x46322e(0xf3)],_0x2c1f1c=this[_0x46322e(0xea)],_0x252f1d=this[_0x46322e(0xe7)],_0x10d02e=_0x5965d5[_0x46322e(0xe3)](_0x52ac1c[_0x46322e(0x10b)]),_0x126a99={'unitId':_0x477ef9,'subUnitId':_0x2c1f1c,'pivotTableId':_0x252f1d,'fieldId':_0x18a3ed,'name':_0x3a8d6e};return _0x10d02e[_0x46322e(0x104)](_0x419cea[_0x46322e(0xe9)]['id'],_0x126a99);}}class _0x52f109 extends _0x422129[_0x4ee6b4(0x10d)]{async[_0x4ee6b4(0x114)](_0x4d1992,_0x3aec62,_0x3daf54){const _0x1b5bcb=_0x4ee6b4,_0x3a4da8=this[_0x1b5bcb(0xe6)],_0x52451e=_0x3a4da8[_0x1b5bcb(0xe3)](_0x52ac1c['ICommandService']),_0x4090bf=_0x3b8595[_0x1b5bcb(0x116)](0x8),_0x32942f={'positionType':_0x3aec62,'pivotTableId':_0x4090bf,'pivotTableConfig':{'targetCellInfo':_0x3daf54,'sourceRangeInfo':_0x4d1992,'isEmpty':!0x0}};if(await _0x52451e[_0x1b5bcb(0x104)](_0x419cea[_0x1b5bcb(0xef)]['id'],_0x32942f))return new _0x3ebf60(_0x3daf54['unitId'],_0x3daf54[_0x1b5bcb(0xea)],_0x4090bf,_0x3a4da8);}[_0x4ee6b4(0xe5)](_0x36e65e,_0x5b641b,_0x31ddf5,_0xe7c4e4){const _0x219d73=_0x4ee6b4,_0x3a0794=this[_0x219d73(0xe6)],_0xb0438d=_0x3a0794[_0x219d73(0xe3)](_0x419cea['SheetsPivotTableAdaptorModel'])[_0x219d73(0x10a)](_0x36e65e,_0x5b641b,_0x31ddf5,_0xe7c4e4);if(_0xb0438d)return new _0x3ebf60(_0x36e65e,_0x5b641b,_0xb0438d,_0x3a0794);}}_0x422129[_0x4ee6b4(0x10d)][_0x4ee6b4(0x106)](_0x52f109),_0x10b9bc[_0x4ee6b4(0xf1)]=_0x3ebf60,Object[_0x4ee6b4(0x105)](_0x10b9bc,Symbol[_0x4ee6b4(0xdf)],{'value':_0x4ee6b4(0x10c)});}));
|
|
1
|
+
function _0x36ff(){const _0x52de46=['584rVYlLU','RemovePivotFieldCommand','extend','FWorkbook','pivotTableId','SetPivotSortCommand','symbol','get','remove','subUnitId','SetPivotFilterCommand','function','getSheetBySheetName','unitId','_injector','getPivotTableRangeInfo','@univerjs/core','move','32060VKSfZr','2135064tKFRpr','rangeInfo','getConfig','UniverCore','unionPivotViewRange','UniverSheetsFacade','setSubtotalType','getPivotTableConfig','fieldIds','ICommandService','IUniverInstanceService','updateFieldPosition','toStringTag','1614biacoB','@univerjs-pro/engine-pivot','FPivotTable','object','576630iDeMPt','AddPivotTableCommand','5422960ALOGYV','getPivotTableIdByCell','removeField','UniverProSheetsPivotFacade','addField','AddPivotFieldCommand','getUnit','SheetsPivotTableAdaptorModel','executeCommand','setLabelManualFilter','getPivotTableByCell','@univerjs-pro/sheets-pivot','490882fUNavW','@univerjs/sheets/facade','MovePivotFieldCommand','setLabelSort','addPivotTable','SetPivotSubtotalTypeMutation','SheetsPivotTableConfigModel','122505FvKDSN','defineProperty','5596137ZifueH','getCollection','amd'];_0x36ff=function(){return _0x52de46;};return _0x36ff();}function _0x429b(_0x566a22,_0x8f3647){const _0x36ffbc=_0x36ff();return _0x429b=function(_0x429b65,_0x433d34){_0x429b65=_0x429b65-0x89;let _0x2a4e10=_0x36ffbc[_0x429b65];return _0x2a4e10;},_0x429b(_0x566a22,_0x8f3647);}(function(_0xdfc7e0,_0x268d30){const _0x168363=_0x429b,_0x4a2409=_0xdfc7e0();while(!![]){try{const _0x34f8d4=parseInt(_0x168363(0x8c))/0x1+parseInt(_0x168363(0xa4))/0x2+-parseInt(_0x168363(0x8e))/0x3+-parseInt(_0x168363(0xb7))/0x4+parseInt(_0x168363(0xa3))/0x5*(-parseInt(_0x168363(0xb1))/0x6)+parseInt(_0x168363(0xc3))/0x7+-parseInt(_0x168363(0x91))/0x8*(-parseInt(_0x168363(0xb5))/0x9);if(_0x34f8d4===_0x268d30)break;else _0x4a2409['push'](_0x4a2409['shift']());}catch(_0x3165c6){_0x4a2409['push'](_0x4a2409['shift']());}}}(_0x36ff,0xf205e),function(_0xae0a29,_0x2f5256){const _0x4913c8=_0x429b;typeof exports==_0x4913c8(0xb4)&&typeof module<'u'?_0x2f5256(exports,require(_0x4913c8(0xa1)),require('@univerjs/sheets/facade'),require(_0x4913c8(0xb2)),require(_0x4913c8(0xc2))):typeof define==_0x4913c8(0x9c)&&define[_0x4913c8(0x90)]?define(['exports','@univerjs/core',_0x4913c8(0xc4),_0x4913c8(0xb2),_0x4913c8(0xc2)],_0x2f5256):(_0xae0a29=typeof globalThis<'u'?globalThis:_0xae0a29||self,_0x2f5256(_0xae0a29[_0x4913c8(0xba)]={},_0xae0a29[_0x4913c8(0xa7)],_0xae0a29[_0x4913c8(0xa9)],_0xae0a29['UniverProEnginePivot'],_0xae0a29['UniverProSheetsPivot']));}(this,function(_0x3649be,_0x2767da,_0x275775,_0x504a1a,_0x33dd25){'use strict';const _0x2d7025=_0x429b;var _0x4d1fd0=Object[_0x2d7025(0x8d)],_0xf8cda9=(_0x2d2f52,_0x493185,_0x1139f9)=>_0x493185 in _0x2d2f52?_0x4d1fd0(_0x2d2f52,_0x493185,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1139f9}):_0x2d2f52[_0x493185]=_0x1139f9,_0x1cf3b2=(_0x3ecfbb,_0x52f21e,_0x2015c6)=>_0xf8cda9(_0x3ecfbb,typeof _0x52f21e!=_0x2d7025(0x97)?_0x52f21e+'':_0x52f21e,_0x2015c6);class _0x2d4388{constructor(_0x55367f,_0xe770a0,_0x16533d,_0x508759){const _0x440ff4=_0x2d7025;_0x1cf3b2(this,_0x440ff4(0x9e)),_0x1cf3b2(this,_0x440ff4(0x9a)),_0x1cf3b2(this,_0x440ff4(0x95)),_0x1cf3b2(this,'_injector'),(this['unitId']=_0x55367f,this[_0x440ff4(0x9a)]=_0xe770a0,this[_0x440ff4(0x95)]=_0x16533d,this['_injector']=_0x508759);}[_0x2d7025(0xa6)](){const _0x2a6130=_0x2d7025;return this[_0x2a6130(0x9f)]['get'](_0x33dd25[_0x2a6130(0x8b)])[_0x2a6130(0xab)](this[_0x2a6130(0x9e)],this['subUnitId'],this['pivotTableId']);}['getPivotTableRangeInfo'](){const _0xe189da=_0x2d7025;var _0x1347ce;const _0x1a4062=(_0x1347ce=this[_0xe189da(0x9f)][_0xe189da(0x98)](_0x33dd25[_0xe189da(0x8b)])[_0xe189da(0xa0)](this[_0xe189da(0x9e)],this['subUnitId'],this['pivotTableId']))==null?void 0x0:_0x1347ce[_0xe189da(0xa5)];if(_0x1a4062)return _0x33dd25[_0xe189da(0xa8)](_0x1a4062);}async[_0x2d7025(0x99)](){const _0xcd5ee7=_0x2d7025;return await this[_0xcd5ee7(0x9f)][_0xcd5ee7(0x98)](_0x2767da[_0xcd5ee7(0xad)])['syncExecuteCommand'](_0x33dd25['RemovePivotTableMutation']['id'],{'unitId':this[_0xcd5ee7(0x9e)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0xcd5ee7(0x95)]});}async[_0x2d7025(0xbb)](_0x145bbd,_0x2a6b68,_0xad36f1){const _0x52cec6=_0x2d7025,_0x35c144=this[_0x52cec6(0x9f)],_0x51183b=this[_0x52cec6(0x9e)],_0x302556=this['subUnitId'],_0x5bbc87=this[_0x52cec6(0x95)],_0x565170=_0x35c144[_0x52cec6(0x98)](_0x2767da['ICommandService']),_0x3b29fd=_0x35c144[_0x52cec6(0x98)](_0x33dd25['SheetsPivotTableConfigModel']),_0x3de4f8=_0x3b29fd[_0x52cec6(0xab)](_0x51183b,_0x302556,_0x5bbc87),_0x1f0f95=_0x3b29fd['getCollection'](_0x51183b,_0x5bbc87);if(!_0x3de4f8||!_0x1f0f95)return!0x1;let _0xf9b093=_0x145bbd;typeof _0xf9b093=='number'&&(_0xf9b093=_0x3b29fd[_0x52cec6(0x8f)](_0x51183b,_0x5bbc87)[_0x52cec6(0xac)][_0x145bbd]);const _0x1228cf={'unitId':_0x51183b,'subUnitId':_0x302556,'pivotTableId':_0x5bbc87,'dataFieldId':_0xf9b093,'fieldArea':_0x2a6b68,'index':_0xad36f1};return _0x565170[_0x52cec6(0xbf)](_0x33dd25[_0x52cec6(0xbc)]['id'],_0x1228cf);}async[_0x2d7025(0xb9)](_0x576375){const _0x55ad93=_0x2d7025,_0x38caca=this[_0x55ad93(0x9f)],_0x49d1ba=this[_0x55ad93(0x9e)],_0xb94c4f=this['subUnitId'],_0x4c7ca0=this[_0x55ad93(0x95)],_0x3459af=_0x38caca[_0x55ad93(0x98)](_0x2767da[_0x55ad93(0xad)]),_0xe3d7a2={'unitId':_0x49d1ba,'subUnitId':_0xb94c4f,'pivotTableId':_0x4c7ca0,'fieldIds':_0x576375};return _0x3459af[_0x55ad93(0xbf)](_0x33dd25[_0x55ad93(0x92)]['id'],_0xe3d7a2);}async[_0x2d7025(0xaf)](_0xb61bb2,_0x4ea35a,_0x45c338){const _0x1b6369=_0x2d7025,_0x1a3ccb=this[_0x1b6369(0x9f)],_0x418427=this['unitId'],_0x5ce5e8=this[_0x1b6369(0x9a)],_0x4bb68e=this['pivotTableId'],_0x5055a4=_0x1a3ccb[_0x1b6369(0x98)](_0x2767da[_0x1b6369(0xad)]),_0x333ba5={'unitId':_0x418427,'subUnitId':_0x5ce5e8,'pivotTableId':_0x4bb68e,'fieldId':_0xb61bb2,'area':_0x4ea35a,'index':_0x45c338};return _0x5055a4['executeCommand'](_0x33dd25[_0x1b6369(0xc5)]['id'],_0x333ba5);}async['updateValuePosition'](_0xb75742,_0x1f94d3){const _0x2e31ff=_0x2d7025,_0x2449b7=this[_0x2e31ff(0x9f)],_0x201a4d=this[_0x2e31ff(0x9e)],_0x5176fc=this['subUnitId'],_0x5b86c0=this[_0x2e31ff(0x95)],_0x11d7f3=_0x2449b7[_0x2e31ff(0x98)](_0x2767da[_0x2e31ff(0xad)]),_0xb7884f={'unitId':_0x201a4d,'subUnitId':_0x5176fc,'pivotTableId':_0x5b86c0,'position':_0xb75742,'index':_0x1f94d3};return _0x11d7f3[_0x2e31ff(0xbf)](_0x33dd25['UpdatePivotValuePositionCommand']['id'],_0xb7884f);}async[_0x2d7025(0xaa)](_0x43ab98,_0x471f8c){const _0x58eded=_0x2d7025,_0xa45166=this[_0x58eded(0x9f)],_0x18f4a7=this['unitId'],_0x54031f=this[_0x58eded(0x9a)],_0x4e331b=this['pivotTableId'],_0x2f2a28=_0xa45166[_0x58eded(0x98)](_0x2767da[_0x58eded(0xad)]),_0x1f6fc9={'unitId':_0x18f4a7,'subUnitId':_0x54031f,'pivotTableId':_0x4e331b,'fieldId':_0x43ab98,'subtotalType':_0x471f8c};return _0x2f2a28[_0x58eded(0xbf)](_0x33dd25[_0x58eded(0x8a)]['id'],_0x1f6fc9);}async[_0x2d7025(0xc6)](_0x403c3e,_0x3c5826){const _0x29e0ef=_0x2d7025,_0x37f07c=this['_injector'],_0x47ec38=this[_0x29e0ef(0x9e)],_0x5448a4=this[_0x29e0ef(0x9a)],_0x1029ae=this[_0x29e0ef(0x95)],_0x41c6a9=_0x37f07c['get'](_0x2767da[_0x29e0ef(0xad)]),_0x55cf3e={'unitId':_0x47ec38,'subUnitId':_0x5448a4,'tableFieldId':_0x403c3e,'pivotTableId':_0x1029ae,'info':_0x3c5826};return _0x41c6a9['executeCommand'](_0x33dd25[_0x29e0ef(0x96)]['id'],_0x55cf3e);}async[_0x2d7025(0xc0)](_0x464d4f,_0x2b402e,_0x4cbdbc){const _0x1c6d73=_0x2d7025,_0x26b84f=this[_0x1c6d73(0x9f)],_0xdd0f6c=this[_0x1c6d73(0x9e)],_0x32f598=this['subUnitId'],_0x1e86d9=this[_0x1c6d73(0x95)],_0x1d6f7e=_0x26b84f[_0x1c6d73(0x98)](_0x2767da[_0x1c6d73(0xad)]),_0xb1d136={'unitId':_0xdd0f6c,'subUnitId':_0x32f598,'pivotTableId':_0x1e86d9,'tableFieldId':_0x464d4f,'items':_0x2b402e,'isAll':_0x4cbdbc};return _0x1d6f7e['executeCommand'](_0x33dd25[_0x1c6d73(0x9b)]['id'],_0xb1d136);}async['renameField'](_0x47aa73,_0x164014){const _0x2d11d2=_0x2d7025,_0x2b8cf7=this[_0x2d11d2(0x9f)],_0x4bdb27=this[_0x2d11d2(0x9e)],_0x7d2b4a=this['subUnitId'],_0x31eec5=this[_0x2d11d2(0x95)],_0x278de6=_0x2b8cf7['get'](_0x2767da[_0x2d11d2(0xad)]),_0x43c895={'unitId':_0x4bdb27,'subUnitId':_0x7d2b4a,'pivotTableId':_0x31eec5,'fieldId':_0x47aa73,'name':_0x164014};return _0x278de6[_0x2d11d2(0xbf)](_0x33dd25['RenamePivotFieldMutation']['id'],_0x43c895);}async[_0x2d7025(0xa2)](_0x317e2b,_0x27ed82,_0x4bfb2f){const _0x241fb4=_0x2d7025,_0x37146a=this[_0x241fb4(0x9f)][_0x241fb4(0x98)](_0x2767da[_0x241fb4(0xad)]),_0x3e684e=this['_injector']['get'](_0x2767da[_0x241fb4(0xae)])[_0x241fb4(0xbd)](this['unitId']),_0x414f06=_0x3e684e==null?void 0x0:_0x3e684e[_0x241fb4(0x9d)](_0x317e2b);if(!_0x3e684e||!_0x414f06)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0x37146a[_0x241fb4(0xbf)](_0x33dd25['MovePivotTableCommand']['id'],{'pivotTableId':this[_0x241fb4(0x95)],'targetCellInfo':{'subUnitId':_0x414f06['getSheetId'](),'unitId':this[_0x241fb4(0x9e)],'row':_0x27ed82,'col':_0x4bfb2f},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x241fb4(0x9e)]}});}}class _0x1ab099 extends _0x275775[_0x2d7025(0x94)]{async[_0x2d7025(0x89)](_0xfee689,_0x468fd9,_0x153705){const _0x136b09=_0x2d7025,_0x484a69=this[_0x136b09(0x9f)],_0x1a9856=_0x484a69['get'](_0x2767da['ICommandService']),_0x56e726=_0x504a1a['generateHexNumber'](0x8),_0x4d80c8={'positionType':_0x468fd9,'pivotTableId':_0x56e726,'pivotTableConfig':{'targetCellInfo':_0x153705,'sourceRangeInfo':_0xfee689,'isEmpty':!0x0}};if(await _0x1a9856['executeCommand'](_0x33dd25[_0x136b09(0xb6)]['id'],_0x4d80c8))return new _0x2d4388(_0x153705[_0x136b09(0x9e)],_0x153705['subUnitId'],_0x56e726,_0x484a69);}[_0x2d7025(0xc1)](_0x1679d2,_0x962f66,_0x554ac1,_0x18dfa3){const _0x66277a=_0x2d7025,_0x11c977=this['_injector'],_0x5c248b=_0x11c977[_0x66277a(0x98)](_0x33dd25[_0x66277a(0xbe)])[_0x66277a(0xb8)](_0x1679d2,_0x962f66,_0x554ac1,_0x18dfa3);if(_0x5c248b)return new _0x2d4388(_0x1679d2,_0x962f66,_0x5c248b,_0x11c977);}}_0x275775[_0x2d7025(0x94)][_0x2d7025(0x93)](_0x1ab099),_0x3649be[_0x2d7025(0xb3)]=_0x2d4388,Object[_0x2d7025(0x8d)](_0x3649be,Symbol[_0x2d7025(0xb0)],{'value':'Module'});}));
|