@univerjs-pro/sheets-pivot 0.6.7 → 0.6.8
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/facade.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/commands/command/update-date-group.command.d.ts +11 -0
- package/lib/types/commands/mutations/add-group-collection.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/remove-group-collection.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-date-group.mutation.d.ts +11 -0
- package/lib/types/common/const.d.ts +40 -40
- package/lib/types/const/type.d.ts +14 -1
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/controllers/sheets-pivot-interceptor.controller.d.ts +1 -1
- package/lib/types/facade/f-enum.d.ts +5 -1
- package/lib/types/facade/f-pivot-table.d.ts +25 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/zh-CN.d.ts +25 -0
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +5 -0
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +1 -0
- 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 +10 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3fb58d=_0x1e9e;(function(_0x597fb6,_0xc10b47){const _0x18cb8d=_0x1e9e,_0x30f924=_0x597fb6();while(!![]){try{const _0x3523db=parseInt(_0x18cb8d(0x1cd))/0x1+parseInt(_0x18cb8d(0x1c6))/0x2*(parseInt(_0x18cb8d(0x1ce))/0x3)+-parseInt(_0x18cb8d(0x1e6))/0x4*(parseInt(_0x18cb8d(0x1ca))/0x5)+parseInt(_0x18cb8d(0x1dd))/0x6*(-parseInt(_0x18cb8d(0x1cb))/0x7)+parseInt(_0x18cb8d(0x1d2))/0x8*(-parseInt(_0x18cb8d(0x1dc))/0x9)+-parseInt(_0x18cb8d(0x1c8))/0xa+-parseInt(_0x18cb8d(0x1e8))/0xb*(-parseInt(_0x18cb8d(0x1d4))/0xc);if(_0x3523db===_0xc10b47)break;else _0x30f924['push'](_0x30f924['shift']());}catch(_0x1eb460){_0x30f924['push'](_0x30f924['shift']());}}}(_0x3db2,0x95fd2));function _0x1e9e(_0x3c795b,_0x1d95af){const _0x3db2e8=_0x3db2();return _0x1e9e=function(_0x1e9ede,_0x1fe921){_0x1e9ede=_0x1e9ede-0x1be;let _0x5e8bd9=_0x3db2e8[_0x1e9ede];return _0x5e8bd9;},_0x1e9e(_0x3c795b,_0x1d95af);}const a={'sheets-pivot':{'blankValue':_0x3fb58d(0x1d8),'columnName':_0x3fb58d(0x1c4),'subTotalText':_0x3fb58d(0x1e1),'grandTotalText':_0x3fb58d(0x1bf),'valueText':_0x3fb58d(0x1be),'averageName':'Average\x20of\x20','countName':_0x3fb58d(0x1d5),'countNumsName':_0x3fb58d(0x1d5),'maxName':_0x3fb58d(0x1da),'minName':_0x3fb58d(0x1e3),'productName':'Product\x20of\x20','stdDevName':'StdDev\x20of\x20','stdDevpName':_0x3fb58d(0x1e2),'sumName':_0x3fb58d(0x1d7),'varName':'Var\x20of\x20','varpName':'Varp\x20of\x20','subTotal':'Subtotal','grandTotal':_0x3fb58d(0x1bf),'value':_0x3fb58d(0x1c3),'blank':'blank','emptyPivot':{'filter':'Filter','row':'Row','column':_0x3fb58d(0x1d6),'values':_0x3fb58d(0x1c2)},'dateGroup':{'year':_0x3fb58d(0x1e7),'month':_0x3fb58d(0x1d3),'day':_0x3fb58d(0x1c7),'hour':_0x3fb58d(0x1e5),'minute':_0x3fb58d(0x1c9),'quarter':_0x3fb58d(0x1e0),'monthDate':_0x3fb58d(0x1d9),'yearQuarter':'Year-Quarter','yearMonth':_0x3fb58d(0x1cc),'yearMonthDate':_0x3fb58d(0x1c0)},'cellDateGroupDisplay':{'minute':'{0}\x20minute','hour':_0x3fb58d(0x1c1),'hourMinute':_0x3fb58d(0x1d1),'date':_0x3fb58d(0x1cf),'month':_0x3fb58d(0x1de),'monthDate':_0x3fb58d(0x1d0),'quarter':_0x3fb58d(0x1db),'year':'{0}\x20year','yearMonth':_0x3fb58d(0x1df),'yearMonthDate':_0x3fb58d(0x1e4),'yearQuarter':_0x3fb58d(0x1c5)}}};export{a as default};function _0x3db2(){const _0x3d200f=['{0}\x20hour','Values','value','Column\x20','{0}\x20year\x20{1}\x20quarter','4jTeCud','Day','1839710ddpHcO','Minute','10FdMmiC','3074862AlLtws','Year-Month','312545zzlrtC','261192cZbqKe','{0}\x20day','{0}\x20month\x20{1}\x20day','{0}\x20hour\x20{1}\x20minute','24dPbWtv','Month','12fOsnzf','Count\x20of\x20','Column','Sum\x20of\x20','(Blank)','Month-Day','Max\x20of\x20','{0}\x20quarter','2459961DkpBuV','12eCMZTV','{0}\x20month','{0}\x20year\x20{1}\x20month','Quarter','Total','StdDevp\x20of\x20','Min\x20of\x20','{0}\x20year\x20{1}\x20month\x20{2}\x20day','Hour','2204252ghbPVN','Year','34235267pwIStR','Value','Grand\x20Total','Year-Month-Day'];_0x3db2=function(){return _0x3d200f;};return _0x3db2();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1e2b24=_0x5728;(function(_0x1f39d1,_0x5292b5){const _0x56bfca=_0x5728,_0xe2c090=_0x1f39d1();while(!![]){try{const _0xc1ac5a=-parseInt(_0x56bfca(0xa7))/0x1*(-parseInt(_0x56bfca(0x92))/0x2)+-parseInt(_0x56bfca(0xad))/0x3*(-parseInt(_0x56bfca(0xb1))/0x4)+parseInt(_0x56bfca(0xb7))/0x5*(-parseInt(_0x56bfca(0xab))/0x6)+parseInt(_0x56bfca(0xa6))/0x7*(parseInt(_0x56bfca(0x9f))/0x8)+-parseInt(_0x56bfca(0xa3))/0x9+-parseInt(_0x56bfca(0x9b))/0xa+parseInt(_0x56bfca(0xa4))/0xb*(parseInt(_0x56bfca(0xa8))/0xc);if(_0xc1ac5a===_0x5292b5)break;else _0xe2c090['push'](_0xe2c090['shift']());}catch(_0x451b2f){_0xe2c090['push'](_0xe2c090['shift']());}}}(_0xbff7,0x4d43f));const e={'sheets-pivot':{'blankValue':_0x1e2b24(0xb5),'columnName':_0x1e2b24(0xa2),'subTotalText':_0x1e2b24(0xa1),'grandTotalText':'کل','valueText':_0x1e2b24(0x93),'averageName':'میانگین\x20از\x20','countName':_0x1e2b24(0x91),'countNumsName':_0x1e2b24(0x98),'maxName':_0x1e2b24(0x97),'minName':'کمترین\x20از\x20','productName':_0x1e2b24(0xb2),'stdDevName':_0x1e2b24(0xb0),'stdDevpName':_0x1e2b24(0xb8),'sumName':_0x1e2b24(0x94),'varName':_0x1e2b24(0xb3),'varpName':_0x1e2b24(0x9a),'subTotal':'جمع','grandTotal':'کل','value':_0x1e2b24(0x93),'blank':_0x1e2b24(0xb6),'emptyPivot':{'filter':'فیلتر','row':_0x1e2b24(0xb9),'column':_0x1e2b24(0xb4),'values':_0x1e2b24(0xaa)},'dateGroup':{'year':_0x1e2b24(0xaf),'month':_0x1e2b24(0x95),'day':_0x1e2b24(0xba),'hour':'Heure','minute':'Minute','quarter':_0x1e2b24(0x9c),'monthDate':_0x1e2b24(0x9e),'yearQuarter':'Année-Trimestre','yearMonth':_0x1e2b24(0xac),'yearMonthDate':_0x1e2b24(0xa0)},'cellDateGroupDisplay':{'minute':_0x1e2b24(0x9d),'hour':_0x1e2b24(0xa5),'hourMinute':_0x1e2b24(0xae),'date':_0x1e2b24(0x99),'month':'{0}\x20ماه','monthDate':_0x1e2b24(0xbb),'quarter':_0x1e2b24(0x96),'year':'{0}\x20سال','yearMonth':_0x1e2b24(0xa9),'yearMonthDate':'{0}\x20سال\x20{1}\x20ماه\x20{2}\x20روز','yearQuarter':'{0}\x20سال\x20{1}\x20فصل'}}};function _0xbff7(){const _0x4f8a21=['8sFkfwa','Année-Mois-Jour','جمع','ستون\x20','496899IliGQw','21813XdFuxy','{0}\x20ساعت','2137429XDBjFc','5673FKtCdW','996MAVYpJ','{0}\x20سال\x20{1}\x20ماه','مقادیر','6nilbDt','Année-Mois','6LXPTHe','{0}\x20ساعت\x20{1}\x20دقیقه','Année','انحراف\x20معیار\x20از\x20','1157428mGaZuF','ضرب\x20از\x20','واریانس\x20از\x20','ستون','(خالی)','خالی','2141115brgEEB','انحراف\x20معیار\x20کلی\x20از\x20','سطر','Jour','{0}\x20ماه\x20{1}\x20روز','تعداد\x20از\x20','62aFBjfo','مقدار','جمع\x20از\x20','Mois','{0}\x20فصل','بیشترین\x20از\x20','تعداد\x20اعداد\x20از\x20','{0}\x20روز','واریانس\x20کلی\x20از\x20','4246000aslDzQ','Trimestre','{0}\x20دقیقه','Mois-Jour'];_0xbff7=function(){return _0x4f8a21;};return _0xbff7();}function _0x5728(_0x31b246,_0x4fdba4){const _0xbff7e3=_0xbff7();return _0x5728=function(_0x5728f2,_0x436b1b){_0x5728f2=_0x5728f2-0x91;let _0x6f0f10=_0xbff7e3[_0x5728f2];return _0x6f0f10;},_0x5728(_0x31b246,_0x4fdba4);}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x482d07=_0x43b0;function _0x2ed6(){const _0x1df3f4=['Year','Product\x20of\x20','Var\x20of\x20','2255682NlcNiA','value','Total','Year-Month-Day','Year-Quarter','11KvIPuc','StdDev\x20of\x20','Year-Month','Filter','Average\x20of\x20','Values','Day','1432gtelGX','446410DeLTxR','428sQXeKX','{0}\x20year\x20{1}\x20month\x20{2}\x20day','Count\x20of\x20','1755UxCFnM','StdDevp\x20of\x20','Varp\x20of\x20','4538UtKIXI','Minute','{0}\x20month\x20{1}\x20day','Quarter','Column\x20','Grand\x20Total','blank','{0}\x20year\x20{1}\x20quarter','Month-Day','7238294LExRQN','Sum\x20of\x20','Max\x20of\x20','Row','{0}\x20hour','4287368WTolFm','2034RXhTeb','{0}\x20year\x20{1}\x20month','Hour','Min\x20of\x20','{0}\x20year','48942ZPZefs','(Blank)','Column','Value'];_0x2ed6=function(){return _0x1df3f4;};return _0x2ed6();}function _0x43b0(_0xb87b5,_0x19dc10){const _0x2ed6a8=_0x2ed6();return _0x43b0=function(_0x43b0f0,_0x188a7c){_0x43b0f0=_0x43b0f0-0x18b;let _0x5def05=_0x2ed6a8[_0x43b0f0];return _0x5def05;},_0x43b0(_0xb87b5,_0x19dc10);}(function(_0x433c5e,_0x2bb6b0){const _0x3549f5=_0x43b0,_0x24f94b=_0x433c5e();while(!![]){try{const _0x568a6c=parseInt(_0x3549f5(0x19f))/0x1*(-parseInt(_0x3549f5(0x199))/0x2)+parseInt(_0x3549f5(0x18b))/0x3+-parseInt(_0x3549f5(0x1ad))/0x4+-parseInt(_0x3549f5(0x19c))/0x5*(parseInt(_0x3549f5(0x1ae))/0x6)+parseInt(_0x3549f5(0x1a8))/0x7+parseInt(_0x3549f5(0x197))/0x8*(parseInt(_0x3549f5(0x1b3))/0x9)+-parseInt(_0x3549f5(0x198))/0xa*(parseInt(_0x3549f5(0x190))/0xb);if(_0x568a6c===_0x2bb6b0)break;else _0x24f94b['push'](_0x24f94b['shift']());}catch(_0xa9ff1c){_0x24f94b['push'](_0x24f94b['shift']());}}}(_0x2ed6,0x86f1e));const a={'sheets-pivot':{'blankValue':_0x482d07(0x1b4),'columnName':_0x482d07(0x1a3),'subTotalText':_0x482d07(0x18d),'grandTotalText':_0x482d07(0x1a4),'valueText':_0x482d07(0x1b6),'averageName':_0x482d07(0x194),'countName':_0x482d07(0x19b),'countNumsName':_0x482d07(0x19b),'maxName':_0x482d07(0x1aa),'minName':_0x482d07(0x1b1),'productName':_0x482d07(0x1b8),'stdDevName':_0x482d07(0x191),'stdDevpName':_0x482d07(0x19d),'sumName':_0x482d07(0x1a9),'varName':_0x482d07(0x1b9),'varpName':_0x482d07(0x19e),'subTotal':'Subtotal','grandTotal':'Grand\x20Total','value':_0x482d07(0x18c),'blank':_0x482d07(0x1a5),'emptyPivot':{'filter':_0x482d07(0x193),'row':_0x482d07(0x1ab),'column':_0x482d07(0x1b5),'values':_0x482d07(0x195)},'dateGroup':{'year':_0x482d07(0x1b7),'month':'Month','day':_0x482d07(0x196),'hour':_0x482d07(0x1b0),'minute':_0x482d07(0x1a0),'quarter':_0x482d07(0x1a2),'monthDate':_0x482d07(0x1a7),'yearQuarter':_0x482d07(0x18f),'yearMonth':_0x482d07(0x192),'yearMonthDate':_0x482d07(0x18e)},'cellDateGroupDisplay':{'minute':'{0}\x20minute','hour':_0x482d07(0x1ac),'hourMinute':'{0}\x20hour\x20{1}\x20minute','date':'{0}\x20day','month':'{0}\x20month','monthDate':_0x482d07(0x1a1),'quarter':'{0}\x20quarter','year':_0x482d07(0x1b2),'yearMonth':_0x482d07(0x1af),'yearMonthDate':_0x482d07(0x19a),'yearQuarter':_0x482d07(0x1a6)}}},e=a;export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4e334f=_0x1dd9;function _0x1dd9(_0x43f3d7,_0x2ffe4a){const _0x4d1d8a=_0x4d1d();return _0x1dd9=function(_0x1dd97e,_0x135d96){_0x1dd97e=_0x1dd97e-0xc7;let _0x3fd9f5=_0x4d1d8a[_0x1dd97e];return _0x3fd9f5;},_0x1dd9(_0x43f3d7,_0x2ffe4a);}function _0x4d1d(){const _0x5cd8e3=['Общий\x20итог','5uxauyH','1070624uHWeCU','Минимум\x20по\x20','Месяц','922758zgntDn','Значение','Пусто','Произведение\x20по\x20','Квартал','{0}\x20квартал','{0}\x20месяц\x20{1}\x20день','2gJtYYJ','Сумма\x20по\x20','Год-Месяц','Общая\x20дисперсия\x20по\x20','{0}\x20год\x20{1}\x20месяц','28435946gGYCgH','(Пусто)','Год','Месяц-День','223506nrlOJY','{0}\x20мин','{0}\x20месяц','Дисперсия\x20по\x20','{0}\x20день','Число\x20по\x20','Промежуточный\x20итог','{0}\x20год','{0}\x20ч','133PCDMFH','Год-Месяц-День','681426qBsdcq','{0}\x20ч\x20{1}\x20мин','138504TEddmv','403609ACgTFV','270WPrrsQ','Общее\x20стандартное\x20отклонение\x20по\x20','Минута','{0}\x20год\x20{1}\x20месяц\x20{2}\x20день','Количество\x20по\x20'];_0x4d1d=function(){return _0x5cd8e3;};return _0x4d1d();}(function(_0x48bbad,_0x803272){const _0x5051f4=_0x1dd9,_0x48ef73=_0x48bbad();while(!![]){try{const _0x442e01=parseInt(_0x5051f4(0xd4))/0x1*(-parseInt(_0x5051f4(0xe6))/0x2)+-parseInt(_0x5051f4(0xdf))/0x3+-parseInt(_0x5051f4(0xdc))/0x4*(parseInt(_0x5051f4(0xdb))/0x5)+-parseInt(_0x5051f4(0xd1))/0x6+-parseInt(_0x5051f4(0xcf))/0x7*(parseInt(_0x5051f4(0xd3))/0x8)+parseInt(_0x5051f4(0xef))/0x9*(-parseInt(_0x5051f4(0xd5))/0xa)+parseInt(_0x5051f4(0xeb))/0xb;if(_0x442e01===_0x803272)break;else _0x48ef73['push'](_0x48ef73['shift']());}catch(_0x47bf73){_0x48ef73['push'](_0x48ef73['shift']());}}}(_0x4d1d,0x7868f));const a={'sheets-pivot':{'blankValue':_0x4e334f(0xec),'columnName':'Столбец\x20','subTotalText':_0x4e334f(0xcc),'grandTotalText':_0x4e334f(0xda),'valueText':_0x4e334f(0xe0),'averageName':'Среднее\x20по\x20','countName':_0x4e334f(0xd9),'countNumsName':_0x4e334f(0xcb),'maxName':'Максимум\x20по\x20','minName':_0x4e334f(0xdd),'productName':_0x4e334f(0xe2),'stdDevName':'Стандартное\x20отклонение\x20по\x20','stdDevpName':_0x4e334f(0xd6),'sumName':_0x4e334f(0xe7),'varName':_0x4e334f(0xc9),'varpName':_0x4e334f(0xe9),'subTotal':'Промежуточный\x20итог','grandTotal':_0x4e334f(0xda),'value':_0x4e334f(0xe0),'blank':_0x4e334f(0xe1),'emptyPivot':{'filter':'Фильтр','row':'Строка','column':'Столбец','values':_0x4e334f(0xe0)},'dateGroup':{'year':_0x4e334f(0xed),'month':_0x4e334f(0xde),'day':'День','hour':'Час','minute':_0x4e334f(0xd7),'quarter':_0x4e334f(0xe3),'monthDate':_0x4e334f(0xee),'yearQuarter':'Год-Квартал','yearMonth':_0x4e334f(0xe8),'yearMonthDate':_0x4e334f(0xd0)},'cellDateGroupDisplay':{'minute':_0x4e334f(0xc7),'hour':_0x4e334f(0xce),'hourMinute':_0x4e334f(0xd2),'date':_0x4e334f(0xca),'month':_0x4e334f(0xc8),'monthDate':_0x4e334f(0xe5),'quarter':_0x4e334f(0xe4),'year':_0x4e334f(0xcd),'yearMonth':_0x4e334f(0xea),'yearMonthDate':_0x4e334f(0xd8),'yearQuarter':'{0}\x20год\x20{1}\x20квартал'}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x2722b0=_0x2c68;(function(_0x35d43a,_0x2e8388){const _0x400865=_0x2c68,_0x366865=_0x35d43a();while(!![]){try{const _0x1eb0b9=-parseInt(_0x400865(0xf4))/0x1*(parseInt(_0x400865(0xdd))/0x2)+parseInt(_0x400865(0xdc))/0x3+parseInt(_0x400865(0xe1))/0x4*(parseInt(_0x400865(0xe7))/0x5)+parseInt(_0x400865(0xf2))/0x6+parseInt(_0x400865(0xec))/0x7*(-parseInt(_0x400865(0xd1))/0x8)+-parseInt(_0x400865(0xf7))/0x9*(-parseInt(_0x400865(0xf9))/0xa)+-parseInt(_0x400865(0xfb))/0xb*(parseInt(_0x400865(0xe9))/0xc);if(_0x1eb0b9===_0x2e8388)break;else _0x366865['push'](_0x366865['shift']());}catch(_0x1399c3){_0x366865['push'](_0x366865['shift']());}}}(_0x56a5,0x4f829));function _0x56a5(){const _0x8f1e17=['84311tkSQSf','Giá\x20trị','Năm\x20{0}','9Fzfwiv','Tổng:','1880950qiGFfc','{0}\x20giờ','1085051GPljvc','Phương\x20sai\x20toàn\x20phần:','Tổng\x20cộng','Quý\x20{0}','883576bpunhn','{0}\x20phút','Giờ','Giá\x20trị\x20trung\x20bình:','Trống','Giá\x20trị\x20tối\x20thiểu:','Năm\x20{0}\x20Quý\x20{1}','Phút','Tổng\x20phụ','Hàng','Năm-Quý','1733007eQwJyo','6EThcoZ','Số\x20lượng:','(Trống)','Năm','68760mwdYSX','Giá\x20trị\x20tối\x20đa:','Quý','Tháng\x20{0}','Tháng','Năm\x20{0}\x20Tháng\x20{1}','165NGwlHw','Cột\x20','84vSKUJl','Độ\x20lệch\x20chuẩn:','Lọc','7VejzYN','Năm\x20{0}\x20Tháng\x20{1}\x20Ngày\x20{2}','Cột','{0}\x20giờ\x20{1}\x20phút','Tích:','Năm-Tháng','279036XiFNfZ','Ngày\x20{0}'];_0x56a5=function(){return _0x8f1e17;};return _0x56a5();}function _0x2c68(_0x3fb141,_0x701715){const _0x56a592=_0x56a5();return _0x2c68=function(_0x2c683b,_0x12aba4){_0x2c683b=_0x2c683b-0xcf;let _0x2c2980=_0x56a592[_0x2c683b];return _0x2c2980;},_0x2c68(_0x3fb141,_0x701715);}const t={'sheets-pivot':{'blankValue':_0x2722b0(0xdf),'columnName':_0x2722b0(0xe8),'subTotalText':_0x2722b0(0xd9),'grandTotalText':_0x2722b0(0xcf),'valueText':_0x2722b0(0xf5),'averageName':_0x2722b0(0xd4),'countName':_0x2722b0(0xde),'countNumsName':'Số\x20lượng\x20số:','maxName':_0x2722b0(0xe2),'minName':_0x2722b0(0xd6),'productName':_0x2722b0(0xf0),'stdDevName':_0x2722b0(0xea),'stdDevpName':'Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','sumName':_0x2722b0(0xf8),'varName':'Phương\x20sai:','varpName':_0x2722b0(0xfc),'subTotal':_0x2722b0(0xd9),'grandTotal':_0x2722b0(0xcf),'value':_0x2722b0(0xf5),'blank':_0x2722b0(0xd5),'emptyPivot':{'filter':_0x2722b0(0xeb),'row':_0x2722b0(0xda),'column':_0x2722b0(0xee),'values':_0x2722b0(0xf5)},'dateGroup':{'year':_0x2722b0(0xe0),'month':_0x2722b0(0xe5),'day':'Ngày','hour':_0x2722b0(0xd3),'minute':_0x2722b0(0xd8),'quarter':_0x2722b0(0xe3),'monthDate':'Tháng-Ngày','yearQuarter':_0x2722b0(0xdb),'yearMonth':_0x2722b0(0xf1),'yearMonthDate':'Năm-Tháng-Ngày'},'cellDateGroupDisplay':{'minute':_0x2722b0(0xd2),'hour':_0x2722b0(0xfa),'hourMinute':_0x2722b0(0xef),'date':_0x2722b0(0xf3),'month':_0x2722b0(0xe4),'monthDate':'Tháng\x20{0}\x20Ngày\x20{1}','quarter':_0x2722b0(0xd0),'year':_0x2722b0(0xf6),'yearMonth':_0x2722b0(0xe6),'yearMonthDate':_0x2722b0(0xed),'yearQuarter':_0x2722b0(0xd7)}}};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x5de7(_0x2af1f8,_0x38aa1c){const _0x38905f=_0x3890();return _0x5de7=function(_0x5de775,_0x3aacf8){_0x5de775=_0x5de775-0x16c;let _0x3fcca6=_0x38905f[_0x5de775];return _0x3fcca6;},_0x5de7(_0x2af1f8,_0x38aa1c);}const _0x1540c7=_0x5de7;(function(_0x1e6790,_0x1273f9){const _0x482d55=_0x5de7,_0xc93eab=_0x1e6790();while(!![]){try{const _0x3c45d5=-parseInt(_0x482d55(0x188))/0x1*(parseInt(_0x482d55(0x185))/0x2)+parseInt(_0x482d55(0x17d))/0x3*(parseInt(_0x482d55(0x17a))/0x4)+parseInt(_0x482d55(0x181))/0x5*(parseInt(_0x482d55(0x186))/0x6)+-parseInt(_0x482d55(0x179))/0x7+-parseInt(_0x482d55(0x18a))/0x8+-parseInt(_0x482d55(0x172))/0x9+parseInt(_0x482d55(0x16d))/0xa;if(_0x3c45d5===_0x1273f9)break;else _0xc93eab['push'](_0xc93eab['shift']());}catch(_0x4d3955){_0xc93eab['push'](_0xc93eab['shift']());}}}(_0x3890,0x35224));function _0x3890(){const _0x234c2a=['{0}月','1770804dSOfcA','乘积项:','数值计数项:','方差项:','年-月-日','年-月','(空白)','974533qyhJgZ','24NHTLIi','求和项:','标准偏差项:','187632WYtWQr','总体方差项:','计数项:','{0}年','250ITlMje','年-季度','{0}月{1}日','{0}年{1}月','214544wGOFEs','23352YMNfLp','{0}时','4hyotUF','最大值项:','3065264KJQEwL','月-日','{0}年{1}月{2}日','{0}日','7959930NDtkCt','平均值项:','{0}分','{0}年{1}季度'];_0x3890=function(){return _0x234c2a;};return _0x3890();}const a={'sheets-pivot':{'blankValue':_0x1540c7(0x178),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x1540c7(0x16e),'countName':_0x1540c7(0x17f),'countNumsName':_0x1540c7(0x174),'maxName':_0x1540c7(0x189),'minName':'最小值项:','productName':_0x1540c7(0x173),'stdDevName':_0x1540c7(0x17c),'stdDevpName':'总体标准偏差项:','sumName':_0x1540c7(0x17b),'varName':_0x1540c7(0x175),'varpName':_0x1540c7(0x17e),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'},'dateGroup':{'year':'年','month':'月','day':'日','hour':'小时','minute':'分钟','quarter':'季度','monthDate':_0x1540c7(0x18b),'yearQuarter':_0x1540c7(0x182),'yearMonth':_0x1540c7(0x177),'yearMonthDate':_0x1540c7(0x176)},'cellDateGroupDisplay':{'minute':_0x1540c7(0x16f),'hour':_0x1540c7(0x187),'hourMinute':'{0}时\x20{1}分','date':_0x1540c7(0x16c),'month':_0x1540c7(0x171),'monthDate':_0x1540c7(0x183),'quarter':'{0}季度','year':_0x1540c7(0x180),'yearMonth':_0x1540c7(0x184),'yearMonthDate':_0x1540c7(0x18c),'yearQuarter':_0x1540c7(0x170)}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x50dc(_0x1b2648,_0x4732cc){const _0x2bacf8=_0x2bac();return _0x50dc=function(_0x50dcc8,_0x509943){_0x50dcc8=_0x50dcc8-0xad;let _0xd21988=_0x2bacf8[_0x50dcc8];return _0xd21988;},_0x50dc(_0x1b2648,_0x4732cc);}const _0x42dea4=_0x50dc;function _0x2bac(){const _0x140a99=['4137182YLWgiB','2347205yJJIhN','{0}日','29241060NLbBAW','年-月-日','{0}時','{0}月','3FzCCLg','{0}月{1}日','{0}季度','標準差項:','求和項:','平均值項:','311994LNwYpJ','{0}年{1}季度','{0}年','計數項:','最大值項:','6VDjiHd','614038lXSfyR','{0}年{1}月{2}日','827208ukiejM','{0}分','72oTRZjP','年-季度','乘積項:','2065740nSdNBs','{0}年{1}月'];_0x2bac=function(){return _0x140a99;};return _0x2bac();}(function(_0x3f73dd,_0x518b86){const _0x338a82=_0x50dc,_0x31b31e=_0x3f73dd();while(!![]){try{const _0x5b48b4=-parseInt(_0x338a82(0xc6))/0x1*(-parseInt(_0x338a82(0xb6))/0x2)+-parseInt(_0x338a82(0xb5))/0x3*(-parseInt(_0x338a82(0xbd))/0x4)+parseInt(_0x338a82(0xc0))/0x5+parseInt(_0x338a82(0xb8))/0x6+parseInt(_0x338a82(0xbf))/0x7+parseInt(_0x338a82(0xba))/0x8*(parseInt(_0x338a82(0xb0))/0x9)+-parseInt(_0x338a82(0xc2))/0xa;if(_0x5b48b4===_0x518b86)break;else _0x31b31e['push'](_0x31b31e['shift']());}catch(_0x1a71a1){_0x31b31e['push'](_0x31b31e['shift']());}}}(_0x2bac,0x83df6));const a={'sheets-pivot':{'blankValue':'(空白)','columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x42dea4(0xaf),'countName':_0x42dea4(0xb3),'countNumsName':'數值計數項:','maxName':_0x42dea4(0xb4),'minName':'最小值項:','productName':_0x42dea4(0xbc),'stdDevName':_0x42dea4(0xad),'stdDevpName':'總體標準差項:','sumName':_0x42dea4(0xae),'varName':'方差項:','varpName':'總體方差項:','subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'},'dateGroup':{'year':'年','month':'月','day':'日','hour':'小時','minute':'分鐘','quarter':'季度','monthDate':'月-日','yearQuarter':_0x42dea4(0xbb),'yearMonth':'年-月','yearMonthDate':_0x42dea4(0xc3)},'cellDateGroupDisplay':{'minute':_0x42dea4(0xb9),'hour':_0x42dea4(0xc4),'hourMinute':'{0}時\x20{1}分','date':_0x42dea4(0xc1),'month':_0x42dea4(0xc5),'monthDate':_0x42dea4(0xc7),'quarter':_0x42dea4(0xc8),'year':_0x42dea4(0xb2),'yearMonth':_0x42dea4(0xbe),'yearMonthDate':_0x42dea4(0xb7),'yearQuarter':_0x42dea4(0xb1)}}};export{a as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { ICommand } from '@univerjs/core';
|
|
3
|
+
interface IUpdateDateGroupCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
tableFieldId: string;
|
|
8
|
+
dateType: PivotDateGroupFieldDateTypeEnum;
|
|
9
|
+
}
|
|
10
|
+
export declare const UpdateDateGroupCommand: ICommand<IUpdateDateGroupCommandParams>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
interface IUpdateDateGroupMutationParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
tableFieldId: string;
|
|
8
|
+
dateType: PivotDateGroupFieldDateTypeEnum;
|
|
9
|
+
}
|
|
10
|
+
export declare const UpdateDateGroupMutation: IMutation<IUpdateDateGroupMutationParams>;
|
|
11
|
+
export {};
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
R: string;
|
|
18
|
-
Q: string;
|
|
19
|
-
x: string;
|
|
20
|
-
l: string;
|
|
21
|
-
z: string;
|
|
22
|
-
U: string;
|
|
23
|
-
q: string;
|
|
24
|
-
d: string;
|
|
25
|
-
r: string;
|
|
26
|
-
g: string;
|
|
12
|
+
y: string;
|
|
13
|
+
O: string;
|
|
14
|
+
L: string;
|
|
15
|
+
h: string;
|
|
16
|
+
m: string;
|
|
27
17
|
M: string;
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
v: string;
|
|
19
|
+
K: string;
|
|
30
20
|
T: string;
|
|
31
21
|
k: string;
|
|
32
|
-
|
|
33
|
-
c: string;
|
|
34
|
-
H: string;
|
|
35
|
-
J: string;
|
|
22
|
+
l: string;
|
|
36
23
|
p: string;
|
|
24
|
+
I: string;
|
|
25
|
+
H: string;
|
|
26
|
+
g: string;
|
|
27
|
+
G: string;
|
|
28
|
+
Y: string;
|
|
29
|
+
a: string;
|
|
30
|
+
N: string;
|
|
37
31
|
V: string;
|
|
32
|
+
q: string;
|
|
33
|
+
z: string;
|
|
38
34
|
D: string;
|
|
35
|
+
b: string;
|
|
36
|
+
c: string;
|
|
37
|
+
x: string;
|
|
38
|
+
n: string;
|
|
39
39
|
t: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
m: string;
|
|
40
|
+
s: string;
|
|
41
|
+
Z: string;
|
|
43
42
|
F: string;
|
|
44
|
-
|
|
45
|
-
O: string;
|
|
46
|
-
B: string;
|
|
47
|
-
j: string;
|
|
48
|
-
y: string;
|
|
49
|
-
K: string;
|
|
50
|
-
I: string;
|
|
43
|
+
Q: string;
|
|
51
44
|
W: string;
|
|
52
|
-
n: string;
|
|
53
|
-
Y: string;
|
|
54
|
-
e: string;
|
|
55
|
-
b: string;
|
|
56
|
-
w: string;
|
|
57
45
|
S: string;
|
|
58
|
-
|
|
46
|
+
w: string;
|
|
47
|
+
e: string;
|
|
48
|
+
d: string;
|
|
49
|
+
J: string;
|
|
59
50
|
i: string;
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
R: string;
|
|
52
|
+
u: string;
|
|
53
|
+
j: string;
|
|
54
|
+
B: string;
|
|
55
|
+
E: string;
|
|
62
56
|
f: string;
|
|
63
|
-
|
|
57
|
+
P: string;
|
|
58
|
+
C: string;
|
|
59
|
+
o: string;
|
|
60
|
+
U: string;
|
|
61
|
+
r: string;
|
|
62
|
+
A: string;
|
|
63
|
+
X: string;
|
|
64
64
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { DataField, FieldsCollection, IBaseGroupFieldJSON, 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 {
|
|
@@ -51,6 +51,18 @@ export interface IAddPivotTableMutationParams {
|
|
|
51
51
|
pivotTableConfig: IPivotTableConfig;
|
|
52
52
|
collectionConfig: IFieldsCollectionJSON;
|
|
53
53
|
}
|
|
54
|
+
export interface IAddPivotGroupCollectionMutationParams {
|
|
55
|
+
unitId: string;
|
|
56
|
+
subUnitId: string;
|
|
57
|
+
pivotTableId: string;
|
|
58
|
+
fieldJSON: IBaseGroupFieldJSON;
|
|
59
|
+
}
|
|
60
|
+
export interface IRemovePivotGroupCollectionMutationParams {
|
|
61
|
+
unitId: string;
|
|
62
|
+
subUnitId: string;
|
|
63
|
+
pivotTableId: string;
|
|
64
|
+
dataFieldId: string;
|
|
65
|
+
}
|
|
54
66
|
export interface IAddPivotFieldMutationParams {
|
|
55
67
|
unitId: string;
|
|
56
68
|
subUnitId: string;
|
|
@@ -462,6 +474,7 @@ export interface IPivotDisplayBaseInfo {
|
|
|
462
474
|
changesets: IPivotTableChangeSet[];
|
|
463
475
|
isEmpty: boolean;
|
|
464
476
|
pivotTableConfig: IPivotTableConfig;
|
|
477
|
+
shouldBeAddedGroupJSON?: IBaseGroupFieldJSON;
|
|
465
478
|
}
|
|
466
479
|
export interface ISendPivotViewItemLocalParams extends IPivotLocalMutationBaseParams {
|
|
467
480
|
view: IPivotViewJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "IcVkbGqV lpk9tzbGqV(aGkpVDp, zc4aGkJpt) { b9t { kqVDb aGkpVDpeVIqj69bZ996t = aGkpVDp.DzaGb('-'); kqVDb q9GHGVipDD6Hp = dfuR.z69Dp(6bq4(aGkpVDpeVIqj69bZ996t[L])); GI (!q9GHGVipDD6Hp.cl) { q9GHGVipDD6Hp.cl = RcN4p9(aGkpVDpeVIqj69bZ996t[m]); } kqVDb GDUq90p9 = btzpqI Uq90p9waq46afkqzp !== 'cVlpIGVpl' && DpaI GVDb6VkpqI Uq90p9waq46afkqzp; kqVDb kqVbpnb = GDUq90p9 ? DpaI : 3GVlq3; kqVDb NpDD6HpUq9l = kqVbpnb.__F6Dpvm__.z69Dp(aGkpVDpeVIqj69bZ996t[L]); kqVDb NpDD6Hp = kqVbpnb.__7pn__.Db9GVHGIt(NpDD6HpUq9l); kqVDb DGHV6bc9pUq9l = kqVbpnb.__F6Dpvm__.z69Dp(aGkpVDpeVIqj69bZ996t[h]); kqVDb DGHV6bc9p = kqVbpnb.__7pn__.Db9GVHGIt(DGHV6bc9pUq9l); kqVDb DGHVo6aGl = kqVbpnb.__xp9GIt__(DGHV6bc9p, NpDD6Hp, zc4aGkJpt); kqVDb lqN6GV = q9GHGVipDD6Hp.lN; IcVkbGqV GD5qN6GVi6bkgGVH(qj6bbp9V, q7qDb) { kqVDb z6bbp9V = qj6bbp9V.9pza6kp(/^.+/, ''); kqVDb gqDb = q7qDb.9pza6kp(/^.+/, ''); kqVDb z6bbp9Vj69bD = z6bbp9V.DzaGb('.'); kqVDb gqDbj69bD = gqDb.DzaGb('.'); GI (!z6bbp9V.GVkaclpD('*')) { 9pbc9V z6bbp9V === gqDb; } GI (z6bbp9Vj69bD.apVHbg < L || z6bbp9Vj69bD[y] !== '*') { 9pbc9V I6aDp; } kqVDb z6bbp9VfcIIGn = z6bbp9Vj69bD.DaGkp(O).YqGV('.'); kqVDb gqDbfcIIGn = gqDbj69bD.DaGkp(-z6bbp9Vj69bD.apVHbg + O).YqGV('.'); 9pbc9V z6bbp9VfcIIGn === gqDbfcIIGn; } apb lqN6GVo6aGl = (lqN6GV && lqN6GV.apVHbg) ? lqN6GV.DqNp((lNebpN) => GD5qN6GVi6bkgGVH(lNebpN, aqk6bGqV.gqDbV6Np)) : b9cp; GI (aqk6bGqV.gqDbV6Np === 'aqk6agqDb') { lqN6GVo6aGl = b9cp; } kqVDb x6aGl = DGHVo6aGl && lqN6GVo6aGl; 9pbc9V { x6aGl, NpDD6Hp: q9GHGVipDD6Hp, }; } k6bkg (p99q9) { 9pbc9V { x6aGl: I6aDp, NpDD6Hp: {}, }; }}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMutationInfo, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
1
|
import { PivotView } from '@univerjs-pro/engine-pivot';
|
|
2
|
+
import { IMutationInfo, Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { IPivotCellPositionInfo } from '../const/type';
|
|
4
4
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
5
5
|
import { SheetsPivotTableConfigModel } from '../models/sheets-pivot-config-model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PivotDataFieldDataTypeEnum, PivotDataFieldSortOperatorEnum, PivotDataFieldSortTypeEnum, PivotFilterTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, ST_PivotFilterOperatorEnum } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import { PivotDataFieldDataTypeEnum, PivotDataFieldSortOperatorEnum, PivotDataFieldSortTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotFilterTypeEnum, PivotSubtotalTypeEnum, PivotTableChangeTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum, ST_PivotFilterOperatorEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { PositionType } from '@univerjs-pro/sheets-pivot';
|
|
3
3
|
/**
|
|
4
4
|
* @ignore
|
|
@@ -46,6 +46,10 @@ export interface IPivotEnumMixin {
|
|
|
46
46
|
* Represents the change type of the pivot table. {@link PivotTableChangeTypeEnum}
|
|
47
47
|
*/
|
|
48
48
|
PivotTableChangeTypeEnum: typeof PivotTableChangeTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Represents the date type of the pivot date group field. {@link PivotDateGroupFieldDateTypeEnum}
|
|
51
|
+
*/
|
|
52
|
+
PivotDateGroupFieldDateTypeEnum: typeof PivotDateGroupFieldDateTypeEnum;
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
55
|
* @ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotSubtotalTypeEnum, PivotTableValuePositionEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import { IPivotTableLabelFieldJSON, IPivotTableSortInfo, IPivotTableValueFieldJSON, IPivotTableValueFilter, IValueFilterInfoItem, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, 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
|
interface IPivotTableDataFieldInfo {
|
|
@@ -462,7 +462,6 @@ export declare class FPivotTable {
|
|
|
462
462
|
* @param {number} row - The target row index.
|
|
463
463
|
* @param {number} col - The target column index.
|
|
464
464
|
* @returns {boolean} Whether the pivot table field is moved successfully.
|
|
465
|
-
*
|
|
466
465
|
* @example
|
|
467
466
|
* ```typescript
|
|
468
467
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
@@ -479,5 +478,29 @@ export declare class FPivotTable {
|
|
|
479
478
|
* ```
|
|
480
479
|
*/
|
|
481
480
|
move(sheetName: string, row: number, col: number): Promise<boolean>;
|
|
481
|
+
/**
|
|
482
|
+
* @description Set the date group type for the date group field.
|
|
483
|
+
* @param {string} tableFieldId - The field id of the group label field.
|
|
484
|
+
* @param {PivotDateGroupFieldDateTypeEnum} dateType - The date group type.
|
|
485
|
+
* @returns {boolean} Whether the date group type is set successfully.
|
|
486
|
+
* @example
|
|
487
|
+
* ```typescript
|
|
488
|
+
* // To use this demo, you need to build a pivot table first, and make sure that the entire column in the pivot table source data is a date,
|
|
489
|
+
* // and drag the date dimension to the row or column
|
|
490
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
491
|
+
* const unitId = fWorkbook.getId();
|
|
492
|
+
* const fSheet = fWorkbook.getActiveSheet();
|
|
493
|
+
* const subUnitId = fSheet.getSheetId();
|
|
494
|
+
* const pivotTable = fWorkbook.getPivotTableByCell(unitId, subUnitId, 0, 0);
|
|
495
|
+
* // Here we assume that the field index of the date type is 0
|
|
496
|
+
* await pivotTable.addField(0, univerAPI.Enum.PivotTableFiledAreaEnum.Row, 0);
|
|
497
|
+
* const rowIds = pivotTable.getFieldIdsByArea(univerAPI.Enum.PivotTableFiledAreaEnum.Row);
|
|
498
|
+
* if (rowIds.length > 0) {
|
|
499
|
+
* // Because the index is added to the position of 0 above, the index of the automatically derived date grouping dimension is 1
|
|
500
|
+
* pivotTable.setDateGroupType(rowIds[1], univerAPI.Enum.PivotDateGroupFieldDateTypeEnum.YearMonthDate);
|
|
501
|
+
* }
|
|
502
|
+
* ```
|
|
503
|
+
*/
|
|
504
|
+
setDateGroupType(tableFieldId: string, dateType: PivotDateGroupFieldDateTypeEnum): Promise<boolean>;
|
|
482
505
|
}
|
|
483
506
|
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { MovePivotTableCommand } from './commands/command/move-pivot-table.comma
|
|
|
34
34
|
export { SetPivotValueFilterCommand } from './commands/command/set-pivot-value-filter.command';
|
|
35
35
|
export { SetPivotFieldsConfigCommand } from './commands/command/set-pivot-fields-config.command';
|
|
36
36
|
export { ResetPivotFieldsConfigCommand } from './commands/command/reset-pivot-fields-config.command';
|
|
37
|
+
export { UpdateDateGroupCommand } from './commands/command/update-date-group.command';
|
|
37
38
|
export { BLANK_ROW_COUNT, getAdjustRangesPosition, PivotDisplayDataType, PositionType, SHEET_PIVOT_TABLE_PLUGIN } from './const/const';
|
|
38
39
|
export { DEFAULT_PIVOT_NUMBER, defaultThemeStyle, transFromCellValue } from './const/const';
|
|
39
40
|
export type { IAddPivotFieldMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotPanelSourceList, IPivotPanelTableListItemBase, IPivotRangesInfo, IPivotRenderCache, IPivotTableAddedEventParams, IPivotTableCellData, IPivotTableConfig, IPivotTableMovedEventParams, IPivotTableRemovedEventParams, IPivotTableRenderedEventParams, IPivotTableUpdatedEventParams, IPivotViewUpdateInfo, IRangePosition, IRemovePivotFieldMutationParams, IRemovePivotTableMutationParams, IRenamePivotFieldMutationParams, ISetPivotCollapseMutation, ISetPivotFieldFormatMutationParams, ISetPivotFilterMutationParams, ISetPivotOptionMutationParams, ISetPivotPositionMutationParams, ISetPivotSortMutationParams, ISetPivotSubtotalTypeMutationParams, ISetPivotValueFilterMutationParams, IUnitRangeNameWithSubUnitId, IUpdateFieldPositionMutationParams, IUpdatePivotFieldSourceInfoMutationParams, IUpdateValuePositionMutationParams, } from './const/type';
|
|
@@ -26,6 +26,31 @@ declare const locale: {
|
|
|
26
26
|
column: string;
|
|
27
27
|
values: string;
|
|
28
28
|
};
|
|
29
|
+
dateGroup: {
|
|
30
|
+
year: string;
|
|
31
|
+
month: string;
|
|
32
|
+
day: string;
|
|
33
|
+
hour: string;
|
|
34
|
+
minute: string;
|
|
35
|
+
quarter: string;
|
|
36
|
+
monthDate: string;
|
|
37
|
+
yearQuarter: string;
|
|
38
|
+
yearMonth: string;
|
|
39
|
+
yearMonthDate: string;
|
|
40
|
+
};
|
|
41
|
+
cellDateGroupDisplay: {
|
|
42
|
+
minute: string;
|
|
43
|
+
hour: string;
|
|
44
|
+
hourMinute: string;
|
|
45
|
+
date: string;
|
|
46
|
+
month: string;
|
|
47
|
+
monthDate: string;
|
|
48
|
+
quarter: string;
|
|
49
|
+
year: string;
|
|
50
|
+
yearMonth: string;
|
|
51
|
+
yearMonthDate: string;
|
|
52
|
+
yearQuarter: string;
|
|
53
|
+
};
|
|
29
54
|
};
|
|
30
55
|
};
|
|
31
56
|
export default locale;
|
|
@@ -19,6 +19,11 @@ export declare class SheetsPivotDataFieldManager extends DataFieldManager {
|
|
|
19
19
|
initDataRanges(): void;
|
|
20
20
|
getAutoDisplayNameFunction(): (baseName: string, subtotalType: PivotSubtotalTypeEnum) => string;
|
|
21
21
|
deleteDataField(dataFieldId: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* The field added here is derived, so don’t need to consider rangeKey.
|
|
24
|
+
* @param {DataField} dataField
|
|
25
|
+
*/
|
|
26
|
+
addDataFieldWithoutUnitInfo(dataField: DataField): void;
|
|
22
27
|
removeCollectionImp(token: string): void;
|
|
23
28
|
getRangeKey(rangeInfo: IUnitRangeName, colIndex: number): string;
|
|
24
29
|
getDataFieldByRangeKey(rangeKey: string): DataField | undefined;
|
|
@@ -41,6 +41,7 @@ export declare class SheetsPivotTableAdaptorModel extends Disposable {
|
|
|
41
41
|
*/
|
|
42
42
|
getIntersectsPivotTable(unitId: string, subUnitId: string, range: IRange): string[];
|
|
43
43
|
getSubUnitPivotMatrix(unitId: string, subUnitId: string): ObjectMatrix<Nullable<IPivotTableCellData>>;
|
|
44
|
+
getSubUnitPivotRenderCache(unitId: string, subUnitId: string): Map<string, IPivotRenderCache> | undefined;
|
|
44
45
|
getPivotItemRenderInfoCache(unitId: string, subUnitId: string, pivotTableId: string): Nullable<IPivotRenderCache>;
|
|
45
46
|
deleteUnitId(unitId: string): void;
|
|
46
47
|
markDirty(unitId: string, subUnitId: string): void;
|
package/lib/types/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILabelViewHeaderMapItem, IPivotTableSnapshot, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
1
|
+
import { ILabelViewHeaderMapItem, IPivotTableSnapshot, IPivotViewInfo, LabelViewItem, PivotTable, PivotView, PivotViewItem, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
2
2
|
import { IAccessor, IMutationInfo, Injector, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
3
|
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
4
4
|
import { IGetPivotDataLocalMutationParams, IPivotCellPositionInfo, IPivotPanelDataInfo, IPivotRangesInfo, IPivotRenderCache, IPivotTableCellData, IPivotTableConfig } from './const/type';
|
|
@@ -84,3 +84,5 @@ export declare function getValueViewMaxText(rowView: PivotViewItem): string;
|
|
|
84
84
|
export declare function getCornerMaxText(corner: PivotViewItem): string;
|
|
85
85
|
export declare function setConfigToPivotTable(pivotTable: PivotTable, config: IPivotTableSnapshot): void;
|
|
86
86
|
export declare function resetPivotTable(pivotTable: PivotTable, area?: PivotTableFiledAreaEnum | undefined): void;
|
|
87
|
+
export declare function findCommonDateType(maxExcelDate: number, minExcelDate: number): PivotDateGroupFieldDateTypeEnum;
|
|
88
|
+
export declare function getDateGroupName(injector: Injector, dateType: PivotDateGroupFieldDateTypeEnum): string;
|