@univerjs/ui 0.8.2 → 0.8.3-nightly.202507010644

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.
@@ -0,0 +1,87 @@
1
+ const i = {
2
+ toolbar: {
3
+ 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
+ },
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
+ TimesNewRoman: "Times New Roman",
33
+ Arial: "Arial",
34
+ Tahoma: "Tahoma",
35
+ Verdana: "Verdana",
36
+ MicrosoftYaHei: "Microsoft YaHei",
37
+ SimSun: "SimSun",
38
+ SimHei: "SimHei",
39
+ Kaiti: "Kaiti",
40
+ FangSong: "FangSong",
41
+ NSimSun: "NSimSun",
42
+ STXinwei: "STXinwei",
43
+ STXingkai: "STXingkai",
44
+ STLiti: "STLiti",
45
+ HanaleiFill: "HanaleiFill",
46
+ Anton: "Anton",
47
+ Pacifico: "Pacifico"
48
+ },
49
+ "shortcut-panel": {
50
+ title: "단축키"
51
+ },
52
+ shortcut: {
53
+ undo: "실행 취소",
54
+ redo: "다시 실행",
55
+ cut: "자르기",
56
+ copy: "복사",
57
+ paste: "붙여넣기",
58
+ "shortcut-panel": "단축키 패널 전환"
59
+ },
60
+ "common-edit": "일반 편집 단축키",
61
+ "toggle-shortcut-panel": "단축키 패널 전환",
62
+ clipboard: {
63
+ authentication: {
64
+ title: "권한 거절",
65
+ content: "Univer에 클립보드 접근 권한을 부여해주세요."
66
+ }
67
+ },
68
+ textEditor: {
69
+ formulaError: "올바른 수식을 입력하세요, 예: =SUM(A1)",
70
+ rangeError: "올바른 범위를 입력하세요, 예: A1:B10"
71
+ },
72
+ rangeSelector: {
73
+ title: "데이터 범위 선택",
74
+ addAnotherRange: "범위 추가",
75
+ buttonTooltip: "데이터 범위 선택",
76
+ placeHolder: "범위를 선택하거나 입력하세요.",
77
+ confirm: "확인",
78
+ cancel: "취소"
79
+ },
80
+ "global-shortcut": "전역 단축키",
81
+ "zoom-slider": {
82
+ resetTo: "초기화"
83
+ }
84
+ };
85
+ export {
86
+ i as default
87
+ };
@@ -1,34 +1,23 @@
1
1
  import { IDisposable, Disposable } from '@univerjs/core';
2
- import { ForwardRefExoticComponent } from 'react';
3
- import { defineComponent } from 'vue';
4
- type ComponentFramework = 'vue3' | 'react';
2
+ type ComponentFramework = string;
5
3
  export interface IComponentOptions {
6
4
  framework?: ComponentFramework;
7
5
  }
8
- export interface IVue3Component<T extends Record<string, any> = Record<string, any>> {
9
- framework: 'vue3';
10
- component: ReturnType<typeof defineComponent<T>>;
6
+ export interface IComponent<T = any> {
7
+ framework: string;
8
+ component: any;
11
9
  }
12
- export interface IReactComponent<T extends Record<string, any> = Record<string, any>> {
13
- framework: 'react';
14
- component: ForwardRefExoticComponent<T>;
15
- }
16
- export type ComponentType<T extends Record<string, any> = Record<string, any>> = ForwardRefExoticComponent<T> | ReturnType<typeof defineComponent>;
17
- export type ComponentList = Map<string, IVue3Component | IReactComponent>;
10
+ export type ComponentType<T = any> = any;
11
+ export type ComponentList = Map<string, IComponent>;
18
12
  export declare class ComponentManager extends Disposable {
19
13
  private _components;
20
14
  private _componentsReverse;
21
15
  constructor();
22
16
  register(name: string, component: ComponentType, options?: IComponentOptions): IDisposable;
23
17
  getKey(component: ComponentType): string | undefined;
24
- get(name: string): ForwardRefExoticComponent<Record<string, any>> | ((props: Record<string, any>) => import('react').FunctionComponentElement<{
25
- component: ReturnType<typeof defineComponent>;
26
- props: Record<string, any>;
27
- }>) | undefined;
18
+ private _handler;
19
+ setHandler(framework: string, handler: (component: IComponent['component'], name?: string) => any): void;
20
+ get(name: string): any;
28
21
  delete(name: string): void;
29
22
  }
30
- export declare function VueComponentWrapper(options: {
31
- component: ReturnType<typeof defineComponent>;
32
- props: Record<string, any>;
33
- }): import('react').DetailedReactHTMLElement<import('react').HTMLAttributes<HTMLElement>, HTMLElement>;
34
23
  export {};
@@ -14,20 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import './global.css';
17
+ export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
17
18
  export * from './common';
18
19
  export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
19
20
  export { mergeMenuConfigs } from './common/menu-merge-configs';
20
21
  export * from './components';
21
22
  export { COLOR_PICKER_COMPONENT } from './components/color-picker/interface';
22
- export { FontSize } from './components/font-size/FontSize';
23
23
  export { FontFamily } from './components/font-family/FontFamily';
24
24
  export { FontFamilyItem } from './components/font-family/FontFamilyItem';
25
- export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './components/font-size/interface';
26
25
  export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT, FONT_FAMILY_LIST, type IFontFamilyItemProps, type IFontFamilyProps } from './components/font-family/interface';
27
- export { t } from './components/hooks/locale';
26
+ export { FontSize } from './components/font-size/FontSize';
27
+ export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './components/font-size/interface';
28
28
  export * from './components/hooks';
29
- export { RectPopup, type RectPopupDirection } from './views/components/popup/RectPopup';
29
+ export { t } from './components/hooks/locale';
30
30
  export { Menu as UIMenu } from './components/menu/desktop/Menu';
31
+ export { Menu as DesktopMenu } from './components/menu/desktop/Menu';
31
32
  export { type INotificationOptions } from './components/notification/Notification';
32
33
  export { ProgressBar } from './components/progress-bar/ProgressBar';
33
34
  export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';
@@ -35,24 +36,24 @@ export { type IUniverUIConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config
35
36
  export { ErrorController } from './controllers/error/error.controller';
36
37
  export { menuSchema as UIMenuSchema } from './controllers/menus/menu.schema';
37
38
  export { CopyShortcutItem, CutShortcutItem, RedoShortcutItem, SharedController, UndoShortcutItem, } from './controllers/shared-shortcut.controller';
38
- export type { IConfirmChildrenProps } from './views/components/confirm-part/interface';
39
39
  export { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';
40
- export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
41
40
  export { DesktopUIController } from './controllers/ui/ui-desktop.controller';
42
41
  export { SingleUnitUIController } from './controllers/ui/ui-shared.controller';
42
+ export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
43
43
  export { UniverMobileUIPlugin } from './mobile-plugin';
44
+ export { DISABLE_AUTO_FOCUS_KEY, UNIVER_UI_PLUGIN_NAME, UniverUIPlugin } from './plugin';
44
45
  export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
45
- export { CopyCommand, CutCommand, PasteCommand, SheetPasteShortKeyCommandName } from './services/clipboard/clipboard.command';
46
- export { supportClipboardAPI } from './services/clipboard/clipboard-utils';
47
46
  export { BrowserClipboardService, FILE__BMP_CLIPBOARD_MIME_TYPE, FILE__JPEG_CLIPBOARD_MIME_TYPE, FILE__WEBP_CLIPBOARD_MIME_TYPE, FILE_PNG_CLIPBOARD_MIME_TYPE, FILE_SVG_XML_CLIPBOARD_MIME_TYPE, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, imageMimeTypeSet, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, } from './services/clipboard/clipboard-interface.service';
47
+ export { supportClipboardAPI } from './services/clipboard/clipboard-utils';
48
+ export { CopyCommand, CutCommand, PasteCommand, SheetPasteShortKeyCommandName } from './services/clipboard/clipboard.command';
48
49
  export { IConfirmService, TestConfirmService } from './services/confirm/confirm.service';
49
50
  export { DesktopConfirmService } from './services/confirm/desktop-confirm.service';
50
51
  export { ContextMenuService, type IContextMenuHandler, IContextMenuService } from './services/contextmenu/contextmenu.service';
51
52
  export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
52
53
  export { IDialogService } from './services/dialog/dialog.service';
53
- export { IGalleryService } from './services/gallery/gallery.service';
54
- export { DesktopGalleryService } from './services/gallery/desktop-gallery.service';
55
54
  export { CanvasFloatDomService, type IFloatDom, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
55
+ export { DesktopGalleryService } from './services/gallery/desktop-gallery.service';
56
+ export { IGalleryService } from './services/gallery/gallery.service';
56
57
  export { DesktopGlobalZoneService } from './services/global-zone/desktop-global-zone.service';
57
58
  export { IGlobalZoneService } from './services/global-zone/global-zone.service';
58
59
  export { DesktopLayoutService, ILayoutService } from './services/layout/layout.service';
@@ -63,6 +64,7 @@ export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem
63
64
  export { IMenuManagerService, MenuManagerService, type MenuSchemaType } from './services/menu/menu-manager.service';
64
65
  export { type IMenuSchema } from './services/menu/menu-manager.service';
65
66
  export { ContextMenuGroup, ContextMenuPosition, MenuManagerPosition, RibbonDataGroup, RibbonFormulasGroup, RibbonInsertGroup, RibbonOthersGroup, RibbonPosition, RibbonStartGroup, RibbonViewGroup, } from './services/menu/types';
67
+ export { MockMessageService } from './services/message/__testing__/mock-message.service.ts';
66
68
  export { DesktopMessageService } from './services/message/desktop-message.service';
67
69
  export { IMessageService } from './services/message/message.service';
68
70
  export { DesktopNotificationService } from './services/notification/desktop-notification.service';
@@ -71,32 +73,30 @@ export { BuiltInUIPart, IUIPartsService, UIPartsService } from './services/parts
71
73
  export { IPlatformService, PlatformService } from './services/platform/platform.service';
72
74
  export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
73
75
  export { KeyCode, MetaKeys } from './services/shortcut/keycode';
74
- export { type IShortcutItem, IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
75
76
  export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
77
+ export { type IShortcutItem, IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
76
78
  export { DesktopSidebarService } from './services/sidebar/desktop-sidebar.service';
77
79
  export { useSidebarClick } from './services/sidebar/hooks/use-sidebar-click';
78
80
  export { ILeftSidebarService, ISidebarService } from './services/sidebar/sidebar.service';
81
+ export { ThemeSwitcherService } from './services/theme-switcher/theme-switcher.service';
79
82
  export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';
80
83
  export { IZenZoneService } from './services/zen-zone/zen-zone.service';
81
- export { FloatDomSingle } from './views/components/dom/FloatDom';
82
- export { PrintFloatDomSingle } from './views/components/dom/print';
83
- export { DISABLE_AUTO_FOCUS_KEY, UNIVER_UI_PLUGIN_NAME, UniverUIPlugin } from './plugin';
84
84
  export * from './utils';
85
85
  export { ComponentContainer, type IComponentContainerProps, useComponentsOfPart } from './views/components/ComponentContainer';
86
- export { ZenZone } from './views/components/zen-zone/ZenZone';
87
- export { Menu as DesktopMenu } from './components/menu/desktop/Menu';
88
- export { ThemeSwitcherService } from './services/theme-switcher/theme-switcher.service';
86
+ export type { IConfirmChildrenProps } from './views/components/confirm-part/interface';
89
87
  export { type IConfirmPartMethodOptions } from './views/components/confirm-part/interface';
90
88
  export { DesktopContextMenu as ContextMenu } from './views/components/context-menu/ContextMenu';
91
89
  export { MobileContextMenu } from './views/components/context-menu/MobileContextMenu';
92
90
  export { type IDialogPartMethodOptions } from './views/components/dialog-part/interface';
91
+ export { FloatDomSingle } from './views/components/dom/FloatDom';
93
92
  export { FloatDom } from './views/components/dom/FloatDom';
93
+ export { PrintFloatDomSingle } from './views/components/dom/print';
94
94
  export { GlobalZone } from './views/components/global-zone/GlobalZone';
95
95
  export { CanvasPopup, SingleCanvasPopup } from './views/components/popup/CanvasPopup';
96
- export { ToolbarButton } from './views/components/ribbon/ToolbarButton';
96
+ export { RectPopup, type RectPopupDirection } from './views/components/popup/RectPopup';
97
97
  export { useToolbarItemStatus } from './views/components/ribbon/hook';
98
98
  export { Ribbon } from './views/components/ribbon/Ribbon';
99
+ export { ToolbarButton } from './views/components/ribbon/ToolbarButton';
99
100
  export { ToolbarItem } from './views/components/ribbon/ToolbarItem';
100
101
  export { type ISidebarMethodOptions, Sidebar } from './views/components/sidebar/Sidebar';
101
- export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
102
- export { MockMessageService } from './services/message/__testing__/mock-message.service.ts';
102
+ export { ZenZone } from './views/components/zen-zone/ZenZone';
@@ -0,0 +1,3 @@
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;