@dineug/erd-editor 3.5.0 → 3.7.0
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/README.md +51 -23
- package/dist/components/appContext.d.ts +1 -0
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +1 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +21 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +12 -0
- package/dist/components/erd/canvas/Canvas.d.ts +1 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +9 -8
- package/dist/components/erd/canvas/CanvasScene.d.ts +1 -0
- package/dist/components/erd/canvas/EditOverlay.d.ts +1 -0
- package/dist/components/erd/canvas/EditOverlay.styles.d.ts +1 -0
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +1 -0
- package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
- package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +1 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +1 -0
- package/dist/components/erd/canvas/entityDrag.d.ts +6 -3
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +1 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -0
- package/dist/components/erd/canvas/memo/memoCaret.d.ts +1 -0
- package/dist/components/erd/canvas/memo/memoScroll.d.ts +1 -0
- package/dist/components/erd/canvas/memo/memoText.d.ts +1 -0
- package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +1 -0
- package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +1 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.d.ts +1 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +1 -0
- package/dist/components/erd/canvas/sceneHit.d.ts +1 -0
- package/dist/components/erd/canvas/sceneKind.d.ts +1 -0
- package/dist/components/erd/canvas/sceneRetention.d.ts +1 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +1 -0
- package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +1 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +1 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -0
- package/dist/components/erd/canvas/table/Table.d.ts +1 -0
- package/dist/components/erd/canvas/table/cellLayout.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +1 -0
- package/dist/components/erd/canvas/table/doubleClick.d.ts +1 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -0
- package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +1 -0
- package/dist/components/erd/canvas/useSharedSelectEntity.d.ts +1 -0
- package/dist/components/erd/content-compass/ContentCompass.d.ts +10 -0
- package/dist/components/erd/content-compass/ContentCompass.styles.d.ts +3 -0
- package/dist/components/erd/content-compass/compassGeometry.d.ts +24 -0
- package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +1 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +24 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +10 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.styles.d.ts +4 -0
- package/dist/components/erd/hitTest.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -0
- package/dist/components/erd/minimap/MinimapScene.d.ts +1 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +6 -3
- package/dist/components/erd/minimap/minimapGeometry.d.ts +82 -34
- package/dist/components/erd/minimap/table/Table.d.ts +6 -3
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +1 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +1 -0
- package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -0
- package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +1 -0
- package/dist/components/erd/useErdShortcut.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +1 -0
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +13 -6
- package/dist/components/erd-editor/ErdEditor.d.ts +2 -1
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +1 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +1 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +1 -0
- package/dist/components/primitives/button/Button.d.ts +1 -0
- package/dist/components/primitives/button/Button.styles.d.ts +1 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +3 -2
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +1 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +1 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +1 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +1 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +1 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +1 -0
- package/dist/components/primitives/icon/icons.d.ts +9 -1
- package/dist/components/primitives/kbd/Kbd.d.ts +1 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +1 -0
- package/dist/components/primitives/sash/Sash.d.ts +1 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +1 -0
- package/dist/components/primitives/separator/Separator.d.ts +1 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +1 -0
- package/dist/components/primitives/slider/Slider.d.ts +1 -0
- package/dist/components/primitives/slider/Slider.styles.d.ts +1 -0
- package/dist/components/primitives/switch/Switch.d.ts +1 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +1 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +1 -0
- package/dist/components/primitives/toast/Toast.d.ts +1 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +1 -0
- package/dist/components/quick-search/QuickSearch.d.ts +1 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
- package/dist/components/quick-search/actions.d.ts +1 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +1 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -0
- package/dist/components/settings/Settings.d.ts +1 -0
- package/dist/components/settings/Settings.styles.d.ts +1 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +1 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +1 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +1 -0
- package/dist/components/table-view/Table.styles.d.ts +1 -0
- package/dist/components/table-view/column/Column.styles.d.ts +1 -0
- package/dist/components/table-view/column/column-data-type/ColumnDataType.d.ts +1 -0
- package/dist/components/table-view/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
- package/dist/components/table-view/column/column-key/ColumnKey.d.ts +1 -0
- package/dist/components/table-view/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/table-view/column/column-not-null/ColumnNotNull.d.ts +1 -0
- package/dist/components/table-view/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/table-view/column/column-option/ColumnOption.d.ts +1 -0
- package/dist/components/table-view/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/table-view/column/useColumnCell.d.ts +1 -0
- package/dist/components/theme/Theme.d.ts +1 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +1 -0
- package/dist/components/themeContext.d.ts +1 -0
- package/dist/components/toast-container/ToastContainer.d.ts +1 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
- package/dist/components/visualization/Visualization.d.ts +1 -0
- package/dist/components/visualization/Visualization.styles.d.ts +1 -0
- package/dist/components/visualization/VisualizationScene.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +1 -0
- package/dist/components/visualization/graph-node/GraphNode.d.ts +1 -0
- package/dist/components/visualization/table/Table.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/components/visualization/visualizationView.d.ts +1 -0
- package/dist/constants/language.d.ts +1 -0
- package/dist/constants/layout.d.ts +1 -0
- package/dist/constants/open.d.ts +1 -0
- package/dist/constants/schema.d.ts +1 -0
- package/dist/constants/sql/dataType/Databricks.d.ts +1 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +1 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +1 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +1 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +1 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +1 -0
- package/dist/constants/sql/dataType/Snowflake.d.ts +1 -0
- package/dist/constants/sql/dataType/index.d.ts +1 -0
- package/dist/constants/sql/database.d.ts +1 -0
- package/dist/constants/tablePlacement.d.ts +15 -0
- package/dist/engine/actions.d.ts +1 -0
- package/dist/engine/clock.d.ts +1 -0
- package/dist/engine/context.d.ts +1 -0
- package/dist/engine/generator.actions.d.ts +1 -0
- package/dist/engine/history.actions.d.ts +1 -0
- package/dist/engine/history.d.ts +1 -0
- package/dist/engine/hooks.d.ts +1 -0
- package/dist/engine/index.d.ts +1 -0
- package/dist/engine/index.js +44 -0
- package/dist/engine/modules/editor/actions.d.ts +9 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +39 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +1 -0
- package/dist/engine/modules/editor/history.d.ts +1 -0
- package/dist/engine/modules/editor/state.d.ts +11 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +5 -2
- package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +1 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +1 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +1 -0
- package/dist/engine/modules/index/actions.d.ts +1 -0
- package/dist/engine/modules/index/atom.actions.d.ts +1 -0
- package/dist/engine/modules/index/generator.actions.d.ts +1 -0
- package/dist/engine/modules/index/history.d.ts +1 -0
- package/dist/engine/modules/index-column/actions.d.ts +1 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +1 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +1 -0
- package/dist/engine/modules/index-column/history.d.ts +1 -0
- package/dist/engine/modules/memo/actions.d.ts +1 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +1 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +1 -0
- package/dist/engine/modules/memo/history.d.ts +1 -0
- package/dist/engine/modules/relationship/actions.d.ts +1 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +1 -0
- package/dist/engine/modules/relationship/hooks.d.ts +1 -0
- package/dist/engine/modules/settings/actions.d.ts +3 -7
- package/dist/engine/modules/settings/atom.actions.d.ts +39 -49
- package/dist/engine/modules/settings/generator.actions.d.ts +1 -0
- package/dist/engine/modules/settings/history.d.ts +1 -1
- package/dist/engine/modules/settings/scrollRange.d.ts +18 -0
- package/dist/engine/modules/table/actions.d.ts +1 -0
- package/dist/engine/modules/table/atom.actions.d.ts +1 -0
- package/dist/engine/modules/table/generator.actions.d.ts +1 -0
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table/hooks.d.ts +1 -0
- package/dist/engine/modules/table-column/actions.d.ts +1 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +1 -0
- package/dist/engine/modules/table-column/history.d.ts +1 -0
- package/dist/engine/modules/table-column/hooks.d.ts +1 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -0
- package/dist/engine/replication-store.d.ts +1 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +1 -0
- package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -0
- package/dist/engine/rx-operators/index.d.ts +1 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +1 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -0
- package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -0
- package/dist/engine/rx-store.d.ts +1 -0
- package/dist/engine/shared-store.d.ts +1 -0
- package/dist/engine/state.d.ts +1 -0
- package/dist/engine/store-hooks.d.ts +1 -0
- package/dist/engine/store.d.ts +1 -0
- package/dist/engine/tag.d.ts +1 -0
- package/dist/erd-editor.umd.js +5259 -0
- package/dist/hooks/useDarkMode.d.ts +1 -0
- package/dist/hooks/useFlipAnimation.d.ts +1 -0
- package/dist/hooks/useKeyBindingMap.d.ts +1 -0
- package/dist/hooks/useUnmounted.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.dev.d.ts +1 -1
- package/dist/index.js +20210 -0
- package/dist/internal-types/index.d.ts +1 -0
- package/dist/konva/batchDraw.d.ts +1 -0
- package/dist/konva/host.d.ts +1 -0
- package/dist/konva/jsx-types.test-d.d.ts +1 -0
- package/dist/konva/scene/columnDropTarget.d.ts +1 -0
- package/dist/konva/scene/contentBounds.d.ts +29 -0
- package/dist/konva/scene/konvaFlip.d.ts +1 -0
- package/dist/konva/scene/metrics.d.ts +1 -0
- package/dist/konva/scene/renderScene.d.ts +1 -0
- package/dist/konva/scene/viewFreeze.d.ts +20 -0
- package/dist/konva/scene/viewport.d.ts +14 -7
- package/dist/konva/testHandle.d.ts +1 -0
- package/dist/konva/theme.d.ts +1 -0
- package/dist/konva/workerDomStubs.d.ts +1 -0
- package/dist/schemaGCService--wGet5O7.js +9636 -0
- package/dist/services/elk-layout/elkGraph.d.ts +44 -0
- package/dist/services/elk-layout/elkLayout.shared-worker.d.ts +2 -0
- package/dist/services/elk-layout/elkLayoutOptions.d.ts +25 -0
- package/dist/services/elk-layout/elkLayoutService.d.ts +21 -0
- package/dist/services/elk-layout/elkWorkerRealm.d.ts +2 -0
- package/dist/services/elk-layout/index.d.ts +13 -0
- package/dist/services/export-png/ExportScene.d.ts +11 -4
- package/dist/services/export-png/documentScene.d.ts +16 -3
- package/dist/services/export-png/exportBox.d.ts +27 -0
- package/dist/services/export-png/exportPng.shared-worker.d.ts +1 -0
- package/dist/services/export-png/exportPngService.d.ts +1 -0
- package/dist/services/export-png/index.d.ts +11 -4
- package/dist/services/export-png/pixelRatio.d.ts +1 -0
- package/dist/services/export-png/renderPng.d.ts +4 -1
- package/dist/services/export-png/textWidth.d.ts +1 -0
- package/dist/services/schema-gc/index.d.ts +6 -3
- package/dist/services/schema-gc/procGC.d.ts +1 -0
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +1 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +1 -0
- package/dist/services/shiki/index.d.ts +10 -0
- package/dist/services/shiki/shiki.shared-worker.d.ts +2 -0
- package/dist/services/shiki/shikiService.d.ts +18 -0
- package/dist/styles/colorPicker.style.d.ts +1 -0
- package/dist/styles/fonts.styles.d.ts +1 -0
- package/dist/styles/reset.styles.d.ts +1 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -0
- package/dist/styles/typography.styles.d.ts +1 -0
- package/dist/themes/radix-ui-theme.config.d.ts +1 -0
- package/dist/themes/radix-ui-theme.d.ts +1 -0
- package/dist/themes/tokens.d.ts +1 -0
- package/dist/utils/arrayHas.d.ts +3 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +1 -0
- package/dist/utils/calcTable.d.ts +1 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +1 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +1 -0
- package/dist/utils/collection/memo.entity.d.ts +1 -0
- package/dist/utils/collection/relationship.entity.d.ts +1 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +1 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +1 -0
- package/dist/utils/device-detect/index.d.ts +1 -0
- package/dist/utils/domEvent.d.ts +7 -0
- package/dist/utils/dragSelect.d.ts +1 -8
- package/dist/utils/draw-relationship/calc.d.ts +1 -0
- package/dist/utils/draw-relationship/chamfer.d.ts +1 -0
- package/dist/utils/draw-relationship/draw.d.ts +1 -0
- package/dist/utils/draw-relationship/incremental.d.ts +1 -0
- package/dist/utils/draw-relationship/index.d.ts +1 -0
- package/dist/utils/draw-relationship/nudge.d.ts +1 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -0
- package/dist/utils/draw-relationship/route.d.ts +1 -0
- package/dist/utils/draw-relationship/sort.d.ts +1 -0
- package/dist/utils/draw-relationship/stub.d.ts +1 -0
- package/dist/utils/emitter.d.ts +15 -7
- package/dist/utils/file/exportFile.d.ts +5 -4
- package/dist/utils/file/importFile.d.ts +1 -0
- package/dist/utils/flipAnimation.d.ts +1 -0
- package/dist/utils/focus.d.ts +1 -0
- package/dist/utils/generator-code/aml.d.ts +1 -0
- package/dist/utils/generator-code/csharp.d.ts +1 -0
- package/dist/utils/generator-code/dbml.d.ts +1 -0
- package/dist/utils/generator-code/drizzle.d.ts +1 -0
- package/dist/utils/generator-code/go.d.ts +1 -0
- package/dist/utils/generator-code/graphql.d.ts +1 -0
- package/dist/utils/generator-code/index.d.ts +1 -0
- package/dist/utils/generator-code/java.d.ts +1 -0
- package/dist/utils/generator-code/jpa.d.ts +1 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/sequelize.d.ts +1 -0
- package/dist/utils/generator-code/sqlalchemy.d.ts +1 -0
- package/dist/utils/generator-code/typeorm.d.ts +1 -0
- package/dist/utils/generator-code/typescript.d.ts +1 -0
- package/dist/utils/generator-code/utils.d.ts +1 -0
- package/dist/utils/globalEmitter.d.ts +1 -0
- package/dist/utils/globalEventObservable.d.ts +7 -1
- package/dist/utils/icon.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/internalEvents.d.ts +1 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +10 -1
- package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
- package/dist/utils/promise.d.ts +7 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +1 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +1 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +1 -0
- package/dist/utils/safeCallback.d.ts +5 -0
- package/dist/utils/schema-aml-parser/convert.d.ts +1 -0
- package/dist/utils/schema-aml-parser/dataType.d.ts +1 -0
- package/dist/utils/schema-aml-parser/index.d.ts +1 -0
- package/dist/utils/schema-aml-parser/parser.d.ts +1 -0
- package/dist/utils/schema-aml-parser/tokenizer.d.ts +1 -0
- package/dist/utils/schema-aml-parser/types.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/dataType.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/index.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/parser.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/dataType.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/index.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/parser.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/types.d.ts +1 -0
- package/dist/utils/schema-sql/Databricks.d.ts +1 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +1 -0
- package/dist/utils/schema-sql/MySQL.d.ts +1 -0
- package/dist/utils/schema-sql/Oracle.d.ts +1 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -0
- package/dist/utils/schema-sql/SQLite.d.ts +1 -0
- package/dist/utils/schema-sql/Snowflake.d.ts +1 -0
- package/dist/utils/schema-sql/index.d.ts +1 -0
- package/dist/utils/schema-sql/utils.d.ts +1 -0
- package/dist/utils/schema-sql-parser/index.d.ts +1 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +1 -0
- package/dist/utils/sharedColor.d.ts +1 -0
- package/dist/utils/table-clipboard/copy.d.ts +15 -2
- package/dist/utils/table-clipboard/index.d.ts +1 -0
- package/dist/utils/table-clipboard/paste.d.ts +1 -0
- package/dist/utils/table-clipboard/payload.d.ts +30 -1
- package/dist/utils/table-clipboard/placement.d.ts +1 -0
- package/dist/utils/text.d.ts +1 -0
- package/dist/utils/validation.d.ts +2 -1
- package/dist/workers/elkLayout.shared-worker.js +1 -0
- package/dist/workers/exportPng.shared-worker.js +54 -0
- package/dist/workers/schemaGC.shared-worker.js +1 -0
- package/dist/workers/shiki.shared-worker.js +1 -0
- package/dist/workers/spawn.d.ts +10 -0
- package/dist/workers/spawn.inline.d.ts +10 -0
- package/package.json +55 -51
- package/dist/components/erd/hide-sign/HideSign.d.ts +0 -6
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +0 -1
- package/dist/components/erd/hide-sign/hideSignBounds.d.ts +0 -9
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -17
- package/dist/components/primitives/button/Button.stories.d.ts +0 -26
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +0 -25
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +0 -26
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -16
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +0 -36
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +0 -23
- package/dist/components/primitives/icon/Icon.stories.d.ts +0 -10
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +0 -17
- package/dist/components/primitives/sash/Sash.stories.d.ts +0 -30
- package/dist/components/primitives/separator/Separator.stories.d.ts +0 -25
- package/dist/components/primitives/slider/Slider.stories.d.ts +0 -23
- package/dist/components/primitives/switch/Switch.stories.d.ts +0 -21
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +0 -41
- package/dist/components/primitives/toast/Toast.stories.d.ts +0 -33
- package/dist/engine.js +0 -42
- package/dist/erd-editor.js +0 -41824
- package/dist/schemaGCService-DrlqIen8.js +0 -17549
- package/dist/services/shikiService.d.ts +0 -8
- package/dist/themes/textColor.d.ts +0 -2
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Action, AnyAction, DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
+
import { TablePlacement } from '../constants/tablePlacement';
|
|
2
3
|
import { ValuesType } from '../internal-types';
|
|
3
4
|
import { ThemeOptions } from '../themes/radix-ui-theme';
|
|
4
5
|
declare const InternalActionType: {
|
|
5
6
|
readonly openColorPicker: "openColorPicker";
|
|
6
7
|
readonly closeColorPicker: "closeColorPicker";
|
|
7
8
|
readonly openToast: "openToast";
|
|
8
|
-
readonly loadShikiService: "loadShikiService";
|
|
9
9
|
readonly openTableProperties: "openTableProperties";
|
|
10
10
|
readonly dragendColumnAll: "dragendColumnAll";
|
|
11
11
|
readonly copy: "copy";
|
|
@@ -17,6 +17,7 @@ declare const InternalActionType: {
|
|
|
17
17
|
readonly mouseTrackerStart: "mouseTrackerStart";
|
|
18
18
|
readonly mouseTrackerEnd: "mouseTrackerEnd";
|
|
19
19
|
readonly openDiffViewer: "openDiffViewer";
|
|
20
|
+
readonly openAutomaticTablePlacement: "openAutomaticTablePlacement";
|
|
20
21
|
readonly duplicateDragStart: "duplicateDragStart";
|
|
21
22
|
readonly dragSelectStart: "dragSelectStart";
|
|
22
23
|
};
|
|
@@ -32,7 +33,6 @@ type InternalActionMap = {
|
|
|
32
33
|
message: DOMTemplateLiterals;
|
|
33
34
|
close?: Promise<void>;
|
|
34
35
|
};
|
|
35
|
-
[InternalActionType.loadShikiService]: void;
|
|
36
36
|
[InternalActionType.openTableProperties]: {
|
|
37
37
|
tableId: string;
|
|
38
38
|
};
|
|
@@ -52,6 +52,9 @@ type InternalActionMap = {
|
|
|
52
52
|
[InternalActionType.openDiffViewer]: {
|
|
53
53
|
value: string;
|
|
54
54
|
};
|
|
55
|
+
[InternalActionType.openAutomaticTablePlacement]: {
|
|
56
|
+
placement: TablePlacement;
|
|
57
|
+
};
|
|
55
58
|
[InternalActionType.duplicateDragStart]: {
|
|
56
59
|
tableIds: string[];
|
|
57
60
|
memoIds: string[];
|
|
@@ -99,11 +102,6 @@ export declare const openToastAction: {
|
|
|
99
102
|
toString(): string;
|
|
100
103
|
type: string;
|
|
101
104
|
};
|
|
102
|
-
export declare const loadShikiServiceAction: {
|
|
103
|
-
(payload: void): AnyAction<void>;
|
|
104
|
-
toString(): string;
|
|
105
|
-
type: string;
|
|
106
|
-
};
|
|
107
105
|
export declare const openTablePropertiesAction: {
|
|
108
106
|
(payload: {
|
|
109
107
|
tableId: string;
|
|
@@ -175,6 +173,15 @@ export declare const openDiffViewerAction: {
|
|
|
175
173
|
toString(): string;
|
|
176
174
|
type: string;
|
|
177
175
|
};
|
|
176
|
+
export declare const openAutomaticTablePlacementAction: {
|
|
177
|
+
(payload: {
|
|
178
|
+
placement: TablePlacement;
|
|
179
|
+
}): AnyAction<{
|
|
180
|
+
placement: TablePlacement;
|
|
181
|
+
}>;
|
|
182
|
+
toString(): string;
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
178
185
|
export declare const duplicateDragStartAction: {
|
|
179
186
|
(payload: void | {
|
|
180
187
|
tableIds: string[];
|
|
@@ -198,3 +205,4 @@ export declare const dragSelectStartAction: {
|
|
|
198
205
|
type: string;
|
|
199
206
|
};
|
|
200
207
|
export {};
|
|
208
|
+
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -7,12 +7,13 @@ export declare function setExportFileCallback(callback: ExportFileCallback | nul
|
|
|
7
7
|
export declare function exportJSON(json: string, name?: string): void;
|
|
8
8
|
export declare function exportSchemaSQL(sql: string, name?: string): void;
|
|
9
9
|
/**
|
|
10
|
-
* Writes the whole document out as an image
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Writes the whole document out as an image, at the zoom the author is reading
|
|
11
|
+
* it at. The scene is rendered again off screen rather than captured, so the
|
|
12
|
+
* file holds the whole document however far it was scrolled away from.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
|
-
* exportPNG({ doc: toJson(store.state), theme, toWidth }, databaseName);
|
|
15
|
+
* exportPNG({ doc: toJson(store.state), theme, toWidth, zoomLevel }, databaseName);
|
|
16
16
|
*/
|
|
17
17
|
export declare function exportPNG(options: DocumentPngOptions, name?: string): Promise<void>;
|
|
18
18
|
export {};
|
|
19
|
+
//# sourceMappingURL=exportFile.d.ts.map
|
|
@@ -13,3 +13,4 @@ export declare function importDBML({ store, emitter }: AppContext): void;
|
|
|
13
13
|
export declare function importAML({ store, emitter }: AppContext): void;
|
|
14
14
|
export declare function importDiffJSON({ emitter }: AppContext): void;
|
|
15
15
|
export {};
|
|
16
|
+
//# sourceMappingURL=importFile.d.ts.map
|
package/dist/utils/focus.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function isEdit(focusTable: FocusTable | null, focusType: FocusTy
|
|
|
5
5
|
export declare function lastCursorFocus(input: HTMLInputElement | HTMLTextAreaElement): void;
|
|
6
6
|
export declare const toSharedFocus: (focusTable: FocusTable | null) => SharedFocus | null;
|
|
7
7
|
export declare const toSharedFocusKey: (focus: SharedFocus | null) => string;
|
|
8
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=aml.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=csharp.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=dbml.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=drizzle.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=go.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { Table } from '../../internal-types';
|
|
3
3
|
export declare function createGeneratorCode(state: RootState): string;
|
|
4
4
|
export declare function createGeneratorCodeTable(state: RootState, table: Table): string;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=java.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=jpa.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=kotlin.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=scala.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=sequelize.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=sqlalchemy.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=typeorm.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
|
+
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -17,3 +17,4 @@ export declare const hasNRelationship: (value: number) => boolean;
|
|
|
17
17
|
export declare function getPrimitiveType(dataType: string, database: number): PrimitiveType;
|
|
18
18
|
export declare function getDataTypeHints(database: number): DataTypeHint[];
|
|
19
19
|
export declare function getNameCase(name: string, nameCase: number): string;
|
|
20
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -11,7 +11,12 @@ export declare const animationFrames$: Observable<{
|
|
|
11
11
|
elapsed: number;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const moveStart$: Observable<MouseEvent | TouchEvent>;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* A gesture also ends wherever the browser takes the pointer away: a native
|
|
16
|
+
* drag swallows the rest of the stream, a cancelled pointer never lifts, and a
|
|
17
|
+
* blurred window never sees the mouseup, each leaving drag$ subscribed.
|
|
18
|
+
*/
|
|
19
|
+
export declare const moveEnd$: Observable<MouseEvent | TouchEvent | DragEvent | PointerEvent | FocusEvent>;
|
|
15
20
|
export type DragMove = {
|
|
16
21
|
movementX: number;
|
|
17
22
|
movementY: number;
|
|
@@ -45,3 +50,4 @@ export declare const drag$: Observable<{
|
|
|
45
50
|
x: number;
|
|
46
51
|
y: number;
|
|
47
52
|
}>;
|
|
53
|
+
//# sourceMappingURL=globalEventObservable.d.ts.map
|
package/dist/utils/icon.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ import { IconNode } from 'lucide';
|
|
|
7
7
|
export declare function toCursorImage(node: IconNode, isDarkMode: boolean): string;
|
|
8
8
|
/** The draw-relationship cursor for a relationship type, or null for a type with no glyph. */
|
|
9
9
|
export declare function getRelationshipIcon(relationshipType: number, isDarkMode: boolean): string | null;
|
|
10
|
+
//# sourceMappingURL=icon.d.ts.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EntityMeta, Memo, Point, Settings, Table } from '../internal-types';
|
|
2
2
|
export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
|
|
3
|
-
export declare function nextPoint(
|
|
3
|
+
export declare function nextPoint(settings: Settings, tables: Table[], memos: Memo[]): Point;
|
|
4
4
|
export declare const toList: <T>(ids: string[], entities: Record<string, T>) => Array<T>;
|
|
5
5
|
export declare function getDefaultEntityMeta(): EntityMeta;
|
|
6
6
|
export declare function safeRange(a: number, b: number): number[];
|
|
7
7
|
export declare function pascalCase(value?: string): string;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -26,9 +26,12 @@ export declare const KeyBindingName: {
|
|
|
26
26
|
readonly tableProperties: "tableProperties";
|
|
27
27
|
readonly zoomIn: "zoomIn";
|
|
28
28
|
readonly zoomOut: "zoomOut";
|
|
29
|
+
readonly zoomReset: "zoomReset";
|
|
30
|
+
readonly handTool: "handTool";
|
|
31
|
+
readonly zenMode: "zenMode";
|
|
29
32
|
};
|
|
30
33
|
export type KeyBindingName = ValuesType<typeof KeyBindingName>;
|
|
31
|
-
export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut")[];
|
|
34
|
+
export declare const KeyBindingNameList: ("undo" | "redo" | "selectAllColumn" | "search" | "stop" | "edit" | "addMemo" | "addTable" | "removeTable" | "addColumn" | "removeColumn" | "primaryKey" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "zoomIn" | "zoomOut" | "zoomReset" | "handTool" | "zenMode")[];
|
|
32
35
|
export type KeyBindingMap = Record<KeyBindingName, ShortcutOption[]>;
|
|
33
36
|
export declare const createKeyBindingMap: () => KeyBindingMap;
|
|
34
37
|
export declare function shortcutToTuple(shortcut?: string): KeyBindingPress[];
|
|
@@ -39,4 +42,10 @@ export declare function isMod(event: MouseEvent | TouchEvent | KeyboardEvent): b
|
|
|
39
42
|
* the text editor was owed and leave a half-formed syllable behind.
|
|
40
43
|
*/
|
|
41
44
|
export declare function isComposing(event: KeyboardEvent): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* What a button says it is: its name and the first chord bound to it, since a
|
|
47
|
+
* command can carry several and a tooltip naming all of them reads as noise.
|
|
48
|
+
*/
|
|
49
|
+
export declare function toShortcutTitle(keyBindingMap: KeyBindingMap, name: string, keyBindingName: KeyBindingName): string;
|
|
42
50
|
export declare function simpleShortcutToString(shortcut?: string): string;
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/promise.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export declare const delay: (ms: number) => Promise<void>;
|
|
2
2
|
export declare function closePromise(): [Promise<void>, () => void];
|
|
3
|
+
/**
|
|
4
|
+
* Rejects a promise that has not settled in time. A shared worker that throws
|
|
5
|
+
* while evaluating leaves its port open and its first call pending for ever,
|
|
6
|
+
* which is a wait only a clock ends.
|
|
7
|
+
*/
|
|
8
|
+
export declare function withTimeout<T>(promise: Promise<T>, ms: number, message: string): Promise<T>;
|
|
9
|
+
//# sourceMappingURL=promise.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type Callback = (...args: any[]) => any;
|
|
2
|
+
/** Calls an optional callback and keeps its exception on the console rather than in the caller. */
|
|
3
|
+
export declare function safeCallback<F extends Callback>(callback?: F | void, ...args: Parameters<F>): any;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=safeCallback.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
import { AMLModel } from './types';
|
|
4
4
|
export declare function convertToSchema(model: AMLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
|
|
5
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -10,3 +10,4 @@ export declare function resolveDataType(typeName: string, database: number, mode
|
|
|
10
10
|
* drop it on the dialects whose ENUM(...) column already spells them out.
|
|
11
11
|
*/
|
|
12
12
|
export declare function enumCommentSuffix(typeName: string, model: AMLModel, database: number, enumValues?: string[]): string;
|
|
13
|
+
//# sourceMappingURL=dataType.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaAMLParserToSchemaJson(aml: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
import { DBMLModel } from './types';
|
|
4
4
|
export declare function convertToSchema(model: DBMLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
|
|
5
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -5,3 +5,4 @@ export declare function resolveDataType(typeName: string, typeSchemaName: string
|
|
|
5
5
|
* drop it on the dialects whose ENUM(...) column already spells them out.
|
|
6
6
|
*/
|
|
7
7
|
export declare function enumCommentSuffix(typeName: string, typeSchemaName: string, model: DBMLModel, database: number): string;
|
|
8
|
+
//# sourceMappingURL=dataType.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaDBMLParserToSchemaJson(dbml: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
import { GraphQLModel } from './types';
|
|
4
4
|
export declare function convertToSchema(model: GraphQLModel, ctx: EngineContext, database: number): ERDEditorSchemaV3;
|
|
5
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -5,3 +5,4 @@ export declare function resolveDataType(named: string, database: number, model:
|
|
|
5
5
|
* drop it on the dialects whose ENUM(...) column already spells them out.
|
|
6
6
|
*/
|
|
7
7
|
export declare function enumCommentSuffix(named: string, model: GraphQLModel, database?: number): string;
|
|
8
|
+
//# sourceMappingURL=dataType.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaGraphQLParserToSchemaJson(sdl: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=Databricks.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=MSSQL.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=MariaDB.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=MySQL.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=Oracle.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=PostgreSQL.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=SQLite.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
|
3
3
|
export declare function createSchema(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
5
5
|
export declare function formatIndex({ collections, settings: { bracketType } }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
6
|
+
//# sourceMappingURL=Snowflake.d.ts.map
|
|
@@ -2,3 +2,4 @@ import { RootState } from '../../engine/state';
|
|
|
2
2
|
import { Table } from '../../internal-types';
|
|
3
3
|
export declare function createSchemaSQL(state: RootState, database?: number): string;
|
|
4
4
|
export declare function createSchemaSQLTable(state: RootState, table: Table): string;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
2
|
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaSQLParserToSchemaJson(sql: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { Settings } from '../../internal-types';
|
|
3
|
-
import { ClipboardPayload } from '.';
|
|
3
|
+
import { ClipboardIndex, ClipboardPayload, ClipboardRelationship } from '.';
|
|
4
4
|
export declare function tableCopyToText(state: RootState): string;
|
|
5
5
|
export declare function tableCopyToHtml(state: RootState): string;
|
|
6
|
-
export declare function entitiesCopyToPayload(
|
|
6
|
+
export declare function entitiesCopyToPayload(state: RootState): ClipboardPayload | null;
|
|
7
|
+
/**
|
|
8
|
+
* A relationship is copied only when both end tables are in the copied set:
|
|
9
|
+
* half of one would point at the source tables, and relationshipSort refuses to
|
|
10
|
+
* route it while the scene still draws it at the old anchors.
|
|
11
|
+
*/
|
|
12
|
+
export declare function toClipboardRelationships({ doc, collections }: Pick<RootState, 'doc' | 'collections'>, tableIds: string[]): ClipboardRelationship[];
|
|
13
|
+
/**
|
|
14
|
+
* An index is copied whole or not at all, because a narrower copy of a
|
|
15
|
+
* composite index means something else — the same reason removeColumnAction$
|
|
16
|
+
* removes a whole index when one of its columns goes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function toClipboardIndexes({ doc, collections }: Pick<RootState, 'doc' | 'collections'>, tableIds: string[]): ClipboardIndex[];
|
|
7
19
|
export declare function columnsCopyToPayload({ editor: { focusTable }, collections, }: RootState): ClipboardPayload | null;
|
|
8
20
|
export declare function entitiesToTsv(payload: ClipboardPayload, settings: Settings): string;
|
|
9
21
|
export declare function entitiesToHtmlTable(payload: ClipboardPayload, settings: Settings): string;
|
|
10
22
|
export declare function payloadToHtml(payload: ClipboardPayload, tableHtml: string): string;
|
|
23
|
+
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -15,3 +15,4 @@ export declare const CellType: {
|
|
|
15
15
|
export type CellType = ValuesType<typeof CellType>;
|
|
16
16
|
export declare const hasCellType: (value: string) => boolean;
|
|
17
17
|
export declare function getShowColumnOrder(show: number, columnOrder: number[]): number[];
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,3 +5,4 @@ export declare function tablePasteFromTextToColumns({ settings: { show, columnOr
|
|
|
5
5
|
export declare function tablePasteFromHtmlToColumns({ settings: { show, columnOrder } }: RootState, html: string): Column[];
|
|
6
6
|
export declare function readClipboardPayload(dataTransfer: DataTransfer): ParseResult;
|
|
7
7
|
export declare function payloadToColumns({ columns }: ClipboardPayload): Column[];
|
|
8
|
+
//# sourceMappingURL=paste.d.ts.map
|