@univerjs-pro/bases 1.0.0-alpha.1 → 1.0.0-alpha.3

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 (127) hide show
  1. package/README.md +8 -5
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/commands/commands/set-base-view-filter.command.d.ts +2 -2
  66. package/lib/types/commands/commands/set-base-view-group.command.d.ts +2 -2
  67. package/lib/types/commands/commands/set-base-view-sort.command.d.ts +2 -2
  68. package/lib/types/commands/utils/base-validation.d.ts +6 -0
  69. package/lib/types/config/config.d.ts +11 -0
  70. package/lib/types/controllers/base-active-dirty.controller.d.ts +5 -6
  71. package/lib/types/controllers/base-formula-calculation.controller.d.ts +8 -14
  72. package/lib/types/embed-host-anchor.d.ts +46 -0
  73. package/lib/types/facade/f-base.d.ts +126 -577
  74. package/lib/types/facade/f-enum.d.ts +117 -89
  75. package/lib/types/facade/f-event.d.ts +255 -132
  76. package/lib/types/facade/f-field.d.ts +137 -313
  77. package/lib/types/facade/f-range.d.ts +86 -326
  78. package/lib/types/facade/f-record.d.ts +93 -216
  79. package/lib/types/facade/f-table.d.ts +473 -1317
  80. package/lib/types/facade/f-types.d.ts +1 -0
  81. package/lib/types/facade/f-univer.d.ts +27 -154
  82. package/lib/types/facade/f-view.d.ts +207 -484
  83. package/lib/types/facade/field-key.d.ts +6 -6
  84. package/lib/types/facade/index.d.ts +11 -14
  85. package/lib/types/fields/field-core-plugin.d.ts +9 -8
  86. package/lib/types/index.d.ts +17 -47
  87. package/lib/types/models/base-cell-data.d.ts +6 -6
  88. package/lib/types/models/default-table.d.ts +13 -0
  89. package/lib/types/ot/json1-adapter.d.ts +3 -3
  90. package/lib/types/ot/json1-invalidation.d.ts +2 -2
  91. package/lib/types/ot/json1-op-applier.d.ts +2 -2
  92. package/lib/types/ot/json1-op-factory.d.ts +9 -8
  93. package/lib/types/plugin.d.ts +6 -4
  94. package/lib/types/search/base-search.d.ts +4 -3
  95. package/lib/types/services/base-active-dirty.service.d.ts +2 -2
  96. package/lib/types/services/base-command.service.d.ts +16 -16
  97. package/lib/types/services/base-compression.service.d.ts +3 -3
  98. package/lib/types/services/base-field-registry.service.d.ts +5 -5
  99. package/lib/types/services/base-formula.service.d.ts +11 -20
  100. package/lib/types/services/base-view-registry.service.d.ts +3 -3
  101. package/lib/types/views/view-core-plugin.d.ts +4 -3
  102. package/lib/umd/facade.js +1 -1
  103. package/lib/umd/index.js +1 -1
  104. package/lib/umd/locale/ar-SA.js +1 -1
  105. package/lib/umd/locale/ca-ES.js +1 -1
  106. package/lib/umd/locale/de-DE.js +1 -1
  107. package/lib/umd/locale/en-US.js +1 -1
  108. package/lib/umd/locale/es-ES.js +1 -1
  109. package/lib/umd/locale/fa-IR.js +1 -1
  110. package/lib/umd/locale/fr-FR.js +1 -1
  111. package/lib/umd/locale/id-ID.js +1 -1
  112. package/lib/umd/locale/it-IT.js +1 -1
  113. package/lib/umd/locale/ja-JP.js +1 -1
  114. package/lib/umd/locale/ko-KR.js +1 -1
  115. package/lib/umd/locale/pl-PL.js +1 -1
  116. package/lib/umd/locale/pt-BR.js +1 -1
  117. package/lib/umd/locale/ru-RU.js +1 -1
  118. package/lib/umd/locale/sk-SK.js +1 -1
  119. package/lib/umd/locale/vi-VN.js +1 -1
  120. package/lib/umd/locale/zh-CN.js +1 -1
  121. package/lib/umd/locale/zh-HK.js +1 -1
  122. package/lib/umd/locale/zh-TW.js +1 -1
  123. package/package.json +7 -8
  124. package/lib/types/controllers/base-remote-formula.controller.d.ts +0 -13
  125. package/lib/types/facade/f-error.d.ts +0 -30
  126. package/lib/types/facade/f-permission.d.ts +0 -749
  127. package/lib/types/facade/transaction.d.ts +0 -19
@@ -1 +1 @@
1
- function _0x3620(){var _0x20cde2=['电话号码','看板需要可分组字段','字段标题不能为空','1468936iPLHFV','37494lPUOkK','523420JsyzJD','function','11428692iXeRxM','exports','复选框','更新时间','1612xoavbO','1586682qTnNeM','6948494WhxoAI','685pRnNaT','object','266fuwtky','甘特视图需要开始和结束日期字段','输入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','字段类型无效','更新视图设置','创建人','单元格值无效','更新单元格','4wddjwR','修改人','18eBdkOX','UniverProBasesZhCN','日历需要日期字段'];_0x3620=function(){return _0x20cde2;};return _0x3620();}function _0x13c2(_0x171133,_0x21f0ce){_0x171133=_0x171133-0x162;var _0x36208b=_0x3620();var _0x13c2d6=_0x36208b[_0x171133];return _0x13c2d6;}(function(_0x770f9d,_0x15873b){var _0x57dae0=_0x13c2,_0x5c03b1=_0x770f9d();while(!![]){try{var _0x16dbc1=-parseInt(_0x57dae0(0x16b))/0x1*(-parseInt(_0x57dae0(0x170))/0x2)+-parseInt(_0x57dae0(0x16c))/0x3*(parseInt(_0x57dae0(0x178))/0x4)+-parseInt(_0x57dae0(0x16e))/0x5*(-parseInt(_0x57dae0(0x164))/0x6)+-parseInt(_0x57dae0(0x16d))/0x7+-parseInt(_0x57dae0(0x163))/0x8+parseInt(_0x57dae0(0x17a))/0x9*(parseInt(_0x57dae0(0x165))/0xa)+parseInt(_0x57dae0(0x167))/0xb;if(_0x16dbc1===_0x15873b)break;else _0x5c03b1['push'](_0x5c03b1['shift']());}catch(_0x6bd5d9){_0x5c03b1['push'](_0x5c03b1['shift']());}}}(_0x3620,0x7c454),function(_0x362101,_0x59d7e5){var _0x1c9f15=_0x13c2;typeof exports==_0x1c9f15(0x16f)&&typeof module<'u'?module[_0x1c9f15(0x168)]=_0x59d7e5():typeof define==_0x1c9f15(0x166)&&define['amd']?define([],_0x59d7e5):(_0x362101=typeof globalThis<'u'?globalThis:_0x362101||self,_0x362101[_0x1c9f15(0x17b)]=_0x59d7e5());}(this,function(){var _0x1727e7=_0x13c2;return{'bases':{'fieldType':{'text':'文本','singleSelect':'单选','multiSelect':'多选','person':'人员','group':'分组','date':'日期','attachment':'附件','number':'数字','checkbox':_0x1727e7(0x169),'link':'链接','formula':'公式','lookup':'查找','flow':'流程','button':'按钮','numbering':'编号','phone':_0x1727e7(0x17d),'email':'邮箱','location':'位置','barcode':'条码','progress':'进度','currency':'货币','rating':'评分','twoWayLink':'双向关联','recordId':'记录\x20ID','createdBy':_0x1727e7(0x175),'updatedBy':_0x1727e7(0x179),'createdAt':'创建时间','updatedAt':_0x1727e7(0x16a),'summary':'汇总'},'fieldConfig':{'textPlaceholder':'输入内容','linkPlaceholder':_0x1727e7(0x172)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日历','gantt':'甘特','gallery':'画廊'},'error':{'fieldNameRequired':_0x1727e7(0x162),'invalidFieldType':_0x1727e7(0x173),'invalidCellValue':_0x1727e7(0x176),'invalidKanbanGroupField':_0x1727e7(0x17e),'invalidCalendarDateField':_0x1727e7(0x17c),'invalidGanttDateField':_0x1727e7(0x171)},'command':{'updateCell':_0x1727e7(0x177),'createField':'创建字段','deleteField':'删除字段','createRecord':'创建记录','deleteRecord':'删除记录','updateViewConfig':_0x1727e7(0x174)}}};}));
1
+ function _0x1990(_0x88b575,_0x3a79e7){_0x88b575=_0x88b575-0x1e2;var _0x5eb752=_0x5eb7();var _0x199051=_0x5eb752[_0x88b575];return _0x199051;}(function(_0x99e6dd,_0x2b07e4){var _0x116579=_0x1990,_0x744f0c=_0x99e6dd();while(!![]){try{var _0x3f6591=-parseInt(_0x116579(0x1eb))/0x1*(parseInt(_0x116579(0x200))/0x2)+-parseInt(_0x116579(0x1e6))/0x3+-parseInt(_0x116579(0x1fb))/0x4*(-parseInt(_0x116579(0x1ea))/0x5)+-parseInt(_0x116579(0x1e9))/0x6+parseInt(_0x116579(0x1ec))/0x7+-parseInt(_0x116579(0x1fa))/0x8*(-parseInt(_0x116579(0x1f3))/0x9)+parseInt(_0x116579(0x1ff))/0xa;if(_0x3f6591===_0x2b07e4)break;else _0x744f0c['push'](_0x744f0c['shift']());}catch(_0x4bd8e9){_0x744f0c['push'](_0x744f0c['shift']());}}}(_0x5eb7,0x8536f),function(_0x197af0,_0x41e4a9){var _0x1c7024=_0x1990;typeof exports==_0x1c7024(0x1f2)&&typeof module<'u'?module[_0x1c7024(0x1f1)]=_0x41e4a9():typeof define==_0x1c7024(0x1f8)&&define[_0x1c7024(0x1e3)]?define([],_0x41e4a9):(_0x197af0=typeof globalThis<'u'?globalThis:_0x197af0||self,_0x197af0[_0x1c7024(0x1e2)]=_0x41e4a9());}(this,function(){var _0x42d04f=_0x1990;return{'bases':{'fieldType':{'text':'文本','singleSelect':'单选','multiSelect':'多选','person':'人员','group':'分组','date':'日期','attachment':'附件','number':'数字','checkbox':_0x42d04f(0x1ef),'link':'链接','formula':'公式','lookup':'查找','flow':'流程','button':'按钮','numbering':'编号','phone':_0x42d04f(0x1f6),'email':'邮箱','location':'位置','barcode':'条码','progress':'进度','currency':'货币','rating':'评分','twoWayLink':_0x42d04f(0x1fe),'recordId':_0x42d04f(0x1f4),'createdBy':_0x42d04f(0x1f5),'updatedBy':_0x42d04f(0x1f7),'createdAt':_0x42d04f(0x1f9),'updatedAt':'更新时间','summary':'汇总'},'fieldConfig':{'textPlaceholder':_0x42d04f(0x1e7),'linkPlaceholder':_0x42d04f(0x1fc)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日历','gantt':'甘特','gallery':'画廊'},'error':{'fieldNameRequired':_0x42d04f(0x1e4),'invalidFieldType':_0x42d04f(0x1ed),'invalidCellValue':'单元格值无效','invalidKanbanGroupField':_0x42d04f(0x1e8),'invalidCalendarDateField':'日历需要日期字段','invalidGanttDateField':'甘特视图需要开始和结束日期字段'},'command':{'updateCell':_0x42d04f(0x1ee),'createField':'创建字段','deleteField':_0x42d04f(0x1e5),'createRecord':'创建记录','deleteRecord':_0x42d04f(0x1fd),'updateViewConfig':_0x42d04f(0x1f0)}}};}));function _0x5eb7(){var _0x20a4c1=['2OwQRVN','UniverProBasesZhCN','amd','字段标题不能为空','删除字段','3036474xSdvid','输入内容','看板需要可分组字段','2747070MWjQCL','235HwfSgX','718749brYLkm','5608953zIrjsg','字段类型无效','更新单元格','复选框','更新视图设置','exports','object','2241xBEbyO','记录\x20ID','创建人','电话号码','修改人','function','创建时间','11936utrePr','7596BEQolk','输入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','删除记录','双向关联','14723590QDlyNE'];_0x5eb7=function(){return _0x20a4c1;};return _0x5eb7();}
@@ -1 +1 @@
1
- function _0x200f(){var _0x4312f3=['exports','日曆需要日期字段','字段標題不能為空','4005864MWvIFZ','創建記錄','4814208FCNvVl','複選框','UniverProBasesZhHK','function','字段類型無效','創建人','甘特視圖需要開始和結束日期字段','單元格值無效','24778AcprLy','21beFAgg','電話號碼','2395296pacxVF','更新視圖設置','5107417KwhBjF','更新時間','428646mkuJjJ','amd','2889068OqGaVh','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','80iValEC','5QOsqrK','object','刪除字段'];_0x200f=function(){return _0x4312f3;};return _0x200f();}function _0x20cc(_0x56dda7,_0x12544a){_0x56dda7=_0x56dda7-0x176;var _0x200fd5=_0x200f();var _0x20cc56=_0x200fd5[_0x56dda7];return _0x20cc56;}(function(_0x58cfa8,_0x2e5115){var _0x5d72b4=_0x20cc,_0x34cdaa=_0x58cfa8();while(!![]){try{var _0x2df870=parseInt(_0x5d72b4(0x178))/0x1*(-parseInt(_0x5d72b4(0x177))/0x2)+-parseInt(_0x5d72b4(0x17e))/0x3+-parseInt(_0x5d72b4(0x180))/0x4*(parseInt(_0x5d72b4(0x183))/0x5)+-parseInt(_0x5d72b4(0x189))/0x6+parseInt(_0x5d72b4(0x17c))/0x7+-parseInt(_0x5d72b4(0x18b))/0x8+-parseInt(_0x5d72b4(0x17a))/0x9*(-parseInt(_0x5d72b4(0x182))/0xa);if(_0x2df870===_0x2e5115)break;else _0x34cdaa['push'](_0x34cdaa['shift']());}catch(_0x48faf9){_0x34cdaa['push'](_0x34cdaa['shift']());}}}(_0x200f,0x714ad),function(_0x27ccfe,_0x5e3238){var _0x165c8d=_0x20cc;typeof exports==_0x165c8d(0x184)&&typeof module<'u'?module[_0x165c8d(0x186)]=_0x5e3238():typeof define==_0x165c8d(0x18e)&&define[_0x165c8d(0x17f)]?define([],_0x5e3238):(_0x27ccfe=typeof globalThis<'u'?globalThis:_0x27ccfe||self,_0x27ccfe[_0x165c8d(0x18d)]=_0x5e3238());}(this,function(){var _0x433db2=_0x20cc;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x433db2(0x18c),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x433db2(0x179),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':'雙向關聯','recordId':'記錄\x20ID','createdBy':_0x433db2(0x190),'updatedBy':'修改人','createdAt':'創建時間','updatedAt':_0x433db2(0x17d),'summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':_0x433db2(0x181)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x433db2(0x188),'invalidFieldType':_0x433db2(0x18f),'invalidCellValue':_0x433db2(0x176),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':_0x433db2(0x187),'invalidGanttDateField':_0x433db2(0x191)},'command':{'updateCell':'更新單元格','createField':'創建字段','deleteField':_0x433db2(0x185),'createRecord':_0x433db2(0x18a),'deleteRecord':'刪除記錄','updateViewConfig':_0x433db2(0x17b)}}};}));
1
+ function _0x188b(_0x5643b7,_0x24bd76){_0x5643b7=_0x5643b7-0x12f;var _0x5dc238=_0x5dc2();var _0x188b41=_0x5dc238[_0x5643b7];return _0x188b41;}function _0x5dc2(){var _0x29ee25=['30NbgtdY','創建人','創建字段','10ZAwMMt','9247365nfOCGW','function','輸入內容','創建記錄','amd','雙向關聯','記錄\x20ID','757379epRhjd','創建時間','刪除記錄','object','UniverProBasesZhHK','甘特視圖需要開始和結束日期字段','字段類型無效','283218MIekro','1287488aGQBVA','22765KQnukE','字段標題不能為空','修改人','1334388pRpatF','更新視圖設置','單元格值無效','354180lTcwsH','日曆需要日期字段','刪除字段','更新時間'];_0x5dc2=function(){return _0x29ee25;};return _0x5dc2();}(function(_0x517f55,_0x451b60){var _0x47eba3=_0x188b,_0x430cba=_0x517f55();while(!![]){try{var _0x5bda12=-parseInt(_0x47eba3(0x13b))/0x1*(parseInt(_0x47eba3(0x145))/0x2)+-parseInt(_0x47eba3(0x139))/0x3+parseInt(_0x47eba3(0x141))/0x4*(-parseInt(_0x47eba3(0x148))/0x5)+-parseInt(_0x47eba3(0x13e))/0x6+-parseInt(_0x47eba3(0x132))/0x7+parseInt(_0x47eba3(0x13a))/0x8+parseInt(_0x47eba3(0x149))/0x9;if(_0x5bda12===_0x451b60)break;else _0x430cba['push'](_0x430cba['shift']());}catch(_0x5b1637){_0x430cba['push'](_0x430cba['shift']());}}}(_0x5dc2,0x3bc77),function(_0x226a8f,_0x313629){var _0xa799b6=_0x188b;typeof exports==_0xa799b6(0x135)&&typeof module<'u'?module['exports']=_0x313629():typeof define==_0xa799b6(0x14a)&&define[_0xa799b6(0x12f)]?define([],_0x313629):(_0x226a8f=typeof globalThis<'u'?globalThis:_0x226a8f||self,_0x226a8f[_0xa799b6(0x136)]=_0x313629());}(this,function(){var _0x5e9af0=_0x188b;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'複選框','link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x5e9af0(0x130),'recordId':_0x5e9af0(0x131),'createdBy':_0x5e9af0(0x146),'updatedBy':_0x5e9af0(0x13d),'createdAt':_0x5e9af0(0x133),'updatedAt':_0x5e9af0(0x144),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x5e9af0(0x14b),'linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x5e9af0(0x13c),'invalidFieldType':_0x5e9af0(0x138),'invalidCellValue':_0x5e9af0(0x140),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':_0x5e9af0(0x142),'invalidGanttDateField':_0x5e9af0(0x137)},'command':{'updateCell':'更新單元格','createField':_0x5e9af0(0x147),'deleteField':_0x5e9af0(0x143),'createRecord':_0x5e9af0(0x14c),'deleteRecord':_0x5e9af0(0x134),'updateViewConfig':_0x5e9af0(0x13f)}}};}));
@@ -1 +1 @@
1
- function _0x48ef(_0x181411,_0x3d7e63){_0x181411=_0x181411-0x1ad;var _0x59c7ba=_0x59c7();var _0x48ef4e=_0x59c7ba[_0x181411];return _0x48ef4e;}(function(_0x57aaea,_0x3ee924){var _0x2239d9=_0x48ef,_0x5eb7c7=_0x57aaea();while(!![]){try{var _0x2179cf=-parseInt(_0x2239d9(0x1b2))/0x1+-parseInt(_0x2239d9(0x1ae))/0x2+parseInt(_0x2239d9(0x1b4))/0x3*(parseInt(_0x2239d9(0x1c0))/0x4)+parseInt(_0x2239d9(0x1ad))/0x5*(-parseInt(_0x2239d9(0x1b9))/0x6)+-parseInt(_0x2239d9(0x1b8))/0x7*(parseInt(_0x2239d9(0x1c4))/0x8)+-parseInt(_0x2239d9(0x1c6))/0x9+parseInt(_0x2239d9(0x1bf))/0xa;if(_0x2179cf===_0x3ee924)break;else _0x5eb7c7['push'](_0x5eb7c7['shift']());}catch(_0x3d3955){_0x5eb7c7['push'](_0x5eb7c7['shift']());}}}(_0x59c7,0xe669c),function(_0x78d0a1,_0x586a89){var _0x2f287f=_0x48ef;typeof exports==_0x2f287f(0x1b1)&&typeof module<'u'?module[_0x2f287f(0x1c5)]=_0x586a89():typeof define=='function'&&define['amd']?define([],_0x586a89):(_0x78d0a1=typeof globalThis<'u'?globalThis:_0x78d0a1||self,_0x78d0a1['UniverProBasesZhTW']=_0x586a89());}(this,function(){var _0x25bc97=_0x48ef;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x25bc97(0x1ba),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':'雙向關聯','recordId':_0x25bc97(0x1be),'createdBy':'創建人','updatedBy':_0x25bc97(0x1c3),'createdAt':_0x25bc97(0x1af),'updatedAt':_0x25bc97(0x1b5),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x25bc97(0x1c1),'linkPlaceholder':_0x25bc97(0x1bc)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x25bc97(0x1b7),'invalidFieldType':_0x25bc97(0x1b3),'invalidCellValue':_0x25bc97(0x1bb),'invalidKanbanGroupField':_0x25bc97(0x1b0),'invalidCalendarDateField':_0x25bc97(0x1c2),'invalidGanttDateField':'甘特視圖需要開始和結束日期字段'},'command':{'updateCell':'更新單元格','createField':'創建字段','deleteField':_0x25bc97(0x1bd),'createRecord':_0x25bc97(0x1b6),'deleteRecord':'刪除記錄','updateViewConfig':'更新視圖設置'}}};}));function _0x59c7(){var _0x12879d=['489596umnRux','輸入內容','日曆需要日期字段','修改人','10632iRHllr','exports','5933961kuhPls','925lbcqhY','2486628IgnsyD','創建時間','看板需要可分組字段','object','1478227RaawTH','字段類型無效','15AvwBIT','更新時間','創建記錄','字段標題不能為空','1414DNpcHQ','45690ySidZT','複選框','單元格值無效','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','刪除字段','記錄\x20ID','53898800dquBGH'];_0x59c7=function(){return _0x12879d;};return _0x59c7();}
1
+ (function(_0x2e463f,_0xc7b199){var _0x38b8e1=_0x1439,_0x49b368=_0x2e463f();while(!![]){try{var _0x5e7aa5=-parseInt(_0x38b8e1(0x74))/0x1*(-parseInt(_0x38b8e1(0x78))/0x2)+-parseInt(_0x38b8e1(0x70))/0x3*(parseInt(_0x38b8e1(0x6d))/0x4)+-parseInt(_0x38b8e1(0x86))/0x5+parseInt(_0x38b8e1(0x73))/0x6+-parseInt(_0x38b8e1(0x80))/0x7+parseInt(_0x38b8e1(0x75))/0x8*(parseInt(_0x38b8e1(0x6b))/0x9)+parseInt(_0x38b8e1(0x85))/0xa;if(_0x5e7aa5===_0xc7b199)break;else _0x49b368['push'](_0x49b368['shift']());}catch(_0x11c8e2){_0x49b368['push'](_0x49b368['shift']());}}}(_0x3158,0xe4e8e),function(_0xe202f7,_0x5bb830){var _0x353b96=_0x1439;typeof exports==_0x353b96(0x71)&&typeof module<'u'?module[_0x353b96(0x81)]=_0x5bb830():typeof define==_0x353b96(0x83)&&define['amd']?define([],_0x5bb830):(_0xe202f7=typeof globalThis<'u'?globalThis:_0xe202f7||self,_0xe202f7[_0x353b96(0x6f)]=_0x5bb830());}(this,function(){var _0x4c5d9c=_0x1439;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x4c5d9c(0x77),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x4c5d9c(0x6e),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':'雙向關聯','recordId':_0x4c5d9c(0x7f),'createdBy':_0x4c5d9c(0x7c),'updatedBy':_0x4c5d9c(0x7d),'createdAt':'創建時間','updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x4c5d9c(0x87),'linkPlaceholder':_0x4c5d9c(0x7e)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x4c5d9c(0x88),'invalidFieldType':_0x4c5d9c(0x84),'invalidCellValue':_0x4c5d9c(0x7a),'invalidKanbanGroupField':_0x4c5d9c(0x6a),'invalidCalendarDateField':_0x4c5d9c(0x6c),'invalidGanttDateField':_0x4c5d9c(0x76)},'command':{'updateCell':_0x4c5d9c(0x82),'createField':_0x4c5d9c(0x7b),'deleteField':'刪除字段','createRecord':'創建記錄','deleteRecord':_0x4c5d9c(0x79),'updateViewConfig':_0x4c5d9c(0x72)}}};}));function _0x1439(_0x5aa87d,_0x1642b8){_0x5aa87d=_0x5aa87d-0x6a;var _0x315829=_0x3158();var _0x1439f5=_0x315829[_0x5aa87d];return _0x1439f5;}function _0x3158(){var _0x208945=['7687500ESVdNX','6670845noFHUd','輸入內容','字段標題不能為空','看板需要可分組字段','4970277VuwKVW','日曆需要日期字段','5746980DkiwWZ','電話號碼','UniverProBasesZhTW','3XfUSwF','object','更新視圖設置','5577606RoUPXD','47tKxFcc','24xJtSDF','甘特視圖需要開始和結束日期字段','複選框','71702XBqnlN','刪除記錄','單元格值無效','創建字段','創建人','修改人','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','記錄\x20ID','9321053vICZWx','exports','更新單元格','function','字段類型無效'];_0x3158=function(){return _0x208945;};return _0x3158();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/bases",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "private": false,
5
5
  "description": "Base database core model and commands for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -63,16 +63,15 @@
63
63
  "lib"
64
64
  ],
65
65
  "dependencies": {
66
- "@univerjs-pro/license": "1.0.0-alpha.1",
67
- "@univerjs-pro/engine-formula": "1.0.0-alpha.1",
68
- "@univerjs/rpc": "1.0.0-alpha.1",
69
- "@univerjs/core": "1.0.0-alpha.1"
66
+ "@univerjs-pro/engine-formula": "1.0.0-alpha.3",
67
+ "@univerjs/core": "1.0.0-alpha.3",
68
+ "@univerjs/rpc": "1.0.0-alpha.3",
69
+ "@univerjs-pro/license": "1.0.0-alpha.3"
70
70
  },
71
71
  "devDependencies": {
72
- "rxjs": "7.8.2",
73
72
  "typescript": "^6.0.3",
74
- "vitest": "^4.1.9",
75
- "@univerjs-infra/shared": "1.0.0-alpha.1"
73
+ "vitest": "^4.1.10",
74
+ "@univerjs-infra/shared": "1.0.0-alpha.3"
76
75
  },
77
76
  "scripts": {
78
77
  "test": "vitest run",
@@ -1,13 +0,0 @@
1
- import { ISuperTableService } from '@univerjs-pro/engine-formula';
2
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
3
- export declare class BaseRemoteFormulaController extends Disposable {
4
- private readonly _commandService;
5
- private readonly _univerInstanceService;
6
- private readonly _superTableService?;
7
- private readonly _formulaService;
8
- constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _superTableService?: ISuperTableService | undefined);
9
- private _initialize;
10
- private _onCommandExecuted;
11
- private _shouldRefreshSuperTables;
12
- private _registerSuperTables;
13
- }
@@ -1,30 +0,0 @@
1
- export declare const BaseErrorCode: {
2
- readonly CommandFailed: "CommandFailed";
3
- readonly FieldNotFound: "FieldNotFound";
4
- readonly DuplicateFieldName: "DuplicateFieldName";
5
- readonly TableNotFound: "TableNotFound";
6
- readonly ViewNotFound: "ViewNotFound";
7
- readonly RecordNotFound: "RecordNotFound";
8
- readonly InvalidFilter: "InvalidFilter";
9
- readonly InvalidOperation: "InvalidOperation";
10
- readonly BatchAlreadyRunning: "BatchAlreadyRunning";
11
- readonly BatchFailed: "BatchFailed";
12
- };
13
- export type BaseErrorCodeType = typeof BaseErrorCode[keyof typeof BaseErrorCode];
14
- export interface IBaseErrorDetails {
15
- commandId?: string;
16
- unitId?: string;
17
- tableId?: string;
18
- fieldId?: string;
19
- recordId?: string;
20
- viewId?: string;
21
- [key: string]: unknown;
22
- }
23
- export declare class BaseError extends Error {
24
- readonly code: BaseErrorCodeType;
25
- readonly details: IBaseErrorDetails;
26
- readonly name = "BaseError";
27
- constructor(code: BaseErrorCodeType, message: string, details?: IBaseErrorDetails);
28
- }
29
- export declare function isBaseError(error: unknown): error is BaseError;
30
- export declare function assertBaseCommandSucceeded(commandId: string, result: boolean, details?: IBaseErrorDetails): void;