@univerjs/sheets-ui 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +21729 -0
- package/lib/cjs/locale/en-US.js +605 -0
- package/lib/cjs/locale/zh-CN.js +442 -0
- package/lib/esm/index.js +21640 -0
- package/lib/esm/locale/en-US.js +584 -0
- package/lib/esm/locale/zh-CN.js +421 -0
- package/lib/index.css +587 -0
- package/lib/types/basics/const/default-univer-sheet-config.d.ts +127 -0
- package/lib/types/basics/const/default-univer-sheet-config.d.ts.map +1 -0
- package/lib/types/basics/const/index.d.ts +3 -0
- package/lib/types/basics/const/index.d.ts.map +1 -0
- package/lib/types/basics/const/plugin-name.d.ts +2 -0
- package/lib/types/basics/const/plugin-name.d.ts.map +1 -0
- package/lib/types/basics/editor/get-editor-object.d.ts +9 -0
- package/lib/types/basics/editor/get-editor-object.d.ts.map +1 -0
- package/lib/types/basics/index.d.ts +3 -0
- package/lib/types/basics/index.d.ts.map +1 -0
- package/lib/types/basics/interfaces/cell.d.ts +6 -0
- package/lib/types/basics/interfaces/cell.d.ts.map +1 -0
- package/lib/types/basics/interfaces/component-config/i-sheet-ui-plugin-config.d.ts +13 -0
- package/lib/types/basics/interfaces/component-config/i-sheet-ui-plugin-config.d.ts.map +1 -0
- package/lib/types/basics/interfaces/component-config/index.d.ts +3 -0
- package/lib/types/basics/interfaces/component-config/index.d.ts.map +1 -0
- package/lib/types/basics/interfaces/component-config/sheet-container-config.d.ts +20 -0
- package/lib/types/basics/interfaces/component-config/sheet-container-config.d.ts.map +1 -0
- package/lib/types/basics/interfaces/component-config/toolbar-config.d.ts +25 -0
- package/lib/types/basics/interfaces/component-config/toolbar-config.d.ts.map +1 -0
- package/lib/types/basics/interfaces/index.d.ts +2 -0
- package/lib/types/basics/interfaces/index.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/auto-fill.controller.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/auto-fill.controller.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +29 -0
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/set-selections.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/set-selections.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/auto-fill.command.d.ts +20 -0
- package/lib/types/commands/commands/auto-fill.command.d.ts.map +1 -0
- package/lib/types/commands/commands/clipboard.command.d.ts +12 -0
- package/lib/types/commands/commands/clipboard.command.d.ts.map +1 -0
- package/lib/types/commands/commands/inline-format.command.d.ts +15 -0
- package/lib/types/commands/commands/inline-format.command.d.ts.map +1 -0
- package/lib/types/commands/commands/refill.command.d.ts +3 -0
- package/lib/types/commands/commands/refill.command.d.ts.map +1 -0
- package/lib/types/commands/commands/rename.command.d.ts +3 -0
- package/lib/types/commands/commands/rename.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-format-painter.command.d.ts +12 -0
- package/lib/types/commands/commands/set-format-painter.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-frozen.command.d.ts +14 -0
- package/lib/types/commands/commands/set-frozen.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-scroll.command.d.ts +24 -0
- package/lib/types/commands/commands/set-scroll.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-selection-frozen.command.d.ts +3 -0
- package/lib/types/commands/commands/set-selection-frozen.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-selection.command.d.ts +40 -0
- package/lib/types/commands/commands/set-selection.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +16 -0
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts.map +1 -0
- package/lib/types/commands/commands/unhide.command.d.ts +3 -0
- package/lib/types/commands/commands/unhide.command.d.ts.map +1 -0
- package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +4 -0
- package/lib/types/commands/operations/activate-cell-edit.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/cell-edit.operation.d.ts +9 -0
- package/lib/types/commands/operations/cell-edit.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/scroll.operation.d.ts +4 -0
- package/lib/types/commands/operations/scroll.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/selection.operation.d.ts +12 -0
- package/lib/types/commands/operations/selection.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/set-editor-resize.operation.d.ts +3 -0
- package/lib/types/commands/operations/set-editor-resize.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/set-format-painter.operation.d.ts +7 -0
- package/lib/types/commands/operations/set-format-painter.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +10 -0
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts.map +1 -0
- package/lib/types/common/keys.d.ts +22 -0
- package/lib/types/common/keys.d.ts.map +1 -0
- package/lib/types/components/border-panel/BorderPanel.d.ts +4 -0
- package/lib/types/components/border-panel/BorderPanel.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +8 -0
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts.map +1 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +3 -0
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts.map +1 -0
- package/lib/types/components/border-panel/index.d.ts +1 -0
- package/lib/types/components/border-panel/index.d.ts.map +1 -0
- package/lib/types/components/border-panel/interface.d.ts +11 -0
- package/lib/types/components/border-panel/interface.d.ts.map +1 -0
- package/lib/types/components/color-picker/index.d.ts +3 -0
- package/lib/types/components/color-picker/index.d.ts.map +1 -0
- package/lib/types/components/color-picker/interface.d.ts +2 -0
- package/lib/types/components/color-picker/interface.d.ts.map +1 -0
- package/lib/types/components/const.d.ts +2 -0
- package/lib/types/components/const.d.ts.map +1 -0
- package/lib/types/components/font-family/FontFamily.d.ts +4 -0
- package/lib/types/components/font-family/FontFamily.d.ts.map +1 -0
- package/lib/types/components/font-family/FontFamilyItem.d.ts +4 -0
- package/lib/types/components/font-family/FontFamilyItem.d.ts.map +1 -0
- package/lib/types/components/font-family/index.d.ts +4 -0
- package/lib/types/components/font-family/index.d.ts.map +1 -0
- package/lib/types/components/font-family/interface.d.ts +10 -0
- package/lib/types/components/font-family/interface.d.ts.map +1 -0
- package/lib/types/components/font-size/FontSize.d.ts +4 -0
- package/lib/types/components/font-size/FontSize.d.ts.map +1 -0
- package/lib/types/components/font-size/index.d.ts +3 -0
- package/lib/types/components/font-size/index.d.ts.map +1 -0
- package/lib/types/components/font-size/interface.d.ts +9 -0
- package/lib/types/components/font-size/interface.d.ts.map +1 -0
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +4 -0
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts.map +1 -0
- package/lib/types/components/menu-item-input/index.d.ts +3 -0
- package/lib/types/components/menu-item-input/index.d.ts.map +1 -0
- package/lib/types/components/menu-item-input/interface.d.ts +7 -0
- package/lib/types/components/menu-item-input/interface.d.ts.map +1 -0
- package/lib/types/components/range-selector/RangeSelector.d.ts +7 -0
- package/lib/types/components/range-selector/RangeSelector.d.ts.map +1 -0
- package/lib/types/controllers/auto-fill.controller.d.ts +32 -0
- package/lib/types/controllers/auto-fill.controller.d.ts.map +1 -0
- package/lib/types/controllers/auto-height.controller.d.ts +15 -0
- package/lib/types/controllers/auto-height.controller.d.ts.map +1 -0
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +25 -0
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts.map +1 -0
- package/lib/types/controllers/clipboard/utils.d.ts +36 -0
- package/lib/types/controllers/clipboard/utils.d.ts.map +1 -0
- package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +20 -0
- package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor/editing.controller.d.ts +16 -0
- package/lib/types/controllers/editor/editing.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor/end-edit.controller.d.ts +36 -0
- package/lib/types/controllers/editor/end-edit.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +28 -0
- package/lib/types/controllers/editor/formula-editor.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor/initialize-editor.controller.d.ts +13 -0
- package/lib/types/controllers/editor/initialize-editor.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor/start-edit.controller.d.ts +49 -0
- package/lib/types/controllers/editor/start-edit.controller.d.ts.map +1 -0
- package/lib/types/controllers/editor-bridge.controller.d.ts +29 -0
- package/lib/types/controllers/editor-bridge.controller.d.ts.map +1 -0
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +17 -0
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts.map +1 -0
- package/lib/types/controllers/freeze.controller.d.ts +57 -0
- package/lib/types/controllers/freeze.controller.d.ts.map +1 -0
- package/lib/types/controllers/header-menu.controller.d.ts +27 -0
- package/lib/types/controllers/header-menu.controller.d.ts.map +1 -0
- package/lib/types/controllers/header-move.controller.d.ts +39 -0
- package/lib/types/controllers/header-move.controller.d.ts.map +1 -0
- package/lib/types/controllers/header-resize.controller.d.ts +27 -0
- package/lib/types/controllers/header-resize.controller.d.ts.map +1 -0
- package/lib/types/controllers/header-unhide.controller.d.ts +21 -0
- package/lib/types/controllers/header-unhide.controller.d.ts.map +1 -0
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +7 -0
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts.map +1 -0
- package/lib/types/controllers/menu/__tests__/menu.spec.d.ts +2 -0
- package/lib/types/controllers/menu/__tests__/menu.spec.d.ts.map +1 -0
- package/lib/types/controllers/menu/__tests__/row-col.menu.spec.d.ts +2 -0
- package/lib/types/controllers/menu/__tests__/row-col.menu.spec.d.ts.map +1 -0
- package/lib/types/controllers/menu/border.menu.d.ts +5 -0
- package/lib/types/controllers/menu/border.menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/clear.menu.d.ts +6 -0
- package/lib/types/controllers/menu/clear.menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/delete.menu.d.ts +7 -0
- package/lib/types/controllers/menu/delete.menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/insert.menu.d.ts +12 -0
- package/lib/types/controllers/menu/insert.menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/menu.d.ts +79 -0
- package/lib/types/controllers/menu/menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/merge.menu.d.ts +8 -0
- package/lib/types/controllers/menu/merge.menu.d.ts.map +1 -0
- package/lib/types/controllers/menu/sheet.menu.d.ts +10 -0
- package/lib/types/controllers/menu/sheet.menu.d.ts.map +1 -0
- package/lib/types/controllers/move-range.controller.d.ts +11 -0
- package/lib/types/controllers/move-range.controller.d.ts.map +1 -0
- package/lib/types/controllers/navigation/navigation.controller.d.ts +8 -0
- package/lib/types/controllers/navigation/navigation.controller.d.ts.map +1 -0
- package/lib/types/controllers/scroll.controller.d.ts +24 -0
- package/lib/types/controllers/scroll.controller.d.ts.map +1 -0
- package/lib/types/controllers/selection.controller.d.ts +27 -0
- package/lib/types/controllers/selection.controller.d.ts.map +1 -0
- package/lib/types/controllers/sheet-render.controller.d.ts +19 -0
- package/lib/types/controllers/sheet-render.controller.d.ts.map +1 -0
- package/lib/types/controllers/sheet-ui.controller.d.ts +15 -0
- package/lib/types/controllers/sheet-ui.controller.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +12 -0
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +4 -0
- package/lib/types/controllers/shortcuts/operation.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +24 -0
- package/lib/types/controllers/shortcuts/selection.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/style.shortcut.d.ts +6 -0
- package/lib/types/controllers/shortcuts/style.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/utils.d.ts +9 -0
- package/lib/types/controllers/shortcuts/utils.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +3 -0
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/shortcuts/view.shortcut.d.ts +5 -0
- package/lib/types/controllers/shortcuts/view.shortcut.d.ts.map +1 -0
- package/lib/types/controllers/status-bar.controller.d.ts +16 -0
- package/lib/types/controllers/status-bar.controller.d.ts.map +1 -0
- package/lib/types/controllers/utils/component-tools.d.ts +30 -0
- package/lib/types/controllers/utils/component-tools.d.ts.map +1 -0
- package/lib/types/controllers/zoom.controller.d.ts +24 -0
- package/lib/types/controllers/zoom.controller.d.ts.map +1 -0
- package/lib/types/index.d.ts +26 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +471 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +436 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +65 -0
- package/lib/types/services/auto-fill/auto-fill.service.d.ts.map +1 -0
- package/lib/types/services/auto-fill/rules.d.ts +9 -0
- package/lib/types/services/auto-fill/rules.d.ts.map +1 -0
- package/lib/types/services/auto-fill/tools.d.ts +96 -0
- package/lib/types/services/auto-fill/tools.d.ts.map +1 -0
- package/lib/types/services/auto-fill/type.d.ts +54 -0
- package/lib/types/services/auto-fill/type.d.ts.map +1 -0
- package/lib/types/services/clipboard/__tests__/clipboard-service.spec.d.ts +2 -0
- package/lib/types/services/clipboard/__tests__/clipboard-service.spec.d.ts.map +1 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +21 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts.map +1 -0
- package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts +23 -0
- package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +104 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts +20 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +27 -0
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +3 -0
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +4 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +4 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +16 -0
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +5 -0
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts.map +1 -0
- package/lib/types/services/clipboard/type.d.ts +120 -0
- package/lib/types/services/clipboard/type.d.ts.map +1 -0
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +9 -0
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts.map +1 -0
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +43 -0
- package/lib/types/services/editor/cell-editor-manager.service.d.ts.map +1 -0
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +30 -0
- package/lib/types/services/editor/formula-editor-manager.service.d.ts.map +1 -0
- package/lib/types/services/editor-bridge.service.d.ts +79 -0
- package/lib/types/services/editor-bridge.service.d.ts.map +1 -0
- package/lib/types/services/format-painter/format-painter.service.d.ts +29 -0
- package/lib/types/services/format-painter/format-painter.service.d.ts.map +1 -0
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +28 -0
- package/lib/types/services/mark-selection/mark-selection.service.d.ts.map +1 -0
- package/lib/types/services/scroll-manager.service.d.ts +38 -0
- package/lib/types/services/scroll-manager.service.d.ts.map +1 -0
- package/lib/types/services/selection/selection-render-model.d.ts +45 -0
- package/lib/types/services/selection/selection-render-model.d.ts.map +1 -0
- package/lib/types/services/selection/selection-render.service.d.ts +165 -0
- package/lib/types/services/selection/selection-render.service.d.ts.map +1 -0
- package/lib/types/services/selection/selection-shape-extension.d.ts +45 -0
- package/lib/types/services/selection/selection-shape-extension.d.ts.map +1 -0
- package/lib/types/services/selection/selection-shape.d.ts +114 -0
- package/lib/types/services/selection/selection-shape.d.ts.map +1 -0
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +39 -0
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts.map +1 -0
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +47 -0
- package/lib/types/services/sheet-skeleton-manager.service.d.ts.map +1 -0
- package/lib/types/services/status-bar.service.d.ts +26 -0
- package/lib/types/services/status-bar.service.d.ts.map +1 -0
- package/lib/types/sheets-ui-plugin.d.ts +13 -0
- package/lib/types/sheets-ui-plugin.d.ts.map +1 -0
- package/lib/types/views/count-bar/CountBar.d.ts +8 -0
- package/lib/types/views/count-bar/CountBar.d.ts.map +1 -0
- package/lib/types/views/count-bar/index.d.ts +2 -0
- package/lib/types/views/count-bar/index.d.ts.map +1 -0
- package/lib/types/views/count-bar/zoom-slider.d.ts +3 -0
- package/lib/types/views/count-bar/zoom-slider.d.ts.map +1 -0
- package/lib/types/views/editor-container/EditorContainer.d.ts +10 -0
- package/lib/types/views/editor-container/EditorContainer.d.ts.map +1 -0
- package/lib/types/views/editor-container/index.d.ts +2 -0
- package/lib/types/views/editor-container/index.d.ts.map +1 -0
- package/lib/types/views/formula-bar/FormulaBar.d.ts +3 -0
- package/lib/types/views/formula-bar/FormulaBar.d.ts.map +1 -0
- package/lib/types/views/formula-bar/index.d.ts +2 -0
- package/lib/types/views/formula-bar/index.d.ts.map +1 -0
- package/lib/types/views/header-menu-shape.d.ts +23 -0
- package/lib/types/views/header-menu-shape.d.ts.map +1 -0
- package/lib/types/views/header-resize-shape.d.ts +27 -0
- package/lib/types/views/header-resize-shape.d.ts.map +1 -0
- package/lib/types/views/header-unhide-shape.d.ts +35 -0
- package/lib/types/views/header-unhide-shape.d.ts.map +1 -0
- package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +14 -0
- package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts.map +1 -0
- package/lib/types/views/operate-container/OperateContainer.d.ts +3 -0
- package/lib/types/views/operate-container/OperateContainer.d.ts.map +1 -0
- package/lib/types/views/operate-container/index.d.ts +2 -0
- package/lib/types/views/operate-container/index.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/SheetBar.d.ts +3 -0
- package/lib/types/views/sheet-bar/SheetBar.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +20 -0
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +14 -0
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +14 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +5 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/animate.d.ts +29 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/animate.d.ts.map +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +142 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts.map +1 -0
- package/lib/types/views/sheet-canvas-view.d.ts +20 -0
- package/lib/types/views/sheet-canvas-view.d.ts.map +1 -0
- package/lib/types/views/sheet-container/SheetContainer.d.ts +11 -0
- package/lib/types/views/sheet-container/SheetContainer.d.ts.map +1 -0
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +15 -0
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts.map +1 -0
- package/lib/types/views/status-bar/StatusBar.d.ts +3 -0
- package/lib/types/views/status-bar/StatusBar.d.ts.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/count-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-slider.d.ts","sourceRoot":"","sources":["../../../../src/views/count-bar/zoom-slider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,wBAAgB,UAAU,sBAuCzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorContainer.d.ts","sourceRoot":"","sources":["../../../../src/views/editor-container/EditorContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,UAAU,iBAAiB;CAAG;AAW9B;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoFvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/editor-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../../../src/views/formula-bar/FormulaBar.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgB3D,wBAAgB,UAAU,sBAkHzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/formula-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IShapeProps } from '@univerjs/engine-render';
|
|
2
|
+
import { Shape } from '@univerjs/engine-render';
|
|
3
|
+
export interface IHeaderMenuShapeProps extends IShapeProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
mode?: HEADER_MENU_SHAPE_TYPE;
|
|
6
|
+
iconRatio?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare enum HEADER_MENU_SHAPE_TYPE {
|
|
9
|
+
NORMAL = 0,
|
|
10
|
+
HIGHLIGHT = 1
|
|
11
|
+
}
|
|
12
|
+
export declare const HEADER_MENU_SHAPE_CIRCLE_FILL = "rgba(0, 0, 0, 0.15)";
|
|
13
|
+
export declare const HEADER_MENU_SHAPE_TRIANGLE_FILL = "rgb(0, 0, 0)";
|
|
14
|
+
export declare const HEADER_MENU_BACKGROUND_COLOR = "rgb(255, 255, 255, 1)";
|
|
15
|
+
export declare class HeaderMenuShape<T extends IHeaderMenuShapeProps = IHeaderMenuShapeProps> extends Shape<T> {
|
|
16
|
+
private _size;
|
|
17
|
+
private _iconRatio;
|
|
18
|
+
private _mode;
|
|
19
|
+
constructor(key?: string, props?: T);
|
|
20
|
+
setShapeProps(props?: T): void;
|
|
21
|
+
protected _draw(ctx: CanvasRenderingContext2D): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=header-menu-shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-menu-shape.d.ts","sourceRoot":"","sources":["../../../src/views/header-menu-shape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAwB,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,oBAAY,sBAAsB;IAC9B,MAAM,IAAA;IACN,SAAS,IAAA;CACZ;AAED,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AAEpE,qBAAa,eAAe,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,CAAE,SAAQ,KAAK,CAAC,CAAC,CAAC;IAClG,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,KAAK,CAAyD;gBAE1D,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAKnC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;cAeJ,KAAK,CAAC,GAAG,EAAE,wBAAwB;CA4BzD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IShapeProps } from '@univerjs/engine-render';
|
|
2
|
+
import { Shape } from '@univerjs/engine-render';
|
|
3
|
+
export interface IHeaderMenuShapeResizeProps extends IShapeProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
mode?: HEADER_RESIZE_SHAPE_TYPE;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare enum HEADER_RESIZE_SHAPE_TYPE {
|
|
9
|
+
VERTICAL = 0,
|
|
10
|
+
HORIZONTAL = 1
|
|
11
|
+
}
|
|
12
|
+
export declare const HEADER_MENU_SHAPE_RECT_BACKGROUND_FILL = "rgba(120, 120, 120, 0.01)";
|
|
13
|
+
export declare const HEADER_MENU_SHAPE_RECT_FILL = "rgb(68, 71, 70)";
|
|
14
|
+
export declare const HEADER_MENU_SHAPE_WIDTH_HEIGHT = 12;
|
|
15
|
+
export declare const HEADER_MENU_SHAPE_THUMB_SIZE = 4;
|
|
16
|
+
export declare class HeaderMenuResizeShape<T extends IHeaderMenuShapeResizeProps = IHeaderMenuShapeResizeProps> extends Shape<T> {
|
|
17
|
+
private _size;
|
|
18
|
+
private _color;
|
|
19
|
+
private _mode;
|
|
20
|
+
constructor(key?: string, props?: T);
|
|
21
|
+
get size(): number;
|
|
22
|
+
get mode(): HEADER_RESIZE_SHAPE_TYPE;
|
|
23
|
+
get color(): string;
|
|
24
|
+
protected _draw(ctx: CanvasRenderingContext2D): void;
|
|
25
|
+
setShapeProps(props?: T): this;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=header-resize-shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-resize-shape.d.ts","sourceRoot":"","sources":["../../../src/views/header-resize-shape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAQ,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,wBAAwB;IAChC,QAAQ,IAAA;IACR,UAAU,IAAA;CACb;AAED,eAAO,MAAM,sCAAsC,8BAA8B,CAAC;AAElF,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAE7D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,qBAAa,qBAAqB,CAC9B,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,CACrE,SAAQ,KAAK,CAAC,CAAC,CAAC;IACd,OAAO,CAAC,KAAK,CAA0C;IAEvD,OAAO,CAAC,MAAM,CAAuC;IAErD,OAAO,CAAC,KAAK,CAA+D;gBAEhE,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAKnC,IAAI,IAAI,WAEP;IAED,IAAI,IAAI,6BAEP;IAED,IAAI,KAAK,WAER;cAEkB,KAAK,CAAC,GAAG,EAAE,wBAAwB;IA0DtD,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;CA2B1B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IShapeProps } from '@univerjs/engine-render';
|
|
2
|
+
import { Shape } from '@univerjs/engine-render';
|
|
3
|
+
export declare const enum HeaderUnhideShapeType {
|
|
4
|
+
ROW = 0,
|
|
5
|
+
COLUMN = 1
|
|
6
|
+
}
|
|
7
|
+
export interface IHeaderUnhideShapeProps extends IShapeProps {
|
|
8
|
+
/** On row headers or on column headers. */
|
|
9
|
+
type: HeaderUnhideShapeType;
|
|
10
|
+
/** If the shape is hovered. If it's hovered it should have a border. */
|
|
11
|
+
hovered: boolean;
|
|
12
|
+
/** This hidden position has previous rows/cols. */
|
|
13
|
+
hasPrevious: boolean;
|
|
14
|
+
/** This hidden position has succeeding rows/cols. */
|
|
15
|
+
hasNext: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const UNHIDE_ICON_SIZE = 12;
|
|
18
|
+
export declare class HeaderUnhideShape<T extends IHeaderUnhideShapeProps = IHeaderUnhideShapeProps> extends Shape<T> {
|
|
19
|
+
private _size;
|
|
20
|
+
private _iconRatio;
|
|
21
|
+
private _hovered;
|
|
22
|
+
private _hasPrevious;
|
|
23
|
+
private _hasNext;
|
|
24
|
+
private _unhideType;
|
|
25
|
+
constructor(key?: string, props?: T, onClick?: () => void);
|
|
26
|
+
setShapeProps(props: Partial<IHeaderUnhideShapeProps>): void;
|
|
27
|
+
protected _draw(ctx: CanvasRenderingContext2D): void;
|
|
28
|
+
private _drawOnRow;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param ctx
|
|
32
|
+
*/
|
|
33
|
+
private _drawOnCol;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=header-unhide-shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-unhide-shape.d.ts","sourceRoot":"","sources":["../../../src/views/header-unhide-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAwB,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAItE,0BAAkB,qBAAqB;IACnC,GAAG,IAAA;IACH,MAAM,IAAA;CACT;AAED,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IACxD,2CAA2C;IAC3C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,WAAW,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAGnC,qBAAa,iBAAiB,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,KAAK,CAAC,CAAC,CAAC;IACxG,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,WAAW,CAAyB;gBAEhC,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI;IAWzD,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG,IAAI;cAoBzC,KAAK,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI;IAQ7D,OAAO,CAAC,UAAU;IAoDlB;;;OAGG;IACH,OAAO,CAAC,UAAU;CAmDrB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { APPLY_TYPE } from '../../services/auto-fill/type';
|
|
3
|
+
export interface IAnchorPoint {
|
|
4
|
+
row: number;
|
|
5
|
+
col: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IAutoFillPopupMenuItem {
|
|
8
|
+
label: string;
|
|
9
|
+
value?: APPLY_TYPE;
|
|
10
|
+
index: number;
|
|
11
|
+
disable: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const AutoFillPopupMenu: React.FC<{}>;
|
|
14
|
+
//# sourceMappingURL=AutoFillPopupMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoFillPopupMenu.d.ts","sourceRoot":"","sources":["../../../../src/views/operate-container/AutoFillPopupMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAUhE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAK3D,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CACpB;AAOD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,CA0J1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperateContainer.d.ts","sourceRoot":"","sources":["../../../../src/views/operate-container/OperateContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/operate-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetBar.d.ts","sourceRoot":"","sources":["../../../../src/views/sheet-bar/SheetBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,eAAO,MAAM,QAAQ,yBAkEpB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IBaseSheetBarButtonProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/** Semantic DOM class */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Semantic DOM style */
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/**
|
|
9
|
+
* Disabled state of button
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Set the handler to handle `click` event */
|
|
14
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Button Component
|
|
18
|
+
*/
|
|
19
|
+
export declare function SheetBarButton(props: IBaseSheetBarButtonProps): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=SheetBarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetBarButton.d.ts","sourceRoot":"","sources":["../../../../../src/views/sheet-bar/sheet-bar-button/SheetBarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,wBAAwB;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,wBAAwB,qBAiB7D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ISheetBarMenuItem {
|
|
3
|
+
label?: string;
|
|
4
|
+
hidden?: boolean;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
index?: string;
|
|
7
|
+
sheetId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ISheetBarMenuProps {
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
onClick?: (e?: MouseEvent) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function SheetBarMenu(props: ISheetBarMenuProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=SheetBarMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetBarMenu.d.ts","sourceRoot":"","sources":["../../../../../src/views/sheet-bar/sheet-bar-menu/SheetBarMenu.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,qBA2HrD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BooleanNumber } from '@univerjs/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IBaseSheetBarProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
children?: any[];
|
|
6
|
+
index?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
sheetId?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
hidden?: BooleanNumber;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function SheetBarItem(props: IBaseSheetBarProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=SheetBarItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetBarItem.d.ts","sourceRoot":"","sources":["../../../../../src/views/sheet-bar/sheet-bar-tabs/SheetBarItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,qBA0DrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetBarTabs.d.ts","sourceRoot":"","sources":["../../../../../src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAS3D,MAAM,WAAW,kBAAkB;CAAG;AAEtC,wBAAgB,YAAY,sBAkM3B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface AnimateConfig {
|
|
2
|
+
loop: boolean;
|
|
3
|
+
begin: number;
|
|
4
|
+
end: number;
|
|
5
|
+
duration: number;
|
|
6
|
+
delay: number;
|
|
7
|
+
type: string;
|
|
8
|
+
receive: (v: number) => void;
|
|
9
|
+
success: (v: number) => void;
|
|
10
|
+
cancel: (v: number) => void;
|
|
11
|
+
complete: (v: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare enum AnimateStatus {
|
|
14
|
+
Request = 0,
|
|
15
|
+
Cancel = 1
|
|
16
|
+
}
|
|
17
|
+
export declare class Animate {
|
|
18
|
+
protected _config: AnimateConfig;
|
|
19
|
+
protected _status: AnimateStatus;
|
|
20
|
+
protected _start: number;
|
|
21
|
+
protected _handle: number;
|
|
22
|
+
protected _delayHandle: number | null;
|
|
23
|
+
constructor(config: Partial<AnimateConfig>);
|
|
24
|
+
static success(...animates: Animate[]): Promise<void>;
|
|
25
|
+
request(): void;
|
|
26
|
+
cancel(): void;
|
|
27
|
+
protected _fakeHandle(): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=animate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../../../../../../src/views/sheet-bar/sheet-bar-tabs/utils/animate.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAuBD,oBAAY,aAAa;IACrB,OAAO,IAAA;IACP,MAAM,IAAA;CACT;AAED,qBAAa,OAAO;IAChB,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAEjC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAyB;IAEzD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAK;IAE7B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAK;IAE9B,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAEjC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC;IAe1C,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBrD,OAAO,IAAI,IAAI;IAef,MAAM,IAAI,IAAI;IAMd,SAAS,CAAC,WAAW,IAAI,IAAI;CA+BhC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Animate } from './animate';
|
|
2
|
+
export interface IScrollState {
|
|
3
|
+
leftEnd: boolean;
|
|
4
|
+
rightEnd: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface SlideTabBarConfig {
|
|
7
|
+
slideTabBarClassName: string;
|
|
8
|
+
slideTabBarItemActiveClassName: string;
|
|
9
|
+
slideTabBarItemClassName: string;
|
|
10
|
+
slideTabBarSpanEditClassName: string;
|
|
11
|
+
slideTabBarContainer: HTMLDivElement | null;
|
|
12
|
+
slideTabBarItemAutoSort: boolean;
|
|
13
|
+
currentIndex: number;
|
|
14
|
+
onSlideEnd: (event: MouseEvent, compareIndex: number) => void;
|
|
15
|
+
onChangeName: (id: string, name: string) => void;
|
|
16
|
+
onChangeTab: (event: FocusEvent, id: string) => void;
|
|
17
|
+
onScroll: (state: IScrollState) => void;
|
|
18
|
+
onEmptyAlert: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface SlideTabItemAnimate {
|
|
21
|
+
translateX: (x: number) => void;
|
|
22
|
+
cancel: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare class SlideTabItem {
|
|
25
|
+
_slideTabItem: HTMLElement;
|
|
26
|
+
_animate: Animate | null;
|
|
27
|
+
_midline: number;
|
|
28
|
+
_translateX: number;
|
|
29
|
+
_scrollbar: SlideScrollbar;
|
|
30
|
+
_slideTabBar: SlideTabBar;
|
|
31
|
+
_editMode: boolean;
|
|
32
|
+
_placeholder: HTMLElement | null;
|
|
33
|
+
constructor(slideTabItem: HTMLElement, slideTabBar: SlideTabBar);
|
|
34
|
+
static midline(item: SlideTabItem): number;
|
|
35
|
+
static leftLine(item: SlideTabItem): number;
|
|
36
|
+
static rightLine(item: SlideTabItem): number;
|
|
37
|
+
static make(nodeList: NodeList, slideTabBar: SlideTabBar): SlideTabItem[];
|
|
38
|
+
getSlideTabItem(): HTMLElement;
|
|
39
|
+
isEditMode(): boolean;
|
|
40
|
+
classList(): DOMTokenList;
|
|
41
|
+
primeval(): HTMLElement;
|
|
42
|
+
translateX(x: number): 1 | -1 | 0;
|
|
43
|
+
editor(callback?: (event: FocusEvent) => void): void;
|
|
44
|
+
emptyCheck(): boolean;
|
|
45
|
+
animate(): SlideTabItemAnimate;
|
|
46
|
+
after(other: SlideTabItem): void;
|
|
47
|
+
update(): void;
|
|
48
|
+
disableFixed(): void;
|
|
49
|
+
enableFixed(): void;
|
|
50
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, action: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
51
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, action: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
52
|
+
getScrollbar(): SlideScrollbar;
|
|
53
|
+
getMidLine(): number;
|
|
54
|
+
getBoundingRect(): DOMRect;
|
|
55
|
+
getWidth(): number;
|
|
56
|
+
getTranslateXDirection(): 1 | -1 | 0;
|
|
57
|
+
equals(other: SlideTabItem | null): boolean | null;
|
|
58
|
+
getId(): string;
|
|
59
|
+
}
|
|
60
|
+
export declare class SlideScrollbar {
|
|
61
|
+
protected _slideTabBar: SlideTabBar;
|
|
62
|
+
protected _scrollX: number;
|
|
63
|
+
constructor(slideTabBar: SlideTabBar);
|
|
64
|
+
scrollX(x: number): void;
|
|
65
|
+
scrollRight(): void;
|
|
66
|
+
getScrollX(): number;
|
|
67
|
+
}
|
|
68
|
+
export declare class SlideTabBar {
|
|
69
|
+
/** Time in milliseconds to wait to raise long press events if button is still pressed */
|
|
70
|
+
static LongPressDelay: number;
|
|
71
|
+
/** Time in milliseconds with two consecutive clicks will be considered as a double click */
|
|
72
|
+
static DoubleClickDelay: number;
|
|
73
|
+
protected _activeTabItemIndex: number;
|
|
74
|
+
protected _slideTabBar: HTMLElement;
|
|
75
|
+
protected _slideTabItems: SlideTabItem[];
|
|
76
|
+
protected _config: SlideTabBarConfig;
|
|
77
|
+
protected _downActionX: number;
|
|
78
|
+
protected _moveActionX: number;
|
|
79
|
+
protected _compareIndex: number;
|
|
80
|
+
protected _activeTabItem: SlideTabItem | null;
|
|
81
|
+
protected _moveAction: (e: MouseEvent) => void;
|
|
82
|
+
protected _upAction: (e: MouseEvent) => void;
|
|
83
|
+
protected _downAction: (e: MouseEvent) => void;
|
|
84
|
+
protected _wheelAction: (e: WheelEvent) => void;
|
|
85
|
+
protected _scrollIncremental: number;
|
|
86
|
+
protected _compareDirection: number;
|
|
87
|
+
protected _autoScrollTime: number | null;
|
|
88
|
+
protected _slideScrollbar: SlideScrollbar;
|
|
89
|
+
protected _longPressTimer: number | null;
|
|
90
|
+
/**
|
|
91
|
+
* left border line
|
|
92
|
+
*/
|
|
93
|
+
protected _leftBoundingLine: number;
|
|
94
|
+
/**
|
|
95
|
+
* right border line
|
|
96
|
+
*/
|
|
97
|
+
protected _rightBoundingLine: number;
|
|
98
|
+
/**
|
|
99
|
+
* The distance required to move to the left border
|
|
100
|
+
*/
|
|
101
|
+
protected _leftMoveX: number;
|
|
102
|
+
/**
|
|
103
|
+
* The distance required to move to the right border
|
|
104
|
+
*/
|
|
105
|
+
protected _rightMoveX: number;
|
|
106
|
+
constructor(config: Partial<SlideTabBarConfig>);
|
|
107
|
+
static checkedSkipSlide(event: MouseEvent): boolean;
|
|
108
|
+
static keepLastIndex(inputHtml: HTMLElement): void;
|
|
109
|
+
static keepSelectAll(inputHtml: HTMLElement): void;
|
|
110
|
+
/**
|
|
111
|
+
* The current instance is persistent, but some parameters need to be updated after refreshing
|
|
112
|
+
* @param currentIndex
|
|
113
|
+
*/
|
|
114
|
+
update(currentIndex: number): void;
|
|
115
|
+
primeval(): HTMLElement;
|
|
116
|
+
updateItems(): void;
|
|
117
|
+
getScrollbar(): SlideScrollbar;
|
|
118
|
+
getConfig(): SlideTabBarConfig;
|
|
119
|
+
getBoundingRect(): DOMRect;
|
|
120
|
+
getSlideTabItems(): SlideTabItem[];
|
|
121
|
+
getActiveItem(): SlideTabItem | null;
|
|
122
|
+
isLeftEnd(): boolean;
|
|
123
|
+
isRightEnd(): boolean;
|
|
124
|
+
addListener(): void;
|
|
125
|
+
removeListener(): void;
|
|
126
|
+
setScroll(x: number): void;
|
|
127
|
+
flipPage(x: number): void;
|
|
128
|
+
calculateLeftScrollX(shouldFlipPage?: boolean): number;
|
|
129
|
+
calculateRightScrollX(shouldFlipPage?: boolean): number;
|
|
130
|
+
destroy(): void;
|
|
131
|
+
protected _hasEditItem(): boolean;
|
|
132
|
+
protected _autoScrollFrame(): void;
|
|
133
|
+
protected _startAutoScroll(): void;
|
|
134
|
+
protected _closeAutoScroll(): void;
|
|
135
|
+
protected _scrollLeft(event: MouseEvent): void;
|
|
136
|
+
protected _scrollRight(event: MouseEvent): void;
|
|
137
|
+
protected _sortedItems(): void;
|
|
138
|
+
protected _compareLeft(): void;
|
|
139
|
+
protected _compareRight(): void;
|
|
140
|
+
protected _initConfig(): void;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=slide-tab-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slide-tab-bar.d.ts","sourceRoot":"","sources":["../../../../../../src/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
4
|
+
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
5
|
+
export declare class SheetCanvasView {
|
|
6
|
+
private readonly _currentUniverService;
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _renderManagerService;
|
|
9
|
+
private readonly _selectionRenderService;
|
|
10
|
+
private readonly _sheetSkeletonManagerService;
|
|
11
|
+
private _scene;
|
|
12
|
+
private _currentWorkbook;
|
|
13
|
+
private _loadedMap;
|
|
14
|
+
private _isLoadedEditor;
|
|
15
|
+
constructor(_currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
16
|
+
private _addNewRender;
|
|
17
|
+
private _addComponent;
|
|
18
|
+
private _addViewport;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=sheet-canvas-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-canvas-view.d.ts","sourceRoot":"","sources":["../../../src/views/sheet-canvas-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAgC,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EACH,qBAAqB,EAUxB,MAAM,yBAAyB,CAAC;AAUjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAEzF,qBACa,eAAe;IAUI,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAE7D,OAAO,CAAC,QAAQ,CAAC,uBAAuB;IACH,OAAO,CAAC,QAAQ,CAAC,4BAA4B;IAdtF,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,gBAAgB,CAAY;IAEpC,OAAO,CAAC,UAAU,CAAa;IAE/B,OAAO,CAAC,eAAe,CAAS;gBAGa,qBAAqB,EAAE,sBAAsB,EACpD,eAAe,EAAE,eAAe,EAC1B,qBAAqB,EAAE,qBAAqB,EAEnE,uBAAuB,EAAE,uBAAuB,EACX,4BAA4B,EAAE,2BAA2B;IAiBnH,OAAO,CAAC,aAAa;IAiDrB,OAAO,CAAC,aAAa;IA2CrB,OAAO,CAAC,YAAY;CAmKvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ISheetsUIPluginConfig } from '../../basics';
|
|
3
|
+
export interface IBaseSheetContainerProps {
|
|
4
|
+
config: ISheetsUIPluginConfig;
|
|
5
|
+
changeLocale: (locale: string) => void;
|
|
6
|
+
methods?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function RenderSheetFooter(): React.JSX.Element;
|
|
9
|
+
export declare function RenderSheetHeader(): React.JSX.Element;
|
|
10
|
+
export declare function RenderSheetContent(): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SheetContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../src/views/sheet-container/SheetContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAS1D,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,wBAAgB,iBAAiB,sBAQhC;AAED,wBAAgB,iBAAiB,sBAMhC;AAED,wBAAgB,kBAAkB,sBAOjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FUNCTION_NAMES } from '@univerjs/engine-formula';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IStatisticItem {
|
|
4
|
+
name: FUNCTION_NAMES;
|
|
5
|
+
value: number;
|
|
6
|
+
show: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const functionDisplayNames: FunctionNameMap;
|
|
9
|
+
interface FunctionNameMap {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CopyableStatisticItem: React.FC<IStatisticItem>;
|
|
13
|
+
export declare function formatNumber(num: number): string;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=CopyableStatisticItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyableStatisticItem.d.ts","sourceRoot":"","sources":["../../../../src/views/status-bar/CopyableStatisticItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,oBAAoB,EAAE,eAOlC,CAAC;AACF,UAAU,eAAe;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoB1D,CAAC;AAEF,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UASvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../../src/views/status-bar/StatusBar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,eAAO,MAAM,SAAS,iCAiIrB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs/sheets-ui",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "UniverSheet normal ui-plugin-sheets",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "./lib/cjs/index.js",
|
|
9
|
+
"module": "./lib/esm/index.js",
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./lib/esm/index.js",
|
|
17
|
+
"require": "./lib/cjs/index.js",
|
|
18
|
+
"types": "./lib/types/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./*": {
|
|
21
|
+
"import": "./lib/esm/*",
|
|
22
|
+
"require": "./lib/cjs/*",
|
|
23
|
+
"types": "./lib/types/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./locale/*": {
|
|
26
|
+
"import": "./lib/esm/locale/*.js",
|
|
27
|
+
"require": "./lib/cjs/locale/*.js",
|
|
28
|
+
"types": "./lib/types/index.d.ts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"directories": {
|
|
32
|
+
"lib": "lib"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"lib"
|
|
36
|
+
],
|
|
37
|
+
"private": false,
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@ctrl/tinycolor": "^4.0.2",
|
|
40
|
+
"@univerjs/icons": "^0.1.14",
|
|
41
|
+
"@wendellhu/redi": "^0.12.11",
|
|
42
|
+
"clsx": "^2.0.0",
|
|
43
|
+
"rxjs": "^7.8.1",
|
|
44
|
+
"@univerjs/docs": "0.1.0-alpha.1",
|
|
45
|
+
"@univerjs/engine-formula": "0.1.0-alpha.1",
|
|
46
|
+
"@univerjs/engine-render": "0.1.0-alpha.1",
|
|
47
|
+
"@univerjs/sheets": "0.1.0-alpha.1",
|
|
48
|
+
"@univerjs/core": "0.1.0-alpha.1",
|
|
49
|
+
"@univerjs/design": "0.1.0-alpha.1",
|
|
50
|
+
"@univerjs/ui": "0.1.0-alpha.1"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/react": "^18.2.41",
|
|
54
|
+
"@vitest/coverage-istanbul": "^0.34.6",
|
|
55
|
+
"esbuild": "^0.19.8",
|
|
56
|
+
"happy-dom": "^12.10.3",
|
|
57
|
+
"less": "^4.2.0",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"ts-node": "^10.9.1",
|
|
60
|
+
"typescript": "^5.3.2",
|
|
61
|
+
"vitest": "^0.34.6"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": ">=16.9.0"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"test": "vitest run",
|
|
68
|
+
"test:watch": "vitest",
|
|
69
|
+
"coverage": "vitest run --coverage",
|
|
70
|
+
"esbuild": "node ./esbuild.config.mjs && tsc -p tsconfig.esbuild.json"
|
|
71
|
+
}
|
|
72
|
+
}
|