@difizen/libro-core 0.0.0-snapshot-20241017072317
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 +280 -0
- package/es/add-cell/index.d.ts +4 -0
- package/es/add-cell/index.d.ts.map +1 -0
- package/es/add-cell/index.js +3 -0
- package/es/add-cell/index.less +38 -0
- package/es/add-cell/libro-add-cell-module.d.ts +3 -0
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-module.js +4 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +11 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-slot-contribution.js +59 -0
- package/es/add-cell/libro-add-cell-view.d.ts +21 -0
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-view.js +121 -0
- package/es/cell/index.d.ts +10 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +9 -0
- package/es/cell/libro-cell-contribution.d.ts +12 -0
- package/es/cell/libro-cell-contribution.d.ts.map +1 -0
- package/es/cell/libro-cell-contribution.js +47 -0
- package/es/cell/libro-cell-model.d.ts +29 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -0
- package/es/cell/libro-cell-model.js +130 -0
- package/es/cell/libro-cell-module.d.ts +10 -0
- package/es/cell/libro-cell-module.d.ts.map +1 -0
- package/es/cell/libro-cell-module.js +30 -0
- package/es/cell/libro-cell-protocol.d.ts +44 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -0
- package/es/cell/libro-cell-protocol.js +11 -0
- package/es/cell/libro-cell-service.d.ts +28 -0
- package/es/cell/libro-cell-service.d.ts.map +1 -0
- package/es/cell/libro-cell-service.js +245 -0
- package/es/cell/libro-cell-view.d.ts +74 -0
- package/es/cell/libro-cell-view.d.ts.map +1 -0
- package/es/cell/libro-cell-view.js +239 -0
- package/es/cell/libro-edit-cell-view.d.ts +44 -0
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -0
- package/es/cell/libro-edit-cell-view.js +256 -0
- package/es/cell/libro-executable-cell-model.d.ts +14 -0
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-model.js +7 -0
- package/es/cell/libro-executable-cell-view.d.ts +34 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-view.js +74 -0
- package/es/cell/libro-markdown-cell-model.d.ts +9 -0
- package/es/cell/libro-markdown-cell-model.d.ts.map +1 -0
- package/es/cell/libro-markdown-cell-model.js +7 -0
- package/es/collapse-service.d.ts +36 -0
- package/es/collapse-service.d.ts.map +1 -0
- package/es/collapse-service.js +55 -0
- package/es/command/document-commands.d.ts +5 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +21 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +6 -0
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +40 -0
- package/es/command/libro-command-contribution.d.ts +13 -0
- package/es/command/libro-command-contribution.d.ts.map +1 -0
- package/es/command/libro-command-contribution.js +1842 -0
- package/es/command/libro-command-register.d.ts +21 -0
- package/es/command/libro-command-register.d.ts.map +1 -0
- package/es/command/libro-command-register.js +111 -0
- package/es/command/module.d.ts +3 -0
- package/es/command/module.d.ts.map +1 -0
- package/es/command/module.js +4 -0
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +472 -0
- package/es/components/cell-protocol.d.ts +20 -0
- package/es/components/cell-protocol.d.ts.map +1 -0
- package/es/components/cell-protocol.js +4 -0
- package/es/components/dnd-cell-item-render.d.ts +16 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -0
- package/es/components/dnd-cell-item-render.js +364 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts +9 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -0
- package/es/components/dnd-component/custom-drag-layer.js +140 -0
- package/es/components/dnd-component/default-dnd-content.d.ts +11 -0
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -0
- package/es/components/dnd-component/default-dnd-content.js +292 -0
- package/es/components/dnd-component/dnd-context.d.ts +3 -0
- package/es/components/dnd-component/dnd-context.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-context.js +20 -0
- package/es/components/dnd-component/dnd-list.d.ts +14 -0
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-list.js +182 -0
- package/es/components/dnd-component/index.d.ts +5 -0
- package/es/components/dnd-component/index.d.ts.map +1 -0
- package/es/components/dnd-component/index.js +4 -0
- package/es/components/dnd-component/index.less +8 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
- package/es/components/dnd-component/overscanIndices-getter.js +58 -0
- package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
- package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
- package/es/components/dnd-component/virtualized-manager.js +60 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +5 -0
- package/es/components/libro-component.d.ts +5 -0
- package/es/components/libro-component.d.ts.map +1 -0
- package/es/components/libro-component.js +35 -0
- package/es/components/libro-side-toolbar-menu.d.ts +21 -0
- package/es/components/libro-side-toolbar-menu.d.ts.map +1 -0
- package/es/components/libro-side-toolbar-menu.js +58 -0
- package/es/components/libro-view-header.d.ts +3 -0
- package/es/components/libro-view-header.d.ts.map +1 -0
- package/es/components/libro-view-header.js +37 -0
- package/es/components/libro-virtualized-render.d.ts +15 -0
- package/es/components/libro-virtualized-render.d.ts.map +1 -0
- package/es/components/libro-virtualized-render.js +174 -0
- package/es/content/index.d.ts +6 -0
- package/es/content/index.d.ts.map +1 -0
- package/es/content/index.js +5 -0
- package/es/content/libro-content-contribution.d.ts +11 -0
- package/es/content/libro-content-contribution.d.ts.map +1 -0
- package/es/content/libro-content-contribution.js +31 -0
- package/es/content/libro-content-module.d.ts +3 -0
- package/es/content/libro-content-module.d.ts.map +1 -0
- package/es/content/libro-content-module.js +6 -0
- package/es/content/libro-content-protocol.d.ts +13 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -0
- package/es/content/libro-content-protocol.js +3 -0
- package/es/content/libro-content-service.d.ts +11 -0
- package/es/content/libro-content-service.d.ts.map +1 -0
- package/es/content/libro-content-service.js +63 -0
- package/es/content/libro-save-content-contribution.d.ts +6 -0
- package/es/content/libro-save-content-contribution.d.ts.map +1 -0
- package/es/content/libro-save-content-contribution.js +27 -0
- package/es/formatter/index.d.ts +6 -0
- package/es/formatter/index.d.ts.map +1 -0
- package/es/formatter/index.js +5 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-json-contribution.js +41 -0
- package/es/formatter/libro-formatter-manager.d.ts +16 -0
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
- package/es/formatter/libro-formatter-manager.js +86 -0
- package/es/formatter/libro-formatter-module.d.ts +3 -0
- package/es/formatter/libro-formatter-module.d.ts.map +1 -0
- package/es/formatter/libro-formatter-module.js +7 -0
- package/es/formatter/libro-formatter-protocol.d.ts +37 -0
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
- package/es/formatter/libro-formatter-protocol.js +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-string-contribution.js +41 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
- package/es/index.d.ts +26 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +25 -0
- package/es/index.less +781 -0
- package/es/libro-context-key.d.ts +26 -0
- package/es/libro-context-key.d.ts.map +1 -0
- package/es/libro-context-key.js +84 -0
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-keybind-registry.js +68 -0
- package/es/libro-model.d.ts +145 -0
- package/es/libro-model.d.ts.map +1 -0
- package/es/libro-model.js +921 -0
- package/es/libro-protocol.d.ts +315 -0
- package/es/libro-protocol.d.ts.map +1 -0
- package/es/libro-protocol.js +47 -0
- package/es/libro-service.d.ts +69 -0
- package/es/libro-service.d.ts.map +1 -0
- package/es/libro-service.js +303 -0
- package/es/libro-setting-contribution.d.ts +5 -0
- package/es/libro-setting-contribution.d.ts.map +1 -0
- package/es/libro-setting-contribution.js +23 -0
- package/es/libro-setting.d.ts +12 -0
- package/es/libro-setting.d.ts.map +1 -0
- package/es/libro-setting.js +101 -0
- package/es/libro-view-tracker.d.ts +6 -0
- package/es/libro-view-tracker.d.ts.map +1 -0
- package/es/libro-view-tracker.js +13 -0
- package/es/libro-view.d.ts +170 -0
- package/es/libro-view.d.ts.map +1 -0
- package/es/libro-view.js +2077 -0
- package/es/libro-workspace-service.d.ts +17 -0
- package/es/libro-workspace-service.d.ts.map +1 -0
- package/es/libro-workspace-service.js +36 -0
- package/es/material-from-designer.d.ts +31 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +697 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +71 -0
- package/es/output/index.d.ts +6 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +5 -0
- package/es/output/output-area.d.ts +51 -0
- package/es/output/output-area.d.ts.map +1 -0
- package/es/output/output-area.js +399 -0
- package/es/output/output-contribution.d.ts +10 -0
- package/es/output/output-contribution.d.ts.map +1 -0
- package/es/output/output-contribution.js +36 -0
- package/es/output/output-model.d.ts +28 -0
- package/es/output/output-model.d.ts.map +1 -0
- package/es/output/output-model.js +105 -0
- package/es/output/output-module.d.ts +3 -0
- package/es/output/output-module.d.ts.map +1 -0
- package/es/output/output-module.js +6 -0
- package/es/output/output-protocol.d.ts +134 -0
- package/es/output/output-protocol.d.ts.map +1 -0
- package/es/output/output-protocol.js +16 -0
- package/es/settings/index.d.ts +5 -0
- package/es/settings/index.d.ts.map +1 -0
- package/es/settings/index.js +4 -0
- package/es/settings/index.less +3 -0
- package/es/settings/module.d.ts +3 -0
- package/es/settings/module.d.ts.map +1 -0
- package/es/settings/module.js +4 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-panel-view.js +115 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
- package/es/settings/setting-editor/default-node-render.d.ts +9 -0
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
- package/es/settings/setting-editor/default-node-render.js +79 -0
- package/es/settings/setting-editor/index.d.ts +7 -0
- package/es/settings/setting-editor/index.d.ts.map +1 -0
- package/es/settings/setting-editor/index.js +6 -0
- package/es/settings/setting-editor/index.less +12 -0
- package/es/settings/setting-editor/module.d.ts +3 -0
- package/es/settings/setting-editor/module.d.ts.map +1 -0
- package/es/settings/setting-editor/module.js +11 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-editor-view.js +169 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-service.js +118 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-view.js +87 -0
- package/es/settings/settings-contribution.d.ts +7 -0
- package/es/settings/settings-contribution.d.ts.map +1 -0
- package/es/settings/settings-contribution.js +36 -0
- package/es/settings/settings-modal.d.ts +5 -0
- package/es/settings/settings-modal.d.ts.map +1 -0
- package/es/settings/settings-modal.js +53 -0
- package/es/settings/settings-modal.less +3 -0
- package/es/settings/settings-protocol.d.ts +4 -0
- package/es/settings/settings-protocol.d.ts.map +1 -0
- package/es/settings/settings-protocol.js +5 -0
- package/es/slot/index.d.ts +5 -0
- package/es/slot/index.d.ts.map +1 -0
- package/es/slot/index.js +4 -0
- package/es/slot/libro-slot-manager.d.ts +13 -0
- package/es/slot/libro-slot-manager.d.ts.map +1 -0
- package/es/slot/libro-slot-manager.js +66 -0
- package/es/slot/libro-slot-protocol.d.ts +19 -0
- package/es/slot/libro-slot-protocol.d.ts.map +1 -0
- package/es/slot/libro-slot-protocol.js +5 -0
- package/es/slot/libro-slot-view.d.ts +9 -0
- package/es/slot/libro-slot-view.d.ts.map +1 -0
- package/es/slot/libro-slot-view.js +81 -0
- package/es/slot/module.d.ts +3 -0
- package/es/slot/module.d.ts.map +1 -0
- package/es/slot/module.js +5 -0
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +515 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
- package/es/toolbar/all-outputs-scroll-icon.js +10 -0
- package/es/toolbar/change-cell-to-selector.d.ts +5 -0
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -0
- package/es/toolbar/change-cell-to-selector.js +51 -0
- package/es/toolbar/hide-all-selector.d.ts +5 -0
- package/es/toolbar/hide-all-selector.d.ts.map +1 -0
- package/es/toolbar/hide-all-selector.js +99 -0
- package/es/toolbar/index.d.ts +4 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +3 -0
- package/es/toolbar/index.less +59 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts +4 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar-protocol.js +1 -0
- package/es/toolbar/libro-toolbar.d.ts +9 -0
- package/es/toolbar/libro-toolbar.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar.js +275 -0
- package/es/toolbar/module.d.ts +3 -0
- package/es/toolbar/module.d.ts.map +1 -0
- package/es/toolbar/module.js +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-contribution.js +23 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-modal.js +30 -0
- package/es/toolbar/save-icon.d.ts +3 -0
- package/es/toolbar/save-icon.d.ts.map +1 -0
- package/es/toolbar/save-icon.js +54 -0
- package/es/toolbar/shutdown-contribution.d.ts +5 -0
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -0
- package/es/toolbar/shutdown-contribution.js +23 -0
- package/es/toolbar/shutdown-modal.d.ts +5 -0
- package/es/toolbar/shutdown-modal.d.ts.map +1 -0
- package/es/toolbar/shutdown-modal.js +30 -0
- package/es/toolbar/side-toolar-more-select.d.ts +4 -0
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -0
- package/es/toolbar/side-toolar-more-select.js +161 -0
- package/es/typings/index.d.ts +1 -0
- package/es/virtualized-manager-helper.d.ts +11 -0
- package/es/virtualized-manager-helper.d.ts.map +1 -0
- package/es/virtualized-manager-helper.js +51 -0
- package/es/virtualized-manager.d.ts +23 -0
- package/es/virtualized-manager.d.ts.map +1 -0
- package/es/virtualized-manager.js +65 -0
- package/package.json +73 -0
- package/src/add-cell/index.less +38 -0
- package/src/add-cell/index.ts +3 -0
- package/src/add-cell/libro-add-cell-module.ts +9 -0
- package/src/add-cell/libro-add-cell-slot-contribution.ts +28 -0
- package/src/add-cell/libro-add-cell-view.tsx +99 -0
- package/src/cell/README.md +14 -0
- package/src/cell/index.ts +9 -0
- package/src/cell/libro-cell-contribution.ts +34 -0
- package/src/cell/libro-cell-model.ts +119 -0
- package/src/cell/libro-cell-module.ts +40 -0
- package/src/cell/libro-cell-protocol.ts +55 -0
- package/src/cell/libro-cell-service.ts +158 -0
- package/src/cell/libro-cell-view.tsx +156 -0
- package/src/cell/libro-edit-cell-view.tsx +205 -0
- package/src/cell/libro-executable-cell-model.ts +32 -0
- package/src/cell/libro-executable-cell-view.ts +86 -0
- package/src/cell/libro-markdown-cell-model.ts +20 -0
- package/src/collapse-service.ts +69 -0
- package/src/command/document-commands.ts +24 -0
- package/src/command/index.ts +6 -0
- package/src/command/kernel-command.ts +42 -0
- package/src/command/libro-command-contribution.ts +1346 -0
- package/src/command/libro-command-register.ts +168 -0
- package/src/command/module.ts +9 -0
- package/src/command/notebook-commands.ts +502 -0
- package/src/components/cell-protocol.ts +26 -0
- package/src/components/dnd-cell-item-render.tsx +465 -0
- package/src/components/dnd-component/custom-drag-layer.tsx +144 -0
- package/src/components/dnd-component/default-dnd-content.tsx +330 -0
- package/src/components/dnd-component/dnd-context.tsx +28 -0
- package/src/components/dnd-component/dnd-list.tsx +211 -0
- package/src/components/dnd-component/index.less +12 -0
- package/src/components/dnd-component/index.tsx +4 -0
- package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
- package/src/components/dnd-component/virtualized-manager.ts +34 -0
- package/src/components/index.ts +5 -0
- package/src/components/libro-component.tsx +30 -0
- package/src/components/libro-side-toolbar-menu.tsx +82 -0
- package/src/components/libro-view-header.tsx +33 -0
- package/src/components/libro-virtualized-render.tsx +178 -0
- package/src/content/index.ts +5 -0
- package/src/content/libro-content-contribution.ts +16 -0
- package/src/content/libro-content-module.ts +17 -0
- package/src/content/libro-content-protocol.ts +14 -0
- package/src/content/libro-content-service.ts +48 -0
- package/src/content/libro-save-content-contribution.ts +12 -0
- package/src/formatter/index.ts +5 -0
- package/src/formatter/libro-formatter-json-contribution.ts +42 -0
- package/src/formatter/libro-formatter-manager.ts +85 -0
- package/src/formatter/libro-formatter-module.ts +19 -0
- package/src/formatter/libro-formatter-protocol.ts +63 -0
- package/src/formatter/libro-formatter-string-contribution.ts +41 -0
- package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
- package/src/index.less +789 -0
- package/src/index.spec.ts +12 -0
- package/src/index.tsx +25 -0
- package/src/libro-context-key.ts +84 -0
- package/src/libro-keybind-registry.ts +43 -0
- package/src/libro-model.ts +710 -0
- package/src/libro-protocol.ts +435 -0
- package/src/libro-service.ts +234 -0
- package/src/libro-setting-contribution.ts +28 -0
- package/src/libro-setting.ts +110 -0
- package/src/libro-view-tracker.ts +9 -0
- package/src/libro-view.tsx +1532 -0
- package/src/libro-workspace-service.ts +28 -0
- package/src/material-from-designer.tsx +579 -0
- package/src/module.ts +121 -0
- package/src/output/index.ts +5 -0
- package/src/output/output-area.tsx +286 -0
- package/src/output/output-contribution.ts +14 -0
- package/src/output/output-model.tsx +70 -0
- package/src/output/output-module.ts +10 -0
- package/src/output/output-protocol.ts +168 -0
- package/src/settings/index.less +3 -0
- package/src/settings/index.ts +4 -0
- package/src/settings/module.ts +8 -0
- package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
- package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
- package/src/settings/setting-editor/default-node-render.tsx +65 -0
- package/src/settings/setting-editor/index.less +12 -0
- package/src/settings/setting-editor/index.ts +6 -0
- package/src/settings/setting-editor/module.ts +17 -0
- package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
- package/src/settings/setting-editor/setting-tree-service.ts +82 -0
- package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
- package/src/settings/settings-contribution.tsx +24 -0
- package/src/settings/settings-modal.less +3 -0
- package/src/settings/settings-modal.tsx +51 -0
- package/src/settings/settings-protocol.ts +7 -0
- package/src/slot/index.ts +4 -0
- package/src/slot/libro-slot-manager.ts +38 -0
- package/src/slot/libro-slot-protocol.ts +28 -0
- package/src/slot/libro-slot-view.tsx +48 -0
- package/src/slot/module.ts +9 -0
- package/src/theme/libro-color-registry.ts +386 -0
- package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
- package/src/toolbar/change-cell-to-selector.tsx +67 -0
- package/src/toolbar/hide-all-selector.tsx +126 -0
- package/src/toolbar/index.less +59 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/libro-toolbar-protocol.ts +4 -0
- package/src/toolbar/libro-toolbar.tsx +231 -0
- package/src/toolbar/module.ts +11 -0
- package/src/toolbar/restart-clear-outputs-contribution.tsx +10 -0
- package/src/toolbar/restart-clear-outputs-modal.tsx +37 -0
- package/src/toolbar/save-icon.tsx +47 -0
- package/src/toolbar/shutdown-contribution.tsx +10 -0
- package/src/toolbar/shutdown-modal.tsx +37 -0
- package/src/toolbar/side-toolar-more-select.tsx +177 -0
- package/src/typings/index.d.ts +1 -0
- package/src/virtualized-manager-helper.ts +29 -0
- package/src/virtualized-manager.ts +47 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _dec, _class;
|
|
3
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import { ColorContribution } from '@difizen/mana-app';
|
|
9
|
+
import { singleton } from '@difizen/mana-app';
|
|
10
|
+
export var LibroColorRegistry = (_dec = singleton({
|
|
11
|
+
contrib: ColorContribution
|
|
12
|
+
}), _dec(_class = /*#__PURE__*/function () {
|
|
13
|
+
function LibroColorRegistry() {
|
|
14
|
+
_classCallCheck(this, LibroColorRegistry);
|
|
15
|
+
}
|
|
16
|
+
_createClass(LibroColorRegistry, [{
|
|
17
|
+
key: "registerColors",
|
|
18
|
+
value: function registerColors(colors) {
|
|
19
|
+
colors.register(
|
|
20
|
+
// #region antd variable
|
|
21
|
+
{
|
|
22
|
+
id: 'libro.warning.background',
|
|
23
|
+
defaults: {
|
|
24
|
+
dark: '#A9611466',
|
|
25
|
+
light: '#FFFBE6'
|
|
26
|
+
},
|
|
27
|
+
description: ''
|
|
28
|
+
}, {
|
|
29
|
+
id: 'libro.drag.hover.line.color',
|
|
30
|
+
defaults: {
|
|
31
|
+
dark: '#467DB0',
|
|
32
|
+
light: '#BFE0FF'
|
|
33
|
+
},
|
|
34
|
+
description: ''
|
|
35
|
+
}, {
|
|
36
|
+
id: 'libro.background',
|
|
37
|
+
defaults: {
|
|
38
|
+
dark: '#1F2022',
|
|
39
|
+
light: '#FFFFFF'
|
|
40
|
+
},
|
|
41
|
+
description: ''
|
|
42
|
+
}, {
|
|
43
|
+
id: 'libro.popover.background.color',
|
|
44
|
+
defaults: {
|
|
45
|
+
dark: '#2F3032',
|
|
46
|
+
light: '#FFFFFF'
|
|
47
|
+
},
|
|
48
|
+
description: ''
|
|
49
|
+
}, {
|
|
50
|
+
id: 'libro.menu.hover.color',
|
|
51
|
+
defaults: {
|
|
52
|
+
dark: '#515359',
|
|
53
|
+
light: '#EBF6FF'
|
|
54
|
+
},
|
|
55
|
+
description: ''
|
|
56
|
+
}, {
|
|
57
|
+
id: 'libro.dropdown.icon.color',
|
|
58
|
+
defaults: {
|
|
59
|
+
dark: '#FFFFFF4D',
|
|
60
|
+
light: '#00000033'
|
|
61
|
+
},
|
|
62
|
+
description: ''
|
|
63
|
+
}, {
|
|
64
|
+
id: 'libro.input.background',
|
|
65
|
+
defaults: {
|
|
66
|
+
dark: '#19191B',
|
|
67
|
+
light: '#F4F6FB'
|
|
68
|
+
},
|
|
69
|
+
description: ''
|
|
70
|
+
}, {
|
|
71
|
+
id: 'libro.text.default.color',
|
|
72
|
+
defaults: {
|
|
73
|
+
dark: '#E3E4E6',
|
|
74
|
+
light: '#000000'
|
|
75
|
+
},
|
|
76
|
+
description: ''
|
|
77
|
+
}, {
|
|
78
|
+
id: 'libro.text.tertiary.color',
|
|
79
|
+
defaults: {
|
|
80
|
+
dark: '#BDC0C4',
|
|
81
|
+
light: '#B8BABA'
|
|
82
|
+
},
|
|
83
|
+
description: ''
|
|
84
|
+
}, {
|
|
85
|
+
id: 'libro.output.background',
|
|
86
|
+
defaults: {
|
|
87
|
+
dark: '#292A2D',
|
|
88
|
+
light: '#FFFFFF'
|
|
89
|
+
},
|
|
90
|
+
description: ''
|
|
91
|
+
}, {
|
|
92
|
+
id: 'libro.toptoolbar.border.color',
|
|
93
|
+
defaults: {
|
|
94
|
+
dark: '#FFFFFF1A',
|
|
95
|
+
light: '#0000001A'
|
|
96
|
+
},
|
|
97
|
+
description: ''
|
|
98
|
+
}, {
|
|
99
|
+
id: 'libro.toptoolbar.icon.color',
|
|
100
|
+
defaults: {
|
|
101
|
+
dark: '#BFBFBF',
|
|
102
|
+
light: '#7B7B7B'
|
|
103
|
+
},
|
|
104
|
+
description: ''
|
|
105
|
+
}, {
|
|
106
|
+
id: 'libro.toptoolbar.disabled.icon.color',
|
|
107
|
+
defaults: {
|
|
108
|
+
dark: '#FFFFFF4D',
|
|
109
|
+
light: '#00000040'
|
|
110
|
+
},
|
|
111
|
+
description: ''
|
|
112
|
+
}, {
|
|
113
|
+
id: 'libro.toptoolbar.text.color',
|
|
114
|
+
defaults: {
|
|
115
|
+
dark: '#F5F5F5',
|
|
116
|
+
light: '#000000'
|
|
117
|
+
},
|
|
118
|
+
description: ''
|
|
119
|
+
}, {
|
|
120
|
+
id: 'libro.bottom.btn.background.color',
|
|
121
|
+
defaults: {
|
|
122
|
+
dark: '#FFFFFF0A',
|
|
123
|
+
light: '#FFFFFF'
|
|
124
|
+
},
|
|
125
|
+
description: ''
|
|
126
|
+
}, {
|
|
127
|
+
id: 'libro.bottom.btn.border.color',
|
|
128
|
+
defaults: {
|
|
129
|
+
dark: '#505559',
|
|
130
|
+
light: '#000A1A29'
|
|
131
|
+
},
|
|
132
|
+
description: ''
|
|
133
|
+
}, {
|
|
134
|
+
id: 'libro.bottom.btn.icon.color',
|
|
135
|
+
defaults: {
|
|
136
|
+
dark: '#505559',
|
|
137
|
+
light: '#525964D9'
|
|
138
|
+
},
|
|
139
|
+
description: ''
|
|
140
|
+
}, {
|
|
141
|
+
id: 'libro.bottom.btn.text.color',
|
|
142
|
+
defaults: {
|
|
143
|
+
dark: '#E3E4E6',
|
|
144
|
+
light: '#000A1AAD'
|
|
145
|
+
},
|
|
146
|
+
description: ''
|
|
147
|
+
}, {
|
|
148
|
+
id: 'libro.default.btn.background.color',
|
|
149
|
+
defaults: {
|
|
150
|
+
dark: '#FFFFFF1A',
|
|
151
|
+
light: '#FFFFFF'
|
|
152
|
+
},
|
|
153
|
+
description: ''
|
|
154
|
+
}, {
|
|
155
|
+
id: 'libro.default.btn.text.color',
|
|
156
|
+
defaults: {
|
|
157
|
+
dark: '#E3E4E6',
|
|
158
|
+
light: '#000A1AAD'
|
|
159
|
+
},
|
|
160
|
+
description: ''
|
|
161
|
+
}, {
|
|
162
|
+
id: 'libro.primary.btn.background.color',
|
|
163
|
+
defaults: {
|
|
164
|
+
dark: '#2A97FD',
|
|
165
|
+
light: '#1890FF'
|
|
166
|
+
},
|
|
167
|
+
description: ''
|
|
168
|
+
}, {
|
|
169
|
+
id: 'libro.default.btn.border.color',
|
|
170
|
+
defaults: {
|
|
171
|
+
dark: '#BDC0C4',
|
|
172
|
+
light: '#D6D8DA'
|
|
173
|
+
},
|
|
174
|
+
description: ''
|
|
175
|
+
}, {
|
|
176
|
+
id: 'libro.toolbar.menu.label.color',
|
|
177
|
+
defaults: {
|
|
178
|
+
dark: '#BDC0C4',
|
|
179
|
+
light: '#000000A6'
|
|
180
|
+
},
|
|
181
|
+
description: ''
|
|
182
|
+
}, {
|
|
183
|
+
id: 'libro.toolbar.menu.disabled.label.color',
|
|
184
|
+
defaults: {
|
|
185
|
+
dark: '#878C93',
|
|
186
|
+
light: '#00000040'
|
|
187
|
+
},
|
|
188
|
+
description: ''
|
|
189
|
+
}, {
|
|
190
|
+
id: 'libro.toolbar.menu.keybind.color',
|
|
191
|
+
defaults: {
|
|
192
|
+
dark: '#878C93',
|
|
193
|
+
light: '#00000073'
|
|
194
|
+
},
|
|
195
|
+
description: ''
|
|
196
|
+
}, {
|
|
197
|
+
id: 'libro.sidetoolbar.icon.color',
|
|
198
|
+
defaults: {
|
|
199
|
+
dark: '#BFBFBF',
|
|
200
|
+
light: '#6982A9'
|
|
201
|
+
},
|
|
202
|
+
description: ''
|
|
203
|
+
}, {
|
|
204
|
+
id: 'libro.sidetoolbar.border.color',
|
|
205
|
+
defaults: {
|
|
206
|
+
dark: '#FFFFFF14',
|
|
207
|
+
light: '#0000001A'
|
|
208
|
+
},
|
|
209
|
+
description: ''
|
|
210
|
+
}, {
|
|
211
|
+
id: 'libro.close.color',
|
|
212
|
+
defaults: {
|
|
213
|
+
dark: '#FFFFFF73',
|
|
214
|
+
light: '#00000073'
|
|
215
|
+
},
|
|
216
|
+
description: ''
|
|
217
|
+
}, {
|
|
218
|
+
id: 'libro.modal.title.color',
|
|
219
|
+
defaults: {
|
|
220
|
+
dark: '#EDEEEF',
|
|
221
|
+
light: '#000000D9'
|
|
222
|
+
},
|
|
223
|
+
description: ''
|
|
224
|
+
}, {
|
|
225
|
+
id: 'libro.modal.content.color',
|
|
226
|
+
defaults: {
|
|
227
|
+
dark: '#E3E4E6',
|
|
228
|
+
light: '#000A1A'
|
|
229
|
+
},
|
|
230
|
+
description: ''
|
|
231
|
+
}, {
|
|
232
|
+
id: 'libro.btn.primary.background.color',
|
|
233
|
+
defaults: {
|
|
234
|
+
dark: '#2A97FD',
|
|
235
|
+
light: '#1890FF'
|
|
236
|
+
},
|
|
237
|
+
description: ''
|
|
238
|
+
}, {
|
|
239
|
+
id: 'libro.execution.count.color',
|
|
240
|
+
defaults: {
|
|
241
|
+
dark: '#8694A9',
|
|
242
|
+
light: '#6A83AA'
|
|
243
|
+
},
|
|
244
|
+
description: ''
|
|
245
|
+
}, {
|
|
246
|
+
id: 'libro.tip.font.color',
|
|
247
|
+
defaults: {
|
|
248
|
+
dark: '#D6D8DA',
|
|
249
|
+
light: '#00000080'
|
|
250
|
+
},
|
|
251
|
+
description: ''
|
|
252
|
+
}, {
|
|
253
|
+
id: 'libro.execution.tip.success.color',
|
|
254
|
+
defaults: {
|
|
255
|
+
dark: '#48A918',
|
|
256
|
+
light: '#0DC54E'
|
|
257
|
+
},
|
|
258
|
+
description: ''
|
|
259
|
+
}, {
|
|
260
|
+
id: 'libro.link.color',
|
|
261
|
+
defaults: {
|
|
262
|
+
dark: '#177DDC',
|
|
263
|
+
light: '#1890FF'
|
|
264
|
+
},
|
|
265
|
+
description: ''
|
|
266
|
+
}, {
|
|
267
|
+
id: 'libro.error.color',
|
|
268
|
+
defaults: {
|
|
269
|
+
dark: '#CF4C52',
|
|
270
|
+
light: '#ED1345'
|
|
271
|
+
},
|
|
272
|
+
description: ''
|
|
273
|
+
}, {
|
|
274
|
+
id: 'libro.cell.border.color',
|
|
275
|
+
defaults: {
|
|
276
|
+
dark: '#3B3C42',
|
|
277
|
+
light: '#D6DEE6'
|
|
278
|
+
},
|
|
279
|
+
description: ''
|
|
280
|
+
}, {
|
|
281
|
+
id: 'libro.cell.active.border.color',
|
|
282
|
+
defaults: {
|
|
283
|
+
dark: '#378EDF',
|
|
284
|
+
light: '#3490ED'
|
|
285
|
+
},
|
|
286
|
+
description: ''
|
|
287
|
+
}, {
|
|
288
|
+
id: 'libro.cell.active.border.shadow.color',
|
|
289
|
+
defaults: {
|
|
290
|
+
dark: '#49A2FA40',
|
|
291
|
+
light: '#3592EE40'
|
|
292
|
+
},
|
|
293
|
+
description: ''
|
|
294
|
+
}, {
|
|
295
|
+
id: 'libro.cell.header.content',
|
|
296
|
+
defaults: {
|
|
297
|
+
dark: '#E3E4E6',
|
|
298
|
+
light: '#545B66'
|
|
299
|
+
},
|
|
300
|
+
description: ''
|
|
301
|
+
}, {
|
|
302
|
+
id: 'libro.cell.header.title',
|
|
303
|
+
defaults: {
|
|
304
|
+
dark: '#D6D8DA',
|
|
305
|
+
light: '#000A1A'
|
|
306
|
+
},
|
|
307
|
+
description: ''
|
|
308
|
+
}, {
|
|
309
|
+
id: 'libro.code.border.color',
|
|
310
|
+
defaults: {
|
|
311
|
+
dark: '#353638',
|
|
312
|
+
light: '#DCE4EC'
|
|
313
|
+
},
|
|
314
|
+
description: ''
|
|
315
|
+
}, {
|
|
316
|
+
id: 'libro.input.border.color',
|
|
317
|
+
defaults: {
|
|
318
|
+
dark: '#505559',
|
|
319
|
+
light: '#00000026'
|
|
320
|
+
},
|
|
321
|
+
description: ''
|
|
322
|
+
}, {
|
|
323
|
+
id: 'libro.input.background.color',
|
|
324
|
+
defaults: {
|
|
325
|
+
dark: '#FFFFFF0A',
|
|
326
|
+
light: '#FFFFFF'
|
|
327
|
+
},
|
|
328
|
+
description: ''
|
|
329
|
+
}, {
|
|
330
|
+
id: 'libro.input.group.btn.background.color',
|
|
331
|
+
defaults: {
|
|
332
|
+
dark: '#00000005',
|
|
333
|
+
light: '#00000005'
|
|
334
|
+
},
|
|
335
|
+
description: ''
|
|
336
|
+
}, {
|
|
337
|
+
id: 'libro.table.innner.border.color',
|
|
338
|
+
defaults: {
|
|
339
|
+
dark: '#1AFFFF',
|
|
340
|
+
light: '#E5EBF1'
|
|
341
|
+
},
|
|
342
|
+
description: ''
|
|
343
|
+
}, {
|
|
344
|
+
id: 'libro.table.bottom.border.color',
|
|
345
|
+
defaults: {
|
|
346
|
+
dark: '#424242',
|
|
347
|
+
light: '#E2E7EC'
|
|
348
|
+
},
|
|
349
|
+
description: ''
|
|
350
|
+
}, {
|
|
351
|
+
id: 'libro.editor.keyword.color',
|
|
352
|
+
defaults: {
|
|
353
|
+
dark: '#109B67',
|
|
354
|
+
light: '#098658'
|
|
355
|
+
},
|
|
356
|
+
description: ''
|
|
357
|
+
}, {
|
|
358
|
+
id: 'libro.editor.number.color',
|
|
359
|
+
defaults: {
|
|
360
|
+
dark: '#109B67',
|
|
361
|
+
light: '#098658'
|
|
362
|
+
},
|
|
363
|
+
description: ''
|
|
364
|
+
}, {
|
|
365
|
+
id: 'libro.editor.variable.2.color',
|
|
366
|
+
defaults: {
|
|
367
|
+
dark: '#5DA4EA',
|
|
368
|
+
light: '#2060A0'
|
|
369
|
+
},
|
|
370
|
+
description: ''
|
|
371
|
+
}, {
|
|
372
|
+
id: 'libro.editor.punctuation.color',
|
|
373
|
+
defaults: {
|
|
374
|
+
dark: '#5DA4EA',
|
|
375
|
+
light: '#2060A0'
|
|
376
|
+
},
|
|
377
|
+
description: ''
|
|
378
|
+
}, {
|
|
379
|
+
id: 'libro.editor.property.color',
|
|
380
|
+
defaults: {
|
|
381
|
+
dark: '#5DA4EA',
|
|
382
|
+
light: '#2060A0'
|
|
383
|
+
},
|
|
384
|
+
description: ''
|
|
385
|
+
}, {
|
|
386
|
+
id: 'libro.editor.operator.color',
|
|
387
|
+
defaults: {
|
|
388
|
+
dark: 'E12EE1',
|
|
389
|
+
light: '#C700C7'
|
|
390
|
+
},
|
|
391
|
+
description: ''
|
|
392
|
+
}, {
|
|
393
|
+
id: 'libro.editor.meta.color',
|
|
394
|
+
defaults: {
|
|
395
|
+
dark: '#E12EE1',
|
|
396
|
+
light: '#C700C7'
|
|
397
|
+
},
|
|
398
|
+
description: ''
|
|
399
|
+
}, {
|
|
400
|
+
id: 'libro.editor.builtin.color',
|
|
401
|
+
defaults: {
|
|
402
|
+
dark: '#109B67',
|
|
403
|
+
light: '#098658'
|
|
404
|
+
},
|
|
405
|
+
description: ''
|
|
406
|
+
}, {
|
|
407
|
+
id: 'libro.editor.variable.color',
|
|
408
|
+
defaults: {
|
|
409
|
+
dark: '#E3E4E6',
|
|
410
|
+
light: '#212121'
|
|
411
|
+
},
|
|
412
|
+
description: ''
|
|
413
|
+
}, {
|
|
414
|
+
id: 'libro.editor.def.color',
|
|
415
|
+
defaults: {
|
|
416
|
+
dark: '#187DFF',
|
|
417
|
+
light: '#003CFF'
|
|
418
|
+
},
|
|
419
|
+
description: ''
|
|
420
|
+
}, {
|
|
421
|
+
id: 'libro.editor.comment.color',
|
|
422
|
+
defaults: {
|
|
423
|
+
dark: '#618961',
|
|
424
|
+
light: '#406040'
|
|
425
|
+
},
|
|
426
|
+
description: ''
|
|
427
|
+
}, {
|
|
428
|
+
id: 'libro.editor.string.color',
|
|
429
|
+
defaults: {
|
|
430
|
+
dark: '#FF5B48',
|
|
431
|
+
light: '#C03030'
|
|
432
|
+
},
|
|
433
|
+
description: ''
|
|
434
|
+
}, {
|
|
435
|
+
id: 'libro.editor.activeline.color',
|
|
436
|
+
defaults: {
|
|
437
|
+
dark: '#E5E8F01A',
|
|
438
|
+
light: '#E5E8F080'
|
|
439
|
+
},
|
|
440
|
+
description: ''
|
|
441
|
+
}, {
|
|
442
|
+
id: 'libro.editor.selectionMatch.color',
|
|
443
|
+
defaults: {
|
|
444
|
+
dark: '#99FF7780',
|
|
445
|
+
light: '#DDE6FF'
|
|
446
|
+
},
|
|
447
|
+
description: ''
|
|
448
|
+
}, {
|
|
449
|
+
id: 'libro.editor.selection.color',
|
|
450
|
+
defaults: {
|
|
451
|
+
dark: '#B4CEFF',
|
|
452
|
+
light: '#B4CEFF'
|
|
453
|
+
},
|
|
454
|
+
description: ''
|
|
455
|
+
}, {
|
|
456
|
+
id: 'libro.editor.gutter.number.color',
|
|
457
|
+
defaults: {
|
|
458
|
+
dark: '#A8AEBF',
|
|
459
|
+
light: '#A4AECB'
|
|
460
|
+
},
|
|
461
|
+
description: ''
|
|
462
|
+
}, {
|
|
463
|
+
id: 'libro.editor.line.color',
|
|
464
|
+
defaults: {
|
|
465
|
+
dark: '#565C6D',
|
|
466
|
+
light: '#A4AECB'
|
|
467
|
+
},
|
|
468
|
+
description: ''
|
|
469
|
+
}, {
|
|
470
|
+
id: 'libro.editor.cursor.color',
|
|
471
|
+
defaults: {
|
|
472
|
+
dark: '#FFFFFF',
|
|
473
|
+
light: '#000000'
|
|
474
|
+
},
|
|
475
|
+
description: ''
|
|
476
|
+
}, {
|
|
477
|
+
id: 'libro.editor.search.match',
|
|
478
|
+
defaults: {
|
|
479
|
+
dark: '#8c4717',
|
|
480
|
+
light: '#ffb184'
|
|
481
|
+
},
|
|
482
|
+
description: ''
|
|
483
|
+
}, {
|
|
484
|
+
id: 'libro.editor.search.currentmatch',
|
|
485
|
+
defaults: {
|
|
486
|
+
dark: '#a87713',
|
|
487
|
+
light: '#fbde28'
|
|
488
|
+
},
|
|
489
|
+
description: ''
|
|
490
|
+
}, {
|
|
491
|
+
id: 'libro.editor.indent.marker.bg.color',
|
|
492
|
+
defaults: {
|
|
493
|
+
dark: '#42444D',
|
|
494
|
+
light: '#D6DBEB'
|
|
495
|
+
},
|
|
496
|
+
description: ''
|
|
497
|
+
}, {
|
|
498
|
+
id: 'libro.editor.indent.marker.active.bg.color',
|
|
499
|
+
defaults: {
|
|
500
|
+
dark: '#788491',
|
|
501
|
+
light: '#9f9f9f'
|
|
502
|
+
},
|
|
503
|
+
description: ''
|
|
504
|
+
}, {
|
|
505
|
+
id: 'libro.cell.selected.bg.color',
|
|
506
|
+
defaults: {
|
|
507
|
+
dark: '#353638',
|
|
508
|
+
light: '#F1FAFF'
|
|
509
|
+
},
|
|
510
|
+
description: ''
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}]);
|
|
514
|
+
return LibroColorRegistry;
|
|
515
|
+
}()) || _class);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-outputs-scroll-icon.d.ts","sourceRoot":"","sources":["../../src/toolbar/all-outputs-scroll-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,eAAO,MAAM,oBAAoB,EAAE,EAYlC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useInject, ViewInstance } from '@difizen/mana-app';
|
|
2
|
+
import { DisableOutputScroll } from "../material-from-designer.js";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export var AllOutputsScrollIcon = function AllOutputsScrollIcon() {
|
|
5
|
+
var libroView = useInject(ViewInstance);
|
|
6
|
+
return /*#__PURE__*/_jsx("div", {
|
|
7
|
+
className: "libro-all-outputs-scroll-button ".concat(libroView.outputsScroll ? 'active' : ''),
|
|
8
|
+
children: /*#__PURE__*/_jsx(DisableOutputScroll, {})
|
|
9
|
+
});
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare const ToolItemSelectInner: React.FC;
|
|
4
|
+
export declare const ToolItemSelect: import("react").NamedExoticComponent<{}>;
|
|
5
|
+
//# sourceMappingURL=change-cell-to-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-cell-to-selector.d.ts","sourceRoot":"","sources":["../../src/toolbar/change-cell-to-selector.tsx"],"names":[],"mappings":";AAgBA,OAAO,cAAc,CAAC;AAQtB,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAwCvC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAA4B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { useInject, ToolbarInstance, getOrigin, CommandRegistry, ThemeService } from '@difizen/mana-app';
|
|
8
|
+
import { ConfigProvider, Select, theme } from 'antd';
|
|
9
|
+
import { memo } from 'react';
|
|
10
|
+
import { LibroCellService } from "../cell/index.js";
|
|
11
|
+
import { NotebookCommands } from "../command/index.js";
|
|
12
|
+
import "./index.less";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var Option = Select.Option;
|
|
15
|
+
var widthStyle = {
|
|
16
|
+
width: 110
|
|
17
|
+
};
|
|
18
|
+
export var ToolItemSelectInner = function ToolItemSelectInner() {
|
|
19
|
+
var _curCell$model;
|
|
20
|
+
var cellService = useInject(LibroCellService);
|
|
21
|
+
var invertList = cellService.cellsMeta;
|
|
22
|
+
var toolbar = useInject(ToolbarInstance);
|
|
23
|
+
var data = toolbar.currentArgs;
|
|
24
|
+
var command = useInject(CommandRegistry);
|
|
25
|
+
var curCell = data === null || data === void 0 ? void 0 : data[0];
|
|
26
|
+
var themeService = useInject(ThemeService);
|
|
27
|
+
var handleChange = function handleChange(value) {
|
|
28
|
+
var args = getOrigin(data) || [];
|
|
29
|
+
command.executeCommand.apply(command, [NotebookCommands['ChangeCellTo'].id].concat(_toConsumableArray(args), [value]));
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
32
|
+
theme: {
|
|
33
|
+
algorithm: themeService.getCurrentTheme().type === 'dark' ? theme.darkAlgorithm : theme.defaultAlgorithm
|
|
34
|
+
},
|
|
35
|
+
children: /*#__PURE__*/_jsx(Select, {
|
|
36
|
+
value: curCell === null || curCell === void 0 || (_curCell$model = curCell.model) === null || _curCell$model === void 0 ? void 0 : _curCell$model.type,
|
|
37
|
+
size: 'small',
|
|
38
|
+
style: widthStyle,
|
|
39
|
+
onChange: handleChange,
|
|
40
|
+
bordered: false,
|
|
41
|
+
popupClassName: "libro-cell-selector",
|
|
42
|
+
children: invertList.map(function (item) {
|
|
43
|
+
return /*#__PURE__*/_jsx(Option, {
|
|
44
|
+
value: item.type,
|
|
45
|
+
children: item.name
|
|
46
|
+
}, item.name);
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export var ToolItemSelect = /*#__PURE__*/memo(ToolItemSelectInner);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hide-all-selector.d.ts","sourceRoot":"","sources":["../../src/toolbar/hide-all-selector.tsx"],"names":[],"mappings":";AAiBA,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAwGtC,CAAC;AAEF,eAAO,MAAM,aAAa,0CAA2B,CAAC"}
|