@univerjs/ui 0.2.2 → 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 (57) hide show
  1. package/README.md +11 -4
  2. package/lib/cjs/index.js +14 -14
  3. package/lib/es/index.js +3781 -3733
  4. package/lib/index.css +1 -1
  5. package/lib/locale/vi-VN.json +61 -0
  6. package/lib/locale/zh-TW.json +61 -0
  7. package/lib/types/common/component-manager.d.ts +1 -1
  8. package/lib/types/common/lifecycle.d.ts +1 -1
  9. package/lib/types/common/menu-hidden-observable.d.ts +1 -2
  10. package/lib/types/const.d.ts +19 -0
  11. package/lib/types/controllers/menus/menus.d.ts +1 -1
  12. package/lib/types/controllers/shared-shortcut.controller.d.ts +1 -2
  13. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -1
  14. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +1 -2
  15. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -2
  16. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -2
  17. package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
  18. package/lib/types/index.d.ts +12 -6
  19. package/lib/types/locale/vi-VN.d.ts +4 -0
  20. package/lib/types/locale/zh-TW.d.ts +4 -0
  21. package/lib/types/mobile-ui-plugin.d.ts +1 -2
  22. package/lib/types/services/before-close/before-close.service.d.ts +2 -2
  23. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
  24. package/lib/types/services/confirm/confirm.service.d.ts +2 -2
  25. package/lib/types/services/confirm/desktop-confirm.service.d.ts +1 -2
  26. package/lib/types/services/contextmenu/contextmenu.service.d.ts +2 -3
  27. package/lib/types/services/dialog/desktop-dialog.service.d.ts +1 -2
  28. package/lib/types/services/dialog/dialog.service.d.ts +2 -2
  29. package/lib/types/services/editor/editor.service.d.ts +2 -3
  30. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +1 -1
  31. package/lib/types/services/global-zone/global-zone.service.d.ts +2 -2
  32. package/lib/types/services/layout/layout.service.d.ts +2 -3
  33. package/lib/types/services/menu/menu.d.ts +1 -1
  34. package/lib/types/services/menu/menu.service.d.ts +2 -3
  35. package/lib/types/services/message/__testing__/mock-message.service.d.ts +2 -1
  36. package/lib/types/services/message/desktop-message.service.d.ts +2 -1
  37. package/lib/types/services/message/message.service.d.ts +3 -2
  38. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -2
  39. package/lib/types/services/notification/notification.service.d.ts +2 -2
  40. package/lib/types/services/parts/parts.service.d.ts +4 -4
  41. package/lib/types/services/platform/platform.service.d.ts +1 -1
  42. package/lib/types/services/popup/canvas-popup.service.d.ts +1 -1
  43. package/lib/types/services/progress/progress.service.d.ts +2 -3
  44. package/lib/types/services/range-selector/range-selector.service.d.ts +2 -3
  45. package/lib/types/services/shortcut/keycode.d.ts +2 -0
  46. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -3
  47. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +2 -1
  48. package/lib/types/services/sidebar/sidebar.service.d.ts +3 -2
  49. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +1 -1
  50. package/lib/types/services/zen-zone/zen-zone.service.d.ts +2 -2
  51. package/lib/types/ui-plugin.d.ts +2 -3
  52. package/lib/types/utils/util.d.ts +1 -0
  53. package/lib/types/views/components/ComponentContainer.d.ts +1 -1
  54. package/lib/types/views/workbench/Workbench.d.ts +8 -0
  55. package/lib/umd/index.js +14 -14
  56. package/package.json +14 -16
  57. 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{margin:12px 8px 0;width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg)}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}
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))}
@@ -0,0 +1,61 @@
1
+ {
2
+ "uiToolbar": {
3
+ "start": "Bắt đầu",
4
+ "insert": "Chèn",
5
+ "formulas": "Công thức",
6
+ "data": "Dữ liệu",
7
+ "view": "Xem",
8
+ "others": "Khác"
9
+ },
10
+ "more": "Thêm",
11
+ "fontFamily": {
12
+ "TimesNewRoman": "Times New Roman",
13
+ "Arial": "Arial",
14
+ "Tahoma": "Tahoma",
15
+ "Verdana": "Verdana",
16
+ "MicrosoftYaHei": "Microsoft YaHei",
17
+ "SimSun": "SimSun",
18
+ "SimHei": "SimHei",
19
+ "Kaiti": "Kaiti",
20
+ "FangSong": "FangSong",
21
+ "NSimSun": "NSimSun",
22
+ "STXinwei": "STXinwei",
23
+ "STXingkai": "STXingkai",
24
+ "STLiti": "STLiti",
25
+ "HanaleiFill": "HanaleiFill",
26
+ "Anton": "Anton",
27
+ "Pacifico": "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ "title": "Bảng phím tắt"
31
+ },
32
+ "shortcut": {
33
+ "undo": "Hoàn tác",
34
+ "redo": "Làm lại",
35
+ "cut": "Cắt",
36
+ "copy": "Sao chép",
37
+ "paste": "Dán",
38
+ "shortcut-panel": "Mở/Đóng bảng phím tắt"
39
+ },
40
+ "common-edit": "Chỉnh sửa thường dùng",
41
+ "toggle-shortcut-panel": "Mở/Đóng bảng phím tắt",
42
+ "clipboard": {
43
+ "authentication": {
44
+ "title": "Không thể truy cập vào bảng nhớ tạm",
45
+ "content": "Vui lòng cho phép Univer truy cập vào bảng nhớ tạm của bạn."
46
+ }
47
+ },
48
+ "textEditor": {
49
+ "formulaError": "Vui lòng nhập công thức hợp lệ, ví dụ =SUM(A1)",
50
+ "rangeError": "Vui lòng nhập phạm vi hợp lệ, ví dụ A1:B10"
51
+ },
52
+ "rangeSelector": {
53
+ "title": "Chọn một phạm vi dữ liệu",
54
+ "addAnotherRange": "Thêm phạm vi",
55
+ "buttonTooltip": "Chọn phạm vi dữ liệu",
56
+ "placeHolder": "Chọn phạm vi hoặc nhập",
57
+ "confirm": "Xác nhận",
58
+ "cancel": "Hủy"
59
+ },
60
+ "global-shortcut": "Phím tắt toàn cầu"
61
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "uiToolbar": {
3
+ "start": "開始",
4
+ "insert": "插入",
5
+ "formulas": "公式",
6
+ "data": "資料",
7
+ "view": "視圖",
8
+ "others": "其他"
9
+ },
10
+ "more": "更多",
11
+ "fontFamily": {
12
+ "TimesNewRoman": "Times New Roman",
13
+ "Arial": "Arial",
14
+ "Tahoma": "Tahoma",
15
+ "Verdana": "Verdana",
16
+ "MicrosoftYaHei": "微軟雅黑",
17
+ "SimSun": "宋體",
18
+ "SimHei": "黑體",
19
+ "Kaiti": "楷體",
20
+ "FangSong": "仿宋",
21
+ "NSimSun": "新宋體",
22
+ "STXinwei": "華文新魏",
23
+ "STXingkai": "華文行楷",
24
+ "STLiti": "華文隸書",
25
+ "HanaleiFill": "HanaleiFill",
26
+ "Anton": "Anton",
27
+ "Pacifico": "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ "title": "快捷鍵面板"
31
+ },
32
+ "shortcut": {
33
+ "undo": "撤銷",
34
+ "redo": "重做",
35
+ "cut": "剪切",
36
+ "copy": "複製",
37
+ "paste": "貼上",
38
+ "shortcut-panel": "開啟收起快捷鍵面板"
39
+ },
40
+ "common-edit": "常用編輯",
41
+ "toggle-shortcut-panel": "開啟收起快速鍵面板",
42
+ "clipboard": {
43
+ "authentication": {
44
+ "title": "無法存取剪貼簿",
45
+ "content": "請允許 Univer 存取您的剪貼簿。 "
46
+ }
47
+ },
48
+ "textEditor": {
49
+ "formulaError": "請輸入合法的公式,例如=SUM(A1)",
50
+ "rangeError": "請輸入合法的範圍,例如 A1:B10"
51
+ },
52
+ "rangeSelector": {
53
+ "title": "選擇一個資料範圍",
54
+ "addAnotherRange": "新增範圍",
55
+ "buttonTooltip": "選擇資料範圍",
56
+ "placeHolder": "框選範圍或輸入",
57
+ "confirm": "確認",
58
+ "cancel": "取消"
59
+ },
60
+ "global-shortcut": "全域快捷鍵"
61
+ }
@@ -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';
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -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;
@@ -11,14 +10,15 @@ export declare enum BuiltInUIPart {
11
10
  HEADER_MENU = "header-menu",
12
11
  CONTENT = "content",
13
12
  FOOTER = "footer",
14
- LEFT_SIDEBAR = "left-sidebar"
13
+ LEFT_SIDEBAR = "left-sidebar",
14
+ FLOATING = "floating"
15
15
  }
16
16
  export interface IUIPartsService {
17
17
  componentRegistered$: Observable<ComponentPartKey>;
18
18
  registerComponent(part: ComponentPartKey, componentFactory: () => ComponentType): IDisposable;
19
19
  getComponents(part: ComponentPartKey): Set<ComponentRenderer>;
20
20
  }
21
- export declare const IUIPartsService: import('@wendellhu/redi').IdentifierDecorator<IUIPartsService>;
21
+ export declare const IUIPartsService: import('@univerjs/core').IdentifierDecorator<IUIPartsService>;
22
22
  export declare class UIPartsService extends Disposable implements IUIPartsService {
23
23
  private _componentsByPart;
24
24
  private readonly _componentRegistered$;