@univerjs/sheets-zen-editor 0.24.0 → 0.25.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 (90) hide show
  1. package/lib/cjs/index.js +12 -10
  2. package/lib/cjs/locale/ar-SA.js +12 -0
  3. package/lib/cjs/locale/ca-ES.js +2 -2
  4. package/lib/cjs/locale/de-DE.js +12 -0
  5. package/lib/cjs/locale/en-US.js +2 -2
  6. package/lib/cjs/locale/es-ES.js +2 -2
  7. package/lib/cjs/locale/fa-IR.js +2 -2
  8. package/lib/cjs/locale/fr-FR.js +2 -2
  9. package/lib/cjs/locale/id-ID.js +12 -0
  10. package/lib/cjs/locale/it-IT.js +12 -0
  11. package/lib/cjs/locale/ja-JP.js +2 -2
  12. package/lib/cjs/locale/ko-KR.js +2 -2
  13. package/lib/cjs/locale/pl-PL.js +12 -0
  14. package/lib/cjs/locale/pt-BR.js +12 -0
  15. package/lib/cjs/locale/ru-RU.js +2 -2
  16. package/lib/cjs/locale/sk-SK.js +2 -2
  17. package/lib/cjs/locale/vi-VN.js +2 -2
  18. package/lib/cjs/locale/zh-CN.js +2 -2
  19. package/lib/cjs/locale/zh-HK.js +12 -0
  20. package/lib/cjs/locale/zh-TW.js +2 -2
  21. package/lib/es/index.js +12 -10
  22. package/lib/es/locale/ar-SA.js +11 -0
  23. package/lib/es/locale/ca-ES.js +2 -2
  24. package/lib/es/locale/de-DE.js +11 -0
  25. package/lib/es/locale/en-US.js +2 -2
  26. package/lib/es/locale/es-ES.js +2 -2
  27. package/lib/es/locale/fa-IR.js +2 -2
  28. package/lib/es/locale/fr-FR.js +2 -2
  29. package/lib/es/locale/id-ID.js +11 -0
  30. package/lib/es/locale/it-IT.js +11 -0
  31. package/lib/es/locale/ja-JP.js +2 -2
  32. package/lib/es/locale/ko-KR.js +2 -2
  33. package/lib/es/locale/pl-PL.js +11 -0
  34. package/lib/es/locale/pt-BR.js +11 -0
  35. package/lib/es/locale/ru-RU.js +2 -2
  36. package/lib/es/locale/sk-SK.js +2 -2
  37. package/lib/es/locale/vi-VN.js +2 -2
  38. package/lib/es/locale/zh-CN.js +2 -2
  39. package/lib/es/locale/zh-HK.js +11 -0
  40. package/lib/es/locale/zh-TW.js +2 -2
  41. package/lib/index.js +12 -10
  42. package/lib/locale/ar-SA.js +11 -0
  43. package/lib/locale/ca-ES.js +2 -2
  44. package/lib/locale/de-DE.js +11 -0
  45. package/lib/locale/en-US.js +2 -2
  46. package/lib/locale/es-ES.js +2 -2
  47. package/lib/locale/fa-IR.js +2 -2
  48. package/lib/locale/fr-FR.js +2 -2
  49. package/lib/locale/id-ID.js +11 -0
  50. package/lib/locale/it-IT.js +11 -0
  51. package/lib/locale/ja-JP.js +2 -2
  52. package/lib/locale/ko-KR.js +2 -2
  53. package/lib/locale/pl-PL.js +11 -0
  54. package/lib/locale/pt-BR.js +11 -0
  55. package/lib/locale/ru-RU.js +2 -2
  56. package/lib/locale/sk-SK.js +2 -2
  57. package/lib/locale/vi-VN.js +2 -2
  58. package/lib/locale/zh-CN.js +2 -2
  59. package/lib/locale/zh-HK.js +11 -0
  60. package/lib/locale/zh-TW.js +2 -2
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +9 -7
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/facade.js +1 -1
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -0
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -0
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -0
  79. package/lib/umd/locale/it-IT.js +1 -0
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -0
  83. package/lib/umd/locale/pt-BR.js +1 -0
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -0
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +12 -12
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/ru-RU.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Редактор на весь экран" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Отменить Zen редактирование",
6
6
  "zen-edit-confirm": "Подтвердить Zen редактирование"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Editor na celú obrazovku" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Zrušiť zen úpravu",
6
6
  "zen-edit-confirm": "Potvrdiť zen úpravu"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Chế độ chỉnh sửa Zen" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Hủy chỉnh sửa (trạng thái Zen mode)",
6
6
  "zen-edit-confirm": "Bỏ chỉnh sửa (trạng thái Zen mode)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "禅模式编辑" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "取消编辑(禅模式状态)",
6
6
  "zen-edit-confirm": "放弃编辑(禅模式状态)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "禪模式編輯" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "取消編輯(禪模式狀態)",
6
+ "zen-edit-confirm": "放棄編輯(禪模式狀態)"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "禪模式編輯" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "取消編輯(禪模式狀態)",
6
6
  "zen-edit-confirm": "放棄編輯(禪模式狀態)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
package/lib/index.js CHANGED
@@ -113,7 +113,7 @@ const ConfirmZenEditCommand = {
113
113
  //#endregion
114
114
  //#region package.json
115
115
  var name = "@univerjs/sheets-zen-editor";
116
- var version = "0.24.0";
116
+ var version = "0.25.0";
117
117
 
118
118
  //#endregion
119
119
  //#region src/config/config.ts
@@ -128,7 +128,7 @@ function ZenEditorMenuItemFactory(accessor) {
128
128
  return {
129
129
  id: OpenZenEditorCommand.id,
130
130
  type: MenuItemType.BUTTON,
131
- title: "rightClick.zenEditor",
131
+ title: "sheets-zen-editor.rightClick.zenEditor",
132
132
  icon: "AmplifyIcon",
133
133
  hidden$: getCurrentExclusiveRangeInterest$(accessor),
134
134
  disabled$: editorBridgeService.currentEditCell$.pipe(switchMap((cell) => getCurrentRangeDisable$(accessor, {
@@ -154,7 +154,7 @@ const menuSchema = { [ContextMenuPosition.MAIN_AREA]: { [ContextMenuGroup.OTHERS
154
154
  } } } };
155
155
 
156
156
  //#endregion
157
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
157
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
158
158
  function _typeof(o) {
159
159
  "@babel/helpers - typeof";
160
160
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -165,7 +165,7 @@ function _typeof(o) {
165
165
  }
166
166
 
167
167
  //#endregion
168
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
168
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
169
169
  function toPrimitive(t, r) {
170
170
  if ("object" != _typeof(t) || !t) return t;
171
171
  var e = t[Symbol.toPrimitive];
@@ -178,14 +178,14 @@ function toPrimitive(t, r) {
178
178
  }
179
179
 
180
180
  //#endregion
181
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
181
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
182
182
  function toPropertyKey(t) {
183
183
  var i = toPrimitive(t, "string");
184
184
  return "symbol" == _typeof(i) ? i : i + "";
185
185
  }
186
186
 
187
187
  //#endregion
188
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
188
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
189
189
  function _defineProperty(e, r, t) {
190
190
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
191
191
  value: t,
@@ -312,15 +312,17 @@ function ZenEditor() {
312
312
  //#region src/controllers/shortcuts/zen-editor.shortcut.ts
313
313
  const ZenEditorConfirmShortcut = {
314
314
  id: ConfirmZenEditCommand.id,
315
- description: "shortcut.sheet.zen-edit-confirm",
315
+ description: "sheets-zen-editor.shortcut.sheet.zen-edit-confirm",
316
316
  group: "4_sheet-edit",
317
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
317
318
  preconditions: (contextService) => whenZenEditorActivated(contextService),
318
319
  binding: KeyCode.ENTER | MetaKeys.ALT
319
320
  };
320
321
  const ZenEditorCancelShortcut = {
321
322
  id: CancelZenEditCommand.id,
322
- description: "shortcut.sheet.zen-edit-cancel",
323
+ description: "sheets-zen-editor.shortcut.sheet.zen-edit-cancel",
323
324
  group: "4_sheet-edit",
325
+ groupTitle: "sheets-ui.shortcut.sheet-edit",
324
326
  preconditions: (contextService) => whenZenEditorActivated(contextService),
325
327
  binding: KeyCode.ESC
326
328
  };
@@ -334,7 +336,7 @@ function whenZenEditorActivated(contextService) {
334
336
  }
335
337
 
336
338
  //#endregion
337
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
339
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
338
340
  function __decorateParam(paramIndex, decorator) {
339
341
  return function(target, key) {
340
342
  decorator(target, key, paramIndex);
@@ -342,7 +344,7 @@ function __decorateParam(paramIndex, decorator) {
342
344
  }
343
345
 
344
346
  //#endregion
345
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
347
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
346
348
  function __decorate(decorators, target, key, desc) {
347
349
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
348
350
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -0,0 +1,11 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "محرر ملء الشاشة" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "إلغاء التحرير في وضع ملء الشاشة",
6
+ "zen-edit-confirm": "تأكيد التحرير في وضع ملء الشاشة"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/ca-ES.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Editor a pantalla completa" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Cancel·la edició Zen",
6
6
  "zen-edit-confirm": "Confirma edició Zen"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "Vollbild-Editor" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "Zen-Bearbeitung abbrechen",
6
+ "zen-edit-confirm": "Zen-Bearbeitung bestätigen"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -14,13 +14,13 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- const locale = {
17
+ const locale = { "sheets-zen-editor": {
18
18
  rightClick: { zenEditor: "Full Screen Editor" },
19
19
  shortcut: { sheet: {
20
20
  "zen-edit-cancel": "Cancel Zen Edit",
21
21
  "zen-edit-confirm": "Confirm Zen Edit"
22
22
  } }
23
- };
23
+ } };
24
24
 
25
25
  //#endregion
26
26
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/es-ES.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Editor a pantalla completa" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Cancelar edición Zen",
6
6
  "zen-edit-confirm": "Confirmar edición Zen"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/fa-IR.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "ویرایشگر تمام صفحه" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "لغو ویرایش Zen",
6
6
  "zen-edit-confirm": "تایید ویرایش Zen"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/fr-FR.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Éditeur plein écran" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Annuler l'édition plein écran",
6
6
  "zen-edit-confirm": "Confirmer l'édition plein écran"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "Editor Layar Penuh" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "Batalkan Edit Zen",
6
+ "zen-edit-confirm": "Konfirmasi Edit Zen"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "Editor a schermo intero" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "Annulla modifica Zen",
6
+ "zen-edit-confirm": "Conferma modifica Zen"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/ja-JP.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "禅モード" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "禅モードをキャンセル",
6
6
  "zen-edit-confirm": "禅モードに移行"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/ko-KR.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "젠 에디터" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "젠 편집 취소",
6
6
  "zen-edit-confirm": "젠 편집 확인"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "Edytor pełnoekranowy" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "Anuluj edycję w trybie Zen",
6
+ "zen-edit-confirm": "Potwierdź edycję w trybie Zen"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "Editor em Tela Cheia" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "Cancelar Edição Zen",
6
+ "zen-edit-confirm": "Confirmar Edição Zen"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/ru-RU.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Редактор на весь экран" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Отменить Zen редактирование",
6
6
  "zen-edit-confirm": "Подтвердить Zen редактирование"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Editor na celú obrazovku" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Zrušiť zen úpravu",
6
6
  "zen-edit-confirm": "Potvrdiť zen úpravu"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "Chế độ chỉnh sửa Zen" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "Hủy chỉnh sửa (trạng thái Zen mode)",
6
6
  "zen-edit-confirm": "Bỏ chỉnh sửa (trạng thái Zen mode)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "禅模式编辑" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "取消编辑(禅模式状态)",
6
6
  "zen-edit-confirm": "放弃编辑(禅模式状态)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,11 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "sheets-zen-editor": {
3
+ rightClick: { zenEditor: "禪模式編輯" },
4
+ shortcut: { sheet: {
5
+ "zen-edit-cancel": "取消編輯(禪模式狀態)",
6
+ "zen-edit-confirm": "放棄編輯(禪模式狀態)"
7
+ } }
8
+ } };
9
+
10
+ //#endregion
11
+ export { locale as default };
@@ -1,11 +1,11 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = {
2
+ const locale = { "sheets-zen-editor": {
3
3
  rightClick: { zenEditor: "禪模式編輯" },
4
4
  shortcut: { sheet: {
5
5
  "zen-edit-cancel": "取消編輯(禪模式狀態)",
6
6
  "zen-edit-confirm": "放棄編輯(禪模式狀態)"
7
7
  } }
8
- };
8
+ } };
9
9
 
10
10
  //#endregion
11
11
  export { locale as default };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -14,13 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  declare const locale: {
17
- rightClick: {
18
- zenEditor: string;
19
- };
20
- shortcut: {
21
- sheet: {
22
- 'zen-edit-cancel': string;
23
- 'zen-edit-confirm': string;
17
+ 'sheets-zen-editor': {
18
+ rightClick: {
19
+ zenEditor: string;
20
+ };
21
+ shortcut: {
22
+ sheet: {
23
+ 'zen-edit-cancel': string;
24
+ 'zen-edit-confirm': string;
25
+ };
24
26
  };
25
27
  };
26
28
  };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(require(`@univerjs/core`),require(`@univerjs/core/facade`),require(`@univerjs/docs`),require(`@univerjs/sheets-ui`),require(`@univerjs/sheets-zen-editor`),require(`@univerjs/sheets/facade`)):typeof define==`function`&&define.amd?define([`@univerjs/core`,`@univerjs/core/facade`,`@univerjs/docs`,`@univerjs/sheets-ui`,`@univerjs/sheets-zen-editor`,`@univerjs/sheets/facade`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverCore,e.UniverCoreFacade,e.UniverDocs,e.UniverSheetsUi,e.UniverSheetsZenEditor,e.UniverSheetsFacade))})(this,function(e,t,n,r,i,a){var o=class extends t.FUniver{_initSheetZenEditorEvent(t){let a=t.get(e.ICommandService);this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditStart,()=>a.beforeCommandExecuted(n=>{if(n.id===i.OpenZenEditorCommand.id){let i=this.getCommandSheetTarget(n);if(!i)return;let{workbook:a,worksheet:o}=i,s=t.get(r.IEditorBridgeService),{keycode:c,eventType:l}=n.params,u=s.getEditLocation(),d={row:u.row,column:u.column,eventType:l,keycode:c,workbook:a,worksheet:o,isZenEditor:!0};if(this.fireEvent(this.Event.BeforeSheetEditStart,d),d.cancel)throw new e.CanceledError}}))),this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditEnd,()=>a.beforeCommandExecuted(n=>{if(n.id===i.CancelZenEditCommand.id||n.id===i.ConfirmZenEditCommand.id){let a=this.getCommandSheetTarget(n);if(!a)return;let{workbook:o,worksheet:s}=a,c=t.get(r.IEditorBridgeService),l=t.get(e.IUniverInstanceService),{keycode:u,eventType:d}=n.params,f=c.getEditLocation(),p={row:f.row,column:f.column,eventType:d,keycode:u,workbook:o,worksheet:s,isZenEditor:!0,value:e.RichTextValue.create(l.getUnit(e.DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot()),isConfirm:n.id===i.ConfirmZenEditCommand.id};if(this.fireEvent(this.Event.BeforeSheetEditEnd,p),p.cancel)throw new e.CanceledError}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditStarted,()=>a.onCommandExecuted(e=>{if(e.id===i.OpenZenEditorCommand.id){let n=this.getCommandSheetTarget(e);if(!n)return;let{workbook:i,worksheet:a}=n,o=t.get(r.IEditorBridgeService),{keycode:s,eventType:c}=e.params,l=o.getEditLocation(),u={row:l.row,column:l.column,eventType:c,keycode:s,workbook:i,worksheet:a,isZenEditor:!0};this.fireEvent(this.Event.SheetEditStarted,u)}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditEnded,()=>a.onCommandExecuted(e=>{if(e.id===i.CancelZenEditCommand.id||e.id===i.ConfirmZenEditCommand.id){let n=this.getCommandSheetTarget(e);if(!n)return;let{workbook:a,worksheet:o}=n,s=t.get(r.IEditorBridgeService),{keycode:c,eventType:l}=e.params,u=s.getEditLocation(),d={row:u.row,column:u.column,eventType:l,keycode:c,workbook:a,worksheet:o,isZenEditor:!0,isConfirm:e.id===i.ConfirmZenEditCommand.id};this.fireEvent(this.Event.SheetEditEnded,d)}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditChanging,()=>a.onCommandExecuted(i=>{if(i.id===n.RichTextEditingMutation.id){let n=this.getActiveSheet();if(!n)return;let{workbook:a,worksheet:o}=n,s=t.get(r.IEditorBridgeService),c=t.get(e.IUniverInstanceService),l=i.params;if(!s.isVisible().visible)return;let{unitId:u}=l;if(u===e.DOCS_ZEN_EDITOR_UNIT_ID_KEY){let{row:t,column:n}=s.getEditLocation(),r={workbook:a,worksheet:o,row:t,column:n,value:e.RichTextValue.create(c.getUnit(e.DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot()),isZenEditor:!0};this.fireEvent(this.Event.SheetEditChanging,r)}}})))}_initialize(e){this._initSheetZenEditorEvent(e)}};t.FUniver.extend(o);var s=class extends a.FWorkbook{startZenEditingAsync(){return this._injector.get(e.ICommandService).executeCommand(i.OpenZenEditorCommand.id)}endZenEditingAsync(t=!0){let n=this._injector.get(e.ICommandService);return t?n.executeCommand(i.ConfirmZenEditCommand.id):n.executeCommand(i.CancelZenEditCommand.id)}};a.FWorkbook.extend(s)});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(require("@univerjs/core"),require("@univerjs/core/facade"),require("@univerjs/docs"),require("@univerjs/sheets-ui"),require("@univerjs/sheets-zen-editor"),require("@univerjs/sheets/facade")):typeof define==`function`&&define.amd?define([`@univerjs/core`,`@univerjs/core/facade`,`@univerjs/docs`,`@univerjs/sheets-ui`,`@univerjs/sheets-zen-editor`,`@univerjs/sheets/facade`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverCore,e.UniverCoreFacade,e.UniverDocs,e.UniverSheetsUi,e.UniverSheetsZenEditor,e.UniverSheetsFacade))})(this,function(e,t,n,r,i,a){var o=class extends t.FUniver{_initSheetZenEditorEvent(t){let a=t.get(e.ICommandService);this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditStart,()=>a.beforeCommandExecuted(n=>{if(n.id===i.OpenZenEditorCommand.id){let i=this.getCommandSheetTarget(n);if(!i)return;let{workbook:a,worksheet:o}=i,s=t.get(r.IEditorBridgeService),{keycode:c,eventType:l}=n.params,u=s.getEditLocation(),d={row:u.row,column:u.column,eventType:l,keycode:c,workbook:a,worksheet:o,isZenEditor:!0};if(this.fireEvent(this.Event.BeforeSheetEditStart,d),d.cancel)throw new e.CanceledError}}))),this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditEnd,()=>a.beforeCommandExecuted(n=>{if(n.id===i.CancelZenEditCommand.id||n.id===i.ConfirmZenEditCommand.id){let a=this.getCommandSheetTarget(n);if(!a)return;let{workbook:o,worksheet:s}=a,c=t.get(r.IEditorBridgeService),l=t.get(e.IUniverInstanceService),{keycode:u,eventType:d}=n.params,f=c.getEditLocation(),p={row:f.row,column:f.column,eventType:d,keycode:u,workbook:o,worksheet:s,isZenEditor:!0,value:e.RichTextValue.create(l.getUnit(e.DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot()),isConfirm:n.id===i.ConfirmZenEditCommand.id};if(this.fireEvent(this.Event.BeforeSheetEditEnd,p),p.cancel)throw new e.CanceledError}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditStarted,()=>a.onCommandExecuted(e=>{if(e.id===i.OpenZenEditorCommand.id){let n=this.getCommandSheetTarget(e);if(!n)return;let{workbook:i,worksheet:a}=n,o=t.get(r.IEditorBridgeService),{keycode:s,eventType:c}=e.params,l=o.getEditLocation(),u={row:l.row,column:l.column,eventType:c,keycode:s,workbook:i,worksheet:a,isZenEditor:!0};this.fireEvent(this.Event.SheetEditStarted,u)}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditEnded,()=>a.onCommandExecuted(e=>{if(e.id===i.CancelZenEditCommand.id||e.id===i.ConfirmZenEditCommand.id){let n=this.getCommandSheetTarget(e);if(!n)return;let{workbook:a,worksheet:o}=n,s=t.get(r.IEditorBridgeService),{keycode:c,eventType:l}=e.params,u=s.getEditLocation(),d={row:u.row,column:u.column,eventType:l,keycode:c,workbook:a,worksheet:o,isZenEditor:!0,isConfirm:e.id===i.ConfirmZenEditCommand.id};this.fireEvent(this.Event.SheetEditEnded,d)}}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditChanging,()=>a.onCommandExecuted(i=>{if(i.id===n.RichTextEditingMutation.id){let n=this.getActiveSheet();if(!n)return;let{workbook:a,worksheet:o}=n,s=t.get(r.IEditorBridgeService),c=t.get(e.IUniverInstanceService),l=i.params;if(!s.isVisible().visible)return;let{unitId:u}=l;if(u===e.DOCS_ZEN_EDITOR_UNIT_ID_KEY){let{row:t,column:n}=s.getEditLocation(),r={workbook:a,worksheet:o,row:t,column:n,value:e.RichTextValue.create(c.getUnit(e.DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot()),isZenEditor:!0};this.fireEvent(this.Event.SheetEditChanging,r)}}})))}_initialize(e){this._initSheetZenEditorEvent(e)}};t.FUniver.extend(o);var s=class extends a.FWorkbook{startZenEditingAsync(){return this._injector.get(e.ICommandService).executeCommand(i.OpenZenEditorCommand.id)}endZenEditingAsync(t=!0){let n=this._injector.get(e.ICommandService);return t?n.executeCommand(i.ConfirmZenEditCommand.id):n.executeCommand(i.CancelZenEditCommand.id)}};a.FWorkbook.extend(s)});