@univerjs-pro/sheets-pivot 0.6.1 → 0.6.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/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/reset-pivot-fields-config.command.d.ts +25 -0
- package/lib/types/commands/command/set-pivot-fields-config.command.d.ts +25 -0
- package/lib/types/commands/command/set-pivot-value-filter.command.d.ts +25 -0
- package/lib/types/commands/mutations/change-apply-util.d.ts +2 -1
- package/lib/types/commands/mutations/set-pivot-value-filter.mutation.d.ts +3 -0
- package/lib/types/common/const.d.ts +39 -39
- package/lib/types/const/const.d.ts +4 -1
- package/lib/types/const/type.d.ts +26 -1
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-pivot-table.d.ts +85 -2
- package/lib/types/facade/f-workbook.d.ts +1 -1
- package/lib/types/facade/f-worksheet.d.ts +31 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +8 -1
- package/lib/types/util.d.ts +3 -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 +12 -12
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ed061=_0x5ad0;function _0x5ad0(_0x526f6,_0x33153a){const _0x3da2ef=_0x3da2();return _0x5ad0=function(_0x5ad09b,_0x37bcc2){_0x5ad09b=_0x5ad09b-0x89;let _0xba9001=_0x3da2ef[_0x5ad09b];return _0xba9001;},_0x5ad0(_0x526f6,_0x33153a);}(function(_0x2489cf,_0x59d606){const _0x598b95=_0x5ad0,_0x114d2f=_0x2489cf();while(!![]){try{const _0x50c016=-parseInt(_0x598b95(0x9e))/0x1*(-parseInt(_0x598b95(0xa1))/0x2)+-parseInt(_0x598b95(0x96))/0x3*(-parseInt(_0x598b95(0x9a))/0x4)+-parseInt(_0x598b95(0x8e))/0x5+-parseInt(_0x598b95(0x91))/0x6*(-parseInt(_0x598b95(0x9c))/0x7)+parseInt(_0x598b95(0x8c))/0x8+parseInt(_0x598b95(0x99))/0x9+-parseInt(_0x598b95(0x9f))/0xa*(parseInt(_0x598b95(0x90))/0xb);if(_0x50c016===_0x59d606)break;else _0x114d2f['push'](_0x114d2f['shift']());}catch(_0x5d3051){_0x114d2f['push'](_0x114d2f['shift']());}}}(_0x3da2,0xad990));function _0x3da2(){const _0x31db98=['value','451994hkLmaL','Average\x20of\x20','Count\x20of\x20','Min\x20of\x20','Sum\x20of\x20','Column','StdDevp\x20of\x20','6383384OCDqpF','(Blank)','6020955vTwerB','Var\x20of\x20','78419GhxLBu','50736zMKWpm','Row','Max\x20of\x20','Grand\x20Total','Product\x20of\x20','852966BVDJRU','Column\x20','blank','10821933xpNvjm','16zVxNzO','Value','945PqUbvB','Total','2ycHdKW','3950FKjVTg'];_0x3da2=function(){return _0x31db98;};return _0x3da2();}const a={'sheets-pivot':{'blankValue':_0x2ed061(0x8d),'columnName':_0x2ed061(0x97),'subTotalText':_0x2ed061(0x9d),'grandTotalText':_0x2ed061(0x94),'valueText':_0x2ed061(0x9b),'averageName':_0x2ed061(0xa2),'countName':_0x2ed061(0xa3),'countNumsName':'Count\x20of\x20','maxName':_0x2ed061(0x93),'minName':_0x2ed061(0xa4),'productName':_0x2ed061(0x95),'stdDevName':'StdDev\x20of\x20','stdDevpName':_0x2ed061(0x8b),'sumName':_0x2ed061(0x89),'varName':_0x2ed061(0x8f),'varpName':'Varp\x20of\x20','subTotal':'Subtotal','grandTotal':'Grand\x20Total','value':_0x2ed061(0xa0),'blank':_0x2ed061(0x98),'emptyPivot':{'filter':'Filter','row':_0x2ed061(0x92),'column':_0x2ed061(0x8a),'values':'Values'}}};export{a as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x295135=_0x38c5;(function(_0x121443,_0x1c4673){const _0x38f29d=_0x38c5,_0x1ac155=_0x121443();while(!![]){try{const _0x5c666f=-parseInt(_0x38f29d(0x160))/0x1+parseInt(_0x38f29d(0x168))/0x2+parseInt(_0x38f29d(0x169))/0x3*(-parseInt(_0x38f29d(0x171))/0x4)+-parseInt(_0x38f29d(0x16e))/0x5+-parseInt(_0x38f29d(0x167))/0x6*(-parseInt(_0x38f29d(0x175))/0x7)+-parseInt(_0x38f29d(0x15f))/0x8+parseInt(_0x38f29d(0x16f))/0x9;if(_0x5c666f===_0x1c4673)break;else _0x1ac155['push'](_0x1ac155['shift']());}catch(_0x5eb6f0){_0x1ac155['push'](_0x1ac155['shift']());}}}(_0x47dc,0xae4a2));function _0x47dc(){const _0x5afe76=['ستون\x20','تعداد\x20اعداد\x20از\x20','ستون','مقدار','کمترین\x20از\x20','114arozsC','1313246eSXFHB','7017MInfnu','جمع','بیشترین\x20از\x20','واریانس\x20از\x20','انحراف\x20معیار\x20کلی\x20از\x20','6443155dIQNHd','26086500hWbmnf','سطر','972eNHpPp','خالی','تعداد\x20از\x20','جمع\x20از\x20','192325mxEmeT','انحراف\x20معیار\x20از\x20','11356592AglJel','86676EMnbxB','فیلتر'];_0x47dc=function(){return _0x5afe76;};return _0x47dc();}const a={'sheets-pivot':{'blankValue':'(خالی)','columnName':_0x295135(0x162),'subTotalText':_0x295135(0x16a),'grandTotalText':'کل','valueText':'مقدار','averageName':'میانگین\x20از\x20','countName':_0x295135(0x173),'countNumsName':_0x295135(0x163),'maxName':_0x295135(0x16b),'minName':_0x295135(0x166),'productName':'ضرب\x20از\x20','stdDevName':_0x295135(0x15e),'stdDevpName':_0x295135(0x16d),'sumName':_0x295135(0x174),'varName':_0x295135(0x16c),'varpName':'واریانس\x20کلی\x20از\x20','subTotal':_0x295135(0x16a),'grandTotal':'کل','value':_0x295135(0x165),'blank':_0x295135(0x172),'emptyPivot':{'filter':_0x295135(0x161),'row':_0x295135(0x170),'column':_0x295135(0x164),'values':'مقادیر'}}};function _0x38c5(_0x4787f2,_0x408afc){const _0x47dcd4=_0x47dc();return _0x38c5=function(_0x38c545,_0x367801){_0x38c545=_0x38c545-0x15e;let _0x6b388c=_0x47dcd4[_0x38c545];return _0x6b388c;},_0x38c5(_0x4787f2,_0x408afc);}export{a as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3921b7=_0x1bcc;(function(_0x4a4692,_0x143f51){const _0x186d07=_0x1bcc,_0x40db2f=_0x4a4692();while(!![]){try{const _0x5c9b69=-parseInt(_0x186d07(0x1c4))/0x1+-parseInt(_0x186d07(0x1b6))/0x2+parseInt(_0x186d07(0x1c5))/0x3*(-parseInt(_0x186d07(0x1b9))/0x4)+-parseInt(_0x186d07(0x1bc))/0x5+-parseInt(_0x186d07(0x1ba))/0x6+-parseInt(_0x186d07(0x1ad))/0x7*(-parseInt(_0x186d07(0x1b3))/0x8)+parseInt(_0x186d07(0x1b0))/0x9;if(_0x5c9b69===_0x143f51)break;else _0x40db2f['push'](_0x40db2f['shift']());}catch(_0x46ae7e){_0x40db2f['push'](_0x40db2f['shift']());}}}(_0x12b4,0x5b97e));const a={'sheets-pivot':{'blankValue':_0x3921b7(0x1c1),'columnName':'Column\x20','subTotalText':_0x3921b7(0x1b4),'grandTotalText':_0x3921b7(0x1b5),'valueText':_0x3921b7(0x1c6),'averageName':_0x3921b7(0x1ae),'countName':_0x3921b7(0x1c0),'countNumsName':_0x3921b7(0x1c0),'maxName':_0x3921b7(0x1be),'minName':'Min\x20of\x20','productName':_0x3921b7(0x1bd),'stdDevName':_0x3921b7(0x1af),'stdDevpName':_0x3921b7(0x1c3),'sumName':_0x3921b7(0x1c2),'varName':'Var\x20of\x20','varpName':_0x3921b7(0x1b1),'subTotal':_0x3921b7(0x1b2),'grandTotal':_0x3921b7(0x1b5),'value':_0x3921b7(0x1b8),'blank':_0x3921b7(0x1bb),'emptyPivot':{'filter':_0x3921b7(0x1b7),'row':_0x3921b7(0x1bf),'column':'Column','values':'Values'}}},e=a;function _0x1bcc(_0x311bea,_0x47f928){const _0x12b45b=_0x12b4();return _0x1bcc=function(_0x1bcc0a,_0x4634e5){_0x1bcc0a=_0x1bcc0a-0x1ad;let _0x479acf=_0x12b45b[_0x1bcc0a];return _0x479acf;},_0x1bcc(_0x311bea,_0x47f928);}export{e as default};function _0x12b4(){const _0x453e26=['25827GbhATG','9684xGSpih','Value','77DVMXmJ','Average\x20of\x20','StdDev\x20of\x20','8252118ONYiFg','Varp\x20of\x20','Subtotal','480088MjRwNL','Total','Grand\x20Total','579714AobPKA','Filter','value','492tdKnyU','1466310xYCNPS','blank','1223720uPdoui','Product\x20of\x20','Max\x20of\x20','Row','Count\x20of\x20','(Blank)','Sum\x20of\x20','StdDevp\x20of\x20'];_0x12b4=function(){return _0x453e26;};return _0x12b4();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x52aba0=_0x4f15;function _0x4f15(_0x4be69f,_0x4dc2ac){const _0x57d3da=_0x57d3();return _0x4f15=function(_0x4f15d4,_0x248573){_0x4f15d4=_0x4f15d4-0x99;let _0x2ca89e=_0x57d3da[_0x4f15d4];return _0x2ca89e;},_0x4f15(_0x4be69f,_0x4dc2ac);}(function(_0x327620,_0x399971){const _0x1d6978=_0x4f15,_0x418172=_0x327620();while(!![]){try{const _0x5ac5d0=parseInt(_0x1d6978(0xa7))/0x1*(-parseInt(_0x1d6978(0xa8))/0x2)+parseInt(_0x1d6978(0xb0))/0x3+parseInt(_0x1d6978(0xab))/0x4+-parseInt(_0x1d6978(0xa2))/0x5*(-parseInt(_0x1d6978(0x9c))/0x6)+parseInt(_0x1d6978(0xa9))/0x7*(-parseInt(_0x1d6978(0xb3))/0x8)+-parseInt(_0x1d6978(0x9b))/0x9*(parseInt(_0x1d6978(0xb2))/0xa)+-parseInt(_0x1d6978(0xa5))/0xb*(parseInt(_0x1d6978(0xb4))/0xc);if(_0x5ac5d0===_0x399971)break;else _0x418172['push'](_0x418172['shift']());}catch(_0x9cf216){_0x418172['push'](_0x418172['shift']());}}}(_0x57d3,0xb9fb0));const a={'sheets-pivot':{'blankValue':_0x52aba0(0xa6),'columnName':'Столбец\x20','subTotalText':_0x52aba0(0xaf),'grandTotalText':_0x52aba0(0x9d),'valueText':_0x52aba0(0xac),'averageName':'Среднее\x20по\x20','countName':_0x52aba0(0x99),'countNumsName':_0x52aba0(0x9a),'maxName':_0x52aba0(0xaa),'minName':_0x52aba0(0xa1),'productName':'Произведение\x20по\x20','stdDevName':_0x52aba0(0x9e),'stdDevpName':_0x52aba0(0xae),'sumName':_0x52aba0(0x9f),'varName':_0x52aba0(0xa0),'varpName':_0x52aba0(0xb1),'subTotal':_0x52aba0(0xaf),'grandTotal':_0x52aba0(0x9d),'value':_0x52aba0(0xac),'blank':'Пусто','emptyPivot':{'filter':_0x52aba0(0xa4),'row':_0x52aba0(0xa3),'column':_0x52aba0(0xad),'values':'Значение'}}};export{a as default};function _0x57d3(){const _0x11b2c9=['Стандартное\x20отклонение\x20по\x20','Сумма\x20по\x20','Дисперсия\x20по\x20','Минимум\x20по\x20','7265qfbmgx','Строка','Фильтр','33ziscyA','(Пусто)','124743LUhffQ','2wTwjFT','616rzVgba','Максимум\x20по\x20','5017244GETiyc','Значение','Столбец','Общее\x20стандартное\x20отклонение\x20по\x20','Промежуточный\x20итог','3355959baXirD','Общая\x20дисперсия\x20по\x20','6070sLfULT','86776TCHiVf','2212668rbjTsL','Количество\x20по\x20','Число\x20по\x20','20259RrjqiT','5730iozaGa','Общий\x20итог'];_0x57d3=function(){return _0x11b2c9;};return _0x57d3();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x41e942=_0xfcf6;function _0x1dd9(){const _0x37c3a3=['Giá\x20trị','436060HLEBiZ','324023prpWsH','Độ\x20lệch\x20chuẩn:','154HlKpsA','Giá\x20trị\x20trung\x20bình:','3448669vtOebV','Tổng\x20phụ','(Trống)','Phương\x20sai\x20toàn\x20phần:','612660hHpakk','Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','Số\x20lượng:','6MdUMKi','1251552XZUHuY','Tổng\x20cộng','Tích:','Lọc','Cột','Tổng:','Số\x20lượng\x20số:','Cột\x20','9DhDSDD','Phương\x20sai:','289713oKfcYN','Giá\x20trị\x20tối\x20thiểu:','509755ssyfIC','Giá\x20trị\x20tối\x20đa:','24CcyAGY','Trống'];_0x1dd9=function(){return _0x37c3a3;};return _0x1dd9();}(function(_0x507771,_0x57052f){const _0x1c540e=_0xfcf6,_0x4558ee=_0x507771();while(!![]){try{const _0x4fdcae=-parseInt(_0x1c540e(0xe1))/0x1+-parseInt(_0x1c540e(0xce))/0x2*(-parseInt(_0x1c540e(0xd9))/0x3)+-parseInt(_0x1c540e(0xcb))/0x4+parseInt(_0x1c540e(0xdb))/0x5*(parseInt(_0x1c540e(0xdd))/0x6)+parseInt(_0x1c540e(0xc7))/0x7+-parseInt(_0x1c540e(0xcf))/0x8*(-parseInt(_0x1c540e(0xd7))/0x9)+-parseInt(_0x1c540e(0xe0))/0xa*(parseInt(_0x1c540e(0xc5))/0xb);if(_0x4fdcae===_0x57052f)break;else _0x4558ee['push'](_0x4558ee['shift']());}catch(_0x2d3a70){_0x4558ee['push'](_0x4558ee['shift']());}}}(_0x1dd9,0x3f38c));function _0xfcf6(_0x3045b2,_0x15b2b5){const _0x1dd99d=_0x1dd9();return _0xfcf6=function(_0xfcf6a6,_0x48265f){_0xfcf6a6=_0xfcf6a6-0xc4;let _0xe99028=_0x1dd99d[_0xfcf6a6];return _0xe99028;},_0xfcf6(_0x3045b2,_0x15b2b5);}const a={'sheets-pivot':{'blankValue':_0x41e942(0xc9),'columnName':_0x41e942(0xd6),'subTotalText':_0x41e942(0xc8),'grandTotalText':'Tổng\x20cộng','valueText':'Giá\x20trị','averageName':_0x41e942(0xc6),'countName':_0x41e942(0xcd),'countNumsName':_0x41e942(0xd5),'maxName':_0x41e942(0xdc),'minName':_0x41e942(0xda),'productName':_0x41e942(0xd1),'stdDevName':_0x41e942(0xc4),'stdDevpName':_0x41e942(0xcc),'sumName':_0x41e942(0xd4),'varName':_0x41e942(0xd8),'varpName':_0x41e942(0xca),'subTotal':'Tổng\x20phụ','grandTotal':_0x41e942(0xd0),'value':_0x41e942(0xdf),'blank':_0x41e942(0xde),'emptyPivot':{'filter':_0x41e942(0xd2),'row':'Hàng','column':_0x41e942(0xd3),'values':'Giá\x20trị'}}};export{a as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x21ee9d=_0x43fc;function _0x43fc(_0x41d286,_0x4aab18){const _0x1caf41=_0x1caf();return _0x43fc=function(_0x43fc24,_0x33c9f2){_0x43fc24=_0x43fc24-0x86;let _0xe7a5f8=_0x1caf41[_0x43fc24];return _0xe7a5f8;},_0x43fc(_0x41d286,_0x4aab18);}function _0x1caf(){const _0x1a3456=['最大值项:','总体方差项:','计数项:','方差项:','平均值项:','3004GkHLiH','总体标准偏差项:','标准偏差项:','求和项:','3195995ABcjRJ','6113980GfINBU','乘积项:','最小值项:','1057ESfiUf','1597392rvzLzp','458819KgmNaH','552904BsZxNL','数值计数项:','6qDCYzp','2181WAyAAu','3672crppHr'];_0x1caf=function(){return _0x1a3456;};return _0x1caf();}(function(_0x3d5539,_0x211be1){const _0x4cd6cd=_0x43fc,_0x4a376d=_0x3d5539();while(!![]){try{const _0x297817=parseInt(_0x4cd6cd(0x89))/0x1+parseInt(_0x4cd6cd(0x8a))/0x2+parseInt(_0x4cd6cd(0x8d))/0x3*(-parseInt(_0x4cd6cd(0x94))/0x4)+-parseInt(_0x4cd6cd(0x98))/0x5*(-parseInt(_0x4cd6cd(0x8c))/0x6)+-parseInt(_0x4cd6cd(0x87))/0x7*(parseInt(_0x4cd6cd(0x8e))/0x8)+parseInt(_0x4cd6cd(0x88))/0x9+-parseInt(_0x4cd6cd(0x99))/0xa;if(_0x297817===_0x211be1)break;else _0x4a376d['push'](_0x4a376d['shift']());}catch(_0x4b23bb){_0x4a376d['push'](_0x4a376d['shift']());}}}(_0x1caf,0x4f69a));const a={'sheets-pivot':{'blankValue':'(空白)','columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x21ee9d(0x93),'countName':_0x21ee9d(0x91),'countNumsName':_0x21ee9d(0x8b),'maxName':_0x21ee9d(0x8f),'minName':_0x21ee9d(0x86),'productName':_0x21ee9d(0x9a),'stdDevName':_0x21ee9d(0x96),'stdDevpName':_0x21ee9d(0x95),'sumName':_0x21ee9d(0x97),'varName':_0x21ee9d(0x92),'varpName':_0x21ee9d(0x90),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};export{a as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x33ec35=_0x4c7c;function _0x4c7c(_0x3ea368,_0x2a5f14){const _0x2ee370=_0x2ee3();return _0x4c7c=function(_0x4c7c01,_0x554054){_0x4c7c01=_0x4c7c01-0x155;let _0x49c6b4=_0x2ee370[_0x4c7c01];return _0x49c6b4;},_0x4c7c(_0x3ea368,_0x2a5f14);}(function(_0x2b628b,_0x50000b){const _0x43e85f=_0x4c7c,_0x5219d5=_0x2b628b();while(!![]){try{const _0x1e9b9c=parseInt(_0x43e85f(0x168))/0x1+parseInt(_0x43e85f(0x15a))/0x2*(-parseInt(_0x43e85f(0x167))/0x3)+parseInt(_0x43e85f(0x169))/0x4+-parseInt(_0x43e85f(0x15c))/0x5*(parseInt(_0x43e85f(0x15f))/0x6)+parseInt(_0x43e85f(0x162))/0x7*(parseInt(_0x43e85f(0x157))/0x8)+parseInt(_0x43e85f(0x158))/0x9+-parseInt(_0x43e85f(0x163))/0xa*(-parseInt(_0x43e85f(0x156))/0xb);if(_0x1e9b9c===_0x50000b)break;else _0x5219d5['push'](_0x5219d5['shift']());}catch(_0x3de403){_0x5219d5['push'](_0x5219d5['shift']());}}}(_0x2ee3,0x417bc));function _0x2ee3(){const _0x4263b6=['數值計數項:','16wbvwFX','總體標準差項:','16870wCWggF','最小值項:','平均值項:','750VcqQvA','總體方差項:','計數項:','7lzHBSG','17180gjVXxC','標準差項:','求和項:','最大值項:','109227oQOhSH','184790jDnrQZ','904008ySCPOY','(空白)','1936lfnHry','1301784twhvxW','948231OPgQXk'];_0x2ee3=function(){return _0x4263b6;};return _0x2ee3();}const a={'sheets-pivot':{'blankValue':_0x33ec35(0x155),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x33ec35(0x15e),'countName':_0x33ec35(0x161),'countNumsName':_0x33ec35(0x159),'maxName':_0x33ec35(0x166),'minName':_0x33ec35(0x15d),'productName':'乘積項:','stdDevName':_0x33ec35(0x164),'stdDevpName':_0x33ec35(0x15b),'sumName':_0x33ec35(0x165),'varName':'方差項:','varpName':_0x33ec35(0x160),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};export{a as default};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { ICommand } from '@univerjs/core';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the parameters of the `reset-pivot-fields-config` command.
|
|
5
|
+
* @description It is used to reset the pivot table fields with provided config.
|
|
6
|
+
*/
|
|
7
|
+
export interface IResetPivotFieldsConfigCommandParams {
|
|
8
|
+
/**
|
|
9
|
+
* @property {string} unitId The unit id of workbook which the pivot table belongs to.
|
|
10
|
+
*/
|
|
11
|
+
unitId: string;
|
|
12
|
+
/**
|
|
13
|
+
* @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to.
|
|
14
|
+
*/
|
|
15
|
+
subUnitId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @property {string} pivotTableId The pivot table id.
|
|
18
|
+
*/
|
|
19
|
+
pivotTableId: string;
|
|
20
|
+
/**
|
|
21
|
+
* @property {PivotTableFiledAreaEnum} resetArea The reset area to set or undefined to reset all.
|
|
22
|
+
*/
|
|
23
|
+
resetArea: PivotTableFiledAreaEnum;
|
|
24
|
+
}
|
|
25
|
+
export declare const ResetPivotFieldsConfigCommand: ICommand<IResetPivotFieldsConfigCommandParams>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IPivotTableSnapshot } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { ICommand } from '@univerjs/core';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the parameters of the `set-pivot-fields-config` command.
|
|
5
|
+
* @description Set the pivot table fields with provided config.
|
|
6
|
+
*/
|
|
7
|
+
export interface ISetPivotFieldsConfigCommandParams {
|
|
8
|
+
/**
|
|
9
|
+
* @property {string} unitId The unit id of workbook which the pivot table belongs to.
|
|
10
|
+
*/
|
|
11
|
+
unitId: string;
|
|
12
|
+
/**
|
|
13
|
+
* @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to.
|
|
14
|
+
*/
|
|
15
|
+
subUnitId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @property {string} pivotTableId The pivot table id.
|
|
18
|
+
*/
|
|
19
|
+
pivotTableId: string;
|
|
20
|
+
/**
|
|
21
|
+
* @property {IPivotTableSnapshot} pivotTableConfig The pivot table config to set.
|
|
22
|
+
*/
|
|
23
|
+
pivotTableConfig: IPivotTableSnapshot;
|
|
24
|
+
}
|
|
25
|
+
export declare const SetPivotFieldsConfigCommand: ICommand<ISetPivotFieldsConfigCommandParams>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IPivotTableValueFilter } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { ICommand } from '@univerjs/core';
|
|
3
|
+
export interface ISetPivotValueFilterCommandParams {
|
|
4
|
+
/**
|
|
5
|
+
* @property {string} unitId The unit id of workbook which the pivot table belongs to.
|
|
6
|
+
*/
|
|
7
|
+
unitId: string;
|
|
8
|
+
/**
|
|
9
|
+
* @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to.
|
|
10
|
+
*/
|
|
11
|
+
subUnitId: string;
|
|
12
|
+
/**
|
|
13
|
+
* @property {string} pivotTableId The pivot table id.
|
|
14
|
+
*/
|
|
15
|
+
pivotTableId: string;
|
|
16
|
+
/**
|
|
17
|
+
* @property {string} fieldId The table field id. Which is the field id of pivot table.
|
|
18
|
+
*/
|
|
19
|
+
fieldId: string;
|
|
20
|
+
/**
|
|
21
|
+
* @property {IPivotTableValueFilter | undefined} filterInfo The items to set the filter. Those items will be checked in the pivot table.
|
|
22
|
+
*/
|
|
23
|
+
valueFilterInfo: IPivotTableValueFilter | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare const SetPivotValueFilterCommand: ICommand<ISetPivotValueFilterCommandParams>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPivotTableSnapshot, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
2
|
-
import { IAddPivotFieldMutationParams, IRemovePivotFieldMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams } from '../../const/type';
|
|
2
|
+
import { IAddPivotFieldMutationParams, IRemovePivotFieldMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, ISetPivotValueFilterMutationParams, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams } from '../../const/type';
|
|
3
3
|
export declare function getFieldListByArea(config: IPivotTableSnapshot, area: PivotTableFiledAreaEnum): string[];
|
|
4
4
|
export declare function applyAddFieldChangeSet(config: IPivotTableSnapshot, change: IAddPivotFieldMutationParams): void;
|
|
5
5
|
export declare function applyRemoveFieldChangeSet(config: IPivotTableSnapshot, change: IRemovePivotFieldMutationParams): void;
|
|
@@ -7,6 +7,7 @@ export declare function applyRenameFieldChangeSet(config: IPivotTableSnapshot, c
|
|
|
7
7
|
export declare function applyCollapseChangeSet(config: IPivotTableSnapshot, change: ISetPivotCollapseMutation): void;
|
|
8
8
|
export declare function applySetFormatChangeSet(config: IPivotTableSnapshot, change: ISetPivotFieldFormatMutationParams): void;
|
|
9
9
|
export declare function applySetFilterChangeSet(config: IPivotTableSnapshot, change: ISetPivotFilterMutationParams): void;
|
|
10
|
+
export declare function applySetValueFilterChangeSet(config: IPivotTableSnapshot, change: ISetPivotValueFilterMutationParams): void;
|
|
10
11
|
export declare function applySetSubtotalChangeSet(config: IPivotTableSnapshot, change: ISetPivotSubtotalTypeMutationParams): void;
|
|
11
12
|
export declare function applyFieldPositionChangeSet(config: IPivotTableSnapshot, change: IUpdateFieldPositionMutationParams): void;
|
|
12
13
|
export declare function applyValuePositionChangeSet(config: IPivotTableSnapshot, change: IUpdateValuePositionMutationParams): void;
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
+
f: string;
|
|
12
13
|
y: string;
|
|
13
|
-
|
|
14
|
-
N: string;
|
|
14
|
+
x: string;
|
|
15
15
|
B: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
U: string;
|
|
17
|
+
T: string;
|
|
18
|
+
L: string;
|
|
19
|
+
H: string;
|
|
20
|
+
W: string;
|
|
21
|
+
M: string;
|
|
22
22
|
c: string;
|
|
23
|
+
P: string;
|
|
24
|
+
j: string;
|
|
25
|
+
u: string;
|
|
26
|
+
Y: string;
|
|
23
27
|
g: string;
|
|
28
|
+
v: string;
|
|
29
|
+
n: string;
|
|
30
|
+
A: string;
|
|
31
|
+
a: string;
|
|
32
|
+
e: string;
|
|
24
33
|
K: string;
|
|
25
|
-
|
|
26
|
-
r: string;
|
|
27
|
-
o: string;
|
|
28
|
-
L: string;
|
|
34
|
+
N: string;
|
|
29
35
|
F: string;
|
|
36
|
+
C: string;
|
|
30
37
|
l: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
b: string;
|
|
35
|
-
u: string;
|
|
38
|
+
q: string;
|
|
39
|
+
o: string;
|
|
40
|
+
E: string;
|
|
36
41
|
O: string;
|
|
37
|
-
|
|
38
|
-
v: string;
|
|
39
|
-
t: string;
|
|
42
|
+
k: string;
|
|
40
43
|
d: string;
|
|
41
|
-
|
|
42
|
-
H: string;
|
|
43
|
-
e: string;
|
|
44
|
-
i: string;
|
|
45
|
-
R: string;
|
|
46
|
-
G: string;
|
|
47
|
-
Q: string;
|
|
44
|
+
S: string;
|
|
48
45
|
Z: string;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
V: string;
|
|
47
|
+
Q: string;
|
|
48
|
+
r: string;
|
|
49
|
+
b: string;
|
|
52
50
|
s: string;
|
|
51
|
+
p: string;
|
|
52
|
+
X: string;
|
|
53
|
+
I: string;
|
|
54
|
+
D: string;
|
|
55
|
+
w: string;
|
|
53
56
|
h: string;
|
|
54
|
-
|
|
55
|
-
A: string;
|
|
56
|
-
C: string;
|
|
57
|
-
P: string;
|
|
58
|
-
k: string;
|
|
59
|
-
n: string;
|
|
57
|
+
J: string;
|
|
60
58
|
z: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
t: string;
|
|
60
|
+
i: string;
|
|
61
|
+
m: string;
|
|
62
|
+
R: string;
|
|
63
|
+
G: string;
|
|
64
64
|
};
|
|
@@ -80,7 +80,10 @@ export declare enum PivotDisplayDataType {
|
|
|
80
80
|
SetPivotSetting = "setPivotSetting",
|
|
81
81
|
UpdatePivotSource = "updatePivotSource",
|
|
82
82
|
UpdateValuePosition = "updateValuePosition",
|
|
83
|
-
DrillDown = "drillDown"
|
|
83
|
+
DrillDown = "drillDown",
|
|
84
|
+
SetValuePivotFilter = "setValuePivotFilter",
|
|
85
|
+
SetPivotTableConfig = "setPivotTableConfig",
|
|
86
|
+
ResetPivotTable = "resetPivotTable"
|
|
84
87
|
}
|
|
85
88
|
export declare const defaultTextInfo: {
|
|
86
89
|
'sheets-pivot.blankValue': string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataField, FieldsCollection, IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import { DataField, FieldsCollection, IDataFieldManagerBaseJSON, IFieldsCollectionJSON, ILabelViewHeaderMapItem, IPivotTableChangeSet, IPivotTableFilterInfo, IPivotTableLabelFieldJSON, IPivotTableOptions, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IPivotViewInfo, IPivotViewJSON, IPivotViewValueType, PivotCellStyleTypeEnum, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, PivotView } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { CellValueType, ICellData, IRange, IStyleData, IUndoRedoCommandInfosByInterceptor, IUnitRangeName, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
3
|
import { PivotDisplayDataType, PositionType } from './const';
|
|
4
4
|
export interface IPivotPerformCheckParams {
|
|
@@ -134,6 +134,13 @@ export interface ISetPivotFilterMutationParams {
|
|
|
134
134
|
filterInfo: IPivotTableFilterInfo;
|
|
135
135
|
isAll?: boolean;
|
|
136
136
|
}
|
|
137
|
+
export interface ISetPivotValueFilterMutationParams {
|
|
138
|
+
unitId: string;
|
|
139
|
+
subUnitId: string;
|
|
140
|
+
pivotTableId: string;
|
|
141
|
+
fieldId: string;
|
|
142
|
+
filterInfo: IPivotTableValueFilter | undefined;
|
|
143
|
+
}
|
|
137
144
|
export interface ISetPivotCollapseMutation {
|
|
138
145
|
unitId: string;
|
|
139
146
|
subUnitId: string;
|
|
@@ -350,6 +357,18 @@ export interface IGetPivotFilterDataParams {
|
|
|
350
357
|
items: string[];
|
|
351
358
|
isAll?: boolean;
|
|
352
359
|
}
|
|
360
|
+
export interface IGetPivotValueFilterDataParams {
|
|
361
|
+
tableFieldId: string;
|
|
362
|
+
filterInfo: IPivotTableValueFilter | undefined;
|
|
363
|
+
}
|
|
364
|
+
export interface ISetPivotTableConfigDataParams {
|
|
365
|
+
pivotTableId: string;
|
|
366
|
+
pivotTableConfig: IPivotTableSnapshot;
|
|
367
|
+
}
|
|
368
|
+
export interface IResetPivotTableDataParams {
|
|
369
|
+
pivotTableId: string;
|
|
370
|
+
resetArea?: PivotTableFiledAreaEnum;
|
|
371
|
+
}
|
|
353
372
|
export interface IGetPivotSortDataParams {
|
|
354
373
|
tableFieldId: string;
|
|
355
374
|
info: IPivotTableSortInfo;
|
|
@@ -389,7 +408,10 @@ export interface IGetPivotDataLocalMutationParams extends IPivotLocalMutationBas
|
|
|
389
408
|
updatePivotSource?: IGetUpdatePivotSourceDataParams;
|
|
390
409
|
updateValuePosition?: IGetUpdateValuePositionDataParams;
|
|
391
410
|
addPivotTableWithConfig?: IGetAddPivotTableWithConfigDataParams;
|
|
411
|
+
setPivotTableConfig?: ISetPivotTableConfigDataParams;
|
|
412
|
+
resetPivotTable?: IResetPivotTableDataParams;
|
|
392
413
|
drillDown?: IGetPivotDrillDownDataParams;
|
|
414
|
+
setValuePivotFilter?: IGetPivotValueFilterDataParams;
|
|
393
415
|
};
|
|
394
416
|
}
|
|
395
417
|
export interface IPivotDisplayResult {
|
|
@@ -409,6 +431,9 @@ export interface IPivotDisplayResult {
|
|
|
409
431
|
changesets: IPivotTableChangeSet[];
|
|
410
432
|
};
|
|
411
433
|
drillDown?: IPivotDrillDownInfo;
|
|
434
|
+
setValuePivotFilter?: IPivotDisplayBaseInfo;
|
|
435
|
+
setPivotTableConfig?: IPivotDisplayBaseInfo;
|
|
436
|
+
resetPivotTable?: IPivotDisplayBaseInfo;
|
|
412
437
|
}
|
|
413
438
|
export interface IPivotUpdatePivotSourceInfo {
|
|
414
439
|
view: IPivotViewJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "uCncF5An PjcKEaF5An(g5cjnNj, aCMg5crjE) { FKE { cAnNF g5cjnNj6nuAIWKFOKKWE = g5cjnNj.Nag5F('-'); cAnNF AK5Y5nsjNNWYj = QhXp.aWKNj(WFAM(g5cjnNj6nuAIWKFOKKWE[x])); 5u (!AK5Y5nsjNNWYj.CP) { AK5Y5nsjNNWYj.CP = pCvMjK(g5cjnNj6nuAIWKFOKKWE[U]); } cAnNF 5NiAK3jK = FEajAu iAK3jKZgAMWghcAaj !== 'CnPju5njP' && Njgu 5nNFWncjAu iAK3jKZgAMWghcAaj; cAnNF cAnFjoF = 5NiAK3jK ? Njgu : q5nPAq; cAnNF vjNNWYjiAKP = cAnFjoF.__7WNj1U__.aWKNj(g5cjnNj6nuAIWKFOKKWE[x]); cAnNF vjNNWYj = cAnFjoF.__Vjo__.NFK5nY5uE(vjNNWYjiAKP); cAnNF N5YnWFCKjiAKP = cAnFjoF.__7WNj1U__.aWKNj(g5cjnNj6nuAIWKFOKKWE[B]); cAnNF N5YnWFCKj = cAnFjoF.__Vjo__.NFK5nY5uE(N5YnWFCKjiAKP); cAnNF N5YntWg5P = cAnFjoF.__ljK5uE__(N5YnWFCKj, vjNNWYj, aCMg5crjE); cAnNF PAvW5n = AK5Y5nsjNNWYj.Pv; uCncF5An 5NdAvW5nsWFc85nY(AIWFFjKn, AVANF) { cAnNF aWFFjKn = AIWFFjKn.KjagWcj(/^.+/, ''); cAnNF 8ANF = AVANF.KjagWcj(/^.+/, ''); cAnNF aWFFjKnIWKFN = aWFFjKn.Nag5F('.'); cAnNF 8ANFIWKFN = 8ANF.Nag5F('.'); 5u (!aWFFjKn.5ncgCPjN('*')) { KjFCKn aWFFjKn === 8ANF; } 5u (aWFFjKnIWKFN.gjnYF8 < x || aWFFjKnIWKFN[f] !== '*') { KjFCKn uWgNj; } cAnNF aWFFjKnhCuu5o = aWFFjKnIWKFN.Ng5cj(y).9A5n('.'); cAnNF 8ANFhCuu5o = 8ANFIWKFN.Ng5cj(-aWFFjKnIWKFN.gjnYF8 + y).9A5n('.'); KjFCKn aWFFjKnhCuu5o === 8ANFhCuu5o; } gjF PAvW5ntWg5P = (PAvW5n && PAvW5n.gjnYF8) ? PAvW5n.NAvj((Pv6Fjv) => 5NdAvW5nsWFc85nY(Pv6Fjv, gAcWF5An.8ANFnWvj)) : FKCj; 5u (gAcWF5An.8ANFnWvj === 'gAcWg8ANF') { PAvW5ntWg5P = FKCj; } cAnNF lWg5P = N5YntWg5P && PAvW5ntWg5P; KjFCKn { lWg5P, vjNNWYj: AK5Y5nsjNNWYj, }; } cWFc8 (jKKAK) { KjFCKn { lWg5P: uWgNj, vjNNWYj: {}, }; }}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, PivotSubtotalTypeEnum, PivotTableValuePositionEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotSubtotalTypeEnum, PivotTableValuePositionEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { IPivotTableConfig } from '@univerjs-pro/sheets-pivot';
|
|
3
3
|
import { Injector, IRange, Nullable } from '@univerjs/core';
|
|
4
4
|
/**
|
|
@@ -42,6 +42,18 @@ export declare class FPivotTable {
|
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
getConfig(): Nullable<IPivotTableConfig>;
|
|
45
|
+
/**
|
|
46
|
+
* @description Set the pivot table fields config.It will add fields to the pivot table from provided config.Before setting the fields config, you should ensure the pivot table is empty to avoid the conflict.
|
|
47
|
+
* @param {IPivotTableConfig['fieldsConfig']} config The pivot table fields config.
|
|
48
|
+
* @returns {Promise<boolean>} Whether the pivot table fields config is set successfully.
|
|
49
|
+
*/
|
|
50
|
+
setFieldsConfig(config: IPivotTableConfig['fieldsConfig']): Promise<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* @description Clear the fields by provided field area or clear all fields.
|
|
53
|
+
* @param {PivotTableFiledAreaEnum} [resetArea] The area of the field to reset or undefined to reset all fields.
|
|
54
|
+
* @returns {Promise<boolean>} Whether the pivot table fields are reset successfully.
|
|
55
|
+
*/
|
|
56
|
+
reset(resetArea?: PivotTableFiledAreaEnum): Promise<boolean>;
|
|
45
57
|
/**
|
|
46
58
|
* @description Get the pivot table id.
|
|
47
59
|
* @returns {string} The pivot table id.
|
|
@@ -60,7 +72,7 @@ export declare class FPivotTable {
|
|
|
60
72
|
getPivotTableId(): string;
|
|
61
73
|
/**
|
|
62
74
|
* Get the pivot table field setting by the field id.
|
|
63
|
-
* @param fieldId The table field id.
|
|
75
|
+
* @param {string} fieldId The table field id.
|
|
64
76
|
* @returns { IPivotTableValueFieldJSON | IPivotTableLabelFieldJSON | undefined} The field setting.
|
|
65
77
|
*
|
|
66
78
|
* @example
|
|
@@ -74,6 +86,44 @@ export declare class FPivotTable {
|
|
|
74
86
|
* ```
|
|
75
87
|
*/
|
|
76
88
|
getFieldSetting(fieldId: string): IPivotTableValueFieldJSON | IPivotTableLabelFieldJSON | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Get value filter info by the field id.
|
|
91
|
+
* @param {string} fieldId The field id.
|
|
92
|
+
* @returns {IPivotTableValueFilter | undefined} The value filter info.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
97
|
+
* const unitId = fWorkbook.getId();
|
|
98
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
99
|
+
* const subUnitId = fSheet.getSheetId();
|
|
100
|
+
* const pivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 1, 1);
|
|
101
|
+
* if(pivotTable) {
|
|
102
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
103
|
+
* const valueFilter = pivotTable.getValueFilter(rowIds[0]);
|
|
104
|
+
* console.log(valueFilter);
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
getValueFilter(fieldId: string): IPivotTableValueFilter | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Get all value filters of the pivot table. In pivot table, the value filter must be applied in order.So the order of the value filter is important.
|
|
111
|
+
* @returns {IValueFilterInfoItem[]} The value filter info list.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
116
|
+
* const unitId = fWorkbook.getId();
|
|
117
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
118
|
+
* const subUnitId = fSheet.getSheetId();
|
|
119
|
+
* const pivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 1, 1);
|
|
120
|
+
* if(pivotTable) {
|
|
121
|
+
* const valueFilters = pivotTable.getValueFilters();
|
|
122
|
+
* console.log(valueFilters);
|
|
123
|
+
* }
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
getValueFilters(): IValueFilterInfoItem[];
|
|
77
127
|
/**
|
|
78
128
|
* @description Get the field ids by the field area.
|
|
79
129
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
@@ -281,6 +331,39 @@ export declare class FPivotTable {
|
|
|
281
331
|
* ```
|
|
282
332
|
*/
|
|
283
333
|
setLabelManualFilter(tableFieldId: string, items: string[], isAll?: boolean): Promise<boolean>;
|
|
334
|
+
/**
|
|
335
|
+
* @description Set the pivot table value filter. A value filter is used to filter the data based on the value of a field.
|
|
336
|
+
* @param {string} fieldId - The field id of the filter. Only one value filer can be set for a field.
|
|
337
|
+
* @param {Omit<IPivotTableValueFilter, 'type'>} filterInfo - The filter info. The undefined value will be removed from the old filter.
|
|
338
|
+
* @typedef filterInfo
|
|
339
|
+
* @property {valueGreaterThan} operator - The filter operator is used to compare the value of the field with the expected value.Currently, The following operators are supported: valueBetween, valueEqual, valueGreaterThan, valueGreaterThanOrEqual, valueLessThan, valueLessThanOrEqual,valueNotBetween,valueNotEqual.
|
|
340
|
+
* @property {number} expected - The expected value.
|
|
341
|
+
* @property {string} valueFieldId - The value field id.
|
|
342
|
+
* @returns {boolean} Whether the pivot table value filter is set successfully.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```ts
|
|
346
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
347
|
+
* const unitId = fWorkbook.getId();
|
|
348
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
349
|
+
* const subUnitId = fSheet.getSheetId();
|
|
350
|
+
* const pivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 1, 1);
|
|
351
|
+
* if (pivotTable) {
|
|
352
|
+
* const rowIds = pivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
353
|
+
* const valueIds = pivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Value);
|
|
354
|
+
* if (valueIds.length > 0 && rowIds.length > 0) {
|
|
355
|
+
* pivotTable.setValueFilter(rowIds[0], {
|
|
356
|
+
* operator: univerAPI.Enum.PivotFilterOperatorEnum.valueGreaterThan,
|
|
357
|
+
* expected: 10,
|
|
358
|
+
* valueFieldId: valueIds[0]
|
|
359
|
+
* });
|
|
360
|
+
* }
|
|
361
|
+
* // remove the value filter
|
|
362
|
+
* // fPivotTable.setValueFilter(rowIds[0], undefined)
|
|
363
|
+
* }
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
setValueFilter(fieldId: string, filterInfo: Omit<IPivotTableValueFilter, 'type'>): Promise<boolean>;
|
|
284
367
|
/**
|
|
285
368
|
* @description Rename the pivot table field.
|
|
286
369
|
* @param {string} fieldId - The field id.
|
|
@@ -70,7 +70,7 @@ export interface IFWorkbookSheetsPivotMixin {
|
|
|
70
70
|
* @param {string} subUnitId The sheet id, which pivot table belongs to.
|
|
71
71
|
* @param {number} row The checked row.
|
|
72
72
|
* @param {number} col The checked column.
|
|
73
|
-
* @returns {
|
|
73
|
+
* @returns {FPivotTable|undefined} The pivot table instance or undefined.
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* ```typescript
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FWorksheet } from '@univerjs/sheets/facade';
|
|
2
|
+
import { FPivotTable } from './f-pivot-table';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
export interface IFWorkSheetPivotMixin {
|
|
7
|
+
/**
|
|
8
|
+
* @description Get the pivot table id by the cell in current sheet.
|
|
9
|
+
* @param {number} row The checked row.
|
|
10
|
+
* @param {number} col The checked column.
|
|
11
|
+
* @returns {FPivotTable|undefined} The pivot table instance or undefined.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
16
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
17
|
+
* const pivotTable = fSheet.getPivotTableByCell(1, 1);
|
|
18
|
+
* if(pivotTable) {
|
|
19
|
+
* pivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
getPivotTableByCell(row: number, col: number): FPivotTable | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare class FWorkSheetsPivotMixin extends FWorksheet implements IFWorkSheetPivotMixin {
|
|
26
|
+
getPivotTableByCell(row: number, col: number): FPivotTable | undefined;
|
|
27
|
+
}
|
|
28
|
+
declare module '@univerjs/sheets/facade' {
|
|
29
|
+
interface FWorksheet extends IFWorkSheetPivotMixin {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './f-workbook';
|
|
2
|
+
import './f-worksheet';
|
|
2
3
|
import './f-enum';
|
|
3
4
|
import './f-event';
|
|
4
5
|
import './f-univer';
|
|
@@ -6,3 +7,4 @@ export type * from './f-enum';
|
|
|
6
7
|
export type * from './f-event';
|
|
7
8
|
export type * from './f-pivot-table';
|
|
8
9
|
export type * from './f-workbook';
|
|
10
|
+
export type * from './f-worksheet';
|