@univerjs/ui 0.25.0 → 1.0.0-alpha.0
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 +6 -6
- package/lib/cjs/index.js +4546 -3688
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +5820 -4942
- package/lib/facade.js +6 -6
- package/lib/index.css +172 -46
- package/lib/index.js +5820 -4942
- package/lib/types/common/component-manager.d.ts +3 -4
- package/lib/types/common/icon-manager.d.ts +86 -0
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/controllers/components.controller.d.ts +24 -0
- package/lib/types/controllers/menus/menus.d.ts +3 -2
- package/lib/types/controllers/shortcut-display/menu.d.ts +2 -1
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +2 -3
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +0 -1
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +0 -1
- package/lib/types/index.d.ts +41 -29
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/services/menu/menu-manager.service.d.ts +8 -0
- package/lib/types/services/menu/menu.d.ts +25 -31
- package/lib/types/services/notification/desktop-notification.service.d.ts +1 -1
- package/lib/types/services/notification/notification.service.d.ts +1 -1
- package/lib/types/services/shortcut/keycode.d.ts +2 -0
- package/lib/types/utils/storage-driver.d.ts +26 -0
- package/lib/types/{components/common-label/index.d.ts → views/CommonLabel.d.ts} +1 -1
- package/lib/types/{components/heading-item/index.d.ts → views/HeadingItem.d.ts} +1 -1
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +1 -1
- package/lib/types/views/components/confirm-part/interface.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 +19 -1
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +1 -1
- package/lib/types/views/components/dialog-part/interface.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 +5 -1
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +9 -3
- package/lib/types/views/components/ribbon/hook.d.ts +1 -0
- 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 +2 -2
- package/lib/types/{components → views}/custom-label/CustomLabel.d.ts +2 -2
- package/lib/types/{components → views}/font-family/FontFamily.d.ts +1 -1
- package/lib/types/{components → views}/font-family/FontFamilyItem.d.ts +1 -1
- package/lib/types/{components → views}/font-size/FontSize.d.ts +1 -1
- package/lib/types/{components → views}/hooks/layout.d.ts +1 -1
- package/lib/types/{components → views}/index.d.ts +4 -4
- package/lib/types/{components → views}/menu/desktop/DesignTinyMenuGroup.d.ts +11 -7
- package/lib/types/{components → views}/menu/desktop/TinyMenuGroup.d.ts +7 -2
- package/lib/types/{components → views}/menu/mobile/MobileMenu.d.ts +1 -1
- package/lib/types/{components → views}/menu/mobile/MobileMenu.stories.d.ts +1 -1
- package/lib/types/views/{components/zen-zone/ZenZone.d.ts → message/MessageContainer.d.ts} +1 -1
- package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +3 -1
- package/lib/types/{components → views}/notification/Notification.d.ts +1 -1
- package/lib/types/{components → views}/notification/Notification.stories.d.ts +5 -5
- package/lib/types/{components → views}/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/types/{components → views}/slider/Slider.d.ts +1 -1
- package/lib/types/{components → views}/slider/Slider.stories.d.ts +1 -1
- package/lib/types/views/workbench/Workbench.d.ts +4 -2
- package/lib/umd/index.js +25 -131
- package/package.json +9 -10
- package/lib/types/components/message/MessageContainer.d.ts +0 -16
- package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +0 -37
- package/lib/types/services/zen-zone/zen-zone.service.d.ts +0 -37
- /package/lib/types/services/message/{__testing__ → __tests__}/mock-message.service.d.ts +0 -0
- /package/lib/types/{components → views}/color-picker/interface.d.ts +0 -0
- /package/lib/types/{components → views}/custom-label/index.d.ts +0 -0
- /package/lib/types/{components → views}/font-family/index.d.ts +0 -0
- /package/lib/types/{components → views}/font-family/interface.d.ts +0 -0
- /package/lib/types/{components → views}/font-size/interface.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/event.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/index.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/update-effect.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/use-click-out-side.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/use-debounce.d.ts +0 -0
- /package/lib/types/{components → views}/hooks/virtual-list.d.ts +0 -0
- /package/lib/types/{components → views}/menu/common/hook.d.ts +0 -0
- /package/lib/types/{components → views}/menu/types.d.ts +0 -0
- /package/lib/types/{components → views}/slider/index.d.ts +0 -0
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.137.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.137.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.137.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.137.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.137.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.137.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);
|