@univerjs-pro/sheets-pivot 0.6.3 → 0.6.4
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-pivot-table.d.ts +102 -58
- package/lib/types/facade/f-workbook.d.ts +7 -7
- 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 +10 -10
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2e74(){const _0x5d8248=['Row','Values','7600579YdzObo','2829537TfoCMb','StdDev\x20of\x20','Average\x20of\x20','Product\x20of\x20','Varp\x20of\x20','Count\x20of\x20','Var\x20of\x20','3201952NGxcIS','(Blank)','StdDevp\x20of\x20','25sOgktp','Filter','1997889EvxtOY','203881jlMpTG','Column\x20','4221528EjfCka','6nGGrwi','Grand\x20Total','Min\x20of\x20','Subtotal','14852LZGkRO','Value'];_0x2e74=function(){return _0x5d8248;};return _0x2e74();}const _0x52753c=_0x46e1;function _0x46e1(_0x18bf6c,_0x48cb66){const _0x2e7426=_0x2e74();return _0x46e1=function(_0x46e1ca,_0x5b7b41){_0x46e1ca=_0x46e1ca-0xd6;let _0x56265c=_0x2e7426[_0x46e1ca];return _0x56265c;},_0x46e1(_0x18bf6c,_0x48cb66);}(function(_0x31cde7,_0x39c10a){const _0x194b37=_0x46e1,_0x2995e2=_0x31cde7();while(!![]){try{const _0x26cab5=-parseInt(_0x194b37(0xec))/0x1+-parseInt(_0x194b37(0xe6))/0x2+parseInt(_0x194b37(0xeb))/0x3+parseInt(_0x194b37(0xda))/0x4*(parseInt(_0x194b37(0xe9))/0x5)+-parseInt(_0x194b37(0xd6))/0x6*(-parseInt(_0x194b37(0xde))/0x7)+parseInt(_0x194b37(0xee))/0x8+parseInt(_0x194b37(0xdf))/0x9;if(_0x26cab5===_0x39c10a)break;else _0x2995e2['push'](_0x2995e2['shift']());}catch(_0x2b870d){_0x2995e2['push'](_0x2995e2['shift']());}}}(_0x2e74,0xc5280));const a={'sheets-pivot':{'blankValue':_0x52753c(0xe7),'columnName':_0x52753c(0xed),'subTotalText':'Total','grandTotalText':_0x52753c(0xd7),'valueText':_0x52753c(0xdb),'averageName':_0x52753c(0xe1),'countName':_0x52753c(0xe4),'countNumsName':_0x52753c(0xe4),'maxName':'Max\x20of\x20','minName':_0x52753c(0xd8),'productName':_0x52753c(0xe2),'stdDevName':_0x52753c(0xe0),'stdDevpName':_0x52753c(0xe8),'sumName':'Sum\x20of\x20','varName':_0x52753c(0xe5),'varpName':_0x52753c(0xe3),'subTotal':_0x52753c(0xd9),'grandTotal':_0x52753c(0xd7),'value':'value','blank':'blank','emptyPivot':{'filter':_0x52753c(0xea),'row':_0x52753c(0xdc),'column':'Column','values':_0x52753c(0xdd)}}};export{a as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4617b6=_0x6359;(function(_0x1c1eaa,_0x5ec04d){const _0x2b5f7f=_0x6359,_0x59991a=_0x1c1eaa();while(!![]){try{const _0x4beb3d=-parseInt(_0x2b5f7f(0x156))/0x1*(parseInt(_0x2b5f7f(0x15e))/0x2)+-parseInt(_0x2b5f7f(0x157))/0x3*(parseInt(_0x2b5f7f(0x15d))/0x4)+-parseInt(_0x2b5f7f(0x167))/0x5+parseInt(_0x2b5f7f(0x160))/0x6*(-parseInt(_0x2b5f7f(0x168))/0x7)+-parseInt(_0x2b5f7f(0x15f))/0x8+parseInt(_0x2b5f7f(0x159))/0x9+parseInt(_0x2b5f7f(0x161))/0xa;if(_0x4beb3d===_0x5ec04d)break;else _0x59991a['push'](_0x59991a['shift']());}catch(_0x27db73){_0x59991a['push'](_0x59991a['shift']());}}}(_0x41ad,0x76053));function _0x41ad(){const _0x4bdd06=['3739630spKfNf','147nvzxBl','جمع','خالی','611467ZEbbsW','55227sRJjrb','ستون','3505410SlJagC','فیلتر','(خالی)','بیشترین\x20از\x20','144DTJkxr','2ndcYcQ','5477016frKben','50430TqGsFJ','29771700RerFew','واریانس\x20کلی\x20از\x20','میانگین\x20از\x20','ضرب\x20از\x20','جمع\x20از\x20','مقدار'];_0x41ad=function(){return _0x4bdd06;};return _0x41ad();}const a={'sheets-pivot':{'blankValue':_0x4617b6(0x15b),'columnName':'ستون\x20','subTotalText':_0x4617b6(0x169),'grandTotalText':'کل','valueText':_0x4617b6(0x166),'averageName':_0x4617b6(0x163),'countName':'تعداد\x20از\x20','countNumsName':'تعداد\x20اعداد\x20از\x20','maxName':_0x4617b6(0x15c),'minName':'کمترین\x20از\x20','productName':_0x4617b6(0x164),'stdDevName':'انحراف\x20معیار\x20از\x20','stdDevpName':'انحراف\x20معیار\x20کلی\x20از\x20','sumName':_0x4617b6(0x165),'varName':'واریانس\x20از\x20','varpName':_0x4617b6(0x162),'subTotal':'جمع','grandTotal':'کل','value':'مقدار','blank':_0x4617b6(0x155),'emptyPivot':{'filter':_0x4617b6(0x15a),'row':'سطر','column':_0x4617b6(0x158),'values':'مقادیر'}}};function _0x6359(_0x1a1cda,_0x3b2829){const _0x41adc1=_0x41ad();return _0x6359=function(_0x635919,_0x67656f){_0x635919=_0x635919-0x155;let _0x57076d=_0x41adc1[_0x635919];return _0x57076d;},_0x6359(_0x1a1cda,_0x3b2829);}export{a as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3752(_0x3a318b,_0x4bb639){const _0x546150=_0x5461();return _0x3752=function(_0x3752d6,_0x5b6325){_0x3752d6=_0x3752d6-0x16c;let _0x1ca15f=_0x546150[_0x3752d6];return _0x1ca15f;},_0x3752(_0x3a318b,_0x4bb639);}const _0x31f88c=_0x3752;(function(_0x3abb78,_0xe92c68){const _0x21dba2=_0x3752,_0x37452e=_0x3abb78();while(!![]){try{const _0x24a2e3=-parseInt(_0x21dba2(0x174))/0x1+-parseInt(_0x21dba2(0x17e))/0x2+-parseInt(_0x21dba2(0x17a))/0x3+parseInt(_0x21dba2(0x17b))/0x4+parseInt(_0x21dba2(0x17c))/0x5*(parseInt(_0x21dba2(0x177))/0x6)+-parseInt(_0x21dba2(0x172))/0x7+parseInt(_0x21dba2(0x175))/0x8;if(_0x24a2e3===_0xe92c68)break;else _0x37452e['push'](_0x37452e['shift']());}catch(_0x4b79a7){_0x37452e['push'](_0x37452e['shift']());}}}(_0x5461,0xe1ebb));const a={'sheets-pivot':{'blankValue':_0x31f88c(0x17d),'columnName':'Column\x20','subTotalText':_0x31f88c(0x16d),'grandTotalText':_0x31f88c(0x16e),'valueText':'Value','averageName':_0x31f88c(0x170),'countName':'Count\x20of\x20','countNumsName':'Count\x20of\x20','maxName':_0x31f88c(0x176),'minName':_0x31f88c(0x16f),'productName':_0x31f88c(0x184),'stdDevName':'StdDev\x20of\x20','stdDevpName':_0x31f88c(0x173),'sumName':_0x31f88c(0x182),'varName':_0x31f88c(0x183),'varpName':'Varp\x20of\x20','subTotal':_0x31f88c(0x179),'grandTotal':_0x31f88c(0x16e),'value':_0x31f88c(0x181),'blank':_0x31f88c(0x16c),'emptyPivot':{'filter':_0x31f88c(0x178),'row':_0x31f88c(0x17f),'column':_0x31f88c(0x180),'values':_0x31f88c(0x171)}}},e=a;function _0x5461(){const _0x1c80e5=['1057396OXvcvI','20rDPLyJ','(Blank)','3604438WeAFbg','Row','Column','value','Sum\x20of\x20','Var\x20of\x20','Product\x20of\x20','blank','Total','Grand\x20Total','Min\x20of\x20','Average\x20of\x20','Values','1971284yUMZls','StdDevp\x20of\x20','470759VDITDa','29860392PDhTlZ','Max\x20of\x20','1336908WGWAjr','Filter','Subtotal','4224627xGXFyL'];_0x5461=function(){return _0x1c80e5;};return _0x5461();}export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3f9be7=_0xb788;function _0xa28a(){const _0x38907a=['Число\x20по\x20','Строка','3959675xmteFF','Сумма\x20по\x20','28374CERBNQ','Значение','Промежуточный\x20итог','Общее\x20стандартное\x20отклонение\x20по\x20','3413238qSobyJ','Среднее\x20по\x20','Общая\x20дисперсия\x20по\x20','Максимум\x20по\x20','Стандартное\x20отклонение\x20по\x20','4bOJnzS','45bowqbL','46QWaCfy','Дисперсия\x20по\x20','3605602nTxfHf','Столбец','(Пусто)','Общий\x20итог','Произведение\x20по\x20','3544224gLzAoa','7171280faNpYD','127810FlawEP'];_0xa28a=function(){return _0x38907a;};return _0xa28a();}(function(_0x450c05,_0x171658){const _0x41f7f4=_0xb788,_0x5e7abf=_0x450c05();while(!![]){try{const _0x218f44=parseInt(_0x41f7f4(0x89))/0x1*(-parseInt(_0x41f7f4(0x94))/0x2)+parseInt(_0x41f7f4(0x82))/0x3+-parseInt(_0x41f7f4(0x92))/0x4*(parseInt(_0x41f7f4(0x87))/0x5)+parseInt(_0x41f7f4(0x8d))/0x6+-parseInt(_0x41f7f4(0x96))/0x7+parseInt(_0x41f7f4(0x83))/0x8+parseInt(_0x41f7f4(0x93))/0x9*(-parseInt(_0x41f7f4(0x84))/0xa);if(_0x218f44===_0x171658)break;else _0x5e7abf['push'](_0x5e7abf['shift']());}catch(_0x452f6a){_0x5e7abf['push'](_0x5e7abf['shift']());}}}(_0xa28a,0x9823b));const a={'sheets-pivot':{'blankValue':_0x3f9be7(0x98),'columnName':'Столбец\x20','subTotalText':'Промежуточный\x20итог','grandTotalText':'Общий\x20итог','valueText':'Значение','averageName':_0x3f9be7(0x8e),'countName':'Количество\x20по\x20','countNumsName':_0x3f9be7(0x85),'maxName':_0x3f9be7(0x90),'minName':'Минимум\x20по\x20','productName':_0x3f9be7(0x9a),'stdDevName':_0x3f9be7(0x91),'stdDevpName':_0x3f9be7(0x8c),'sumName':_0x3f9be7(0x88),'varName':_0x3f9be7(0x95),'varpName':_0x3f9be7(0x8f),'subTotal':_0x3f9be7(0x8b),'grandTotal':_0x3f9be7(0x99),'value':'Значение','blank':'Пусто','emptyPivot':{'filter':'Фильтр','row':_0x3f9be7(0x86),'column':_0x3f9be7(0x97),'values':_0x3f9be7(0x8a)}}};function _0xb788(_0x3ba264,_0x2a40c4){const _0xa28a5=_0xa28a();return _0xb788=function(_0xb78815,_0x463855){_0xb78815=_0xb78815-0x82;let _0x4f982a=_0xa28a5[_0xb78815];return _0x4f982a;},_0xb788(_0x3ba264,_0x2a40c4);}export{a as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40f32e=_0x220a;(function(_0xe222a5,_0xa65556){const _0x5370f6=_0x220a,_0x5b21b5=_0xe222a5();while(!![]){try{const _0x45f2ce=-parseInt(_0x5370f6(0x19c))/0x1*(parseInt(_0x5370f6(0x1ae))/0x2)+-parseInt(_0x5370f6(0x19b))/0x3*(-parseInt(_0x5370f6(0x19f))/0x4)+parseInt(_0x5370f6(0x1b0))/0x5*(-parseInt(_0x5370f6(0x1a1))/0x6)+parseInt(_0x5370f6(0x1aa))/0x7+-parseInt(_0x5370f6(0x1b3))/0x8+parseInt(_0x5370f6(0x1a3))/0x9+parseInt(_0x5370f6(0x19e))/0xa*(parseInt(_0x5370f6(0x1a8))/0xb);if(_0x45f2ce===_0xa65556)break;else _0x5b21b5['push'](_0x5b21b5['shift']());}catch(_0x137966){_0x5b21b5['push'](_0x5b21b5['shift']());}}}(_0x5a4c,0xc1a19));const a={'sheets-pivot':{'blankValue':'(Trống)','columnName':_0x40f32e(0x1a4),'subTotalText':_0x40f32e(0x1ab),'grandTotalText':_0x40f32e(0x1a6),'valueText':_0x40f32e(0x1ad),'averageName':_0x40f32e(0x1b1),'countName':_0x40f32e(0x1a5),'countNumsName':'Số\x20lượng\x20số:','maxName':'Giá\x20trị\x20tối\x20đa:','minName':_0x40f32e(0x1b2),'productName':_0x40f32e(0x1a7),'stdDevName':_0x40f32e(0x1ac),'stdDevpName':_0x40f32e(0x1a0),'sumName':_0x40f32e(0x1a9),'varName':'Phương\x20sai:','varpName':'Phương\x20sai\x20toàn\x20phần:','subTotal':_0x40f32e(0x1ab),'grandTotal':_0x40f32e(0x1a6),'value':'Giá\x20trị','blank':_0x40f32e(0x19d),'emptyPivot':{'filter':'Lọc','row':_0x40f32e(0x1af),'column':_0x40f32e(0x1a2),'values':_0x40f32e(0x1ad)}}};function _0x220a(_0x20ef5a,_0x148402){const _0x5a4c7f=_0x5a4c();return _0x220a=function(_0x220aa8,_0x1fda19){_0x220aa8=_0x220aa8-0x19b;let _0x2c9441=_0x5a4c7f[_0x220aa8];return _0x2c9441;},_0x220a(_0x20ef5a,_0x148402);}export{a as default};function _0x5a4c(){const _0x3638dd=['Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','115638PreXLb','Cột','8920350ryUQVh','Cột\x20','Số\x20lượng:','Tổng\x20cộng','Tích:','99OTOPSj','Tổng:','9676240gxkrIq','Tổng\x20phụ','Độ\x20lệch\x20chuẩn:','Giá\x20trị','254liBDNm','Hàng','185LwYOli','Giá\x20trị\x20trung\x20bình:','Giá\x20trị\x20tối\x20thiểu:','11760416tVvhjM','58824EfOfkR','4509BkEyyI','Trống','739590LACAiz','104CXDkAK'];_0x5a4c=function(){return _0x3638dd;};return _0x5a4c();}
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2998(){const _0x35689a=['8223906vReDEQ','22xzSulR','32PfVcBh','(空白)','最小值项:','最大值项:','数值计数项:','16fLkLtJ','总体方差项:','3654693qCIMXb','5wgHGRI','求和项:','1143569BXDFkY','4669816oZjrbA','总体标准偏差项:','46807XwpovP','标准偏差项:','乘积项:','3826971rGNwvy','14391330YGpzCT','计数项:'];_0x2998=function(){return _0x35689a;};return _0x2998();}const _0xead00e=_0x2f24;(function(_0x5c5cbb,_0x3a2b6b){const _0x502101=_0x2f24,_0x1e54ad=_0x5c5cbb();while(!![]){try{const _0x1faa9d=parseInt(_0x502101(0x11a))/0x1*(-parseInt(_0x502101(0x112))/0x2)+-parseInt(_0x502101(0x11d))/0x3+parseInt(_0x502101(0x118))/0x4+-parseInt(_0x502101(0x115))/0x5*(parseInt(_0x502101(0x120))/0x6)+-parseInt(_0x502101(0x117))/0x7*(parseInt(_0x502101(0x122))/0x8)+parseInt(_0x502101(0x114))/0x9+-parseInt(_0x502101(0x11e))/0xa*(-parseInt(_0x502101(0x121))/0xb);if(_0x1faa9d===_0x3a2b6b)break;else _0x1e54ad['push'](_0x1e54ad['shift']());}catch(_0x564034){_0x1e54ad['push'](_0x1e54ad['shift']());}}}(_0x2998,0xbdd5d));const a={'sheets-pivot':{'blankValue':_0xead00e(0x123),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':'平均值项:','countName':_0xead00e(0x11f),'countNumsName':_0xead00e(0x111),'maxName':_0xead00e(0x125),'minName':_0xead00e(0x124),'productName':_0xead00e(0x11c),'stdDevName':_0xead00e(0x11b),'stdDevpName':_0xead00e(0x119),'sumName':_0xead00e(0x116),'varName':'方差项:','varpName':_0xead00e(0x113),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};function _0x2f24(_0x34a002,_0x1e8fc5){const _0x299836=_0x2998();return _0x2f24=function(_0x2f2487,_0x5b9da0){_0x2f2487=_0x2f2487-0x111;let _0x17f46b=_0x299836[_0x2f2487];return _0x17f46b;},_0x2f24(_0x34a002,_0x1e8fc5);}export{a as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4fbb6c=_0x4a97;(function(_0xa3e60e,_0x1b43ee){const _0x2968e8=_0x4a97,_0x100cc0=_0xa3e60e();while(!![]){try{const _0x17b430=-parseInt(_0x2968e8(0x1af))/0x1*(parseInt(_0x2968e8(0x1ac))/0x2)+parseInt(_0x2968e8(0x19b))/0x3*(-parseInt(_0x2968e8(0x1a9))/0x4)+-parseInt(_0x2968e8(0x1ae))/0x5*(-parseInt(_0x2968e8(0x1a5))/0x6)+-parseInt(_0x2968e8(0x1a1))/0x7+parseInt(_0x2968e8(0x1aa))/0x8+parseInt(_0x2968e8(0x1a0))/0x9*(parseInt(_0x2968e8(0x1a7))/0xa)+parseInt(_0x2968e8(0x1ab))/0xb;if(_0x17b430===_0x1b43ee)break;else _0x100cc0['push'](_0x100cc0['shift']());}catch(_0x64fa0c){_0x100cc0['push'](_0x100cc0['shift']());}}}(_0x13fd,0x934a4));function _0x4a97(_0x7a1c3c,_0x5bbc88){const _0x13fd56=_0x13fd();return _0x4a97=function(_0x4a979f,_0x10f4ca){_0x4a979f=_0x4a979f-0x19b;let _0x4ee540=_0x13fd56[_0x4a979f];return _0x4ee540;},_0x4a97(_0x7a1c3c,_0x5bbc88);}const a={'sheets-pivot':{'blankValue':_0x4fbb6c(0x1a8),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':'平均值項:','countName':_0x4fbb6c(0x1a4),'countNumsName':_0x4fbb6c(0x19c),'maxName':'最大值項:','minName':_0x4fbb6c(0x19d),'productName':_0x4fbb6c(0x1a3),'stdDevName':_0x4fbb6c(0x19e),'stdDevpName':_0x4fbb6c(0x1a6),'sumName':_0x4fbb6c(0x1a2),'varName':_0x4fbb6c(0x1ad),'varpName':_0x4fbb6c(0x19f),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};export{a as default};function _0x13fd(){const _0x24c086=['標準差項:','總體方差項:','369LRhWwV','3439226qEuaFa','求和項:','乘積項:','計數項:','4736184BUfIaR','總體標準差項:','154280nBBQuE','(空白)','348FlWHKl','2722656SAOFny','6680993fdPBpC','22cqwdAp','方差項:','5FHzORB','30917nFntCI','32238eKJNTE','數值計數項:','最小值項:'];_0x13fd=function(){return _0x24c086;};return _0x13fd();}
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
+
C: string;
|
|
13
|
+
L: string;
|
|
14
|
+
Z: string;
|
|
15
|
+
V: string;
|
|
16
|
+
v: string;
|
|
17
|
+
a: string;
|
|
18
|
+
R: string;
|
|
19
|
+
W: string;
|
|
12
20
|
M: string;
|
|
13
|
-
u: string;
|
|
14
21
|
c: string;
|
|
15
|
-
q: string;
|
|
16
|
-
z: string;
|
|
17
|
-
n: string;
|
|
18
|
-
N: string;
|
|
19
|
-
i: string;
|
|
20
|
-
P: string;
|
|
21
|
-
w: string;
|
|
22
22
|
B: string;
|
|
23
|
+
H: string;
|
|
24
|
+
d: string;
|
|
25
|
+
u: string;
|
|
26
|
+
Q: string;
|
|
27
|
+
e: string;
|
|
28
|
+
U: string;
|
|
29
|
+
k: string;
|
|
30
|
+
F: string;
|
|
31
|
+
g: string;
|
|
32
|
+
G: string;
|
|
33
|
+
y: string;
|
|
34
|
+
K: string;
|
|
23
35
|
p: string;
|
|
36
|
+
n: string;
|
|
37
|
+
X: string;
|
|
38
|
+
T: string;
|
|
39
|
+
h: string;
|
|
40
|
+
Y: string;
|
|
41
|
+
P: string;
|
|
42
|
+
S: string;
|
|
43
|
+
J: string;
|
|
44
|
+
A: string;
|
|
45
|
+
i: string;
|
|
24
46
|
x: string;
|
|
25
|
-
U: string;
|
|
26
|
-
a: string;
|
|
27
|
-
V: string;
|
|
28
|
-
b: string;
|
|
29
|
-
C: string;
|
|
30
|
-
m: string;
|
|
31
|
-
Z: string;
|
|
32
47
|
I: string;
|
|
33
|
-
o: string;
|
|
34
|
-
Y: string;
|
|
35
48
|
j: string;
|
|
36
|
-
|
|
49
|
+
b: string;
|
|
50
|
+
q: string;
|
|
51
|
+
z: string;
|
|
37
52
|
f: string;
|
|
53
|
+
O: string;
|
|
54
|
+
s: string;
|
|
38
55
|
t: string;
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
r: string;
|
|
57
|
+
D: string;
|
|
58
|
+
m: string;
|
|
41
59
|
l: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
X: string;
|
|
46
|
-
Q: string;
|
|
47
|
-
G: string;
|
|
48
|
-
v: string;
|
|
49
|
-
J: string;
|
|
60
|
+
w: string;
|
|
61
|
+
N: string;
|
|
62
|
+
o: string;
|
|
50
63
|
E: string;
|
|
51
|
-
F: string;
|
|
52
|
-
O: string;
|
|
53
|
-
y: string;
|
|
54
|
-
A: string;
|
|
55
|
-
h: string;
|
|
56
|
-
k: string;
|
|
57
|
-
g: string;
|
|
58
|
-
S: string;
|
|
59
|
-
d: string;
|
|
60
|
-
K: string;
|
|
61
|
-
H: string;
|
|
62
|
-
L: string;
|
|
63
|
-
D: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "dX9BnQg9 H3BKPGnQg9(kQB39p3, GX4kQBz3P) { nKP { Bg9pn kQB39p3b9dgtcKn0KKcP = kQB39p3.pGkQn('-'); Bg9pn gKQuQ9f3ppcu3 = qmsO.GcKp3(cng4(kQB39p3b9dgtcKn0KKcP[Z])); Qd (!gKQuQ9f3ppcu3.XH) { gKQuQ9f3ppcu3.XH = OXF43K(kQB39p3b9dgtcKn0KKcP[v]); } Bg9pn QpNgKU3K = nPG3gd NgKU3KIkg4ckmBgG3 !== 'X9H3dQ93H' && p3kd Q9pnc9B3gd NgKU3KIkg4ckmBgG3; Bg9pn Bg9n3Yn = QpNgKU3K ? p3kd : hQ9Hgh; Bg9pn F3ppcu3NgKH = Bg9n3Yn.__Jcp3Rv__.GcKp3(kQB39p3b9dgtcKn0KKcP[Z]); Bg9pn F3ppcu3 = Bg9n3Yn.__j3Y__.pnKQ9uQdP(F3ppcu3NgKH); Bg9pn pQu9cnXK3NgKH = Bg9n3Yn.__Jcp3Rv__.GcKp3(kQB39p3b9dgtcKn0KKcP[V]); Bg9pn pQu9cnXK3 = Bg9n3Yn.__j3Y__.pnKQ9uQdP(pQu9cnXK3NgKH); Bg9pn pQu9wckQH = Bg9n3Yn.__T3KQdP__(pQu9cnXK3, F3ppcu3, GX4kQBz3P); Bg9pn HgFcQ9 = gKQuQ9f3ppcu3.HF; dX9BnQg9 Qp8gFcQ9fcnB2Q9u(gtcnn3K9, gjgpn) { Bg9pn Gcnn3K9 = gtcnn3K9.K3GkcB3(/^.+/, ''); Bg9pn 2gpn = gjgpn.K3GkcB3(/^.+/, ''); Bg9pn Gcnn3K9tcKnp = Gcnn3K9.pGkQn('.'); Bg9pn 2gpntcKnp = 2gpn.pGkQn('.'); Qd (!Gcnn3K9.Q9BkXH3p('*')) { K3nXK9 Gcnn3K9 === 2gpn; } Qd (Gcnn3K9tcKnp.k39un2 < Z || Gcnn3K9tcKnp[C] !== '*') { K3nXK9 dckp3; } Bg9pn Gcnn3K9mXddQY = Gcnn3K9tcKnp.pkQB3(L).egQ9('.'); Bg9pn 2gpnmXddQY = 2gpntcKnp.pkQB3(-Gcnn3K9tcKnp.k39un2 + L).egQ9('.'); K3nXK9 Gcnn3K9mXddQY === 2gpnmXddQY; } k3n HgFcQ9wckQH = (HgFcQ9 && HgFcQ9.k39un2) ? HgFcQ9.pgF3((HFbn3F) => Qp8gFcQ9fcnB2Q9u(HFbn3F, kgBcnQg9.2gpn9cF3)) : nKX3; Qd (kgBcnQg9.2gpn9cF3 === 'kgBck2gpn') { HgFcQ9wckQH = nKX3; } Bg9pn TckQH = pQu9wckQH && HgFcQ9wckQH; K3nXK9 { TckQH, F3ppcu3: gKQuQ9f3ppcu3, }; } BcnB2 (3KKgK) { K3nXK9 { TckQH: dckp3, F3ppcu3: {}, }; }}";
|
|
@@ -37,11 +37,13 @@ export declare class FPivotTable {
|
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
40
|
-
*const fWorkbook = univerAPI.getActiveWorkbook();
|
|
40
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
41
41
|
* const unitId = fWorkbook.getId();
|
|
42
42
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
43
43
|
* const subUnitId = fSheet.getSheetId();
|
|
44
|
-
*
|
|
44
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
45
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
46
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
45
47
|
* const pivotTableConfig = fPivotTable.getConfig();
|
|
46
48
|
* const { targetCellInfo, sourceRangeInfo, isEmpty } = pivotTableConfig;
|
|
47
49
|
* console.log(targetCellInfo, sourceRangeInfo, isEmpty);
|
|
@@ -70,7 +72,9 @@ export declare class FPivotTable {
|
|
|
70
72
|
* const unitId = fWorkbook.getId();
|
|
71
73
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
72
74
|
* const subUnitId = fSheet.getSheetId();
|
|
73
|
-
*
|
|
75
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
76
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
77
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
74
78
|
* const pivotTableId = fPivotTable.getPivotTableId();
|
|
75
79
|
* console.log(pivotTableId);
|
|
76
80
|
* ```
|
|
@@ -87,8 +91,13 @@ export declare class FPivotTable {
|
|
|
87
91
|
* const unitId = fWorkbook.getId();
|
|
88
92
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
89
93
|
* const subUnitId = fSheet.getSheetId();
|
|
90
|
-
*
|
|
91
|
-
*
|
|
94
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
95
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
96
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
97
|
+
* const fieldId = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row)[0];
|
|
98
|
+
* if(filedId) {
|
|
99
|
+
* const fieldSetting = fPivotTable.getFieldSetting(fieldId);
|
|
100
|
+
* }
|
|
92
101
|
* ```
|
|
93
102
|
*/
|
|
94
103
|
getFieldSetting(fieldId: string): IPivotTableValueFieldJSON | IPivotTableLabelFieldJSON | undefined;
|
|
@@ -106,9 +115,11 @@ export declare class FPivotTable {
|
|
|
106
115
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
107
116
|
* const unitId = fWorkbook.getId();
|
|
108
117
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
118
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
119
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
120
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
121
|
+
* if (fPivotTable) {
|
|
122
|
+
* const fieldInfos = fPivotTable.getSourceFieldsInfo();
|
|
112
123
|
* console.log(fieldInfos);
|
|
113
124
|
* }
|
|
114
125
|
* ```
|
|
@@ -125,10 +136,12 @@ export declare class FPivotTable {
|
|
|
125
136
|
* const unitId = fWorkbook.getId();
|
|
126
137
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
127
138
|
* const subUnitId = fSheet.getSheetId();
|
|
128
|
-
*
|
|
129
|
-
*
|
|
139
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
140
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
141
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
142
|
+
* if(fPivotTable) {
|
|
130
143
|
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
131
|
-
* const valueFilter =
|
|
144
|
+
* const valueFilter = fPivotTable.getValueFilter(rowIds[0]);
|
|
132
145
|
* console.log(valueFilter);
|
|
133
146
|
* }
|
|
134
147
|
* ```
|
|
@@ -144,9 +157,11 @@ export declare class FPivotTable {
|
|
|
144
157
|
* const unitId = fWorkbook.getId();
|
|
145
158
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
146
159
|
* const subUnitId = fSheet.getSheetId();
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
160
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
161
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
162
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
163
|
+
* if(fPivotTable) {
|
|
164
|
+
* const valueFilters = fPivotTable.getValueFilters();
|
|
150
165
|
* console.log(valueFilters);
|
|
151
166
|
* }
|
|
152
167
|
* ```
|
|
@@ -163,8 +178,10 @@ export declare class FPivotTable {
|
|
|
163
178
|
* const unitId = fWorkbook.getId();
|
|
164
179
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
165
180
|
* const subUnitId = fSheet.getSheetId();
|
|
166
|
-
*
|
|
167
|
-
*
|
|
181
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
182
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
183
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
184
|
+
* const fieldIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
168
185
|
* console.log(fieldIds);
|
|
169
186
|
* ```
|
|
170
187
|
*/
|
|
@@ -179,7 +196,9 @@ export declare class FPivotTable {
|
|
|
179
196
|
* const unitId = fWorkbook.getId();
|
|
180
197
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
181
198
|
* const subUnitId = fSheet.getSheetId();
|
|
182
|
-
*
|
|
199
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
200
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
201
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
183
202
|
* if(fPivotTable) {
|
|
184
203
|
* const pivotTableRangeInfo = fPivotTable.getPivotTableRangeInfo();
|
|
185
204
|
* console.log(pivotTableRangeInfo);
|
|
@@ -197,7 +216,9 @@ export declare class FPivotTable {
|
|
|
197
216
|
* const unitId = fWorkbook.getId();
|
|
198
217
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
199
218
|
* const subUnitId = fSheet.getSheetId();
|
|
200
|
-
*
|
|
219
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
220
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
221
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
201
222
|
*
|
|
202
223
|
* if(fPivotTable) {
|
|
203
224
|
* fPivotTable.remove();
|
|
@@ -206,7 +227,7 @@ export declare class FPivotTable {
|
|
|
206
227
|
*/
|
|
207
228
|
remove(): Promise<boolean>;
|
|
208
229
|
/**
|
|
209
|
-
|
|
230
|
+
* @description Add a pivot field to the pivot table.
|
|
210
231
|
* @param {string|number} dataFieldIdOrIndex The data field id.
|
|
211
232
|
* @param {PivotTableFiledAreaEnum} fieldArea The area of the field.
|
|
212
233
|
* @param {number} index The index of the field in the target area.
|
|
@@ -218,7 +239,9 @@ export declare class FPivotTable {
|
|
|
218
239
|
* const unitId = fWorkbook.getId();
|
|
219
240
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
220
241
|
* const subUnitId = fSheet.getSheetId();
|
|
221
|
-
*
|
|
242
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
243
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
244
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
222
245
|
*
|
|
223
246
|
* if(fPivotTable) {
|
|
224
247
|
* // 1 means the source range index , 0 means the index in the target area.
|
|
@@ -238,12 +261,14 @@ export declare class FPivotTable {
|
|
|
238
261
|
* const unitId = fWorkbook.getId();
|
|
239
262
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
240
263
|
* const subUnitId = fSheet.getSheetId();
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
264
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
265
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
266
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
267
|
+
* if (fPivotTable) {
|
|
268
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
244
269
|
* if (rowIds.length > 0) {
|
|
245
270
|
* // remove all field in row.
|
|
246
|
-
*
|
|
271
|
+
* fPivotTable.removeField(rowIds);
|
|
247
272
|
* }
|
|
248
273
|
* }
|
|
249
274
|
* ```
|
|
@@ -262,12 +287,14 @@ export declare class FPivotTable {
|
|
|
262
287
|
* const unitId = fWorkbook.getId();
|
|
263
288
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
264
289
|
* const subUnitId = fSheet.getSheetId();
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
290
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
291
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
292
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
293
|
+
* if (fPivotTable) {
|
|
294
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
268
295
|
* if (rowIds.length > 0) {
|
|
269
296
|
* // move to column
|
|
270
|
-
*
|
|
297
|
+
* fPivotTable.updateFieldPosition(rowIds[0], univerAPI.Enum.PivotTableFiledAreaEnum.Column, 0);
|
|
271
298
|
* }
|
|
272
299
|
* }
|
|
273
300
|
* ```
|
|
@@ -285,10 +312,12 @@ export declare class FPivotTable {
|
|
|
285
312
|
* const unitId = fWorkbook.getId();
|
|
286
313
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
287
314
|
* const subUnitId = fSheet.getSheetId();
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
315
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
316
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
317
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
318
|
+
* if(fPivotTable) {
|
|
319
|
+
* // The prerequisite here is that the value dimension has more than one item
|
|
320
|
+
* fPivotTable.updateValuePosition(univerAPI.Enum.PivotTableValuePositionEnum.Row, 0);
|
|
292
321
|
* }
|
|
293
322
|
* ```
|
|
294
323
|
*/
|
|
@@ -305,9 +334,14 @@ export declare class FPivotTable {
|
|
|
305
334
|
* const unitId = fWorkbook.getId();
|
|
306
335
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
307
336
|
* const subUnitId = fSheet.getSheetId();
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
337
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
338
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
339
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
340
|
+
* if (fPivotTable) {
|
|
341
|
+
* const valueId = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Value)[0];
|
|
342
|
+
* if (valueId) {
|
|
343
|
+
* fPivotTable.setSubtotalType(valueId, univerAPI.Enum.PivotSubtotalTypeEnum.average);
|
|
344
|
+
* }
|
|
311
345
|
* }
|
|
312
346
|
* ```
|
|
313
347
|
*/
|
|
@@ -326,12 +360,14 @@ export declare class FPivotTable {
|
|
|
326
360
|
* const unitId = fWorkbook.getId();
|
|
327
361
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
328
362
|
* const subUnitId = fSheet.getSheetId();
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
363
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
364
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
365
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
366
|
+
* if (fPivotTable) {
|
|
367
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
368
|
+
* if (rowIds.length > 0) {
|
|
369
|
+
* fPivotTable.setLabelSort(rowIds[0], { type: univerAPI.Enum.PivotDataFieldSortOperatorEnum.ascending });
|
|
370
|
+
* }
|
|
335
371
|
* }
|
|
336
372
|
* ```
|
|
337
373
|
*/
|
|
@@ -349,11 +385,13 @@ export declare class FPivotTable {
|
|
|
349
385
|
* const unitId = fWorkbook.getId();
|
|
350
386
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
351
387
|
* const subUnitId = fSheet.getSheetId();
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
388
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
389
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
390
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
391
|
+
* if (fPivotTable) {
|
|
392
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
355
393
|
* if (rowIds.length > 0) {
|
|
356
|
-
*
|
|
394
|
+
* fPivotTable.setLabelManualFilter(rowIds[0], ['item1', 'item2']);
|
|
357
395
|
* }
|
|
358
396
|
* }
|
|
359
397
|
* ```
|
|
@@ -375,12 +413,14 @@ export declare class FPivotTable {
|
|
|
375
413
|
* const unitId = fWorkbook.getId();
|
|
376
414
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
377
415
|
* const subUnitId = fSheet.getSheetId();
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
416
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
417
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
418
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
419
|
+
* if (fPivotTable) {
|
|
420
|
+
* const rowIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
421
|
+
* const valueIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Value);
|
|
382
422
|
* if (valueIds.length > 0 && rowIds.length > 0) {
|
|
383
|
-
*
|
|
423
|
+
* fPivotTable.setValueFilter(rowIds[0], {
|
|
384
424
|
* operator: univerAPI.Enum.PivotFilterOperatorEnum.valueGreaterThan,
|
|
385
425
|
* expected: 10,
|
|
386
426
|
* valueFieldId: valueIds[0]
|
|
@@ -404,11 +444,13 @@ export declare class FPivotTable {
|
|
|
404
444
|
* const unitId = fWorkbook.getId();
|
|
405
445
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
406
446
|
* const subUnitId = fSheet.getSheetId();
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
447
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
448
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
449
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
450
|
+
* if (fPivotTable) {
|
|
451
|
+
* const valueIds = fPivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Value);
|
|
410
452
|
* if (valueIds.length > 0) {
|
|
411
|
-
*
|
|
453
|
+
* fPivotTable.renameField(valueIds[0], 'newName');
|
|
412
454
|
* }
|
|
413
455
|
* }
|
|
414
456
|
* ```
|
|
@@ -426,11 +468,13 @@ export declare class FPivotTable {
|
|
|
426
468
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
427
469
|
* const unitId = fWorkbook.getId();
|
|
428
470
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
429
|
-
* const
|
|
430
|
-
*
|
|
431
|
-
*
|
|
471
|
+
* const subSheetName = fSheet.getSheetName();
|
|
472
|
+
* // Here we assume that you already have a pivot table in cell A8 of the table.
|
|
473
|
+
* // If not, please call fWorkbook.addPivotTable() according to the documentation.
|
|
474
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
475
|
+
* if (fPivotTable) {
|
|
432
476
|
* // move pivot table to row:100, col:1
|
|
433
|
-
*
|
|
477
|
+
* fPivotTable.move(subSheetName, 100, 1);
|
|
434
478
|
* }
|
|
435
479
|
* ```
|
|
436
480
|
*/
|
|
@@ -45,7 +45,7 @@ export interface IFWorkbookSheetsPivotMixin {
|
|
|
45
45
|
* const anchorCellInfo = {
|
|
46
46
|
* unitId,
|
|
47
47
|
* subUnitId,
|
|
48
|
-
* row:
|
|
48
|
+
* row: 0,
|
|
49
49
|
* col: 8
|
|
50
50
|
* };
|
|
51
51
|
* const fPivotTable = await fWorkbook.addPivotTable(sourceInfo, 'existing', anchorCellInfo);
|
|
@@ -78,9 +78,9 @@ export interface IFWorkbookSheetsPivotMixin {
|
|
|
78
78
|
* const unitId = fWorkbook.getId();
|
|
79
79
|
* const fSheet = fWorkbook.getActiveSheet();
|
|
80
80
|
* const subUnitId = fSheet.getSheetId();
|
|
81
|
-
* const
|
|
82
|
-
* if(
|
|
83
|
-
*
|
|
81
|
+
* const fPivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 8);
|
|
82
|
+
* if(fPivotTable) {
|
|
83
|
+
* fPivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
@@ -94,9 +94,9 @@ export interface IFWorkbookSheetsPivotMixin {
|
|
|
94
94
|
* ```typescript
|
|
95
95
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
96
96
|
* const mockId = 'abc123456';
|
|
97
|
-
* const
|
|
98
|
-
* if(
|
|
99
|
-
*
|
|
97
|
+
* const fPivotTable = fWorkbook.getPivotTableById(mockId);
|
|
98
|
+
* if(fPivotTable) {
|
|
99
|
+
* fPivotTable.addField(1, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
|
|
100
100
|
* }
|
|
101
101
|
*```
|
|
102
102
|
*/
|