@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/locale/vi-VN.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/vi-VN.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { ui: {
|
|
3
3
|
toolbar: { heading: {
|
|
4
4
|
normal: "Văn bản",
|
|
5
5
|
title: "Tiêu đề",
|
|
@@ -71,8 +71,10 @@ const locale = {
|
|
|
71
71
|
cancel: "Hủy"
|
|
72
72
|
},
|
|
73
73
|
"global-shortcut": "Phím tắt toàn cầu",
|
|
74
|
-
"zoom-slider": { resetTo: "Khôi phục đến" }
|
|
75
|
-
|
|
74
|
+
"zoom-slider": { resetTo: "Khôi phục đến" },
|
|
75
|
+
row: "Hàng",
|
|
76
|
+
column: "Cột"
|
|
77
|
+
} };
|
|
76
78
|
|
|
77
79
|
//#endregion
|
|
78
80
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/zh-CN.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { ui: {
|
|
3
3
|
toolbar: { heading: {
|
|
4
4
|
normal: "正文",
|
|
5
5
|
title: "标题",
|
|
@@ -71,8 +71,10 @@ const locale = {
|
|
|
71
71
|
cancel: "取消"
|
|
72
72
|
},
|
|
73
73
|
"global-shortcut": "全局快捷键",
|
|
74
|
-
"zoom-slider": { resetTo: "恢复至" }
|
|
75
|
-
|
|
74
|
+
"zoom-slider": { resetTo: "恢复至" },
|
|
75
|
+
row: "行",
|
|
76
|
+
column: "列"
|
|
77
|
+
} };
|
|
76
78
|
|
|
77
79
|
//#endregion
|
|
78
80
|
export { locale as default };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region src/locale/zh-HK.ts
|
|
2
|
+
const locale = { ui: {
|
|
3
|
+
toolbar: { heading: {
|
|
4
|
+
normal: "正文",
|
|
5
|
+
title: "標題",
|
|
6
|
+
subTitle: "副標題",
|
|
7
|
+
1: "標題 1",
|
|
8
|
+
2: "標題 2",
|
|
9
|
+
3: "標題 3",
|
|
10
|
+
4: "標題 4",
|
|
11
|
+
5: "標題 5",
|
|
12
|
+
6: "標題 6",
|
|
13
|
+
tooltip: "設定標題"
|
|
14
|
+
} },
|
|
15
|
+
ribbon: {
|
|
16
|
+
start: "開始",
|
|
17
|
+
startDesc: "初始化工作表並設定基本參數。",
|
|
18
|
+
insert: "插入",
|
|
19
|
+
insertDesc: "插入行、列、圖表和各種其他元素。",
|
|
20
|
+
formulas: "公式",
|
|
21
|
+
formulasDesc: "使用函數和公式進行數據計算。",
|
|
22
|
+
data: "資料",
|
|
23
|
+
dataDesc: "管理資料,包括匯入、排序和篩選。",
|
|
24
|
+
view: "視圖",
|
|
25
|
+
viewDesc: "切換視圖模式並調整顯示效果。",
|
|
26
|
+
others: "其他",
|
|
27
|
+
othersDesc: "其他功能和設定。",
|
|
28
|
+
more: "更多"
|
|
29
|
+
},
|
|
30
|
+
fontFamily: {
|
|
31
|
+
"not-supported": "系統中未找到該字型,使用預設字型。",
|
|
32
|
+
arial: "Arial",
|
|
33
|
+
"times-new-roman": "Times New Roman",
|
|
34
|
+
tahoma: "Tahoma",
|
|
35
|
+
verdana: "Verdana",
|
|
36
|
+
"microsoft-yahei": "微軟雅黑",
|
|
37
|
+
simsun: "宋體",
|
|
38
|
+
simhei: "黑體",
|
|
39
|
+
kaiti: "楷體",
|
|
40
|
+
fangsong: "仿宋",
|
|
41
|
+
nsimsun: "新宋體",
|
|
42
|
+
stxinwei: "華文新魏",
|
|
43
|
+
stxingkai: "華文行楷",
|
|
44
|
+
stliti: "華文隸書"
|
|
45
|
+
},
|
|
46
|
+
"shortcut-panel": { title: "快捷鍵面板" },
|
|
47
|
+
shortcut: {
|
|
48
|
+
undo: "撤銷",
|
|
49
|
+
redo: "重做",
|
|
50
|
+
cut: "剪切",
|
|
51
|
+
copy: "複製",
|
|
52
|
+
paste: "貼上",
|
|
53
|
+
"shortcut-panel": "開啟收起快捷鍵面板"
|
|
54
|
+
},
|
|
55
|
+
"common-edit": "常用編輯",
|
|
56
|
+
"toggle-shortcut-panel": "開啟收起快速鍵面板",
|
|
57
|
+
clipboard: { authentication: {
|
|
58
|
+
title: "無法存取剪貼簿",
|
|
59
|
+
content: "請允許 Univer 存取您的剪貼簿。 "
|
|
60
|
+
} },
|
|
61
|
+
textEditor: {
|
|
62
|
+
formulaError: "請輸入合法的公式,例如=SUM(A1)",
|
|
63
|
+
rangeError: "請輸入合法的範圍,例如 A1:B10"
|
|
64
|
+
},
|
|
65
|
+
rangeSelector: {
|
|
66
|
+
title: "選擇一個資料範圍",
|
|
67
|
+
addAnotherRange: "新增範圍",
|
|
68
|
+
buttonTooltip: "選擇資料範圍",
|
|
69
|
+
placeHolder: "框選範圍或輸入",
|
|
70
|
+
confirm: "確認",
|
|
71
|
+
cancel: "取消"
|
|
72
|
+
},
|
|
73
|
+
"global-shortcut": "全域快捷鍵",
|
|
74
|
+
"zoom-slider": { resetTo: "恢復至" },
|
|
75
|
+
row: "列",
|
|
76
|
+
column: "欄"
|
|
77
|
+
} };
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
|
-
const locale = {
|
|
2
|
+
const locale = { ui: {
|
|
3
3
|
toolbar: { heading: {
|
|
4
4
|
normal: "正文",
|
|
5
5
|
title: "標題",
|
|
@@ -71,8 +71,10 @@ const locale = {
|
|
|
71
71
|
cancel: "取消"
|
|
72
72
|
},
|
|
73
73
|
"global-shortcut": "全域快捷鍵",
|
|
74
|
-
"zoom-slider": { resetTo: "恢復至" }
|
|
75
|
-
|
|
74
|
+
"zoom-slider": { resetTo: "恢復至" },
|
|
75
|
+
row: "列",
|
|
76
|
+
column: "欄"
|
|
77
|
+
} };
|
|
76
78
|
|
|
77
79
|
//#endregion
|
|
78
80
|
export { locale as default };
|
|
@@ -20,5 +20,5 @@ export interface ICommonLabelProps {
|
|
|
20
20
|
label: string;
|
|
21
21
|
}[];
|
|
22
22
|
}
|
|
23
|
-
export declare const CommonLabel: (props: ICommonLabelProps) => import("react
|
|
23
|
+
export declare const CommonLabel: (props: ICommonLabelProps) => import("react").JSX.Element;
|
|
24
24
|
export declare const COMMON_LABEL_COMPONENT = "UI_PLUGIN_COMMON_LABEL_COMPONENT";
|
|
@@ -27,4 +27,4 @@ export type ICustomLabelProps<T = undefined> = {
|
|
|
27
27
|
* The component to render toolbar item label and menu item label.
|
|
28
28
|
* @param props
|
|
29
29
|
*/
|
|
30
|
-
export declare function CustomLabel(props: ICustomLabelProps): import("react
|
|
30
|
+
export declare function CustomLabel(props: ICustomLabelProps): import("react").JSX.Element;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IFontFamilyProps } from './interface';
|
|
17
|
-
export declare const FontFamily: ({ id, value, disabled$ }: IFontFamilyProps) => import("react
|
|
17
|
+
export declare const FontFamily: ({ id, value, disabled$ }: IFontFamilyProps) => import("react").JSX.Element;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IFontSizeProps } from './interface';
|
|
17
|
-
export declare const FontSize: (props: IFontSizeProps) => import("react
|
|
17
|
+
export declare const FontSize: (props: IFontSizeProps) => import("react").JSX.Element;
|
|
@@ -17,5 +17,5 @@ import type { NamedStyleType } from '@univerjs/core';
|
|
|
17
17
|
export declare const HeadingItem: (props: {
|
|
18
18
|
value: NamedStyleType;
|
|
19
19
|
text: string;
|
|
20
|
-
}) => import("react
|
|
20
|
+
}) => import("react").JSX.Element;
|
|
21
21
|
export declare const HEADING_ITEM_COMPONENT = "UI_COMPONENT_HEADING_ITEM";
|
|
@@ -20,6 +20,7 @@ export interface ITinyMenuItem {
|
|
|
20
20
|
Icon: ComponentType<{
|
|
21
21
|
className?: string;
|
|
22
22
|
}>;
|
|
23
|
+
iconClassName?: string;
|
|
23
24
|
key: string;
|
|
24
25
|
active?: boolean;
|
|
25
26
|
tooltip?: string;
|
|
@@ -27,4 +28,4 @@ export interface ITinyMenuItem {
|
|
|
27
28
|
export interface ITinyMenuGroupProps {
|
|
28
29
|
items: ITinyMenuItem[];
|
|
29
30
|
}
|
|
30
|
-
export declare function DesignTinyMenuGroup({ items }: ITinyMenuGroupProps): import("react
|
|
31
|
+
export declare function DesignTinyMenuGroup({ items }: ITinyMenuGroupProps): import("react").JSX.Element;
|
|
@@ -17,8 +17,12 @@ import type { IValueOption } from '../../../services/menu/menu';
|
|
|
17
17
|
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
|
|
18
18
|
interface IUIQuickMenuGroupProps {
|
|
19
19
|
item: IMenuSchema;
|
|
20
|
+
activeItemIds?: string[];
|
|
21
|
+
hiddenItemIds?: string[];
|
|
20
22
|
onOptionSelect?: (option: IValueOption) => void;
|
|
21
23
|
}
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
24
|
+
export declare function resolveMenuItemActiveState(itemId: string | undefined, observableActive: boolean, activeItemIds?: string[]): boolean;
|
|
25
|
+
export declare function getVisibleTinyMenuChildren(children: IMenuSchema[], hiddenItemKeys: string[]): IMenuSchema[];
|
|
26
|
+
export declare function UITinyMenuGroup(props: IUIQuickMenuGroupProps): import("react").JSX.Element | null;
|
|
27
|
+
export declare function UIQuickTileMenuGroup(props: IUIQuickMenuGroupProps): import("react").JSX.Element | null;
|
|
24
28
|
export {};
|
|
@@ -18,5 +18,5 @@ import type { IBaseMenuProps } from '../types';
|
|
|
18
18
|
interface IMobileMenuProps extends IBaseMenuProps {
|
|
19
19
|
schemas?: IMenuSchema[];
|
|
20
20
|
}
|
|
21
|
-
export declare function MobileMenu(props: IMobileMenuProps): import("react
|
|
21
|
+
export declare function MobileMenu(props: IMobileMenuProps): import("react").JSX.Element | null;
|
|
22
22
|
export {};
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function MessageContainer(): import("react
|
|
16
|
+
export declare function MessageContainer(): import("react").JSX.Element;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IToasterProps } from '@univerjs/design';
|
|
17
17
|
import { toast } from '@univerjs/design';
|
|
18
|
-
export declare function Notification(): import("react
|
|
18
|
+
export declare function Notification(): import("react").JSX.Element;
|
|
19
19
|
export interface INotificationOptions {
|
|
20
20
|
/** The title of the notification */
|
|
21
21
|
title: Parameters<typeof toast>[0];
|
|
@@ -18,17 +18,17 @@ import { Notification } from './Notification';
|
|
|
18
18
|
declare const meta: Meta<typeof Notification>;
|
|
19
19
|
export default meta;
|
|
20
20
|
export declare const InteractivePlayground: {
|
|
21
|
-
render: () => import("react
|
|
21
|
+
render: () => import("react").JSX.Element;
|
|
22
22
|
};
|
|
23
23
|
export declare const VisualRegressionLight: {
|
|
24
|
-
render: () => import("react
|
|
24
|
+
render: () => import("react").JSX.Element;
|
|
25
25
|
};
|
|
26
26
|
export declare const VisualRegressionDark: {
|
|
27
|
-
render: () => import("react
|
|
27
|
+
render: () => import("react").JSX.Element;
|
|
28
28
|
};
|
|
29
29
|
export declare const PlacementMatrix: {
|
|
30
|
-
render: () => import("react
|
|
30
|
+
render: () => import("react").JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
export declare const LongContentAndLoading: {
|
|
33
|
-
render: () => import("react
|
|
33
|
+
render: () => import("react").JSX.Element;
|
|
34
34
|
};
|
|
@@ -23,4 +23,4 @@ export interface IProgressBarProps {
|
|
|
23
23
|
onTerminate?: () => void;
|
|
24
24
|
onClearProgress?: () => void;
|
|
25
25
|
}
|
|
26
|
-
export declare function ProgressBar(props: IProgressBarProps): import("react
|
|
26
|
+
export declare function ProgressBar(props: IProgressBarProps): import("react").JSX.Element;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import * as React from 'react';
|
|
16
17
|
export interface ISliderProps {
|
|
17
18
|
/** The value of slider. When range is false, use number, otherwise, use [number, number] */
|
|
18
19
|
value: number;
|
|
@@ -44,4 +45,4 @@ export interface ISliderProps {
|
|
|
44
45
|
/**
|
|
45
46
|
* Slider Component
|
|
46
47
|
*/
|
|
47
|
-
export declare function Slider(props: ISliderProps):
|
|
48
|
+
export declare function Slider(props: ISliderProps): React.JSX.Element;
|
|
@@ -59,7 +59,8 @@ export declare class FShortcut extends FBase {
|
|
|
59
59
|
* ```typescript
|
|
60
60
|
* // Assum the current sheet is empty sheet.
|
|
61
61
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
62
|
-
* const fWorksheet = fWorkbook.
|
|
62
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
63
|
+
* if (!fWorksheet) return;
|
|
63
64
|
* const fRange = fWorksheet.getRange('A1');
|
|
64
65
|
*
|
|
65
66
|
* // Set A1 cell active and set value to 'Hello Univer'.
|
|
@@ -49,7 +49,8 @@ export interface IFUniverUIMixin {
|
|
|
49
49
|
*
|
|
50
50
|
* // Trigger a shortcut
|
|
51
51
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
52
|
-
* const fWorksheet = fWorkbook.
|
|
52
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
53
|
+
* if (!fWorksheet) return;
|
|
53
54
|
* const fRange = fWorksheet.getRange('A1');
|
|
54
55
|
* fRange.activate();
|
|
55
56
|
* fRange.setValue('Hello Univer');
|
|
@@ -76,7 +77,8 @@ export interface IFUniverUIMixin {
|
|
|
76
77
|
* // this example listens for the cell click event and executes the copy and paste code.
|
|
77
78
|
* univerAPI.addEvent(univerAPI.Event.CellClicked, async (params) => {
|
|
78
79
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
79
|
-
* const fWorksheet = fWorkbook.
|
|
80
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
81
|
+
* if (!fWorksheet) return;
|
|
80
82
|
*
|
|
81
83
|
* // Copy the range A1:B2 to the clipboard
|
|
82
84
|
* const fRange = fWorksheet.getRange('A1:B2');
|
|
@@ -106,7 +108,8 @@ export interface IFUniverUIMixin {
|
|
|
106
108
|
* // this example listens for the cell click event and executes the copy and paste code.
|
|
107
109
|
* univerAPI.addEvent(univerAPI.Event.CellClicked, async (params) => {
|
|
108
110
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
109
|
-
* const fWorksheet = fWorkbook.
|
|
111
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
112
|
+
* if (!fWorksheet) return;
|
|
110
113
|
*
|
|
111
114
|
* // Copy the range A1:B2 to the clipboard
|
|
112
115
|
* const fRange = fWorksheet.getRange('A1:B2');
|
|
@@ -349,7 +352,8 @@ export interface IFUniverUIMixin {
|
|
|
349
352
|
* @returns {IDisposable} The disposable object.
|
|
350
353
|
* @example
|
|
351
354
|
* ```ts
|
|
352
|
-
* const fWorksheet = univerAPI.getActiveWorkbook().
|
|
355
|
+
* const fWorksheet = univerAPI.getActiveWorkbook().getSheetByName('Sheet1');
|
|
356
|
+
* if (!fWorksheet) return;
|
|
353
357
|
*
|
|
354
358
|
* // Register a range loading component
|
|
355
359
|
* const RangeLoading = () => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT, type IFontFamilyProp
|
|
|
26
26
|
export { FontSize } from './components/font-size/FontSize';
|
|
27
27
|
export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './components/font-size/interface';
|
|
28
28
|
export * from './components/hooks';
|
|
29
|
-
export { t } from './components/hooks/locale';
|
|
30
29
|
export { type INotificationOptions } from './components/notification/Notification';
|
|
31
30
|
export { ProgressBar } from './components/progress-bar/ProgressBar';
|
|
32
31
|
export { type IUniverUIConfig, UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
export
|
|
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,85 +14,89 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
declare const locale: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
ui: {
|
|
18
|
+
toolbar: {
|
|
19
|
+
heading: {
|
|
20
|
+
normal: string;
|
|
21
|
+
title: string;
|
|
22
|
+
subTitle: string;
|
|
23
|
+
1: string;
|
|
24
|
+
2: string;
|
|
25
|
+
3: string;
|
|
26
|
+
4: string;
|
|
27
|
+
5: string;
|
|
28
|
+
6: string;
|
|
29
|
+
tooltip: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
ribbon: {
|
|
33
|
+
start: string;
|
|
34
|
+
startDesc: string;
|
|
35
|
+
insert: string;
|
|
36
|
+
insertDesc: string;
|
|
37
|
+
formulas: string;
|
|
38
|
+
formulasDesc: string;
|
|
39
|
+
data: string;
|
|
40
|
+
dataDesc: string;
|
|
41
|
+
view: string;
|
|
42
|
+
viewDesc: string;
|
|
43
|
+
others: string;
|
|
44
|
+
othersDesc: string;
|
|
45
|
+
more: string;
|
|
46
|
+
};
|
|
47
|
+
fontFamily: {
|
|
48
|
+
'not-supported': string;
|
|
49
|
+
arial: string;
|
|
50
|
+
'times-new-roman': string;
|
|
51
|
+
tahoma: string;
|
|
52
|
+
verdana: string;
|
|
53
|
+
'microsoft-yahei': string;
|
|
54
|
+
simsun: string;
|
|
55
|
+
simhei: string;
|
|
56
|
+
kaiti: string;
|
|
57
|
+
fangsong: string;
|
|
58
|
+
nsimsun: string;
|
|
59
|
+
stxinwei: string;
|
|
60
|
+
stxingkai: string;
|
|
61
|
+
stliti: string;
|
|
62
|
+
};
|
|
63
|
+
'shortcut-panel': {
|
|
20
64
|
title: string;
|
|
21
|
-
subTitle: string;
|
|
22
|
-
1: string;
|
|
23
|
-
2: string;
|
|
24
|
-
3: string;
|
|
25
|
-
4: string;
|
|
26
|
-
5: string;
|
|
27
|
-
6: string;
|
|
28
|
-
tooltip: string;
|
|
29
65
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
verdana: string;
|
|
52
|
-
'microsoft-yahei': string;
|
|
53
|
-
simsun: string;
|
|
54
|
-
simhei: string;
|
|
55
|
-
kaiti: string;
|
|
56
|
-
fangsong: string;
|
|
57
|
-
nsimsun: string;
|
|
58
|
-
stxinwei: string;
|
|
59
|
-
stxingkai: string;
|
|
60
|
-
stliti: string;
|
|
61
|
-
};
|
|
62
|
-
'shortcut-panel': {
|
|
63
|
-
title: string;
|
|
64
|
-
};
|
|
65
|
-
shortcut: {
|
|
66
|
-
undo: string;
|
|
67
|
-
redo: string;
|
|
68
|
-
cut: string;
|
|
69
|
-
copy: string;
|
|
70
|
-
paste: string;
|
|
71
|
-
'shortcut-panel': string;
|
|
72
|
-
};
|
|
73
|
-
'common-edit': string;
|
|
74
|
-
'toggle-shortcut-panel': string;
|
|
75
|
-
clipboard: {
|
|
76
|
-
authentication: {
|
|
66
|
+
shortcut: {
|
|
67
|
+
undo: string;
|
|
68
|
+
redo: string;
|
|
69
|
+
cut: string;
|
|
70
|
+
copy: string;
|
|
71
|
+
paste: string;
|
|
72
|
+
'shortcut-panel': string;
|
|
73
|
+
};
|
|
74
|
+
'common-edit': string;
|
|
75
|
+
'toggle-shortcut-panel': string;
|
|
76
|
+
clipboard: {
|
|
77
|
+
authentication: {
|
|
78
|
+
title: string;
|
|
79
|
+
content: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
textEditor: {
|
|
83
|
+
formulaError: string;
|
|
84
|
+
rangeError: string;
|
|
85
|
+
};
|
|
86
|
+
rangeSelector: {
|
|
77
87
|
title: string;
|
|
78
|
-
|
|
88
|
+
addAnotherRange: string;
|
|
89
|
+
buttonTooltip: string;
|
|
90
|
+
placeHolder: string;
|
|
91
|
+
confirm: string;
|
|
92
|
+
cancel: string;
|
|
79
93
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
title: string;
|
|
87
|
-
addAnotherRange: string;
|
|
88
|
-
buttonTooltip: string;
|
|
89
|
-
placeHolder: string;
|
|
90
|
-
confirm: string;
|
|
91
|
-
cancel: string;
|
|
92
|
-
};
|
|
93
|
-
'global-shortcut': string;
|
|
94
|
-
'zoom-slider': {
|
|
95
|
-
resetTo: string;
|
|
94
|
+
'global-shortcut': string;
|
|
95
|
+
'zoom-slider': {
|
|
96
|
+
resetTo: string;
|
|
97
|
+
};
|
|
98
|
+
row: string;
|
|
99
|
+
column: string;
|
|
96
100
|
};
|
|
97
101
|
};
|
|
98
102
|
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;
|
|
@@ -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;
|