@univerjs/ui 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +13 -13
- package/lib/es/index.js +6083 -5689
- package/lib/index.css +1 -1
- package/lib/locale/en-US.json +3 -3
- package/lib/locale/ru-RU.json +3 -3
- package/lib/locale/vi-VN.json +3 -3
- package/lib/locale/zh-CN.json +3 -3
- package/lib/locale/zh-TW.json +3 -3
- package/lib/types/common/menu-hidden-observable.d.ts +1 -1
- package/lib/types/components/editor/TextEditor.d.ts +2 -1
- package/lib/types/components/hooks/event.d.ts +1 -1
- package/lib/types/components/menu/desktop/Menu.d.ts +2 -2
- package/lib/types/components/range-selector/RangeSelector.d.ts +3 -1
- package/lib/types/controllers/config.schema.d.ts +12 -0
- package/lib/types/controllers/menus/menu.schema.d.ts +2 -0
- package/lib/types/controllers/shared-shortcut.controller.d.ts +2 -8
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +3 -4
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +7 -4
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +6 -2
- package/lib/types/controllers/ui/ui.controller.d.ts +16 -10
- package/lib/types/index.d.ts +52 -46
- package/lib/types/locale/zh-CN.d.ts +2 -2
- package/lib/types/mobile-ui-plugin.d.ts +2 -2
- package/lib/types/services/before-close/before-close.service.d.ts +1 -1
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
- package/lib/types/services/confirm/confirm.service.d.ts +1 -1
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +1 -1
- package/lib/types/services/dialog/dialog.service.d.ts +1 -1
- package/lib/types/services/editor/editor.service.d.ts +4 -4
- package/lib/types/services/global-zone/global-zone.service.d.ts +1 -1
- package/lib/types/services/layout/layout.service.d.ts +1 -1
- package/lib/types/services/local-file/desktop-file-opener.service.d.ts +15 -0
- package/lib/types/services/local-file/file-opener.service.d.ts +27 -0
- package/lib/types/services/menu/menu-manager.service.d.ts +44 -0
- package/lib/types/services/menu/menu.d.ts +11 -9
- package/lib/types/services/menu/menu.service.d.ts +9 -3
- package/lib/types/services/menu/types.d.ts +64 -0
- package/lib/types/services/message/message.service.d.ts +1 -1
- package/lib/types/services/notification/notification.service.d.ts +1 -1
- package/lib/types/services/parts/parts.service.d.ts +1 -1
- package/lib/types/services/platform/platform.service.d.ts +1 -1
- package/lib/types/services/popup/canvas-popup.service.d.ts +12 -2
- package/lib/types/services/progress/progress.service.d.ts +1 -1
- package/lib/types/services/range-selector/range-selector.service.d.ts +8 -1
- package/lib/types/services/shortcut/shortcut.service.d.ts +1 -1
- package/lib/types/services/sidebar/sidebar.service.d.ts +2 -2
- package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +6 -1
- package/lib/types/services/zen-zone/zen-zone.service.d.ts +12 -2
- package/lib/types/ui-plugin.d.ts +5 -4
- package/lib/types/views/components/ribbon/Ribbon.d.ts +6 -0
- package/lib/types/views/components/{doc-bars → ribbon}/ToolbarItem.d.ts +4 -1
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +4 -0
- package/lib/types/views/components/{doc-bars → ribbon}/hook.d.ts +0 -8
- package/lib/umd/index.js +10 -10
- package/package.json +19 -19
- package/lib/types/views/components/doc-bars/Toolbar.d.ts +0 -8
- /package/lib/types/views/components/{doc-bars → ribbon}/Button/ToolbarButton.d.ts +0 -0
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-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
|
+
.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-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-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-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))}.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-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-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.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-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}
|
package/lib/locale/en-US.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ribbon": {
|
|
3
3
|
"start": "Start",
|
|
4
4
|
"insert": "Insert",
|
|
5
5
|
"formulas": "Formulas",
|
|
6
6
|
"data": "Data",
|
|
7
7
|
"view": "View",
|
|
8
|
-
"others": "Others"
|
|
8
|
+
"others": "Others",
|
|
9
|
+
"more": "More"
|
|
9
10
|
},
|
|
10
|
-
"more": "More",
|
|
11
11
|
"fontFamily": {
|
|
12
12
|
"TimesNewRoman": "Times New Roman",
|
|
13
13
|
"Arial": "Arial",
|
package/lib/locale/ru-RU.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ribbon": {
|
|
3
3
|
"start": "Начало",
|
|
4
4
|
"insert": "Вставка",
|
|
5
5
|
"formulas": "Формулы",
|
|
6
6
|
"data": "Данные",
|
|
7
7
|
"view": "Вид",
|
|
8
|
-
"others": "Другие"
|
|
8
|
+
"others": "Другие",
|
|
9
|
+
"more": "Больше"
|
|
9
10
|
},
|
|
10
|
-
"more": "Больше",
|
|
11
11
|
"fontFamily": {
|
|
12
12
|
"TimesNewRoman": "Times New Roman",
|
|
13
13
|
"Arial": "Arial",
|
package/lib/locale/vi-VN.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ribbon": {
|
|
3
3
|
"start": "Bắt đầu",
|
|
4
4
|
"insert": "Chèn",
|
|
5
5
|
"formulas": "Công thức",
|
|
6
6
|
"data": "Dữ liệu",
|
|
7
7
|
"view": "Xem",
|
|
8
|
-
"others": "Khác"
|
|
8
|
+
"others": "Khác",
|
|
9
|
+
"more": "Thêm"
|
|
9
10
|
},
|
|
10
|
-
"more": "Thêm",
|
|
11
11
|
"fontFamily": {
|
|
12
12
|
"TimesNewRoman": "Times New Roman",
|
|
13
13
|
"Arial": "Arial",
|
package/lib/locale/zh-CN.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ribbon": {
|
|
3
3
|
"start": "开始",
|
|
4
4
|
"insert": "插入",
|
|
5
5
|
"formulas": "公式",
|
|
6
6
|
"data": "数据",
|
|
7
7
|
"view": "视图",
|
|
8
|
-
"others": "其他"
|
|
8
|
+
"others": "其他",
|
|
9
|
+
"more": "更多"
|
|
9
10
|
},
|
|
10
|
-
"more": "更多",
|
|
11
11
|
"fontFamily": {
|
|
12
12
|
"TimesNewRoman": "Times New Roman",
|
|
13
13
|
"Arial": "Arial",
|
package/lib/locale/zh-TW.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ribbon": {
|
|
3
3
|
"start": "開始",
|
|
4
4
|
"insert": "插入",
|
|
5
5
|
"formulas": "公式",
|
|
6
6
|
"data": "資料",
|
|
7
7
|
"view": "視圖",
|
|
8
|
-
"others": "其他"
|
|
8
|
+
"others": "其他",
|
|
9
|
+
"more": "更多"
|
|
9
10
|
},
|
|
10
|
-
"more": "更多",
|
|
11
11
|
"fontFamily": {
|
|
12
12
|
"TimesNewRoman": "Times New Roman",
|
|
13
13
|
"Arial": "Arial",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IAccessor, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType): Observable<boolean>;
|
|
3
|
+
export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType, matchUnitId?: string): Observable<boolean>;
|
|
4
4
|
export declare function getHeaderFooterMenuHiddenObservable(accessor: IAccessor): Observable<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDocumentData, Nullable } from '@univerjs/core';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IDocumentData, Nullable } from '@univerjs/core';
|
|
3
3
|
import { IEditorCanvasStyle } from '../../services/editor/editor.service';
|
|
4
4
|
type MyComponentProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
5
5
|
export interface ITextEditorProps {
|
|
@@ -25,6 +25,7 @@ export interface ITextEditorProps {
|
|
|
25
25
|
onValid?: (state: boolean) => void;
|
|
26
26
|
placeholder?: string;
|
|
27
27
|
isValueValid?: boolean;
|
|
28
|
+
disbaled?: boolean;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* The component to render toolbar item label and menu item label.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function useEvent<T extends (...params: any[]) => any>(func: T): T;
|
|
16
|
+
export declare function useEvent<T extends (...params: any[]) => any>(func: T | undefined): T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IValueOption } from '../../../services/menu/menu
|
|
2
|
+
import { IValueOption } from '../../../services/menu/menu';
|
|
3
3
|
export interface IBaseMenuProps {
|
|
4
4
|
parentKey?: string | number;
|
|
5
|
-
menuType?: string
|
|
5
|
+
menuType?: string;
|
|
6
6
|
value?: string | number;
|
|
7
7
|
options?: IValueOption[];
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IUnitRangeWithName, Nullable } from '@univerjs/core';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IUnitRangeWithName, Nullable } from '@univerjs/core';
|
|
3
3
|
export interface IRangeSelectorProps {
|
|
4
4
|
id: string;
|
|
5
5
|
value?: string;
|
|
@@ -15,5 +15,7 @@ export interface IRangeSelectorProps {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
className?: string;
|
|
17
17
|
textEditorClassName?: string;
|
|
18
|
+
onSelectorVisibleChange?: (visible: boolean) => void;
|
|
19
|
+
disableInput?: boolean;
|
|
18
20
|
}
|
|
19
21
|
export declare function RangeSelector(props: IRangeSelectorProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DependencyOverride } from '@univerjs/core';
|
|
2
|
+
import { MenuConfig } from '../services/menu/menu';
|
|
3
|
+
import { IWorkbenchOptions } from './ui/ui.controller';
|
|
4
|
+
export declare const PLUGIN_CONFIG_KEY = "ui.config";
|
|
5
|
+
export declare const configSymbol: unique symbol;
|
|
6
|
+
export interface IUniverUIConfig extends IWorkbenchOptions {
|
|
7
|
+
/** Disable auto focus when Univer bootstraps. */
|
|
8
|
+
disableAutoFocus?: true;
|
|
9
|
+
override?: DependencyOverride;
|
|
10
|
+
menu?: MenuConfig;
|
|
11
|
+
}
|
|
12
|
+
export declare const defaultPluginConfig: IUniverUIConfig;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
2
|
-
import { IMenuService } from '../services/menu/menu.service';
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
3
2
|
import { IShortcutItem, IShortcutService } from '../services/shortcut/shortcut.service';
|
|
4
|
-
import { IUniverUIConfig } from './ui/ui.controller';
|
|
5
3
|
export declare const CopyShortcutItem: IShortcutItem;
|
|
6
4
|
export declare const CutShortcutItem: IShortcutItem;
|
|
7
5
|
/**
|
|
@@ -14,14 +12,10 @@ export declare const RedoShortcutItem: IShortcutItem;
|
|
|
14
12
|
* Define shared UI behavior across Univer business. Including undo / redo and clipboard operations.
|
|
15
13
|
*/
|
|
16
14
|
export declare class SharedController extends Disposable {
|
|
17
|
-
private readonly _config;
|
|
18
|
-
private readonly _injector;
|
|
19
|
-
private readonly _menuService;
|
|
20
15
|
private readonly _shortcutService;
|
|
21
16
|
private readonly _commandService;
|
|
22
|
-
constructor(
|
|
17
|
+
constructor(_shortcutService: IShortcutService, _commandService: ICommandService);
|
|
23
18
|
initialize(): void;
|
|
24
|
-
private _registerMenus;
|
|
25
19
|
private _registerCommands;
|
|
26
20
|
private _registerShortcuts;
|
|
27
21
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager } from '../../common/component-manager';
|
|
3
|
-
import { IMenuService } from '../../services/menu/menu.service';
|
|
4
3
|
import { IShortcutService } from '../../services/shortcut/shortcut.service';
|
|
5
|
-
import {
|
|
4
|
+
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
6
5
|
/**
|
|
7
6
|
* This controller add a side panel to the application to display the shortcuts.
|
|
8
7
|
*/
|
|
9
8
|
export declare class ShortcutPanelController extends Disposable {
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(
|
|
9
|
+
private readonly _menuManagerService;
|
|
10
|
+
constructor(injector: Injector, componentManager: ComponentManager, shortcutService: IShortcutService, _menuManagerService: IMenuManagerService, commandService: ICommandService);
|
|
12
11
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { ILayoutService } from '../../services/layout/layout.service';
|
|
4
4
|
import { IUIPartsService } from '../../services/parts/parts.service';
|
|
5
|
-
import { IUniverUIConfig } from '
|
|
5
|
+
import { IUniverUIConfig } from '../config.schema';
|
|
6
|
+
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
6
7
|
export declare class DesktopUIController extends Disposable {
|
|
7
8
|
private readonly _config;
|
|
8
9
|
private readonly _renderManagerService;
|
|
@@ -10,10 +11,12 @@ export declare class DesktopUIController extends Disposable {
|
|
|
10
11
|
private readonly _injector;
|
|
11
12
|
private readonly _lifecycleService;
|
|
12
13
|
private readonly _uiPartsService;
|
|
13
|
-
private readonly
|
|
14
|
+
private readonly _menuManagerService;
|
|
14
15
|
private readonly _layoutService?;
|
|
15
16
|
private _steadyTimeout;
|
|
16
|
-
|
|
17
|
+
private _renderTimeout;
|
|
18
|
+
constructor(_config: IUniverUIConfig, _renderManagerService: IRenderManagerService, _instanceSrv: IUniverInstanceService, _injector: Injector, _lifecycleService: LifecycleService, _uiPartsService: IUIPartsService, _menuManagerService: IMenuManagerService, _layoutService?: ILayoutService | undefined);
|
|
19
|
+
private _initMenus;
|
|
17
20
|
private _bootstrapWorkbench;
|
|
18
21
|
private _initBuiltinComponents;
|
|
19
22
|
}
|
|
@@ -2,7 +2,9 @@ import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '
|
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { ILayoutService } from '../../services/layout/layout.service';
|
|
4
4
|
import { IUIPartsService } from '../../services/parts/parts.service';
|
|
5
|
-
import {
|
|
5
|
+
import { IUniverUIConfig } from '../config.schema';
|
|
6
|
+
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
7
|
+
import { IUIController } from './ui.controller';
|
|
6
8
|
export declare class MobileUIController extends Disposable implements IUIController {
|
|
7
9
|
private readonly _config;
|
|
8
10
|
private readonly _instanceService;
|
|
@@ -10,8 +12,10 @@ export declare class MobileUIController extends Disposable implements IUIControl
|
|
|
10
12
|
private readonly _injector;
|
|
11
13
|
private readonly _lifecycleService;
|
|
12
14
|
private readonly _uiPartsService;
|
|
15
|
+
private readonly _menuManagerService;
|
|
13
16
|
private readonly _layoutService?;
|
|
14
|
-
constructor(_config: IUniverUIConfig, _instanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _injector: Injector, _lifecycleService: LifecycleService, _uiPartsService: IUIPartsService, _layoutService?: ILayoutService | undefined);
|
|
17
|
+
constructor(_config: IUniverUIConfig, _instanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _injector: Injector, _lifecycleService: LifecycleService, _uiPartsService: IUIPartsService, _menuManagerService: IMenuManagerService, _layoutService?: ILayoutService | undefined);
|
|
18
|
+
private _initMenus;
|
|
15
19
|
private _bootstrapWorkbench;
|
|
16
20
|
private _initBuiltinComponents;
|
|
17
21
|
}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
*/
|
|
3
16
|
export interface IWorkbenchOptions {
|
|
4
17
|
container?: string | HTMLElement;
|
|
5
18
|
header?: boolean;
|
|
@@ -9,11 +22,4 @@ export interface IWorkbenchOptions {
|
|
|
9
22
|
}
|
|
10
23
|
export interface IUIController {
|
|
11
24
|
}
|
|
12
|
-
export declare const IUIController: import('@
|
|
13
|
-
export interface IUniverUIConfig extends IWorkbenchOptions {
|
|
14
|
-
/** Disable auto focus when Univer bootstraps. */
|
|
15
|
-
disableAutoFocus?: true;
|
|
16
|
-
override?: DependencyOverride;
|
|
17
|
-
menu?: MenuConfig;
|
|
18
|
-
}
|
|
19
|
-
export declare const UI_CONFIG_KEY = "UNIVER_UI_CONFIG_KEY";
|
|
25
|
+
export declare const IUIController: import('@wendellhu/redi').IdentifierDecorator<IUIController>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,17 +13,30 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';
|
|
17
|
+
export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
|
|
16
18
|
export * from './common';
|
|
17
|
-
export {
|
|
19
|
+
export { getHeaderFooterMenuHiddenObservable, getMenuHiddenObservable } from './common/menu-hidden-observable';
|
|
20
|
+
export { mergeMenuConfigs } from './common/menu-merge-configs';
|
|
18
21
|
export * from './components';
|
|
22
|
+
export { TextEditor } from './components/editor/TextEditor';
|
|
23
|
+
export { useEvent } from './components/hooks/event';
|
|
19
24
|
export { t } from './components/hooks/locale';
|
|
20
25
|
export { useObservable } from './components/hooks/observable';
|
|
21
|
-
export { useEvent } from './components/hooks/event';
|
|
22
26
|
export { useVirtualList } from './components/hooks/virtual-list';
|
|
27
|
+
export { Menu } from './components/menu/desktop/Menu';
|
|
28
|
+
export { type INotificationOptions, type NotificationType } from './components/notification/Notification';
|
|
29
|
+
export { ProgressBar } from './components/progress-bar/ProgressBar';
|
|
30
|
+
export { RangeSelector } from './components/range-selector/RangeSelector';
|
|
31
|
+
export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';
|
|
32
|
+
export { type IUniverUIConfig } from './controllers/config.schema';
|
|
33
|
+
export { ErrorController } from './controllers/error/error.controller';
|
|
34
|
+
export { menuSchema } from './controllers/menus/menu.schema';
|
|
23
35
|
export { CopyShortcutItem, CutShortcutItem, RedoShortcutItem, SharedController, UndoShortcutItem, } from './controllers/shared-shortcut.controller';
|
|
24
|
-
export {
|
|
36
|
+
export { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';
|
|
37
|
+
export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
|
|
25
38
|
export { DesktopUIController } from './controllers/ui/ui-desktop.controller';
|
|
26
|
-
export {
|
|
39
|
+
export { UniverMobileUIPlugin } from './mobile-ui-plugin';
|
|
27
40
|
export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
|
|
28
41
|
export { CopyCommand, CutCommand, PasteCommand } from './services/clipboard/clipboard.command';
|
|
29
42
|
export { BrowserClipboardService, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, } from './services/clipboard/clipboard-interface.service';
|
|
@@ -31,58 +44,51 @@ export { IConfirmService } from './services/confirm/confirm.service';
|
|
|
31
44
|
export { DesktopConfirmService } from './services/confirm/desktop-confirm.service';
|
|
32
45
|
export { ContextMenuService, type IContextMenuHandler, IContextMenuService, } from './services/contextmenu/contextmenu.service';
|
|
33
46
|
export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
|
|
34
|
-
export { type IDialogPartMethodOptions } from './views/components/dialog-part/interface';
|
|
35
47
|
export { IDialogService } from './services/dialog/dialog.service';
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
48
|
+
export { CanvasFloatDomService, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
|
|
49
|
+
export { Editor, EditorService, IEditorService } from './services/editor/editor.service';
|
|
50
|
+
export { DesktopGlobalZoneService } from './services/global-zone/desktop-global-zone.service';
|
|
51
|
+
export { IGlobalZoneService } from './services/global-zone/global-zone.service';
|
|
52
|
+
export { DesktopLayoutService, ILayoutService } from './services/layout/layout.service';
|
|
53
|
+
export { ILocalFileService, type IOpenFileOptions } from './services/local-file/file-opener.service';
|
|
54
|
+
export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
|
|
55
|
+
export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem, type IMenuItem, type IMenuItemFactory, type IMenuSelectorItem, type IValueOption, type MenuConfig, MenuGroup, type MenuItemDefaultValueType, MenuItemType, MenuPosition, } from './services/menu/menu';
|
|
56
|
+
export { IMenuService, MenuService } from './services/menu/menu.service';
|
|
57
|
+
export { IMenuManagerService, MenuManagerService, type MenuSchemaType } from './services/menu/menu-manager.service';
|
|
58
|
+
export { type IMenuSchema } from './services/menu/menu-manager.service';
|
|
59
|
+
export { ContextMenuGroup, ContextMenuPosition, MenuManagerPosition, RibbonDataGroup, RibbonFormulasGroup, RibbonInsertGroup, RibbonOthersGroup, RibbonPosition, RibbonStartGroup, RibbonViewGroup, } from './services/menu/types';
|
|
39
60
|
export { DesktopMessageService } from './services/message/desktop-message.service';
|
|
40
61
|
export { IMessageService } from './services/message/message.service';
|
|
41
62
|
export { DesktopNotificationService } from './services/notification/desktop-notification.service';
|
|
42
|
-
export { type NotificationType, type INotificationOptions } from './components/notification/Notification';
|
|
43
63
|
export { INotificationService } from './services/notification/notification.service';
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
64
|
+
export { BuiltInUIPart, IUIPartsService, UIPartsService } from './services/parts/parts.service';
|
|
65
|
+
export { IPlatformService, PlatformService } from './services/platform/platform.service';
|
|
66
|
+
export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
|
|
67
|
+
export { type IProgressCount, IProgressService, type IProgressStep, ProgressService } from './services/progress/progress.service';
|
|
68
|
+
export { type IRangeSelectorRange, IRangeSelectorService, RangeSelectorService } from './services/range-selector/range-selector.service';
|
|
47
69
|
export { KeyCode, MetaKeys } from './services/shortcut/keycode';
|
|
48
|
-
export {
|
|
70
|
+
export { type IShortcutItem, IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
|
|
71
|
+
export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
|
|
49
72
|
export { DesktopSidebarService } from './services/sidebar/desktop-sidebar.service';
|
|
50
|
-
export {
|
|
73
|
+
export { ILeftSidebarService, ISidebarService } from './services/sidebar/sidebar.service';
|
|
74
|
+
export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';
|
|
51
75
|
export { IZenZoneService } from './services/zen-zone/zen-zone.service';
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
76
|
+
export { DISABLE_AUTO_FOCUS_KEY, UniverUIPlugin } from './ui-plugin';
|
|
77
|
+
export { UNIVER_UI_PLUGIN_NAME } from './ui-plugin';
|
|
54
78
|
export * from './utils';
|
|
55
|
-
export {
|
|
79
|
+
export { ComponentContainer, type IComponentContainerProps, useComponentsOfPart } from './views/components/ComponentContainer';
|
|
56
80
|
export { type IConfirmPartMethodOptions } from './views/components/confirm-part/interface';
|
|
57
|
-
export { ComponentContainer, useComponentsOfPart, type IComponentContainerProps } from './views/components/ComponentContainer';
|
|
58
|
-
export { IEditorService, EditorService, Editor } from './services/editor/editor.service';
|
|
59
|
-
export { TextEditor } from './components/editor/TextEditor';
|
|
60
|
-
export { RangeSelector } from './components/range-selector/RangeSelector';
|
|
61
|
-
export { ProgressBar } from './components/progress-bar/ProgressBar';
|
|
62
|
-
export { type IMenuGroup, useSimpleToolbarGroups, useToolbarGroups, useToolbarItemStatus, useToolbarCollapseObserver } from './views/components/doc-bars/hook';
|
|
63
|
-
export { mergeMenuConfigs } from './common/menu-merge-configs';
|
|
64
|
-
export { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';
|
|
65
|
-
export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
|
|
66
|
-
export { IProgressService, type IProgressCount, type IProgressStep, ProgressService } from './services/progress/progress.service';
|
|
67
|
-
export { type IRangeSelectorRange, IRangeSelectorService, RangeSelectorService } from './services/range-selector/range-selector.service';
|
|
68
|
-
export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
|
|
69
|
-
export { UNIVER_UI_PLUGIN_NAME } from './ui-plugin';
|
|
70
|
-
export { ErrorController } from './controllers/error/error.controller';
|
|
71
|
-
export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';
|
|
72
|
-
export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
|
|
73
|
-
export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';
|
|
74
|
-
export { GlobalZone } from './views/components/global-zone/GlobalZone';
|
|
75
|
-
export { builtInGlobalComponents } from './views/parts';
|
|
76
81
|
export { DesktopContextMenu as ContextMenu } from './views/components/context-menu/ContextMenu';
|
|
77
|
-
export {
|
|
82
|
+
export { MobileContextMenu } from './views/components/context-menu/MobileContextMenu';
|
|
83
|
+
export { type IDialogPartMethodOptions } from './views/components/dialog-part/interface';
|
|
84
|
+
export { FloatDom } from './views/components/dom/FloatDom';
|
|
85
|
+
export { GlobalZone } from './views/components/global-zone/GlobalZone';
|
|
86
|
+
export { CanvasPopup } from './views/components/popup/CanvasPopup';
|
|
87
|
+
export { ToolbarButton } from './views/components/ribbon/Button/ToolbarButton';
|
|
88
|
+
export { type IMenuGroup, useSimpleToolbarGroups, useToolbarGroups, useToolbarItemStatus } from './views/components/ribbon/hook';
|
|
89
|
+
export { Ribbon } from './views/components/ribbon/Ribbon';
|
|
90
|
+
export { ToolbarItem } from './views/components/ribbon/ToolbarItem';
|
|
78
91
|
export { type ISidebarMethodOptions } from './views/components/sidebar/interface';
|
|
92
|
+
export { Sidebar } from './views/components/sidebar/Sidebar';
|
|
79
93
|
export { ZenZone } from './views/components/zen-zone/ZenZone';
|
|
80
|
-
export {
|
|
81
|
-
export { CanvasFloatDomService, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
|
|
82
|
-
export { FloatDom } from './views/components/dom/FloatDom';
|
|
83
|
-
export { MobileContextMenu } from './views/components/context-menu/MobileContextMenu';
|
|
84
|
-
export { Toolbar } from './views/components/doc-bars/Toolbar';
|
|
85
|
-
export { ToolbarItem } from './views/components/doc-bars/ToolbarItem';
|
|
86
|
-
export { ToolbarButton } from './views/components/doc-bars/Button/ToolbarButton';
|
|
87
|
-
export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
|
|
88
|
-
export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';
|
|
94
|
+
export { builtInGlobalComponents } from './views/parts';
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
declare const locale: {
|
|
17
|
-
|
|
17
|
+
ribbon: {
|
|
18
18
|
start: string;
|
|
19
19
|
insert: string;
|
|
20
20
|
formulas: string;
|
|
21
21
|
data: string;
|
|
22
22
|
view: string;
|
|
23
23
|
others: string;
|
|
24
|
+
more: string;
|
|
24
25
|
};
|
|
25
|
-
more: string;
|
|
26
26
|
fontFamily: {
|
|
27
27
|
TimesNewRoman: string;
|
|
28
28
|
Arial: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Injector, Plugin } from '@univerjs/core';
|
|
2
|
-
import { IUniverUIConfig } from './controllers/
|
|
2
|
+
import { IUniverUIConfig } from './controllers/config.schema';
|
|
3
3
|
export declare const UNIVER_MOBILE_UI_PLUGIN_NAME = "UNIVER_MOBILE_UI_PLUGIN";
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
*/
|
|
7
7
|
export declare class UniverMobileUIPlugin extends Plugin {
|
|
8
|
-
private _config;
|
|
8
|
+
private readonly _config;
|
|
9
9
|
protected readonly _injector: Injector;
|
|
10
10
|
static pluginName: string;
|
|
11
11
|
constructor(_config: IUniverUIConfig, _injector: Injector);
|
|
@@ -16,7 +16,7 @@ export interface IBeforeCloseService {
|
|
|
16
16
|
*/
|
|
17
17
|
registerOnClose(callback: () => void): IDisposable;
|
|
18
18
|
}
|
|
19
|
-
export declare const IBeforeCloseService: import('@
|
|
19
|
+
export declare const IBeforeCloseService: import('@wendellhu/redi').IdentifierDecorator<IBeforeCloseService>;
|
|
20
20
|
export declare class DesktopBeforeCloseService implements IBeforeCloseService {
|
|
21
21
|
private readonly _notificationService;
|
|
22
22
|
private _beforeUnloadCallbacks;
|
|
@@ -31,7 +31,7 @@ export interface IClipboardInterfaceService {
|
|
|
31
31
|
*/
|
|
32
32
|
readonly supportClipboard: boolean;
|
|
33
33
|
}
|
|
34
|
-
export declare const IClipboardInterfaceService: import('@
|
|
34
|
+
export declare const IClipboardInterfaceService: import('@wendellhu/redi').IdentifierDecorator<IClipboardInterfaceService>;
|
|
35
35
|
export declare class BrowserClipboardService extends Disposable implements IClipboardInterfaceService {
|
|
36
36
|
private readonly _localeService;
|
|
37
37
|
private readonly _logService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDisposable } from '@univerjs/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
|
|
4
|
-
export declare const IConfirmService: import('@
|
|
4
|
+
export declare const IConfirmService: import('@wendellhu/redi').IdentifierDecorator<IConfirmService>;
|
|
5
5
|
export interface IConfirmService {
|
|
6
6
|
readonly confirmOptions$: Subject<IConfirmPartMethodOptions[]>;
|
|
7
7
|
open(params: IConfirmPartMethodOptions): IDisposable;
|
|
@@ -15,7 +15,7 @@ export interface IContextMenuService {
|
|
|
15
15
|
hideContextMenu(): void;
|
|
16
16
|
registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
|
|
17
17
|
}
|
|
18
|
-
export declare const IContextMenuService: import('@
|
|
18
|
+
export declare const IContextMenuService: import('@wendellhu/redi').IdentifierDecorator<IContextMenuService>;
|
|
19
19
|
export declare class ContextMenuService extends Disposable implements IContextMenuService {
|
|
20
20
|
private _currentHandler;
|
|
21
21
|
disabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDisposable } from '@univerjs/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
4
|
-
export declare const IDialogService: import('@
|
|
4
|
+
export declare const IDialogService: import('@wendellhu/redi').IdentifierDecorator<IDialogService>;
|
|
5
5
|
export interface IDialogService {
|
|
6
6
|
open(params: IDialogPartMethodOptions): IDisposable;
|
|
7
7
|
close(id: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentDataModel, IDisposable, IDocumentBody, IDocumentData, IPosition, Nullable
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IRender, ISuccinctDocRangeParam, IRenderManagerService } from '@univerjs/engine-render';
|
|
1
|
+
import { Disposable, IContextService, IUniverInstanceService, DocumentDataModel, IDisposable, IDocumentBody, IDocumentData, IPosition, Nullable } from '@univerjs/core';
|
|
4
2
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
|
+
import { IRenderManagerService, IRender, ISuccinctDocRangeParam } from '@univerjs/engine-render';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
5
|
export interface IEditorStateParam extends Partial<IPosition> {
|
|
6
6
|
visible?: boolean;
|
|
7
7
|
}
|
|
@@ -195,4 +195,4 @@ export declare class EditorService extends Disposable implements IEditorService,
|
|
|
195
195
|
private _getCurrentEditorUnitId;
|
|
196
196
|
private _getBlank;
|
|
197
197
|
}
|
|
198
|
-
export declare const IEditorService: import('@
|
|
198
|
+
export declare const IEditorService: import('@wendellhu/redi').IdentifierDecorator<IEditorService>;
|