@univerjs/sheets-ui 0.1.0-alpha.3 → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +10 -8
- package/lib/es/index.js +5346 -5210
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +17 -0
- package/lib/types/controllers/auto-fill.controller.d.ts +3 -1
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +1 -0
- package/lib/types/controllers/editor-bridge.controller.d.ts +4 -4
- package/lib/types/controllers/freeze.controller.d.ts +5 -5
- package/lib/types/controllers/mark-selection.controller.d.ts +27 -0
- package/lib/types/controllers/menu/menu.d.ts +0 -2
- package/lib/types/controllers/selection.controller.d.ts +1 -0
- package/lib/types/controllers/shortcuts/utils.d.ts +1 -0
- package/lib/types/controllers/status-bar.controller.d.ts +1 -0
- package/lib/types/index.d.ts +2 -4
- package/lib/types/locale/en-US.d.ts +5 -0
- package/lib/types/locale/zh-CN.d.ts +5 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +1 -0
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -1
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -2
- package/lib/types/services/selection/selection-shape-extension.d.ts +1 -1
- package/lib/types/services/selection/selection-shape.d.ts +2 -0
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +5 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +4 -4
- package/lib/umd/index.js +10 -8
- package/package.json +24 -24
- /package/lib/types/commands/{commands/rename.command.d.ts → operations/rename-sheet.operation.d.ts} +0 -0
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-range-selector{overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:0 var(--padding-sm) 0 var(--padding-base);border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-range-selector-editor{cursor:text;overflow:hidden;display:inline-block;width:218px;height:20px;padding:6px 0;font-size:var(--font-size-xs);line-height:20px;text-wrap:nowrap;border:0;outline:0}.univer-range-selector-editor::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-range-selector-editor:empty:before{content:attr(data-placeholder);color:rgb(var(--grey-400))}.univer-range-selector-icon{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));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-active{border-color:rgb(var(--primary-color))}.univer-range-selector-active .univer-range-selector-icon{color:rgb(var(--primary-color))}.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-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-sheet-container{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:36px;padding:0 var(--padding-xl)}.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{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{font-size:10px;color:rgb(var(--grey-400))}.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:1.5px solid rgb(var(--primary-color));outline:1.5px solid rgb(var(--primary-color-hover) .5);box-shadow:none}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%;background:#fff}.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:80px;height:100%;padding:6px 0}.univer-formula-box .univer-name-ranges-input{height:100%;border-right:1px solid rgb(var(--border-color))}.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-wrapper{position:relative;display:flex;gap:var(--margin-xs);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{cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-lg)}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active{color:rgb(var(--success-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active{color:rgb(var(--error-color))}.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-operate-container{position:absolute;z-index:1;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))}.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-bar-menu{display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;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{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{color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-label{font-size:var(--font-size-xs);font-weight:400;line-height:20px}.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;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;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);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-span{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);white-space:nowrap;border:2px solid transparent;border-radius:var(--border-radius-base)}.univer-slide-tab-item .univer-slide-tab-span-edit{cursor:text;outline:none}.univer-slide-tab-item .univer-slide-tab-span-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}.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-two-row{flex-direction:column}.univer-statistic-list-two-row .univer-statistic-list-row{display:flex;flex-direction:row}.univer-statistic-list-two-row .univer-statistic-item{font-size:11px;line-height:140%}.univer-statistic-item{cursor:default;display:flex;justify-content:start;max-width:96px;margin-right:8px;font-size:12px;font-weight:400;font-style:normal;line-height:20px;color:rgb(var(--grey-1000));text-align:center}.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: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))}
|
|
1
|
+
.univer-range-selector{overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:0 var(--padding-sm) 0 var(--padding-base);border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-range-selector-editor{cursor:text;overflow:hidden;display:inline-block;width:218px;height:20px;padding:6px 0;font-size:var(--font-size-xs);line-height:20px;text-wrap:nowrap;border:0;outline:0}.univer-range-selector-editor::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-range-selector-editor:empty:before{content:attr(data-placeholder);color:rgb(var(--grey-400))}.univer-range-selector-icon{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));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-active{border-color:rgb(var(--primary-color))}.univer-range-selector-active .univer-range-selector-icon{color:rgb(var(--primary-color))}.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-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-sheet-container{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:36px;padding:0 var(--padding-xl)}.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{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{font-size:10px;color:rgb(var(--grey-400))}.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:1.5px solid rgb(var(--primary-color));outline:1.5px solid rgba(var(--primary-color-hover),.5);box-shadow:none}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%;background:#fff}.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:80px;height:100%;padding:6px 0}.univer-formula-box .univer-name-ranges-input{height:100%;border-right:1px solid rgb(var(--border-color))}.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-wrapper{position:relative;display:flex;gap:var(--margin-xs);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{cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-lg)}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active{color:rgb(var(--success-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active{color:rgb(var(--error-color))}.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-operate-container{position:absolute;z-index:1;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))}.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-bar-menu{display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;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{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{color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-label{font-size:var(--font-size-xs);font-weight:400;line-height:20px}.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;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;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);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-span{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);white-space:nowrap;border:2px solid transparent;border-radius:var(--border-radius-base)}.univer-slide-tab-item .univer-slide-tab-span-edit{cursor:text;outline:none}.univer-slide-tab-item .univer-slide-tab-span-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}.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:start;max-width:96px;margin-right:8px;font-size:12px;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-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: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))}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { ICommand } from '@univerjs/core';
|
|
17
|
+
export declare const RemoveSheetConfirmCommand: ICommand;
|
|
@@ -16,19 +16,21 @@
|
|
|
16
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
17
17
|
import { SelectionManagerService } from '@univerjs/sheets';
|
|
18
18
|
import { IAutoFillService } from '../services/auto-fill/auto-fill.service';
|
|
19
|
+
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
19
20
|
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
20
21
|
export declare class AutoFillController extends Disposable {
|
|
21
22
|
private readonly _univerInstanceService;
|
|
22
23
|
private readonly _selectionRenderService;
|
|
23
24
|
private readonly _commandService;
|
|
24
25
|
private readonly _autoFillService;
|
|
26
|
+
private readonly _editorBridgeService;
|
|
25
27
|
private readonly _selectionManagerService;
|
|
26
28
|
private _direction;
|
|
27
29
|
private _beforeApplyData;
|
|
28
30
|
private _applyType;
|
|
29
31
|
private _hasFillingStyle;
|
|
30
32
|
private _copyData;
|
|
31
|
-
constructor(_univerInstanceService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _commandService: ICommandService, _autoFillService: IAutoFillService, _selectionManagerService: SelectionManagerService);
|
|
33
|
+
constructor(_univerInstanceService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _commandService: ICommandService, _autoFillService: IAutoFillService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SelectionManagerService);
|
|
32
34
|
private _init;
|
|
33
35
|
private _handleDbClickFill;
|
|
34
36
|
private _detectFillRange;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { ICommandService, IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
17
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
18
|
import { SelectionManagerService } from '@univerjs/sheets';
|
|
19
19
|
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
20
20
|
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
21
21
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
22
|
-
export declare class EditorBridgeController extends
|
|
22
|
+
export declare class EditorBridgeController extends RxDisposable {
|
|
23
23
|
private readonly _sheetSkeletonManagerService;
|
|
24
24
|
private readonly _currentUniverService;
|
|
25
25
|
private readonly _commandService;
|
|
@@ -31,8 +31,8 @@ export declare class EditorBridgeController extends Disposable {
|
|
|
31
31
|
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SelectionManagerService, _selectionRenderService: ISelectionRenderService, _themeService: ThemeService);
|
|
32
32
|
dispose(): void;
|
|
33
33
|
private _initialize;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
34
|
+
private _initSelectionChangeListener;
|
|
35
|
+
private _handleSelectionListener;
|
|
36
36
|
private _initialEventListener;
|
|
37
37
|
/**
|
|
38
38
|
* In the activated state of formula editing,
|
|
@@ -42,17 +42,17 @@ export declare class FreezeController extends Disposable {
|
|
|
42
42
|
private _changeToColumn;
|
|
43
43
|
private _changeToOffsetX;
|
|
44
44
|
private _changeToOffsetY;
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
45
|
+
private _freezeNormalHeaderColor;
|
|
46
|
+
private _freezeNormalMainColor;
|
|
47
|
+
private _freezeActiveColor;
|
|
48
|
+
private _freezeHoverColor;
|
|
49
49
|
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _scrollManagerService: ScrollManagerService, _themeService: ThemeService);
|
|
50
50
|
dispose(): void;
|
|
51
51
|
private _initialize;
|
|
52
52
|
private _createFreeze;
|
|
53
53
|
private _eventBinding;
|
|
54
54
|
private _getCurrentLastVisibleRow;
|
|
55
|
-
private
|
|
55
|
+
private _freezeDown;
|
|
56
56
|
private _updateViewport;
|
|
57
57
|
/**
|
|
58
58
|
* When switching sheet tabs, it is necessary to update the frozen state of the current view.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
+
import { IMarkSelectionService } from '../services/mark-selection/mark-selection.service';
|
|
18
|
+
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
19
|
+
export declare class MarkSelectionController extends Disposable {
|
|
20
|
+
private _markSelectionService;
|
|
21
|
+
private _commandService;
|
|
22
|
+
private _sheetSkeletonManagerService;
|
|
23
|
+
constructor(_markSelectionService: IMarkSelectionService, _commandService: ICommandService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
24
|
+
private _initListeners;
|
|
25
|
+
private _addRemoveListener;
|
|
26
|
+
private _addRefreshListener;
|
|
27
|
+
}
|
|
@@ -26,8 +26,6 @@ export declare function BoldMenuItemFactory(accessor: IAccessor): IMenuButtonIte
|
|
|
26
26
|
export declare function ItalicMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
27
27
|
export declare function UnderlineMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
28
28
|
export declare function StrikeThroughMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
29
|
-
export declare function SubScriptMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
30
|
-
export declare function SuperScriptMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
31
29
|
export declare const FONT_SIZE_CHILDREN: {
|
|
32
30
|
label: string;
|
|
33
31
|
value: number;
|
|
@@ -30,6 +30,7 @@ export declare class SelectionController extends Disposable {
|
|
|
30
30
|
private _initialize;
|
|
31
31
|
private _initViewMainListener;
|
|
32
32
|
private _initThemeChangeListener;
|
|
33
|
+
private _refreshSelection;
|
|
33
34
|
private _initRowHeader;
|
|
34
35
|
private _initColumnHeader;
|
|
35
36
|
private _initLeftTop;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IContextService } from '@univerjs/core';
|
|
17
17
|
export declare function whenEditorNotActivated(contextService: IContextService): boolean;
|
|
18
|
+
export declare function whenEditorActivated(contextService: IContextService): boolean;
|
|
18
19
|
export declare function whenEditorFocusIsHidden(contextService: IContextService): boolean;
|
|
19
20
|
export declare function whenEditorActivatedIsVisible(contextService: IContextService): boolean;
|
|
20
21
|
export declare function whenFormulaEditorFocused(contextService: IContextService): boolean;
|
|
@@ -23,6 +23,7 @@ export declare class StatusBarController extends Disposable {
|
|
|
23
23
|
private readonly _functionService;
|
|
24
24
|
private readonly _statusBarService;
|
|
25
25
|
private readonly _formulaDataModel;
|
|
26
|
+
private _calculateTimeout;
|
|
26
27
|
constructor(_univerInstanceService: IUniverInstanceService, _selectionManagerService: SelectionManagerService, _functionService: IFunctionService, _statusBarService: IStatusBarService, _formulaDataModel: FormulaDataModel);
|
|
27
28
|
private _init;
|
|
28
29
|
private _registerSelectionListener;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -35,10 +35,8 @@ export { getAutoFillRepeatRange } from './services/auto-fill/tools';
|
|
|
35
35
|
export type { IAutoFillHook, ICopyDataPiece } from './services/auto-fill/type';
|
|
36
36
|
export { APPLY_TYPE, DATA_TYPE, type IAutoFillRule } from './services/auto-fill/type';
|
|
37
37
|
export { type ICopyDataInTypeIndexInfo } from './services/auto-fill/type';
|
|
38
|
-
export { ISheetClipboardService } from './services/clipboard/clipboard.service';
|
|
39
|
-
export {
|
|
40
|
-
export { type ISheetClipboardHook } from './services/clipboard/type';
|
|
41
|
-
export { type ICellDataWithSpanInfo } from './services/clipboard/type';
|
|
38
|
+
export { ISheetClipboardService, PREDEFINED_HOOK_NAME, SheetClipboardService, } from './services/clipboard/clipboard.service';
|
|
39
|
+
export type { ICellDataWithSpanInfo, ISheetClipboardHook } from './services/clipboard/type';
|
|
42
40
|
export { COPY_TYPE } from './services/clipboard/type';
|
|
43
41
|
export { getRepeatRange } from './services/clipboard/utils';
|
|
44
42
|
export { CellEditorManagerService, ICellEditorManagerService } from './services/editor/cell-editor-manager.service';
|
|
@@ -316,8 +316,12 @@ declare const _default: {
|
|
|
316
316
|
redoDelete: string;
|
|
317
317
|
noHide: string;
|
|
318
318
|
chartEditNoOpt: string;
|
|
319
|
+
sheetNameErrorTitle: string;
|
|
319
320
|
sheetNameSpecCharError: string;
|
|
320
321
|
sheetNameCannotIsEmptyError: string;
|
|
322
|
+
sheetNameAlreadyExistsError: string;
|
|
323
|
+
deleteSheet: string;
|
|
324
|
+
deleteSheetContent: string;
|
|
321
325
|
};
|
|
322
326
|
rightClick: {
|
|
323
327
|
copy: string;
|
|
@@ -413,6 +417,7 @@ declare const _default: {
|
|
|
413
417
|
freezeCol: string;
|
|
414
418
|
freezeRow: string;
|
|
415
419
|
cancelFreeze: string;
|
|
420
|
+
zenEditor: string;
|
|
416
421
|
};
|
|
417
422
|
info: {
|
|
418
423
|
tooltip: string;
|
|
@@ -308,8 +308,12 @@ declare const _default: {
|
|
|
308
308
|
redoDelete: string;
|
|
309
309
|
noHide: string;
|
|
310
310
|
chartEditNoOpt: string;
|
|
311
|
+
sheetNameErrorTitle: string;
|
|
311
312
|
sheetNameSpecCharError: string;
|
|
312
313
|
sheetNameCannotIsEmptyError: string;
|
|
314
|
+
sheetNameAlreadyExistsError: string;
|
|
315
|
+
deleteSheet: string;
|
|
316
|
+
deleteSheetContent: string;
|
|
313
317
|
};
|
|
314
318
|
rightClick: {
|
|
315
319
|
copy: string;
|
|
@@ -405,6 +409,7 @@ declare const _default: {
|
|
|
405
409
|
freezeCol: string;
|
|
406
410
|
freezeRow: string;
|
|
407
411
|
cancelFreeze: string;
|
|
412
|
+
zenEditor: string;
|
|
408
413
|
};
|
|
409
414
|
info: {
|
|
410
415
|
tooltip: string;
|
|
@@ -20,6 +20,7 @@ export declare class testMarkSelectionService {
|
|
|
20
20
|
addShape(): string | null;
|
|
21
21
|
removeShape(id: string): void;
|
|
22
22
|
removeAllShapes(): void;
|
|
23
|
+
refreshShapes(): void;
|
|
23
24
|
}
|
|
24
25
|
export declare function clipboardTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
|
|
25
26
|
univer: Univer;
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IParagraphStyle, Nullable } from '@univerjs/core';
|
|
16
|
+
import type { IParagraph, IParagraphStyle, Nullable } from '@univerjs/core';
|
|
17
17
|
export default function parseToDom(rawHtml: string): Element | null;
|
|
18
18
|
export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
|
|
19
19
|
export declare function ptToPixel(pt: number): number;
|
|
20
|
+
export declare function generateParagraphs(dataStream: string, prevParagraph?: IParagraph): IParagraph[];
|
|
@@ -23,6 +23,7 @@ export interface IMarkSelectionService {
|
|
|
23
23
|
addShape(selection: ISelectionWithStyle, zIndex?: number): string | null;
|
|
24
24
|
removeShape(id: string): void;
|
|
25
25
|
removeAllShapes(): void;
|
|
26
|
+
refreshShapes(): void;
|
|
26
27
|
}
|
|
27
28
|
export declare const IMarkSelectionService: import("@wendellhu/redi").IdentifierDecorator<IMarkSelectionService>;
|
|
28
29
|
export declare class MarkSelectionService extends Disposable implements IMarkSelectionService {
|
|
@@ -39,6 +40,4 @@ export declare class MarkSelectionService extends Disposable implements IMarkSel
|
|
|
39
40
|
refreshShapes(): void;
|
|
40
41
|
removeShape(id: string): void;
|
|
41
42
|
removeAllShapes(): void;
|
|
42
|
-
private _addRemoveListener;
|
|
43
|
-
private _addRefreshListener;
|
|
44
43
|
}
|
|
@@ -22,10 +22,12 @@ export interface ISheetBarMenuHandler {
|
|
|
22
22
|
}
|
|
23
23
|
export interface ISheetBarService {
|
|
24
24
|
renameId$: Observable<string>;
|
|
25
|
+
removeId$: Observable<string>;
|
|
25
26
|
scroll$: Observable<IScrollState>;
|
|
26
27
|
scrollX$: Observable<number>;
|
|
27
28
|
addSheet$: Observable<number>;
|
|
28
29
|
setRenameId(id: string): void;
|
|
30
|
+
setRemoveId(id: string): void;
|
|
29
31
|
setScroll(state: IScrollState): void;
|
|
30
32
|
setScrollX(x: number): void;
|
|
31
33
|
setAddSheet(index: number): void;
|
|
@@ -35,16 +37,19 @@ export interface ISheetBarService {
|
|
|
35
37
|
export declare const ISheetBarService: import("@wendellhu/redi").IdentifierDecorator<ISheetBarService>;
|
|
36
38
|
export declare class SheetBarService extends Disposable implements ISheetBarService {
|
|
37
39
|
readonly renameId$: Observable<string>;
|
|
40
|
+
readonly removeId$: Observable<string>;
|
|
38
41
|
readonly scroll$: Observable<IScrollState>;
|
|
39
42
|
readonly scrollX$: Observable<number>;
|
|
40
43
|
readonly addSheet$: Observable<number>;
|
|
41
44
|
private readonly _renameId$;
|
|
45
|
+
private readonly _removeId$;
|
|
42
46
|
private readonly _scroll$;
|
|
43
47
|
private readonly _scrollX$;
|
|
44
48
|
private readonly _addSheet$;
|
|
45
49
|
private _currentHandler;
|
|
46
50
|
constructor();
|
|
47
51
|
setRenameId(renameId: string): void;
|
|
52
|
+
setRemoveId(removeId: string): void;
|
|
48
53
|
setScroll(state: IScrollState): void;
|
|
49
54
|
setScrollX(x: number): void;
|
|
50
55
|
setAddSheet(index: number): void;
|
|
@@ -31,7 +31,7 @@ export interface SlideTabBarConfig {
|
|
|
31
31
|
onChangeName: (id: string, name: string) => void;
|
|
32
32
|
onChangeTab: (event: FocusEvent, id: string) => void;
|
|
33
33
|
onScroll: (state: IScrollState) => void;
|
|
34
|
-
|
|
34
|
+
onNameCheckAlert: (text: string) => boolean;
|
|
35
35
|
}
|
|
36
36
|
export interface SlideTabItemAnimate {
|
|
37
37
|
translateX: (x: number) => void;
|
|
@@ -52,12 +52,12 @@ export declare class SlideTabItem {
|
|
|
52
52
|
static rightLine(item: SlideTabItem): number;
|
|
53
53
|
static make(nodeList: NodeList, slideTabBar: SlideTabBar): SlideTabItem[];
|
|
54
54
|
getSlideTabItem(): HTMLElement;
|
|
55
|
+
getEditor(): HTMLSpanElement | null;
|
|
55
56
|
isEditMode(): boolean;
|
|
56
57
|
classList(): DOMTokenList;
|
|
57
|
-
primeval(): HTMLElement;
|
|
58
58
|
translateX(x: number): 1 | 0 | -1;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
setEditor(callback?: (event: FocusEvent) => void): void;
|
|
60
|
+
nameCheck(): boolean;
|
|
61
61
|
animate(): SlideTabItemAnimate;
|
|
62
62
|
after(other: SlideTabItem): void;
|
|
63
63
|
update(): void;
|