@univerjs/sheets-ui 0.5.4 → 0.5.5-nightly.202501201336
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/facade.js +1 -1
- package/lib/cjs/index.js +35 -35
- package/lib/es/facade.js +703 -398
- package/lib/es/index.js +10826 -10436
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/set-selection.command.d.ts +5 -0
- package/lib/types/common/keys.d.ts +1 -0
- package/lib/types/controllers/clipboard/utils.d.ts +0 -11
- package/lib/types/controllers/editor/data-sync.controller.d.ts +3 -1
- package/lib/types/controllers/editor/editing.render-controller.d.ts +3 -4
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +4 -2
- package/lib/types/facade/f-event.d.ts +264 -11
- package/lib/types/facade/f-range.d.ts +18 -0
- package/lib/types/facade/f-univer.d.ts +2 -1
- package/lib/types/facade/f-workbook.d.ts +18 -24
- package/lib/types/facade/f-worksheet.d.ts +26 -5
- package/lib/types/index.d.ts +2 -1
- package/lib/types/services/auto-fill/tools.d.ts +5 -0
- package/lib/types/services/canvas-pop-manager.service.d.ts +41 -6
- package/lib/types/services/clipboard/type.d.ts +60 -4
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +3 -2
- package/lib/types/services/editor-bridge.service.d.ts +3 -1
- package/lib/types/services/hover-manager.service.d.ts +41 -0
- package/lib/types/services/selection/base-selection-render.service.d.ts +4 -0
- package/lib/types/services/selection/selection-control.d.ts +2 -2
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -1
- package/lib/types/views/editor-container/hooks.d.ts +8 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +26 -26
- package/package.json +12 -12
- package/LICENSE +0 -176
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-absolute{position:absolute}.univer-right-0{right:0}.univer-z-\[1001\]{z-index:1001}.univer-m-0{margin:0}.univer-mb-2{margin-bottom:.5rem}.univer-flex{display:flex}.univer-h-full{height:100%}.univer-max-h-\[360px\]{max-height:360px}.univer-w-\[300px\]{width:300px}.univer-w-\[50\%\]{width:50%}.univer-flex-shrink-0{flex-shrink:0}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-list-none{list-style-type:none}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-overflow-y-auto{overflow-y:auto}.univer-text-ellipsis{text-overflow:ellipsis}.univer-whitespace-nowrap{white-space:nowrap}.univer-border{border-width:1px}.univer-border-0{border-width:0px}.univer-border-b{border-bottom-width:1px}.univer-border-solid{border-style:solid}.univer-border-gray-200{--tw-border-opacity: 1;border-color:rgb(227 229 234 / var(--tw-border-opacity, 1))}.univer-bg-transparent{background-color:transparent}.univer-p-0{padding:0}.univer-p-2{padding:.5rem}.univer-px-1{padding-left:.25rem;padding-right:.25rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-semibold{font-weight:600}.univer-text-gray-300{--tw-text-opacity: 1;color:rgb(205 208 216 / var(--tw-text-opacity, 1))}.univer-text-gray-400{--tw-text-opacity: 1;color:rgb(151 157 172 / var(--tw-text-opacity, 1))}.univer-text-gray-600{--tw-text-opacity: 1;color:rgb(65 70 87 / var(--tw-text-opacity, 1))}.univer-text-gray-700{--tw-text-opacity: 1;color:rgb(44 48 64 / var(--tw-text-opacity, 1))}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-200{transition-duration:.2s}.univer-scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.univer-scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.univer-scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.univer-scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.univer-scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.univer-scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.univer-scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.univer-scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.univer-scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.univer-scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.univer-scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.univer-scrollbar-track-transparent{--scrollbar-track: transparent !important}.univer-scrollbar-thumb-gray-300{--scrollbar-thumb: #CDD0D8 !important}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(238 239 241 / var(--tw-bg-opacity, 1))}.hover\:univer-bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\:univer-bg-transparent:hover{background-color:transparent}.dark\:hover\:univer-bg-gray-600:hover:where(.univer-dark,.univer-dark *){--tw-bg-opacity: 1;background-color:rgb(65 70 87 / var(--tw-bg-opacity, 1))}.univer-sheets-ui-context-menu-input{display:flex;gap:var(--margin-sm);align-items:center}.univer-sheets-ui-context-menu-input-container{width:72px}.univer-sheets-ui-context-menu-input-number{height:24px}.univer-ui-plugin-sheets-border-panel{display:grid;gap:var(--margin-sm)}.univer-ui-plugin-sheets-border-panel-position{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--margin-xxs);box-sizing:border-box;padding-bottom:var(--padding-base);border-bottom:1px solid rgb(var(--border-color))}.univer-ui-plugin-sheets-border-panel-position-item{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-ui-plugin-sheets-border-panel-position-item:hover,.univer-ui-plugin-sheets-border-panel-position-item-active{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-styles{display:flex;gap:var(--margin-xs);align-items:center;justify-content:space-around}.univer-ui-plugin-sheets-border-panel-board{box-sizing:border-box;padding:var(--padding-base);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-ui-plugin-sheets-border-panel-button{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);transition:all .15s}.univer-ui-plugin-sheets-border-panel-button:hover{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-more-icon{color:rgb(var(--grey-400))}.univer-defined-name{display:flex;position:relative;transition:height .15s;border-right:1px solid rgb(var(--border-color));height:100%;width:100px;box-sizing:border-box}.univer-defined-name-overlay{position:relative;width:300px;background-color:rgb(var(--color-white))}.univer-defined-name-overlay-container{position:relative;height:100%;max-height:400px;width:100%;overflow:hidden;overflow-y:auto;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-defined-name-overlay-item{display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:1px solid rgb(var(--border-color));-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.univer-defined-name-overlay-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-item-name{font-size:var(--font-size-md);color:rgb(var(--grey-900));margin:5px 0;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:5px;font-weight:400}.univer-defined-name-overlay-item-formula{font-size:var(--font-size-xs);color:rgb(var(--grey-800));margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-manager{display:flex;flex-direction:column;overflow-y:auto;width:100%;cursor:pointer;overflow:hidden;background-color:rgb(var(--color-white))}.univer-defined-name-overlay-manager:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-manager-title{font-size:var(--font-size-xs);font-weight:700;margin:var(--margin-xs);margin-bottom:0;color:rgb(var(--grey-800))}.univer-defined-name-overlay-manager-content{font-size:var(--font-size-xxs);margin:var(--margin-xs);color:rgb(var(--grey-500))}.univer-defined-name-container{width:100%;position:relative}.univer-defined-name-container-scroll{width:100%;overflow:hidden;overflow-y:auto;position:absolute}.univer-defined-name-container-addButton{display:flex;align-items:center;justify-content:center;width:100%;height:40px;border-top:1px solid rgb(var(--border-color));border-bottom:1px solid rgb(var(--border-color));font-size:var(--font-size-md);color:rgb(var(--primary-color))}.univer-defined-name-container-addButton:hover{background-color:rgb(var(--grey-50));cursor:pointer}.univer-defined-name-container-addButton-text{margin-left:5px}.univer-defined-name-container-item{position:relative;display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:1px solid rgb(var(--border-color));-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.univer-defined-name-container-item-name{font-size:var(--font-size-sm);font-weight:500;color:rgb(var(--color-black));margin:5px 0;max-width:190px;max-height:100px;overflow:hidden}.univer-defined-name-container-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:5px;font-weight:400}.univer-defined-name-container-item-formula-or-refString{font-size:var(--font-size-xs);color:rgb(var(--grey-500));font-weight:400;margin:5px 0;max-height:100px;text-overflow:ellipsis;overflow:hidden}.univer-defined-name-container-item-update{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--primary-color));cursor:pointer;padding:4px;transform:translateY(-50%);border-radius:var(--border-radius-base);right:60px;top:20px}.univer-defined-name-container-item-update:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-delete{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--error-color));cursor:pointer;padding:4px;right:20px;top:20px;transform:translateY(-50%);border-radius:var(--border-radius-base)}.univer-defined-name-container-item-delete:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-show{display:none}.univer-defined-name-container-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-container-item:hover .univer-defined-name-container-item-show{display:block}.univer-defined-name-input{display:flex;align-items:center;justify-content:left;border-bottom:1px solid rgb(var(--border-color));padding-bottom:5px}.univer-defined-name-input>div{margin-top:16px}.univer-defined-name-input-formula-selector-text-wrap{margin-top:16px;height:100%;position:relative;padding:0 0 0 6px;border:1px solid rgb(var(--border-color));transition:all .15s;border-radius:var(--border-radius-base)}.univer-defined-name-input-text-editor-container{position:relative;width:95%;height:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.univer-defined-name-input-validation{display:flex;align-items:center;justify-content:left;color:rgb(var(--error-color));font-size:var(--font-size-xs)}.univer-defined-name-input-validation>span{margin-right:2px}.univer-defined-name-input-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-count-bar{display:flex;flex:0 0 260px;justify-content:flex-end}.univer-editor-container{position:absolute;z-index:10;top:200px;left:100px;display:flex;width:100px;height:50px;border:1px solid rgb(var(--primary-color));box-shadow:none;box-sizing:content-box}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%}.univer-editor-container .univer-editor-input canvas{position:absolute}.univer-formula-box{display:flex;box-sizing:border-box;height:28px;background:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));transition:height .15s}.univer-formula-box .univer-name-ranges{box-sizing:border-box;width:100px;height:100%;position:relative}.univer-formula-box .univer-formula-bar{display:flex;width:100%;height:100%}.univer-formula-box .univer-formula-bar .univer-formula-icon{padding:6px 0}.univer-formula-box .univer-formula-bar .univer-formula-icon-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:100%;font-size:var(--font-size-xs);border-right:1px solid rgb(var(--border-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container{display:flex;align-items:center;justify-content:center;padding:var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active{cursor:pointer;color:rgb(var(--success-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active{cursor:pointer;color:rgb(var(--error-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx{cursor:pointer}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-input{overflow:hidden;display:flex;flex:1;width:100%;padding:0 0 0 10px}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-formula-content{position:relative;width:100%;height:100%;word-wrap:break-word;outline:none}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-arrow-container{cursor:pointer;display:flex;align-items:center;justify-content:center;width:20px;height:100%;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary))}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-arrow-container-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-operate-container{position:absolute;z-index:10;right:0;left:0;width:0;height:0}.univer-auto-fill-popup-menu{display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;min-width:128px;margin-top:0;margin-bottom:0;padding:var(--padding-sm);font-size:var(--font-size-base);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-auto-fill-popup-menu li{list-style:none}.univer-auto-fill-popup-menu-item{cursor:pointer;position:relative;display:flex;align-items:center;box-sizing:border-box;width:134px;height:28px;padding:var(--padding-xs) 0 var(--padding-xs) 36px;font-size:13px;font-weight:400;font-style:normal;line-height:20px;color:rgb(var(--black, #35322b));text-align:left;border-radius:4px;border-radius:var(--border-radius-base);transition:background .2s}.univer-auto-fill-popup-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-auto-fill-popup-menu-item-icon{position:absolute;top:50%;left:var(--padding-xs);transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.univer-auto-fill-popup-menu-item-title{padding:var(--padding-xs) var(--padding-xs) var(--padding-xs) 0;vertical-align:middle}.univer-auto-fill-popup-menu-item-hide{color:rgb(var(--text-color-secondary))}.univer-auto-fill-popup-menu-item:hover{background:rgb(var(--grey-100))}.univer-btn-container{display:flex;align-items:center;justify-content:center;padding:3px;background:#fff;border:1px solid rgb(var(--grey-200, #e5e5e5));border-radius:4px}.univer-btn-container:hover,.univer-btn-container.univer-btn-container-expand{background:rgb(var(--grey-100, #f5f5f5))}.univer-sheet-bar{position:relative;display:flex;flex:1 1 0px;flex-direction:row;min-width:calc(100% - 592px);max-width:calc(100% - 260px);height:100%;background-color:rgb(var(--bg-color-secondary))}.univer-sheet-bar-options{display:flex;flex-direction:row;align-items:center;margin:var(--margin-xxs);transition:display .2s}.univer-sheet-bar-options-divider:after{content:"";display:block;width:1px;height:16px;margin:0 var(--margin-xs);background-color:rgb(var(--grey-400))}.univer-sheet-bar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary-darker));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-sheet-bar-btn:not([disabled]):hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-sheet-container{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:36px;padding:0 var(--padding-xl);background-color:rgb(var(--bg-color-secondary))}.univer-sheet-container>span:not(:last-of-type){margin-right:4px}.univer-sheet-bar-menu{max-height:calc(100vh - 36px);display:grid;gap:var(--margin-xxs);align-items:center;overflow-y:auto;box-sizing:border-box;margin:0;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-sheet-bar-menu li{list-style:none}.univer-sheet-bar-menu-item{cursor:pointer;position:relative;display:flex;box-sizing:border-box;padding:var(--padding-xs) 24px;color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-sheet-bar-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-menu-item-icon{position:absolute;top:50%;left:var(--margin-xxs);transform:translateY(-50%);color:transparent}.univer-sheet-bar-menu-item-hide .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:rgb(var(--grey-400))}.univer-sheet-bar-menu-item-select{font-weight:500;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-select .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-label{font-size:var(--font-size-xs);font-weight:400;line-height:20px;display:flex;align-items:center}.univer-slide-tab-bar-container{overflow:hidden;max-width:calc(100% - 112px)}.univer-slide-tab-bar-container .univer-slide-tab-bar{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;display:flex;flex-direction:row;align-items:center;padding:var(--padding-xs) 6px;transition:box-shadow .2s}.univer-slide-tab-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:row;flex-grow:1;align-items:center;box-sizing:border-box;margin:0 var(--margin-xxs);font-size:var(--font-size-xs);line-height:16px;color:rgb(var(--grey-1000));border-radius:var(--border-radius-base)}.univer-slide-tab-item:not(.univer-slide-tab-active):hover{background-color:rgb(var(--bg-color-hover))}.univer-slide-tab-item .univer-slide-tab-div{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);white-space:nowrap;border:2px solid transparent;border-radius:var(--border-radius-base);display:flex;align-items:center}.univer-slide-tab-item .univer-slide-tab-div-edit{cursor:text;outline:none}.univer-slide-tab-item .univer-slide-tab-div-edit::-moz-selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-slide-tab-item .univer-slide-tab-div-edit::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-slide-tab-active{font-weight:700;color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary));box-shadow:0 0 8px #00000014;transition:box-shadow .2s;display:flex;justify-content:center}.univer-slide-tab-item-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:auto!important}.univer-status-bar{display:flex;align-items:center;max-width:332px}.univer-status-bar.univer-single-mode{max-width:136px}.univer-status-bar-div{width:1px;height:16px;margin-left:10px;background:rgb(var(--grey-400, #ccc))}.univer-statistic-list{display:flex}.univer-statistic-list-column{flex-direction:column}.univer-statistic-list-column .univer-statistic-item{font-size:12px;line-height:140%;color:rgb(var(--grey-500))}.univer-statistic-item{cursor:default;overflow:hidden;display:flex;justify-content:flex-start;max-width:106px;margin-right:8px;font-size:var(--font-size-xxs);font-weight:400;font-style:normal;line-height:20px;color:rgb(var(--grey-900));text-align:center;text-overflow:ellipsis;white-space:nowrap}.univer-statistic-item:hover{color:rgb(var(--color-black))}.univer-statistic-picker{display:grid;gap:var(--margin-sm);align-items:center;box-sizing:border-box;width:196px;padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--color-white));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-statistic-picker-item{display:flex;align-items:center;justify-content:flex-start}.univer-statistic-more{transform:rotate(90deg);display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:12px;color:rgb(var(--grey-600, #e8e8e8));border-radius:4px}.univer-statistic-more:hover{background:rgb(var(--grey-300, #e8e8e8))}.univer-cell-alert{box-sizing:border-box;box-shadow:var(--box-shadow-base);padding:var(--padding-sm) var(--padding-base);border-radius:var(--border-radius-lg);color:rgba(var(--color-black));background:rgba(var(--color-white));z-index:100;width:156px}.univer-cell-alert-title{height:20px;font-size:var(--font-size-sm);font-weight:500;display:flex;flex-direction:row;align-items:center;margin-bottom:6px;line-height:20px}.univer-cell-alert-icon{margin-right:6px}.univer-cell-alert-icon-error{color:rgba(var(--red-400))}.univer-cell-alert-icon-info{color:rgba(var(--blue-500))}.univer-cell-alert-icon-warning{color:rgba(var(--gold-400))}.univer-cell-alert-content{font-size:var(--font-size-sm)}.univer-sheet-paste-options-wrapper{position:absolute;display:flex;background-color:#fff;z-index:10;border-radius:4px}.univer-sheet-paste-options-icon-wrapper{display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid rgb(var(--grey-200, #e5e5e5));border-radius:4px;padding:3px}.univer-sheet-paste-options-menu{border:1px solid rgb(var(--grey-200, #e5e5e5));box-shadow:var(--box-shadow-base);border-radius:4px}.univer-sheet-paste-options-menu ul{list-style-type:none;padding:0;margin:8px}.univer-sheet-paste-options-menu-item{padding:8px 4px;cursor:pointer;position:relative}.univer-sheet-paste-options-menu-item:hover{background-color:rgb(var(--grey-100, #f5f5f5))}.univer-sheet-paste-options-menu-item-title{font-size:13px;color:rgb(var(--black, #35322b));margin-left:20px}.univer-sheet-paste-options-menu-item-icon{position:absolute}.univer-mobile-sheet-bar-container{width:100%;overflow-x:scroll;height:32px;background-color:rgb(var(--bg-color))}.univer-mobile-sheet-bar-slider{display:flex;flex-wrap:nowrap;align-items:center;height:32px}.univer-mobile-sheet-bar-item{align-items:center;box-sizing:border-box;flex-grow:1;flex-shrink:0;flex-wrap:nowrap;font-size:12px;height:100%;line-height:28px;min-width:48px;overflow:hidden;padding:2px 4px;text-align:center;white-space:nowrap;border-right:1px solid rgb(var(--border-color));background-color:rgb(var(--bg-color));text-overflow:ellipsis;max-width:120px}.univer-mobile-sheet-bar-item.univer-mobile-sheet-bar-item-activated{color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary))}.univer-permission-panel-detail-wrapper{margin-top:16px;height:calc(100% - 16px);display:flex;flex-direction:column}.univer-radio-group-vertical{display:flex;flex-direction:column;font-weight:400}.univer-sheet-permission-design-person-panel{height:270px;border:1px solid rgb(var(--grey-200));border-radius:var(--border-radius-lg);padding:var(--padding-base);margin-bottom:var(--margin-xs);display:flex;flex-direction:column}.univer-sheet-permission-design-person-panel-header{display:flex;justify-content:space-between;align-items:center}.univer-sheet-permission-design-person-panel-header-add{cursor:pointer;color:rgb(var(--blue-500))}.univer-sheet-permission-design-person-panel-split{height:1px;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-design-person-panel-content-item{height:28px;line-height:28px;margin-bottom:var(--margin-sm);display:flex;align-items:center}.univer-sheet-permission-design-person-panel-content-item:last-child{margin-bottom:0}.univer-sheet-permission-design-person-panel-content-item-name{width:130px;color:rgb(var(--color-black));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:6px}.univer-sheet-permission-design-person-panel-content-item-select{width:90px;cursor:pointer}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-single:not(.univer-select-customize-input) .univer-select-selector{border:none;padding:0;color:rgb(var(--grey-900))}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-show-arrow .univer-select-arrow{right:0}.univer-sheet-permission-design-person-panel-content{flex:1}.univer-sheet-permission-panel-title{font-weight:500}.univer-sheet-permission-panel-footer{display:flex;flex-direction:row-reverse;padding:20px 0;margin-top:auto}.univer-sheet-permission-panel-footer button:first-child{margin-left:8px}.univer-permission-range-selector{font-weight:400}.univer-permission-range-selector-error,.univer-sheet-permission-panel-name-input-error,.univer-permission-range-selector-error:hover,.univer-sheet-permission-panel-name-input-error:hover{border:1px solid rgb(var(--red-400))}.univer-permission-range-selector-error-text,.univer-sheet-permission-panel-name-input-error-text{height:20px;line-height:20px;color:rgb(var(--red-400));font-size:var(--font-size-xs);font-weight:400}.univer-sheet-permission-list-panel-wrapper{margin-top:var(--margin-xs);height:calc(100% - 8px);display:flex;flex-direction:column}.univer-sheet-permission-list-panel-header{display:flex;padding:var(--padding-sm) 0;height:30px}.univer-sheet-permission-list-panel-header-type{display:flex;flex-direction:column;align-items:center;margin-right:var(--margin-lg);cursor:pointer}.univer-sheet-permission-list-panel-header-type div{height:24px;line-height:24px}.univer-sheet-permission-list-panel-header-type-bottom{height:2px;width:24px;background-color:rgb(var(--blue-500));margin-top:var(--margin-xxs)}.univer-sheet-permission-list-panel-header-select{color:rgb(var(--blue-500));height:24px;line-height:24px;font-size:var(--font-size-lg);font-weight:500}.univer-sheet-permission-list-item-header-icon{border-radius:var(--border-radius-base);height:24px;padding:4px;box-sizing:border-box}.univer-sheet-permission-list-item-header-icon:hover{background-color:rgb(var(--grey-200))}.univer-sheet-permission-list-item{margin-top:var(--margin-sm);border-radius:var(--border-radius-lg);border:1px solid rgb(var(--grey-200));padding:var(--padding-base)}.univer-sheet-permission-list-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-list-item-header{height:20px;line-height:20px;display:flex;justify-content:space-between}.univer-sheet-permission-list-item-header-name{font-weight:500;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-list-item-header-operator{display:flex;align-items:center}.univer-sheet-permission-list-item-header-operator div{margin-left:var(--margin-xs)}.univer-sheet-permission-list-item-split{height:1px;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-list-item-content-edit{display:flex;align-items:center}.univer-sheet-permission-list-item-content-view{display:flex;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-list-item-content-desc{font-size:12px;color:rgb(var(--grey-400));max-width:256px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:var(--margin-xs)}.univer-sheet-permission-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1}.univer-sheet-permission-list-empty-text{width:240px;word-wrap:break-word;color:rgb(var(--grey-400));font-size:13px}.univer-sheet-permission-list-item-content-title{font-size:12px;height:16px;line-height:16px;flex-grow:1;color:rgb(var(--color-black))}.univer-sheet-permission-list-item-content-sub{font-size:12px;height:16px;line-height:16px;color:rgb(var(--grey-600))}.univer-sheet-permission-panel-add-wrapper{padding:20px 0;margin-top:auto}.univer-sheet-permission-panel-add-button{width:100%;display:flex;align-items:center;justify-content:center}.univer-sheet-permission-panel-add-button div{margin-right:4px}.univer-spin-container{position:relative;width:100%;height:100%}.univer-spin-overlay{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#ffffff80;z-index:10}.univer-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:univer-spin 2s linear infinite}.univer-content-blur{filter:blur(2px);pointer-events:none}@keyframes univer-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-sheet-permission-dialog-wrapper{display:flex;flex-direction:column;padding:2px}.univer-sheet-permission-dialog-split{height:1px;background-color:rgb(var(--grey-200))}.univer-sheet-permission-dialog-item{display:flex;align-items:center;justify-content:space-between;height:20px;line-height:20px;margin:6px 0}.univer-sheet-permission-user-dialog-footer{height:36px;padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-user-dialog-button{height:32px;line-height:32px;padding:0px var(--padding-base)}.univer-sheet-permission-user-dialog-wrapper{height:329px;padding:var(--padding-base);box-sizing:content-box}.univer-sheet-permission-user-dialog-search-input{width:256px;height:32px}.univer-sheet-permission-user-list{height:240px;overflow-y:auto}.univer-sheet-permission-user-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.univer-sheet-permission-user-list-empty-text{width:240px;word-wrap:break-word;color:rgb(var(--grey-400));font-size:13px}.univer-sheet-permission-user-item{display:flex;align-items:center;margin:var(--margin-xs) 0;border-radius:6px;padding:var(--padding-xs) var(--padding-sm)}.univer-sheet-permission-user-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-user-item div{margin-left:6px}.univer-sheet-permission-user-item-name{width:186px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-split{height:1px;background-color:rgb(var(--grey-200))}.univer-sheet-permission-user-dialog-footer{padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs);height:28px}.univer-sheet-permission-user-dialog-footer-confirm{margin-left:var(--margin-sm)}.univer-sheet-permission-user-dialog-button{height:28px;line-height:28px;padding:0px var(--padding-base)}.univer-sheet-permission-alert-dialog{padding:var(--padding-xl) 24px}.univer-sheet-permission-alert-dialog-title{font-size:var(--font-size-lg);font-weight:500;margin-bottom:var(--margin-base)}.univer-sheet-permission-alert-dialog-button{margin-top:var(--margin-lg);display:flex;justify-content:flex-end}.sheet-permission-user-dialog .univer-dialog-close,.sheet-permission-user-dialog .univer-dialog-header{display:none}.sheet-permission-user-dialog .univer-dialog-body{padding:0}
|
|
1
|
+
.univer-absolute{position:absolute}.univer-right-0{right:0}.univer-z-\[1001\]{z-index:1001}.univer-m-0{margin:0}.univer-mb-2{margin-bottom:.5rem}.univer-flex{display:flex}.univer-h-full{height:100%}.univer-max-h-\[360px\]{max-height:360px}.univer-w-\[300px\]{width:300px}.univer-w-\[50\%\]{width:50%}.univer-flex-shrink-0{flex-shrink:0}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-list-none{list-style-type:none}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-overflow-hidden{overflow:hidden}.univer-overflow-y-auto{overflow-y:auto}.univer-text-ellipsis{text-overflow:ellipsis}.univer-whitespace-nowrap{white-space:nowrap}.univer-border{border-width:1px}.univer-border-0{border-width:0px}.univer-border-b{border-bottom-width:1px}.univer-border-solid{border-style:solid}.univer-border-gray-200{--tw-border-opacity: 1;border-color:#e3e5ea;border-color:rgba(227,229,234,var(--tw-border-opacity, 1))}.univer-bg-transparent{background-color:transparent}.univer-p-0{padding:0}.univer-p-2{padding:.5rem}.univer-px-1{padding-left:.25rem;padding-right:.25rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-semibold{font-weight:600}.univer-text-gray-300{--tw-text-opacity: 1;color:#cdd0d8;color:rgba(205,208,216,var(--tw-text-opacity, 1))}.univer-text-gray-400{--tw-text-opacity: 1;color:#979dac;color:rgba(151,157,172,var(--tw-text-opacity, 1))}.univer-text-gray-600{--tw-text-opacity: 1;color:#414657;color:rgba(65,70,87,var(--tw-text-opacity, 1))}.univer-text-gray-700{--tw-text-opacity: 1;color:#2c3040;color:rgba(44,48,64,var(--tw-text-opacity, 1))}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-200{transition-duration:.2s}.univer-scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.univer-scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.univer-scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.univer-scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.univer-scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.univer-scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.univer-scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.univer-scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.univer-scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.univer-scrollbar-thin{scrollbar-width:thin;scrollbar-color:initial initial;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.univer-scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.univer-scrollbar-track-transparent{--scrollbar-track: transparent !important}.univer-scrollbar-thumb-gray-300{--scrollbar-thumb: #CDD0D8 !important}.hover\:univer-bg-gray-100:hover{--tw-bg-opacity: 1;background-color:#eeeff1;background-color:rgba(238,239,241,var(--tw-bg-opacity, 1))}.hover\:univer-bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:#f5f5f5;background-color:rgba(245,245,245,var(--tw-bg-opacity, 1))}.hover\:univer-bg-transparent:hover{background-color:transparent}.dark\:hover\:univer-bg-gray-600:hover:where(.univer-dark,.univer-dark *){--tw-bg-opacity: 1;background-color:#414657;background-color:rgba(65,70,87,var(--tw-bg-opacity, 1))}.univer-sheets-ui-context-menu-input{display:flex;gap:var(--margin-sm);align-items:center}.univer-sheets-ui-context-menu-input-container{width:72px}.univer-sheets-ui-context-menu-input-number{height:24px}.univer-ui-plugin-sheets-border-panel{display:grid;grid-gap:var(--margin-sm);gap:var(--margin-sm)}.univer-ui-plugin-sheets-border-panel-position{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:var(--margin-xxs);gap:var(--margin-xxs);box-sizing:border-box;padding-bottom:var(--padding-base);border-bottom:1px solid rgb(var(--border-color))}.univer-ui-plugin-sheets-border-panel-position-item{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-ui-plugin-sheets-border-panel-position-item:hover,.univer-ui-plugin-sheets-border-panel-position-item-active{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-styles{display:flex;gap:var(--margin-xs);align-items:center;justify-content:space-around}.univer-ui-plugin-sheets-border-panel-board{box-sizing:border-box;padding:var(--padding-base);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-ui-plugin-sheets-border-panel-button{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);transition:all .15s}.univer-ui-plugin-sheets-border-panel-button:hover{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-more-icon{color:rgb(var(--grey-400))}.univer-defined-name{display:flex;position:relative;transition:height .15s;border-right:1px solid rgb(var(--border-color));height:100%;width:100px;box-sizing:border-box}.univer-defined-name-overlay{position:relative;width:300px;background-color:rgb(var(--color-white))}.univer-defined-name-overlay-container{position:relative;height:100%;max-height:400px;width:100%;overflow:hidden;overflow-y:auto;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-defined-name-overlay-item{display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:1px solid rgb(var(--border-color));-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.univer-defined-name-overlay-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-item-name{font-size:var(--font-size-md);color:rgb(var(--grey-900));margin:5px 0;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:5px;font-weight:400}.univer-defined-name-overlay-item-formula{font-size:var(--font-size-xs);color:rgb(var(--grey-800));margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-manager{display:flex;flex-direction:column;overflow-y:auto;width:100%;cursor:pointer;overflow:hidden;background-color:rgb(var(--color-white))}.univer-defined-name-overlay-manager:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-manager-title{font-size:var(--font-size-xs);font-weight:700;margin:var(--margin-xs);margin-bottom:0;color:rgb(var(--grey-800))}.univer-defined-name-overlay-manager-content{font-size:var(--font-size-xxs);margin:var(--margin-xs);color:rgb(var(--grey-500))}.univer-defined-name-container{width:100%;position:relative}.univer-defined-name-container-scroll{width:100%;overflow:hidden;overflow-y:auto;position:absolute}.univer-defined-name-container-addButton{display:flex;align-items:center;justify-content:center;width:100%;height:40px;border-top:1px solid rgb(var(--border-color));border-bottom:1px solid rgb(var(--border-color));font-size:var(--font-size-md);color:rgb(var(--primary-color))}.univer-defined-name-container-addButton:hover{background-color:rgb(var(--grey-50));cursor:pointer}.univer-defined-name-container-addButton-text{margin-left:5px}.univer-defined-name-container-item{position:relative;display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:1px solid rgb(var(--border-color));-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.univer-defined-name-container-item-name{font-size:var(--font-size-sm);font-weight:500;color:rgb(var(--color-black));margin:5px 0;max-width:190px;max-height:100px;overflow:hidden}.univer-defined-name-container-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:5px;font-weight:400}.univer-defined-name-container-item-formula-or-refString{font-size:var(--font-size-xs);color:rgb(var(--grey-500));font-weight:400;margin:5px 0;max-height:100px;text-overflow:ellipsis;overflow:hidden}.univer-defined-name-container-item-update{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--primary-color));cursor:pointer;padding:4px;transform:translateY(-50%);border-radius:var(--border-radius-base);right:60px;top:20px}.univer-defined-name-container-item-update:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-delete{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--error-color));cursor:pointer;padding:4px;right:20px;top:20px;transform:translateY(-50%);border-radius:var(--border-radius-base)}.univer-defined-name-container-item-delete:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-show{display:none}.univer-defined-name-container-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-container-item:hover .univer-defined-name-container-item-show{display:block}.univer-defined-name-input{display:flex;align-items:center;justify-content:left;border-bottom:1px solid rgb(var(--border-color));padding-bottom:5px}.univer-defined-name-input>div{margin-top:16px}.univer-defined-name-input-formula-selector-text-wrap{margin-top:16px;height:100%;position:relative;padding:0 0 0 6px;border:1px solid rgb(var(--border-color));transition:all .15s;border-radius:var(--border-radius-base)}.univer-defined-name-input-text-editor-container{position:relative;width:95%;height:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.univer-defined-name-input-validation{display:flex;align-items:center;justify-content:left;color:rgb(var(--error-color));font-size:var(--font-size-xs)}.univer-defined-name-input-validation>span{margin-right:2px}.univer-defined-name-input-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-count-bar{display:flex;flex:0 0 260px;justify-content:flex-end}.univer-editor-container{position:absolute;z-index:10;top:200px;left:100px;display:flex;width:100px;height:50px;border:1px solid rgb(var(--primary-color));box-shadow:none;box-sizing:content-box}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%}.univer-editor-container .univer-editor-input canvas{position:absolute}.univer-editor-container .univer-editor-input .univer-sheet-embedding-formula-editor-wrap{height:auto;border:none;padding:0;border-radius:0}.univer-formula-box{display:flex;box-sizing:border-box;height:28px;background:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));transition:height .15s}.univer-formula-box .univer-name-ranges{box-sizing:border-box;width:100px;height:100%;position:relative}.univer-formula-box .univer-formula-bar{display:flex;width:100%;height:100%}.univer-formula-box .univer-formula-bar .univer-formula-icon{padding:6px 0}.univer-formula-box .univer-formula-bar .univer-formula-icon-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:100%;font-size:var(--font-size-xs);border-right:1px solid rgb(var(--border-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container{display:flex;align-items:center;justify-content:center;padding:var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active{cursor:pointer;color:rgb(var(--success-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active{cursor:pointer;color:rgb(var(--error-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx{cursor:pointer}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-input{flex:1}.univer-formula-box .univer-formula-bar .univer-formula-container{overflow:hidden;display:flex;flex:1;width:100%;padding:0 0 0 10px}.univer-formula-box .univer-formula-bar .univer-formula-container .univer-sheet-embedding-formula-editor-wrap{height:auto;border:none;padding:0;border-radius:0;height:100%}.univer-formula-box .univer-formula-bar .univer-formula-container .univer-formula-content{position:relative;width:100%;height:100%;word-wrap:break-word;outline:none}.univer-formula-box .univer-formula-bar .univer-formula-container .univer-arrow-container{cursor:pointer;display:flex;align-items:center;justify-content:center;width:20px;height:100%;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary))}.univer-formula-box .univer-formula-bar .univer-formula-container .univer-arrow-container-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-operate-container{position:absolute;z-index:10;right:0;left:0;width:0;height:0}.univer-auto-fill-popup-menu{display:grid;grid-gap:var(--margin-xxs);gap:var(--margin-xxs);align-items:center;box-sizing:border-box;min-width:128px;margin-top:0;margin-bottom:0;padding:var(--padding-sm);font-size:var(--font-size-base);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-auto-fill-popup-menu li{list-style:none}.univer-auto-fill-popup-menu-item{cursor:pointer;position:relative;display:flex;align-items:center;box-sizing:border-box;width:134px;height:28px;padding:var(--padding-xs) 0 var(--padding-xs) 36px;font-size:13px;font-weight:400;font-style:normal;line-height:20px;color:rgb(#35322b);color:rgb(var(--black, #35322b));text-align:left;border-radius:4px;border-radius:var(--border-radius-base);transition:background .2s}.univer-auto-fill-popup-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-auto-fill-popup-menu-item-icon{position:absolute;top:50%;left:var(--padding-xs);transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.univer-auto-fill-popup-menu-item-title{padding:var(--padding-xs) var(--padding-xs) var(--padding-xs) 0;vertical-align:middle}.univer-auto-fill-popup-menu-item-hide{color:rgb(var(--text-color-secondary))}.univer-auto-fill-popup-menu-item:hover{background:rgb(var(--grey-100))}.univer-btn-container{display:flex;align-items:center;justify-content:center;padding:3px;background:#fff;border:1px solid rgb(#e5e5e5);border:1px solid rgb(var(--grey-200, #e5e5e5));border-radius:4px}.univer-btn-container:hover,.univer-btn-container.univer-btn-container-expand{background:rgb(#f5f5f5);background:rgb(var(--grey-100, #f5f5f5))}.univer-sheet-bar{position:relative;display:flex;flex:1 1 0px;flex-direction:row;min-width:calc(100% - 592px);max-width:calc(100% - 260px);height:100%;background-color:rgb(var(--bg-color-secondary))}.univer-sheet-bar-options{display:flex;flex-direction:row;align-items:center;margin:var(--margin-xxs);transition:display .2s}.univer-sheet-bar-options-divider:after{content:"";display:block;width:1px;height:16px;margin:0 var(--margin-xs);background-color:rgb(var(--grey-400))}.univer-sheet-bar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary-darker));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-sheet-bar-btn:not([disabled]):hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-sheet-container{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:36px;padding:0 var(--padding-xl);background-color:rgb(var(--bg-color-secondary))}.univer-sheet-container>span:not(:last-of-type){margin-right:4px}.univer-sheet-bar-menu{max-height:calc(100vh - 36px);display:grid;grid-gap:var(--margin-xxs);gap:var(--margin-xxs);align-items:center;overflow-y:auto;box-sizing:border-box;margin:0;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-sheet-bar-menu li{list-style:none}.univer-sheet-bar-menu-item{cursor:pointer;position:relative;display:flex;box-sizing:border-box;padding:var(--padding-xs) 24px;color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-sheet-bar-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-menu-item-icon{position:absolute;top:50%;left:var(--margin-xxs);transform:translateY(-50%);color:transparent}.univer-sheet-bar-menu-item-hide .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:rgb(var(--grey-400))}.univer-sheet-bar-menu-item-select{font-weight:500;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-select .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-label{font-size:var(--font-size-xs);font-weight:400;line-height:20px;display:flex;align-items:center}.univer-slide-tab-bar-container{overflow:hidden;max-width:calc(100% - 112px)}.univer-slide-tab-bar-container .univer-slide-tab-bar{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;display:flex;flex-direction:row;align-items:center;padding:var(--padding-xs) 6px;transition:box-shadow .2s}.univer-slide-tab-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:row;flex-grow:1;align-items:center;box-sizing:border-box;margin:0 var(--margin-xxs);font-size:var(--font-size-xs);line-height:16px;color:rgb(var(--grey-1000));border-radius:var(--border-radius-base)}.univer-slide-tab-item:not(.univer-slide-tab-active):hover{background-color:rgb(var(--bg-color-hover))}.univer-slide-tab-item .univer-slide-tab-div{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);white-space:nowrap;border:2px solid transparent;border-radius:var(--border-radius-base);display:flex;align-items:center}.univer-slide-tab-item .univer-slide-tab-div-edit{cursor:text;outline:none}.univer-slide-tab-item .univer-slide-tab-div-edit::-moz-selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-slide-tab-item .univer-slide-tab-div-edit::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-slide-tab-active{font-weight:700;color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary));box-shadow:0 0 8px #00000014;transition:box-shadow .2s;display:flex;justify-content:center}.univer-slide-tab-item-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:auto!important}.univer-status-bar{display:flex;align-items:center;max-width:332px}.univer-status-bar.univer-single-mode{max-width:136px}.univer-status-bar-div{width:1px;height:16px;margin-left:10px;background:rgb(#ccc);background:rgb(var(--grey-400, #ccc))}.univer-statistic-list{display:flex}.univer-statistic-list-column{flex-direction:column}.univer-statistic-list-column .univer-statistic-item{font-size:12px;line-height:140%;color:rgb(var(--grey-500))}.univer-statistic-item{cursor:default;overflow:hidden;display:flex;justify-content:flex-start;max-width:106px;margin-right:8px;font-size:var(--font-size-xxs);font-weight:400;font-style:normal;line-height:20px;color:rgb(var(--grey-900));text-align:center;text-overflow:ellipsis;white-space:nowrap}.univer-statistic-item:hover{color:rgb(var(--color-black))}.univer-statistic-picker{display:grid;grid-gap:var(--margin-sm);gap:var(--margin-sm);align-items:center;box-sizing:border-box;width:196px;padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--color-white));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-statistic-picker-item{display:flex;align-items:center;justify-content:flex-start}.univer-statistic-more{transform:rotate(90deg);display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:12px;color:rgb(#e8e8e8);color:rgb(var(--grey-600, #e8e8e8));border-radius:4px}.univer-statistic-more:hover{background:rgb(#e8e8e8);background:rgb(var(--grey-300, #e8e8e8))}.univer-cell-alert{box-sizing:border-box;box-shadow:var(--box-shadow-base);padding:var(--padding-sm) var(--padding-base);border-radius:var(--border-radius-lg);color:rgba(var(--color-black));background:rgba(var(--color-white));z-index:100;width:156px}.univer-cell-alert-title{height:20px;font-size:var(--font-size-sm);font-weight:500;display:flex;flex-direction:row;align-items:center;margin-bottom:6px;line-height:20px}.univer-cell-alert-icon{margin-right:6px}.univer-cell-alert-icon-error{color:rgba(var(--red-400))}.univer-cell-alert-icon-info{color:rgba(var(--blue-500))}.univer-cell-alert-icon-warning{color:rgba(var(--gold-400))}.univer-cell-alert-content{font-size:var(--font-size-sm)}.univer-sheet-paste-options-wrapper{position:absolute;display:flex;background-color:#fff;z-index:10;border-radius:4px}.univer-sheet-paste-options-icon-wrapper{display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid rgb(#e5e5e5);border:1px solid rgb(var(--grey-200, #e5e5e5));border-radius:4px;padding:3px}.univer-sheet-paste-options-menu{border:1px solid rgb(#e5e5e5);border:1px solid rgb(var(--grey-200, #e5e5e5));box-shadow:var(--box-shadow-base);border-radius:4px}.univer-sheet-paste-options-menu ul{list-style-type:none;padding:0;margin:8px}.univer-sheet-paste-options-menu-item{padding:8px 4px;cursor:pointer;position:relative}.univer-sheet-paste-options-menu-item:hover{background-color:rgb(#f5f5f5);background-color:rgb(var(--grey-100, #f5f5f5))}.univer-sheet-paste-options-menu-item-title{font-size:13px;color:rgb(#35322b);color:rgb(var(--black, #35322b));margin-left:20px}.univer-sheet-paste-options-menu-item-icon{position:absolute}.univer-mobile-sheet-bar-container{width:100%;overflow-x:scroll;height:32px;background-color:rgb(var(--bg-color))}.univer-mobile-sheet-bar-slider{display:flex;flex-wrap:nowrap;align-items:center;height:32px}.univer-mobile-sheet-bar-item{align-items:center;box-sizing:border-box;flex-grow:1;flex-shrink:0;flex-wrap:nowrap;font-size:12px;height:100%;line-height:28px;min-width:48px;overflow:hidden;padding:2px 4px;text-align:center;white-space:nowrap;border-right:1px solid rgb(var(--border-color));background-color:rgb(var(--bg-color));text-overflow:ellipsis;max-width:120px}.univer-mobile-sheet-bar-item.univer-mobile-sheet-bar-item-activated{color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary))}.univer-permission-panel-detail-wrapper{margin-top:16px;height:calc(100% - 16px);display:flex;flex-direction:column}.univer-radio-group-vertical{display:flex;flex-direction:column;font-weight:400}.univer-sheet-permission-design-person-panel{height:270px;border:1px solid rgb(var(--grey-200));border-radius:var(--border-radius-lg);padding:var(--padding-base);margin-bottom:var(--margin-xs);display:flex;flex-direction:column}.univer-sheet-permission-design-person-panel-header{display:flex;justify-content:space-between;align-items:center}.univer-sheet-permission-design-person-panel-header-add{cursor:pointer;color:rgb(var(--blue-500))}.univer-sheet-permission-design-person-panel-split{height:1px;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-design-person-panel-content-item{height:28px;line-height:28px;margin-bottom:var(--margin-sm);display:flex;align-items:center}.univer-sheet-permission-design-person-panel-content-item:last-child{margin-bottom:0}.univer-sheet-permission-design-person-panel-content-item-name{width:130px;color:rgb(var(--color-black));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:6px}.univer-sheet-permission-design-person-panel-content-item-select{width:90px;cursor:pointer}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-single:not(.univer-select-customize-input) .univer-select-selector{border:none;padding:0;color:rgb(var(--grey-900))}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-show-arrow .univer-select-arrow{right:0}.univer-sheet-permission-design-person-panel-content{flex:1}.univer-sheet-permission-panel-title{font-weight:500}.univer-sheet-permission-panel-footer{display:flex;flex-direction:row-reverse;padding:20px 0;margin-top:auto}.univer-sheet-permission-panel-footer button:first-child{margin-left:8px}.univer-permission-range-selector{font-weight:400}.univer-permission-range-selector-error,.univer-sheet-permission-panel-name-input-error,.univer-permission-range-selector-error:hover,.univer-sheet-permission-panel-name-input-error:hover{border:1px solid rgb(var(--red-400))}.univer-permission-range-selector-error-text,.univer-sheet-permission-panel-name-input-error-text{height:20px;line-height:20px;color:rgb(var(--red-400));font-size:var(--font-size-xs);font-weight:400}.univer-sheet-permission-list-panel-wrapper{margin-top:var(--margin-xs);height:calc(100% - 8px);display:flex;flex-direction:column}.univer-sheet-permission-list-panel-header{display:flex;padding:var(--padding-sm) 0;height:30px}.univer-sheet-permission-list-panel-header-type{display:flex;flex-direction:column;align-items:center;margin-right:var(--margin-lg);cursor:pointer}.univer-sheet-permission-list-panel-header-type div{height:24px;line-height:24px}.univer-sheet-permission-list-panel-header-type-bottom{height:2px;width:24px;background-color:rgb(var(--blue-500));margin-top:var(--margin-xxs)}.univer-sheet-permission-list-panel-header-select{color:rgb(var(--blue-500));height:24px;line-height:24px;font-size:var(--font-size-lg);font-weight:500}.univer-sheet-permission-list-item-header-icon{border-radius:var(--border-radius-base);height:24px;padding:4px;box-sizing:border-box}.univer-sheet-permission-list-item-header-icon:hover{background-color:rgb(var(--grey-200))}.univer-sheet-permission-list-item{margin-top:var(--margin-sm);border-radius:var(--border-radius-lg);border:1px solid rgb(var(--grey-200));padding:var(--padding-base)}.univer-sheet-permission-list-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-list-item-header{height:20px;line-height:20px;display:flex;justify-content:space-between}.univer-sheet-permission-list-item-header-name{font-weight:500;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-list-item-header-operator{display:flex;align-items:center}.univer-sheet-permission-list-item-header-operator div{margin-left:var(--margin-xs)}.univer-sheet-permission-list-item-split{height:1px;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-list-item-content-edit{display:flex;align-items:center}.univer-sheet-permission-list-item-content-view{display:flex;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-list-item-content-desc{font-size:12px;color:rgb(var(--grey-400));max-width:256px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:var(--margin-xs)}.univer-sheet-permission-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1}.univer-sheet-permission-list-empty-text{width:240px;word-wrap:break-word;color:rgb(var(--grey-400));font-size:13px}.univer-sheet-permission-list-item-content-title{font-size:12px;height:16px;line-height:16px;flex-grow:1;color:rgb(var(--color-black))}.univer-sheet-permission-list-item-content-sub{font-size:12px;height:16px;line-height:16px;color:rgb(var(--grey-600))}.univer-sheet-permission-panel-add-wrapper{padding:20px 0;margin-top:auto}.univer-sheet-permission-panel-add-button{width:100%;display:flex;align-items:center;justify-content:center}.univer-sheet-permission-panel-add-button div{margin-right:4px}.univer-spin-container{position:relative;width:100%;height:100%}.univer-spin-overlay{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#ffffff80;z-index:10}.univer-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:univer-spin 2s linear infinite}.univer-content-blur{filter:blur(2px);pointer-events:none}@keyframes univer-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-sheet-permission-dialog-wrapper{display:flex;flex-direction:column;padding:2px}.univer-sheet-permission-dialog-split{height:1px;background-color:rgb(var(--grey-200))}.univer-sheet-permission-dialog-item{display:flex;align-items:center;justify-content:space-between;height:20px;line-height:20px;margin:6px 0}.univer-sheet-permission-user-dialog-footer{height:36px;padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-user-dialog-button{height:32px;line-height:32px;padding:0px var(--padding-base)}.univer-sheet-permission-user-dialog-wrapper{height:329px;padding:var(--padding-base);box-sizing:content-box}.univer-sheet-permission-user-dialog-search-input{width:256px;height:32px}.univer-sheet-permission-user-list{height:240px;overflow-y:auto}.univer-sheet-permission-user-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.univer-sheet-permission-user-list-empty-text{width:240px;word-wrap:break-word;color:rgb(var(--grey-400));font-size:13px}.univer-sheet-permission-user-item{display:flex;align-items:center;margin:var(--margin-xs) 0;border-radius:6px;padding:var(--padding-xs) var(--padding-sm)}.univer-sheet-permission-user-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-user-item div{margin-left:6px}.univer-sheet-permission-user-item-name{width:186px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-split{height:1px;background-color:rgb(var(--grey-200))}.univer-sheet-permission-user-dialog-footer{padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs);height:28px}.univer-sheet-permission-user-dialog-footer-confirm{margin-left:var(--margin-sm)}.univer-sheet-permission-user-dialog-button{height:28px;line-height:28px;padding:0px var(--padding-base)}.univer-sheet-permission-alert-dialog{padding:var(--padding-xl) 24px}.univer-sheet-permission-alert-dialog-title{font-size:var(--font-size-lg);font-weight:500;margin-bottom:var(--margin-base)}.univer-sheet-permission-alert-dialog-button{margin-top:var(--margin-lg);display:flex;justify-content:flex-end}.sheet-permission-user-dialog .univer-dialog-close,.sheet-permission-user-dialog .univer-dialog-header{display:none}.sheet-permission-user-dialog .univer-dialog-body{padding:0}
|
|
@@ -10,10 +10,14 @@ export interface IMoveSelectionCommandParams {
|
|
|
10
10
|
direction: Direction;
|
|
11
11
|
jumpOver?: JumpOver;
|
|
12
12
|
nextStep?: number;
|
|
13
|
+
extra?: string;
|
|
14
|
+
fromCurrentSelection?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export interface IMoveSelectionEnterAndTabCommandParams {
|
|
15
17
|
direction: Direction;
|
|
16
18
|
keycode: KeyCode;
|
|
19
|
+
extra?: string;
|
|
20
|
+
fromCurrentSelection?: boolean;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Move selection (Mainly by keyboard arrow keys, For Tab and Enter key, check @MoveSelectionEnterAndTabCommand)
|
|
@@ -27,6 +31,7 @@ export interface IExpandSelectionCommandParams {
|
|
|
27
31
|
direction: Direction;
|
|
28
32
|
jumpOver?: JumpOver;
|
|
29
33
|
nextStep?: number;
|
|
34
|
+
extra?: string;
|
|
30
35
|
}
|
|
31
36
|
export declare const ExpandSelectionCommand: ICommand<IExpandSelectionCommandParams>;
|
|
32
37
|
export interface ISelectAllCommandParams {
|
|
@@ -19,6 +19,7 @@ export declare const SHEET_ZOOM_RANGE: number[];
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const RANGE_SELECTOR_COMPONENT_KEY = "RANGE_SELECTOR_COMPONENT_KEY";
|
|
21
21
|
export declare const EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY = "EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY";
|
|
22
|
+
export declare const EMBEDDING_CELL_EDITOR_COMPONENT_KEY = "EMBEDDING_CELL_EDITOR_COMPONENT_KEY";
|
|
22
23
|
export declare enum SHEET_VIEW_KEY {
|
|
23
24
|
MAIN = "__SpreadsheetRender__",
|
|
24
25
|
ROW = "__SpreadsheetRowHeader__",
|
|
@@ -48,17 +48,6 @@ export declare function getSetCellValueMutations(pasteTo: ISheetDiscreteRangeLoc
|
|
|
48
48
|
undos: IMutationInfo<object>[];
|
|
49
49
|
redos: IMutationInfo<object>[];
|
|
50
50
|
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @param pasteTo
|
|
54
|
-
* @param pasteFrom
|
|
55
|
-
* @param matrix
|
|
56
|
-
* @param accessor
|
|
57
|
-
*/
|
|
58
|
-
export declare function getSetCellCustomMutations(pasteTo: ISheetDiscreteRangeLocation, pasteFrom: Nullable<ISheetDiscreteRangeLocation>, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
|
|
59
|
-
undos: IMutationInfo<object>[];
|
|
60
|
-
redos: IMutationInfo<object>[];
|
|
61
|
-
};
|
|
62
51
|
/**
|
|
63
52
|
*
|
|
64
53
|
* @param pasteTo
|
|
@@ -2,6 +2,7 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
|
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
|
|
4
4
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
5
|
+
import { IFormulaEditorManagerService } from '../../services/editor/formula-editor-manager.service';
|
|
5
6
|
import { FormulaEditorController } from './formula-editor.controller';
|
|
6
7
|
/**
|
|
7
8
|
* sync data between cell editor and formula editor
|
|
@@ -14,7 +15,8 @@ export declare class EditorDataSyncController extends Disposable {
|
|
|
14
15
|
private readonly _rangeProtectionRuleModel;
|
|
15
16
|
private readonly _worksheetProtectionRuleModel;
|
|
16
17
|
private readonly _formulaEditorController;
|
|
17
|
-
|
|
18
|
+
private readonly _formulaEditorManagerService;
|
|
19
|
+
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _commandService: ICommandService, _rangeProtectionRuleModel: RangeProtectionRuleModel, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _formulaEditorController: FormulaEditorController, _formulaEditorManagerService: IFormulaEditorManagerService);
|
|
18
20
|
private _initialize;
|
|
19
21
|
private _getEditorViewModel;
|
|
20
22
|
private _syncFormulaEditorContent;
|
|
@@ -11,7 +11,6 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
11
11
|
private readonly _context;
|
|
12
12
|
private readonly _undoRedoService;
|
|
13
13
|
private readonly _contextService;
|
|
14
|
-
private readonly _instanceSrv;
|
|
15
14
|
private readonly _renderManagerService;
|
|
16
15
|
private readonly _editorBridgeService;
|
|
17
16
|
private readonly _cellEditorManagerService;
|
|
@@ -33,7 +32,7 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
33
32
|
private _workbookSelections;
|
|
34
33
|
private _d;
|
|
35
34
|
_cursorTimeout: NodeJS.Timeout;
|
|
36
|
-
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _undoRedoService: IUndoRedoService, _contextService: IContextService,
|
|
35
|
+
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _undoRedoService: IUndoRedoService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _lexerTreeBuilder: LexerTreeBuilder, _functionService: IFunctionService, _textSelectionManagerService: DocSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService, _sheetCellEditorResizeService: SheetCellEditorResizeService, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService);
|
|
37
36
|
dispose(): void;
|
|
38
37
|
private _disposeCurrent;
|
|
39
38
|
private _init;
|
|
@@ -52,7 +51,6 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
52
51
|
private _commandExecutedListener;
|
|
53
52
|
private _handleEditorVisible;
|
|
54
53
|
private _handleEditorInvisible;
|
|
55
|
-
private _setOpenForCurrent;
|
|
56
54
|
private _getEditorObject;
|
|
57
55
|
submitCellData(documentDataModel: DocumentDataModel): Promise<void>;
|
|
58
56
|
private _submitCellData;
|
|
@@ -64,11 +62,12 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
64
62
|
*/
|
|
65
63
|
private _cursorStateListener;
|
|
66
64
|
private _moveInEditor;
|
|
65
|
+
private _getDocumentDataModel;
|
|
67
66
|
private _isCurrentSheetFocused;
|
|
68
67
|
private _getEditorSkeleton;
|
|
69
68
|
private _getEditorViewModel;
|
|
70
69
|
private _emptyDocumentDataModel;
|
|
71
70
|
}
|
|
72
|
-
export declare function getCellDataByInput(cellData: ICellData,
|
|
71
|
+
export declare function getCellDataByInput(cellData: ICellData, snapshot: Nullable<IDocumentData>, lexerTreeBuilder: LexerTreeBuilder, localeService: LocaleService, functionService: IFunctionService, styles: Styles): ICellData | null;
|
|
73
72
|
export declare function isRichText(body: IDocumentBody): boolean;
|
|
74
73
|
export declare function getCellStyleBySnapshot(snapshot: IDocumentData): Nullable<IStyleData>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ICommandService, IContextService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
3
|
+
import { IEditorService } from '@univerjs/docs-ui';
|
|
3
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
-
import { IFormulaEditorManagerService } from '../../services/editor/formula-editor-manager.service';
|
|
5
5
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
6
|
+
import { IFormulaEditorManagerService } from '../../services/editor/formula-editor-manager.service';
|
|
6
7
|
export declare class FormulaEditorController extends RxDisposable {
|
|
7
8
|
private readonly _univerInstanceService;
|
|
8
9
|
private readonly _renderManagerService;
|
|
@@ -12,8 +13,9 @@ export declare class FormulaEditorController extends RxDisposable {
|
|
|
12
13
|
private readonly _formulaEditorManagerService;
|
|
13
14
|
private readonly _undoRedoService;
|
|
14
15
|
private readonly _textSelectionManagerService;
|
|
16
|
+
private readonly _editorService;
|
|
15
17
|
private _loadedMap;
|
|
16
|
-
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _commandService: ICommandService, _contextService: IContextService, _formulaEditorManagerService: IFormulaEditorManagerService, _undoRedoService: IUndoRedoService, _textSelectionManagerService: DocSelectionManagerService);
|
|
18
|
+
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _commandService: ICommandService, _contextService: IContextService, _formulaEditorManagerService: IFormulaEditorManagerService, _undoRedoService: IUndoRedoService, _textSelectionManagerService: DocSelectionManagerService, _editorService: IEditorService);
|
|
17
19
|
private _initialize;
|
|
18
20
|
private _handleContentChange;
|
|
19
21
|
private _create;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEventBase, IRange, RichTextValue, FEventName } from '@univerjs/core';
|
|
2
|
+
import { DeviceInputEventType, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
3
|
+
import { CommandListenerSkeletonChange } from '@univerjs/sheets';
|
|
2
4
|
import { FRange, FWorkbook, FWorksheet } from '@univerjs/sheets/facade';
|
|
3
5
|
import { KeyCode } from '@univerjs/ui';
|
|
4
|
-
import { FEventName, IEventBase, RichTextValue } from '@univerjs/core';
|
|
5
6
|
/**
|
|
6
7
|
* Event interface triggered when cell editing starts
|
|
7
8
|
* @interface ISheetEditStartedEventParams
|
|
@@ -119,6 +120,11 @@ export declare const CellFEventName: {
|
|
|
119
120
|
readonly CellHover: "CellHover";
|
|
120
121
|
readonly DragOver: "DragOver";
|
|
121
122
|
readonly Drop: "Drop";
|
|
123
|
+
readonly Scroll: "Scroll";
|
|
124
|
+
readonly SelectionMoveStart: "SelectionMoveStart";
|
|
125
|
+
readonly SelectionMoving: "SelectionMoving";
|
|
126
|
+
readonly SelectionMoveEnd: "SelectionMoveEnd";
|
|
127
|
+
readonly SelectionChanged: "SelectionChanged";
|
|
122
128
|
};
|
|
123
129
|
export interface IFSheetsUIEventNameMixin {
|
|
124
130
|
/**
|
|
@@ -232,7 +238,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
232
238
|
* Event fired when a cell is clicked
|
|
233
239
|
* @example
|
|
234
240
|
* ```ts
|
|
235
|
-
* univerAPI.
|
|
241
|
+
* univerAPI.addEvent(univerAPI.Event.CellClicked, (params)=> {
|
|
242
|
+
* const { worksheet, workbook, row, column, value, isZenEditor } = params;
|
|
243
|
+
* });
|
|
236
244
|
* ```
|
|
237
245
|
*/
|
|
238
246
|
readonly CellClicked: 'CellClicked';
|
|
@@ -240,7 +248,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
240
248
|
* Event fired when a cell is pointer down
|
|
241
249
|
* @example
|
|
242
250
|
* ```ts
|
|
243
|
-
* univerAPI.
|
|
251
|
+
* univerAPI.addEvent(univerAPI.Event.CellPointerDown, (params)=> {
|
|
252
|
+
* const { worksheet, workbook, row, column } = params;
|
|
253
|
+
* });
|
|
244
254
|
* ```
|
|
245
255
|
*/
|
|
246
256
|
readonly CellPointerDown: 'CellPointerDown';
|
|
@@ -248,7 +258,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
248
258
|
* Event fired when a cell is pointer up
|
|
249
259
|
* @example
|
|
250
260
|
* ```ts
|
|
251
|
-
* univerAPI.
|
|
261
|
+
* univerAPI.addEvent(univerAPI.Event.CellPointerUp, (params)=> {
|
|
262
|
+
* const { worksheet, workbook, row, column } = params;
|
|
263
|
+
* });
|
|
252
264
|
* ```
|
|
253
265
|
*/
|
|
254
266
|
readonly CellPointerUp: 'CellPointerUp';
|
|
@@ -256,7 +268,9 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
256
268
|
* Event fired when a cell is hovered
|
|
257
269
|
* @example
|
|
258
270
|
* ```ts
|
|
259
|
-
* univerAPI.
|
|
271
|
+
* univerAPI.addEvent(univerAPI.Event.CellHover, (params)=> {
|
|
272
|
+
* const { worksheet, workbook, row, column } = params;
|
|
273
|
+
* });
|
|
260
274
|
* ```
|
|
261
275
|
*/
|
|
262
276
|
readonly CellHover: 'CellHover';
|
|
@@ -264,15 +278,107 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
264
278
|
* Event fired when move on spreadsheet cells
|
|
265
279
|
* @example
|
|
266
280
|
* ```ts
|
|
267
|
-
* univerAPI.
|
|
281
|
+
* univerAPI.addEvent(univerAPI.Event.CellPointerMove, (params)=> {
|
|
282
|
+
* const { worksheet, workbook, row, column } = params;
|
|
283
|
+
* });
|
|
268
284
|
* ```
|
|
269
285
|
*/
|
|
270
286
|
readonly CellPointerMove: 'CellPointerMove';
|
|
287
|
+
/**
|
|
288
|
+
* Triggered when a row header is clicked
|
|
289
|
+
* @param {ISheetRowHeaderEvent} params - Event parameters containing unitId, subUnitId, and row index
|
|
290
|
+
* @example
|
|
291
|
+
* ```typescript
|
|
292
|
+
* univerAPI.onSheetEvent(Event.RowHeaderClick, (params) => {
|
|
293
|
+
* console.log(`Row ${params.row} header clicked in sheet ${params.worksheet.getSheetId()}`);
|
|
294
|
+
* });
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
readonly RowHeaderClick: 'RowHeaderClick';
|
|
298
|
+
/**
|
|
299
|
+
* Triggered when pointer is pressed down on a row header
|
|
300
|
+
* @param {ISheetRowHeaderEvent} params - Event parameters containing unitId, subUnitId, and row index
|
|
301
|
+
* @example
|
|
302
|
+
* ```typescript
|
|
303
|
+
* univerAPI.onSheetEvent(Event.RowHeaderPointerDown, (params) => {
|
|
304
|
+
* console.log(`Pointer down on row ${params.row} header in sheet ${params.worksheet.getSheetId()}`);
|
|
305
|
+
* });
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
readonly RowHeaderPointerDown: 'RowHeaderPointerDown';
|
|
309
|
+
/**
|
|
310
|
+
* Triggered when pointer is released on a row header
|
|
311
|
+
* @param {ISheetRowHeaderEvent} params - Event parameters containing unitId, subUnitId, and row index
|
|
312
|
+
* @example
|
|
313
|
+
* ```typescript
|
|
314
|
+
* univerAPI.onSheetEvent(Event.RowHeaderPointerUp, (params) => {
|
|
315
|
+
* console.log(`Pointer up on row ${params.row} header in sheet ${params.worksheet.getSheetId()}`);
|
|
316
|
+
* });
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
readonly RowHeaderPointerUp: 'RowHeaderPointerUp';
|
|
320
|
+
/**
|
|
321
|
+
* Triggered when pointer hovers over a row header
|
|
322
|
+
* @param {ISheetRowHeaderEvent} params - Event parameters containing unitId, subUnitId, and row index
|
|
323
|
+
* @example
|
|
324
|
+
* ```typescript
|
|
325
|
+
* univerAPI.onSheetEvent(Event.RowHeaderHover, (params) => {
|
|
326
|
+
* console.log(`Hovering over row ${params.row} header in sheet ${params.worksheet.getSheetId()}`);
|
|
327
|
+
* });
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
330
|
+
readonly RowHeaderHover: 'RowHeaderHover';
|
|
331
|
+
/**
|
|
332
|
+
* Triggered when a column header is clicked
|
|
333
|
+
* @param {ISheetColumnHeaderEvent} params - Event parameters containing unitId, subUnitId, and column index
|
|
334
|
+
* @example
|
|
335
|
+
* ```typescript
|
|
336
|
+
* univerAPI.onSheetEvent(Event.ColumnHeaderClick, (params) => {
|
|
337
|
+
* console.log(`Column ${params.column} header clicked in sheet ${params.worksheet.getSheetId()}`);
|
|
338
|
+
* });
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
readonly ColumnHeaderClick: 'ColumnHeaderClick';
|
|
342
|
+
/**
|
|
343
|
+
* Triggered when pointer is pressed down on a column header
|
|
344
|
+
* @param {ISheetColumnHeaderEvent} params - Event parameters containing unitId, subUnitId, and column index
|
|
345
|
+
* @example
|
|
346
|
+
* ```typescript
|
|
347
|
+
* univerAPI.onSheetEvent(Event.ColumnHeaderPointerDown, (params) => {
|
|
348
|
+
* console.log(`Pointer down on column ${params.column} header in sheet ${params.worksheet.getSheetId()}`);
|
|
349
|
+
* });
|
|
350
|
+
* ```
|
|
351
|
+
*/
|
|
352
|
+
readonly ColumnHeaderPointerDown: 'ColumnHeaderPointerDown';
|
|
353
|
+
/**
|
|
354
|
+
* Triggered when pointer is released on a column header
|
|
355
|
+
* @param {ISheetColumnHeaderEvent} params - Event parameters containing unitId, subUnitId, and column index
|
|
356
|
+
* @example
|
|
357
|
+
* ```typescript
|
|
358
|
+
* univerAPI.onSheetEvent(Event.ColumnHeaderPointerUp, (params) => {
|
|
359
|
+
* console.log(`Pointer up on column ${params.column} header in sheet ${params.worksheet.getSheetId()}`);
|
|
360
|
+
* });
|
|
361
|
+
* ```
|
|
362
|
+
*/
|
|
363
|
+
readonly ColumnHeaderPointerUp: 'ColumnHeaderPointerUp';
|
|
364
|
+
/**
|
|
365
|
+
* Triggered when pointer hovers over a column header
|
|
366
|
+
* @param {ISheetColumnHeaderEvent} params - Event parameters containing unitId, subUnitId, and column index
|
|
367
|
+
* @example
|
|
368
|
+
* ```typescript
|
|
369
|
+
* univerAPI.onSheetEvent(Event.ColumnHeaderHover, (params) => {
|
|
370
|
+
* console.log(`Hovering over column ${params.column} header in sheet ${params.worksheet.getSheetId()}`);
|
|
371
|
+
* });
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
readonly ColumnHeaderHover: 'ColumnHeaderHover';
|
|
271
375
|
/**
|
|
272
376
|
* Event fired when drag over spreadsheet cells
|
|
273
377
|
* @example
|
|
274
378
|
* ```ts
|
|
275
|
-
* univerAPI.getActiveWorkbook().addEvent(
|
|
379
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.DragOver, (params)=> {
|
|
380
|
+
* const { worksheet, workbook, row, column } = params;
|
|
381
|
+
* });
|
|
276
382
|
* ```
|
|
277
383
|
*/
|
|
278
384
|
readonly DragOver: 'DragOver';
|
|
@@ -280,10 +386,92 @@ export interface IFSheetsUIEventNameMixin {
|
|
|
280
386
|
* Event fired when drop on spreadsheet cells
|
|
281
387
|
* @example
|
|
282
388
|
* ```ts
|
|
283
|
-
* univerAPI.getActiveWorkbook().addEvent(
|
|
389
|
+
* univerAPI.getActiveWorkbook().addEvent(univerAPI.Event.Drop, (params)=> {
|
|
390
|
+
* const { worksheet, workbook, row, column } = params;
|
|
391
|
+
* });
|
|
284
392
|
* ```
|
|
285
393
|
*/
|
|
286
394
|
readonly Drop: 'Drop';
|
|
395
|
+
/**
|
|
396
|
+
* Event fired when scroll spreadsheet.
|
|
397
|
+
* @example
|
|
398
|
+
* ```ts
|
|
399
|
+
* univerAPI.addEvent(univerAPI.Event.Scroll, (params)=> {
|
|
400
|
+
* const { worksheet, workbook, scrollX, scrollY } = params;
|
|
401
|
+
* });
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
readonly Scroll: 'Scroll';
|
|
405
|
+
/**
|
|
406
|
+
* Event fired when selection changed.
|
|
407
|
+
* @example
|
|
408
|
+
* ```ts
|
|
409
|
+
* univerAPI.addEvent(univerAPI.Event.SelectionChanged, (p)=> {
|
|
410
|
+
* const { worksheet, workbook, selections } = p;
|
|
411
|
+
* });
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
readonly SelectionChanged: 'SelectionChanged';
|
|
415
|
+
/**
|
|
416
|
+
* Event fired when selection move start
|
|
417
|
+
* @example
|
|
418
|
+
* ```ts
|
|
419
|
+
* univerAPI.addEvent(univerAPI.Event.SelectionMoveStart, (p)=> {
|
|
420
|
+
* const { worksheet, workbook, selections } = p;
|
|
421
|
+
* });
|
|
422
|
+
* ```
|
|
423
|
+
*/
|
|
424
|
+
readonly SelectionMoveStart: 'SelectionMoveStart';
|
|
425
|
+
/**
|
|
426
|
+
* Event fired when selection move end
|
|
427
|
+
* @example
|
|
428
|
+
* ```ts
|
|
429
|
+
* univerAPI.addEvent(univerAPI.Event.SelectionMoving, (p)=> {
|
|
430
|
+
* const { worksheet, workbook, selections } = p;
|
|
431
|
+
* });
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
434
|
+
readonly SelectionMoving: 'SelectionMoving';
|
|
435
|
+
/**
|
|
436
|
+
* Event fired when selection move end
|
|
437
|
+
* @example
|
|
438
|
+
* ```ts
|
|
439
|
+
* univerAPI.addEvent(univerAPI.Event.SelectionMoveEnd, (p)=> {
|
|
440
|
+
* const { worksheet, workbook, selections } = p;
|
|
441
|
+
* });
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
444
|
+
readonly SelectionMoveEnd: 'SelectionMoveEnd';
|
|
445
|
+
/**
|
|
446
|
+
* Event fired when zoom changed
|
|
447
|
+
* @example
|
|
448
|
+
* ```ts
|
|
449
|
+
* univerAPI.addEvent(univerAPI.Event.SheetZoomChanged, (p)=> {
|
|
450
|
+
* const { worksheet, workbook, zoom } = p;
|
|
451
|
+
* });
|
|
452
|
+
* ```
|
|
453
|
+
*/
|
|
454
|
+
readonly SheetZoomChanged: 'SheetZoomChanged';
|
|
455
|
+
/**
|
|
456
|
+
* Event fired before zoom changed
|
|
457
|
+
* @example
|
|
458
|
+
* ```ts
|
|
459
|
+
* univerAPI.addEvent(univerAPI.Event.BeforeSheetZoomChange, (p)=> {
|
|
460
|
+
* const { worksheet, workbook, zoom } = p;
|
|
461
|
+
* });
|
|
462
|
+
* ```
|
|
463
|
+
*/
|
|
464
|
+
readonly BeforeSheetZoomChange: 'BeforeSheetZoomChange';
|
|
465
|
+
/**
|
|
466
|
+
* Event fired when sheet skeleton changed
|
|
467
|
+
* @example
|
|
468
|
+
* ```ts
|
|
469
|
+
* univerAPI.addEvent(univerAPI.Event.SheetSkeletonChanged, (p)=> {
|
|
470
|
+
* const { worksheet, workbook } = p;
|
|
471
|
+
* });
|
|
472
|
+
* ```
|
|
473
|
+
*/
|
|
474
|
+
readonly SheetSkeletonChanged: 'SheetSkeletonChanged';
|
|
287
475
|
}
|
|
288
476
|
export declare class FSheetsUIEventName extends FEventName implements IFSheetsUIEventNameMixin {
|
|
289
477
|
get BeforeClipboardChange(): 'BeforeClipboardChange';
|
|
@@ -302,8 +490,22 @@ export declare class FSheetsUIEventName extends FEventName implements IFSheetsUI
|
|
|
302
490
|
get CellPointerMove(): 'CellPointerMove';
|
|
303
491
|
get DragOver(): 'DragOver';
|
|
304
492
|
get Drop(): 'Drop';
|
|
493
|
+
get Scroll(): 'Scroll';
|
|
494
|
+
get SelectionMoveStart(): 'SelectionMoveStart';
|
|
495
|
+
get SelectionChanged(): 'SelectionChanged';
|
|
496
|
+
get SelectionMoving(): 'SelectionMoving';
|
|
497
|
+
get SelectionMoveEnd(): 'SelectionMoveEnd';
|
|
498
|
+
get RowHeaderClick(): 'RowHeaderClick';
|
|
499
|
+
get RowHeaderPointerDown(): 'RowHeaderPointerDown';
|
|
500
|
+
get RowHeaderPointerUp(): 'RowHeaderPointerUp';
|
|
501
|
+
get RowHeaderHover(): 'RowHeaderHover';
|
|
502
|
+
get ColumnHeaderClick(): 'ColumnHeaderClick';
|
|
503
|
+
get ColumnHeaderPointerDown(): 'ColumnHeaderPointerDown';
|
|
504
|
+
get ColumnHeaderPointerUp(): 'ColumnHeaderPointerUp';
|
|
505
|
+
get ColumnHeaderHover(): 'ColumnHeaderHover';
|
|
506
|
+
get SheetSkeletonChanged(): 'SheetSkeletonChanged';
|
|
305
507
|
}
|
|
306
|
-
export interface
|
|
508
|
+
export interface ISheetUIEventBase extends IEventBase {
|
|
307
509
|
/**
|
|
308
510
|
* The workbook instance currently being operated on. {@link FWorkbook}
|
|
309
511
|
*/
|
|
@@ -359,10 +561,42 @@ export interface IBeforeClipboardPasteParam extends IEventBase {
|
|
|
359
561
|
html?: string;
|
|
360
562
|
}
|
|
361
563
|
export type IClipboardPastedParam = IBeforeClipboardPasteParam;
|
|
362
|
-
export interface
|
|
564
|
+
export interface ISheetZoomEvent extends IEventBase {
|
|
565
|
+
/**
|
|
566
|
+
* Zoom ratio
|
|
567
|
+
*/
|
|
568
|
+
zoom: number;
|
|
569
|
+
/**
|
|
570
|
+
* The workbook instance currently being operated on. {@link FWorkbook}
|
|
571
|
+
*/
|
|
572
|
+
workbook: FWorkbook;
|
|
573
|
+
/**
|
|
574
|
+
* The worksheet instance currently being operated on. {@link FWorkbook}
|
|
575
|
+
*/
|
|
576
|
+
worksheet: FWorksheet;
|
|
577
|
+
}
|
|
578
|
+
export interface ICellEventParam extends ISheetUIEventBase {
|
|
363
579
|
row: number;
|
|
364
580
|
column: number;
|
|
365
581
|
}
|
|
582
|
+
export interface IScrollEventParam extends ISheetUIEventBase {
|
|
583
|
+
scrollX: number;
|
|
584
|
+
scrollY: number;
|
|
585
|
+
}
|
|
586
|
+
export interface ISelectionEventParam extends ISheetUIEventBase {
|
|
587
|
+
selections: IRange[];
|
|
588
|
+
}
|
|
589
|
+
export interface ISheetRowHeaderEvent extends ISheetUIEventBase {
|
|
590
|
+
row: number;
|
|
591
|
+
}
|
|
592
|
+
export interface ISheetColumnHeaderEvent extends ISheetUIEventBase {
|
|
593
|
+
column: number;
|
|
594
|
+
}
|
|
595
|
+
export interface ISheetSkeletonChangedEvent extends ISheetUIEventBase {
|
|
596
|
+
skeleton: SpreadsheetSkeleton;
|
|
597
|
+
payload: CommandListenerSkeletonChange;
|
|
598
|
+
effectedRanges: FRange[];
|
|
599
|
+
}
|
|
366
600
|
export interface IFSheetsUIEventParamConfig {
|
|
367
601
|
BeforeClipboardChange: IBeforeClipboardChangeParam;
|
|
368
602
|
ClipboardChanged: IClipboardChangedParam;
|
|
@@ -380,6 +614,25 @@ export interface IFSheetsUIEventParamConfig {
|
|
|
380
614
|
CellPointerMove: ICellEventParam;
|
|
381
615
|
Drop: ICellEventParam;
|
|
382
616
|
DragOver: ICellEventParam;
|
|
617
|
+
RowHeaderClick: ISheetRowHeaderEvent;
|
|
618
|
+
RowHeaderDbClick: ISheetRowHeaderEvent;
|
|
619
|
+
RowHeaderHover: ISheetRowHeaderEvent;
|
|
620
|
+
RowHeaderPointerDown: ISheetRowHeaderEvent;
|
|
621
|
+
RowHeaderPointerUp: ISheetRowHeaderEvent;
|
|
622
|
+
ColumnHeaderClick: ISheetColumnHeaderEvent;
|
|
623
|
+
ColumnHeaderDbClick: ISheetColumnHeaderEvent;
|
|
624
|
+
ColumnHeaderHover: ISheetColumnHeaderEvent;
|
|
625
|
+
ColumnHeaderPointerDown: ISheetColumnHeaderEvent;
|
|
626
|
+
ColumnHeaderPointerUp: ISheetColumnHeaderEvent;
|
|
627
|
+
Scroll: IScrollEventParam;
|
|
628
|
+
SelectionChanging: ISelectionEventParam;
|
|
629
|
+
SelectionMoveStart: ISelectionEventParam;
|
|
630
|
+
SelectionMoving: ISelectionEventParam;
|
|
631
|
+
SelectionMoveEnd: ISelectionEventParam;
|
|
632
|
+
SelectionChanged: ISelectionEventParam;
|
|
633
|
+
SheetZoomChanged: ISheetZoomEvent;
|
|
634
|
+
BeforeSheetZoomChange: ISheetZoomEvent;
|
|
635
|
+
SheetSkeletonChanged: ISheetSkeletonChangedEvent;
|
|
383
636
|
}
|
|
384
637
|
declare module '@univerjs/core' {
|
|
385
638
|
interface FEventName extends IFSheetsUIEventNameMixin {
|