@univerjs-pro/sheets-pivot 0.4.2 → 0.5.0-alpha.0

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.
Files changed (77) hide show
  1. package/README.md +13 -15
  2. package/lib/cjs/facade.js +1 -0
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -0
  5. package/lib/cjs/locale/fa-IR.js +1 -0
  6. package/lib/cjs/locale/ru-RU.js +1 -0
  7. package/lib/cjs/locale/vi-VN.js +1 -0
  8. package/lib/cjs/locale/zh-CN.js +1 -0
  9. package/lib/cjs/locale/zh-TW.js +1 -0
  10. package/lib/es/facade.js +1 -0
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -0
  13. package/lib/es/locale/fa-IR.js +1 -0
  14. package/lib/es/locale/ru-RU.js +1 -0
  15. package/lib/es/locale/vi-VN.js +1 -0
  16. package/lib/es/locale/zh-CN.js +1 -0
  17. package/lib/es/locale/zh-TW.js +1 -0
  18. package/lib/types/index.d.ts +1158 -29
  19. package/lib/umd/facade.js +1 -0
  20. package/lib/umd/index.js +1 -1
  21. package/lib/umd/locale/en-US.js +1 -0
  22. package/lib/umd/locale/fa-IR.js +1 -0
  23. package/lib/umd/locale/ru-RU.js +1 -0
  24. package/lib/umd/locale/vi-VN.js +1 -0
  25. package/lib/umd/locale/zh-CN.js +1 -0
  26. package/lib/umd/locale/zh-TW.js +1 -0
  27. package/package.json +39 -20
  28. package/lib/locale/en-US.json +0 -30
  29. package/lib/locale/fa-IR.json +0 -30
  30. package/lib/locale/ru-RU.json +0 -30
  31. package/lib/locale/vi-VN.json +0 -30
  32. package/lib/locale/zh-CN.json +0 -30
  33. package/lib/locale/zh-TW.json +0 -30
  34. package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +0 -3
  35. package/lib/types/commands/command/util.d.ts +0 -12
  36. package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +0 -3
  37. package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +0 -3
  38. package/lib/types/commands/mutations/change-apply-util.d.ts +0 -15
  39. package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +0 -7
  40. package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +0 -3
  41. package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +0 -3
  42. package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +0 -3
  43. package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +0 -3
  44. package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +0 -3
  45. package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +0 -3
  46. package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +0 -3
  47. package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +0 -3
  48. package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +0 -3
  49. package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +0 -3
  50. package/lib/types/commands/mutations/update-field-position.mutation.d.ts +0 -3
  51. package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +0 -3
  52. package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +0 -3
  53. package/lib/types/commands/mutations/update-value-position.mutation.d.ts +0 -3
  54. package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +0 -3
  55. package/lib/types/common/const.d.ts +0 -64
  56. package/lib/types/const/const.d.ts +0 -99
  57. package/lib/types/const/template.d.ts +0 -885
  58. package/lib/types/const/type.d.ts +0 -522
  59. package/lib/types/controllers/config.schema.d.ts +0 -6
  60. package/lib/types/controllers/const.d.ts +0 -1
  61. package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +0 -44
  62. package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +0 -20
  63. package/lib/types/locale/en-US.d.ts +0 -3
  64. package/lib/types/locale/fa-IR.d.ts +0 -3
  65. package/lib/types/locale/ru-RU.d.ts +0 -3
  66. package/lib/types/locale/vi-VN.d.ts +0 -3
  67. package/lib/types/locale/zh-CN.d.ts +0 -31
  68. package/lib/types/locale/zh-TW.d.ts +0 -3
  69. package/lib/types/models/sheets-pivot-config-model.d.ts +0 -58
  70. package/lib/types/models/sheets-pivot-data-field-manager.d.ts +0 -77
  71. package/lib/types/models/sheets-pivot-data-source-model.d.ts +0 -101
  72. package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +0 -54
  73. package/lib/types/models/view-util.d.ts +0 -16
  74. package/lib/types/plugin.d.ts +0 -17
  75. package/lib/types/services/sheets-pivot-rpc.service.d.ts +0 -11
  76. package/lib/types/services/sheets-pivot-table.service.d.ts +0 -10
  77. package/lib/types/util.d.ts +0 -52
@@ -0,0 +1 @@
1
+ function _0x57d5(_0x2608e8,_0x5bc08f){var _0xdd640f=_0xdd64();return _0x57d5=function(_0x57d5f0,_0x12d5e5){_0x57d5f0=_0x57d5f0-0x16e;var _0x51b20d=_0xdd640f[_0x57d5f0];return _0x51b20d;},_0x57d5(_0x2608e8,_0x5bc08f);}function _0xdd64(){var _0x1ddac7=['5nRMXEK','StdDev\x20of\x20','Max\x20of\x20','52824MPWXkX','Min\x20of\x20','3GtWown','2170068HdBgKp','Values','201099AcaVil','Value','3909594ywBNNZ','Column\x20','Product\x20of\x20','6236470pXkzak','2046rDFcxl','object','UniverSheetsPivotEnUS','Total','Varp\x20of\x20','value','7SKWYhl','Row','Column','9daNPpx','652714iIVlXx','Average\x20of\x20','3285784pphNwV','StdDevp\x20of\x20','Subtotal','Count\x20of\x20','Grand\x20Total','function','Filter','(Blank)'];_0xdd64=function(){return _0x1ddac7;};return _0xdd64();}(function(_0x157ffe,_0x3e50a5){var _0x335479=_0x57d5,_0x43f9c2=_0x157ffe();while(!![]){try{var _0x42dd11=parseInt(_0x335479(0x18e))/0x1+parseInt(_0x335479(0x17c))/0x2*(-parseInt(_0x335479(0x18b))/0x3)+-parseInt(_0x335479(0x18c))/0x4*(-parseInt(_0x335479(0x186))/0x5)+-parseInt(_0x335479(0x16e))/0x6*(parseInt(_0x335479(0x178))/0x7)+parseInt(_0x335479(0x17e))/0x8*(parseInt(_0x335479(0x17b))/0x9)+-parseInt(_0x335479(0x171))/0xa+-parseInt(_0x335479(0x172))/0xb*(-parseInt(_0x335479(0x189))/0xc);if(_0x42dd11===_0x3e50a5)break;else _0x43f9c2['push'](_0x43f9c2['shift']());}catch(_0x20f4d8){_0x43f9c2['push'](_0x43f9c2['shift']());}}}(_0xdd64,0x5ab34),function(_0x3d1142,_0x224949){var _0x29c007=_0x57d5;typeof exports==_0x29c007(0x173)&&typeof module<'u'?module['exports']=_0x224949():typeof define==_0x29c007(0x183)&&define['amd']?define(_0x224949):(_0x3d1142=typeof globalThis<'u'?globalThis:_0x3d1142||self,_0x3d1142[_0x29c007(0x174)]=_0x224949());}(this,function(){'use strict';var _0x567988=_0x57d5;return{'sheets-pivot':{'blankValue':_0x567988(0x185),'columnName':_0x567988(0x16f),'subTotalText':_0x567988(0x175),'grandTotalText':_0x567988(0x182),'valueText':_0x567988(0x18f),'averageName':_0x567988(0x17d),'countName':_0x567988(0x181),'countNumsName':_0x567988(0x181),'maxName':_0x567988(0x188),'minName':_0x567988(0x18a),'productName':_0x567988(0x170),'stdDevName':_0x567988(0x187),'stdDevpName':_0x567988(0x17f),'sumName':'Sum\x20of\x20','varName':'Var\x20of\x20','varpName':_0x567988(0x176),'subTotal':_0x567988(0x180),'grandTotal':_0x567988(0x182),'value':_0x567988(0x177),'blank':'blank','emptyPivot':{'filter':_0x567988(0x184),'row':_0x567988(0x179),'column':_0x567988(0x17a),'values':_0x567988(0x18d)}}};}));
@@ -0,0 +1 @@
1
+ function _0x2441(_0x46f5d7,_0x5f4746){var _0x1e47fd=_0x1e47();return _0x2441=function(_0x244170,_0x368ae6){_0x244170=_0x244170-0xcd;var _0x5bd6f4=_0x1e47fd[_0x244170];return _0x5bd6f4;},_0x2441(_0x46f5d7,_0x5f4746);}function _0x1e47(){var _0x5f350c=['تعداد\x20از\x20','میانگین\x20از\x20','958710eFQuiU','مقدار','function','ضرب\x20از\x20','1095342bUdlrr','ستون\x20','جمع\x20از\x20','6gEHlOb','object','24pARyPV','104290ppOQZX','جمع','UniverSheetsPivotFaIR','واریانس\x20از\x20','3008GGnbbe','فیلتر','1308727DMjxIe','(خالی)','سطر','1nDrpOC','ستون','exports','1520iXhdIP','کمترین\x20از\x20','436419IFVyjj','3107304wubdOT','583HHqVNL','واریانس\x20کلی\x20از\x20'];_0x1e47=function(){return _0x5f350c;};return _0x1e47();}(function(_0xc99931,_0x5dae86){var _0x47c2c0=_0x2441,_0x5eeadb=_0xc99931();while(!![]){try{var _0x1da986=parseInt(_0x47c2c0(0xd6))/0x1*(-parseInt(_0x47c2c0(0xe1))/0x2)+parseInt(_0x47c2c0(0xe5))/0x3+-parseInt(_0x47c2c0(0xd1))/0x4*(-parseInt(_0x47c2c0(0xd9))/0x5)+-parseInt(_0x47c2c0(0xe8))/0x6*(-parseInt(_0x47c2c0(0xd3))/0x7)+-parseInt(_0x47c2c0(0xea))/0x8*(parseInt(_0x47c2c0(0xdb))/0x9)+parseInt(_0x47c2c0(0xcd))/0xa*(parseInt(_0x47c2c0(0xdd))/0xb)+-parseInt(_0x47c2c0(0xdc))/0xc;if(_0x1da986===_0x5dae86)break;else _0x5eeadb['push'](_0x5eeadb['shift']());}catch(_0x2cfc9a){_0x5eeadb['push'](_0x5eeadb['shift']());}}}(_0x1e47,0x6dc72),function(_0x4d46d1,_0x3d8c51){var _0x2a3b07=_0x2441;typeof exports==_0x2a3b07(0xe9)&&typeof module<'u'?module[_0x2a3b07(0xd8)]=_0x3d8c51():typeof define==_0x2a3b07(0xe3)&&define['amd']?define(_0x3d8c51):(_0x4d46d1=typeof globalThis<'u'?globalThis:_0x4d46d1||self,_0x4d46d1[_0x2a3b07(0xcf)]=_0x3d8c51());}(this,function(){'use strict';var _0x75b86b=_0x2441;return{'sheets-pivot':{'blankValue':_0x75b86b(0xd4),'columnName':_0x75b86b(0xe6),'subTotalText':'جمع','grandTotalText':'کل','valueText':_0x75b86b(0xe2),'averageName':_0x75b86b(0xe0),'countName':_0x75b86b(0xdf),'countNumsName':'تعداد\x20اعداد\x20از\x20','maxName':'بیشترین\x20از\x20','minName':_0x75b86b(0xda),'productName':_0x75b86b(0xe4),'stdDevName':'انحراف\x20معیار\x20از\x20','stdDevpName':'انحراف\x20معیار\x20کلی\x20از\x20','sumName':_0x75b86b(0xe7),'varName':_0x75b86b(0xd0),'varpName':_0x75b86b(0xde),'subTotal':_0x75b86b(0xce),'grandTotal':'کل','value':_0x75b86b(0xe2),'blank':'خالی','emptyPivot':{'filter':_0x75b86b(0xd2),'row':_0x75b86b(0xd5),'column':_0x75b86b(0xd7),'values':'مقادیر'}}};}));
@@ -0,0 +1 @@
1
+ function _0x5afc(){var _0x1e7f15=['144rPohLM','Дисперсия\x20по\x20','161420fUxdbj','Общая\x20дисперсия\x20по\x20','Произведение\x20по\x20','Максимум\x20по\x20','(Пусто)','Количество\x20по\x20','Промежуточный\x20итог','Минимум\x20по\x20','Общий\x20итог','354880VJHQSj','655106Quyytc','377208FfIveV','object','Сумма\x20по\x20','Фильтр','Значение','Столбец','14frwmnG','193310BFbMek','Пусто','8ZGRnEd','314595kLunlb','Строка','143kvGxVH','660728KGXPee','Столбец\x20','Число\x20по\x20','12TjrwNM'];_0x5afc=function(){return _0x1e7f15;};return _0x5afc();}function _0x4458(_0x1541e0,_0x239bbf){var _0x5afc5c=_0x5afc();return _0x4458=function(_0x445839,_0x508a19){_0x445839=_0x445839-0x13a;var _0x401f5e=_0x5afc5c[_0x445839];return _0x401f5e;},_0x4458(_0x1541e0,_0x239bbf);}(function(_0x3dd922,_0x300d79){var _0x57ed1f=_0x4458,_0xae5409=_0x3dd922();while(!![]){try{var _0x410434=-parseInt(_0x57ed1f(0x141))/0x1+parseInt(_0x57ed1f(0x157))/0x2+-parseInt(_0x57ed1f(0x144))/0x3*(-parseInt(_0x57ed1f(0x143))/0x4)+parseInt(_0x57ed1f(0x156))/0x5*(parseInt(_0x57ed1f(0x14a))/0x6)+parseInt(_0x57ed1f(0x140))/0x7*(-parseInt(_0x57ed1f(0x147))/0x8)+-parseInt(_0x57ed1f(0x14b))/0x9*(-parseInt(_0x57ed1f(0x14d))/0xa)+-parseInt(_0x57ed1f(0x146))/0xb*(parseInt(_0x57ed1f(0x13a))/0xc);if(_0x410434===_0x300d79)break;else _0xae5409['push'](_0xae5409['shift']());}catch(_0x3446fa){_0xae5409['push'](_0xae5409['shift']());}}}(_0x5afc,0x29985),function(_0x4c6b9f,_0x267e1a){var _0x5168f4=_0x4458;typeof exports==_0x5168f4(0x13b)&&typeof module<'u'?module['exports']=_0x267e1a():typeof define=='function'&&define['amd']?define(_0x267e1a):(_0x4c6b9f=typeof globalThis<'u'?globalThis:_0x4c6b9f||self,_0x4c6b9f['UniverSheetsPivotRuRU']=_0x267e1a());}(this,function(){'use strict';var _0x4ba881=_0x4458;return{'sheets-pivot':{'blankValue':_0x4ba881(0x151),'columnName':_0x4ba881(0x148),'subTotalText':_0x4ba881(0x153),'grandTotalText':_0x4ba881(0x155),'valueText':_0x4ba881(0x13e),'averageName':'Среднее\x20по\x20','countName':_0x4ba881(0x152),'countNumsName':_0x4ba881(0x149),'maxName':_0x4ba881(0x150),'minName':_0x4ba881(0x154),'productName':_0x4ba881(0x14f),'stdDevName':'Стандартное\x20отклонение\x20по\x20','stdDevpName':'Общее\x20стандартное\x20отклонение\x20по\x20','sumName':_0x4ba881(0x13c),'varName':_0x4ba881(0x14c),'varpName':_0x4ba881(0x14e),'subTotal':_0x4ba881(0x153),'grandTotal':_0x4ba881(0x155),'value':_0x4ba881(0x13e),'blank':_0x4ba881(0x142),'emptyPivot':{'filter':_0x4ba881(0x13d),'row':_0x4ba881(0x145),'column':_0x4ba881(0x13f),'values':_0x4ba881(0x13e)}}};}));
@@ -0,0 +1 @@
1
+ (function(_0x5b5d05,_0x4d422a){var _0x3d4ed3=_0x4b7f,_0x53ab8c=_0x5b5d05();while(!![]){try{var _0x5a25d7=-parseInt(_0x3d4ed3(0x1af))/0x1*(parseInt(_0x3d4ed3(0x1b3))/0x2)+-parseInt(_0x3d4ed3(0x1a9))/0x3*(-parseInt(_0x3d4ed3(0x1b6))/0x4)+-parseInt(_0x3d4ed3(0x1bf))/0x5*(parseInt(_0x3d4ed3(0x1b0))/0x6)+-parseInt(_0x3d4ed3(0x1b1))/0x7+parseInt(_0x3d4ed3(0x1b8))/0x8+-parseInt(_0x3d4ed3(0x1ad))/0x9+parseInt(_0x3d4ed3(0x1b5))/0xa;if(_0x5a25d7===_0x4d422a)break;else _0x53ab8c['push'](_0x53ab8c['shift']());}catch(_0x5cdb6f){_0x53ab8c['push'](_0x53ab8c['shift']());}}}(_0x455c,0x536bc),function(_0xed75e0,_0x3da539){var _0x126502=_0x4b7f;typeof exports==_0x126502(0x1c0)&&typeof module<'u'?module[_0x126502(0x1b4)]=_0x3da539():typeof define==_0x126502(0x1bc)&&define['amd']?define(_0x3da539):(_0xed75e0=typeof globalThis<'u'?globalThis:_0xed75e0||self,_0xed75e0[_0x126502(0x1a8)]=_0x3da539());}(this,function(){'use strict';var _0x56dee=_0x4b7f;return{'sheets-pivot':{'blankValue':'(Trống)','columnName':_0x56dee(0x1bd),'subTotalText':_0x56dee(0x1ae),'grandTotalText':'Tổng\x20cộng','valueText':_0x56dee(0x1a7),'averageName':_0x56dee(0x1ba),'countName':_0x56dee(0x1be),'countNumsName':'Số\x20lượng\x20số:','maxName':_0x56dee(0x1ab),'minName':'Giá\x20trị\x20tối\x20thiểu:','productName':_0x56dee(0x1b7),'stdDevName':_0x56dee(0x1b2),'stdDevpName':_0x56dee(0x1bb),'sumName':_0x56dee(0x1b9),'varName':_0x56dee(0x1ac),'varpName':'Phương\x20sai\x20toàn\x20phần:','subTotal':_0x56dee(0x1ae),'grandTotal':'Tổng\x20cộng','value':_0x56dee(0x1a7),'blank':'Trống','emptyPivot':{'filter':_0x56dee(0x1aa),'row':'Hàng','column':'Cột','values':_0x56dee(0x1a7)}}};}));function _0x4b7f(_0x5a814f,_0x2435a1){var _0x455c0f=_0x455c();return _0x4b7f=function(_0x4b7f05,_0x3596c9){_0x4b7f05=_0x4b7f05-0x1a7;var _0xe0127=_0x455c0f[_0x4b7f05];return _0xe0127;},_0x4b7f(_0x5a814f,_0x2435a1);}function _0x455c(){var _0x168bcc=['Lọc','Giá\x20trị\x20tối\x20đa:','Phương\x20sai:','4545828mzHmoR','Tổng\x20phụ','6KXbpBW','2515686YbIFIp','2369752VIGYnm','Độ\x20lệch\x20chuẩn:','123434EeHPSg','exports','9986990QcRPhr','4UPgUZP','Tích:','2622376bAlJmy','Tổng:','Giá\x20trị\x20trung\x20bình:','Độ\x20lệch\x20chuẩn\x20toàn\x20phần:','function','Cột\x20','Số\x20lượng:','5lkIYwJ','object','Giá\x20trị','UniverSheetsPivotViVN','1945221VOJAEV'];_0x455c=function(){return _0x168bcc;};return _0x455c();}
@@ -0,0 +1 @@
1
+ function _0x51ae(_0x650325,_0x3a0b16){var _0x285185=_0x2851();return _0x51ae=function(_0x51aeb1,_0x5e2f3c){_0x51aeb1=_0x51aeb1-0x164;var _0x55182f=_0x285185[_0x51aeb1];return _0x55182f;},_0x51ae(_0x650325,_0x3a0b16);}(function(_0x158d17,_0x299b77){var _0x37910b=_0x51ae,_0x598bf8=_0x158d17();while(!![]){try{var _0x572b2e=parseInt(_0x37910b(0x170))/0x1*(-parseInt(_0x37910b(0x16e))/0x2)+-parseInt(_0x37910b(0x16d))/0x3+-parseInt(_0x37910b(0x173))/0x4+parseInt(_0x37910b(0x17c))/0x5+-parseInt(_0x37910b(0x167))/0x6+-parseInt(_0x37910b(0x17a))/0x7*(parseInt(_0x37910b(0x171))/0x8)+-parseInt(_0x37910b(0x16f))/0x9*(-parseInt(_0x37910b(0x176))/0xa);if(_0x572b2e===_0x299b77)break;else _0x598bf8['push'](_0x598bf8['shift']());}catch(_0x160ddf){_0x598bf8['push'](_0x598bf8['shift']());}}}(_0x2851,0x3dcc6),function(_0x2d1c7f,_0x5de107){var _0x672840=_0x51ae;typeof exports==_0x672840(0x168)&&typeof module<'u'?module[_0x672840(0x174)]=_0x5de107():typeof define=='function'&&define[_0x672840(0x17b)]?define(_0x5de107):(_0x2d1c7f=typeof globalThis<'u'?globalThis:_0x2d1c7f||self,_0x2d1c7f[_0x672840(0x166)]=_0x5de107());}(this,function(){'use strict';var _0x118705=_0x51ae;return{'sheets-pivot':{'blankValue':_0x118705(0x165),'columnName':'列\x20','subTotalText':'汇总','grandTotalText':'总计','valueText':'值','averageName':_0x118705(0x172),'countName':_0x118705(0x175),'countNumsName':_0x118705(0x179),'maxName':_0x118705(0x164),'minName':_0x118705(0x16b),'productName':_0x118705(0x178),'stdDevName':_0x118705(0x169),'stdDevpName':_0x118705(0x177),'sumName':'求和项:','varName':_0x118705(0x16c),'varpName':_0x118705(0x16a),'subTotal':'汇总','grandTotal':'总计','value':'值','blank':'空白','emptyPivot':{'filter':'筛选','row':'行','column':'列','values':'值'}}};}));function _0x2851(){var _0x24f3b2=['总体标准偏差项:','乘积项:','数值计数项:','2890489CwMBQd','amd','1020195bIJFET','最大值项:','(空白)','UniverSheetsPivotZhCN','615012riFOIz','object','标准偏差项:','总体方差项:','最小值项:','方差项:','1081965LZgWXA','206tYGhKP','9BySkiC','341sOFqtS','8slOOkL','平均值项:','1942116nnAGwe','exports','计数项:','14458230ZCPgga'];_0x2851=function(){return _0x24f3b2;};return _0x2851();}
@@ -0,0 +1 @@
1
+ function _0x2f86(){var _0x3974a0=['總體標準差項:','object','1128564WyTZbJ','求和項:','方差項:','(空白)','最小值項:','25lStlok','340290qSivpC','數值計數項:','總體方差項:','function','8730516JiQLXu','最大值項:','583926jrfsVp','UniverSheetsPivotZhTW','exports','11ttakPJ','標準差項:','6KGokWe','152984fbNiyO','162nokXZp','76238EMinFw','amd','計數項:','12MzXwPE','360608uwvYLb'];_0x2f86=function(){return _0x3974a0;};return _0x2f86();}function _0x44d1(_0x460874,_0x4712a7){var _0x2f86ba=_0x2f86();return _0x44d1=function(_0x44d157,_0x24c71e){_0x44d157=_0x44d157-0xc3;var _0x39d757=_0x2f86ba[_0x44d157];return _0x39d757;},_0x44d1(_0x460874,_0x4712a7);}(function(_0x2d010b,_0x51060d){var _0x13c4cf=_0x44d1,_0x2b0cac=_0x2d010b();while(!![]){try{var _0x26528a=-parseInt(_0x13c4cf(0xdc))/0x1*(parseInt(_0x13c4cf(0xc4))/0x2)+parseInt(_0x13c4cf(0xcb))/0x3+parseInt(_0x13c4cf(0xc8))/0x4*(parseInt(_0x13c4cf(0xd0))/0x5)+-parseInt(_0x13c4cf(0xc7))/0x6*(parseInt(_0x13c4cf(0xd7))/0x7)+parseInt(_0x13c4cf(0xdd))/0x8+-parseInt(_0x13c4cf(0xc3))/0x9*(-parseInt(_0x13c4cf(0xd1))/0xa)+-parseInt(_0x13c4cf(0xda))/0xb*(parseInt(_0x13c4cf(0xd5))/0xc);if(_0x26528a===_0x51060d)break;else _0x2b0cac['push'](_0x2b0cac['shift']());}catch(_0x365b71){_0x2b0cac['push'](_0x2b0cac['shift']());}}}(_0x2f86,0x51e8c),function(_0x109ba5,_0x3e9037){var _0x51e42f=_0x44d1;typeof exports==_0x51e42f(0xca)&&typeof module<'u'?module[_0x51e42f(0xd9)]=_0x3e9037():typeof define==_0x51e42f(0xd4)&&define[_0x51e42f(0xc5)]?define(_0x3e9037):(_0x109ba5=typeof globalThis<'u'?globalThis:_0x109ba5||self,_0x109ba5[_0x51e42f(0xd8)]=_0x3e9037());}(this,function(){'use strict';var _0x5518c0=_0x44d1;return{'sheets-pivot':{'blankValue':_0x5518c0(0xce),'columnName':'欄\x20','subTotalText':'小計','grandTotalText':'總計','valueText':'值','averageName':'平均值項:','countName':_0x5518c0(0xc6),'countNumsName':_0x5518c0(0xd2),'maxName':_0x5518c0(0xd6),'minName':_0x5518c0(0xcf),'productName':'乘積項:','stdDevName':_0x5518c0(0xdb),'stdDevpName':_0x5518c0(0xc9),'sumName':_0x5518c0(0xcc),'varName':_0x5518c0(0xcd),'varpName':_0x5518c0(0xd3),'subTotal':'小計','grandTotal':'總計','value':'值','blank':'空白','emptyPivot':{'filter':'篩選','row':'行','column':'欄','values':'值'}}};}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-pivot",
3
- "version": "0.4.2",
3
+ "version": "0.5.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Univer Sheets Pivot Table",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -28,11 +28,19 @@
28
28
  "require": "./lib/cjs/*",
29
29
  "types": "./lib/types/index.d.ts"
30
30
  },
31
- "./lib/*": "./lib/*",
32
- "./locale/*": "./lib/locale/*.json"
31
+ "./facade": {
32
+ "import": "./lib/es/facade.js",
33
+ "require": "./lib/cjs/facade.js",
34
+ "types": "./lib/types/facade/index.d.ts"
35
+ },
36
+ "./locale/*": {
37
+ "import": "./lib/es/locale/*.js",
38
+ "require": "./lib/cjs/locale/*.js",
39
+ "types": "./lib/types/locale/*.d.ts"
40
+ },
41
+ "./lib/*": "./lib/*"
33
42
  },
34
- "main": "./lib/cjs/index.js",
35
- "module": "./lib/es/index.js",
43
+ "main": "./lib/es/index.js",
36
44
  "types": "./lib/types/index.d.ts",
37
45
  "publishConfig": {
38
46
  "access": "public"
@@ -47,22 +55,23 @@
47
55
  "rxjs": ">=7.0.0"
48
56
  },
49
57
  "dependencies": {
50
- "@univerjs-pro/engine-pivot": "0.4.2",
51
- "@univerjs/core": "0.4.2",
52
- "@univerjs/engine-formula": "0.4.2",
53
- "@univerjs-pro/license": "0.4.2",
54
- "@univerjs/sheets": "0.4.2",
55
- "@univerjs/engine-render": "0.4.2",
56
- "@univerjs/rpc": "0.4.2"
58
+ "@univerjs-pro/license": "0.5.0-alpha.0",
59
+ "@univerjs-pro/engine-pivot": "0.5.0-alpha.0",
60
+ "@univerjs/core": "0.5.0-alpha.0",
61
+ "@univerjs/engine-render": "0.5.0-alpha.0",
62
+ "@univerjs/rpc": "0.5.0-alpha.0",
63
+ "@univerjs/engine-formula": "0.5.0-alpha.0",
64
+ "@univerjs/sheets-filter": "0.5.0-alpha.0",
65
+ "@univerjs/sheets": "0.5.0-alpha.0"
57
66
  },
58
67
  "devDependencies": {
59
68
  "rxjs": "^7.8.1",
60
69
  "typescript": "5.6.3",
61
- "vite": "^5.4.8",
62
- "vitest": "^2.1.2",
63
- "@univerjs-infra/shared": "0.4.2"
70
+ "vite": "^5.4.10",
71
+ "vitest": "^2.1.4",
72
+ "@univerjs-infra/shared": "0.5.0-alpha.0"
64
73
  },
65
- "univerSpace": {
74
+ "space": {
66
75
  ".": {
67
76
  "import": "./lib/es/index.js",
68
77
  "require": "./lib/cjs/index.js",
@@ -73,14 +82,24 @@
73
82
  "require": "./lib/cjs/*",
74
83
  "types": "./lib/types/index.d.ts"
75
84
  },
76
- "./lib/*": "./lib/*",
77
- "./locale/*": "./lib/locale/*.json"
85
+ "./facade": {
86
+ "import": "./lib/es/facade.js",
87
+ "require": "./lib/cjs/facade.js",
88
+ "types": "./lib/types/facade/index.d.ts"
89
+ },
90
+ "./locale/*": {
91
+ "import": "./lib/es/locale/*.js",
92
+ "require": "./lib/cjs/locale/*.js",
93
+ "types": "./lib/types/locale/*.d.ts"
94
+ },
95
+ "./lib/*": "./lib/*"
78
96
  },
79
97
  "scripts": {
80
98
  "test": "vitest run",
81
99
  "test:watch": "vitest",
82
100
  "coverage": "vitest run --coverage",
83
101
  "lint:types": "tsc --noEmit",
84
- "build": "tsc && vite build"
85
- }
102
+ "build": "tsx build.ts"
103
+ },
104
+ "module": "./lib/es/index.js"
86
105
  }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(Blank)",
4
- "columnName": "Column ",
5
- "subTotalText": "Total",
6
- "grandTotalText": "Grand Total",
7
- "valueText": "Value",
8
- "averageName": "Average of ",
9
- "countName": "Count of ",
10
- "countNumsName": "Count of ",
11
- "maxName": "Max of ",
12
- "minName": "Min of ",
13
- "productName": "Product of ",
14
- "stdDevName": "StdDev of ",
15
- "stdDevpName": "StdDevp of ",
16
- "sumName": "Sum of ",
17
- "varName": "Var of ",
18
- "varpName": "Varp of ",
19
- "subTotal": "Subtotal",
20
- "grandTotal": "Grand Total",
21
- "value": "value",
22
- "blank": "blank",
23
- "emptyPivot": {
24
- "filter": "Filter",
25
- "row": "Row",
26
- "column": "Column",
27
- "values": "Values"
28
- }
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(خالی)",
4
- "columnName": "ستون ",
5
- "subTotalText": "جمع",
6
- "grandTotalText": "کل",
7
- "valueText": "مقدار",
8
- "averageName": "میانگین از ",
9
- "countName": "تعداد از ",
10
- "countNumsName": "تعداد اعداد از ",
11
- "maxName": "بیشترین از ",
12
- "minName": "کمترین از ",
13
- "productName": "ضرب از ",
14
- "stdDevName": "انحراف معیار از ",
15
- "stdDevpName": "انحراف معیار کلی از ",
16
- "sumName": "جمع از ",
17
- "varName": "واریانس از ",
18
- "varpName": "واریانس کلی از ",
19
- "subTotal": "جمع",
20
- "grandTotal": "کل",
21
- "value": "مقدار",
22
- "blank": "خالی",
23
- "emptyPivot": {
24
- "filter": "فیلتر",
25
- "row": "سطر",
26
- "column": "ستون",
27
- "values": "مقادیر"
28
- }
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(Пусто)",
4
- "columnName": "Столбец ",
5
- "subTotalText": "Промежуточный итог",
6
- "grandTotalText": "Общий итог",
7
- "valueText": "Значение",
8
- "averageName": "Среднее по ",
9
- "countName": "Количество по ",
10
- "countNumsName": "Число по ",
11
- "maxName": "Максимум по ",
12
- "minName": "Минимум по ",
13
- "productName": "Произведение по ",
14
- "stdDevName": "Стандартное отклонение по ",
15
- "stdDevpName": "Общее стандартное отклонение по ",
16
- "sumName": "Сумма по ",
17
- "varName": "Дисперсия по ",
18
- "varpName": "Общая дисперсия по ",
19
- "subTotal": "Промежуточный итог",
20
- "grandTotal": "Общий итог",
21
- "value": "Значение",
22
- "blank": "Пусто",
23
- "emptyPivot": {
24
- "filter": "Фильтр",
25
- "row": "Строка",
26
- "column": "Столбец",
27
- "values": "Значение"
28
- }
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(Trống)",
4
- "columnName": "Cột ",
5
- "subTotalText": "Tổng phụ",
6
- "grandTotalText": "Tổng cộng",
7
- "valueText": "Giá trị",
8
- "averageName": "Giá trị trung bình:",
9
- "countName": "Số lượng:",
10
- "countNumsName": "Số lượng số:",
11
- "maxName": "Giá trị tối đa:",
12
- "minName": "Giá trị tối thiểu:",
13
- "productName": "Tích:",
14
- "stdDevName": "Độ lệch chuẩn:",
15
- "stdDevpName": "Độ lệch chuẩn toàn phần:",
16
- "sumName": "Tổng:",
17
- "varName": "Phương sai:",
18
- "varpName": "Phương sai toàn phần:",
19
- "subTotal": "Tổng phụ",
20
- "grandTotal": "Tổng cộng",
21
- "value": "Giá trị",
22
- "blank": "Trống",
23
- "emptyPivot": {
24
- "filter": "Lọc",
25
- "row": "Hàng",
26
- "column": "Cột",
27
- "values": "Giá trị"
28
- }
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(空白)",
4
- "columnName": "列 ",
5
- "subTotalText": "汇总",
6
- "grandTotalText": "总计",
7
- "valueText": "值",
8
- "averageName": "平均值项:",
9
- "countName": "计数项:",
10
- "countNumsName": "数值计数项:",
11
- "maxName": "最大值项:",
12
- "minName": "最小值项:",
13
- "productName": "乘积项:",
14
- "stdDevName": "标准偏差项:",
15
- "stdDevpName": "总体标准偏差项:",
16
- "sumName": "求和项:",
17
- "varName": "方差项:",
18
- "varpName": "总体方差项:",
19
- "subTotal": "汇总",
20
- "grandTotal": "总计",
21
- "value": "值",
22
- "blank": "空白",
23
- "emptyPivot": {
24
- "filter": "筛选",
25
- "row": "行",
26
- "column": "列",
27
- "values": "值"
28
- }
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- {
2
- "sheets-pivot": {
3
- "blankValue": "(空白)",
4
- "columnName": "欄 ",
5
- "subTotalText": "小計",
6
- "grandTotalText": "總計",
7
- "valueText": "值",
8
- "averageName": "平均值項:",
9
- "countName": "計數項:",
10
- "countNumsName": "數值計數項:",
11
- "maxName": "最大值項:",
12
- "minName": "最小值項:",
13
- "productName": "乘積項:",
14
- "stdDevName": "標準差項:",
15
- "stdDevpName": "總體標準差項:",
16
- "sumName": "求和項:",
17
- "varName": "方差項:",
18
- "varpName": "總體方差項:",
19
- "subTotal": "小計",
20
- "grandTotal": "總計",
21
- "value": "值",
22
- "blank": "空白",
23
- "emptyPivot": {
24
- "filter": "篩選",
25
- "row": "行",
26
- "column": "欄",
27
- "values": "值"
28
- }
29
- }
30
- }
@@ -1,3 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IAddPivotTableWithConfigCommandParams } from '../../const/type';
3
- export declare const AddPivotTableWithConfigCommand: ICommand<IAddPivotTableWithConfigCommandParams>;
@@ -1,12 +0,0 @@
1
- import { ICommandService, IMutationInfo } from '@univerjs/core';
2
- import { IPivotTableChangeSet } from '@univerjs-pro/engine-pivot';
3
- interface IPivotHostInfo {
4
- pivotTableId: string;
5
- unitId: string;
6
- subUnitId: string;
7
- }
8
- export declare function applyChangeSet(_commandService: ICommandService, pivotInfo: IPivotHostInfo, changesets: IPivotTableChangeSet[]): {
9
- redos: IMutationInfo<object>[];
10
- undos: IMutationInfo<object>[];
11
- };
12
- export {};
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IAddPivotFieldMutationParams } from '../../const/type';
3
- export declare const AddPivotFieldMutation: IMutation<IAddPivotFieldMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IAddPivotTableMutationParams } from '../../const/type';
3
- export declare const AddPivotTableMutation: IMutation<IAddPivotTableMutationParams>;
@@ -1,15 +0,0 @@
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;
@@ -1,7 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IRemovePivotFieldMutationParams } from '../../const/type';
3
- export declare const RemovePivotFieldMutation: IMutation<IRemovePivotFieldMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IRemovePivotTableMutationParams } from '../../const/type';
3
- export declare const RemovePivotTableMutation: IMutation<IRemovePivotTableMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IRenamePivotFieldMutationParams } from '../../const/type';
3
- export declare const RenamePivotFieldMutation: IMutation<IRenamePivotFieldMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotCollapseMutation } from '../../const/type';
3
- export declare const SetPivotCollapseMutation: IMutation<ISetPivotCollapseMutation>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotFieldFormatMutationParams } from '../../const/type';
3
- export declare const SetPivotFieldFormatMutation: IMutation<ISetPivotFieldFormatMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotFilterMutationParams } from '../../const/type';
3
- export declare const SetPivotFilterMutation: IMutation<ISetPivotFilterMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotOptionMutationParams } from '../../const/type';
3
- export declare const SetPivotOptionMutation: IMutation<ISetPivotOptionMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotPositionMutationParams } from '../../const/type';
3
- export declare const SetPivotPositionMutation: IMutation<ISetPivotPositionMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotSortMutationParams } from '../../const/type';
3
- export declare const SetPivotSortMutation: IMutation<ISetPivotSortMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISetPivotSubtotalTypeMutationParams } from '../../const/type';
3
- export declare const SetPivotSubtotalTypeMutation: IMutation<ISetPivotSubtotalTypeMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdateFieldPositionMutationParams } from '../../const/type';
3
- export declare const UpdateFieldPositionMutation: IMutation<IUpdateFieldPositionMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdatePivotFieldSourceInfoMutationParams } from '../../const/type';
3
- export declare const UpdatePivotFieldSourceInfoMutation: IMutation<IUpdatePivotFieldSourceInfoMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdatePivotTableSourceRangeMutationParams } from '../../const/type';
3
- export declare const UpdatePivotTableSourceRangeMutation: IMutation<IUpdatePivotTableSourceRangeMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IUpdateValuePositionMutationParams } from '../../const/type';
3
- export declare const UpdateValuePositionMutation: IMutation<IUpdateValuePositionMutationParams>;
@@ -1,3 +0,0 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { IPivotTableViewDirtyMarkOperationParams } from '../../const/type';
3
- export declare const PivotTableViewDirtyMarkOperation: IMutation<IPivotTableViewDirtyMarkOperationParams>;
@@ -1,64 +0,0 @@
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
- B: string;
13
- u: string;
14
- f: string;
15
- j: string;
16
- p: string;
17
- o: string;
18
- W: string;
19
- v: string;
20
- q: string;
21
- d: string;
22
- N: string;
23
- Q: string;
24
- O: string;
25
- w: string;
26
- D: string;
27
- T: string;
28
- z: string;
29
- h: string;
30
- n: string;
31
- a: string;
32
- x: string;
33
- L: string;
34
- K: string;
35
- r: string;
36
- J: string;
37
- R: string;
38
- g: string;
39
- M: string;
40
- P: string;
41
- U: string;
42
- H: string;
43
- Z: string;
44
- l: string;
45
- y: string;
46
- k: string;
47
- A: string;
48
- G: string;
49
- S: string;
50
- s: string;
51
- m: string;
52
- e: string;
53
- b: string;
54
- V: string;
55
- E: string;
56
- X: string;
57
- F: string;
58
- t: string;
59
- c: string;
60
- Y: string;
61
- i: string;
62
- C: string;
63
- I: string;
64
- };