@univerjs-pro/sheets-pivot 0.5.4 → 0.5.5-experimental.20250123-34738ff
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 +36 -12
- package/lib/types/facade/f-pivot-table.d.ts +27 -0
- package/lib/types/facade/f-workbook.d.ts +25 -19
- 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
|
-
function
|
|
1
|
+
function _0x464c(_0x35f5e3,_0x3e48d8){const _0x8520a3=_0x8520();return _0x464c=function(_0x464c92,_0x20fe37){_0x464c92=_0x464c92-0xa7;let _0x40199c=_0x8520a3[_0x464c92];return _0x40199c;},_0x464c(_0x35f5e3,_0x3e48d8);}const _0x23a72e=_0x464c;(function(_0x6782a9,_0xba0c9f){const _0x1f71e1=_0x464c,_0x1f21d1=_0x6782a9();while(!![]){try{const _0x392c53=-parseInt(_0x1f71e1(0xa7))/0x1*(-parseInt(_0x1f71e1(0xb8))/0x2)+parseInt(_0x1f71e1(0xbe))/0x3*(-parseInt(_0x1f71e1(0xb4))/0x4)+parseInt(_0x1f71e1(0xae))/0x5+-parseInt(_0x1f71e1(0xb1))/0x6*(parseInt(_0x1f71e1(0xab))/0x7)+-parseInt(_0x1f71e1(0xb5))/0x8+-parseInt(_0x1f71e1(0xc1))/0x9+parseInt(_0x1f71e1(0xb7))/0xa;if(_0x392c53===_0xba0c9f)break;else _0x1f21d1['push'](_0x1f21d1['shift']());}catch(_0x235a76){_0x1f21d1['push'](_0x1f21d1['shift']());}}}(_0x8520,0x44bbe));const locale={'sheets-pivot':{'blankValue':_0x23a72e(0xac),'columnName':_0x23a72e(0xb3),'subTotalText':_0x23a72e(0xa9),'grandTotalText':_0x23a72e(0xb0),'valueText':_0x23a72e(0xbd),'averageName':_0x23a72e(0xbb),'countName':'Count\x20of\x20','countNumsName':_0x23a72e(0xad),'maxName':_0x23a72e(0xb6),'minName':_0x23a72e(0xaf),'productName':_0x23a72e(0xbc),'stdDevName':'StdDev\x20of\x20','stdDevpName':_0x23a72e(0xb9),'sumName':_0x23a72e(0xba),'varName':_0x23a72e(0xb2),'varpName':'Varp\x20of\x20','subTotal':_0x23a72e(0xbf),'grandTotal':_0x23a72e(0xb0),'value':_0x23a72e(0xc2),'blank':_0x23a72e(0xc3),'emptyPivot':{'filter':_0x23a72e(0xc0),'row':'Row','column':_0x23a72e(0xaa),'values':_0x23a72e(0xa8)}}};function _0x8520(){const _0x4d8c7f=['Product\x20of\x20','Value','459879Yhlzxn','Subtotal','Filter','1638594nExGRm','value','blank','365BNnxSN','Values','Total','Column','591689ICOHhz','(Blank)','Count\x20of\x20','2727295TuFoao','Min\x20of\x20','Grand\x20Total','6KlbdpI','Var\x20of\x20','Column\x20','12xVOKOn','653896dvHvsD','Max\x20of\x20','2836740nGTbmT','1428QbSKPN','StdDevp\x20of\x20','Sum\x20of\x20','Average\x20of\x20'];_0x8520=function(){return _0x4d8c7f;};return _0x8520();}export{locale as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xaa3c(){const _0x3ce582=['میانگین\x20از\x20','257882GqmZrl','539WSwNDI','تعداد\x20از\x20','کمترین\x20از\x20','952530sKbGPG','9ClaUHZ','2Hbxhtt','مقدار','ستون\x20','تعداد\x20اعداد\x20از\x20','564670JbPQyH','8868PziqkC','واریانس\x20کلی\x20از\x20','سطر','59988ImIsVt','بیشترین\x20از\x20','ضرب\x20از\x20','7cySbFR','مقادیر','جمع\x20از\x20','خالی','4556416yZpBYf','(خالی)','426GOfRcm','2789586OWUmQe','جمع','انحراف\x20معیار\x20کلی\x20از\x20','ستون','واریانس\x20از\x20'];_0xaa3c=function(){return _0x3ce582;};return _0xaa3c();}const _0x59d5b5=_0x2388;function _0x2388(_0x28372c,_0x5c57d5){const _0xaa3c1b=_0xaa3c();return _0x2388=function(_0x2388ad,_0xbcd98d){_0x2388ad=_0x2388ad-0x10c;let _0x438b4f=_0xaa3c1b[_0x2388ad];return _0x438b4f;},_0x2388(_0x28372c,_0x5c57d5);}(function(_0x3671dd,_0x3fd499){const _0x251ef9=_0x2388,_0x400281=_0x3671dd();while(!![]){try{const _0x18816a=-parseInt(_0x251ef9(0x119))/0x1*(-parseInt(_0x251ef9(0x113))/0x2)+-parseInt(_0x251ef9(0x10c))/0x3*(parseInt(_0x251ef9(0x11e))/0x4)+parseInt(_0x251ef9(0x117))/0x5+-parseInt(_0x251ef9(0x10d))/0x6*(-parseInt(_0x251ef9(0x124))/0x7)+-parseInt(_0x251ef9(0x128))/0x8+-parseInt(_0x251ef9(0x118))/0x9*(-parseInt(_0x251ef9(0x11d))/0xa)+-parseInt(_0x251ef9(0x114))/0xb*(-parseInt(_0x251ef9(0x121))/0xc);if(_0x18816a===_0x3fd499)break;else _0x400281['push'](_0x400281['shift']());}catch(_0x44b0ce){_0x400281['push'](_0x400281['shift']());}}}(_0xaa3c,0x50a83));const locale={'sheets-pivot':{'blankValue':_0x59d5b5(0x129),'columnName':_0x59d5b5(0x11b),'subTotalText':_0x59d5b5(0x10e),'grandTotalText':'کل','valueText':_0x59d5b5(0x11a),'averageName':_0x59d5b5(0x112),'countName':_0x59d5b5(0x115),'countNumsName':_0x59d5b5(0x11c),'maxName':_0x59d5b5(0x122),'minName':_0x59d5b5(0x116),'productName':_0x59d5b5(0x123),'stdDevName':'انحراف\x20معیار\x20از\x20','stdDevpName':_0x59d5b5(0x10f),'sumName':_0x59d5b5(0x126),'varName':_0x59d5b5(0x111),'varpName':_0x59d5b5(0x11f),'subTotal':_0x59d5b5(0x10e),'grandTotal':'کل','value':_0x59d5b5(0x11a),'blank':_0x59d5b5(0x127),'emptyPivot':{'filter':'فیلتر','row':_0x59d5b5(0x120),'column':_0x59d5b5(0x110),'values':_0x59d5b5(0x125)}}};export{locale as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3127(){const _0x6a1d27=['Total','8641792deVzIQ','Varp\x20of\x20','30OtSnRI','Count\x20of\x20','Min\x20of\x20','Column','Value','345998uHVkyA','Average\x20of\x20','7dlvsSz','Row','Sum\x20of\x20','1890vIjqkv','StdDevp\x20of\x20','18YRQYbr','2608785qOBTsj','(Blank)','1036638PSSlSD','Column\x20','Subtotal','19979080JFgumP','value','11644QjAHOl','Grand\x20Total','Values','1903074sbbHhA'];_0x3127=function(){return _0x6a1d27;};return _0x3127();}const _0x555194=_0x1042;function _0x1042(_0x4a82c8,_0x190978){const _0x31271f=_0x3127();return _0x1042=function(_0x104263,_0xf77204){_0x104263=_0x104263-0x136;let _0x3cbf2a=_0x31271f[_0x104263];return _0x3cbf2a;},_0x1042(_0x4a82c8,_0x190978);}(function(_0x1a179b,_0x5f24f7){const _0x56cfc7=_0x1042,_0x41b282=_0x1a179b();while(!![]){try{const _0x249d49=-parseInt(_0x56cfc7(0x13a))/0x1+-parseInt(_0x56cfc7(0x14b))/0x2*(-parseInt(_0x56cfc7(0x137))/0x3)+-parseInt(_0x56cfc7(0x13f))/0x4*(parseInt(_0x56cfc7(0x150))/0x5)+-parseInt(_0x56cfc7(0x142))/0x6*(parseInt(_0x56cfc7(0x14d))/0x7)+parseInt(_0x56cfc7(0x144))/0x8+parseInt(_0x56cfc7(0x138))/0x9*(-parseInt(_0x56cfc7(0x146))/0xa)+parseInt(_0x56cfc7(0x13d))/0xb;if(_0x249d49===_0x5f24f7)break;else _0x41b282['push'](_0x41b282['shift']());}catch(_0x131e2f){_0x41b282['push'](_0x41b282['shift']());}}}(_0x3127,0x951a8));const locale$1={'sheets-pivot':{'blankValue':_0x555194(0x139),'columnName':_0x555194(0x13b),'subTotalText':_0x555194(0x143),'grandTotalText':_0x555194(0x140),'valueText':_0x555194(0x14a),'averageName':_0x555194(0x14c),'countName':'Count\x20of\x20','countNumsName':_0x555194(0x147),'maxName':'Max\x20of\x20','minName':_0x555194(0x148),'productName':'Product\x20of\x20','stdDevName':'StdDev\x20of\x20','stdDevpName':_0x555194(0x136),'sumName':_0x555194(0x14f),'varName':'Var\x20of\x20','varpName':_0x555194(0x145),'subTotal':_0x555194(0x13c),'grandTotal':_0x555194(0x140),'value':_0x555194(0x13e),'blank':'blank','emptyPivot':{'filter':'Filter','row':_0x555194(0x14e),'column':_0x555194(0x149),'values':_0x555194(0x141)}}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x16c35c=_0x42f4;function _0x5a24(){const _0x2fabc6=['Среднее\x20по\x20','1599102tyvNNm','55bqhFKl','714278SQfWrU','2750680DoaHxJ','Стандартное\x20отклонение\x20по\x20','Общий\x20итог','Столбец\x20','14676EDhJKm','Общая\x20дисперсия\x20по\x20','340531xZdAqo','4hNJbwO','1445190iNAkVO','889fxfujc','Число\x20по\x20','Произведение\x20по\x20','16JPBpHS','Значение','Промежуточный\x20итог','(Пусто)','Общее\x20стандартное\x20отклонение\x20по\x20','Количество\x20по\x20','Строка','Сумма\x20по\x20','Минимум\x20по\x20','Пусто','54297WnwucV','Дисперсия\x20по\x20'];_0x5a24=function(){return _0x2fabc6;};return _0x5a24();}function _0x42f4(_0x38f7f3,_0x59f8ba){const _0x5a24af=_0x5a24();return _0x42f4=function(_0x42f400,_0xb199d4){_0x42f400=_0x42f400-0x1a1;let _0x511c8b=_0x5a24af[_0x42f400];return _0x511c8b;},_0x42f4(_0x38f7f3,_0x59f8ba);}(function(_0x1e5887,_0x43386c){const _0x5b5806=_0x42f4,_0x13f67e=_0x1e5887();while(!![]){try{const _0x5a4b0a=-parseInt(_0x5b5806(0x1b4))/0x1+-parseInt(_0x5b5806(0x1ad))/0x2+parseInt(_0x5b5806(0x1ab))/0x3+-parseInt(_0x5b5806(0x1b5))/0x4*(parseInt(_0x5b5806(0x1ae))/0x5)+-parseInt(_0x5b5806(0x1b2))/0x6*(-parseInt(_0x5b5806(0x1b7))/0x7)+parseInt(_0x5b5806(0x1ba))/0x8*(-parseInt(_0x5b5806(0x1a8))/0x9)+-parseInt(_0x5b5806(0x1b6))/0xa*(-parseInt(_0x5b5806(0x1ac))/0xb);if(_0x5a4b0a===_0x43386c)break;else _0x13f67e['push'](_0x13f67e['shift']());}catch(_0x44619b){_0x13f67e['push'](_0x13f67e['shift']());}}}(_0x5a24,0x4acdf));const locale={'sheets-pivot':{'blankValue':_0x16c35c(0x1a1),'columnName':_0x16c35c(0x1b1),'subTotalText':_0x16c35c(0x1bc),'grandTotalText':_0x16c35c(0x1b0),'valueText':'Значение','averageName':_0x16c35c(0x1aa),'countName':_0x16c35c(0x1a3),'countNumsName':_0x16c35c(0x1b8),'maxName':'Максимум\x20по\x20','minName':_0x16c35c(0x1a6),'productName':_0x16c35c(0x1b9),'stdDevName':_0x16c35c(0x1af),'stdDevpName':_0x16c35c(0x1a2),'sumName':_0x16c35c(0x1a5),'varName':_0x16c35c(0x1a9),'varpName':_0x16c35c(0x1b3),'subTotal':'Промежуточный\x20итог','grandTotal':_0x16c35c(0x1b0),'value':_0x16c35c(0x1bb),'blank':_0x16c35c(0x1a7),'emptyPivot':{'filter':'Фильтр','row':_0x16c35c(0x1a4),'column':'Столбец','values':_0x16c35c(0x1bb)}}};export{locale as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4e82bb=_0x5ca5;(function(_0x4a6d2c,_0xa7f798){const _0x5c9d65=_0x5ca5,_0xca7662=_0x4a6d2c();while(!![]){try{const _0x21d8e0=parseInt(_0x5c9d65(0x149))/0x1+parseInt(_0x5c9d65(0x14e))/0x2+-parseInt(_0x5c9d65(0x14c))/0x3*(-parseInt(_0x5c9d65(0x13c))/0x4)+-parseInt(_0x5c9d65(0x14b))/0x5+-parseInt(_0x5c9d65(0x13b))/0x6+-parseInt(_0x5c9d65(0x140))/0x7*(-parseInt(_0x5c9d65(0x147))/0x8)+parseInt(_0x5c9d65(0x145))/0x9;if(_0x21d8e0===_0xa7f798)break;else _0xca7662['push'](_0xca7662['shift']());}catch(_0x123b10){_0xca7662['push'](_0xca7662['shift']());}}}(_0x23e4,0x36737));function _0x5ca5(_0x43811c,_0x137cc5){const _0x23e4ab=_0x23e4();return _0x5ca5=function(_0x5ca57b,_0x2871e2){_0x5ca57b=_0x5ca57b-0x13b;let _0x443abf=_0x23e4ab[_0x5ca57b];return _0x443abf;},_0x5ca5(_0x43811c,_0x137cc5);}const locale={'sheets-pivot':{'blankValue':_0x4e82bb(0x14d),'columnName':'Cột\x20','subTotalText':'Tổng\x20phụ','grandTotalText':_0x4e82bb(0x14f),'valueText':_0x4e82bb(0x13f),'averageName':_0x4e82bb(0x144),'countName':'Số\x20lượng:','countNumsName':_0x4e82bb(0x146),'maxName':_0x4e82bb(0x148),'minName':_0x4e82bb(0x13e),'productName':_0x4e82bb(0x141),'stdDevName':'Độ\x20lệch\x20chuẩn:','stdDevpName':'Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','sumName':_0x4e82bb(0x142),'varName':_0x4e82bb(0x13d),'varpName':'Phương\x20sai\x20toàn\x20phần:','subTotal':_0x4e82bb(0x14a),'grandTotal':_0x4e82bb(0x14f),'value':_0x4e82bb(0x13f),'blank':'Trống','emptyPivot':{'filter':'Lọc','row':'Hàng','column':_0x4e82bb(0x143),'values':'Giá\x20trị'}}};function _0x23e4(){const _0x2764ca=['569700AnUgfC','Tổng\x20cộng','1536570kNJWta','32VCNqSm','Phương\x20sai:','Giá\x20trị\x20tối\x20thiểu:','Giá\x20trị','50379vozgfJ','Tích:','Tổng:','Cột','Giá\x20trị\x20trung\x20bình:','695124YqiIxV','Số\x20lượng\x20số:','72iqmXnn','Giá\x20trị\x20tối\x20đa:','330531ndRHhB','Tổng\x20phụ','1845360krHWiE','34053cWNHrm','(Trống)'];_0x23e4=function(){return _0x2764ca;};return _0x23e4();}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x375b(){const _0x994d6a=['2526608xrxGKg','1162365KENfin','计数项:','784818wKgqUi','103477wJEJNi','总体方差项:','求和项:','47272VdZwaU','1239498ZFqAwC','最大值项:','1695116SLCOht','3TcemHM','标准偏差项:','最小值项:','总体标准偏差项:','1566PZhsYT','数值计数项:'];_0x375b=function(){return _0x994d6a;};return _0x375b();}const _0x1ea6cc=_0x55a9;(function(_0x2b9438,_0x5a6da0){const _0x5b3cbb=_0x55a9,_0x322282=_0x2b9438();while(!![]){try{const _0x174da7=parseInt(_0x5b3cbb(0x172))/0x1+parseInt(_0x5b3cbb(0x182))/0x2+-parseInt(_0x5b3cbb(0x179))/0x3*(-parseInt(_0x5b3cbb(0x178))/0x4)+-parseInt(_0x5b3cbb(0x180))/0x5+parseInt(_0x5b3cbb(0x176))/0x6+parseInt(_0x5b3cbb(0x17f))/0x7+-parseInt(_0x5b3cbb(0x175))/0x8*(parseInt(_0x5b3cbb(0x17d))/0x9);if(_0x174da7===_0x5a6da0)break;else _0x322282['push'](_0x322282['shift']());}catch(_0x2c62ab){_0x322282['push'](_0x322282['shift']());}}}(_0x375b,0x374f9));const locale={'sheets-pivot':{'blankValue':'(空白)','columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':'平均值项:','countName':_0x1ea6cc(0x181),'countNumsName':_0x1ea6cc(0x17e),'maxName':_0x1ea6cc(0x177),'minName':_0x1ea6cc(0x17b),'productName':'乘积项:','stdDevName':_0x1ea6cc(0x17a),'stdDevpName':_0x1ea6cc(0x17c),'sumName':_0x1ea6cc(0x174),'varName':'方差项:','varpName':_0x1ea6cc(0x173),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};function _0x55a9(_0x147a0f,_0x4764c3){const _0x375bd3=_0x375b();return _0x55a9=function(_0x55a952,_0x4d6b3d){_0x55a952=_0x55a952-0x172;let _0x343282=_0x375bd3[_0x55a952];return _0x343282;},_0x55a9(_0x147a0f,_0x4764c3);}export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x24de(){const _0xcd5911=['80MCDZSx','計數項:','275308VuFHPl','212BcTSeq','68484bKGPDk','64EqkseT','12095qSxQFw','乘積項:','175335VDdQNS','3359auqjVO','總體標準差項:','(空白)','平均值項:','7glBEYY','總體方差項:','813630hBtnrk','最小值項:','314604sWIGkd','2KXgupV','數值計數項:'];_0x24de=function(){return _0xcd5911;};return _0x24de();}const _0x2b273d=_0x4485;function _0x4485(_0x2ba47e,_0x1ad2cd){const _0x24de80=_0x24de();return _0x4485=function(_0x44852b,_0x2f605a){_0x44852b=_0x44852b-0x14b;let _0x3c015b=_0x24de80[_0x44852b];return _0x3c015b;},_0x4485(_0x2ba47e,_0x1ad2cd);}(function(_0x1b48a8,_0xe0856){const _0xa00c63=_0x4485,_0x9b9cd0=_0x1b48a8();while(!![]){try{const _0x1b7566=-parseInt(_0xa00c63(0x150))/0x1+parseInt(_0xa00c63(0x159))/0x2*(parseInt(_0xa00c63(0x14f))/0x3)+-parseInt(_0xa00c63(0x15e))/0x4*(parseInt(_0xa00c63(0x14d))/0x5)+parseInt(_0xa00c63(0x156))/0x6*(parseInt(_0xa00c63(0x154))/0x7)+parseInt(_0xa00c63(0x14c))/0x8*(parseInt(_0xa00c63(0x158))/0x9)+-parseInt(_0xa00c63(0x15b))/0xa*(parseInt(_0xa00c63(0x15d))/0xb)+parseInt(_0xa00c63(0x14b))/0xc;if(_0x1b7566===_0xe0856)break;else _0x9b9cd0['push'](_0x9b9cd0['shift']());}catch(_0x3a6b9d){_0x9b9cd0['push'](_0x9b9cd0['shift']());}}}(_0x24de,0x2409f));const locale={'sheets-pivot':{'blankValue':_0x2b273d(0x152),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x2b273d(0x153),'countName':_0x2b273d(0x15c),'countNumsName':_0x2b273d(0x15a),'maxName':'最大值項:','minName':_0x2b273d(0x157),'productName':_0x2b273d(0x14e),'stdDevName':'標準差項:','stdDevpName':_0x2b273d(0x151),'sumName':'求和項:','varName':'方差項:','varpName':_0x2b273d(0x155),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};export{locale as default};
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
w: string;
|
|
14
|
-
s: string;
|
|
15
|
-
F: string;
|
|
16
|
-
C: string;
|
|
17
|
-
c: string;
|
|
18
|
-
G: string;
|
|
19
|
-
Y: string;
|
|
20
|
-
y: string;
|
|
21
|
-
S: string;
|
|
12
|
+
H: string;
|
|
22
13
|
r: string;
|
|
23
|
-
x: string;
|
|
24
|
-
V: string;
|
|
25
|
-
f: string;
|
|
26
|
-
A: string;
|
|
27
|
-
P: string;
|
|
28
|
-
B: string;
|
|
29
14
|
a: string;
|
|
30
|
-
h: string;
|
|
31
|
-
W: string;
|
|
32
|
-
E: string;
|
|
33
|
-
M: string;
|
|
34
|
-
L: string;
|
|
35
|
-
j: string;
|
|
36
|
-
U: string;
|
|
37
|
-
i: string;
|
|
38
15
|
u: string;
|
|
39
|
-
N: string;
|
|
40
|
-
J: string;
|
|
41
|
-
g: string;
|
|
42
|
-
H: string;
|
|
43
16
|
n: string;
|
|
44
|
-
|
|
17
|
+
K: string;
|
|
45
18
|
Q: string;
|
|
19
|
+
z: string;
|
|
20
|
+
B: string;
|
|
21
|
+
A: string;
|
|
22
|
+
w: string;
|
|
23
|
+
F: string;
|
|
24
|
+
P: string;
|
|
25
|
+
E: string;
|
|
26
|
+
W: string;
|
|
27
|
+
d: string;
|
|
28
|
+
T: string;
|
|
46
29
|
R: string;
|
|
47
|
-
|
|
30
|
+
c: string;
|
|
31
|
+
o: string;
|
|
32
|
+
g: string;
|
|
33
|
+
b: string;
|
|
34
|
+
V: string;
|
|
35
|
+
e: string;
|
|
36
|
+
l: string;
|
|
37
|
+
j: string;
|
|
38
|
+
Z: string;
|
|
39
|
+
y: string;
|
|
48
40
|
O: string;
|
|
49
|
-
|
|
41
|
+
I: string;
|
|
42
|
+
q: string;
|
|
43
|
+
t: string;
|
|
50
44
|
k: string;
|
|
51
|
-
d: string;
|
|
52
45
|
D: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
i: string;
|
|
47
|
+
Y: string;
|
|
48
|
+
x: string;
|
|
49
|
+
U: string;
|
|
50
|
+
h: string;
|
|
58
51
|
p: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
S: string;
|
|
53
|
+
C: string;
|
|
54
|
+
s: string;
|
|
55
|
+
L: string;
|
|
56
|
+
v: string;
|
|
57
|
+
G: string;
|
|
58
|
+
J: string;
|
|
59
|
+
M: string;
|
|
62
60
|
m: string;
|
|
63
|
-
|
|
61
|
+
N: string;
|
|
62
|
+
f: string;
|
|
63
|
+
X: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "Pjgwld4g F0weObld4g(cdw0g50, bjAcdwU0O) { leO { w4g5l cdw0g50YgP4s7elIee7O = cdw0g50.5bcdl('-'); w4g5l 4edEdgp0557E0 = xGCS.b7e50(7l4A(cdw0g50YgP4s7elIee7O[r])); dP (!4edEdgp0557E0.jF) { 4edEdgp0557E0.jF = SjoA0e(cdw0g50YgP4s7elIee7O[u]); } w4g5l d5m4eR0e = lOb04P m4eR0eDc4A7cGw4b0 !== 'jgF0Pdg0F' && 50cP dg5l7gw04P m4eR0eDc4A7cGw4b0; w4g5l w4gl06l = d5m4eR0e ? 50cP : ydgF4y; w4g5l o0557E0m4eF = w4gl06l.__q750Ku__.b7e50(cdw0g50YgP4s7elIee7O[r]); w4g5l o0557E0 = w4gl06l.__i06__.5ledgEdPO(o0557E0m4eF); w4g5l 5dEg7lje0m4eF = w4gl06l.__q750Ku__.b7e50(cdw0g50YgP4s7elIee7O[a]); w4g5l 5dEg7lje0 = w4gl06l.__i06__.5ledgEdPO(5dEg7lje0m4eF); w4g5l 5dEgM7cdF = w4gl06l.__Z0edPO__(5dEg7lje0, o0557E0, bjAcdwU0O); w4g5l F4o7dg = 4edEdgp0557E0.Fo; Pjgwld4g d534o7dgp7lwWdgE(4s7ll0eg, 4i45l) { w4g5l b7ll0eg = 4s7ll0eg.e0bc7w0(/^.+/, ''); w4g5l W45l = 4i45l.e0bc7w0(/^.+/, ''); w4g5l b7ll0egs7el5 = b7ll0eg.5bcdl('.'); w4g5l W45ls7el5 = W45l.5bcdl('.'); dP (!b7ll0eg.dgwcjF05('*')) { e0ljeg b7ll0eg === W45l; } dP (b7ll0egs7el5.c0gElW < r || b7ll0egs7el5[9] !== '*') { e0ljeg P7c50; } w4g5l b7ll0egGjPPd6 = b7ll0egs7el5.5cdw0(H).T4dg('.'); w4g5l W45lGjPPd6 = W45ls7el5.5cdw0(-b7ll0egs7el5.c0gElW + H).T4dg('.'); e0ljeg b7ll0egGjPPd6 === W45lGjPPd6; } c0l F4o7dgM7cdF = (F4o7dg && F4o7dg.c0gElW) ? F4o7dg.54o0((FoYl0o) => d534o7dgp7lwWdgE(FoYl0o, c4w7ld4g.W45lg7o0)) : lej0; dP (c4w7ld4g.W45lg7o0 === 'c4w7cW45l') { F4o7dgM7cdF = lej0; } w4g5l Z7cdF = 5dEgM7cdF && F4o7dgM7cdF; e0ljeg { Z7cdF, o0557E0: 4edEdgp0557E0, }; } w7lwW (0ee4e) { e0ljeg { Z7cdF: P7c50, o0557E0: {}, }; }}";
|
|
@@ -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();
|
|
@@ -1,9 +1,21 @@
|
|
|
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
|
+
* @hideconstructor
|
|
6
|
+
*/
|
|
4
7
|
export declare class FPivotTable {
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
5
11
|
unitId: string;
|
|
12
|
+
/**
|
|
13
|
+
* @ignore
|
|
14
|
+
*/
|
|
6
15
|
subUnitId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
7
19
|
pivotTableId: string;
|
|
8
20
|
private _injector;
|
|
9
21
|
constructor(unitId: string, subUnitId: string, pivotTableId: string, injector: Injector);
|
|
@@ -15,6 +27,7 @@ export declare class FPivotTable {
|
|
|
15
27
|
* @property {boolean} isEmpty The pivot table is empty or not.
|
|
16
28
|
* @property {object} fieldsConfig The snapshot of the pivot table fields config.
|
|
17
29
|
* @returns {PivotTableConfig|undefined} The pivot table config or undefined.
|
|
30
|
+
*
|
|
18
31
|
* @example
|
|
19
32
|
* ```ts
|
|
20
33
|
*const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -31,6 +44,7 @@ export declare class FPivotTable {
|
|
|
31
44
|
/**
|
|
32
45
|
* @description Get the pivot table id.
|
|
33
46
|
* @returns {string} The pivot table id.
|
|
47
|
+
*
|
|
34
48
|
* @example
|
|
35
49
|
* ```ts
|
|
36
50
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -47,6 +61,7 @@ export declare class FPivotTable {
|
|
|
47
61
|
* Get the pivot table field setting by the field id.
|
|
48
62
|
* @param fieldId The table field id.
|
|
49
63
|
* @returns { IPivotTableValueFieldJSON | IPivotTableLabelFieldJSON | undefined} The field setting.
|
|
64
|
+
*
|
|
50
65
|
* @example
|
|
51
66
|
* ```ts
|
|
52
67
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -62,6 +77,7 @@ export declare class FPivotTable {
|
|
|
62
77
|
* @description Get the field ids by the field area.
|
|
63
78
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
64
79
|
* @returns {string[]} The field ids in the target area.
|
|
80
|
+
*
|
|
65
81
|
* @example
|
|
66
82
|
* ```ts
|
|
67
83
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -77,6 +93,7 @@ export declare class FPivotTable {
|
|
|
77
93
|
/**
|
|
78
94
|
* @description Get the pivot table range info in worksheet.
|
|
79
95
|
* @returns {IRange[]|undefined} The pivot table range list.
|
|
96
|
+
*
|
|
80
97
|
* @example
|
|
81
98
|
* ```ts
|
|
82
99
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -94,6 +111,7 @@ export declare class FPivotTable {
|
|
|
94
111
|
/**
|
|
95
112
|
* @description Remove a pivot table from the workbook by pivot table id
|
|
96
113
|
* @returns {Promise<boolean>} Whether the pivot table is removed successfully.
|
|
114
|
+
*
|
|
97
115
|
* @example
|
|
98
116
|
* ```ts
|
|
99
117
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -114,6 +132,7 @@ export declare class FPivotTable {
|
|
|
114
132
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
115
133
|
* @param {number} index The index of the field in the target area.
|
|
116
134
|
* @returns {boolean} Whether the pivot field is added successfully.
|
|
135
|
+
*
|
|
117
136
|
* @example
|
|
118
137
|
* ```ts
|
|
119
138
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -133,6 +152,7 @@ export declare class FPivotTable {
|
|
|
133
152
|
* @description Remove a pivot field from the pivot table
|
|
134
153
|
* @param {string[]} fieldIds The deleted field ids.
|
|
135
154
|
* @returns {boolean} Whether the pivot field is removed successfully.
|
|
155
|
+
*
|
|
136
156
|
* @example
|
|
137
157
|
* ```ts
|
|
138
158
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -156,6 +176,7 @@ export declare class FPivotTable {
|
|
|
156
176
|
* @param {PivotTableFiledAreaEnum} area - The target area of the field.
|
|
157
177
|
* @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
178
|
* @returns {boolean} Whether the pivot field is moved successfully.
|
|
179
|
+
*
|
|
159
180
|
* @example
|
|
160
181
|
* ```typescript
|
|
161
182
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -178,6 +199,7 @@ export declare class FPivotTable {
|
|
|
178
199
|
* @param {PivotTableValuePositionEnum} position - The position of the value field.
|
|
179
200
|
* @param {number} index - The index of the value field.
|
|
180
201
|
* @returns {boolean} Whether the pivot value field is moved successfully.
|
|
202
|
+
*
|
|
181
203
|
* @example
|
|
182
204
|
* ```typescript
|
|
183
205
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -197,6 +219,7 @@ export declare class FPivotTable {
|
|
|
197
219
|
* @param {string} fieldId - The field id.
|
|
198
220
|
* @param {PivotSubtotalTypeEnum} subtotalType - The subtotal type of the field.
|
|
199
221
|
* @returns {boolean} Whether the pivot table subtotal type is set successfully.
|
|
222
|
+
*
|
|
200
223
|
* @example
|
|
201
224
|
* ```ts
|
|
202
225
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -217,6 +240,7 @@ export declare class FPivotTable {
|
|
|
217
240
|
* @typedef PivotTableSortInfo
|
|
218
241
|
* @property {PivotDataFieldSortOperatorEnum} type The sort operator of the field items.
|
|
219
242
|
* @returns {boolean} Whether the pivot table sort info is set successfully.
|
|
243
|
+
*
|
|
220
244
|
* @example
|
|
221
245
|
* ```ts
|
|
222
246
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -239,6 +263,7 @@ export declare class FPivotTable {
|
|
|
239
263
|
* @param {string[]} items - The items of the filter.
|
|
240
264
|
* @param {boolean} [isAll] - Whether the filter is all.If true, the filter will be all items, the items will be ignored.
|
|
241
265
|
* @returns {boolean} Whether the pivot table filter is set successfully.
|
|
266
|
+
*
|
|
242
267
|
* @example
|
|
243
268
|
* ```ts
|
|
244
269
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -260,6 +285,7 @@ export declare class FPivotTable {
|
|
|
260
285
|
* @param {string} fieldId - The field id.
|
|
261
286
|
* @param {string} name - The new name of the field.
|
|
262
287
|
* @returns {boolean} Whether the pivot table field is renamed successfully.
|
|
288
|
+
*
|
|
263
289
|
* @example
|
|
264
290
|
* ```typescript
|
|
265
291
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -282,6 +308,7 @@ export declare class FPivotTable {
|
|
|
282
308
|
* @param {number} row - The target row index.
|
|
283
309
|
* @param {number} col - The target column index.
|
|
284
310
|
* @returns {boolean} Whether the pivot table field is moved successfully.
|
|
311
|
+
*
|
|
285
312
|
* @example
|
|
286
313
|
* ```typescript
|
|
287
314
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|