@univerjs/ui 0.2.3 → 0.2.4-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 (51) hide show
  1. package/lib/cjs/index.js +14 -14
  2. package/lib/es/index.js +2503 -2482
  3. package/lib/index.css +1 -1
  4. package/lib/types/common/component-manager.d.ts +1 -1
  5. package/lib/types/common/lifecycle.d.ts +1 -1
  6. package/lib/types/common/menu-hidden-observable.d.ts +1 -2
  7. package/lib/types/const.d.ts +19 -0
  8. package/lib/types/controllers/menus/menus.d.ts +1 -1
  9. package/lib/types/controllers/shared-shortcut.controller.d.ts +1 -2
  10. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -1
  11. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +1 -2
  12. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -2
  13. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -2
  14. package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
  15. package/lib/types/index.d.ts +12 -6
  16. package/lib/types/mobile-ui-plugin.d.ts +1 -2
  17. package/lib/types/services/before-close/before-close.service.d.ts +2 -2
  18. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
  19. package/lib/types/services/confirm/confirm.service.d.ts +2 -2
  20. package/lib/types/services/confirm/desktop-confirm.service.d.ts +1 -2
  21. package/lib/types/services/contextmenu/contextmenu.service.d.ts +2 -3
  22. package/lib/types/services/dialog/desktop-dialog.service.d.ts +1 -2
  23. package/lib/types/services/dialog/dialog.service.d.ts +2 -2
  24. package/lib/types/services/editor/editor.service.d.ts +2 -3
  25. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +1 -1
  26. package/lib/types/services/global-zone/global-zone.service.d.ts +2 -2
  27. package/lib/types/services/layout/layout.service.d.ts +2 -3
  28. package/lib/types/services/menu/menu.d.ts +1 -1
  29. package/lib/types/services/menu/menu.service.d.ts +2 -3
  30. package/lib/types/services/message/__testing__/mock-message.service.d.ts +2 -1
  31. package/lib/types/services/message/desktop-message.service.d.ts +2 -1
  32. package/lib/types/services/message/message.service.d.ts +3 -2
  33. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -2
  34. package/lib/types/services/notification/notification.service.d.ts +2 -2
  35. package/lib/types/services/parts/parts.service.d.ts +2 -3
  36. package/lib/types/services/platform/platform.service.d.ts +1 -1
  37. package/lib/types/services/popup/canvas-popup.service.d.ts +1 -1
  38. package/lib/types/services/progress/progress.service.d.ts +2 -3
  39. package/lib/types/services/range-selector/range-selector.service.d.ts +2 -3
  40. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -3
  41. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +1 -1
  42. package/lib/types/services/sidebar/sidebar.service.d.ts +2 -2
  43. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +1 -1
  44. package/lib/types/services/zen-zone/zen-zone.service.d.ts +2 -2
  45. package/lib/types/ui-plugin.d.ts +2 -3
  46. package/lib/types/utils/util.d.ts +1 -0
  47. package/lib/types/views/components/ComponentContainer.d.ts +1 -1
  48. package/lib/types/views/workbench/Workbench.d.ts +8 -0
  49. package/lib/umd/index.js +14 -14
  50. package/package.json +14 -16
  51. package/lib/types/views/DesktopApp.d.ts +0 -8
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-headerbar{user-select:none;position:relative}.univer-headerbar>.univer-header-menu{position:absolute;top:0;right:0;display:flex;box-sizing:border-box;height:100%}.univer-headerbar>.univer-header-menu>div{user-select:none;display:inline-flex;align-items:center;height:28px;margin-left:4px;padding:2px 4px;text-align:center;border-radius:4px}.univer-headerbar>.univer-header-menu>div:hover{background-color:rgb(var(--grey-300))}.univer-menubar{display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;height:32px}.univer-menubar-item{cursor:pointer;display:block;padding:var(--padding-xs) var(--padding-sm);font-size:var(--font-size-xs);font-weight:400;border-radius:var(--border-radius-base);transition:all .1s ease-in-out}.univer-menubar-item:hover:not(.univer-menubar-item-active){background:rgb(var(--grey-300))}.univer-menubar-item-active{color:rgb(var(--color-white));background:rgb(var(--primary-color))}.univer-toolbar{user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding-right:18px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated,.univer-toolbar-item-select-button:hover,.univer-toolbar-item-select-button:hover .univer-toolbar-item-select-button-label{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select-button-label:hover{background-color:rgb(var(--grey-300))!important}.univer-toolbar-item-select-button-arrow{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;padding-right:var(--padding-xs);color:rgb(var(--grey-400))}.univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-300))}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated:hover,.univer-toolbar-item-select-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover,.univer-toolbar-item-select-arrow-activated{background-color:rgb(var(--grey-100))}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color));transition:all .15s}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;display:none}.univer-zen-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-zen-zone-close{display:none}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-text-editor-container{position:relative;width:100%;height:30px;user-select:none;border:1px solid rgb(var(--border-color));transition:all .15s;border-radius:var(--border-radius-base)}.univer-text-editor-container:hover,.univer-text-editor-container:active,.univer-text-editor-container-active,.univer-text-editor-container-active:hover{border:1px solid rgb(var(--hyacinth-500))}.univer-text-editor-container-error,.univer-text-editor-container-error:hover{border:1px solid rgb(var(--red-400))}.univer-text-editor-container-disabled,.univer-text-editor-container-disabled:hover{border-color:rgb(var(--grey-100))}.univer-text-editor-container-placeholder{position:absolute;top:49%;left:5px;transform:translateY(-50%);color:rgb(var(--grey-400));font-size:var(--font-size-xs);pointer-events:none}.univer-text-editor-validation-error{font-size:10px;color:rgb(var(--red-400))}.univer-range-selector{overflow:hidden;display:flex;align-items:center;justify-content:space-between;color:rgb(var(--grey-600));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);width:220px;height:28px}.univer-range-selector-editor{position:relative;user-select:none;width:100%;height:100%;border:0;outline:0}.univer-range-selector-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;margin-right:4px;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-range-selector-icon:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-range-selector-icon[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-range-selector:hover,.univer-range-selector-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-active .univer-range-selector-icon{color:rgb(var(--hyacinth-500))}.univer-range-selector-error{border-color:rgb(var(--red-400))}.univer-range-selector-error .univer-range-selector-icon{color:rgb(var(--red-400))}.univer-range-selector-error:hover{border-color:rgb(var(--red-400))}.univer-range-selector-disabled{border-color:rgb(var(--grey-100))}.univer-range-selector-disabled .univer-range-selector-icon{color:rgb(var(--grey-100))}.univer-range-selector-disabled:hover{border-color:rgb(var(--grey-100))}.univer-range-selector-modal{position:relative;max-height:500px;overflow:hidden;overflow-y:auto}.univer-range-selector-modal-container{display:flex;flex-direction:row;align-items:center;margin-bottom:10px}.univer-range-selector-modal-container-input{display:inline-block;width:280px}.univer-range-selector-modal-container-input-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-button{display:inline-block;text-align:center;width:28px}.univer-range-selector-modal-container-button:hover{cursor:pointer;color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-delete-button{margin:auto}.univer-range-selector-modal-add{position:relative;width:300px;margin-top:5px;text-align:left;color:rgb(var(--hyacinth-500));font-size:var(--font-size-xs)}.univer-range-selector-modal-add .univer-range-selector-modal-add-button{display:flex;align-items:center;justify-content:center}.univer-range-selector-modal-add .univer-range-selector-modal-add-button:hover{cursor:pointer;background-color:rgb(var(--hyacinth-500),.05)}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:8px}.univer-progress-bar-container{display:flex;align-items:center;margin:0 8px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:12px;color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}
1
+ .univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-headerbar{user-select:none;position:relative}.univer-headerbar>.univer-header-menu{position:absolute;top:0;right:0;display:flex;box-sizing:border-box;height:100%}.univer-headerbar>.univer-header-menu>div{user-select:none;display:inline-flex;align-items:center;height:28px;margin-left:4px;padding:2px 4px;text-align:center;border-radius:4px}.univer-headerbar>.univer-header-menu>div:hover{background-color:rgb(var(--grey-300))}.univer-menubar{display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;height:32px}.univer-menubar-item{cursor:pointer;display:block;padding:var(--padding-xs) var(--padding-sm);font-size:var(--font-size-xs);font-weight:400;border-radius:var(--border-radius-base);transition:all .1s ease-in-out}.univer-menubar-item:hover:not(.univer-menubar-item-active){background:rgb(var(--grey-300))}.univer-menubar-item-active{color:rgb(var(--color-white));background:rgb(var(--primary-color))}.univer-toolbar{user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding-right:18px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated,.univer-toolbar-item-select-button:hover,.univer-toolbar-item-select-button:hover .univer-toolbar-item-select-button-label{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select-button-label:hover{background-color:rgb(var(--grey-300))!important}.univer-toolbar-item-select-button-arrow{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;padding-right:var(--padding-xs);color:rgb(var(--grey-400))}.univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-300))}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated:hover,.univer-toolbar-item-select-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover,.univer-toolbar-item-select-arrow-activated{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color));transition:all .15s}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;display:none}.univer-zen-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-zen-zone-close{display:none}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-text-editor-container{position:relative;width:100%;height:30px;user-select:none;border:1px solid rgb(var(--border-color));transition:all .15s;border-radius:var(--border-radius-base)}.univer-text-editor-container:hover,.univer-text-editor-container:active,.univer-text-editor-container-active,.univer-text-editor-container-active:hover{border:1px solid rgb(var(--hyacinth-500))}.univer-text-editor-container-error,.univer-text-editor-container-error:hover{border:1px solid rgb(var(--red-400))}.univer-text-editor-container-disabled,.univer-text-editor-container-disabled:hover{border-color:rgb(var(--grey-100))}.univer-text-editor-container-placeholder{position:absolute;top:49%;left:5px;transform:translateY(-50%);color:rgb(var(--grey-400));font-size:var(--font-size-xs);pointer-events:none}.univer-text-editor-validation-error{position:absolute;top:-16px;font-size:10px;color:rgb(var(--red-400))}.univer-range-selector{overflow:hidden;display:flex;align-items:center;justify-content:space-between;color:rgb(var(--grey-600));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);width:220px;height:28px}.univer-range-selector-editor{position:relative;user-select:none;width:100%;height:100%;border:0;outline:0}.univer-range-selector-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;margin-right:4px;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-range-selector-icon:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-range-selector-icon[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-range-selector:hover,.univer-range-selector-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-active .univer-range-selector-icon{color:rgb(var(--hyacinth-500))}.univer-range-selector-error{border-color:rgb(var(--red-400))}.univer-range-selector-error .univer-range-selector-icon{color:rgb(var(--red-400))}.univer-range-selector-error:hover{border-color:rgb(var(--red-400))}.univer-range-selector-disabled{border-color:rgb(var(--grey-100))}.univer-range-selector-disabled .univer-range-selector-icon{color:rgb(var(--grey-100))}.univer-range-selector-disabled:hover{border-color:rgb(var(--grey-100))}.univer-range-selector-modal{position:relative;max-height:500px;overflow:hidden;overflow-y:auto}.univer-range-selector-modal-container{display:flex;flex-direction:row;align-items:center;margin-bottom:10px}.univer-range-selector-modal-container-input{display:inline-block;width:280px}.univer-range-selector-modal-container-input-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-button{display:inline-block;text-align:center;width:28px}.univer-range-selector-modal-container-button:hover{cursor:pointer;color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-delete-button{margin:auto}.univer-range-selector-modal-add{position:relative;width:300px;margin-top:5px;text-align:left;color:rgb(var(--hyacinth-500));font-size:var(--font-size-xs)}.univer-range-selector-modal-add .univer-range-selector-modal-add-button{display:flex;align-items:center;justify-content:center}.univer-range-selector-modal-add .univer-range-selector-modal-add-button:hover{cursor:pointer;background-color:rgb(var(--hyacinth-500),.05)}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:8px}.univer-progress-bar-container{display:flex;align-items:center;margin:0 8px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:12px;color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { defineComponent } from 'vue';
3
3
  import { default as React } from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
 
3
3
  export declare function fromGlobalEvent<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): IDisposable;
4
4
  export declare function fromEvent<K extends keyof HTMLElementEventMap>(target: HTMLElement, type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): IDisposable;
@@ -1,5 +1,4 @@
1
- import { UniverInstanceType } from '@univerjs/core';
2
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor, UniverInstanceType } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType): Observable<boolean>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
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
+ /**
17
+ * @ignore
18
+ */
19
+ export declare const UNI_DISABLE_CHANGING_FOCUS_KEY = "UNI_DISABLE_CHANGING_FOCUS";
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuButtonItem } from '../../services/menu/menu';
3
3
 
4
4
  export declare function UndoMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
2
  import { IMenuService } from '../services/menu/menu.service';
4
3
  import { IShortcutItem, IShortcutService } from '../services/shortcut/shortcut.service';
5
4
  import { IUniverUIConfig } from './ui/ui.controller';
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuButtonItem } from '../../services/menu/menu';
3
3
 
4
4
  export declare function ShortcutPanelMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
2
  import { ComponentManager } from '../../common/component-manager';
4
3
  import { IMenuService } from '../../services/menu/menu.service';
5
4
  import { IShortcutService } from '../../services/shortcut/shortcut.service';
@@ -1,6 +1,5 @@
1
- import { Disposable, IConfigService, LifecycleService } from '@univerjs/core';
1
+ import { Disposable, IConfigService, Injector, LifecycleService } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { ILayoutService } from '../../services/layout/layout.service';
5
4
  import { IUIPartsService } from '../../services/parts/parts.service';
6
5
  import { IUniverUIConfig } from './ui.controller';
@@ -1,6 +1,5 @@
1
- import { Disposable, IUniverInstanceService, LifecycleService } from '@univerjs/core';
1
+ import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { ILayoutService } from '../../services/layout/layout.service';
5
4
  import { IUIPartsService } from '../../services/parts/parts.service';
6
5
  import { IUIController, IUniverUIConfig } from './ui.controller';
@@ -10,7 +10,7 @@ export interface IWorkbenchOptions {
10
10
  }
11
11
  export interface IUIController {
12
12
  }
13
- export declare const IUIController: import('@wendellhu/redi').IdentifierDecorator<IUIController>;
13
+ export declare const IUIController: import('@univerjs/core').IdentifierDecorator<IUIController>;
14
14
  export interface IUniverUIConfig extends IWorkbenchOptions {
15
15
  /** Disable auto focus when Univer bootstraps. */
16
16
  disableAutoFocus?: true;
@@ -20,7 +20,7 @@ export { t } from './components/hooks/locale';
20
20
  export { useObservable } from './components/hooks/observable';
21
21
  export { useEvent } from './components/hooks/event';
22
22
  export { CopyShortcutItem, CutShortcutItem, RedoShortcutItem, SharedController, UndoShortcutItem, } from './controllers/shared-shortcut.controller';
23
- export { UI_CONFIG_KEY, IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
23
+ export { UI_CONFIG_KEY, IUIController, type IWorkbenchOptions, type IUniverUIConfig } from './controllers/ui/ui.controller';
24
24
  export { DesktopUIController } from './controllers/ui/ui-desktop.controller';
25
25
  export { IUIPartsService, BuiltInUIPart, UIPartsService } from './services/parts/parts.service';
26
26
  export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
@@ -57,14 +57,19 @@ export { ComponentContainer, useComponentsOfPart, type IComponentContainerProps
57
57
  export { IEditorService, EditorService } from './services/editor/editor.service';
58
58
  export { TextEditor } from './components/editor/TextEditor';
59
59
  export { RangeSelector } from './components/range-selector/RangeSelector';
60
- export { IRangeSelectorService } from './services/range-selector/range-selector.service';
61
- export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
62
- export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
63
60
  export { ProgressBar } from './components/progress-bar/ProgressBar';
64
61
  export { type IMenuGroup, useToolbarGroups, useToolbarItemStatus, useToolbarCollapseObserver } from './views/components/doc-bars/hook';
65
62
  export { mergeMenuConfigs } from './common/menu-merge-configs';
66
- export { IProgressService, ProgressService } from './services/progress/progress.service';
67
- export type { IProgressStep } from './services/progress/progress.service';
63
+ export { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';
64
+ export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
65
+ export { IProgressService, type IProgressCount, type IProgressStep, ProgressService } from './services/progress/progress.service';
66
+ export { type IRangeSelectorRange, IRangeSelectorService, RangeSelectorService } from './services/range-selector/range-selector.service';
67
+ export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
68
+ export { UNIVER_UI_PLUGIN_NAME } from './ui-plugin';
69
+ export { ErrorController } from './controllers/error/error.controller';
70
+ export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';
71
+ export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
72
+ export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';
68
73
  export { GlobalZone } from './views/components/global-zone/GlobalZone';
69
74
  export { builtInGlobalComponents } from './views/parts';
70
75
  export { DesktopContextMenu as ContextMenu } from './views/components/context-menu/ContextMenu';
@@ -74,5 +79,6 @@ export { CanvasPopup } from './views/components/popup/CanvasPopup';
74
79
  export { CanvasFloatDomService, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
75
80
  export { FloatDom } from './views/components/dom/FloatDom';
76
81
  export { MobileContextMenu } from './views/components/context-menu/MobileContextMenu';
82
+ export { Toolbar } from './views/components/doc-bars/Toolbar';
77
83
  export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
78
84
  export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';
@@ -1,5 +1,4 @@
1
- import { Plugin } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, Plugin } from '@univerjs/core';
3
2
  import { IUniverUIConfig } from './controllers/ui/ui.controller';
4
3
 
5
4
  export declare const UNIVER_MOBILE_UI_PLUGIN_NAME = "UNIVER_MOBILE_UI_PLUGIN";
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { INotificationService } from '../notification/notification.service';
3
3
 
4
4
  export interface IBeforeCloseService {
@@ -17,7 +17,7 @@ export interface IBeforeCloseService {
17
17
  */
18
18
  registerOnClose(callback: () => void): IDisposable;
19
19
  }
20
- export declare const IBeforeCloseService: import('@wendellhu/redi').IdentifierDecorator<IBeforeCloseService>;
20
+ export declare const IBeforeCloseService: import('@univerjs/core').IdentifierDecorator<IBeforeCloseService>;
21
21
  export declare class DesktopBeforeCloseService implements IBeforeCloseService {
22
22
  private readonly _notificationService;
23
23
  private _beforeUnloadCallbacks;
@@ -32,7 +32,7 @@ export interface IClipboardInterfaceService {
32
32
  */
33
33
  readonly supportClipboard: boolean;
34
34
  }
35
- export declare const IClipboardInterfaceService: import('@wendellhu/redi').IdentifierDecorator<IClipboardInterfaceService>;
35
+ export declare const IClipboardInterfaceService: import('@univerjs/core').IdentifierDecorator<IClipboardInterfaceService>;
36
36
  export declare class BrowserClipboardService extends Disposable implements IClipboardInterfaceService {
37
37
  private readonly _localeService;
38
38
  private readonly _logService;
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
4
4
 
5
- export declare const IConfirmService: import('@wendellhu/redi').IdentifierDecorator<IConfirmService>;
5
+ export declare const IConfirmService: import('@univerjs/core').IdentifierDecorator<IConfirmService>;
6
6
  export interface IConfirmService {
7
7
  readonly confirmOptions$: Subject<IConfirmPartMethodOptions[]>;
8
8
  open(params: IConfirmPartMethodOptions): IDisposable;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { Subject } from 'rxjs';
4
3
  import { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
5
4
  import { IUIPartsService } from '../parts/parts.service';
@@ -1,6 +1,5 @@
1
- import { Disposable } from '@univerjs/core';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
2
2
  import { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
 
5
4
  export interface IContextMenuHandler {
6
5
  /** A callback to open context menu with given position and menu type. */
@@ -13,7 +12,7 @@ export interface IContextMenuService {
13
12
  triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
14
13
  registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
15
14
  }
16
- export declare const IContextMenuService: import('@wendellhu/redi').IdentifierDecorator<IContextMenuService>;
15
+ export declare const IContextMenuService: import('@univerjs/core').IdentifierDecorator<IContextMenuService>;
17
16
  export declare class ContextMenuService extends Disposable implements IContextMenuService {
18
17
  private _currentHandler;
19
18
  disabled: boolean;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { Subject } from 'rxjs';
4
3
  import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
5
4
  import { IUIPartsService } from '../parts/parts.service';
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
4
4
 
5
- export declare const IDialogService: import('@wendellhu/redi').IdentifierDecorator<IDialogService>;
5
+ export declare const IDialogService: import('@univerjs/core').IdentifierDecorator<IDialogService>;
6
6
  export interface IDialogService {
7
7
  open(params: IDialogPartMethodOptions): IDisposable;
8
8
  close(id: string): void;
@@ -1,5 +1,4 @@
1
- import { DocumentDataModel, IDocumentBody, IDocumentData, IPosition, Nullable, Disposable, IContextService, IUniverInstanceService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { DocumentDataModel, IDisposable, IDocumentBody, IDocumentData, IPosition, Nullable, Disposable, IContextService, IUniverInstanceService } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { IRender, ISuccinctTextRangeParam, IRenderManagerService } from '@univerjs/engine-render';
5
4
  import { LexerTreeBuilder } from '@univerjs/engine-formula';
@@ -191,4 +190,4 @@ export declare class EditorService extends Disposable implements IEditorService,
191
190
  private _refresh;
192
191
  private _getBlank;
193
192
  }
194
- export declare const IEditorService: import('@wendellhu/redi').IdentifierDecorator<IEditorService>;
193
+ export declare const IEditorService: import('@univerjs/core').IdentifierDecorator<IEditorService>;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { Subject } from 'rxjs';
4
4
  import { ComponentManager } from '../../common/component-manager';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
 
4
- export declare const IGlobalZoneService: import('@wendellhu/redi').IdentifierDecorator<IGlobalZoneService>;
4
+ export declare const IGlobalZoneService: import('@univerjs/core').IdentifierDecorator<IGlobalZoneService>;
5
5
  export interface IGlobalZoneService {
6
6
  readonly visible$: Subject<boolean>;
7
7
  readonly componentKey$: Subject<string>;
@@ -1,5 +1,4 @@
1
- import { ContextService, Nullable, Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { ContextService, IDisposable, Nullable, Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
3
2
  import { IEditorService } from '../editor/editor.service';
4
3
 
5
4
  type FocusHandlerFn = (unitId: string) => void;
@@ -21,7 +20,7 @@ export interface ILayoutService {
21
20
  checkElementInCurrentContainers(element: HTMLElement): boolean;
22
21
  checkCanvasIsFocused(): boolean;
23
22
  }
24
- export declare const ILayoutService: import('@wendellhu/redi').IdentifierDecorator<ILayoutService>;
23
+ export declare const ILayoutService: import('@univerjs/core').IdentifierDecorator<ILayoutService>;
25
24
  /**
26
25
  * This service is responsible for storing layout information of the current
27
26
  * Univer application instance.
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
 
4
4
  export type OneOrMany<T> = T | T[];
@@ -1,10 +1,9 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { IShortcutService } from '../shortcut/shortcut.service';
5
4
  import { IDisplayMenuItem, IMenuItem, MenuConfig, MenuPosition } from './menu';
6
5
 
7
- export declare const IMenuService: import('@wendellhu/redi').IdentifierDecorator<IMenuService>;
6
+ export declare const IMenuService: import('@univerjs/core').IdentifierDecorator<IMenuService>;
8
7
  export interface IMenuService {
9
8
  menuChanged$: Observable<void>;
10
9
  addMenuItem(item: IMenuItem, config: MenuConfig): IDisposable;
@@ -1,5 +1,5 @@
1
1
  import { IMessageOptions, IMessageProps } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
  import { IMessageService } from '../message.service';
4
4
 
5
5
  /**
@@ -8,4 +8,5 @@ import { IMessageService } from '../message.service';
8
8
  export declare class MockMessageService implements IMessageService {
9
9
  show(_options: IMessageOptions & Omit<IMessageProps, 'key'>): IDisposable;
10
10
  setContainer(): void;
11
+ getContainer(): HTMLElement | undefined;
11
12
  }
@@ -1,5 +1,5 @@
1
1
  import { IMessageOptions, IMessageProps, Message } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
  import { IMessageService } from './message.service';
4
4
 
5
5
  export declare class DesktopMessageService implements IMessageService, IDisposable {
@@ -7,5 +7,6 @@ export declare class DesktopMessageService implements IMessageService, IDisposab
7
7
  protected _message?: Message;
8
8
  dispose(): void;
9
9
  setContainer(container: HTMLElement): void;
10
+ getContainer(): HTMLElement | undefined;
10
11
  show(options: IMessageOptions & Omit<IMessageProps, 'key'>): IDisposable;
11
12
  }
@@ -1,8 +1,9 @@
1
1
  import { IMessageOptions } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
 
4
- export declare const IMessageService: import('@wendellhu/redi').IdentifierDecorator<IMessageService>;
4
+ export declare const IMessageService: import('@univerjs/core').IdentifierDecorator<IMessageService>;
5
5
  export interface IMessageService {
6
6
  show(options: IMessageOptions): IDisposable;
7
7
  setContainer(container: HTMLElement): void;
8
+ getContainer(): HTMLElement | undefined;
8
9
  }
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { INotificationOptions } from '../../components/notification/Notification';
4
3
  import { IUIPartsService } from '../parts/parts.service';
5
4
  import { INotificationService } from './notification.service';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { INotificationOptions } from '../../components/notification/Notification';
3
3
 
4
- export declare const INotificationService: import('@wendellhu/redi').IdentifierDecorator<INotificationService>;
4
+ export declare const INotificationService: import('@univerjs/core').IdentifierDecorator<INotificationService>;
5
5
  export interface INotificationService {
6
6
  show(params: INotificationOptions): IDisposable;
7
7
  }
@@ -1,6 +1,5 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable, Disposable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Disposable } from '@univerjs/core';
4
3
  import { ComponentType } from '../../common/component-manager';
5
4
 
6
5
  type ComponentRenderer = () => ComponentType;
@@ -19,7 +18,7 @@ export interface IUIPartsService {
19
18
  registerComponent(part: ComponentPartKey, componentFactory: () => ComponentType): IDisposable;
20
19
  getComponents(part: ComponentPartKey): Set<ComponentRenderer>;
21
20
  }
22
- export declare const IUIPartsService: import('@wendellhu/redi').IdentifierDecorator<IUIPartsService>;
21
+ export declare const IUIPartsService: import('@univerjs/core').IdentifierDecorator<IUIPartsService>;
23
22
  export declare class UIPartsService extends Disposable implements IUIPartsService {
24
23
  private _componentsByPart;
25
24
  private readonly _componentRegistered$;
@@ -21,7 +21,7 @@ export interface IPlatformService {
21
21
  readonly isWindows: boolean;
22
22
  readonly isLinux: boolean;
23
23
  }
24
- export declare const IPlatformService: import('@wendellhu/redi').IdentifierDecorator<IPlatformService>;
24
+ export declare const IPlatformService: import('@univerjs/core').IdentifierDecorator<IPlatformService>;
25
25
  export declare class PlatformService implements IPlatformService {
26
26
  get isMac(): boolean;
27
27
  get isWindows(): boolean;
@@ -20,7 +20,7 @@ export interface ICanvasPopupService {
20
20
  popups$: Observable<[string, IPopup][]>;
21
21
  get popups(): [string, IPopup][];
22
22
  }
23
- export declare const ICanvasPopupService: import('@wendellhu/redi').IdentifierDecorator<ICanvasPopupService>;
23
+ export declare const ICanvasPopupService: import('@univerjs/core').IdentifierDecorator<ICanvasPopupService>;
24
24
  export declare class CanvasPopupService extends Disposable implements ICanvasPopupService {
25
25
  private readonly _popupMap;
26
26
  private readonly _popups$;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export interface IProgressCount {
@@ -51,4 +50,4 @@ export declare class ProgressService extends Disposable implements IProgressServ
51
50
  getTaskCount(): number;
52
51
  private _clear;
53
52
  }
54
- export declare const IProgressService: import('@wendellhu/redi').IdentifierDecorator<IProgressService>;
53
+ export declare const IProgressService: import('@univerjs/core').IdentifierDecorator<IProgressService>;
@@ -1,5 +1,4 @@
1
- import { IUnitRange, Nullable, Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable, IUnitRange, Nullable, Disposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export interface IRangeSelectorRange extends IUnitRange {
@@ -24,4 +23,4 @@ export declare class RangeSelectorService extends Disposable implements IRangeSe
24
23
  selectionChange(range: IRangeSelectorRange[]): void;
25
24
  openSelector(): void;
26
25
  }
27
- export declare const IRangeSelectorService: import('@wendellhu/redi').IdentifierDecorator<IRangeSelectorService>;
26
+ export declare const IRangeSelectorService: import('@univerjs/core').IdentifierDecorator<IRangeSelectorService>;
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService, IContextService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, IContextService, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { ILayoutService } from '../layout/layout.service';
5
4
  import { IPlatformService } from '../platform/platform.service';
@@ -35,7 +34,7 @@ export interface IShortcutService {
35
34
  getAllShortcuts(): IShortcutItem[];
36
35
  setDisable(disable: boolean): void;
37
36
  }
38
- export declare const IShortcutService: import('@wendellhu/redi').IdentifierDecorator<IShortcutService>;
37
+ export declare const IShortcutService: import('@univerjs/core').IdentifierDecorator<IShortcutService>;
39
38
  export declare class ShortcutService extends Disposable implements IShortcutService {
40
39
  private readonly _commandService;
41
40
  private readonly _platformService;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { ISidebarMethodOptions } from '../../views/components/sidebar/interface';
4
4
  import { ISidebarService } from './sidebar.service';
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { ISidebarMethodOptions } from '../../views/components/sidebar/interface';
4
4
 
5
- export declare const ISidebarService: import('@wendellhu/redi').IdentifierDecorator<ISidebarService>;
5
+ export declare const ISidebarService: import('@univerjs/core').IdentifierDecorator<ISidebarService>;
6
6
  export interface ISidebarService {
7
7
  readonly sidebarOptions$: Subject<ISidebarMethodOptions>;
8
8
  readonly scrollEvent$: Subject<Event>;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { Subject } from 'rxjs';
4
4
  import { ComponentManager } from '../../common/component-manager';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
 
4
- export declare const IZenZoneService: import('@wendellhu/redi').IdentifierDecorator<IZenZoneService>;
4
+ export declare const IZenZoneService: import('@univerjs/core').IdentifierDecorator<IZenZoneService>;
5
5
  export interface IZenZoneService {
6
6
  readonly visible$: Subject<boolean>;
7
7
  readonly componentKey$: Subject<string>;
@@ -1,8 +1,7 @@
1
- import { IContextService, Plugin } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { IContextService, Injector, Plugin } from '@univerjs/core';
3
2
  import { IUniverUIConfig } from './controllers/ui/ui.controller';
4
3
 
5
- export declare const DefaultUiConfig: {};
4
+ export declare const UNIVER_UI_PLUGIN_NAME = "UNIVER_UI_PLUGIN";
6
5
  export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
7
6
  /**
8
7
  * UI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
@@ -14,3 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare function textTrim(x: string): string;
17
+ export declare function isElementVisible(element: HTMLElement | null): boolean;
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, default as React } from 'react';
2
- import { Injector } from '@wendellhu/redi';
2
+ import { Injector } from '@univerjs/core';
3
3
 
4
4
  export interface IComponentContainerProps {
5
5
  components?: Set<ComponentType>;