@univerjs-pro/bases 1.0.0-alpha.2 → 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 +1 -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 +10 -20
  85. package/lib/types/fields/field-core-plugin.d.ts +9 -8
  86. package/lib/types/index.d.ts +10 -8
  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 +0 -1
  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 _0xc106(_0x2bec40,_0x539345){_0x2bec40=_0x2bec40-0x120;var _0x340777=_0x3407();var _0xc10660=_0x340777[_0x2bec40];return _0xc10660;}function _0x3407(){var _0x247b17=['复选框','删除记录','10455850OaQBnF','7XCdrse','修改人','283742jjUMbx','创建记录','amd','exports','function','7968663FVzYgq','创建时间','更新视图设置','看板需要可分组字段','双向关联','5MfWPSI','单元格值无效','更新时间','3685179DTQooP','输入内容','12QPNGMg','UniverProBasesZhCN','更新单元格','3676216ePkJyW','创建字段','18lZSnaN','删除字段','8XMNFAX','日历需要日期字段','字段标题不能为空','11VGeNhw','180740Jxswix','1045603sKByiT'];_0x3407=function(){return _0x247b17;};return _0x3407();}(function(_0x4f7797,_0x40b24e){var _0x17af7e=_0xc106,_0x45a8f0=_0x4f7797();while(!![]){try{var _0x3438f5=parseInt(_0x17af7e(0x12e))/0x1*(parseInt(_0x17af7e(0x130))/0x2)+-parseInt(_0x17af7e(0x13d))/0x3+-parseInt(_0x17af7e(0x121))/0x4*(parseInt(_0x17af7e(0x13a))/0x5)+parseInt(_0x17af7e(0x123))/0x6*(-parseInt(_0x17af7e(0x129))/0x7)+-parseInt(_0x17af7e(0x125))/0x8*(-parseInt(_0x17af7e(0x135))/0x9)+parseInt(_0x17af7e(0x12d))/0xa*(parseInt(_0x17af7e(0x128))/0xb)+parseInt(_0x17af7e(0x13f))/0xc*(parseInt(_0x17af7e(0x12a))/0xd);if(_0x3438f5===_0x40b24e)break;else _0x45a8f0['push'](_0x45a8f0['shift']());}catch(_0x236174){_0x45a8f0['push'](_0x45a8f0['shift']());}}}(_0x3407,0xbe55d),function(_0x49cc82,_0x3c139b){var _0x12aacc=_0xc106;typeof exports=='object'&&typeof module<'u'?module[_0x12aacc(0x133)]=_0x3c139b():typeof define==_0x12aacc(0x134)&&define[_0x12aacc(0x132)]?define([],_0x3c139b):(_0x49cc82=typeof globalThis<'u'?globalThis:_0x49cc82||self,_0x49cc82[_0x12aacc(0x140)]=_0x3c139b());}(this,function(){var _0x6871e=_0xc106;return{'bases':{'fieldType':{'text':'文本','singleSelect':'单选','multiSelect':'多选','person':'人员','group':'分组','date':'日期','attachment':'附件','number':'数字','checkbox':_0x6871e(0x12b),'link':'链接','formula':'公式','lookup':'查找','flow':'流程','button':'按钮','numbering':'编号','phone':'电话号码','email':'邮箱','location':'位置','barcode':'条码','progress':'进度','currency':'货币','rating':'评分','twoWayLink':_0x6871e(0x139),'recordId':'记录\x20ID','createdBy':'创建人','updatedBy':_0x6871e(0x12f),'createdAt':_0x6871e(0x136),'updatedAt':_0x6871e(0x13c),'summary':'汇总'},'fieldConfig':{'textPlaceholder':_0x6871e(0x13e),'linkPlaceholder':'输入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'日历','gantt':'甘特','gallery':'画廊'},'error':{'fieldNameRequired':_0x6871e(0x127),'invalidFieldType':'字段类型无效','invalidCellValue':_0x6871e(0x13b),'invalidKanbanGroupField':_0x6871e(0x138),'invalidCalendarDateField':_0x6871e(0x126),'invalidGanttDateField':'甘特视图需要开始和结束日期字段'},'command':{'updateCell':_0x6871e(0x120),'createField':_0x6871e(0x122),'deleteField':_0x6871e(0x124),'createRecord':_0x6871e(0x131),'deleteRecord':_0x6871e(0x12c),'updateViewConfig':_0x6871e(0x137)}}};}));
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(_0xb09648,_0x1c66fb){var _0x5ea9b4=_0x1754,_0x59adb1=_0xb09648();while(!![]){try{var _0x340a09=parseInt(_0x5ea9b4(0x203))/0x1*(parseInt(_0x5ea9b4(0x20f))/0x2)+parseInt(_0x5ea9b4(0x200))/0x3*(parseInt(_0x5ea9b4(0x1f7))/0x4)+parseInt(_0x5ea9b4(0x1fd))/0x5*(-parseInt(_0x5ea9b4(0x1ef))/0x6)+-parseInt(_0x5ea9b4(0x208))/0x7+parseInt(_0x5ea9b4(0x1ed))/0x8+parseInt(_0x5ea9b4(0x20d))/0x9*(parseInt(_0x5ea9b4(0x207))/0xa)+-parseInt(_0x5ea9b4(0x209))/0xb*(parseInt(_0x5ea9b4(0x1fb))/0xc);if(_0x340a09===_0x1c66fb)break;else _0x59adb1['push'](_0x59adb1['shift']());}catch(_0x396dc1){_0x59adb1['push'](_0x59adb1['shift']());}}}(_0xc9be,0xab98d),function(_0x1c5299,_0x4fcadc){var _0x1ef607=_0x1754;typeof exports==_0x1ef607(0x206)&&typeof module<'u'?module[_0x1ef607(0x1ee)]=_0x4fcadc():typeof define==_0x1ef607(0x1fc)&&define[_0x1ef607(0x202)]?define([],_0x4fcadc):(_0x1c5299=typeof globalThis<'u'?globalThis:_0x1c5299||self,_0x1c5299['UniverProBasesZhHK']=_0x4fcadc());}(this,function(){var _0x2345d5=_0x1754;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'複選框','link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x2345d5(0x1f9),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x2345d5(0x204),'recordId':_0x2345d5(0x201),'createdBy':_0x2345d5(0x1f6),'updatedBy':_0x2345d5(0x20b),'createdAt':_0x2345d5(0x1fe),'updatedAt':_0x2345d5(0x1f2),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x2345d5(0x20e),'linkPlaceholder':_0x2345d5(0x20c)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x2345d5(0x20a),'invalidFieldType':_0x2345d5(0x1f0),'invalidCellValue':_0x2345d5(0x1f4),'invalidKanbanGroupField':_0x2345d5(0x205),'invalidCalendarDateField':_0x2345d5(0x210),'invalidGanttDateField':_0x2345d5(0x1f1)},'command':{'updateCell':_0x2345d5(0x1fa),'createField':_0x2345d5(0x1f3),'deleteField':_0x2345d5(0x1f8),'createRecord':_0x2345d5(0x211),'deleteRecord':_0x2345d5(0x1f5),'updateViewConfig':_0x2345d5(0x1ff)}}};}));function _0x1754(_0x5979a5,_0x1c4e9b){_0x5979a5=_0x5979a5-0x1ed;var _0xc9be29=_0xc9be();var _0x17549f=_0xc9be29[_0x5979a5];return _0x17549f;}function _0xc9be(){var _0xa15e84=['單元格值無效','刪除記錄','創建人','884384uwpVEK','刪除字段','電話號碼','更新單元格','276UonkfX','function','150205DuJUvj','創建時間','更新視圖設置','12uUQPUi','記錄\x20ID','amd','4butSkd','雙向關聯','看板需要可分組字段','object','110JKWULI','6669614ErzPvY','91498QLhSWZ','字段標題不能為空','修改人','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','137043nGWNaj','輸入內容','639092lYwfCZ','日曆需要日期字段','創建記錄','7190384XkrSYO','exports','276KcDJAH','字段類型無效','甘特視圖需要開始和結束日期字段','更新時間','創建字段'];_0xc9be=function(){return _0xa15e84;};return _0xc9be();}
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 _0x2078(){var _0x1e6c82=['創建記錄','創建字段','function','創建人','2872405IMQTJS','120906qWpyrK','更新視圖設置','6968744umgjLt','字段類型無效','看板需要可分組字段','更新單元格','948817cLRiVQ','單元格值無效','amd','159QQNwLg','刪除記錄','9345636UPvhME','複選框','34886NahXdJ','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','創建時間','雙向關聯','輸入內容','修改人','exports','字段標題不能為空','7NjLJrZ','object','記錄\x20ID','780MRBqeY','電話號碼','更新時間','UniverProBasesZhTW','6701384FaaQrx'];_0x2078=function(){return _0x1e6c82;};return _0x2078();}function _0x3d95(_0x3c676b,_0xd4ef3d){_0x3c676b=_0x3c676b-0x16f;var _0x207851=_0x2078();var _0x3d954b=_0x207851[_0x3c676b];return _0x3d954b;}(function(_0x168f6d,_0x11e821){var _0x5eb556=_0x3d95,_0x4ac676=_0x168f6d();while(!![]){try{var _0x16a45b=-parseInt(_0x5eb556(0x177))/0x1+-parseInt(_0x5eb556(0x17e))/0x2*(-parseInt(_0x5eb556(0x17a))/0x3)+parseInt(_0x5eb556(0x173))/0x4+parseInt(_0x5eb556(0x170))/0x5+-parseInt(_0x5eb556(0x17c))/0x6+parseInt(_0x5eb556(0x186))/0x7*(-parseInt(_0x5eb556(0x18d))/0x8)+parseInt(_0x5eb556(0x171))/0x9*(parseInt(_0x5eb556(0x189))/0xa);if(_0x16a45b===_0x11e821)break;else _0x4ac676['push'](_0x4ac676['shift']());}catch(_0x42a673){_0x4ac676['push'](_0x4ac676['shift']());}}}(_0x2078,0xe6b06),function(_0x3dbd28,_0x48bf6e){var _0x3b0449=_0x3d95;typeof exports==_0x3b0449(0x187)&&typeof module<'u'?module[_0x3b0449(0x184)]=_0x48bf6e():typeof define==_0x3b0449(0x190)&&define[_0x3b0449(0x179)]?define([],_0x48bf6e):(_0x3dbd28=typeof globalThis<'u'?globalThis:_0x3dbd28||self,_0x3dbd28[_0x3b0449(0x18c)]=_0x48bf6e());}(this,function(){var _0x363d9c=_0x3d95;return{'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x363d9c(0x17d),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x363d9c(0x18a),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x363d9c(0x181),'recordId':_0x363d9c(0x188),'createdBy':_0x363d9c(0x16f),'updatedBy':_0x363d9c(0x183),'createdAt':_0x363d9c(0x180),'updatedAt':_0x363d9c(0x18b),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x363d9c(0x182),'linkPlaceholder':_0x363d9c(0x17f)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x363d9c(0x185),'invalidFieldType':_0x363d9c(0x174),'invalidCellValue':_0x363d9c(0x178),'invalidKanbanGroupField':_0x363d9c(0x175),'invalidCalendarDateField':'日曆需要日期字段','invalidGanttDateField':'甘特視圖需要開始和結束日期字段'},'command':{'updateCell':_0x363d9c(0x176),'createField':_0x363d9c(0x18f),'deleteField':'刪除字段','createRecord':_0x363d9c(0x18e),'deleteRecord':_0x363d9c(0x17b),'updateViewConfig':_0x363d9c(0x172)}}};}));
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.2",
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/engine-formula": "1.0.0-alpha.2",
67
- "@univerjs-pro/license": "1.0.0-alpha.2",
68
- "@univerjs/core": "1.0.0-alpha.2",
69
- "@univerjs/rpc": "1.0.0-alpha.2"
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.2"
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;