@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.
- package/lib/cjs/index.js +12 -10
- package/lib/cjs/locale/ar-SA.js +12 -0
- package/lib/cjs/locale/ca-ES.js +2 -2
- package/lib/cjs/locale/de-DE.js +12 -0
- package/lib/cjs/locale/en-US.js +2 -2
- package/lib/cjs/locale/es-ES.js +2 -2
- package/lib/cjs/locale/fa-IR.js +2 -2
- package/lib/cjs/locale/fr-FR.js +2 -2
- package/lib/cjs/locale/id-ID.js +12 -0
- package/lib/cjs/locale/it-IT.js +12 -0
- package/lib/cjs/locale/ja-JP.js +2 -2
- package/lib/cjs/locale/ko-KR.js +2 -2
- package/lib/cjs/locale/pl-PL.js +12 -0
- package/lib/cjs/locale/pt-BR.js +12 -0
- package/lib/cjs/locale/ru-RU.js +2 -2
- package/lib/cjs/locale/sk-SK.js +2 -2
- package/lib/cjs/locale/vi-VN.js +2 -2
- package/lib/cjs/locale/zh-CN.js +2 -2
- package/lib/cjs/locale/zh-HK.js +12 -0
- package/lib/cjs/locale/zh-TW.js +2 -2
- package/lib/es/index.js +12 -10
- package/lib/es/locale/ar-SA.js +11 -0
- package/lib/es/locale/ca-ES.js +2 -2
- package/lib/es/locale/de-DE.js +11 -0
- package/lib/es/locale/en-US.js +2 -2
- package/lib/es/locale/es-ES.js +2 -2
- package/lib/es/locale/fa-IR.js +2 -2
- package/lib/es/locale/fr-FR.js +2 -2
- package/lib/es/locale/id-ID.js +11 -0
- package/lib/es/locale/it-IT.js +11 -0
- package/lib/es/locale/ja-JP.js +2 -2
- package/lib/es/locale/ko-KR.js +2 -2
- package/lib/es/locale/pl-PL.js +11 -0
- package/lib/es/locale/pt-BR.js +11 -0
- package/lib/es/locale/ru-RU.js +2 -2
- package/lib/es/locale/sk-SK.js +2 -2
- package/lib/es/locale/vi-VN.js +2 -2
- package/lib/es/locale/zh-CN.js +2 -2
- package/lib/es/locale/zh-HK.js +11 -0
- package/lib/es/locale/zh-TW.js +2 -2
- package/lib/index.js +12 -10
- package/lib/locale/ar-SA.js +11 -0
- package/lib/locale/ca-ES.js +2 -2
- package/lib/locale/de-DE.js +11 -0
- package/lib/locale/en-US.js +2 -2
- package/lib/locale/es-ES.js +2 -2
- package/lib/locale/fa-IR.js +2 -2
- package/lib/locale/fr-FR.js +2 -2
- package/lib/locale/id-ID.js +11 -0
- package/lib/locale/it-IT.js +11 -0
- package/lib/locale/ja-JP.js +2 -2
- package/lib/locale/ko-KR.js +2 -2
- package/lib/locale/pl-PL.js +11 -0
- package/lib/locale/pt-BR.js +11 -0
- package/lib/locale/ru-RU.js +2 -2
- package/lib/locale/sk-SK.js +2 -2
- package/lib/locale/vi-VN.js +2 -2
- package/lib/locale/zh-CN.js +2 -2
- package/lib/locale/zh-HK.js +11 -0
- package/lib/locale/zh-TW.js +2 -2
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +9 -7
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -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 };
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -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 };
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -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 };
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -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 };
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -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 };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -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 };
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -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 };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -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 };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -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 };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -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 };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -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 };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -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 };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -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 };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -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 };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -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 };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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(
|
|
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)});
|