@univerjs/ui 0.7.0 → 0.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/cjs/index.js +17 -14
  2. package/lib/cjs/locale/en-US.js +1 -1
  3. package/lib/cjs/locale/fa-IR.js +1 -1
  4. package/lib/cjs/locale/fr-FR.js +1 -1
  5. package/lib/cjs/locale/ru-RU.js +1 -1
  6. package/lib/cjs/locale/vi-VN.js +1 -1
  7. package/lib/cjs/locale/zh-CN.js +1 -1
  8. package/lib/cjs/locale/zh-TW.js +1 -1
  9. package/lib/es/index.js +4182 -3958
  10. package/lib/es/locale/en-US.js +6 -0
  11. package/lib/es/locale/fa-IR.js +6 -0
  12. package/lib/es/locale/fr-FR.js +6 -0
  13. package/lib/es/locale/ru-RU.js +6 -0
  14. package/lib/es/locale/vi-VN.js +8 -2
  15. package/lib/es/locale/zh-CN.js +6 -0
  16. package/lib/es/locale/zh-TW.js +6 -0
  17. package/lib/index.css +1 -1
  18. package/lib/index.js +4182 -3958
  19. package/lib/locale/en-US.js +6 -0
  20. package/lib/locale/fa-IR.js +6 -0
  21. package/lib/locale/fr-FR.js +6 -0
  22. package/lib/locale/ru-RU.js +6 -0
  23. package/lib/locale/vi-VN.js +8 -2
  24. package/lib/locale/zh-CN.js +6 -0
  25. package/lib/locale/zh-TW.js +6 -0
  26. package/lib/types/common/component-manager.d.ts +7 -7
  27. package/lib/types/components/{font-size/index.d.ts → color-picker/interface.d.ts} +1 -2
  28. package/lib/types/components/custom-label/CustomLabel.d.ts +2 -2
  29. package/lib/types/components/font-family/interface.d.ts +2 -0
  30. package/lib/types/components/font-size/interface.d.ts +1 -0
  31. package/lib/types/components/hooks/update-effect.d.ts +2 -2
  32. package/lib/types/components/index.d.ts +0 -2
  33. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -2
  34. package/lib/types/controllers/ui/ui.controller.d.ts +2 -0
  35. package/lib/types/facade/f-univer.d.ts +2 -2
  36. package/lib/types/index.d.ts +7 -1
  37. package/lib/types/locale/en-US.d.ts +99 -2
  38. package/lib/types/locale/fa-IR.d.ts +2 -2
  39. package/lib/types/locale/ru-RU.d.ts +2 -2
  40. package/lib/types/locale/vi-VN.d.ts +2 -2
  41. package/lib/types/locale/zh-CN.d.ts +2 -93
  42. package/lib/types/locale/zh-TW.d.ts +2 -2
  43. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +1 -1
  44. package/lib/types/services/menu/menu.d.ts +1 -0
  45. package/lib/types/services/menu/types.d.ts +13 -8
  46. package/lib/types/services/theme-switcher/theme-switcher.service.d.ts +3 -1
  47. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +1 -1
  48. package/lib/types/views/components/ComponentContainer.d.ts +3 -3
  49. package/lib/types/views/components/dom/FloatDom.d.ts +1 -2
  50. package/lib/types/views/components/popup/CanvasPopup.d.ts +2 -2
  51. package/lib/types/views/components/popup/RectPopup.d.ts +2 -2
  52. package/lib/types/views/components/ribbon/Ribbon.d.ts +2 -0
  53. package/lib/types/views/components/ribbon/{Button/ToolbarButton.d.ts → ToolbarButton.d.ts} +1 -0
  54. package/lib/umd/index.js +17 -14
  55. package/lib/umd/locale/en-US.js +1 -1
  56. package/lib/umd/locale/fa-IR.js +1 -1
  57. package/lib/umd/locale/fr-FR.js +1 -1
  58. package/lib/umd/locale/ru-RU.js +1 -1
  59. package/lib/umd/locale/vi-VN.js +1 -1
  60. package/lib/umd/locale/zh-CN.js +1 -1
  61. package/lib/umd/locale/zh-TW.js +1 -1
  62. package/package.json +8 -8
@@ -15,11 +15,17 @@ const e = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "Start",
18
+ startDesc: "Initiate the worksheet and set basic parameters.",
18
19
  insert: "Insert",
20
+ insertDesc: "Insert rows, columns, charts and various other elements.",
19
21
  formulas: "Formulas",
22
+ formulasDesc: "Use functions and formulas for data calculations.",
20
23
  data: "Data",
24
+ dataDesc: "Manage data, including import, sorting and filtering.",
21
25
  view: "View",
26
+ viewDesc: "Switch view modes and adjust the display effect.",
22
27
  others: "Others",
28
+ othersDesc: "Other functions and settings.",
23
29
  more: "More"
24
30
  },
25
31
  fontFamily: {
@@ -15,11 +15,17 @@ const i = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "شروع",
18
+ startDesc: "ایجاد کاربرگ و تنظیم پارامترهای اولیه.",
18
19
  insert: "درج",
20
+ insertDesc: "درج ردیف‌ها، ستون‌ها، نمودارها و عناصر مختلف دیگر.",
19
21
  formulas: "فرمول‌ها",
22
+ formulasDesc: "استفاده از توابع و فرمول‌ها برای محاسبات داده‌ها.",
20
23
  data: "داده‌ها",
24
+ dataDesc: "ادغام و تجزیه داده‌ها.",
21
25
  view: "نمایش",
26
+ viewDesc: "تغییر حالت نمایش و تنظیم اثرات نمایشی.",
22
27
  others: "دیگر",
28
+ othersDesc: "سایر عملکردها و تنظیمات.",
23
29
  more: "بیشتر"
24
30
  },
25
31
  fontFamily: {
@@ -15,11 +15,17 @@ const e = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "Démarrer",
18
+ startDesc: "Initialiser la feuille de calcul et définir les paramètres de base.",
18
19
  insert: "Insérer",
20
+ insertDesc: "Insérer des lignes, des colonnes, des graphiques et divers autres éléments.",
19
21
  formulas: "Formules",
22
+ formulasDesc: "Utiliser des fonctions et des formules pour les calculs de données.",
20
23
  data: "Données",
24
+ dataDesc: "Gérer les données, y compris l'importation, le tri et le filtrage.",
21
25
  view: "Vue",
26
+ viewDesc: "Changer les modes d'affichage et ajuster l'effet d'affichage.",
22
27
  others: "Autres",
28
+ othersDesc: "Autres fonctions et paramètres.",
23
29
  more: "Plus"
24
30
  },
25
31
  fontFamily: {
@@ -15,11 +15,17 @@ const i = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "Начало",
18
+ startDesc: "Инициализация рабочей таблицы и установка основных параметров.",
18
19
  insert: "Вставка",
20
+ insertDesc: "Вставка строк, столбцов, графиков и различных других элементов.",
19
21
  formulas: "Формулы",
22
+ formulasDesc: "Использование функций и формул для вычислений данных.",
20
23
  data: "Данные",
24
+ dataDesc: "Управление данными, включая импорт, сортировку и фильтрацию.",
21
25
  view: "Вид",
26
+ viewDesc: "Смена режимов отображения и настройка эффекта отображения.",
22
27
  others: "Другие",
28
+ othersDesc: "Другие функции и настройки.",
23
29
  more: "Больше"
24
30
  },
25
31
  fontFamily: {
@@ -1,4 +1,4 @@
1
- const i = {
1
+ const t = {
2
2
  toolbar: {
3
3
  heading: {
4
4
  normal: "Văn bản",
@@ -15,11 +15,17 @@ const i = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "Bắt đầu",
18
+ startDesc: "Khởi tạo bảng tính và thiết lập các tham số cơ bản.",
18
19
  insert: "Chèn",
20
+ insertDesc: "Chèn hàng, cột, biểu đồ và các phần tử khác.",
19
21
  formulas: "Công thức",
22
+ formulasDesc: "Sử dụng hàm và công thức để tính toán dữ liệu.",
20
23
  data: "Dữ liệu",
24
+ dataDesc: "Sắp xếp, lọc và phân tích dữ liệu.",
21
25
  view: "Xem",
26
+ viewDesc: "Chuyển đổi chế độ xem và điều chỉnh hiệu ứng hiển thị.",
22
27
  others: "Khác",
28
+ othersDesc: "Các chức năng và cài đặt khác.",
23
29
  more: "Thêm"
24
30
  },
25
31
  fontFamily: {
@@ -77,5 +83,5 @@ const i = {
77
83
  }
78
84
  };
79
85
  export {
80
- i as default
86
+ t as default
81
87
  };
@@ -15,11 +15,17 @@ const t = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "开始",
18
+ startDesc: "初始化工作表并设置基本参数。",
18
19
  insert: "插入",
20
+ insertDesc: "插入行、列、图表和各种其他元素。",
19
21
  formulas: "公式",
22
+ formulasDesc: "使用函数和公式进行数据计算。",
20
23
  data: "数据",
24
+ dataDesc: "管理数据,包括导入、排序和筛选。",
21
25
  view: "视图",
26
+ viewDesc: "切换视图模式并调整显示效果。",
22
27
  others: "其他",
28
+ othersDesc: "其他功能和设置。",
23
29
  more: "更多"
24
30
  },
25
31
  fontFamily: {
@@ -15,11 +15,17 @@ const t = {
15
15
  },
16
16
  ribbon: {
17
17
  start: "開始",
18
+ startDesc: "初始化工作表並設定基本參數。",
18
19
  insert: "插入",
20
+ insertDesc: "插入行、列、圖表和各種其他元素。",
19
21
  formulas: "公式",
22
+ formulasDesc: "使用函數和公式進行數據計算。",
20
23
  data: "資料",
24
+ dataDesc: "管理資料,包括匯入、排序和篩選。",
21
25
  view: "視圖",
26
+ viewDesc: "切換視圖模式並調整顯示效果。",
22
27
  others: "其他",
28
+ othersDesc: "其他功能和設定。",
23
29
  more: "更多"
24
30
  },
25
31
  fontFamily: {
@@ -1,5 +1,5 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { default as React } from 'react';
1
+ import { IDisposable, Disposable } from '@univerjs/core';
2
+ import { ForwardRefExoticComponent } from 'react';
3
3
  import { defineComponent } from 'vue';
4
4
  type ComponentFramework = 'vue3' | 'react';
5
5
  export interface IComponentOptions {
@@ -11,17 +11,17 @@ export interface IVue3Component<T extends Record<string, any> = Record<string, a
11
11
  }
12
12
  export interface IReactComponent<T extends Record<string, any> = Record<string, any>> {
13
13
  framework: 'react';
14
- component: React.ForwardRefExoticComponent<T>;
14
+ component: ForwardRefExoticComponent<T>;
15
15
  }
16
- export type ComponentType<T extends Record<string, any> = Record<string, any>> = React.ForwardRefExoticComponent<T> | ReturnType<typeof defineComponent>;
16
+ export type ComponentType<T extends Record<string, any> = Record<string, any>> = ForwardRefExoticComponent<T> | ReturnType<typeof defineComponent>;
17
17
  export type ComponentList = Map<string, IVue3Component | IReactComponent>;
18
- export declare class ComponentManager {
18
+ export declare class ComponentManager extends Disposable {
19
19
  private _components;
20
20
  private _componentsReverse;
21
21
  constructor();
22
22
  register(name: string, component: ComponentType, options?: IComponentOptions): IDisposable;
23
23
  getKey(component: ComponentType): string | undefined;
24
- get(name: string): React.ForwardRefExoticComponent<Record<string, any>> | ((props: any) => React.FunctionComponentElement<{
24
+ get(name: string): ForwardRefExoticComponent<Record<string, any>> | ((props: Record<string, any>) => import('react').FunctionComponentElement<{
25
25
  component: ReturnType<typeof defineComponent>;
26
26
  props: Record<string, any>;
27
27
  }>) | undefined;
@@ -30,5 +30,5 @@ export declare class ComponentManager {
30
30
  export declare function VueComponentWrapper(options: {
31
31
  component: ReturnType<typeof defineComponent>;
32
32
  props: Record<string, any>;
33
- }): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
33
+ }): import('react').DetailedReactHTMLElement<import('react').HTMLAttributes<HTMLElement>, HTMLElement>;
34
34
  export {};
@@ -13,5 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { FontSize } from './FontSize';
17
- export { FONT_SIZE_LIST, HEADING_LIST } from './interface';
16
+ export declare const COLOR_PICKER_COMPONENT = "UI_COLOR_PICKER_COMPONENT";
@@ -1,12 +1,12 @@
1
+ import { ReactNode } from 'react';
1
2
  import { Observable } from 'rxjs';
2
3
  import { IMenuSelectorItem } from '../../services/menu/menu';
3
- import { default as React } from 'react';
4
4
  export type ICustomLabelProps<T = undefined> = {
5
5
  className?: string;
6
6
  value?: string | number | undefined;
7
7
  value$?: Observable<T>;
8
8
  onChange?(v: string | number): void;
9
- title?: React.ReactNode;
9
+ title?: ReactNode;
10
10
  } & Pick<IMenuSelectorItem<unknown>, 'label' | 'icon'>;
11
11
  /**
12
12
  * The component to render toolbar item label and menu item label.
@@ -2,9 +2,11 @@ import { ICustomComponentProps } from '../../services/menu/menu';
2
2
  export interface IFontFamilyProps extends ICustomComponentProps<string> {
3
3
  value: string;
4
4
  }
5
+ export declare const FONT_FAMILY_COMPONENT = "UI_FONT_FAMILY_COMPONENT";
5
6
  export interface IFontFamilyItemProps extends ICustomComponentProps<string> {
6
7
  value: string;
7
8
  }
9
+ export declare const FONT_FAMILY_ITEM_COMPONENT = "UI_FONT_FAMILY_ITEM_COMPONENT";
8
10
  export declare const FONT_FAMILY_LIST: {
9
11
  value: string;
10
12
  }[];
@@ -16,3 +16,4 @@ export declare const HEADING_LIST: {
16
16
  label: string;
17
17
  value: NamedStyleType;
18
18
  }[];
19
+ export declare const FONT_SIZE_COMPONENT = "UI_FONT_SIZE_COMPONENT";
@@ -1,2 +1,2 @@
1
- import { default as React } from 'react';
2
- export declare const useUpdateEffect: typeof React.useEffect;
1
+ import { useEffect } from 'react';
2
+ export declare const useUpdateEffect: typeof useEffect;
@@ -15,8 +15,6 @@
15
15
  */
16
16
  export * from './common-label';
17
17
  export * from './custom-label';
18
- export * from './font-family';
19
- export * from './font-size';
20
18
  export * from './heading-item';
21
19
  export { useScrollYOverContainer } from './hooks/layout';
22
20
  export { type ISliderProps, Slider } from './slider';
@@ -1,3 +1,2 @@
1
- import { IAccessor } from '@univerjs/core';
2
1
  import { IMenuButtonItem } from '../../services/menu/menu';
3
- export declare function ShortcutPanelMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
2
+ export declare function ShortcutPanelMenuItemFactory(): IMenuButtonItem;
@@ -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
+ export type RibbonType = 'default' | 'simple';
16
17
  export interface IWorkbenchOptions {
17
18
  container?: string | HTMLElement;
18
19
  /**
@@ -23,6 +24,7 @@ export interface IWorkbenchOptions {
23
24
  * If Univer should make the toolbar bar visible.
24
25
  */
25
26
  toolbar?: boolean;
27
+ ribbonType?: RibbonType;
26
28
  /**
27
29
  * If Univer should make the footer bar visible.
28
30
  */
@@ -117,10 +117,10 @@ export interface IFUniverUIMixin {
117
117
  * @example
118
118
  * ```ts
119
119
  * // Univer Icon can be viewed at https://univer.ai/en-US/icons
120
- * import { SmileSingle } from '@univerjs/icons'
120
+ * import { SmileIcon } from '@univerjs/icons'
121
121
  *
122
122
  * // Create a custom menu with an univer icon
123
- * univerAPI.registerComponent('custom-menu-icon', SmileSingle);
123
+ * univerAPI.registerComponent('custom-menu-icon', SmileIcon);
124
124
  * univerAPI.createMenu({
125
125
  * id: 'custom-menu',
126
126
  * icon: 'custom-menu-icon',
@@ -18,6 +18,12 @@ export * from './common';
18
18
  export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
19
19
  export { mergeMenuConfigs } from './common/menu-merge-configs';
20
20
  export * from './components';
21
+ export { COLOR_PICKER_COMPONENT } from './components/color-picker/interface';
22
+ export { FontSize } from './components/font-size/FontSize';
23
+ export { FontFamily } from './components/font-family/FontFamily';
24
+ export { FontFamilyItem } from './components/font-family/FontFamilyItem';
25
+ export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './components/font-size/interface';
26
+ export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT, FONT_FAMILY_LIST, type IFontFamilyItemProps, type IFontFamilyProps } from './components/font-family/interface';
21
27
  export { t } from './components/hooks/locale';
22
28
  export * from './components/hooks';
23
29
  export { RectPopup, type RectPopupDirection } from './views/components/popup/RectPopup';
@@ -87,7 +93,7 @@ export { type IDialogPartMethodOptions } from './views/components/dialog-part/in
87
93
  export { FloatDom } from './views/components/dom/FloatDom';
88
94
  export { GlobalZone } from './views/components/global-zone/GlobalZone';
89
95
  export { CanvasPopup, SingleCanvasPopup } from './views/components/popup/CanvasPopup';
90
- export { ToolbarButton } from './views/components/ribbon/Button/ToolbarButton';
96
+ export { ToolbarButton } from './views/components/ribbon/ToolbarButton';
91
97
  export { useToolbarItemStatus } from './views/components/ribbon/hook';
92
98
  export { Ribbon } from './views/components/ribbon/Ribbon';
93
99
  export { ToolbarItem } from './views/components/ribbon/ToolbarItem';
@@ -1,3 +1,100 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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
+ declare const locale: {
17
+ toolbar: {
18
+ heading: {
19
+ normal: string;
20
+ 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
+ };
30
+ };
31
+ ribbon: {
32
+ start: string;
33
+ startDesc: string;
34
+ insert: string;
35
+ insertDesc: string;
36
+ formulas: string;
37
+ formulasDesc: string;
38
+ data: string;
39
+ dataDesc: string;
40
+ view: string;
41
+ viewDesc: string;
42
+ others: string;
43
+ othersDesc: string;
44
+ more: string;
45
+ };
46
+ fontFamily: {
47
+ TimesNewRoman: string;
48
+ Arial: string;
49
+ Tahoma: string;
50
+ Verdana: string;
51
+ MicrosoftYaHei: string;
52
+ SimSun: string;
53
+ SimHei: string;
54
+ Kaiti: string;
55
+ FangSong: string;
56
+ NSimSun: string;
57
+ STXinwei: string;
58
+ STXingkai: string;
59
+ STLiti: string;
60
+ HanaleiFill: string;
61
+ Anton: string;
62
+ Pacifico: string;
63
+ };
64
+ 'shortcut-panel': {
65
+ title: string;
66
+ };
67
+ shortcut: {
68
+ undo: string;
69
+ redo: string;
70
+ cut: string;
71
+ copy: string;
72
+ paste: string;
73
+ 'shortcut-panel': string;
74
+ };
75
+ 'common-edit': string;
76
+ 'toggle-shortcut-panel': string;
77
+ clipboard: {
78
+ authentication: {
79
+ title: string;
80
+ content: string;
81
+ };
82
+ };
83
+ textEditor: {
84
+ formulaError: string;
85
+ rangeError: string;
86
+ };
87
+ rangeSelector: {
88
+ title: string;
89
+ addAnotherRange: string;
90
+ buttonTooltip: string;
91
+ placeHolder: string;
92
+ confirm: string;
93
+ cancel: string;
94
+ };
95
+ 'global-shortcut': string;
96
+ 'zoom-slider': {
97
+ resetTo: string;
98
+ };
99
+ };
3
100
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,94 +1,3 @@
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
- declare const locale: {
17
- toolbar: {
18
- heading: {
19
- normal: string;
20
- 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
- };
30
- };
31
- ribbon: {
32
- start: string;
33
- insert: string;
34
- formulas: string;
35
- data: string;
36
- view: string;
37
- others: string;
38
- more: string;
39
- };
40
- fontFamily: {
41
- TimesNewRoman: string;
42
- Arial: string;
43
- Tahoma: string;
44
- Verdana: string;
45
- MicrosoftYaHei: string;
46
- SimSun: string;
47
- SimHei: string;
48
- Kaiti: string;
49
- FangSong: string;
50
- NSimSun: string;
51
- STXinwei: string;
52
- STXingkai: string;
53
- STLiti: string;
54
- HanaleiFill: string;
55
- Anton: string;
56
- Pacifico: string;
57
- };
58
- 'shortcut-panel': {
59
- title: string;
60
- };
61
- shortcut: {
62
- undo: string;
63
- redo: string;
64
- cut: string;
65
- copy: string;
66
- paste: string;
67
- 'shortcut-panel': string;
68
- };
69
- 'common-edit': string;
70
- 'toggle-shortcut-panel': string;
71
- clipboard: {
72
- authentication: {
73
- title: string;
74
- content: string;
75
- };
76
- };
77
- textEditor: {
78
- formulaError: string;
79
- rangeError: string;
80
- };
81
- rangeSelector: {
82
- title: string;
83
- addAnotherRange: string;
84
- buttonTooltip: string;
85
- placeHolder: string;
86
- confirm: string;
87
- cancel: string;
88
- };
89
- 'global-shortcut': string;
90
- 'zoom-slider': {
91
- resetTo: string;
92
- };
93
- };
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
94
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,8 +1,8 @@
1
1
  import { IDisposable } from '@univerjs/core';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
+ import { IGlobalZoneService } from './global-zone.service';
3
4
  import { Subject } from 'rxjs';
4
5
  import { ComponentManager } from '../../common/component-manager';
5
- import { IGlobalZoneService } from './global-zone.service';
6
6
  export declare class DesktopGlobalZoneService implements IGlobalZoneService {
7
7
  private readonly _componentManager;
8
8
  readonly visible$: Subject<boolean>;
@@ -37,6 +37,7 @@ interface IMenuItemBase<V> {
37
37
  };
38
38
  hidden$?: Observable<boolean>;
39
39
  disabled$?: Observable<boolean>;
40
+ params?: any;
40
41
  /** On observable value that should emit the value of the corresponding selection component. */
41
42
  value$?: Observable<V>;
42
43
  }
@@ -18,32 +18,37 @@ export declare enum MenuManagerPosition {
18
18
  CONTEXT_MENU = "contextMenu"
19
19
  }
20
20
  export declare enum RibbonPosition {
21
- START = "ribbon.start",
22
- INSERT = "ribbon.insert",
23
- FORMULAS = "ribbon.formulas",
24
- DATA = "ribbon.data",
25
- VIEW = "ribbon.view",
21
+ START = "ribbon.start",// RibbonStartGroup
22
+ INSERT = "ribbon.insert",// RibbonInsertGroup
23
+ FORMULAS = "ribbon.formulas",// RibbonFormulasGroup
24
+ DATA = "ribbon.data",// RibbonDataGroup
25
+ VIEW = "ribbon.view",// RibbonViewGroup
26
26
  OTHERS = "ribbon.others"
27
27
  }
28
28
  export declare enum RibbonStartGroup {
29
29
  HISTORY = "ribbon.start.history",
30
30
  FORMAT = "ribbon.start.format",
31
31
  LAYOUT = "ribbon.start.layout",
32
- FORMULAS_INSERT = "ribbon.start.insert",
33
- FORMULAS_VIEW = "ribbon.start.view",
34
- FILE = "ribbon.start.file",
35
32
  OTHERS = "ribbon.start.others"
36
33
  }
37
34
  export declare enum RibbonInsertGroup {
35
+ EDIT = "ribbon.insert.edit",
36
+ MEDIA = "ribbon.insert.media",
38
37
  OTHERS = "ribbon.insert.others"
39
38
  }
40
39
  export declare enum RibbonFormulasGroup {
40
+ BASIC = "ribbon.formulas.basic",
41
41
  OTHERS = "ribbon.formulas.others"
42
42
  }
43
43
  export declare enum RibbonDataGroup {
44
+ FORMULAS = "ribbon.data.formulas",
45
+ RULES = "ribbon.data.rules",
46
+ ORGANIZATION = "ribbon.data.organization",
44
47
  OTHERS = "ribbon.data.others"
45
48
  }
46
49
  export declare enum RibbonViewGroup {
50
+ DISPLAY = "ribbon.view.display",
51
+ VISIBILITY = "ribbon.view.Visibility",
47
52
  OTHERS = "ribbon.view.others"
48
53
  }
49
54
  export declare enum RibbonOthersGroup {
@@ -1,5 +1,7 @@
1
1
  import { Theme } from '@univerjs/themes';
2
- export declare class ThemeSwitcherService {
2
+ import { Disposable } from '@univerjs/core';
3
+ export declare class ThemeSwitcherService extends Disposable {
3
4
  private _styleSheetId;
4
5
  injectThemeToHead(theme: Theme): void;
6
+ dispose(): void;
5
7
  }
@@ -1,6 +1,6 @@
1
+ import { IDisposable } from '@univerjs/core';
1
2
  import { ComponentType, ComponentManager } from '../../common/component-manager';
2
3
  import { IZenZoneService } from './zen-zone.service';
3
- import { IDisposable } from '@univerjs/core';
4
4
  import { BehaviorSubject, ReplaySubject } from 'rxjs';
5
5
  export declare class DesktopZenZoneService implements IZenZoneService, IDisposable {
6
6
  private readonly _componentManager;
@@ -1,12 +1,12 @@
1
1
  import { Injector } from '@univerjs/core';
2
- import { ComponentType, default as React } from 'react';
2
+ import { ComponentType, ReactNode } from 'react';
3
3
  import { ComponentRenderer } from '../../services/parts/parts.service';
4
4
  export interface IComponentContainerProps {
5
5
  components?: Set<ComponentType>;
6
- fallback?: React.ReactNode;
6
+ fallback?: ReactNode;
7
7
  sharedProps?: Record<string, unknown>;
8
8
  }
9
- export declare function ComponentContainer(props: IComponentContainerProps): React.ReactNode;
9
+ export declare function ComponentContainer(props: IComponentContainerProps): ReactNode;
10
10
  /**
11
11
  * Get a set of render functions to render components of a part.
12
12
  *
@@ -1,6 +1,5 @@
1
1
  import { IFloatDom } from '../../../services/dom/canvas-dom-layer.service';
2
- import { default as React } from 'react';
3
- export declare const FloatDomSingle: React.MemoExoticComponent<(props: {
2
+ export declare const FloatDomSingle: import('react').MemoExoticComponent<(props: {
4
3
  layer: IFloatDom;
5
4
  id: string;
6
5
  }) => import("react/jsx-runtime").JSX.Element | null>;
@@ -1,8 +1,8 @@
1
+ import { ReactNode } from 'react';
1
2
  import { IPopup } from '../../../services/popup/canvas-popup.service';
2
- import { default as React } from 'react';
3
3
  interface ISingleCanvasPopupProps {
4
4
  popup: IPopup;
5
- children?: React.ReactNode;
5
+ children?: ReactNode;
6
6
  }
7
7
  export declare const SingleCanvasPopup: ({ popup, children }: ISingleCanvasPopupProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  export declare function CanvasPopup(): import("react/jsx-runtime").JSX.Element[];