@univerjs/sheets-zen-editor 0.24.0 → 0.25.0-insiders.20260608-e4336f7
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/facade.js +18 -34
- 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/facade.js +18 -34
- 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/facade.js +18 -34
- 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/types/views/zen-editor/ZenEditor.d.ts +1 -1
- 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 +13 -13
- package/LICENSE +0 -176
package/lib/cjs/facade.js
CHANGED
|
@@ -11,19 +11,15 @@ var FUniverSheetsZenEditorMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
11
11
|
const commandService = injector.get(_univerjs_core.ICommandService);
|
|
12
12
|
this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditStart, () => commandService.beforeCommandExecuted((commandInfo) => {
|
|
13
13
|
if (commandInfo.id === _univerjs_sheets_zen_editor.OpenZenEditorCommand.id) {
|
|
14
|
-
const target = this.
|
|
14
|
+
const target = this.getSheetCommandTarget();
|
|
15
15
|
if (!target) return;
|
|
16
16
|
const { workbook, worksheet } = target;
|
|
17
|
-
const
|
|
18
|
-
const { keycode, eventType } = commandInfo.params;
|
|
19
|
-
const loc = editorBridgeService.getEditLocation();
|
|
17
|
+
const loc = injector.get(_univerjs_sheets_ui.IEditorBridgeService).getEditLocation();
|
|
20
18
|
const eventParams = {
|
|
21
|
-
row: loc.row,
|
|
22
|
-
column: loc.column,
|
|
23
|
-
eventType,
|
|
24
|
-
keycode,
|
|
25
19
|
workbook,
|
|
26
20
|
worksheet,
|
|
21
|
+
row: loc.row,
|
|
22
|
+
column: loc.column,
|
|
27
23
|
isZenEditor: true
|
|
28
24
|
};
|
|
29
25
|
this.fireEvent(this.Event.BeforeSheetEditStart, eventParams);
|
|
@@ -32,22 +28,18 @@ var FUniverSheetsZenEditorMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
32
28
|
})));
|
|
33
29
|
this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditEnd, () => commandService.beforeCommandExecuted((commandInfo) => {
|
|
34
30
|
if (commandInfo.id === _univerjs_sheets_zen_editor.CancelZenEditCommand.id || commandInfo.id === _univerjs_sheets_zen_editor.ConfirmZenEditCommand.id) {
|
|
35
|
-
const target = this.
|
|
31
|
+
const target = this.getSheetCommandTarget();
|
|
36
32
|
if (!target) return;
|
|
37
33
|
const { workbook, worksheet } = target;
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const { keycode, eventType } = commandInfo.params;
|
|
41
|
-
const loc = editorBridgeService.getEditLocation();
|
|
34
|
+
const loc = injector.get(_univerjs_sheets_ui.IEditorBridgeService).getEditLocation();
|
|
35
|
+
const value = _univerjs_core.RichTextValue.create(injector.get(_univerjs_core.IUniverInstanceService).getUnit(_univerjs_core.DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot());
|
|
42
36
|
const eventParams = {
|
|
43
|
-
row: loc.row,
|
|
44
|
-
column: loc.column,
|
|
45
|
-
eventType,
|
|
46
|
-
keycode,
|
|
47
37
|
workbook,
|
|
48
38
|
worksheet,
|
|
39
|
+
row: loc.row,
|
|
40
|
+
column: loc.column,
|
|
49
41
|
isZenEditor: true,
|
|
50
|
-
value
|
|
42
|
+
value,
|
|
51
43
|
isConfirm: commandInfo.id === _univerjs_sheets_zen_editor.ConfirmZenEditCommand.id
|
|
52
44
|
};
|
|
53
45
|
this.fireEvent(this.Event.BeforeSheetEditEnd, eventParams);
|
|
@@ -56,19 +48,15 @@ var FUniverSheetsZenEditorMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
56
48
|
})));
|
|
57
49
|
this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditStarted, () => commandService.onCommandExecuted((commandInfo) => {
|
|
58
50
|
if (commandInfo.id === _univerjs_sheets_zen_editor.OpenZenEditorCommand.id) {
|
|
59
|
-
const target = this.
|
|
51
|
+
const target = this.getSheetCommandTarget();
|
|
60
52
|
if (!target) return;
|
|
61
53
|
const { workbook, worksheet } = target;
|
|
62
|
-
const
|
|
63
|
-
const { keycode, eventType } = commandInfo.params;
|
|
64
|
-
const loc = editorBridgeService.getEditLocation();
|
|
54
|
+
const loc = injector.get(_univerjs_sheets_ui.IEditorBridgeService).getEditLocation();
|
|
65
55
|
const eventParams = {
|
|
66
|
-
row: loc.row,
|
|
67
|
-
column: loc.column,
|
|
68
|
-
eventType,
|
|
69
|
-
keycode,
|
|
70
56
|
workbook,
|
|
71
57
|
worksheet,
|
|
58
|
+
row: loc.row,
|
|
59
|
+
column: loc.column,
|
|
72
60
|
isZenEditor: true
|
|
73
61
|
};
|
|
74
62
|
this.fireEvent(this.Event.SheetEditStarted, eventParams);
|
|
@@ -76,19 +64,15 @@ var FUniverSheetsZenEditorMixin = class extends _univerjs_core_facade.FUniver {
|
|
|
76
64
|
})));
|
|
77
65
|
this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditEnded, () => commandService.onCommandExecuted((commandInfo) => {
|
|
78
66
|
if (commandInfo.id === _univerjs_sheets_zen_editor.CancelZenEditCommand.id || commandInfo.id === _univerjs_sheets_zen_editor.ConfirmZenEditCommand.id) {
|
|
79
|
-
const target = this.
|
|
67
|
+
const target = this.getSheetCommandTarget();
|
|
80
68
|
if (!target) return;
|
|
81
69
|
const { workbook, worksheet } = target;
|
|
82
|
-
const
|
|
83
|
-
const { keycode, eventType } = commandInfo.params;
|
|
84
|
-
const loc = editorBridgeService.getEditLocation();
|
|
70
|
+
const loc = injector.get(_univerjs_sheets_ui.IEditorBridgeService).getEditLocation();
|
|
85
71
|
const eventParams = {
|
|
86
|
-
row: loc.row,
|
|
87
|
-
column: loc.column,
|
|
88
|
-
eventType,
|
|
89
|
-
keycode,
|
|
90
72
|
workbook,
|
|
91
73
|
worksheet,
|
|
74
|
+
row: loc.row,
|
|
75
|
+
column: loc.column,
|
|
92
76
|
isZenEditor: true,
|
|
93
77
|
isConfirm: commandInfo.id === _univerjs_sheets_zen_editor.ConfirmZenEditCommand.id
|
|
94
78
|
};
|
package/lib/cjs/index.js
CHANGED
|
@@ -114,7 +114,7 @@ const ConfirmZenEditCommand = {
|
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region package.json
|
|
116
116
|
var name = "@univerjs/sheets-zen-editor";
|
|
117
|
-
var version = "0.
|
|
117
|
+
var version = "0.25.0-insiders.20260608-e4336f7";
|
|
118
118
|
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/config/config.ts
|
|
@@ -129,7 +129,7 @@ function ZenEditorMenuItemFactory(accessor) {
|
|
|
129
129
|
return {
|
|
130
130
|
id: OpenZenEditorCommand.id,
|
|
131
131
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
132
|
-
title: "rightClick.zenEditor",
|
|
132
|
+
title: "sheets-zen-editor.rightClick.zenEditor",
|
|
133
133
|
icon: "AmplifyIcon",
|
|
134
134
|
hidden$: (0, _univerjs_sheets_ui.getCurrentExclusiveRangeInterest$)(accessor),
|
|
135
135
|
disabled$: editorBridgeService.currentEditCell$.pipe((0, rxjs.switchMap)((cell) => (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
@@ -155,7 +155,7 @@ const menuSchema = { [_univerjs_ui.ContextMenuPosition.MAIN_AREA]: { [_univerjs_
|
|
|
155
155
|
} } } };
|
|
156
156
|
|
|
157
157
|
//#endregion
|
|
158
|
-
//#region \0@oxc-project+runtime@0.
|
|
158
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
159
159
|
function _typeof(o) {
|
|
160
160
|
"@babel/helpers - typeof";
|
|
161
161
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -166,7 +166,7 @@ function _typeof(o) {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
//#endregion
|
|
169
|
-
//#region \0@oxc-project+runtime@0.
|
|
169
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
170
170
|
function toPrimitive(t, r) {
|
|
171
171
|
if ("object" != _typeof(t) || !t) return t;
|
|
172
172
|
var e = t[Symbol.toPrimitive];
|
|
@@ -179,14 +179,14 @@ function toPrimitive(t, r) {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
//#endregion
|
|
182
|
-
//#region \0@oxc-project+runtime@0.
|
|
182
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
183
183
|
function toPropertyKey(t) {
|
|
184
184
|
var i = toPrimitive(t, "string");
|
|
185
185
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
|
-
//#region \0@oxc-project+runtime@0.
|
|
189
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
190
190
|
function _defineProperty(e, r, t) {
|
|
191
191
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
192
192
|
value: t,
|
|
@@ -313,15 +313,17 @@ function ZenEditor() {
|
|
|
313
313
|
//#region src/controllers/shortcuts/zen-editor.shortcut.ts
|
|
314
314
|
const ZenEditorConfirmShortcut = {
|
|
315
315
|
id: ConfirmZenEditCommand.id,
|
|
316
|
-
description: "shortcut.sheet.zen-edit-confirm",
|
|
316
|
+
description: "sheets-zen-editor.shortcut.sheet.zen-edit-confirm",
|
|
317
317
|
group: "4_sheet-edit",
|
|
318
|
+
groupTitle: "sheets-ui.shortcut.sheet-edit",
|
|
318
319
|
preconditions: (contextService) => whenZenEditorActivated(contextService),
|
|
319
320
|
binding: _univerjs_ui.KeyCode.ENTER | _univerjs_ui.MetaKeys.ALT
|
|
320
321
|
};
|
|
321
322
|
const ZenEditorCancelShortcut = {
|
|
322
323
|
id: CancelZenEditCommand.id,
|
|
323
|
-
description: "shortcut.sheet.zen-edit-cancel",
|
|
324
|
+
description: "sheets-zen-editor.shortcut.sheet.zen-edit-cancel",
|
|
324
325
|
group: "4_sheet-edit",
|
|
326
|
+
groupTitle: "sheets-ui.shortcut.sheet-edit",
|
|
325
327
|
preconditions: (contextService) => whenZenEditorActivated(contextService),
|
|
326
328
|
binding: _univerjs_ui.KeyCode.ESC
|
|
327
329
|
};
|
|
@@ -335,7 +337,7 @@ function whenZenEditorActivated(contextService) {
|
|
|
335
337
|
}
|
|
336
338
|
|
|
337
339
|
//#endregion
|
|
338
|
-
//#region \0@oxc-project+runtime@0.
|
|
340
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateParam.js
|
|
339
341
|
function __decorateParam(paramIndex, decorator) {
|
|
340
342
|
return function(target, key) {
|
|
341
343
|
decorator(target, key, paramIndex);
|
|
@@ -343,7 +345,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
343
345
|
}
|
|
344
346
|
|
|
345
347
|
//#endregion
|
|
346
|
-
//#region \0@oxc-project+runtime@0.
|
|
348
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
|
|
347
349
|
function __decorate(decorators, target, key, desc) {
|
|
348
350
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
349
351
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/ar-SA.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "محرر ملء الشاشة" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "إلغاء التحرير في وضع ملء الشاشة",
|
|
7
|
+
"zen-edit-confirm": "تأكيد التحرير في وضع ملء الشاشة"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ca-ES.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Editor a pantalla completa" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Cancel·la edició Zen",
|
|
7
7
|
"zen-edit-confirm": "Confirma edició Zen"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/de-DE.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "Vollbild-Editor" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "Zen-Bearbeitung abbrechen",
|
|
7
|
+
"zen-edit-confirm": "Zen-Bearbeitung bestätigen"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
const locale = {
|
|
18
|
+
const locale = { "sheets-zen-editor": {
|
|
19
19
|
rightClick: { zenEditor: "Full Screen Editor" },
|
|
20
20
|
shortcut: { sheet: {
|
|
21
21
|
"zen-edit-cancel": "Cancel Zen Edit",
|
|
22
22
|
"zen-edit-confirm": "Confirm Zen Edit"
|
|
23
23
|
} }
|
|
24
|
-
};
|
|
24
|
+
} };
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
module.exports = locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/es-ES.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Editor a pantalla completa" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Cancelar edición Zen",
|
|
7
7
|
"zen-edit-confirm": "Confirmar edición Zen"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/fa-IR.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "ویرایشگر تمام صفحه" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "لغو ویرایش Zen",
|
|
7
7
|
"zen-edit-confirm": "تایید ویرایش Zen"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/fr-FR.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Éditeur plein écran" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Annuler l'édition plein écran",
|
|
7
7
|
"zen-edit-confirm": "Confirmer l'édition plein écran"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/id-ID.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "Editor Layar Penuh" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "Batalkan Edit Zen",
|
|
7
|
+
"zen-edit-confirm": "Konfirmasi Edit Zen"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/it-IT.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "Editor a schermo intero" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "Annulla modifica Zen",
|
|
7
|
+
"zen-edit-confirm": "Conferma modifica Zen"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ja-JP.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "禅モード" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "禅モードをキャンセル",
|
|
7
7
|
"zen-edit-confirm": "禅モードに移行"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ko-KR.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "젠 에디터" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "젠 편집 취소",
|
|
7
7
|
"zen-edit-confirm": "젠 편집 확인"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pl-PL.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "Edytor pełnoekranowy" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "Anuluj edycję w trybie Zen",
|
|
7
|
+
"zen-edit-confirm": "Potwierdź edycję w trybie Zen"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pt-BR.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "Editor em Tela Cheia" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "Cancelar Edição Zen",
|
|
7
|
+
"zen-edit-confirm": "Confirmar Edição Zen"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ru-RU.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Редактор на весь экран" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Отменить Zen редактирование",
|
|
7
7
|
"zen-edit-confirm": "Подтвердить Zen редактирование"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/sk-SK.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Editor na celú obrazovku" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Zrušiť zen úpravu",
|
|
7
7
|
"zen-edit-confirm": "Potvrdiť zen úpravu"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/vi-VN.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "Chế độ chỉnh sửa Zen" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "Hủy chỉnh sửa (trạng thái Zen mode)",
|
|
7
7
|
"zen-edit-confirm": "Bỏ chỉnh sửa (trạng thái Zen mode)"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-CN.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "禅模式编辑" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "取消编辑(禅模式状态)",
|
|
7
7
|
"zen-edit-confirm": "放弃编辑(禅模式状态)"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/zh-HK.ts
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
|
+
rightClick: { zenEditor: "禪模式編輯" },
|
|
5
|
+
shortcut: { sheet: {
|
|
6
|
+
"zen-edit-cancel": "取消編輯(禪模式狀態)",
|
|
7
|
+
"zen-edit-confirm": "放棄編輯(禪模式狀態)"
|
|
8
|
+
} }
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-TW.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { "sheets-zen-editor": {
|
|
4
4
|
rightClick: { zenEditor: "禪模式編輯" },
|
|
5
5
|
shortcut: { sheet: {
|
|
6
6
|
"zen-edit-cancel": "取消編輯(禪模式狀態)",
|
|
7
7
|
"zen-edit-confirm": "放棄編輯(禪模式狀態)"
|
|
8
8
|
} }
|
|
9
|
-
};
|
|
9
|
+
} };
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = locale;
|
package/lib/es/facade.js
CHANGED
|
@@ -11,19 +11,15 @@ var FUniverSheetsZenEditorMixin = class extends FUniver {
|
|
|
11
11
|
const commandService = injector.get(ICommandService);
|
|
12
12
|
this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditStart, () => commandService.beforeCommandExecuted((commandInfo) => {
|
|
13
13
|
if (commandInfo.id === OpenZenEditorCommand.id) {
|
|
14
|
-
const target = this.
|
|
14
|
+
const target = this.getSheetCommandTarget();
|
|
15
15
|
if (!target) return;
|
|
16
16
|
const { workbook, worksheet } = target;
|
|
17
|
-
const
|
|
18
|
-
const { keycode, eventType } = commandInfo.params;
|
|
19
|
-
const loc = editorBridgeService.getEditLocation();
|
|
17
|
+
const loc = injector.get(IEditorBridgeService).getEditLocation();
|
|
20
18
|
const eventParams = {
|
|
21
|
-
row: loc.row,
|
|
22
|
-
column: loc.column,
|
|
23
|
-
eventType,
|
|
24
|
-
keycode,
|
|
25
19
|
workbook,
|
|
26
20
|
worksheet,
|
|
21
|
+
row: loc.row,
|
|
22
|
+
column: loc.column,
|
|
27
23
|
isZenEditor: true
|
|
28
24
|
};
|
|
29
25
|
this.fireEvent(this.Event.BeforeSheetEditStart, eventParams);
|
|
@@ -32,22 +28,18 @@ var FUniverSheetsZenEditorMixin = class extends FUniver {
|
|
|
32
28
|
})));
|
|
33
29
|
this.disposeWithMe(this.registerEventHandler(this.Event.BeforeSheetEditEnd, () => commandService.beforeCommandExecuted((commandInfo) => {
|
|
34
30
|
if (commandInfo.id === CancelZenEditCommand.id || commandInfo.id === ConfirmZenEditCommand.id) {
|
|
35
|
-
const target = this.
|
|
31
|
+
const target = this.getSheetCommandTarget();
|
|
36
32
|
if (!target) return;
|
|
37
33
|
const { workbook, worksheet } = target;
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const { keycode, eventType } = commandInfo.params;
|
|
41
|
-
const loc = editorBridgeService.getEditLocation();
|
|
34
|
+
const loc = injector.get(IEditorBridgeService).getEditLocation();
|
|
35
|
+
const value = RichTextValue.create(injector.get(IUniverInstanceService).getUnit(DOCS_ZEN_EDITOR_UNIT_ID_KEY).getSnapshot());
|
|
42
36
|
const eventParams = {
|
|
43
|
-
row: loc.row,
|
|
44
|
-
column: loc.column,
|
|
45
|
-
eventType,
|
|
46
|
-
keycode,
|
|
47
37
|
workbook,
|
|
48
38
|
worksheet,
|
|
39
|
+
row: loc.row,
|
|
40
|
+
column: loc.column,
|
|
49
41
|
isZenEditor: true,
|
|
50
|
-
value
|
|
42
|
+
value,
|
|
51
43
|
isConfirm: commandInfo.id === ConfirmZenEditCommand.id
|
|
52
44
|
};
|
|
53
45
|
this.fireEvent(this.Event.BeforeSheetEditEnd, eventParams);
|
|
@@ -56,19 +48,15 @@ var FUniverSheetsZenEditorMixin = class extends FUniver {
|
|
|
56
48
|
})));
|
|
57
49
|
this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditStarted, () => commandService.onCommandExecuted((commandInfo) => {
|
|
58
50
|
if (commandInfo.id === OpenZenEditorCommand.id) {
|
|
59
|
-
const target = this.
|
|
51
|
+
const target = this.getSheetCommandTarget();
|
|
60
52
|
if (!target) return;
|
|
61
53
|
const { workbook, worksheet } = target;
|
|
62
|
-
const
|
|
63
|
-
const { keycode, eventType } = commandInfo.params;
|
|
64
|
-
const loc = editorBridgeService.getEditLocation();
|
|
54
|
+
const loc = injector.get(IEditorBridgeService).getEditLocation();
|
|
65
55
|
const eventParams = {
|
|
66
|
-
row: loc.row,
|
|
67
|
-
column: loc.column,
|
|
68
|
-
eventType,
|
|
69
|
-
keycode,
|
|
70
56
|
workbook,
|
|
71
57
|
worksheet,
|
|
58
|
+
row: loc.row,
|
|
59
|
+
column: loc.column,
|
|
72
60
|
isZenEditor: true
|
|
73
61
|
};
|
|
74
62
|
this.fireEvent(this.Event.SheetEditStarted, eventParams);
|
|
@@ -76,19 +64,15 @@ var FUniverSheetsZenEditorMixin = class extends FUniver {
|
|
|
76
64
|
})));
|
|
77
65
|
this.disposeWithMe(this.registerEventHandler(this.Event.SheetEditEnded, () => commandService.onCommandExecuted((commandInfo) => {
|
|
78
66
|
if (commandInfo.id === CancelZenEditCommand.id || commandInfo.id === ConfirmZenEditCommand.id) {
|
|
79
|
-
const target = this.
|
|
67
|
+
const target = this.getSheetCommandTarget();
|
|
80
68
|
if (!target) return;
|
|
81
69
|
const { workbook, worksheet } = target;
|
|
82
|
-
const
|
|
83
|
-
const { keycode, eventType } = commandInfo.params;
|
|
84
|
-
const loc = editorBridgeService.getEditLocation();
|
|
70
|
+
const loc = injector.get(IEditorBridgeService).getEditLocation();
|
|
85
71
|
const eventParams = {
|
|
86
|
-
row: loc.row,
|
|
87
|
-
column: loc.column,
|
|
88
|
-
eventType,
|
|
89
|
-
keycode,
|
|
90
72
|
workbook,
|
|
91
73
|
worksheet,
|
|
74
|
+
row: loc.row,
|
|
75
|
+
column: loc.column,
|
|
92
76
|
isZenEditor: true,
|
|
93
77
|
isConfirm: commandInfo.id === ConfirmZenEditCommand.id
|
|
94
78
|
};
|