@univerjs-pro/sheets-pivot 0.5.5 → 0.6.0-alpha.0
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/types/facade/f-enum.d.ts +6 -0
- package/lib/types/facade/f-event.d.ts +39 -12
- package/lib/types/facade/f-pivot-table.d.ts +28 -0
- package/lib/types/facade/f-workbook.d.ts +26 -20
- package/lib/types/models/sheets-pivot-data-field-manager.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 -11
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10a510=_0x571f;(function(_0x5351d1,_0x1c09ce){const _0x2f3f22=_0x571f,_0x1937ee=_0x5351d1();while(!![]){try{const _0x255659=parseInt(_0x2f3f22(0x93))/0x1+parseInt(_0x2f3f22(0x95))/0x2*(parseInt(_0x2f3f22(0xab))/0x3)+-parseInt(_0x2f3f22(0x9e))/0x4+parseInt(_0x2f3f22(0xaa))/0x5+parseInt(_0x2f3f22(0xa8))/0x6*(-parseInt(_0x2f3f22(0xa7))/0x7)+-parseInt(_0x2f3f22(0x9c))/0x8+parseInt(_0x2f3f22(0x9a))/0x9*(-parseInt(_0x2f3f22(0x97))/0xa);if(_0x255659===_0x1c09ce)break;else _0x1937ee['push'](_0x1937ee['shift']());}catch(_0x6013a4){_0x1937ee['push'](_0x1937ee['shift']());}}}(_0xd56c,0x62b7c));function _0xd56c(){const _0x423d9d=['867784DssEij','StdDev\x20of\x20','1502492FJmkgy','Row','Values','(Blank)','Column','blank','Total','Subtotal','Var\x20of\x20','329hOjvvc','63822QJPETY','Count\x20of\x20','1083750NeMoxX','33QJdOAD','Grand\x20Total','Column\x20','530299CPqIuw','Sum\x20of\x20','131420YamppF','value','40ZApyom','Product\x20of\x20','Varp\x20of\x20','183321dALUXz','StdDevp\x20of\x20'];_0xd56c=function(){return _0x423d9d;};return _0xd56c();}function _0x571f(_0x5d5b25,_0x134b41){const _0xd56c99=_0xd56c();return _0x571f=function(_0x571fd6,_0x5d060c){_0x571fd6=_0x571fd6-0x91;let _0x1a3d38=_0xd56c99[_0x571fd6];return _0x1a3d38;},_0x571f(_0x5d5b25,_0x134b41);}const a={'sheets-pivot':{'blankValue':_0x10a510(0xa1),'columnName':_0x10a510(0x92),'subTotalText':_0x10a510(0xa4),'grandTotalText':_0x10a510(0x91),'valueText':'Value','averageName':'Average\x20of\x20','countName':_0x10a510(0xa9),'countNumsName':'Count\x20of\x20','maxName':'Max\x20of\x20','minName':'Min\x20of\x20','productName':_0x10a510(0x98),'stdDevName':_0x10a510(0x9d),'stdDevpName':_0x10a510(0x9b),'sumName':_0x10a510(0x94),'varName':_0x10a510(0xa6),'varpName':_0x10a510(0x99),'subTotal':_0x10a510(0xa5),'grandTotal':'Grand\x20Total','value':_0x10a510(0x96),'blank':_0x10a510(0xa3),'emptyPivot':{'filter':'Filter','row':_0x10a510(0x9f),'column':_0x10a510(0xa2),'values':_0x10a510(0xa0)}}};export{a as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x217a(_0x261a51,_0x293426){const _0x58bf54=_0x58bf();return _0x217a=function(_0x217a9d,_0x23899f){_0x217a9d=_0x217a9d-0x199;let _0x20d189=_0x58bf54[_0x217a9d];return _0x20d189;},_0x217a(_0x261a51,_0x293426);}function _0x58bf(){const _0x368f1d=['تعداد\x20از\x20','واریانس\x20از\x20','2281405uSKlPV','بیشترین\x20از\x20','ستون','2335614OEHXxr','1328109hzOmBJ','3907860HmsAzn','(خالی)','28737jTZGGp','تعداد\x20اعداد\x20از\x20','ضرب\x20از\x20','1WQeJnD','خالی','مقدار','4832MxleJQ','مقادیر','ستون\x20','کمترین\x20از\x20','میانگین\x20از\x20','12270314ZHLcDc','4076488IKGEmW','جمع','انحراف\x20معیار\x20کلی\x20از\x20'];_0x58bf=function(){return _0x368f1d;};return _0x58bf();}const _0x29a5bb=_0x217a;(function(_0x3e6d39,_0x36ad3a){const _0x21ec7a=_0x217a,_0x37c601=_0x3e6d39();while(!![]){try{const _0x5801d8=parseInt(_0x21ec7a(0x19b))/0x1*(parseInt(_0x21ec7a(0x1ac))/0x2)+parseInt(_0x21ec7a(0x1ad))/0x3+-parseInt(_0x21ec7a(0x1a4))/0x4+-parseInt(_0x21ec7a(0x1a9))/0x5+parseInt(_0x21ec7a(0x1ae))/0x6+-parseInt(_0x21ec7a(0x1a3))/0x7+-parseInt(_0x21ec7a(0x19e))/0x8*(-parseInt(_0x21ec7a(0x1b0))/0x9);if(_0x5801d8===_0x36ad3a)break;else _0x37c601['push'](_0x37c601['shift']());}catch(_0x1ecf56){_0x37c601['push'](_0x37c601['shift']());}}}(_0x58bf,0xeae27));const a={'sheets-pivot':{'blankValue':_0x29a5bb(0x1af),'columnName':_0x29a5bb(0x1a0),'subTotalText':_0x29a5bb(0x1a5),'grandTotalText':'کل','valueText':_0x29a5bb(0x19d),'averageName':_0x29a5bb(0x1a2),'countName':_0x29a5bb(0x1a7),'countNumsName':_0x29a5bb(0x199),'maxName':_0x29a5bb(0x1aa),'minName':_0x29a5bb(0x1a1),'productName':_0x29a5bb(0x19a),'stdDevName':'انحراف\x20معیار\x20از\x20','stdDevpName':_0x29a5bb(0x1a6),'sumName':'جمع\x20از\x20','varName':_0x29a5bb(0x1a8),'varpName':'واریانس\x20کلی\x20از\x20','subTotal':'جمع','grandTotal':'کل','value':_0x29a5bb(0x19d),'blank':_0x29a5bb(0x19c),'emptyPivot':{'filter':'فیلتر','row':'سطر','column':_0x29a5bb(0x1ab),'values':_0x29a5bb(0x19f)}}};export{a as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37f549=_0x481e;(function(_0x2ba3f4,_0xf976c0){const _0x3a5aca=_0x481e,_0x1558a6=_0x2ba3f4();while(!![]){try{const _0x280c25=-parseInt(_0x3a5aca(0x14e))/0x1+-parseInt(_0x3a5aca(0x149))/0x2*(parseInt(_0x3a5aca(0x14a))/0x3)+parseInt(_0x3a5aca(0x155))/0x4*(-parseInt(_0x3a5aca(0x154))/0x5)+-parseInt(_0x3a5aca(0x141))/0x6+parseInt(_0x3a5aca(0x13f))/0x7*(-parseInt(_0x3a5aca(0x140))/0x8)+-parseInt(_0x3a5aca(0x14c))/0x9*(parseInt(_0x3a5aca(0x159))/0xa)+parseInt(_0x3a5aca(0x151))/0xb;if(_0x280c25===_0xf976c0)break;else _0x1558a6['push'](_0x1558a6['shift']());}catch(_0x2b3eb0){_0x1558a6['push'](_0x1558a6['shift']());}}}(_0x4400,0x3f4c2));const a={'sheets-pivot':{'blankValue':'(Blank)','columnName':_0x37f549(0x148),'subTotalText':'Total','grandTotalText':_0x37f549(0x146),'valueText':_0x37f549(0x14d),'averageName':_0x37f549(0x158),'countName':_0x37f549(0x153),'countNumsName':_0x37f549(0x153),'maxName':_0x37f549(0x156),'minName':_0x37f549(0x15b),'productName':_0x37f549(0x150),'stdDevName':'StdDev\x20of\x20','stdDevpName':_0x37f549(0x142),'sumName':_0x37f549(0x144),'varName':_0x37f549(0x157),'varpName':_0x37f549(0x152),'subTotal':_0x37f549(0x15a),'grandTotal':_0x37f549(0x146),'value':'value','blank':_0x37f549(0x145),'emptyPivot':{'filter':_0x37f549(0x14b),'row':_0x37f549(0x143),'column':_0x37f549(0x14f),'values':_0x37f549(0x147)}}},e=a;export{e as default};function _0x481e(_0x36f0dc,_0x15a7ac){const _0x440024=_0x4400();return _0x481e=function(_0x481efd,_0xaad931){_0x481efd=_0x481efd-0x13f;let _0x440868=_0x440024[_0x481efd];return _0x440868;},_0x481e(_0x36f0dc,_0x15a7ac);}function _0x4400(){const _0x4a3915=['10MdHtIN','Subtotal','Min\x20of\x20','8547OMglsQ','3192SMwfXN','106230VKBEJO','StdDevp\x20of\x20','Row','Sum\x20of\x20','blank','Grand\x20Total','Values','Column\x20','2mMmqEE','10506EGReSh','Filter','2209635vTNnGC','Value','399287glWABa','Column','Product\x20of\x20','16745982Dhjtpp','Varp\x20of\x20','Count\x20of\x20','274770izCkFb','8NXniCV','Max\x20of\x20','Var\x20of\x20','Average\x20of\x20'];_0x4400=function(){return _0x4a3915;};return _0x4400();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x32fc7d=_0x2f32;(function(_0x3ce2a5,_0x346179){const _0x1c72f8=_0x2f32,_0xc2be43=_0x3ce2a5();while(!![]){try{const _0x1c661b=parseInt(_0x1c72f8(0x180))/0x1+-parseInt(_0x1c72f8(0x196))/0x2*(-parseInt(_0x1c72f8(0x19a))/0x3)+parseInt(_0x1c72f8(0x186))/0x4+parseInt(_0x1c72f8(0x198))/0x5*(-parseInt(_0x1c72f8(0x18a))/0x6)+-parseInt(_0x1c72f8(0x197))/0x7*(-parseInt(_0x1c72f8(0x185))/0x8)+-parseInt(_0x1c72f8(0x187))/0x9*(parseInt(_0x1c72f8(0x192))/0xa)+parseInt(_0x1c72f8(0x194))/0xb;if(_0x1c661b===_0x346179)break;else _0xc2be43['push'](_0xc2be43['shift']());}catch(_0x39665c){_0xc2be43['push'](_0xc2be43['shift']());}}}(_0x1341,0xc2def));function _0x1341(){const _0xd99e52=['12747020xrxoiv','Число\x20по\x20','159252BDRfVG','53774BgAXTB','409595sUlstH','Значение','18hGnScj','Столбец\x20','Максимум\x20по\x20','750587vANhGx','Промежуточный\x20итог','Произведение\x20по\x20','Пусто','Фильтр','1200pZDuGC','1143204oRemYw','1404aOkxJR','Строка','Сумма\x20по\x20','114gyIroz','Столбец','Среднее\x20по\x20','Общее\x20стандартное\x20отклонение\x20по\x20','Общий\x20итог','Общая\x20дисперсия\x20по\x20','Дисперсия\x20по\x20','(Пусто)','94270RuAvyb','Минимум\x20по\x20'];_0x1341=function(){return _0xd99e52;};return _0x1341();}const a={'sheets-pivot':{'blankValue':_0x32fc7d(0x191),'columnName':_0x32fc7d(0x17e),'subTotalText':_0x32fc7d(0x181),'grandTotalText':_0x32fc7d(0x18e),'valueText':_0x32fc7d(0x199),'averageName':_0x32fc7d(0x18c),'countName':'Количество\x20по\x20','countNumsName':_0x32fc7d(0x195),'maxName':_0x32fc7d(0x17f),'minName':_0x32fc7d(0x193),'productName':_0x32fc7d(0x182),'stdDevName':'Стандартное\x20отклонение\x20по\x20','stdDevpName':_0x32fc7d(0x18d),'sumName':_0x32fc7d(0x189),'varName':_0x32fc7d(0x190),'varpName':_0x32fc7d(0x18f),'subTotal':'Промежуточный\x20итог','grandTotal':_0x32fc7d(0x18e),'value':_0x32fc7d(0x199),'blank':_0x32fc7d(0x183),'emptyPivot':{'filter':_0x32fc7d(0x184),'row':_0x32fc7d(0x188),'column':_0x32fc7d(0x18b),'values':'Значение'}}};function _0x2f32(_0x166e0c,_0x4e7aa5){const _0x134137=_0x1341();return _0x2f32=function(_0x2f320d,_0x7c7901){_0x2f320d=_0x2f320d-0x17e;let _0x47be45=_0x134137[_0x2f320d];return _0x47be45;},_0x2f32(_0x166e0c,_0x4e7aa5);}export{a as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4547(){const _0x269eaf=['Hàng','36zSJbpk','Phương\x20sai\x20toàn\x20phần:','174645lJhOFU','Giá\x20trị','Giá\x20trị\x20tối\x20thiểu:','573712boQYfp','(Trống)','596328WDZofZ','8348659PhbSAW','Tổng\x20cộng','Tổng\x20phụ','989ytqJVV','871927xIcSgr','5666000RwyVgQ','Cột','Tích:','Độ\x20lệch\x20chuẩn:','Trống','Số\x20lượng:','15rGSRXR','1330dZoHqI','Lọc','36hTKfUF','Phương\x20sai:','Giá\x20trị\x20tối\x20đa:','Tổng:'];_0x4547=function(){return _0x269eaf;};return _0x4547();}const _0x2cf678=_0x4508;(function(_0x27d262,_0x4b18a0){const _0x198f50=_0x4508,_0x530f50=_0x27d262();while(!![]){try{const _0x3b1f92=-parseInt(_0x198f50(0xa6))/0x1*(parseInt(_0x198f50(0xaf))/0x2)+parseInt(_0x198f50(0xae))/0x3*(-parseInt(_0x198f50(0xa2))/0x4)+parseInt(_0x198f50(0xb8))/0x5+parseInt(_0x198f50(0xb1))/0x6*(parseInt(_0x198f50(0xa7))/0x7)+-parseInt(_0x198f50(0xa0))/0x8*(parseInt(_0x198f50(0xb6))/0x9)+parseInt(_0x198f50(0xa8))/0xa+parseInt(_0x198f50(0xa3))/0xb;if(_0x3b1f92===_0x4b18a0)break;else _0x530f50['push'](_0x530f50['shift']());}catch(_0x427128){_0x530f50['push'](_0x530f50['shift']());}}}(_0x4547,0x66079));function _0x4508(_0x10a309,_0x311483){const _0x4547cd=_0x4547();return _0x4508=function(_0x4508ed,_0x96e3d9){_0x4508ed=_0x4508ed-0xa0;let _0x25df09=_0x4547cd[_0x4508ed];return _0x25df09;},_0x4508(_0x10a309,_0x311483);}const a={'sheets-pivot':{'blankValue':_0x2cf678(0xa1),'columnName':'Cột\x20','subTotalText':'Tổng\x20phụ','grandTotalText':_0x2cf678(0xa4),'valueText':_0x2cf678(0xb9),'averageName':'Giá\x20trị\x20trung\x20bình:','countName':_0x2cf678(0xad),'countNumsName':'Số\x20lượng\x20số:','maxName':_0x2cf678(0xb3),'minName':_0x2cf678(0xba),'productName':_0x2cf678(0xaa),'stdDevName':_0x2cf678(0xab),'stdDevpName':'Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','sumName':_0x2cf678(0xb4),'varName':_0x2cf678(0xb2),'varpName':_0x2cf678(0xb7),'subTotal':_0x2cf678(0xa5),'grandTotal':_0x2cf678(0xa4),'value':_0x2cf678(0xb9),'blank':_0x2cf678(0xac),'emptyPivot':{'filter':_0x2cf678(0xb0),'row':_0x2cf678(0xb5),'column':_0x2cf678(0xa9),'values':'Giá\x20trị'}}};export{a as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1fb1(_0x91f002,_0x152004){const _0x334959=_0x3349();return _0x1fb1=function(_0x1fb118,_0x599168){_0x1fb118=_0x1fb118-0x1ab;let _0x23d412=_0x334959[_0x1fb118];return _0x23d412;},_0x1fb1(_0x91f002,_0x152004);}const _0x31c2a9=_0x1fb1;(function(_0x380883,_0x32e2cf){const _0x39108d=_0x1fb1,_0x24ee97=_0x380883();while(!![]){try{const _0x5c8c5d=-parseInt(_0x39108d(0x1bc))/0x1*(-parseInt(_0x39108d(0x1b0))/0x2)+-parseInt(_0x39108d(0x1b6))/0x3+-parseInt(_0x39108d(0x1b2))/0x4+-parseInt(_0x39108d(0x1b1))/0x5*(parseInt(_0x39108d(0x1b7))/0x6)+parseInt(_0x39108d(0x1bb))/0x7+-parseInt(_0x39108d(0x1ae))/0x8*(parseInt(_0x39108d(0x1b9))/0x9)+parseInt(_0x39108d(0x1b5))/0xa;if(_0x5c8c5d===_0x32e2cf)break;else _0x24ee97['push'](_0x24ee97['shift']());}catch(_0x5188e8){_0x24ee97['push'](_0x24ee97['shift']());}}}(_0x3349,0x1e7d1));const a={'sheets-pivot':{'blankValue':_0x31c2a9(0x1bd),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x31c2a9(0x1be),'countName':'计数项:','countNumsName':_0x31c2a9(0x1ac),'maxName':_0x31c2a9(0x1ab),'minName':_0x31c2a9(0x1b4),'productName':_0x31c2a9(0x1ad),'stdDevName':_0x31c2a9(0x1af),'stdDevpName':_0x31c2a9(0x1ba),'sumName':_0x31c2a9(0x1b3),'varName':'方差项:','varpName':_0x31c2a9(0x1b8),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};export{a as default};function _0x3349(){const _0x5838d0=['总体方差项:','2655DXrOXV','总体标准偏差项:','1629026dUZgjO','20693SwxRmp','(空白)','平均值项:','最大值项:','数值计数项:','乘积项:','5464RWNrqX','标准偏差项:','18UthZGN','528065icNQJT','390464QmMCIz','求和项:','最小值项:','2699900jkiBTm','478050liARyc','6aVANnq'];_0x3349=function(){return _0x5838d0;};return _0x3349();}
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x528587=_0x386d;function _0x386d(_0x2ed618,_0x310f24){const _0x61fbf0=_0x61fb();return _0x386d=function(_0x386d3b,_0x3ae6fe){_0x386d3b=_0x386d3b-0xb8;let _0x3943a4=_0x61fbf0[_0x386d3b];return _0x3943a4;},_0x386d(_0x2ed618,_0x310f24);}(function(_0x26d5db,_0x3937fd){const _0x40540f=_0x386d,_0x156cdb=_0x26d5db();while(!![]){try{const _0x5a9c85=-parseInt(_0x40540f(0xc9))/0x1+parseInt(_0x40540f(0xba))/0x2*(-parseInt(_0x40540f(0xb9))/0x3)+parseInt(_0x40540f(0xc2))/0x4*(-parseInt(_0x40540f(0xbe))/0x5)+parseInt(_0x40540f(0xbd))/0x6+parseInt(_0x40540f(0xbb))/0x7+-parseInt(_0x40540f(0xc5))/0x8*(parseInt(_0x40540f(0xc3))/0x9)+parseInt(_0x40540f(0xbc))/0xa;if(_0x5a9c85===_0x3937fd)break;else _0x156cdb['push'](_0x156cdb['shift']());}catch(_0x313e27){_0x156cdb['push'](_0x156cdb['shift']());}}}(_0x61fb,0x842c6));const a={'sheets-pivot':{'blankValue':_0x528587(0xc7),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x528587(0xc8),'countName':_0x528587(0xc4),'countNumsName':_0x528587(0xc6),'maxName':_0x528587(0xbf),'minName':_0x528587(0xc1),'productName':'乘積項:','stdDevName':'標準差項:','stdDevpName':_0x528587(0xc0),'sumName':'求和項:','varName':_0x528587(0xb8),'varpName':'總體方差項:','subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};function _0x61fb(){const _0x3b8bd8=['1235673RPSijJ','計數項:','8MarRwb','數值計數項:','(空白)','平均值項:','419817iFCypg','方差項:','55032nZWmAV','108EYDqCE','675934sAUmbR','17857410wzSelY','5377308lknYlz','5755hluflY','最大值項:','總體標準差項:','最小值項:','2396jgWuar'];_0x61fb=function(){return _0x3b8bd8;};return _0x61fb();}export{a as default};
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
T: string;
|
|
14
|
-
m: string;
|
|
15
|
-
y: string;
|
|
16
|
-
M: string;
|
|
17
|
-
Q: string;
|
|
18
|
-
L: string;
|
|
19
|
-
A: string;
|
|
20
|
-
t: string;
|
|
21
|
-
p: string;
|
|
22
|
-
J: string;
|
|
23
|
-
o: string;
|
|
24
|
-
z: string;
|
|
25
|
-
G: string;
|
|
26
|
-
E: string;
|
|
12
|
+
i: string;
|
|
27
13
|
W: string;
|
|
28
|
-
|
|
29
|
-
V: string;
|
|
30
|
-
S: string;
|
|
14
|
+
g: string;
|
|
31
15
|
d: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
h: string;
|
|
17
|
+
P: string;
|
|
18
|
+
C: string;
|
|
19
|
+
U: string;
|
|
35
20
|
Y: string;
|
|
36
|
-
g: string;
|
|
37
|
-
j: string;
|
|
38
|
-
n: string;
|
|
39
|
-
x: string;
|
|
40
|
-
c: string;
|
|
41
|
-
K: string;
|
|
42
21
|
N: string;
|
|
43
|
-
|
|
22
|
+
D: string;
|
|
44
23
|
R: string;
|
|
45
|
-
|
|
24
|
+
p: string;
|
|
25
|
+
o: string;
|
|
26
|
+
m: string;
|
|
27
|
+
L: string;
|
|
28
|
+
a: string;
|
|
29
|
+
k: string;
|
|
30
|
+
I: string;
|
|
46
31
|
Z: string;
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
G: string;
|
|
33
|
+
J: string;
|
|
34
|
+
S: string;
|
|
35
|
+
F: string;
|
|
36
|
+
x: string;
|
|
37
|
+
Q: string;
|
|
38
|
+
B: string;
|
|
39
|
+
O: string;
|
|
40
|
+
l: string;
|
|
41
|
+
r: string;
|
|
49
42
|
u: string;
|
|
50
|
-
C: string;
|
|
51
43
|
f: string;
|
|
52
|
-
|
|
44
|
+
t: string;
|
|
45
|
+
M: string;
|
|
46
|
+
E: string;
|
|
47
|
+
V: string;
|
|
48
|
+
w: string;
|
|
49
|
+
z: string;
|
|
53
50
|
b: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
H: string;
|
|
52
|
+
T: string;
|
|
53
|
+
K: string;
|
|
57
54
|
s: string;
|
|
58
|
-
|
|
59
|
-
a: string;
|
|
55
|
+
c: string;
|
|
60
56
|
q: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
j: string;
|
|
58
|
+
e: string;
|
|
59
|
+
X: string;
|
|
60
|
+
v: string;
|
|
61
|
+
n: string;
|
|
62
|
+
y: string;
|
|
63
|
+
A: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "mO5RBkS5 poRxfFBkS5(GkRo5Qo, FODGkRsof) { Bxf { RS5QB GkRo5QoT5mS2NxBMxxNf = GkRo5Qo.QFGkB('-'); RS5QB SxkLk5qoQQNLo = Ke84.FNxQo(NBSD(GkRo5QoT5mS2NxBMxxNf[g])); km (!SxkLk5qoQQNLo.Op) { SxkLk5qoQQNLo.Op = 4OJDox(GkRo5QoT5mS2NxBMxxNf[h]); } RS5QB kQ1SxZox = BfFoSm 1SxZoxbGSDNGeRSFo !== 'O5pomk5op' && QoGm k5QBN5RoSm 1SxZoxbGSDNGeRSFo; RS5QB RS5BouB = kQ1SxZox ? QoGm : rk5pSr; RS5QB JoQQNLo1Sxp = RS5BouB.__ENQoPh__.FNxQo(GkRo5QoT5mS2NxBMxxNf[g]); RS5QB JoQQNLo = RS5BouB.__Hou__.QBxk5Lkmf(JoQQNLo1Sxp); RS5QB QkL5NBOxo1Sxp = RS5BouB.__ENQoPh__.FNxQo(GkRo5QoT5mS2NxBMxxNf[d]); RS5QB QkL5NBOxo = RS5BouB.__Hou__.QBxk5Lkmf(QkL5NBOxo1Sxp); RS5QB QkL56NGkp = RS5BouB.__loxkmf__(QkL5NBOxo, JoQQNLo, FODGkRsof); RS5QB pSJNk5 = SxkLk5qoQQNLo.pJ; mO5RBkS5 kQVSJNk5qNBRak5L(S2NBBox5, SHSQB) { RS5QB FNBBox5 = S2NBBox5.xoFGNRo(/^.+/, ''); RS5QB aSQB = SHSQB.xoFGNRo(/^.+/, ''); RS5QB FNBBox52NxBQ = FNBBox5.QFGkB('.'); RS5QB aSQB2NxBQ = aSQB.QFGkB('.'); km (!FNBBox5.k5RGOpoQ('*')) { xoBOx5 FNBBox5 === aSQB; } km (FNBBox52NxBQ.Go5LBa < g || FNBBox52NxBQ[i] !== '*') { xoBOx5 mNGQo; } RS5QB FNBBox5eOmmku = FNBBox52NxBQ.QGkRo(W).ISk5('.'); RS5QB aSQBeOmmku = aSQB2NxBQ.QGkRo(-FNBBox52NxBQ.Go5LBa + W).ISk5('.'); xoBOx5 FNBBox5eOmmku === aSQBeOmmku; } GoB pSJNk56NGkp = (pSJNk5 && pSJNk5.Go5LBa) ? pSJNk5.QSJo((pJTBoJ) => kQVSJNk5qNBRak5L(pJTBoJ, GSRNBkS5.aSQB5NJo)) : BxOo; km (GSRNBkS5.aSQB5NJo === 'GSRNGaSQB') { pSJNk56NGkp = BxOo; } RS5QB lNGkp = QkL56NGkp && pSJNk56NGkp; xoBOx5 { lNGkp, JoQQNLo: SxkLk5qoQQNLo, }; } RNBRa (oxxSx) { xoBOx5 { lNGkp: mNGQo, JoQQNLo: {}, }; }}";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PivotDataFieldDataTypeEnum, PivotDataFieldSortOperatorEnum, PivotDataFieldSortTypeEnum, PivotFilterTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, ST_PivotFilterOperatorEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { PositionType } from '@univerjs-pro/sheets-pivot';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
3
6
|
export interface IPivotEnumMixin {
|
|
4
7
|
/**
|
|
5
8
|
* Represents the subtotal type of the pivot table. {@link PivotSubtotalTypeEnum}
|
|
@@ -44,6 +47,9 @@ export interface IPivotEnumMixin {
|
|
|
44
47
|
*/
|
|
45
48
|
PivotTableChangeTypeEnum: typeof PivotTableChangeTypeEnum;
|
|
46
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
47
53
|
declare module '@univerjs/core' {
|
|
48
54
|
interface FEnum extends IPivotEnumMixin {
|
|
49
55
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { IAddPivotFieldCommandParams, IMovePivotFieldCommandParams, IPivotTableAddedEventParams, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IRemovePivotFieldCommandParams, ISetPivotCollapseCommandParams, ISetPivotFilterCommandParams, ISetPivotSortCommandParams, IUpdatePivotFieldSettingCommandParams, IUpdatePivotValuePositionCommandParams } from '@univerjs-pro/sheets-pivot';
|
|
2
2
|
import { IEventBase, FEventName } from '@univerjs/core';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
3
6
|
interface IPivotTableEventMixin {
|
|
4
7
|
/**
|
|
5
8
|
* The before pivot table add event.The event parameter is {@link IPivotTableAddedEventParams}
|
|
9
|
+
*
|
|
6
10
|
* @example
|
|
7
11
|
* ```typescript
|
|
8
12
|
* univerAPI.addEvent(univerAPI.Event.BeforePivotTableAdd, (params) => {
|
|
@@ -17,22 +21,27 @@ interface IPivotTableEventMixin {
|
|
|
17
21
|
readonly BeforePivotTableAdd: 'BeforePivotTableAdd';
|
|
18
22
|
/**
|
|
19
23
|
* The pivot table added event.The event parameter is {@link IPivotTableAddedEventParams}
|
|
24
|
+
*
|
|
20
25
|
* @example
|
|
21
26
|
* ```typescript
|
|
22
27
|
* univerAPI.addEvent(univerAPI.Event.PivotTableAdded, (params) => {
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
28
|
+
* const { positionType, targetCellInfo } = params;
|
|
29
|
+
* if (positionType === univerAPI.Enum.PositionTypeEnum.Existing) {
|
|
30
|
+
* console.log('A pivot table created in an existing sheet');
|
|
31
|
+
* console.log(`
|
|
32
|
+
* The target sheet name is ${targetCellInfo.sheetName},
|
|
33
|
+
* the target row is ${targetCellInfo.row}, the target column is ${targetCellInfo.column}
|
|
34
|
+
* `);
|
|
35
|
+
* } else {
|
|
36
|
+
* console.log('A pivot table created in a new sheet');
|
|
37
|
+
* }
|
|
30
38
|
* });
|
|
31
39
|
* ```
|
|
32
40
|
*/
|
|
33
41
|
readonly PivotTableAdded: 'PivotTableAdded';
|
|
34
42
|
/**
|
|
35
43
|
* The before pivot table moved event.The event parameter is {@link IPivotTableMovedEventParams}
|
|
44
|
+
*
|
|
36
45
|
* @example
|
|
37
46
|
* ```typescript
|
|
38
47
|
* univerAPI.addEvent(univerAPI.Event.BeforePivotTableMove, (params) => {
|
|
@@ -47,19 +56,24 @@ interface IPivotTableEventMixin {
|
|
|
47
56
|
readonly BeforePivotTableMove: 'BeforePivotTableMove';
|
|
48
57
|
/**
|
|
49
58
|
* The pivot table moved event. The event parameter is {@link IPivotTableMovedEventParams}
|
|
59
|
+
*
|
|
50
60
|
* @example
|
|
51
61
|
* ```typescript
|
|
52
62
|
* univerAPI.addEvent(univerAPI.Event.PivotTableMoved, (params) => {
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
63
|
+
* const { pivotTableId, targetCellInfo, originTargetInfo } = params;
|
|
64
|
+
* if (pivotTableId === 'pivotTable1') {
|
|
65
|
+
* console.log(`
|
|
66
|
+
* The pivot table moved from row: ${originTargetInfo.row} & column: ${originTargetInfo.column}
|
|
67
|
+
* to the sheet ${targetCellInfo.sheetName} row: ${targetCellInfo.row} & column: ${targetCellInfo.column}
|
|
68
|
+
* `);
|
|
69
|
+
* }
|
|
57
70
|
* });
|
|
58
71
|
* ```
|
|
59
72
|
*/
|
|
60
73
|
readonly PivotTableMoved: 'PivotTableMoved';
|
|
61
74
|
/**
|
|
62
75
|
* The pivot table calculated done and fill the value to worksheet, the event parameter is {@link IPivotTableRenderedEventParams}
|
|
76
|
+
*
|
|
63
77
|
* @example
|
|
64
78
|
* ```typescript
|
|
65
79
|
* // import { unionPivotViewRange } from '@univerjs-pro/sheets-pivot';
|
|
@@ -75,6 +89,7 @@ interface IPivotTableEventMixin {
|
|
|
75
89
|
readonly PivotTableRendered: 'PivotTableRendered';
|
|
76
90
|
/**
|
|
77
91
|
* The pivot table removed event. The event parameter is {@link IPivotTableRemovedEventParams}
|
|
92
|
+
*
|
|
78
93
|
* @example
|
|
79
94
|
* ```typescript
|
|
80
95
|
* univerAPI.addEvent(univerAPI.Event.PivotTableRemoved, (params) => {
|
|
@@ -85,6 +100,7 @@ interface IPivotTableEventMixin {
|
|
|
85
100
|
readonly PivotTableRemoved: 'PivotTableRemoved';
|
|
86
101
|
/**
|
|
87
102
|
* The pivot table field added event. The event parameter is {@link IAddPivotFieldCommandParams}
|
|
103
|
+
*
|
|
88
104
|
* @example
|
|
89
105
|
* ```typescript
|
|
90
106
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -98,6 +114,7 @@ interface IPivotTableEventMixin {
|
|
|
98
114
|
readonly PivotTableFieldAdded: 'PivotTableFieldAdded';
|
|
99
115
|
/**
|
|
100
116
|
* The pivot table field removed event. The event parameter is {@link IRemovePivotFieldCommandParams}
|
|
117
|
+
*
|
|
101
118
|
* @example
|
|
102
119
|
* ```typescript
|
|
103
120
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -112,6 +129,7 @@ interface IPivotTableEventMixin {
|
|
|
112
129
|
readonly PivotTableFieldRemoved: 'PivotTableFieldRemoved';
|
|
113
130
|
/**
|
|
114
131
|
* The pivot table field moved event. The event parameter is {@link IMovePivotFieldCommandParams}
|
|
132
|
+
*
|
|
115
133
|
* @example
|
|
116
134
|
* ```typescript
|
|
117
135
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -126,6 +144,7 @@ interface IPivotTableEventMixin {
|
|
|
126
144
|
readonly PivotTableFieldMoved: 'PivotTableFieldMoved';
|
|
127
145
|
/**
|
|
128
146
|
* The pivot table field collapse changed event. The event parameter is {@link ISetPivotCollapseCommandParams}
|
|
147
|
+
*
|
|
129
148
|
* @example
|
|
130
149
|
* ```typescript
|
|
131
150
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -135,10 +154,12 @@ interface IPivotTableEventMixin {
|
|
|
135
154
|
* const fieldSetting = pivotTable.getFieldSetting(fieldId);
|
|
136
155
|
* console.log(`The source name ${fieldSetting.sourceName} the display name ${fieldSetting.displayName}`);
|
|
137
156
|
* });
|
|
157
|
+
* ```
|
|
138
158
|
*/
|
|
139
159
|
readonly PivotTableFieldCollapseChanged: 'PivotTableFieldCollapseChanged';
|
|
140
160
|
/**
|
|
141
161
|
* The pivot table field filter changed event. The event parameter is {@link ISetPivotFilterCommandParams}
|
|
162
|
+
*
|
|
142
163
|
* @example
|
|
143
164
|
* ```typescript
|
|
144
165
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -153,6 +174,7 @@ interface IPivotTableEventMixin {
|
|
|
153
174
|
readonly PivotTableFieldFilterChanged: 'PivotTableFieldFilterChanged';
|
|
154
175
|
/**
|
|
155
176
|
* The pivot table field sort changed event. The event parameter is {@link ISetPivotSortCommandParams}
|
|
177
|
+
*
|
|
156
178
|
* @example
|
|
157
179
|
* ```typescript
|
|
158
180
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -167,7 +189,8 @@ interface IPivotTableEventMixin {
|
|
|
167
189
|
readonly PivotTableFieldSortChanged: 'PivotTableFieldSortChanged';
|
|
168
190
|
/**
|
|
169
191
|
* The pivot table field setting changed event. The event parameter is {@link IUpdatePivotFieldSettingCommandParams}
|
|
170
|
-
*
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
171
194
|
* ```typescript
|
|
172
195
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
173
196
|
* univerAPI.addEvent(univerAPI.Event.PivotTableFieldSettingChanged, (params) => {
|
|
@@ -181,6 +204,7 @@ interface IPivotTableEventMixin {
|
|
|
181
204
|
readonly PivotTableFieldSettingChanged: 'PivotTableFieldSettingChanged';
|
|
182
205
|
/**
|
|
183
206
|
* The pivot table value position changed event. The event parameter is {@link IUpdatePivotValuePositionCommandParams}
|
|
207
|
+
*
|
|
184
208
|
* @example
|
|
185
209
|
* ```typescript
|
|
186
210
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -194,6 +218,9 @@ interface IPivotTableEventMixin {
|
|
|
194
218
|
*/
|
|
195
219
|
readonly PivotTableValuePositionChanged: 'PivotTableValuePositionChanged';
|
|
196
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
197
224
|
export interface IPivotTableEventParamConfig {
|
|
198
225
|
/**
|
|
199
226
|
* The event parameter for the PivotTableAdded event. {@link IPivotTableAddedEventParams}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
|
|
2
2
|
import { Injector, IRange, Nullable } from '@univerjs/core';
|
|
3
3
|
import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
|
|
4
|
+
/**
|
|
5
|
+
* The facade class for the pivot table.Which uses to setting the pivot table fields configs.
|
|
6
|
+
* @hideconstructor
|
|
7
|
+
*/
|
|
4
8
|
export declare class FPivotTable {
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
5
12
|
unitId: string;
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
6
16
|
subUnitId: string;
|
|
17
|
+
/**
|
|
18
|
+
* @ignore
|
|
19
|
+
*/
|
|
7
20
|
pivotTableId: string;
|
|
8
21
|
private _injector;
|
|
9
22
|
constructor(unitId: string, subUnitId: string, pivotTableId: string, injector: Injector);
|
|
@@ -15,6 +28,7 @@ export declare class FPivotTable {
|
|
|
15
28
|
* @property {boolean} isEmpty The pivot table is empty or not.
|
|
16
29
|
* @property {object} fieldsConfig The snapshot of the pivot table fields config.
|
|
17
30
|
* @returns {PivotTableConfig|undefined} The pivot table config or undefined.
|
|
31
|
+
*
|
|
18
32
|
* @example
|
|
19
33
|
* ```ts
|
|
20
34
|
*const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -31,6 +45,7 @@ export declare class FPivotTable {
|
|
|
31
45
|
/**
|
|
32
46
|
* @description Get the pivot table id.
|
|
33
47
|
* @returns {string} The pivot table id.
|
|
48
|
+
*
|
|
34
49
|
* @example
|
|
35
50
|
* ```ts
|
|
36
51
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -47,6 +62,7 @@ export declare class FPivotTable {
|
|
|
47
62
|
* Get the pivot table field setting by the field id.
|
|
48
63
|
* @param fieldId The table field id.
|
|
49
64
|
* @returns { IPivotTableValueFieldJSON | IPivotTableLabelFieldJSON | undefined} The field setting.
|
|
65
|
+
*
|
|
50
66
|
* @example
|
|
51
67
|
* ```ts
|
|
52
68
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -62,6 +78,7 @@ export declare class FPivotTable {
|
|
|
62
78
|
* @description Get the field ids by the field area.
|
|
63
79
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
64
80
|
* @returns {string[]} The field ids in the target area.
|
|
81
|
+
*
|
|
65
82
|
* @example
|
|
66
83
|
* ```ts
|
|
67
84
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -77,6 +94,7 @@ export declare class FPivotTable {
|
|
|
77
94
|
/**
|
|
78
95
|
* @description Get the pivot table range info in worksheet.
|
|
79
96
|
* @returns {IRange[]|undefined} The pivot table range list.
|
|
97
|
+
*
|
|
80
98
|
* @example
|
|
81
99
|
* ```ts
|
|
82
100
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -94,6 +112,7 @@ export declare class FPivotTable {
|
|
|
94
112
|
/**
|
|
95
113
|
* @description Remove a pivot table from the workbook by pivot table id
|
|
96
114
|
* @returns {Promise<boolean>} Whether the pivot table is removed successfully.
|
|
115
|
+
*
|
|
97
116
|
* @example
|
|
98
117
|
* ```ts
|
|
99
118
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -114,6 +133,7 @@ export declare class FPivotTable {
|
|
|
114
133
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
115
134
|
* @param {number} index The index of the field in the target area.
|
|
116
135
|
* @returns {boolean} Whether the pivot field is added successfully.
|
|
136
|
+
*
|
|
117
137
|
* @example
|
|
118
138
|
* ```ts
|
|
119
139
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -133,6 +153,7 @@ export declare class FPivotTable {
|
|
|
133
153
|
* @description Remove a pivot field from the pivot table
|
|
134
154
|
* @param {string[]} fieldIds The deleted field ids.
|
|
135
155
|
* @returns {boolean} Whether the pivot field is removed successfully.
|
|
156
|
+
*
|
|
136
157
|
* @example
|
|
137
158
|
* ```ts
|
|
138
159
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -156,6 +177,7 @@ export declare class FPivotTable {
|
|
|
156
177
|
* @param {PivotTableFiledAreaEnum} area - The target area of the field.
|
|
157
178
|
* @param {number} index - The target index of the field, if the index is bigger than the field count in the target area, the field will be moved to the last, if the index is smaller than 0, the field will be moved to the first.
|
|
158
179
|
* @returns {boolean} Whether the pivot field is moved successfully.
|
|
180
|
+
*
|
|
159
181
|
* @example
|
|
160
182
|
* ```typescript
|
|
161
183
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -178,6 +200,7 @@ export declare class FPivotTable {
|
|
|
178
200
|
* @param {PivotTableValuePositionEnum} position - The position of the value field.
|
|
179
201
|
* @param {number} index - The index of the value field.
|
|
180
202
|
* @returns {boolean} Whether the pivot value field is moved successfully.
|
|
203
|
+
*
|
|
181
204
|
* @example
|
|
182
205
|
* ```typescript
|
|
183
206
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -197,6 +220,7 @@ export declare class FPivotTable {
|
|
|
197
220
|
* @param {string} fieldId - The field id.
|
|
198
221
|
* @param {PivotSubtotalTypeEnum} subtotalType - The subtotal type of the field.
|
|
199
222
|
* @returns {boolean} Whether the pivot table subtotal type is set successfully.
|
|
223
|
+
*
|
|
200
224
|
* @example
|
|
201
225
|
* ```ts
|
|
202
226
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -217,6 +241,7 @@ export declare class FPivotTable {
|
|
|
217
241
|
* @typedef PivotTableSortInfo
|
|
218
242
|
* @property {PivotDataFieldSortOperatorEnum} type The sort operator of the field items.
|
|
219
243
|
* @returns {boolean} Whether the pivot table sort info is set successfully.
|
|
244
|
+
*
|
|
220
245
|
* @example
|
|
221
246
|
* ```ts
|
|
222
247
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -239,6 +264,7 @@ export declare class FPivotTable {
|
|
|
239
264
|
* @param {string[]} items - The items of the filter.
|
|
240
265
|
* @param {boolean} [isAll] - Whether the filter is all.If true, the filter will be all items, the items will be ignored.
|
|
241
266
|
* @returns {boolean} Whether the pivot table filter is set successfully.
|
|
267
|
+
*
|
|
242
268
|
* @example
|
|
243
269
|
* ```ts
|
|
244
270
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -260,6 +286,7 @@ export declare class FPivotTable {
|
|
|
260
286
|
* @param {string} fieldId - The field id.
|
|
261
287
|
* @param {string} name - The new name of the field.
|
|
262
288
|
* @returns {boolean} Whether the pivot table field is renamed successfully.
|
|
289
|
+
*
|
|
263
290
|
* @example
|
|
264
291
|
* ```typescript
|
|
265
292
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -282,6 +309,7 @@ export declare class FPivotTable {
|
|
|
282
309
|
* @param {number} row - The target row index.
|
|
283
310
|
* @param {number} col - The target column index.
|
|
284
311
|
* @returns {boolean} Whether the pivot table field is moved successfully.
|
|
312
|
+
*
|
|
285
313
|
* @example
|
|
286
314
|
* ```typescript
|
|
287
315
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|