@univerjs/sheets-ui 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/lib/cjs/index.js +13 -12
  2. package/lib/es/index.js +8165 -7558
  3. package/lib/index.css +1 -1
  4. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -1
  5. package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +2 -2
  6. package/lib/types/controllers/cell-custom-render.controller.d.ts +3 -0
  7. package/lib/types/controllers/clipboard/utils.d.ts +10 -9
  8. package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +4 -2
  9. package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +1 -1
  10. package/lib/types/controllers/editor/editing.controller.d.ts +2 -2
  11. package/lib/types/controllers/editor/end-edit.controller.d.ts +2 -2
  12. package/lib/types/controllers/editor/start-edit.controller.d.ts +2 -2
  13. package/lib/types/controllers/editor-bridge.controller.d.ts +2 -2
  14. package/lib/types/controllers/force-string-alert.controller.d.ts +13 -0
  15. package/lib/types/controllers/force-string-render.controller.d.ts +15 -0
  16. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +2 -2
  17. package/lib/types/controllers/{freeze.controller.d.ts → freeze.render-controller.d.ts} +5 -8
  18. package/lib/types/controllers/header-menu.controller.d.ts +2 -2
  19. package/lib/types/controllers/header-move.controller.d.ts +2 -2
  20. package/lib/types/controllers/{header-resize.controller.d.ts → header-resize.render-controller.d.ts} +6 -7
  21. package/lib/types/controllers/header-unhide.render-controller.d.ts +20 -0
  22. package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +8 -1
  23. package/lib/types/controllers/menu/menu-util.d.ts +9 -0
  24. package/lib/types/controllers/scroll.controller.d.ts +2 -2
  25. package/lib/types/controllers/selection.controller.d.ts +3 -2
  26. package/lib/types/controllers/sheet-render.controller.d.ts +14 -4
  27. package/lib/types/controllers/utils/__tests__/cell-tools.spec.d.ts +16 -0
  28. package/lib/types/controllers/utils/cell-tools.d.ts +17 -0
  29. package/lib/types/controllers/utils/component-tools.d.ts +3 -3
  30. package/lib/types/controllers/utils/range-tools.d.ts +17 -0
  31. package/lib/types/controllers/zoom.controller.d.ts +2 -2
  32. package/lib/types/index.d.ts +6 -1
  33. package/lib/types/locale/zh-CN.d.ts +9 -0
  34. package/lib/types/services/auto-fill/tools.d.ts +1 -0
  35. package/lib/types/services/auto-fill/type.d.ts +4 -3
  36. package/lib/types/services/canvas-pop-manager.service.d.ts +4 -2
  37. package/lib/types/services/cell-alert-manager.service.d.ts +11 -4
  38. package/lib/types/services/clipboard/__tests__/clipboard-paste-alignment.spec.d.ts +16 -0
  39. package/lib/types/services/clipboard/__tests__/clipboard-paste-border.spec.d.ts +16 -0
  40. package/lib/types/services/clipboard/__tests__/clipboard-paste-font.spec.d.ts +16 -0
  41. package/lib/types/services/clipboard/__tests__/clipboard-paste-form-excel.spec.d.ts +16 -0
  42. package/lib/types/services/clipboard/__tests__/clipboard-paste-from-google.spec.d.ts +16 -0
  43. package/lib/types/services/clipboard/__tests__/clipboard-paste-rotate.spec.d.ts +16 -0
  44. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +1 -1
  45. package/lib/types/services/clipboard/__tests__/constant.d.ts +27 -0
  46. package/lib/types/services/clipboard/clipboard.service.d.ts +8 -4
  47. package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -2
  48. package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +1 -1
  49. package/lib/types/services/clipboard/type.d.ts +24 -8
  50. package/lib/types/services/clipboard/utils.d.ts +3 -0
  51. package/lib/types/services/editor-bridge.service.d.ts +2 -2
  52. package/lib/types/services/hover-manager.service.d.ts +4 -5
  53. package/lib/types/services/mark-selection/mark-selection.service.d.ts +3 -5
  54. package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +1 -1
  55. package/lib/types/services/sheet-skeleton-manager.service.d.ts +6 -3
  56. package/lib/types/services/shortcut-experience.service.d.ts +2 -2
  57. package/lib/types/sheets-ui-plugin.d.ts +8 -4
  58. package/lib/types/views/cell-alert/CellAlertPopup.d.ts +4 -1
  59. package/lib/types/views/header-unhide-shape.d.ts +1 -1
  60. package/lib/types/views/sheet-canvas-view.d.ts +6 -5
  61. package/lib/types/views/sheet-container/SheetContainer.d.ts +3 -3
  62. package/lib/umd/index.js +14 -13
  63. package/package.json +25 -25
  64. package/lib/types/controllers/header-unhide.controller.d.ts +0 -21
package/lib/index.css CHANGED
@@ -1 +1 @@
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-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,.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{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:1px solid rgb(var(--primary-color));box-shadow:none}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%;background:#fff}.univer-defined-name{display:flex;position:relative;transition:height .15s;border-right:1px solid rgb(var(--border-color))}.univer-defined-name-drop-down{display:flex;align-items:center;justify-content:center;padding:0 var(--padding-xs);font-size:10px;cursor:pointer;position:absolute;right:0;height:100%}.univer-defined-name-drop-down:hover{background-color:rgb(var(--grey-50));color:rgb(var(--primary-color))}.univer-defined-name-overlay{position:relative;border:1px solid rgb(var(--border-color));width:300px;background-color:rgb(var(--color-white));transform:translate(-75px)}.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));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{position:absolute;display:flex;flex-direction:column;overflow-y:auto;height:70px;width:100%;cursor:pointer;overflow:hidden;bottom:-70px;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));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{width:100%;margin-top:5px}.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-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-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-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))}.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{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}.univer-slide-tab-bar-container{overflow:hidden;max-width:calc(100% - 112px)}.univer-slide-tab-bar-container .univer-slide-tab-bar{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;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-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-slide-tab-item-dropdown{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);word-break:break-all}
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-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,.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{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:1px solid rgb(var(--primary-color));box-shadow:none;box-sizing:border-box}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%;background:#fff}.univer-editor-container .univer-editor-input canvas{position:absolute;top:-1px!important;left:-1px!important}.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-drop-down{display:flex;align-items:center;justify-content:center;padding:0 var(--padding-xs);font-size:10px;cursor:pointer;position:absolute;right:0;height:100%}.univer-defined-name-drop-down:hover{background-color:rgb(var(--grey-50));color:rgb(var(--primary-color))}.univer-defined-name-overlay{position:relative;border:1px solid rgb(var(--border-color));width:300px;background-color:rgb(var(--color-white));transform:translate(-75px)}.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));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{position:absolute;display:flex;flex-direction:column;overflow-y:auto;height:70px;width:100%;cursor:pointer;overflow:hidden;bottom:-70px;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));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{width:100%;margin-top:5px}.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-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-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-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))}.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{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}.univer-slide-tab-bar-container{overflow:hidden;max-width:calc(100% - 112px)}.univer-slide-tab-bar-container .univer-slide-tab-bar{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;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-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-slide-tab-item-dropdown{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);word-break:break-all}
@@ -6,4 +6,4 @@ export interface ITestBed {
6
6
  get: Injector['get'];
7
7
  sheet: Workbook;
8
8
  }
9
- export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
9
+ export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
@@ -1,6 +1,6 @@
1
1
  import { IWorkbookData } from '@univerjs/core';
2
2
 
3
- export declare function createSelectionCommandTestBed(workbookConfig?: IWorkbookData): {
3
+ export declare function createSelectionCommandTestBed(workbookData?: IWorkbookData): {
4
4
  univer: import('@univerjs/core').Univer;
5
5
  get: {
6
6
  <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
@@ -12,7 +12,7 @@ export declare function createSelectionCommandTestBed(workbookConfig?: IWorkbook
12
12
  };
13
13
  sheet: import('@univerjs/core').Workbook;
14
14
  };
15
- export declare function createFrozenCommandTestBed(workbookConfig?: IWorkbookData): {
15
+ export declare function createFrozenCommandTestBed(workbookData?: IWorkbookData): {
16
16
  univer: import('@univerjs/core').Univer;
17
17
  get: {
18
18
  <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
@@ -2,6 +2,9 @@ import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
4
 
5
+ /**
6
+ * @todo RenderUnit
7
+ */
5
8
  export declare class CellCustomRenderController extends Disposable {
6
9
  private readonly _sheetSkeletonManagerService;
7
10
  private readonly _renderManagerService;
@@ -1,36 +1,37 @@
1
- import { ICellDataWithSpanInfo, ICopyPastePayload, ISheetRangeLocation } from '../../services/clipboard/type';
1
+ import { IDiscreteRange } from '../utils/range-tools';
2
+ import { ICellDataWithSpanInfo, ICopyPastePayload, ISheetDiscreteRangeLocation } from '../../services/clipboard/type';
2
3
  import { IAccessor } from '@wendellhu/redi';
3
- import { IDocumentBody, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
4
+ import { IDocumentBody, IMutationInfo, Nullable, ObjectMatrix } from '@univerjs/core';
4
5
 
5
- export declare function getDefaultOnPasteCellMutations(pasteFrom: ISheetRangeLocation, pasteTo: ISheetRangeLocation, data: ObjectMatrix<ICellDataWithSpanInfo>, payload: ICopyPastePayload, accessor: IAccessor): {
6
+ export declare function getDefaultOnPasteCellMutations(pasteFrom: ISheetDiscreteRangeLocation, pasteTo: ISheetDiscreteRangeLocation, data: ObjectMatrix<ICellDataWithSpanInfo>, payload: ICopyPastePayload, accessor: IAccessor): {
6
7
  undos: IMutationInfo<object>[];
7
8
  redos: IMutationInfo<object>[];
8
9
  };
9
10
  export declare function getMoveRangeMutations(from: {
10
11
  unitId: string;
11
12
  subUnitId: string;
12
- range?: IRange;
13
+ range?: IDiscreteRange;
13
14
  }, to: {
14
15
  unitId: string;
15
16
  subUnitId: string;
16
- range?: IRange;
17
+ range?: IDiscreteRange;
17
18
  }, accessor: IAccessor): {
18
19
  undos: IMutationInfo<object>[];
19
20
  redos: IMutationInfo<object>[];
20
21
  };
21
- export declare function getSetCellValueMutations(pasteTo: ISheetRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
22
+ export declare function getSetCellValueMutations(pasteTo: ISheetDiscreteRangeLocation, pasteFrom: Nullable<ISheetDiscreteRangeLocation>, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
22
23
  undos: IMutationInfo<object>[];
23
24
  redos: IMutationInfo<object>[];
24
25
  };
25
- export declare function getSetCellStyleMutations(pasteTo: ISheetRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
26
+ export declare function getSetCellStyleMutations(pasteTo: ISheetDiscreteRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
26
27
  undos: IMutationInfo<object>[];
27
28
  redos: IMutationInfo<object>[];
28
29
  };
29
- export declare function getClearCellStyleMutations(pasteTo: ISheetRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
30
+ export declare function getClearCellStyleMutations(pasteTo: ISheetDiscreteRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
30
31
  undos: IMutationInfo<object>[];
31
32
  redos: IMutationInfo<object>[];
32
33
  };
33
- export declare function getClearAndSetMergeMutations(pasteTo: ISheetRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
34
+ export declare function getClearAndSetMergeMutations(pasteTo: ISheetDiscreteRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor): {
34
35
  undos: IMutationInfo<object>[];
35
36
  redos: IMutationInfo<object>[];
36
37
  };
@@ -8,13 +8,15 @@ import { Disposable, IUniverInstanceService } from '@univerjs/core';
8
8
  * This controller subscribe to context menu events in
9
9
  * sheet rendering views and invoke context menu at a correct position
10
10
  * and with correct menu type.
11
+ *
12
+ * @todo RenderUnit
11
13
  */
12
14
  export declare class SheetContextMenuController extends Disposable {
13
- private readonly _currentUniverService;
15
+ private readonly _univerInstanceService;
14
16
  private readonly _contextMenuService;
15
17
  private readonly _renderManagerService;
16
18
  private readonly _selectionManagerService;
17
19
  private readonly _selectionRenderService;
18
- constructor(_currentUniverService: IUniverInstanceService, _contextMenuService: IContextMenuService, _renderManagerService: IRenderManagerService, _selectionManagerService: SelectionManagerService, _selectionRenderService: ISelectionRenderService);
20
+ constructor(_univerInstanceService: IUniverInstanceService, _contextMenuService: IContextMenuService, _renderManagerService: IRenderManagerService, _selectionManagerService: SelectionManagerService, _selectionRenderService: ISelectionRenderService);
19
21
  private _addListeners;
20
22
  }
@@ -6,4 +6,4 @@ export interface ITestBed {
6
6
  get: Injector['get'];
7
7
  sheet: Workbook;
8
8
  }
9
- export declare function createTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
9
+ export declare function createTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
@@ -2,10 +2,10 @@ import { IRenderManagerService } from '@univerjs/engine-render';
2
2
  import { IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
3
3
 
4
4
  export declare class EditingController extends RxDisposable {
5
- private readonly _currentUniverService;
5
+ private readonly _univerInstanceService;
6
6
  private readonly _renderManagerService;
7
7
  private readonly _undoRedoService;
8
- constructor(_currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _undoRedoService: IUndoRedoService);
8
+ constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _undoRedoService: IUndoRedoService);
9
9
  private _initialize;
10
10
  private _listenEditorBlur;
11
11
  private _initialNormalInput;
@@ -7,7 +7,7 @@ import { LexerTreeBuilder } from '@univerjs/engine-formula';
7
7
  import { ICellData, Disposable, ICommandService, IContextService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
8
8
 
9
9
  export declare class EndEditController extends Disposable {
10
- private readonly _currentUniverService;
10
+ private readonly _univerInstanceService;
11
11
  private readonly _renderManagerService;
12
12
  private readonly _commandService;
13
13
  private readonly _editorBridgeService;
@@ -23,7 +23,7 @@ export declare class EndEditController extends Disposable {
23
23
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
24
24
  */
25
25
  private _cursorChange;
26
- constructor(_currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _contextService: IContextService, _cellEditorManagerService: ICellEditorManagerService, _lexerTreeBuilder: LexerTreeBuilder, _undoRedoService: IUndoRedoService, _selectionManagerService: SelectionManagerService, _editorService: IEditorService);
26
+ constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _contextService: IContextService, _cellEditorManagerService: ICellEditorManagerService, _lexerTreeBuilder: LexerTreeBuilder, _undoRedoService: IUndoRedoService, _selectionManagerService: SelectionManagerService, _editorService: IEditorService);
27
27
  dispose(): void;
28
28
  private _initialize;
29
29
  private _initialExitInput;
@@ -9,7 +9,7 @@ export declare class StartEditController extends Disposable {
9
9
  private readonly _docSkeletonManagerService;
10
10
  private readonly _docViewModelManagerService;
11
11
  private readonly _contextService;
12
- private readonly _currentUniverService;
12
+ private readonly _univerInstanceService;
13
13
  private readonly _renderManagerService;
14
14
  private readonly _editorBridgeService;
15
15
  private readonly _cellEditorManagerService;
@@ -19,7 +19,7 @@ export declare class StartEditController extends Disposable {
19
19
  protected readonly _localService: LocaleService;
20
20
  private readonly _editorService;
21
21
  private _editorVisiblePrevious;
22
- constructor(_docSkeletonManagerService: DocSkeletonManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextService: IContextService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService);
22
+ constructor(_docSkeletonManagerService: DocSkeletonManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextService: IContextService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService);
23
23
  dispose(): void;
24
24
  private _initialize;
25
25
  private _listenEditorFocus;
@@ -9,7 +9,7 @@ import { ICommandService, IContextService, IUniverInstanceService, RxDisposable
9
9
  export declare class EditorBridgeController extends RxDisposable {
10
10
  private readonly _injector;
11
11
  private readonly _sheetSkeletonManagerService;
12
- private readonly _currentUniverService;
12
+ private readonly _univerInstanceService;
13
13
  private readonly _commandService;
14
14
  private readonly _renderManagerService;
15
15
  private readonly _editorBridgeService;
@@ -18,7 +18,7 @@ export declare class EditorBridgeController extends RxDisposable {
18
18
  private readonly _contextService;
19
19
  private readonly _selectionManagerService;
20
20
  private readonly _rangeSelectorService;
21
- constructor(_injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _layoutService: ILayoutService, _editorService: IEditorService, _contextService: IContextService, _selectionManagerService: SelectionManagerService, _rangeSelectorService: IRangeSelectorService);
21
+ constructor(_injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _layoutService: ILayoutService, _editorService: IEditorService, _contextService: IContextService, _selectionManagerService: SelectionManagerService, _rangeSelectorService: IRangeSelectorService);
22
22
  dispose(): void;
23
23
  private _initialize;
24
24
  private _initSelectionChangeListener;
@@ -0,0 +1,13 @@
1
+ import { CellAlertManagerService } from '../services/cell-alert-manager.service';
2
+ import { HoverManagerService } from '../services/hover-manager.service';
3
+ import { Disposable, IUniverInstanceService, LocaleService } from '@univerjs/core';
4
+
5
+ export declare class ForceStringAlertController extends Disposable {
6
+ private readonly _hoverManagerService;
7
+ private readonly _cellAlertManagerService;
8
+ private readonly _univerInstanceService;
9
+ private readonly _localeService;
10
+ constructor(_hoverManagerService: HoverManagerService, _cellAlertManagerService: CellAlertManagerService, _univerInstanceService: IUniverInstanceService, _localeService: LocaleService);
11
+ private _init;
12
+ private _initCellAlertPopup;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { SheetInterceptorService } from '@univerjs/sheets';
3
+ import { RxDisposable, ThemeService } from '@univerjs/core';
4
+
5
+ /**
6
+ * @todo RenderUnit
7
+ */
8
+ export declare class ForceStringRenderController extends RxDisposable {
9
+ private readonly _sheetSkeletonManagerService;
10
+ private readonly _sheetInterceptorService;
11
+ private readonly _themeService;
12
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetInterceptorService: SheetInterceptorService, _themeService: ThemeService);
13
+ private _init;
14
+ private _initViewModelIntercept;
15
+ }
@@ -6,10 +6,10 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
6
6
  export declare class FormatPainterController extends Disposable {
7
7
  private readonly _commandService;
8
8
  private readonly _formatPainterService;
9
- private readonly _currentUniverService;
9
+ private readonly _univerInstanceService;
10
10
  private readonly _renderManagerService;
11
11
  private readonly _selectionRenderService;
12
- constructor(_commandService: ICommandService, _formatPainterService: IFormatPainterService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService);
12
+ constructor(_commandService: ICommandService, _formatPainterService: IFormatPainterService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService);
13
13
  private _initialize;
14
14
  private _bindFormatPainterStatus;
15
15
  private _commandExecutedListener;
@@ -1,17 +1,14 @@
1
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
- import { ISelectionRenderService } from '../services/selection/selection-render.service';
3
2
  import { ScrollManagerService } from '../services/scroll-manager.service';
4
3
  import { Injector } from '@wendellhu/redi';
5
4
  import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
6
- import { IRenderManagerService } from '@univerjs/engine-render';
7
- import { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
5
+ import { IRenderContext, IRenderController } from '@univerjs/engine-render';
6
+ import { Workbook, Disposable, ICommandService, ThemeService } from '@univerjs/core';
8
7
 
9
- export declare class FreezeController extends Disposable {
8
+ export declare class HeaderFreezeRenderController extends Disposable implements IRenderController {
9
+ private readonly _context;
10
10
  private readonly _sheetSkeletonManagerService;
11
- private readonly _currentUniverService;
12
11
  private readonly _commandService;
13
- private readonly _renderManagerService;
14
- private readonly _selectionRenderService;
15
12
  private readonly _selectionManagerService;
16
13
  private readonly _scrollManagerService;
17
14
  private readonly _themeService;
@@ -36,7 +33,7 @@ export declare class FreezeController extends Disposable {
36
33
  private _freezeActiveColor;
37
34
  private _freezeHoverColor;
38
35
  private _lastFreeze;
39
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _scrollManagerService: ScrollManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
36
+ constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SelectionManagerService, _scrollManagerService: ScrollManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
40
37
  dispose(): void;
41
38
  private _initialize;
42
39
  private _createFreeze;
@@ -10,7 +10,7 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
10
10
  */
11
11
  export declare class HeaderMenuController extends Disposable {
12
12
  private readonly _sheetSkeletonManagerService;
13
- private readonly _currentUniverService;
13
+ private readonly _univerInstanceService;
14
14
  private readonly _renderManagerService;
15
15
  private readonly _contextMenuService;
16
16
  private readonly _commandService;
@@ -19,7 +19,7 @@ export declare class HeaderMenuController extends Disposable {
19
19
  private _hoverMenu;
20
20
  private _currentColumn;
21
21
  private _observers;
22
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _contextMenuService: IContextMenuService, _commandService: ICommandService, _selectionManagerService: SelectionManagerService);
22
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _contextMenuService: IContextMenuService, _commandService: ICommandService, _selectionManagerService: SelectionManagerService);
23
23
  dispose(): void;
24
24
  private _initialize;
25
25
  private _initialHover;
@@ -6,7 +6,7 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
6
6
 
7
7
  export declare class HeaderMoveController extends Disposable {
8
8
  private readonly _sheetSkeletonManagerService;
9
- private readonly _currentUniverService;
9
+ private readonly _univerInstanceService;
10
10
  private readonly _renderManagerService;
11
11
  private readonly _commandService;
12
12
  private readonly _selectionRenderService;
@@ -27,7 +27,7 @@ export declare class HeaderMoveController extends Disposable {
27
27
  private _changeToColumn;
28
28
  private _changeToRow;
29
29
  dispose(): void;
30
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService);
30
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService);
31
31
  private _initialize;
32
32
  private _initialRowOrColumn;
33
33
  private _rowColumnMoving;
@@ -1,13 +1,12 @@
1
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
2
  import { IEditorBridgeService } from '../services/editor-bridge.service';
3
- import { IRenderManagerService } from '@univerjs/engine-render';
4
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
3
+ import { IRenderContext, IRenderController } from '@univerjs/engine-render';
4
+ import { Workbook, Disposable, ICommandService } from '@univerjs/core';
5
5
 
6
- export declare class HeaderResizeController extends Disposable {
6
+ export declare class HeaderResizeController extends Disposable implements IRenderController {
7
+ private readonly _context;
7
8
  private readonly _sheetSkeletonManagerService;
8
- private readonly _currentUniverService;
9
9
  private readonly _commandService;
10
- private readonly _renderManagerService;
11
10
  private readonly _editorBridgeService;
12
11
  private _currentRow;
13
12
  private _currentColumn;
@@ -19,9 +18,9 @@ export declare class HeaderResizeController extends Disposable {
19
18
  private _resizeHelperShape;
20
19
  private _startOffsetX;
21
20
  private _startOffsetY;
22
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService);
21
+ constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService);
23
22
  dispose(): void;
24
- private _initialize;
23
+ private _init;
25
24
  private _initialHover;
26
25
  private _initialHoverResize;
27
26
  private _clearObserverEvent;
@@ -0,0 +1,20 @@
1
+ import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { IRenderContext } from '@univerjs/engine-render';
3
+ import { Workbook, ICommandService, RxDisposable } from '@univerjs/core';
4
+
5
+ /**
6
+ * This controller controls rendering of the buttons to unhide hidden rows and columns.
7
+ */
8
+ export declare class HeaderUnhideRenderController extends RxDisposable {
9
+ private readonly _context;
10
+ private readonly _sheetSkeletonManagerService;
11
+ private readonly _commandService;
12
+ private _shapes;
13
+ private get _workbook();
14
+ constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
15
+ dispose(): void;
16
+ private _init;
17
+ private _update;
18
+ private _clearShapes;
19
+ private _getSheetObject;
20
+ }
@@ -2,6 +2,13 @@ import { Univer } from '@univerjs/core';
2
2
 
3
3
  export declare function createMenuTestBed(): {
4
4
  univer: Univer;
5
- get: never;
5
+ get: {
6
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
7
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
8
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
9
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
10
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
11
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
12
+ };
6
13
  sheet: import('@univerjs/core').Workbook;
7
14
  };
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import { IUniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
3
+
4
+ interface IActive {
5
+ workbook: Workbook;
6
+ worksheet: Worksheet;
7
+ }
8
+ export declare function deriveStateFromActiveSheet$<T>(univerInstanceService: IUniverInstanceService, defaultValue: T, callback: (active: IActive) => Observable<T>): Observable<T>;
9
+ export {};
@@ -9,12 +9,12 @@ import { IRange, Disposable, ICommandService, IUniverInstanceService } from '@un
9
9
  */
10
10
  export declare class ScrollController extends Disposable {
11
11
  private readonly _sheetSkeletonManagerService;
12
- private readonly _currentUniverService;
12
+ private readonly _univerInstanceService;
13
13
  private readonly _commandService;
14
14
  private readonly _renderManagerService;
15
15
  private readonly _selectionManagerService;
16
16
  private readonly _scrollManagerService;
17
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SelectionManagerService, _scrollManagerService: ScrollManagerService);
17
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SelectionManagerService, _scrollManagerService: ScrollManagerService);
18
18
  scrollToRange(range: IRange): boolean;
19
19
  private _init;
20
20
  private _initCommandListener;
@@ -7,16 +7,17 @@ import { Disposable, ICommandService, IUniverInstanceService, ThemeService } fro
7
7
 
8
8
  export declare class SelectionController extends Disposable {
9
9
  private readonly _sheetSkeletonManagerService;
10
- private readonly _currentUniverService;
10
+ private readonly _univerInstanceService;
11
11
  private readonly _commandService;
12
12
  private readonly _renderManagerService;
13
13
  private readonly _selectionRenderService;
14
14
  private readonly _selectionManagerService;
15
15
  private readonly _themeService;
16
16
  private readonly _definedNamesService;
17
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _themeService: ThemeService, _definedNamesService: IDefinedNamesService);
17
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _selectionManagerService: SelectionManagerService, _themeService: ThemeService, _definedNamesService: IDefinedNamesService);
18
18
  private _initialize;
19
19
  private _initDefinedNameListener;
20
+ private _getSelections;
20
21
  private _getActiveViewport;
21
22
  private _initViewMainListener;
22
23
  private _initThemeChangeListener;
@@ -1,16 +1,26 @@
1
1
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
+ import { IDisposable } from '@wendellhu/redi';
2
3
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
4
+ import { ICommandService, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
5
 
5
- export declare class SheetRenderController extends Disposable {
6
+ export declare class SheetRenderController extends RxDisposable {
6
7
  private readonly _sheetSkeletonManagerService;
7
8
  private readonly _contextService;
8
- private readonly _currentUniverService;
9
+ private readonly _univerInstanceService;
9
10
  private readonly _renderManagerService;
10
11
  private readonly _commandService;
11
- constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _contextService: IContextService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService);
12
+ private _skeletonChangeMutations;
13
+ constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _contextService: IContextService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService);
14
+ /**
15
+ * Register a mutation id that will trigger the skeleton change.
16
+ *
17
+ * @param mutationId the id of the mutation
18
+ * @returns a disposable to unregister the mutation
19
+ */
20
+ registerSkeletonChangingMutations(mutationId: string): IDisposable;
12
21
  private _init;
13
22
  private _initialRenderRefresh;
23
+ private _initSheetDisposeListener;
14
24
  private _initCommandListener;
15
25
  private _initContextListener;
16
26
  }
@@ -0,0 +1,16 @@
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
+ export {};
@@ -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
+ export declare function isForceString(str: string): boolean;
17
+ export declare function extractStringFromForceString(str: string): string;
@@ -1,5 +1,5 @@
1
- import { Engine, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
2
- import { IUniverInstanceService, Nullable } from '@univerjs/core';
1
+ import { Engine, IRenderContext, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
2
+ import { IUniverInstanceService, Nullable, Workbook } from '@univerjs/core';
3
3
 
4
4
  export interface ISheetObjectParam {
5
5
  spreadsheet: Spreadsheet;
@@ -9,7 +9,7 @@ export interface ISheetObjectParam {
9
9
  scene: Scene;
10
10
  engine: Engine;
11
11
  }
12
- export declare function getSheetObject(univerInstanceService: IUniverInstanceService, renderManagerService: IRenderManagerService): Nullable<ISheetObjectParam>;
12
+ export declare function getSheetObject(univerInstanceService: IUniverInstanceService | Workbook, renderManagerService: IRenderManagerService | IRenderContext): Nullable<ISheetObjectParam>;
13
13
  export declare function getCoordByCell(row: number, col: number, scene: Scene, skeleton: SpreadsheetSkeleton): {
14
14
  startX: number;
15
15
  startY: number;
@@ -0,0 +1,17 @@
1
+ import { ICellData, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+
4
+ export interface IDiscreteRange {
5
+ rows: number[];
6
+ cols: number[];
7
+ }
8
+ export declare function rangeToDiscreteRange(range: IRange, accessor: IAccessor, unitId?: string, subUnitId?: string): IDiscreteRange | null;
9
+ export declare function discreteRangeToRange(discreteRange: IDiscreteRange): IRange;
10
+ export declare function virtualizeDiscreteRanges(ranges: IDiscreteRange[]): {
11
+ ranges: IRange[];
12
+ mapFunc: (row: number, col: number) => {
13
+ row: number;
14
+ col: number;
15
+ };
16
+ };
17
+ export declare function generateNullCellValue(range: IDiscreteRange[]): IObjectMatrixPrimitiveType<ICellData>;