@univerjs/ui 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 +8 -7
- package/lib/cjs/index.js +576 -186
- package/lib/cjs/locale/ar-SA.js +81 -0
- package/lib/cjs/locale/ca-ES.js +5 -3
- package/lib/cjs/locale/de-DE.js +81 -0
- package/lib/cjs/locale/en-US.js +5 -3
- package/lib/cjs/locale/es-ES.js +5 -3
- package/lib/cjs/locale/fa-IR.js +5 -3
- package/lib/cjs/locale/fr-FR.js +5 -3
- package/lib/cjs/locale/id-ID.js +81 -0
- package/lib/cjs/locale/it-IT.js +81 -0
- package/lib/cjs/locale/ja-JP.js +5 -3
- package/lib/cjs/locale/ko-KR.js +5 -3
- package/lib/cjs/locale/pl-PL.js +81 -0
- package/lib/cjs/locale/pt-BR.js +81 -0
- package/lib/cjs/locale/ru-RU.js +5 -3
- package/lib/cjs/locale/sk-SK.js +5 -3
- package/lib/cjs/locale/vi-VN.js +5 -3
- package/lib/cjs/locale/zh-CN.js +5 -3
- package/lib/cjs/locale/zh-HK.js +81 -0
- package/lib/cjs/locale/zh-TW.js +5 -3
- package/lib/es/facade.js +8 -7
- package/lib/es/index.js +577 -170
- package/lib/es/locale/ar-SA.js +80 -0
- package/lib/es/locale/ca-ES.js +5 -3
- package/lib/es/locale/de-DE.js +80 -0
- package/lib/es/locale/en-US.js +5 -3
- package/lib/es/locale/es-ES.js +5 -3
- package/lib/es/locale/fa-IR.js +5 -3
- package/lib/es/locale/fr-FR.js +5 -3
- package/lib/es/locale/id-ID.js +80 -0
- package/lib/es/locale/it-IT.js +80 -0
- package/lib/es/locale/ja-JP.js +5 -3
- package/lib/es/locale/ko-KR.js +5 -3
- package/lib/es/locale/pl-PL.js +80 -0
- package/lib/es/locale/pt-BR.js +80 -0
- package/lib/es/locale/ru-RU.js +5 -3
- package/lib/es/locale/sk-SK.js +5 -3
- package/lib/es/locale/vi-VN.js +5 -3
- package/lib/es/locale/zh-CN.js +5 -3
- package/lib/es/locale/zh-HK.js +80 -0
- package/lib/es/locale/zh-TW.js +5 -3
- package/lib/facade.js +8 -7
- package/lib/index.css +9 -4
- package/lib/index.js +577 -170
- package/lib/locale/ar-SA.js +80 -0
- package/lib/locale/ca-ES.js +5 -3
- package/lib/locale/de-DE.js +80 -0
- package/lib/locale/en-US.js +5 -3
- package/lib/locale/es-ES.js +5 -3
- package/lib/locale/fa-IR.js +5 -3
- package/lib/locale/fr-FR.js +5 -3
- package/lib/locale/id-ID.js +80 -0
- package/lib/locale/it-IT.js +80 -0
- package/lib/locale/ja-JP.js +5 -3
- package/lib/locale/ko-KR.js +5 -3
- package/lib/locale/pl-PL.js +80 -0
- package/lib/locale/pt-BR.js +80 -0
- package/lib/locale/ru-RU.js +5 -3
- package/lib/locale/sk-SK.js +5 -3
- package/lib/locale/vi-VN.js +5 -3
- package/lib/locale/zh-CN.js +5 -3
- package/lib/locale/zh-HK.js +80 -0
- package/lib/locale/zh-TW.js +5 -3
- package/lib/types/components/common-label/index.d.ts +1 -1
- package/lib/types/components/custom-label/CustomLabel.d.ts +1 -1
- package/lib/types/components/font-family/FontFamily.d.ts +1 -1
- package/lib/types/components/font-family/FontFamilyItem.d.ts +1 -1
- package/lib/types/components/font-size/FontSize.d.ts +1 -1
- package/lib/types/components/heading-item/index.d.ts +1 -1
- package/lib/types/components/menu/desktop/DesignTinyMenuGroup.d.ts +2 -1
- package/lib/types/components/menu/desktop/TinyMenuGroup.d.ts +6 -2
- package/lib/types/components/menu/mobile/MobileMenu.d.ts +1 -1
- package/lib/types/components/menu/mobile/MobileMenu.stories.d.ts +1 -1
- package/lib/types/components/message/MessageContainer.d.ts +1 -1
- package/lib/types/components/notification/Notification.d.ts +1 -1
- package/lib/types/components/notification/Notification.stories.d.ts +5 -5
- package/lib/types/components/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/types/components/slider/Slider.d.ts +2 -1
- package/lib/types/components/slider/Slider.stories.d.ts +1 -1
- package/lib/types/facade/f-shortcut.d.ts +2 -1
- package/lib/types/facade/f-univer.d.ts +8 -4
- package/lib/types/index.d.ts +0 -1
- package/lib/types/{components/hooks/locale.d.ts → locale/ar-SA.d.ts} +3 -3
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +79 -75
- 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/services/before-close/before-close.service.d.ts +5 -1
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +2 -2
- package/lib/types/services/menu/menu-manager.service.d.ts +1 -0
- package/lib/types/services/ribbon/ribbon.service.d.ts +2 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +8 -0
- package/lib/types/utils/storage-driver.d.ts +26 -0
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +1 -1
- package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +1 -1
- package/lib/types/views/components/context-menu/ContextMenu.d.ts +1 -1
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +6 -1
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +1 -1
- package/lib/types/views/components/dom/FloatDom.d.ts +2 -2
- package/lib/types/views/components/dom/Print.d.ts +1 -1
- package/lib/types/views/components/gallery-part/GalleryPart.d.ts +1 -1
- package/lib/types/views/components/popup/CanvasPopup.d.ts +2 -2
- package/lib/types/views/components/popup/RectPopup.d.ts +1 -1
- package/lib/types/views/components/ribbon/MobileRibbon.d.ts +1 -1
- package/lib/types/views/components/ribbon/Ribbon.d.ts +1 -1
- package/lib/types/views/components/ribbon/ToolbarButton.d.ts +1 -1
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +2 -2
- package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +1 -1
- package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +1 -1
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +1 -1
- package/lib/types/views/components/sidebar/Sidebar.d.ts +1 -1
- package/lib/types/views/components/zen-zone/ZenZone.d.ts +1 -1
- package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +1 -1
- package/lib/types/views/workbench/Workbench.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +51 -43
- 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 +9 -10
- package/LICENSE +0 -176
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/vi-VN.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { ui: {
|
|
4
4
|
toolbar: { heading: {
|
|
5
5
|
normal: "Văn bản",
|
|
6
6
|
title: "Tiêu đề",
|
|
@@ -72,8 +72,10 @@ const locale = {
|
|
|
72
72
|
cancel: "Hủy"
|
|
73
73
|
},
|
|
74
74
|
"global-shortcut": "Phím tắt toàn cầu",
|
|
75
|
-
"zoom-slider": { resetTo: "Khôi phục đến" }
|
|
76
|
-
|
|
75
|
+
"zoom-slider": { resetTo: "Khôi phục đến" },
|
|
76
|
+
row: "Hàng",
|
|
77
|
+
column: "Cột"
|
|
78
|
+
} };
|
|
77
79
|
|
|
78
80
|
//#endregion
|
|
79
81
|
module.exports = locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-CN.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { ui: {
|
|
4
4
|
toolbar: { heading: {
|
|
5
5
|
normal: "正文",
|
|
6
6
|
title: "标题",
|
|
@@ -72,8 +72,10 @@ const locale = {
|
|
|
72
72
|
cancel: "取消"
|
|
73
73
|
},
|
|
74
74
|
"global-shortcut": "全局快捷键",
|
|
75
|
-
"zoom-slider": { resetTo: "恢复至" }
|
|
76
|
-
|
|
75
|
+
"zoom-slider": { resetTo: "恢复至" },
|
|
76
|
+
row: "行",
|
|
77
|
+
column: "列"
|
|
78
|
+
} };
|
|
77
79
|
|
|
78
80
|
//#endregion
|
|
79
81
|
module.exports = locale;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/zh-HK.ts
|
|
3
|
+
const locale = { ui: {
|
|
4
|
+
toolbar: { heading: {
|
|
5
|
+
normal: "正文",
|
|
6
|
+
title: "標題",
|
|
7
|
+
subTitle: "副標題",
|
|
8
|
+
1: "標題 1",
|
|
9
|
+
2: "標題 2",
|
|
10
|
+
3: "標題 3",
|
|
11
|
+
4: "標題 4",
|
|
12
|
+
5: "標題 5",
|
|
13
|
+
6: "標題 6",
|
|
14
|
+
tooltip: "設定標題"
|
|
15
|
+
} },
|
|
16
|
+
ribbon: {
|
|
17
|
+
start: "開始",
|
|
18
|
+
startDesc: "初始化工作表並設定基本參數。",
|
|
19
|
+
insert: "插入",
|
|
20
|
+
insertDesc: "插入行、列、圖表和各種其他元素。",
|
|
21
|
+
formulas: "公式",
|
|
22
|
+
formulasDesc: "使用函數和公式進行數據計算。",
|
|
23
|
+
data: "資料",
|
|
24
|
+
dataDesc: "管理資料,包括匯入、排序和篩選。",
|
|
25
|
+
view: "視圖",
|
|
26
|
+
viewDesc: "切換視圖模式並調整顯示效果。",
|
|
27
|
+
others: "其他",
|
|
28
|
+
othersDesc: "其他功能和設定。",
|
|
29
|
+
more: "更多"
|
|
30
|
+
},
|
|
31
|
+
fontFamily: {
|
|
32
|
+
"not-supported": "系統中未找到該字型,使用預設字型。",
|
|
33
|
+
arial: "Arial",
|
|
34
|
+
"times-new-roman": "Times New Roman",
|
|
35
|
+
tahoma: "Tahoma",
|
|
36
|
+
verdana: "Verdana",
|
|
37
|
+
"microsoft-yahei": "微軟雅黑",
|
|
38
|
+
simsun: "宋體",
|
|
39
|
+
simhei: "黑體",
|
|
40
|
+
kaiti: "楷體",
|
|
41
|
+
fangsong: "仿宋",
|
|
42
|
+
nsimsun: "新宋體",
|
|
43
|
+
stxinwei: "華文新魏",
|
|
44
|
+
stxingkai: "華文行楷",
|
|
45
|
+
stliti: "華文隸書"
|
|
46
|
+
},
|
|
47
|
+
"shortcut-panel": { title: "快捷鍵面板" },
|
|
48
|
+
shortcut: {
|
|
49
|
+
undo: "撤銷",
|
|
50
|
+
redo: "重做",
|
|
51
|
+
cut: "剪切",
|
|
52
|
+
copy: "複製",
|
|
53
|
+
paste: "貼上",
|
|
54
|
+
"shortcut-panel": "開啟收起快捷鍵面板"
|
|
55
|
+
},
|
|
56
|
+
"common-edit": "常用編輯",
|
|
57
|
+
"toggle-shortcut-panel": "開啟收起快速鍵面板",
|
|
58
|
+
clipboard: { authentication: {
|
|
59
|
+
title: "無法存取剪貼簿",
|
|
60
|
+
content: "請允許 Univer 存取您的剪貼簿。 "
|
|
61
|
+
} },
|
|
62
|
+
textEditor: {
|
|
63
|
+
formulaError: "請輸入合法的公式,例如=SUM(A1)",
|
|
64
|
+
rangeError: "請輸入合法的範圍,例如 A1:B10"
|
|
65
|
+
},
|
|
66
|
+
rangeSelector: {
|
|
67
|
+
title: "選擇一個資料範圍",
|
|
68
|
+
addAnotherRange: "新增範圍",
|
|
69
|
+
buttonTooltip: "選擇資料範圍",
|
|
70
|
+
placeHolder: "框選範圍或輸入",
|
|
71
|
+
confirm: "確認",
|
|
72
|
+
cancel: "取消"
|
|
73
|
+
},
|
|
74
|
+
"global-shortcut": "全域快捷鍵",
|
|
75
|
+
"zoom-slider": { resetTo: "恢復至" },
|
|
76
|
+
row: "列",
|
|
77
|
+
column: "欄"
|
|
78
|
+
} };
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-TW.ts
|
|
3
|
-
const locale = {
|
|
3
|
+
const locale = { ui: {
|
|
4
4
|
toolbar: { heading: {
|
|
5
5
|
normal: "正文",
|
|
6
6
|
title: "標題",
|
|
@@ -72,8 +72,10 @@ const locale = {
|
|
|
72
72
|
cancel: "取消"
|
|
73
73
|
},
|
|
74
74
|
"global-shortcut": "全域快捷鍵",
|
|
75
|
-
"zoom-slider": { resetTo: "恢復至" }
|
|
76
|
-
|
|
75
|
+
"zoom-slider": { resetTo: "恢復至" },
|
|
76
|
+
row: "列",
|
|
77
|
+
column: "欄"
|
|
78
|
+
} };
|
|
77
79
|
|
|
78
80
|
//#endregion
|
|
79
81
|
module.exports = locale;
|
package/lib/es/facade.js
CHANGED
|
@@ -3,7 +3,7 @@ import { IRenderManagerService } from "@univerjs/engine-render";
|
|
|
3
3
|
import { BuiltInUIPart, ComponentManager, CopyCommand, IDialogService, IFontService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, IUIPartsService, KeyCode, MenuItemType, MenuManagerPosition, PasteCommand, RibbonPosition, RibbonStartGroup, SheetPasteShortKeyCommandName, connectInjector } from "@univerjs/ui";
|
|
4
4
|
import { CommandType, ICommandService, IUniverInstanceService, Inject, Injector, UniverInstanceType, generateRandomId } from "@univerjs/core";
|
|
5
5
|
|
|
6
|
-
//#region \0@oxc-project+runtime@0.
|
|
6
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
7
7
|
function _typeof(o) {
|
|
8
8
|
"@babel/helpers - typeof";
|
|
9
9
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -14,7 +14,7 @@ function _typeof(o) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region \0@oxc-project+runtime@0.
|
|
17
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
18
18
|
function toPrimitive(t, r) {
|
|
19
19
|
if ("object" != _typeof(t) || !t) return t;
|
|
20
20
|
var e = t[Symbol.toPrimitive];
|
|
@@ -27,14 +27,14 @@ function toPrimitive(t, r) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.
|
|
30
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
31
31
|
function toPropertyKey(t) {
|
|
32
32
|
var i = toPrimitive(t, "string");
|
|
33
33
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region \0@oxc-project+runtime@0.
|
|
37
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
38
38
|
function _defineProperty(e, r, t) {
|
|
39
39
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
40
40
|
value: t,
|
|
@@ -45,7 +45,7 @@ function _defineProperty(e, r, t) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.
|
|
48
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateParam.js
|
|
49
49
|
function __decorateParam(paramIndex, decorator) {
|
|
50
50
|
return function(target, key) {
|
|
51
51
|
decorator(target, key, paramIndex);
|
|
@@ -53,7 +53,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region \0@oxc-project+runtime@0.
|
|
56
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
|
|
57
57
|
function __decorate(decorators, target, key, desc) {
|
|
58
58
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
59
59
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -309,7 +309,8 @@ let FShortcut = class FShortcut extends FBase {
|
|
|
309
309
|
* ```typescript
|
|
310
310
|
* // Assum the current sheet is empty sheet.
|
|
311
311
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
312
|
-
* const fWorksheet = fWorkbook.
|
|
312
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
313
|
+
* if (!fWorksheet) return;
|
|
313
314
|
* const fRange = fWorksheet.getRange('A1');
|
|
314
315
|
*
|
|
315
316
|
* // Set A1 cell active and set value to 'Hello Univer'.
|