@univerjs/ui 0.1.12 → 0.1.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/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-menu-item-no-hover{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-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.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-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-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-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-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-button{display:flex;align-items:center;justify-content:center}.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-menu-item-no-hover{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-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.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-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-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-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-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-button{display:flex;align-items:center;justify-content:center}.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}
@@ -0,0 +1,61 @@
1
+ {
2
+ "uiToolbar": {
3
+ "start": "Start",
4
+ "insert": "Insert",
5
+ "formulas": "Formulas",
6
+ "data": "Data",
7
+ "view": "View",
8
+ "others": "Others"
9
+ },
10
+ "more": "More",
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": "Shortcuts"
31
+ },
32
+ "shortcut": {
33
+ "undo": "Undo",
34
+ "redo": "Redo",
35
+ "cut": "Cut",
36
+ "copy": "Copy",
37
+ "paste": "Paste",
38
+ "shortcut-panel": "Toggle Shortcut Panel"
39
+ },
40
+ "common-edit": "Common Editing Shortcuts",
41
+ "toggle-shortcut-panel": "Toggle Shortcut Panel",
42
+ "clipboard": {
43
+ "authentication": {
44
+ "title": "Permission Denied",
45
+ "content": "Please allow Univer to access your clipboard."
46
+ }
47
+ },
48
+ "textEditor": {
49
+ "formulaError": "Please enter a valid formula, such as =SUM(A1)",
50
+ "rangeError": "Please enter a valid range, such as A1:B10"
51
+ },
52
+ "rangeSelector": {
53
+ "title": "Select a data range",
54
+ "addAnotherRange": "Add range",
55
+ "buttonTooltip": "Select data range",
56
+ "placeHolder": "Select range or enter.",
57
+ "confirm": "Confirm",
58
+ "cancel": "Cancel"
59
+ },
60
+ "global-shortcut": "Global Shortcut"
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": "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": "Ярлыки"
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
+ }
@@ -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
+ }
@@ -24,6 +24,7 @@ export interface ITextEditorProps {
24
24
  onActive?: (state: boolean) => void;
25
25
  onValid?: (state: boolean) => void;
26
26
  placeholder?: string;
27
+ isValueValid?: boolean;
27
28
  }
28
29
  /**
29
30
  * The component to render toolbar item label and menu item label.
@@ -4,6 +4,10 @@ import { Subject } from 'rxjs';
4
4
 
5
5
  export type NotificationType = 'success' | 'info' | 'warning' | 'error';
6
6
  export interface INotificationOptions {
7
+ /**
8
+ * Key of the notification.
9
+ */
10
+ key?: string;
7
11
  /**
8
12
  * Component type, optional success, warning, error
9
13
  */
@@ -35,7 +39,7 @@ export interface INotificationOptions {
35
39
  }
36
40
  export declare const notificationObserver: Subject<INotificationOptions>;
37
41
  export declare const PureContent: (props: INotificationOptions) => React.JSX.Element;
38
- export declare function Notification(): React.JSX.Element;
42
+ export declare function Notification(): React.JSX.Element | null;
39
43
  export declare const notification: {
40
44
  show: (options: INotificationOptions) => void;
41
45
  };
@@ -15,5 +15,6 @@ export interface IRangeSelectorProps {
15
15
  size?: 'mini' | 'small' | 'middle' | 'large';
16
16
  placeholder?: string;
17
17
  className?: string;
18
+ textEditorClassName?: string;
18
19
  }
19
20
  export declare function RangeSelector(props: IRangeSelectorProps): React.JSX.Element;
@@ -2,6 +2,7 @@ import { Disposable, IUniverInstanceService, LifecycleService } from '@univerjs/
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { Injector } from '@wendellhu/redi';
4
4
  import { ILayoutService } from '../../services/layout/layout.service';
5
+ import { IUIPartsService } from '../../services/parts/parts.service';
5
6
  import { IWorkbenchOptions } from './ui.controller';
6
7
 
7
8
  export declare class DesktopUIController extends Disposable {
@@ -9,7 +10,9 @@ export declare class DesktopUIController extends Disposable {
9
10
  private readonly _renderManagerService;
10
11
  private readonly _injector;
11
12
  private readonly _lifecycleService;
13
+ private readonly _uiPartsService;
12
14
  private readonly _layoutService?;
13
- constructor(_instanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _injector: Injector, _lifecycleService: LifecycleService, _layoutService?: ILayoutService | undefined);
15
+ constructor(_instanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _injector: Injector, _lifecycleService: LifecycleService, _uiPartsService: IUIPartsService, _layoutService?: ILayoutService | undefined);
14
16
  bootstrapWorkbench(options: IWorkbenchOptions): void;
17
+ private _initBuiltinComponents;
15
18
  }
@@ -23,7 +23,6 @@ export { CopyShortcutItem, CutShortcutItem, RedoShortcutItem, SharedController,
23
23
  export { IUIController, type IWorkbenchOptions } 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
- export { enUS, zhCN, ruRU } from './locale';
27
26
  export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
28
27
  export { CopyCommand, CutCommand, PasteCommand } from './services/clipboard/clipboard.command';
29
28
  export { BrowserClipboardService, HTML_CLIPBOARD_MIME_TYPE, IClipboardInterfaceService, PLAIN_TEXT_CLIPBOARD_MIME_TYPE, } from './services/clipboard/clipboard-interface.service';
@@ -49,10 +48,10 @@ export { DesktopShortcutService, type IShortcutItem, IShortcutService } from './
49
48
  export { DesktopSidebarService } from './services/sidebar/desktop-sidebar.service';
50
49
  export { ISidebarService } from './services/sidebar/sidebar.service';
51
50
  export { IZenZoneService } from './services/zen-zone/zen-zone.service';
52
- export { ZenZone } from './views/components/zen-zone/ZenZone';
53
51
  export { UniverUIPlugin, DISABLE_AUTO_FOCUS_KEY } from './ui-plugin';
54
52
  export * from './utils';
55
53
  export { type IConfirmPartMethodOptions } from './views/components/confirm-part/interface';
54
+ export { ComponentContainer } from './views/components/ComponentContainer';
56
55
  export { IEditorService, EditorService } from './services/editor/editor.service';
57
56
  export { TextEditor } from './components/editor/TextEditor';
58
57
  export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';
@@ -60,10 +59,15 @@ export { RangeSelector } from './components/range-selector/RangeSelector';
60
59
  export { IRangeSelectorService } from './services/range-selector/range-selector.service';
61
60
  export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
62
61
  export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
63
- export { ContextMenu } from './views/components/context-menu/ContextMenu';
64
- export { CanvasPopup } from './views/components/popup/CanvasPopup';
65
62
  export { ProgressBar } from './components/progress-bar/ProgressBar';
66
63
  export { type IMenuGroup, useToolbarGroups, useToolbarItemStatus, useToolbarCollapseObserver } from './views/components/doc-bars/hook';
67
64
  export { mergeMenuConfigs } from './common/menu-merge-configs';
68
65
  export { IProgressService, ProgressService } from './services/progress/progress.service';
69
66
  export type { IProgressStep } from './services/progress/progress.service';
67
+ export { GlobalZone } from './views/components/global-zone/GlobalZone';
68
+ export { builtInGlobalComponents } from './views/parts';
69
+ export { ContextMenu } from './views/components/context-menu/ContextMenu';
70
+ export { Sidebar } from './views/components/sidebar/Sidebar';
71
+ export { ZenZone } from './views/components/zen-zone/ZenZone';
72
+ export { CanvasPopup } from './views/components/popup/CanvasPopup';
73
+ export { CanvasFloatDomService, type IFloatDomLayout } from './services/dom/canvas-dom-layer.service';
@@ -0,0 +1,31 @@
1
+ import { IPosition } from '@univerjs/core';
2
+ import { Observable } from 'rxjs';
3
+
4
+ export interface IFloatDomLayout extends IPosition {
5
+ rotate: number;
6
+ width: number;
7
+ height: number;
8
+ absolute: {
9
+ left: boolean;
10
+ top: boolean;
11
+ };
12
+ }
13
+ export interface IFloatDom {
14
+ position$: Observable<IFloatDomLayout>;
15
+ id: string;
16
+ componentKey: string | React.ComponentType;
17
+ onPointerMove: (evt: PointerEvent | MouseEvent) => void;
18
+ onPointerDown: (evt: PointerEvent | MouseEvent) => void;
19
+ onPointerUp: (evt: PointerEvent | MouseEvent) => void;
20
+ onWheel: (evt: WheelEvent) => void;
21
+ }
22
+ export declare class CanvasFloatDomService {
23
+ private _domLayerMap;
24
+ private _domLayers$;
25
+ domLayers$: Observable<[string, IFloatDom][]>;
26
+ get domLayers(): [string, IFloatDom][];
27
+ private _notice;
28
+ addFloatDom(item: IFloatDom): void;
29
+ removeFloatDom(id: string): void;
30
+ removeAll(): void;
31
+ }
@@ -1,4 +1,4 @@
1
- import { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
1
+ import { IMessageOptions, IMessageProps } from '@univerjs/design';
2
2
  import { IDisposable } from '@wendellhu/redi';
3
3
  import { IMessageService } from '../message.service';
4
4
 
@@ -6,6 +6,6 @@ import { IMessageService } from '../message.service';
6
6
  * This is a mocked message service for testing purposes.
7
7
  */
8
8
  export declare class MockMessageService implements IMessageService {
9
- show(_options: IMessageMethodOptions & Omit<IMessageProps, 'key'>): IDisposable;
9
+ show(_options: IMessageOptions & Omit<IMessageProps, 'key'>): IDisposable;
10
10
  setContainer(): void;
11
11
  }
@@ -1,10 +1,10 @@
1
- import { IMessageMethodOptions, IMessageProps, Message } from '@univerjs/design';
1
+ import { IMessageOptions, IMessageProps, Message } from '@univerjs/design';
2
2
  import { IDisposable } from '@wendellhu/redi';
3
3
  import { IMessageService } from './message.service';
4
4
 
5
5
  export declare class DesktopMessageService implements IMessageService {
6
- portalContainer: HTMLElement;
7
- message?: Message;
6
+ protected _portalContainer: HTMLElement;
7
+ protected _message?: Message;
8
8
  setContainer(container: HTMLElement): void;
9
- show(options: IMessageMethodOptions & Omit<IMessageProps, 'key'>): IDisposable;
9
+ show(options: IMessageOptions & Omit<IMessageProps, 'key'>): IDisposable;
10
10
  }
@@ -1,8 +1,8 @@
1
- import { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
1
+ import { IMessageOptions } from '@univerjs/design';
2
2
  import { IDisposable } from '@wendellhu/redi';
3
3
 
4
4
  export declare const IMessageService: import('@wendellhu/redi').IdentifierDecorator<IMessageService>;
5
5
  export interface IMessageService {
6
- show(options: IMessageMethodOptions & Omit<IMessageProps, 'key'>): IDisposable;
6
+ show(options: IMessageOptions): IDisposable;
7
7
  setContainer(container: HTMLElement): void;
8
8
  }
@@ -29,6 +29,10 @@ export interface IProgressService {
29
29
  * Interrupt and hide the progress bar directly
30
30
  */
31
31
  stop(): void;
32
+ /**
33
+ * Get the total number of tasks
34
+ */
35
+ getTaskCount(): number;
32
36
  }
33
37
  export declare class ProgressService extends Disposable implements IProgressService, IDisposable {
34
38
  /**
@@ -44,6 +48,7 @@ export declare class ProgressService extends Disposable implements IProgressServ
44
48
  insertTaskCount(count: number): void;
45
49
  complete(): void;
46
50
  stop(): void;
51
+ getTaskCount(): number;
47
52
  private _clear;
48
53
  }
49
54
  export declare const IProgressService: import('@wendellhu/redi').IdentifierDecorator<IProgressService>;
@@ -1,5 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export interface IProps {
4
- }
5
3
  export declare function ContextMenu(): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const FloatDom: () => React.JSX.Element;