@univerjs/ui 0.1.0-alpha.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.
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +4671 -0
- package/lib/cjs/locale/en-US.js +46 -0
- package/lib/cjs/locale/zh-CN.js +35 -0
- package/lib/esm/index.js +4507 -0
- package/lib/esm/locale/en-US.js +25 -0
- package/lib/esm/locale/zh-CN.js +14 -0
- package/lib/index.css +474 -0
- package/lib/types/BaseComponent.d.ts +8 -0
- package/lib/types/BaseComponent.d.ts.map +1 -0
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +4 -0
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts.map +1 -0
- package/lib/types/common/component-manager.d.ts +14 -0
- package/lib/types/common/component-manager.d.ts.map +1 -0
- package/lib/types/common/index.d.ts +3 -0
- package/lib/types/common/index.d.ts.map +1 -0
- package/lib/types/common/lifecycle.d.ts +4 -0
- package/lib/types/common/lifecycle.d.ts.map +1 -0
- package/lib/types/common/z-index-manager.d.ts +8 -0
- package/lib/types/common/z-index-manager.d.ts.map +1 -0
- package/lib/types/components/custom-label/CustomLabel.d.ts +14 -0
- package/lib/types/components/custom-label/CustomLabel.d.ts.map +1 -0
- package/lib/types/components/custom-label/index.d.ts +2 -0
- package/lib/types/components/custom-label/index.d.ts.map +1 -0
- package/lib/types/components/hooks/observable.d.ts +4 -0
- package/lib/types/components/hooks/observable.d.ts.map +1 -0
- package/lib/types/components/index.d.ts +3 -0
- package/lib/types/components/index.d.ts.map +1 -0
- package/lib/types/components/menu/Menu.d.ts +11 -0
- package/lib/types/components/menu/Menu.d.ts.map +1 -0
- package/lib/types/components/menu/index.d.ts +2 -0
- package/lib/types/components/menu/index.d.ts.map +1 -0
- package/lib/types/components/notification/Notification.d.ts +41 -0
- package/lib/types/components/notification/Notification.d.ts.map +1 -0
- package/lib/types/controllers/error/error.controller.d.ts +8 -0
- package/lib/types/controllers/error/error.controller.d.ts.map +1 -0
- package/lib/types/controllers/menus/menus.d.ts +5 -0
- package/lib/types/controllers/menus/menus.d.ts.map +1 -0
- package/lib/types/controllers/shared-shortcut.controller.d.ts +25 -0
- package/lib/types/controllers/shared-shortcut.controller.d.ts.map +1 -0
- package/lib/types/controllers/shortcut-display/menu.d.ts +3 -0
- package/lib/types/controllers/shortcut-display/menu.d.ts.map +1 -0
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +10 -0
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts.map +1 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +55 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts.map +1 -0
- package/lib/types/controllers/ui/ui.controller.d.ts +14 -0
- package/lib/types/controllers/ui/ui.controller.d.ts.map +1 -0
- package/lib/types/index.d.ts +30 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +23 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +12 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/before-close/before-close.service.d.ts +21 -0
- package/lib/types/services/before-close/before-close.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +36 -0
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard.command.d.ts +5 -0
- package/lib/types/services/clipboard/clipboard.command.d.ts.map +1 -0
- package/lib/types/services/confirm/confirm.service.d.ts +10 -0
- package/lib/types/services/confirm/confirm.service.d.ts.map +1 -0
- package/lib/types/services/confirm/desktop-confirm.service.d.ts +12 -0
- package/lib/types/services/confirm/desktop-confirm.service.d.ts.map +1 -0
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +18 -0
- package/lib/types/services/contextmenu/contextmenu.service.d.ts.map +1 -0
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +12 -0
- package/lib/types/services/dialog/desktop-dialog.service.d.ts.map +1 -0
- package/lib/types/services/dialog/dialog.service.d.ts +10 -0
- package/lib/types/services/dialog/dialog.service.d.ts.map +1 -0
- package/lib/types/services/focus/focus.service.d.ts +22 -0
- package/lib/types/services/focus/focus.service.d.ts.map +1 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts +11 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +1 -0
- package/lib/types/services/menu/menu.d.ts +103 -0
- package/lib/types/services/menu/menu.d.ts.map +1 -0
- package/lib/types/services/menu/menu.service.d.ts +28 -0
- package/lib/types/services/menu/menu.service.d.ts.map +1 -0
- package/lib/types/services/message/desktop-message.service.d.ts +11 -0
- package/lib/types/services/message/desktop-message.service.d.ts.map +1 -0
- package/lib/types/services/message/message.service.d.ts +8 -0
- package/lib/types/services/message/message.service.d.ts.map +1 -0
- package/lib/types/services/notification/desktop-notification.service.d.ts +7 -0
- package/lib/types/services/notification/desktop-notification.service.d.ts.map +1 -0
- package/lib/types/services/notification/notification.service.d.ts +7 -0
- package/lib/types/services/notification/notification.service.d.ts.map +1 -0
- package/lib/types/services/platform/platform.service.d.ts +15 -0
- package/lib/types/services/platform/platform.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/keycode.d.ts +79 -0
- package/lib/types/services/shortcut/keycode.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut-experience.service.d.ts +31 -0
- package/lib/types/services/shortcut/shortcut-experience.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts +10 -0
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +55 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts.map +1 -0
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +12 -0
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts.map +1 -0
- package/lib/types/services/sidebar/sidebar.service.d.ts +10 -0
- package/lib/types/services/sidebar/sidebar.service.d.ts.map +1 -0
- package/lib/types/ui-plugin.d.ts +20 -0
- package/lib/types/ui-plugin.d.ts.map +1 -0
- package/lib/types/utils/cell.d.ts +34 -0
- package/lib/types/utils/cell.d.ts.map +1 -0
- package/lib/types/utils/index.d.ts +3 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/lib/types/utils/util.d.ts +2 -0
- package/lib/types/utils/util.d.ts.map +1 -0
- package/lib/types/views/App.d.ts +13 -0
- package/lib/types/views/App.d.ts.map +1 -0
- package/lib/types/views/components/ComponentContainer.d.ts +6 -0
- package/lib/types/views/components/ComponentContainer.d.ts.map +1 -0
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +3 -0
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts.map +1 -0
- package/lib/types/views/components/confirm-part/interface.d.ts +8 -0
- package/lib/types/views/components/confirm-part/interface.d.ts.map +1 -0
- package/lib/types/views/components/context-menu/ContextMenu.d.ts +5 -0
- package/lib/types/views/components/context-menu/ContextMenu.d.ts.map +1 -0
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +3 -0
- package/lib/types/views/components/dialog-part/DialogPart.d.ts.map +1 -0
- package/lib/types/views/components/dialog-part/interface.d.ts +10 -0
- package/lib/types/views/components/dialog-part/interface.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/Button/ToolbarButton.d.ts +28 -0
- package/lib/types/views/components/doc-bars/Button/ToolbarButton.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/MenuBar.d.ts +7 -0
- package/lib/types/views/components/doc-bars/MenuBar.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/Toolbar.d.ts +3 -0
- package/lib/types/views/components/doc-bars/Toolbar.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/ToolbarItem.d.ts +4 -0
- package/lib/types/views/components/doc-bars/ToolbarItem.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/hooks/menu.d.ts +10 -0
- package/lib/types/views/components/doc-bars/hooks/menu.d.ts.map +1 -0
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +6 -0
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts.map +1 -0
- package/lib/types/views/components/sidebar/Sidebar.d.ts +3 -0
- package/lib/types/views/components/sidebar/Sidebar.d.ts.map +1 -0
- package/lib/types/views/components/sidebar/interface.d.ts +11 -0
- package/lib/types/views/components/sidebar/interface.d.ts.map +1 -0
- package/lib/types/views/parts.d.ts +3 -0
- package/lib/types/views/parts.d.ts.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/locale/en-US.ts
|
|
21
|
+
var en_US_exports = {};
|
|
22
|
+
__export(en_US_exports, {
|
|
23
|
+
default: () => en_US_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(en_US_exports);
|
|
26
|
+
var en_US_default = {
|
|
27
|
+
uiToolbar: {
|
|
28
|
+
start: "Start",
|
|
29
|
+
insert: "Insert",
|
|
30
|
+
formulas: "Formulas",
|
|
31
|
+
data: "Data",
|
|
32
|
+
view: "View",
|
|
33
|
+
others: "Others"
|
|
34
|
+
},
|
|
35
|
+
"shortcut-panel": {
|
|
36
|
+
title: "Shortcuts"
|
|
37
|
+
},
|
|
38
|
+
shortcut: {
|
|
39
|
+
undo: "Undo",
|
|
40
|
+
redo: "Redo",
|
|
41
|
+
cut: "Cut",
|
|
42
|
+
copy: "Copy",
|
|
43
|
+
paste: "Paste"
|
|
44
|
+
},
|
|
45
|
+
"common-edit": "Common Editing Shortcuts"
|
|
46
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/locale/zh-CN.ts
|
|
21
|
+
var zh_CN_exports = {};
|
|
22
|
+
__export(zh_CN_exports, {
|
|
23
|
+
default: () => zh_CN_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
26
|
+
var zh_CN_default = {
|
|
27
|
+
uiToolbar: {
|
|
28
|
+
start: "\u5F00\u59CB",
|
|
29
|
+
insert: "\u63D2\u5165",
|
|
30
|
+
formulas: "\u516C\u5F0F",
|
|
31
|
+
data: "\u6570\u636E",
|
|
32
|
+
view: "\u89C6\u56FE",
|
|
33
|
+
others: "\u5176\u4ED6"
|
|
34
|
+
}
|
|
35
|
+
};
|