@univerjs-pro/sheets-pivot 0.5.0-alpha.0 → 0.5.0-beta.1
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/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/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/add-pivot-field.command.d.ts +11 -0
- package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +3 -0
- package/lib/types/commands/command/add-pivot-table.command.d.ts +9 -0
- package/lib/types/commands/command/move-pivot-field.command.d.ts +11 -0
- package/lib/types/commands/command/pivot-drill-down.command.d.ts +6 -0
- package/lib/types/commands/command/remove-pivot-field.command.d.ts +8 -0
- package/lib/types/commands/command/set-pivot-collapse.command.d.ts +9 -0
- package/lib/types/commands/command/set-pivot-filter.command.d.ts +10 -0
- package/lib/types/commands/command/set-pivot-sort.command.d.ts +10 -0
- package/lib/types/commands/command/update-pivot-setting.command.d.ts +15 -0
- package/lib/types/commands/command/update-pivot-source.command.d.ts +9 -0
- package/lib/types/commands/command/update-value-position.command.d.ts +8 -0
- package/lib/types/commands/command/util.d.ts +14 -0
- package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/change-apply-util.d.ts +15 -0
- package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +7 -0
- package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-field-position.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +3 -0
- package/lib/types/commands/mutations/update-value-position.mutation.d.ts +3 -0
- package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +3 -0
- package/lib/types/common/const.d.ts +64 -0
- package/lib/types/const/const.d.ts +107 -0
- package/lib/types/const/template.d.ts +885 -0
- package/lib/types/const/type.d.ts +525 -0
- package/lib/types/controllers/config.schema.d.ts +6 -0
- package/lib/types/controllers/const.d.ts +1 -0
- package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +44 -0
- package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +12 -0
- package/lib/types/controllers/sheets-pivot-interceptor.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +7 -0
- package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +21 -0
- package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +9 -0
- package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +20 -0
- package/lib/types/facade/f-pivot-table.d.ts +83 -0
- package/lib/types/facade/f-workbook.d.ts +72 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +52 -1158
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +31 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/sheets-pivot-config-model.d.ts +58 -0
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +77 -0
- package/lib/types/models/sheets-pivot-data-source-model.d.ts +101 -0
- package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +54 -0
- package/lib/types/models/view-util.d.ts +16 -0
- package/lib/types/plugin.d.ts +17 -0
- package/lib/types/services/sheets-pivot-rpc.service.d.ts +11 -0
- package/lib/types/services/sheets-pivot-table.service.d.ts +18 -0
- package/lib/types/util.d.ts +84 -0
- 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/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 +14 -14
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5c6f54=_0x8d5a;function _0x4a27(){const _0x1fd4c3=['187158DlEdKG','Max\x20of\x20','StdDev\x20of\x20','Sum\x20of\x20','(Blank)','Filter','25KiQOyt','Total','blank','342188DaymcD','175060IWeEZy','Grand\x20Total','573546vmcqvl','7564NsSyRy','value','493520FiQZye','Min\x20of\x20','387thuKGy','Count\x20of\x20','Average\x20of\x20','Product\x20of\x20','813dKySWR','Row','195019oenzON','Var\x20of\x20','StdDevp\x20of\x20','Values'];_0x4a27=function(){return _0x1fd4c3;};return _0x4a27();}function _0x8d5a(_0x53c5be,_0x541502){const _0x4a2769=_0x4a27();return _0x8d5a=function(_0x8d5a34,_0x5600f2){_0x8d5a34=_0x8d5a34-0x1a9;let _0x5cb964=_0x4a2769[_0x8d5a34];return _0x5cb964;},_0x8d5a(_0x53c5be,_0x541502);}(function(_0x2efc4c,_0x312b86){const _0x17ba28=_0x8d5a,_0x532b1a=_0x2efc4c();while(!![]){try{const _0x1f7533=-parseInt(_0x17ba28(0x1c3))/0x1+parseInt(_0x17ba28(0x1b8))/0x2+parseInt(_0x17ba28(0x1c1))/0x3*(-parseInt(_0x17ba28(0x1b9))/0x4)+parseInt(_0x17ba28(0x1b2))/0x5*(-parseInt(_0x17ba28(0x1ac))/0x6)+parseInt(_0x17ba28(0x1b5))/0x7+parseInt(_0x17ba28(0x1bb))/0x8+parseInt(_0x17ba28(0x1bd))/0x9*(parseInt(_0x17ba28(0x1b6))/0xa);if(_0x1f7533===_0x312b86)break;else _0x532b1a['push'](_0x532b1a['shift']());}catch(_0x54cc2d){_0x532b1a['push'](_0x532b1a['shift']());}}}(_0x4a27,0x45fc4));const a={'sheets-pivot':{'blankValue':_0x5c6f54(0x1b0),'columnName':'Column\x20','subTotalText':_0x5c6f54(0x1b3),'grandTotalText':_0x5c6f54(0x1b7),'valueText':'Value','averageName':_0x5c6f54(0x1bf),'countName':'Count\x20of\x20','countNumsName':_0x5c6f54(0x1be),'maxName':_0x5c6f54(0x1ad),'minName':_0x5c6f54(0x1bc),'productName':_0x5c6f54(0x1c0),'stdDevName':_0x5c6f54(0x1ae),'stdDevpName':_0x5c6f54(0x1aa),'sumName':_0x5c6f54(0x1af),'varName':_0x5c6f54(0x1a9),'varpName':'Varp\x20of\x20','subTotal':'Subtotal','grandTotal':_0x5c6f54(0x1b7),'value':_0x5c6f54(0x1ba),'blank':_0x5c6f54(0x1b4),'emptyPivot':{'filter':_0x5c6f54(0x1b1),'row':_0x5c6f54(0x1c2),'column':'Column','values':_0x5c6f54(0x1ab)}}};export{a as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3c2ea0=_0x581d;(function(_0x28c04d,_0x1a87c6){const _0x2701d3=_0x581d,_0x507635=_0x28c04d();while(!![]){try{const _0x296653=-parseInt(_0x2701d3(0x15f))/0x1*(-parseInt(_0x2701d3(0x14c))/0x2)+-parseInt(_0x2701d3(0x15c))/0x3*(parseInt(_0x2701d3(0x153))/0x4)+parseInt(_0x2701d3(0x14a))/0x5+-parseInt(_0x2701d3(0x159))/0x6*(-parseInt(_0x2701d3(0x15a))/0x7)+parseInt(_0x2701d3(0x147))/0x8*(parseInt(_0x2701d3(0x160))/0x9)+parseInt(_0x2701d3(0x14d))/0xa*(-parseInt(_0x2701d3(0x158))/0xb)+-parseInt(_0x2701d3(0x145))/0xc;if(_0x296653===_0x1a87c6)break;else _0x507635['push'](_0x507635['shift']());}catch(_0x314d69){_0x507635['push'](_0x507635['shift']());}}}(_0x30aa,0x57900));function _0x581d(_0x3fa558,_0x48fa8b){const _0x30aa92=_0x30aa();return _0x581d=function(_0x581d4e,_0x2e7240){_0x581d4e=_0x581d4e-0x143;let _0xd175f1=_0x30aa92[_0x581d4e];return _0xd175f1;},_0x581d(_0x3fa558,_0x48fa8b);}const a={'sheets-pivot':{'blankValue':_0x3c2ea0(0x14f),'columnName':_0x3c2ea0(0x146),'subTotalText':'جمع','grandTotalText':'کل','valueText':_0x3c2ea0(0x14e),'averageName':_0x3c2ea0(0x152),'countName':_0x3c2ea0(0x157),'countNumsName':_0x3c2ea0(0x156),'maxName':_0x3c2ea0(0x148),'minName':_0x3c2ea0(0x154),'productName':_0x3c2ea0(0x155),'stdDevName':_0x3c2ea0(0x151),'stdDevpName':_0x3c2ea0(0x15e),'sumName':_0x3c2ea0(0x143),'varName':_0x3c2ea0(0x15d),'varpName':_0x3c2ea0(0x15b),'subTotal':_0x3c2ea0(0x14b),'grandTotal':'کل','value':_0x3c2ea0(0x14e),'blank':'خالی','emptyPivot':{'filter':_0x3c2ea0(0x144),'row':_0x3c2ea0(0x150),'column':_0x3c2ea0(0x149),'values':'مقادیر'}}};export{a as default};function _0x30aa(){const _0x448c5e=['تعداد\x20از\x20','5445QuhSPB','2275242YyaKsp','7BUibmJ','واریانس\x20کلی\x20از\x20','465SpiymU','واریانس\x20از\x20','انحراف\x20معیار\x20کلی\x20از\x20','4GMVuDn','9SVVmkJ','جمع\x20از\x20','فیلتر','11041560SJZmcm','ستون\x20','345904WnMcad','بیشترین\x20از\x20','ستون','1971465fctJYz','جمع','338464aeVqez','4150TuYgUj','مقدار','(خالی)','سطر','انحراف\x20معیار\x20از\x20','میانگین\x20از\x20','244BzKIlM','کمترین\x20از\x20','ضرب\x20از\x20','تعداد\x20اعداد\x20از\x20'];_0x30aa=function(){return _0x448c5e;};return _0x30aa();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3ed8(_0x34048e,_0x5c1e1c){const _0x4293f8=_0x4293();return _0x3ed8=function(_0x3ed85e,_0x54ae84){_0x3ed85e=_0x3ed85e-0x8f;let _0x439df2=_0x4293f8[_0x3ed85e];return _0x439df2;},_0x3ed8(_0x34048e,_0x5c1e1c);}const _0x216e9c=_0x3ed8;(function(_0x6280d9,_0x178ccb){const _0x104f60=_0x3ed8,_0x3b88b9=_0x6280d9();while(!![]){try{const _0x4edcb8=-parseInt(_0x104f60(0x98))/0x1*(-parseInt(_0x104f60(0x92))/0x2)+-parseInt(_0x104f60(0x9a))/0x3*(-parseInt(_0x104f60(0x97))/0x4)+parseInt(_0x104f60(0xad))/0x5+parseInt(_0x104f60(0xa2))/0x6*(parseInt(_0x104f60(0xa0))/0x7)+-parseInt(_0x104f60(0x96))/0x8*(-parseInt(_0x104f60(0x99))/0x9)+-parseInt(_0x104f60(0x9f))/0xa+-parseInt(_0x104f60(0xa3))/0xb;if(_0x4edcb8===_0x178ccb)break;else _0x3b88b9['push'](_0x3b88b9['shift']());}catch(_0x4d5cb9){_0x3b88b9['push'](_0x3b88b9['shift']());}}}(_0x4293,0x778db));const a={'sheets-pivot':{'blankValue':_0x216e9c(0xac),'columnName':_0x216e9c(0xa6),'subTotalText':'Промежуточный\x20итог','grandTotalText':_0x216e9c(0xaa),'valueText':_0x216e9c(0xa8),'averageName':_0x216e9c(0x9b),'countName':_0x216e9c(0xa9),'countNumsName':_0x216e9c(0x8f),'maxName':_0x216e9c(0x9e),'minName':_0x216e9c(0x91),'productName':_0x216e9c(0x90),'stdDevName':_0x216e9c(0xa1),'stdDevpName':_0x216e9c(0xa5),'sumName':_0x216e9c(0xa7),'varName':_0x216e9c(0x94),'varpName':_0x216e9c(0xa4),'subTotal':_0x216e9c(0x9d),'grandTotal':_0x216e9c(0xaa),'value':'Значение','blank':_0x216e9c(0x9c),'emptyPivot':{'filter':_0x216e9c(0xab),'row':_0x216e9c(0x95),'column':_0x216e9c(0x93),'values':_0x216e9c(0xa8)}}};export{a as default};function _0x4293(){const _0x847064=['Среднее\x20по\x20','Пусто','Промежуточный\x20итог','Максимум\x20по\x20','6320650vTDxmX','40649rkvrbb','Стандартное\x20отклонение\x20по\x20','36CuxyUz','18105120bEezCa','Общая\x20дисперсия\x20по\x20','Общее\x20стандартное\x20отклонение\x20по\x20','Столбец\x20','Сумма\x20по\x20','Значение','Количество\x20по\x20','Общий\x20итог','Фильтр','(Пусто)','4303090dnZmoJ','Число\x20по\x20','Произведение\x20по\x20','Минимум\x20по\x20','26VTDSPc','Столбец','Дисперсия\x20по\x20','Строка','56GlCrEr','345944VzTAJE','56267tNbDOp','1021887LxPXZt','12nyYYYG'];_0x4293=function(){return _0x847064;};return _0x4293();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2e2e(){const _0x2c99f0=['250704LdcNZC','324443ebBLWz','Giá\x20trị','Phương\x20sai:','8793oKBekm','Giá\x20trị\x20tối\x20thiểu:','Giá\x20trị\x20trung\x20bình:','Tích:','Cột','45965LBJOsz','Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','Tổng\x20cộng','Tổng\x20phụ','Cột\x20','(Trống)','151947TfYfZo','Số\x20lượng\x20số:','Độ\x20lệch\x20chuẩn:','1096iBGVMi','Trống','230446TsBOOH','Giá\x20trị\x20tối\x20đa:','Số\x20lượng:','Tổng:','1012842PTwaCS','2xzDNFR'];_0x2e2e=function(){return _0x2c99f0;};return _0x2e2e();}const _0xfdeb7d=_0x22c2;function _0x22c2(_0x4ce587,_0x16b302){const _0x2e2e1c=_0x2e2e();return _0x22c2=function(_0x22c2f6,_0x390614){_0x22c2f6=_0x22c2f6-0xa6;let _0x43e8bc=_0x2e2e1c[_0x22c2f6];return _0x43e8bc;},_0x22c2(_0x4ce587,_0x16b302);}(function(_0xcfd5e0,_0x3ca2a6){const _0x29a281=_0x22c2,_0x1ab901=_0xcfd5e0();while(!![]){try{const _0x292f55=parseInt(_0x29a281(0xbf))/0x1*(parseInt(_0x29a281(0xaa))/0x2)+parseInt(_0x29a281(0xba))/0x3+-parseInt(_0x29a281(0xab))/0x4+-parseInt(_0x29a281(0xb4))/0x5+-parseInt(_0x29a281(0xa9))/0x6+-parseInt(_0x29a281(0xac))/0x7+-parseInt(_0x29a281(0xbd))/0x8*(-parseInt(_0x29a281(0xaf))/0x9);if(_0x292f55===_0x3ca2a6)break;else _0x1ab901['push'](_0x1ab901['shift']());}catch(_0x2803d5){_0x1ab901['push'](_0x1ab901['shift']());}}}(_0x2e2e,0x1f3af));const a={'sheets-pivot':{'blankValue':_0xfdeb7d(0xb9),'columnName':_0xfdeb7d(0xb8),'subTotalText':_0xfdeb7d(0xb7),'grandTotalText':'Tổng\x20cộng','valueText':_0xfdeb7d(0xad),'averageName':_0xfdeb7d(0xb1),'countName':_0xfdeb7d(0xa7),'countNumsName':_0xfdeb7d(0xbb),'maxName':_0xfdeb7d(0xa6),'minName':_0xfdeb7d(0xb0),'productName':_0xfdeb7d(0xb2),'stdDevName':_0xfdeb7d(0xbc),'stdDevpName':_0xfdeb7d(0xb5),'sumName':_0xfdeb7d(0xa8),'varName':_0xfdeb7d(0xae),'varpName':'Phương\x20sai\x20toàn\x20phần:','subTotal':_0xfdeb7d(0xb7),'grandTotal':_0xfdeb7d(0xb6),'value':'Giá\x20trị','blank':_0xfdeb7d(0xbe),'emptyPivot':{'filter':'Lọc','row':'Hàng','column':_0xfdeb7d(0xb3),'values':_0xfdeb7d(0xad)}}};export{a as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4dad(){const _0x50ecad=['平均值项:','方差项:','30iniMWh','最小值项:','16fQjdCY','2713122BTpVFe','418761Daoglg','244136CPbLda','349983dCUTMK','求和项:','计数项:','792406IHbHjI','最大值项:','30dNhpmA','(空白)','1roCLzz','763675VpDoPX','55oLkvMz','标准偏差项:','1427712Tibqyo'];_0x4dad=function(){return _0x50ecad;};return _0x4dad();}const _0x1bed7e=_0x51c0;(function(_0x2bcb83,_0x2d7ec2){const _0x251a0e=_0x51c0,_0x5d24c2=_0x2bcb83();while(!![]){try{const _0x5c0445=-parseInt(_0x251a0e(0xc9))/0x1*(-parseInt(_0x251a0e(0xc5))/0x2)+-parseInt(_0x251a0e(0xc2))/0x3+parseInt(_0x251a0e(0xd5))/0x4*(parseInt(_0x251a0e(0xcb))/0x5)+parseInt(_0x251a0e(0xd0))/0x6*(-parseInt(_0x251a0e(0xd4))/0x7)+parseInt(_0x251a0e(0xd2))/0x8*(-parseInt(_0x251a0e(0xd3))/0x9)+parseInt(_0x251a0e(0xc7))/0xa*(parseInt(_0x251a0e(0xca))/0xb)+parseInt(_0x251a0e(0xcd))/0xc;if(_0x5c0445===_0x2d7ec2)break;else _0x5d24c2['push'](_0x5d24c2['shift']());}catch(_0x563c66){_0x5d24c2['push'](_0x5d24c2['shift']());}}}(_0x4dad,0x5bd48));function _0x51c0(_0x38eb1d,_0x37dbe0){const _0x4dad4c=_0x4dad();return _0x51c0=function(_0x51c046,_0x445678){_0x51c046=_0x51c046-0xc2;let _0x5d89d2=_0x4dad4c[_0x51c046];return _0x5d89d2;},_0x51c0(_0x38eb1d,_0x37dbe0);}const a={'sheets-pivot':{'blankValue':_0x1bed7e(0xc8),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x1bed7e(0xce),'countName':_0x1bed7e(0xc4),'countNumsName':'数值计数项:','maxName':_0x1bed7e(0xc6),'minName':_0x1bed7e(0xd1),'productName':'乘积项:','stdDevName':_0x1bed7e(0xcc),'stdDevpName':'总体标准偏差项:','sumName':_0x1bed7e(0xc3),'varName':_0x1bed7e(0xcf),'varpName':'总体方差项:','subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};export{a as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4139(_0x39fb86,_0x7f4949){const _0x2c8aab=_0x2c8a();return _0x4139=function(_0x4139e4,_0x43d409){_0x4139e4=_0x4139e4-0x12e;let _0x2c3e67=_0x2c8aab[_0x4139e4];return _0x2c3e67;},_0x4139(_0x39fb86,_0x7f4949);}const _0x2faea9=_0x4139;function _0x2c8a(){const _0x31e9f8=['936162gFqtZT','3OEapuJ','數值計數項:','9700lZESyD','432075BGLTfR','方差項:','總體標準差項:','6WQegpx','標準差項:','最大值項:','總體方差項:','2605DRDRyL','最小值項:','89944NhCTzb','9SAbpnK','1411652GjgSph','2257526fophrs','14456280DSohig','平均值項:','(空白)'];_0x2c8a=function(){return _0x31e9f8;};return _0x2c8a();}(function(_0x42fc32,_0x4d4ff9){const _0x4cc585=_0x4139,_0x1dc0a3=_0x42fc32();while(!![]){try{const _0x26957e=-parseInt(_0x4cc585(0x137))/0x1+-parseInt(_0x4cc585(0x133))/0x2*(parseInt(_0x4cc585(0x138))/0x3)+-parseInt(_0x4cc585(0x13a))/0x4*(-parseInt(_0x4cc585(0x12e))/0x5)+parseInt(_0x4cc585(0x13e))/0x6*(parseInt(_0x4cc585(0x13b))/0x7)+parseInt(_0x4cc585(0x130))/0x8*(-parseInt(_0x4cc585(0x131))/0x9)+parseInt(_0x4cc585(0x134))/0xa+parseInt(_0x4cc585(0x132))/0xb;if(_0x26957e===_0x4d4ff9)break;else _0x1dc0a3['push'](_0x1dc0a3['shift']());}catch(_0x454cf7){_0x1dc0a3['push'](_0x1dc0a3['shift']());}}}(_0x2c8a,0xc8e9e));const a={'sheets-pivot':{'blankValue':_0x2faea9(0x136),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':_0x2faea9(0x135),'countName':'計數項:','countNumsName':_0x2faea9(0x139),'maxName':_0x2faea9(0x140),'minName':_0x2faea9(0x12f),'productName':'乘積項:','stdDevName':_0x2faea9(0x13f),'stdDevpName':_0x2faea9(0x13d),'sumName':'求和項:','varName':_0x2faea9(0x13c),'varpName':_0x2faea9(0x141),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};export{a as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export interface IAddPivotFieldCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
dataFieldId: string;
|
|
8
|
+
fieldArea: PivotTableFiledAreaEnum;
|
|
9
|
+
index: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const AddPivotFieldCommand: ICommand<IAddPivotFieldCommandParams>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { PositionType } from '../../const/const';
|
|
3
|
+
import { IPivotTableConfig } from '../../const/type';
|
|
4
|
+
export interface IAddPivotTableCommandParams {
|
|
5
|
+
positionType: PositionType;
|
|
6
|
+
pivotTableId?: string;
|
|
7
|
+
pivotTableConfig: Omit<IPivotTableConfig, 'fieldsConfig'>;
|
|
8
|
+
}
|
|
9
|
+
export declare const AddPivotTableCommand: ICommand<IAddPivotTableCommandParams>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export interface IMovePivotFieldCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pivotTableId: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
area: PivotTableFiledAreaEnum;
|
|
9
|
+
index: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const MovePivotFieldCommand: ICommand<IMovePivotFieldCommandParams>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface IRemovePivotFieldCommandParams {
|
|
3
|
+
unitId: string;
|
|
4
|
+
subUnitId: string;
|
|
5
|
+
pivotTableId: string;
|
|
6
|
+
fieldIds: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const RemovePivotFieldCommand: ICommand<IRemovePivotFieldCommandParams>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface ISetPivotCollapseCommandParams {
|
|
3
|
+
unitId: string;
|
|
4
|
+
subUnitId: string;
|
|
5
|
+
row: number;
|
|
6
|
+
col: number;
|
|
7
|
+
collapse: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SetPivotCollapseCommand: ICommand<ISetPivotCollapseCommandParams>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface ISetPivotFilterCommandParams {
|
|
3
|
+
unitId: string;
|
|
4
|
+
subUnitId: string;
|
|
5
|
+
pivotTableId: string;
|
|
6
|
+
tableFieldId: string;
|
|
7
|
+
items: string[];
|
|
8
|
+
isAll?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SetPivotFilterCommand: ICommand<ISetPivotFilterCommandParams>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { IPivotTableSortInfo } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export interface ISetPivotSortCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
tableFieldId: string;
|
|
7
|
+
pivotTableId: string;
|
|
8
|
+
info: IPivotTableSortInfo;
|
|
9
|
+
}
|
|
10
|
+
export declare const SetPivotSortCommand: ICommand<ISetPivotSortCommandParams>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { PivotSubtotalTypeEnum } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import { IPivotPanelSourceList, IPivotPanelTableListItemBase } from '../../const/type';
|
|
4
|
+
export interface IUpdatePivotFieldSettingCommandParams {
|
|
5
|
+
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
7
|
+
tableFieldId: string;
|
|
8
|
+
pivotTableId: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
format?: string;
|
|
11
|
+
subtotalType?: PivotSubtotalTypeEnum;
|
|
12
|
+
tableFieldInfo: IPivotPanelTableListItemBase;
|
|
13
|
+
dataFieldInfo: IPivotPanelSourceList;
|
|
14
|
+
}
|
|
15
|
+
export declare const UpdatePivotFieldSettingCommand: ICommand<IUpdatePivotFieldSettingCommandParams>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { IUnitRangeNameWithSubUnitId } from '../../const/type';
|
|
3
|
+
export interface IUpdatePivotTableSourceRangeCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
token: string;
|
|
7
|
+
dataRangeInfo: IUnitRangeNameWithSubUnitId;
|
|
8
|
+
}
|
|
9
|
+
export declare const UpdatePivotTableSourceRangeCommand: ICommand<IUpdatePivotTableSourceRangeCommandParams>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export interface IUpdatePivotValuePositionCommandParams {
|
|
4
|
+
pivotTableId: string;
|
|
5
|
+
position: PivotTableValuePositionEnum;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const UpdatePivotValuePositionCommand: ICommand<IUpdatePivotValuePositionCommandParams>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAccessor, ICommandService, IMutationInfo } from '@univerjs/core';
|
|
2
|
+
import { IPivotTableChangeSet } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import { IPivotGeneratedMutationsParams } from '../../const/type';
|
|
4
|
+
interface IPivotHostInfo {
|
|
5
|
+
pivotTableId: string;
|
|
6
|
+
unitId: string;
|
|
7
|
+
subUnitId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function applyChangeSet(_commandService: ICommandService, pivotInfo: IPivotHostInfo, changesets: IPivotTableChangeSet[]): {
|
|
10
|
+
redos: IMutationInfo<object>[];
|
|
11
|
+
undos: IMutationInfo<object>[];
|
|
12
|
+
};
|
|
13
|
+
export declare function generateMutationsFromPivotCommand(accessor: IAccessor, params: IPivotGeneratedMutationsParams): import('@univerjs/core').IUndoRedoCommandInfosByInterceptor;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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';
|
|
3
|
+
export declare function getFieldListByArea(config: IPivotTableSnapshot, area: PivotTableFiledAreaEnum): string[];
|
|
4
|
+
export declare function applyAddFieldChangeSet(config: IPivotTableSnapshot, change: IAddPivotFieldMutationParams): void;
|
|
5
|
+
export declare function applyRemoveFieldChangeSet(config: IPivotTableSnapshot, change: IRemovePivotFieldMutationParams): void;
|
|
6
|
+
export declare function applyRenameFieldChangeSet(config: IPivotTableSnapshot, change: IRenamePivotFieldMutationParams): void;
|
|
7
|
+
export declare function applyCollapseChangeSet(config: IPivotTableSnapshot, change: ISetPivotCollapseMutation): void;
|
|
8
|
+
export declare function applySetFormatChangeSet(config: IPivotTableSnapshot, change: ISetPivotFieldFormatMutationParams): void;
|
|
9
|
+
export declare function applySetFilterChangeSet(config: IPivotTableSnapshot, change: ISetPivotFilterMutationParams): void;
|
|
10
|
+
export declare function applySetSubtotalChangeSet(config: IPivotTableSnapshot, change: ISetPivotSubtotalTypeMutationParams): void;
|
|
11
|
+
export declare function applyFieldPositionChangeSet(config: IPivotTableSnapshot, change: IUpdateFieldPositionMutationParams): void;
|
|
12
|
+
export declare function applyValuePositionChangeSet(config: IPivotTableSnapshot, change: IUpdateValuePositionMutationParams): void;
|
|
13
|
+
export declare function applySourceInfoChangeSet(config: IPivotTableSnapshot, change: IUpdatePivotFieldSourceInfoMutationParams): void;
|
|
14
|
+
export declare function applySetSortChangeSet(config: IPivotTableSnapshot, change: ISetPivotSortMutationParams): void;
|
|
15
|
+
export declare function applySetOptionsChangeSet(config: IPivotTableSnapshot, change: ISetPivotOptionMutationParams): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IGetPivotDataLocalMutationParams, ISendInitPivotTextLocalMutationParams, ISendPivotConfigLocalMutationParams, ISendPivotDataLocalMutationParams, ISendPivotViewLocalMutationParams } from '../../const/type';
|
|
3
|
+
export declare const GetPivotDataLocalMutation: IMutation<IGetPivotDataLocalMutationParams>;
|
|
4
|
+
export declare const SendPivotDataLocalMutation: IMutation<ISendPivotDataLocalMutationParams>;
|
|
5
|
+
export declare const SendPivotViewLocalMutation: IMutation<ISendPivotViewLocalMutationParams>;
|
|
6
|
+
export declare const SendPivotConfigLocalMutation: IMutation<ISendPivotConfigLocalMutationParams>;
|
|
7
|
+
export declare const SendInitPivotTextLocalMutation: IMutation<ISendInitPivotTextLocalMutationParams>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const ReverseMap: {
|
|
2
|
+
"0": string;
|
|
3
|
+
"1": string;
|
|
4
|
+
"2": string;
|
|
5
|
+
"3": string;
|
|
6
|
+
"4": string;
|
|
7
|
+
"5": string;
|
|
8
|
+
"6": string;
|
|
9
|
+
"7": string;
|
|
10
|
+
"8": string;
|
|
11
|
+
"9": string;
|
|
12
|
+
N: string;
|
|
13
|
+
s: string;
|
|
14
|
+
X: string;
|
|
15
|
+
B: string;
|
|
16
|
+
l: string;
|
|
17
|
+
u: string;
|
|
18
|
+
h: string;
|
|
19
|
+
A: string;
|
|
20
|
+
I: string;
|
|
21
|
+
o: string;
|
|
22
|
+
i: string;
|
|
23
|
+
C: string;
|
|
24
|
+
n: string;
|
|
25
|
+
y: string;
|
|
26
|
+
Y: string;
|
|
27
|
+
E: string;
|
|
28
|
+
L: string;
|
|
29
|
+
t: string;
|
|
30
|
+
c: string;
|
|
31
|
+
H: string;
|
|
32
|
+
e: string;
|
|
33
|
+
D: string;
|
|
34
|
+
z: string;
|
|
35
|
+
J: string;
|
|
36
|
+
K: string;
|
|
37
|
+
F: string;
|
|
38
|
+
T: string;
|
|
39
|
+
p: string;
|
|
40
|
+
b: string;
|
|
41
|
+
V: string;
|
|
42
|
+
f: string;
|
|
43
|
+
O: string;
|
|
44
|
+
g: string;
|
|
45
|
+
w: string;
|
|
46
|
+
d: string;
|
|
47
|
+
S: string;
|
|
48
|
+
P: string;
|
|
49
|
+
q: string;
|
|
50
|
+
Z: string;
|
|
51
|
+
r: string;
|
|
52
|
+
k: string;
|
|
53
|
+
R: string;
|
|
54
|
+
m: string;
|
|
55
|
+
x: string;
|
|
56
|
+
W: string;
|
|
57
|
+
U: string;
|
|
58
|
+
v: string;
|
|
59
|
+
a: string;
|
|
60
|
+
G: string;
|
|
61
|
+
M: string;
|
|
62
|
+
j: string;
|
|
63
|
+
Q: string;
|
|
64
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Injector, IRange } from '@univerjs/core';
|
|
2
|
+
import { IPivotViewCellData, IPivotViewValueType, PivotView, PivotViewItem } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import { default as zhCN } from '../locale/zh-CN';
|
|
4
|
+
import { IAdjustPivotTableRes, IPivotTableConfig, IThemeStyle } from './type';
|
|
5
|
+
export declare const BUILD_TIMESTAMP: number;
|
|
6
|
+
export declare const PIVOT_ICON_OFFSET = 16;
|
|
7
|
+
export declare const DEFAULT_PIVOT_NUMBER = 1;
|
|
8
|
+
export declare const SHEET_PIVOT_TABLE_PLUGIN = "SHEET_PIVOT_TABLE_PLUGIN";
|
|
9
|
+
export declare const BLANK_ROW_COUNT = 1;
|
|
10
|
+
export declare const BLANK_COL_COUNT = 1;
|
|
11
|
+
export declare const PIVOT_COL_HEADER_FROM = 1;
|
|
12
|
+
export declare const DEFAULT_FONT_LEFT_PADDING = 15;
|
|
13
|
+
export declare const DEFAULT_FIELD_BG_COLOR = "rgb(240,241,243)";
|
|
14
|
+
export declare const DEFAULT_DATA_BG_COLOR = "rgb(255,255,255)";
|
|
15
|
+
export declare const DEFAULT_PIVOT_BORDER_COLOR = "#b2b2b2";
|
|
16
|
+
export declare const DEFAULT_PIVOT_PAGE_VIEW_BG = "#f4f4f5";
|
|
17
|
+
export declare const DEFAULT_PIVOT_LEAF_VIEW_BG = "#f4f4f5";
|
|
18
|
+
export declare const DEFAULT_PIVOT_CORNER_VIEW_VG = "#eceeff";
|
|
19
|
+
export declare const DEFAULT_PIVOT_GRAND_TOTAL_BG = "#1d32e9";
|
|
20
|
+
export declare const DEFAULT_PIVOT_GRAND_TOTAL_CL = "#FFFFFF";
|
|
21
|
+
export declare const DEFAULT_PIVOT_SUB_TOTAL_BG = "#e6ebfa";
|
|
22
|
+
export declare const DEFAULT_PIVOT_COL_VIEW_BG = "#1d32e9";
|
|
23
|
+
export declare const DEFAULT_PIVOT_COL_VIEW_CL = "#FFFFFF";
|
|
24
|
+
export declare const DEFAULT_PIVOT_ROW_VIEW_BG = "#e6ebfb";
|
|
25
|
+
export declare const DEFAULT_PIVOT_DATA_VIEW_BG = "#e6ebfb";
|
|
26
|
+
export declare const DEFAULT_EMPTY_PIVOT_ROW_COUNT = 14;
|
|
27
|
+
export declare const DEFAULT_EMPTY_PIVOT_COL_COUNT = 6;
|
|
28
|
+
export declare enum PositionType {
|
|
29
|
+
Exiting = "exiting",
|
|
30
|
+
New = "new"
|
|
31
|
+
}
|
|
32
|
+
export declare const localeTemplate: typeof zhCN;
|
|
33
|
+
export declare const PIVOT_TABLE_QUERY_DELAY = 30;
|
|
34
|
+
export declare const defaultEmptyPivotFieldCellStyle: {
|
|
35
|
+
bg: {
|
|
36
|
+
rgb: string;
|
|
37
|
+
};
|
|
38
|
+
ht: number;
|
|
39
|
+
vt: number;
|
|
40
|
+
tb: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const defaultEmptyPivotDataCellStyle: {
|
|
43
|
+
bg: {
|
|
44
|
+
rgb: string;
|
|
45
|
+
};
|
|
46
|
+
ht: number;
|
|
47
|
+
vt: number;
|
|
48
|
+
tb: number;
|
|
49
|
+
};
|
|
50
|
+
export declare const defaultThemeStyle: IThemeStyle;
|
|
51
|
+
export declare const generatorAdjustPositionData: (injector: Injector, data: PivotView, pivotTableConfig: IPivotTableConfig, textInfo: Record<string, string>) => IAdjustPivotTableRes;
|
|
52
|
+
export declare function transFromCellValue(cellData: IPivotViewCellData, isValue: boolean, format: string | undefined, textInfo: Record<string, string>): IPivotViewValueType;
|
|
53
|
+
export declare function transformErrorValue(value: IPivotViewValueType): string | number | import('@univerjs-pro/engine-pivot').IPivotViewPrefixValue | undefined;
|
|
54
|
+
export declare function getAdjustRangesPosition(startCell: {
|
|
55
|
+
row: number;
|
|
56
|
+
col: number;
|
|
57
|
+
}, view: PivotViewItem, singleCellIsRange?: boolean, useLastRowOrCol?: boolean): IRange[];
|
|
58
|
+
export declare const SHEET_PIVOT_IN_MAIN_THREAD = "SHEET_PIVOT_IN_MAIN_THREAD";
|
|
59
|
+
export declare const SHEET_PIVOT_EXCLUSIVE_ID = "SHEET_PIVOT_EXCLUSIVE_ID";
|
|
60
|
+
export declare enum PivotDisplayDataType {
|
|
61
|
+
Filter = "filter",
|
|
62
|
+
Panel = "panel",
|
|
63
|
+
AddPivotField = "addPivotField",
|
|
64
|
+
AddPivotTableWithConfig = "AddPivotTableWithConfig",
|
|
65
|
+
AddPivotTable = "addPivotTable",
|
|
66
|
+
MovePivotField = "movePivotField",
|
|
67
|
+
RemovePivotField = "removePivotField",
|
|
68
|
+
SetPivotCollapse = "setPivotCollapse",
|
|
69
|
+
SetPivotFilter = "setPivotFilter",
|
|
70
|
+
SetPivotSort = "setPivotSort",
|
|
71
|
+
SetPivotSetting = "setPivotSetting",
|
|
72
|
+
UpdatePivotSource = "updatePivotSource",
|
|
73
|
+
UpdateValuePosition = "updateValuePosition",
|
|
74
|
+
DrillDown = "drillDown"
|
|
75
|
+
}
|
|
76
|
+
export declare const defaultTextInfo: {
|
|
77
|
+
'sheets-pivot.blankValue': string;
|
|
78
|
+
'sheets-pivot.columnName': string;
|
|
79
|
+
'sheets-pivot.subTotalText': string;
|
|
80
|
+
'sheets-pivot.grandTotalText': string;
|
|
81
|
+
'sheets-pivot.valueText': string;
|
|
82
|
+
'sheets-pivot.averageName': string;
|
|
83
|
+
'sheets-pivot.countName': string;
|
|
84
|
+
'sheets-pivot.countNumsName': string;
|
|
85
|
+
'sheets-pivot.maxName': string;
|
|
86
|
+
'sheets-pivot.minName': string;
|
|
87
|
+
'sheets-pivot.productName': string;
|
|
88
|
+
'sheets-pivot.stdDevName': string;
|
|
89
|
+
'sheets-pivot.stdDevpName': string;
|
|
90
|
+
'sheets-pivot.sumName': string;
|
|
91
|
+
'sheets-pivot.varName': string;
|
|
92
|
+
'sheets-pivot.varpName': string;
|
|
93
|
+
'sheets-pivot.subTotal': string;
|
|
94
|
+
'sheets-pivot.grandTotal': string;
|
|
95
|
+
'sheets-pivot.value': string;
|
|
96
|
+
'sheets-pivot.blank': string;
|
|
97
|
+
'sheets-pivot.emptyPivot.filter': string;
|
|
98
|
+
'sheets-pivot.emptyPivot.row': string;
|
|
99
|
+
'sheets-pivot.emptyPivot.column': string;
|
|
100
|
+
'sheets-pivot.emptyPivot.values': string;
|
|
101
|
+
};
|
|
102
|
+
export declare const defaultEmptyPivotGeneratedMutations: {
|
|
103
|
+
undos: never[];
|
|
104
|
+
redos: never[];
|
|
105
|
+
preUndos: never[];
|
|
106
|
+
preRedos: never[];
|
|
107
|
+
};
|