@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.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +6 -6
  2. package/lib/cjs/index.js +4546 -3688
  3. package/lib/es/facade.js +6 -6
  4. package/lib/es/index.js +5820 -4942
  5. package/lib/facade.js +6 -6
  6. package/lib/index.css +172 -46
  7. package/lib/index.js +5820 -4942
  8. package/lib/types/common/component-manager.d.ts +3 -4
  9. package/lib/types/common/icon-manager.d.ts +86 -0
  10. package/lib/types/common/index.d.ts +1 -0
  11. package/lib/types/controllers/components.controller.d.ts +24 -0
  12. package/lib/types/controllers/menus/menus.d.ts +3 -2
  13. package/lib/types/controllers/shortcut-display/menu.d.ts +2 -1
  14. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +2 -3
  15. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +0 -1
  16. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +0 -1
  17. package/lib/types/index.d.ts +41 -29
  18. package/lib/types/locale/types.d.ts +18 -0
  19. package/lib/types/services/menu/menu-manager.service.d.ts +8 -0
  20. package/lib/types/services/menu/menu.d.ts +25 -31
  21. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -1
  22. package/lib/types/services/notification/notification.service.d.ts +1 -1
  23. package/lib/types/services/shortcut/keycode.d.ts +2 -0
  24. package/lib/types/utils/storage-driver.d.ts +26 -0
  25. package/lib/types/{components/common-label/index.d.ts → views/CommonLabel.d.ts} +1 -1
  26. package/lib/types/{components/heading-item/index.d.ts → views/HeadingItem.d.ts} +1 -1
  27. package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +1 -1
  28. package/lib/types/views/components/confirm-part/interface.d.ts +1 -1
  29. package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +1 -1
  30. package/lib/types/views/components/context-menu/ContextMenu.d.ts +1 -1
  31. package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +19 -1
  32. package/lib/types/views/components/dialog-part/DialogPart.d.ts +1 -1
  33. package/lib/types/views/components/dialog-part/interface.d.ts +1 -1
  34. package/lib/types/views/components/dom/FloatDom.d.ts +2 -2
  35. package/lib/types/views/components/dom/Print.d.ts +1 -1
  36. package/lib/types/views/components/gallery-part/GalleryPart.d.ts +1 -1
  37. package/lib/types/views/components/popup/CanvasPopup.d.ts +2 -2
  38. package/lib/types/views/components/popup/RectPopup.d.ts +1 -1
  39. package/lib/types/views/components/ribbon/MobileRibbon.d.ts +1 -1
  40. package/lib/types/views/components/ribbon/Ribbon.d.ts +1 -1
  41. package/lib/types/views/components/ribbon/ToolbarButton.d.ts +5 -1
  42. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +9 -3
  43. package/lib/types/views/components/ribbon/hook.d.ts +1 -0
  44. package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +1 -1
  45. package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +1 -1
  46. package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +1 -1
  47. package/lib/types/views/components/sidebar/Sidebar.d.ts +2 -2
  48. package/lib/types/{components → views}/custom-label/CustomLabel.d.ts +2 -2
  49. package/lib/types/{components → views}/font-family/FontFamily.d.ts +1 -1
  50. package/lib/types/{components → views}/font-family/FontFamilyItem.d.ts +1 -1
  51. package/lib/types/{components → views}/font-size/FontSize.d.ts +1 -1
  52. package/lib/types/{components → views}/hooks/layout.d.ts +1 -1
  53. package/lib/types/{components → views}/index.d.ts +4 -4
  54. package/lib/types/{components → views}/menu/desktop/DesignTinyMenuGroup.d.ts +11 -7
  55. package/lib/types/{components → views}/menu/desktop/TinyMenuGroup.d.ts +7 -2
  56. package/lib/types/{components → views}/menu/mobile/MobileMenu.d.ts +1 -1
  57. package/lib/types/{components → views}/menu/mobile/MobileMenu.stories.d.ts +1 -1
  58. package/lib/types/views/{components/zen-zone/ZenZone.d.ts → message/MessageContainer.d.ts} +1 -1
  59. package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +3 -1
  60. package/lib/types/{components → views}/notification/Notification.d.ts +1 -1
  61. package/lib/types/{components → views}/notification/Notification.stories.d.ts +5 -5
  62. package/lib/types/{components → views}/progress-bar/ProgressBar.d.ts +1 -1
  63. package/lib/types/{components → views}/slider/Slider.d.ts +1 -1
  64. package/lib/types/{components → views}/slider/Slider.stories.d.ts +1 -1
  65. package/lib/types/views/workbench/Workbench.d.ts +4 -2
  66. package/lib/umd/index.js +25 -131
  67. package/package.json +9 -10
  68. package/lib/types/components/message/MessageContainer.d.ts +0 -16
  69. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +0 -37
  70. package/lib/types/services/zen-zone/zen-zone.service.d.ts +0 -37
  71. /package/lib/types/services/message/{__testing__ → __tests__}/mock-message.service.d.ts +0 -0
  72. /package/lib/types/{components → views}/color-picker/interface.d.ts +0 -0
  73. /package/lib/types/{components → views}/custom-label/index.d.ts +0 -0
  74. /package/lib/types/{components → views}/font-family/index.d.ts +0 -0
  75. /package/lib/types/{components → views}/font-family/interface.d.ts +0 -0
  76. /package/lib/types/{components → views}/font-size/interface.d.ts +0 -0
  77. /package/lib/types/{components → views}/hooks/event.d.ts +0 -0
  78. /package/lib/types/{components → views}/hooks/index.d.ts +0 -0
  79. /package/lib/types/{components → views}/hooks/update-effect.d.ts +0 -0
  80. /package/lib/types/{components → views}/hooks/use-click-out-side.d.ts +0 -0
  81. /package/lib/types/{components → views}/hooks/use-debounce.d.ts +0 -0
  82. /package/lib/types/{components → views}/hooks/virtual-list.d.ts +0 -0
  83. /package/lib/types/{components → views}/menu/common/hook.d.ts +0 -0
  84. /package/lib/types/{components → views}/menu/types.d.ts +0 -0
  85. /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.133.0/helpers/esm/typeof.js
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.133.0/helpers/esm/toPrimitive.js
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.133.0/helpers/esm/toPropertyKey.js
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.133.0/helpers/esm/defineProperty.js
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.133.0/helpers/esm/decorateParam.js
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.133.0/helpers/esm/decorate.js
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);