@dineug/erd-editor 3.4.0 → 3.6.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 +41 -10
- package/dist/components/appContext.d.ts +9 -1
- 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 +16 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +18 -1
- package/dist/components/erd/canvas/Canvas.d.ts +6 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +12 -0
- package/dist/components/erd/canvas/CanvasScene.d.ts +19 -0
- package/dist/components/erd/canvas/EditOverlay.d.ts +9 -0
- package/dist/components/erd/canvas/EditOverlay.styles.d.ts +7 -0
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +22 -0
- package/dist/components/erd/canvas/altDragDuplicate.d.ts +1 -0
- package/dist/components/erd/canvas/drag-select/DragSelect.d.ts +12 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -0
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.d.ts +6 -0
- package/dist/components/erd/canvas/entityDrag.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +5 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +3 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +12 -1
- package/dist/components/erd/canvas/memo/memoCaret.d.ts +27 -0
- package/dist/components/erd/canvas/memo/memoScroll.d.ts +29 -0
- package/dist/components/erd/canvas/memo/memoText.d.ts +34 -0
- package/dist/components/erd/canvas/memo/useMoveMemo.d.ts +7 -0
- package/dist/components/erd/canvas/relationship-group/RelationshipGroup.d.ts +16 -0
- package/dist/components/erd/canvas/{canvas-svg → relationship-group}/relationship/Relationship.d.ts +1 -0
- package/dist/components/erd/canvas/relationship-group/relationship/Relationship.template.d.ts +18 -0
- package/dist/components/erd/canvas/sceneHit.d.ts +19 -0
- package/dist/components/erd/canvas/sceneKind.d.ts +12 -0
- package/dist/components/erd/canvas/sceneRetention.d.ts +32 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +68 -0
- package/dist/components/erd/canvas/shared-drag-select/SharedDragSelect.d.ts +5 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +2 -0
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +6 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -0
- package/dist/components/erd/canvas/table/cellLayout.d.ts +64 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +17 -6
- package/dist/components/erd/canvas/table/doubleClick.d.ts +15 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +2 -1
- package/dist/components/erd/canvas/table/useSharedFocusTable.d.ts +1 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +19 -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 +2 -2
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -2
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +3 -1
- 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/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 +23 -0
- package/dist/components/erd/minimap/Minimap.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +1 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +17 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +8 -0
- package/dist/components/erd/minimap/minimapGeometry.d.ts +100 -0
- package/dist/components/erd/minimap/table/Table.d.ts +8 -0
- 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 +26 -0
- 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 +4 -12
- 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 +1 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -1
- 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 +55 -26
- 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 +5 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +6 -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/{erd/canvas/table → table-view}/Table.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/draw-relationship/DrawRelationship.styles.d.ts → table-view/column/Column.styles.d.ts} +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.d.ts +2 -1
- package/dist/components/{erd/canvas/table → table-view}/column/column-data-type/ColumnDataType.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.d.ts +1 -0
- package/dist/components/{erd/canvas/table → table-view}/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/table-view/column/useColumnCell.d.ts +24 -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 +10 -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 +12 -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 +7 -0
- package/dist/components/visualization/Visualization.styles.d.ts +7 -0
- package/dist/components/visualization/VisualizationScene.d.ts +22 -0
- package/dist/components/visualization/createVisualization.d.ts +68 -8
- package/dist/components/visualization/graph-node/GraphNode.d.ts +24 -0
- package/dist/components/visualization/table/Table.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/components/visualization/visualizationView.d.ts +91 -0
- package/dist/constants/language.d.ts +3 -2
- package/dist/constants/layout.d.ts +7 -13
- package/dist/constants/open.d.ts +1 -0
- package/dist/constants/schema.d.ts +2 -1
- 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/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 +21 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +92 -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 +31 -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 +46 -32
- 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 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/index.js +19991 -0
- package/dist/internal-types/index.d.ts +1 -0
- package/dist/konva/batchDraw.d.ts +42 -0
- package/dist/konva/host.d.ts +30 -0
- package/dist/konva/jsx-types.test-d.d.ts +2 -0
- package/dist/konva/scene/columnDropTarget.d.ts +14 -0
- package/dist/konva/scene/contentBounds.d.ts +29 -0
- package/dist/konva/scene/konvaFlip.d.ts +19 -0
- package/dist/konva/scene/metrics.d.ts +30 -0
- package/dist/konva/scene/renderScene.d.ts +35 -0
- package/dist/konva/scene/viewFreeze.d.ts +20 -0
- package/dist/konva/scene/viewport.d.ts +45 -0
- package/dist/konva/testHandle.d.ts +23 -0
- package/dist/konva/theme.d.ts +32 -0
- package/dist/konva/workerDomStubs.d.ts +2 -0
- package/dist/schemaGCService--wGet5O7.js +9636 -0
- package/dist/services/export-png/ExportScene.d.ts +16 -0
- package/dist/services/export-png/documentScene.d.ts +33 -0
- 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 +25 -0
- package/dist/services/export-png/index.d.ts +55 -0
- package/dist/services/export-png/pixelRatio.d.ts +22 -0
- package/dist/services/export-png/renderPng.d.ts +40 -0
- package/dist/services/export-png/textWidth.d.ts +28 -0
- package/dist/services/schema-gc/index.d.ts +9 -1
- 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/shikiService.d.ts +1 -0
- package/dist/styles/colorPicker.style.d.ts +4 -7
- package/dist/styles/fonts.styles.d.ts +2 -1
- package/dist/styles/reset.styles.d.ts +2 -1
- package/dist/styles/scrollbar.styles.d.ts +4 -3
- package/dist/styles/typography.styles.d.ts +2 -1
- 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 +5 -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 +2 -1
- 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 +1 -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 +71 -0
- package/dist/utils/draw-relationship/index.d.ts +48 -42
- package/dist/utils/draw-relationship/nudge.d.ts +3 -1
- package/dist/utils/draw-relationship/pathFinding.d.ts +4 -5
- package/dist/utils/draw-relationship/route.d.ts +5 -9
- package/dist/utils/draw-relationship/sort.d.ts +1 -0
- package/dist/utils/draw-relationship/stub.d.ts +6 -16
- package/dist/utils/emitter.d.ts +17 -0
- package/dist/utils/file/exportFile.d.ts +11 -1
- package/dist/utils/file/importFile.d.ts +1 -0
- package/dist/utils/flipAnimation.d.ts +1 -0
- package/dist/utils/focus.d.ts +2 -1
- 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 +14 -12
- package/dist/utils/icon.d.ts +10 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/internalEvents.d.ts +1 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +16 -1
- package/dist/utils/keyboard-shortcut/utils.d.ts +1 -0
- package/dist/utils/promise.d.ts +1 -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 +6 -6
- 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 +4 -5
- package/dist/utils/schema-aml-parser/types.d.ts +14 -14
- package/dist/utils/schema-dbml-parser/convert.d.ts +1 -0
- package/dist/utils/schema-dbml-parser/dataType.d.ts +3 -2
- 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 +6 -5
- package/dist/utils/schema-graphql-parser/convert.d.ts +1 -0
- package/dist/utils/schema-graphql-parser/dataType.d.ts +3 -2
- 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 +8 -7
- 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/exportPng.shared-worker.js +54 -0
- package/dist/workers/schemaGC.shared-worker.js +1 -0
- package/dist/workers/spawn.d.ts +8 -0
- package/dist/workers/spawn.inline.d.ts +8 -0
- package/package.json +53 -51
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -7
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +0 -1
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +0 -3
- package/dist/components/erd/canvas/duplicate-ghost/DuplicateGhost.styles.d.ts +0 -2
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +0 -1
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +0 -6
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.styles.d.ts +0 -1
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +0 -2
- package/dist/components/erd/drag-select/DragSelect.d.ts +0 -9
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +0 -1
- 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-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 -20
- package/dist/engine.js +0 -42
- package/dist/erd-editor.js +0 -32023
- package/dist/schemaGCService-DAGNq0wk.js +0 -17092
- package/dist/services/schema-gc/schemaGC.worker.d.ts +0 -1
- package/dist/themes/textColor.d.ts +0 -2
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* quoting and the constraint grammar
|
|
4
|
-
* so
|
|
5
|
-
* nested attribute reaches `convert.ts` as one entry whose `path` is dotted.
|
|
2
|
+
* tokenizer.ts and parser.ts own every AML syntax concern, resolving
|
|
3
|
+
* indentation, quoting and the constraint grammar into the flat fields below,
|
|
4
|
+
* so convert.ts never sees a token and a nested attribute arrives dotted.
|
|
6
5
|
*/
|
|
7
6
|
export type AMLNamespace = {
|
|
8
7
|
database: string;
|
|
9
8
|
catalog: string;
|
|
10
9
|
schema: string;
|
|
11
10
|
};
|
|
12
|
-
/**
|
|
11
|
+
/** A dash on either end reads as 1, an angle bracket as n. */
|
|
13
12
|
export type AMLCardinality = '1' | 'n';
|
|
14
13
|
export type AMLEndpoint = {
|
|
15
14
|
namespace: AMLNamespace;
|
|
16
15
|
entityName: string;
|
|
17
|
-
/** Dotted from the entity root, so a nested endpoint keeps
|
|
16
|
+
/** Dotted from the entity root, so a nested endpoint keeps settings.slug. */
|
|
18
17
|
attributePaths: string[];
|
|
19
18
|
};
|
|
20
19
|
export type AMLRelation = {
|
|
@@ -22,12 +21,12 @@ export type AMLRelation = {
|
|
|
22
21
|
ref: AMLEndpoint;
|
|
23
22
|
srcCardinality: AMLCardinality;
|
|
24
23
|
refCardinality: AMLCardinality;
|
|
25
|
-
/**
|
|
24
|
+
/** -item_kind=User>; the discriminator has no editor slot and is dropped. */
|
|
26
25
|
polymorphic: boolean;
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
|
-
* One
|
|
30
|
-
*
|
|
28
|
+
* One unique / unique=name / index / index=name constraint. A bare
|
|
29
|
+
* unique is a column flag; every other spelling groups by name.
|
|
31
30
|
*/
|
|
32
31
|
export type AMLAttributeIndex = {
|
|
33
32
|
name: string;
|
|
@@ -39,9 +38,9 @@ export type AMLAttribute = {
|
|
|
39
38
|
comment: string;
|
|
40
39
|
/** Holds the argument list and any array suffix; never the namespace. */
|
|
41
40
|
typeName: string;
|
|
42
|
-
/** Inline
|
|
41
|
+
/** Inline status post_status(draft, published) members. */
|
|
43
42
|
enumValues: string[];
|
|
44
|
-
/** AML is NOT NULL by default, so
|
|
43
|
+
/** AML is NOT NULL by default, so nullable is what clears this. */
|
|
45
44
|
notNull: boolean;
|
|
46
45
|
primaryKey: boolean;
|
|
47
46
|
indexes: AMLAttributeIndex[];
|
|
@@ -58,14 +57,14 @@ export type AMLEntity = {
|
|
|
58
57
|
/** A struct and a custom type carry neither field, which is what stops a lookup. */
|
|
59
58
|
export type AMLType = {
|
|
60
59
|
values: string[];
|
|
61
|
-
/**
|
|
60
|
+
/** type uid int -- the aliased name. */
|
|
62
61
|
alias: string;
|
|
63
62
|
};
|
|
64
63
|
export type AMLModel = {
|
|
65
64
|
entities: AMLEntity[];
|
|
66
|
-
/** Inline and standalone relations in source order, both with
|
|
65
|
+
/** Inline and standalone relations in source order, both with src filled. */
|
|
67
66
|
relations: AMLRelation[];
|
|
68
|
-
/** Keyed by the qualified name, so
|
|
67
|
+
/** Keyed by the qualified name, so cms.post_status and post_status stay apart. */
|
|
69
68
|
types: Record<string, AMLType>;
|
|
70
69
|
skipped: string[];
|
|
71
70
|
};
|
|
@@ -77,3 +76,4 @@ export type AMLParseResult = {
|
|
|
77
76
|
message: string;
|
|
78
77
|
};
|
|
79
78
|
export declare const EMPTY_NAMESPACE: AMLNamespace;
|
|
79
|
+
//# sourceMappingURL=types.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
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DBMLModel } from './types';
|
|
2
2
|
export declare function resolveDataType(typeName: string, typeSchemaName: string, database: number, model: DBMLModel): string;
|
|
3
3
|
/**
|
|
4
|
-
* Keeps the members where the column type cannot hold them. Pass
|
|
5
|
-
* drop it on the dialects whose
|
|
4
|
+
* Keeps the members where the column type cannot hold them. Pass database to
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* resolved into the flat fields below, so
|
|
2
|
+
* tokenizer.ts and parser.ts own every DBML syntax concern -- settings are
|
|
3
|
+
* resolved into the flat fields below, so convert.ts never sees a token.
|
|
4
4
|
*/
|
|
5
5
|
export type DBMLEndpoint = {
|
|
6
6
|
schemaName: string;
|
|
@@ -8,7 +8,7 @@ export type DBMLEndpoint = {
|
|
|
8
8
|
columnNames: string[];
|
|
9
9
|
};
|
|
10
10
|
export type DBMLInlineRef = {
|
|
11
|
-
/**
|
|
11
|
+
/** -, <, > or <>, with the ? optionality markers dropped. */
|
|
12
12
|
operator: string;
|
|
13
13
|
target: DBMLEndpoint;
|
|
14
14
|
};
|
|
@@ -28,7 +28,7 @@ export type DBMLColumn = {
|
|
|
28
28
|
export type DBMLIndex = {
|
|
29
29
|
name: string;
|
|
30
30
|
unique: boolean;
|
|
31
|
-
/**
|
|
31
|
+
/** [pk], which is DBML's only composite primary key spelling. */
|
|
32
32
|
primaryKey: boolean;
|
|
33
33
|
/** Expression columns are dropped, so these are column names only. */
|
|
34
34
|
columnNames: string[];
|
|
@@ -49,7 +49,7 @@ export type DBMLRef = {
|
|
|
49
49
|
export type DBMLModel = {
|
|
50
50
|
tables: DBMLTable[];
|
|
51
51
|
refs: DBMLRef[];
|
|
52
|
-
/** Keyed by the qualified name, so
|
|
52
|
+
/** Keyed by the qualified name, so s.status and status stay apart. */
|
|
53
53
|
enums: Record<string, string[]>;
|
|
54
54
|
skipped: string[];
|
|
55
55
|
};
|
|
@@ -60,3 +60,4 @@ export type DBMLParseResult = {
|
|
|
60
60
|
ok: false;
|
|
61
61
|
message: string;
|
|
62
62
|
};
|
|
63
|
+
//# sourceMappingURL=types.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
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GraphQLModel } from './types';
|
|
2
2
|
export declare function resolveDataType(named: string, database: number, model: GraphQLModel): string;
|
|
3
3
|
/**
|
|
4
|
-
* Keeps the members where the column type cannot hold them. Pass
|
|
5
|
-
* drop it on the dialects whose
|
|
4
|
+
* Keeps the members where the column type cannot hold them. Pass database to
|
|
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
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* the flat fields below, so
|
|
2
|
+
* parser.ts owns every graphql AST concern -- directives are resolved into
|
|
3
|
+
* the flat fields below, so convert.ts never imports from graphql.
|
|
4
4
|
*/
|
|
5
5
|
export type GraphQLTypeRef = {
|
|
6
6
|
named: string;
|
|
7
|
-
/** The outermost wrapper is
|
|
7
|
+
/** The outermost wrapper is NonNull -- the column-level NOT NULL signal. */
|
|
8
8
|
nonNull: boolean;
|
|
9
9
|
isList: boolean;
|
|
10
|
-
/** The
|
|
10
|
+
/** The ! inside [T!] -- a cardinality signal, never a column one. */
|
|
11
11
|
itemNonNull: boolean;
|
|
12
12
|
};
|
|
13
13
|
export type GraphQLField = {
|
|
14
|
-
/** Already rewritten by
|
|
14
|
+
/** Already rewritten by @map / @column(name:) when either is present. */
|
|
15
15
|
name: string;
|
|
16
16
|
comment: string;
|
|
17
17
|
typeRef: GraphQLTypeRef;
|
|
@@ -19,7 +19,7 @@ export type GraphQLField = {
|
|
|
19
19
|
unique: boolean;
|
|
20
20
|
autoIncrement: boolean;
|
|
21
21
|
default: string;
|
|
22
|
-
/**
|
|
22
|
+
/** @db.* or @column(dataType:); wins over the scalar lookup when set. */
|
|
23
23
|
dataType: string;
|
|
24
24
|
relationName: string;
|
|
25
25
|
/** Columns on this type. */
|
|
@@ -43,7 +43,7 @@ export type GraphQLTable = {
|
|
|
43
43
|
export type GraphQLModel = {
|
|
44
44
|
tables: GraphQLTable[];
|
|
45
45
|
enums: Record<string, string[]>;
|
|
46
|
-
/**
|
|
46
|
+
/** scalar X declarations, so an unknown name can be told from a typo. */
|
|
47
47
|
customScalars: string[];
|
|
48
48
|
unions: Record<string, string[]>;
|
|
49
49
|
/** Pruned type names, so a field pointing at one is dropped rather than read. */
|
|
@@ -56,3 +56,4 @@ export type GraphQLParseResult = {
|
|
|
56
56
|
ok: false;
|
|
57
57
|
message: string;
|
|
58
58
|
};
|
|
59
|
+
//# sourceMappingURL=types.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
|
|
@@ -52,6 +52,30 @@ export type ClipboardMemo = {
|
|
|
52
52
|
color: string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
export type ClipboardRelationshipPoint = {
|
|
56
|
+
tableId: string;
|
|
57
|
+
columnIds: string[];
|
|
58
|
+
};
|
|
59
|
+
export type ClipboardRelationship = {
|
|
60
|
+
relationshipType: number;
|
|
61
|
+
start: ClipboardRelationshipPoint;
|
|
62
|
+
end: ClipboardRelationshipPoint;
|
|
63
|
+
};
|
|
64
|
+
export type ClipboardIndexColumn = {
|
|
65
|
+
columnId: string;
|
|
66
|
+
orderType: number;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* An index rides with its table and nests its columns in indexColumnIds order,
|
|
70
|
+
* because an index column has no identity outside its index and nothing else
|
|
71
|
+
* ever refers to one.
|
|
72
|
+
*/
|
|
73
|
+
export type ClipboardIndex = {
|
|
74
|
+
tableId: string;
|
|
75
|
+
name: string;
|
|
76
|
+
unique: boolean;
|
|
77
|
+
indexColumns: ClipboardIndexColumn[];
|
|
78
|
+
};
|
|
55
79
|
export type ClipboardPayload = {
|
|
56
80
|
format: typeof CLIPBOARD_FORMAT;
|
|
57
81
|
version: number;
|
|
@@ -60,6 +84,8 @@ export type ClipboardPayload = {
|
|
|
60
84
|
tables: ClipboardTable[];
|
|
61
85
|
columns: ClipboardColumn[];
|
|
62
86
|
memos: ClipboardMemo[];
|
|
87
|
+
relationships?: ClipboardRelationship[];
|
|
88
|
+
indexes?: ClipboardIndex[];
|
|
63
89
|
};
|
|
64
90
|
export type ParseResult = {
|
|
65
91
|
status: 'ok';
|
|
@@ -76,8 +102,11 @@ type CreatePayloadConfig = {
|
|
|
76
102
|
tables?: ClipboardTable[];
|
|
77
103
|
columns?: ClipboardColumn[];
|
|
78
104
|
memos?: ClipboardMemo[];
|
|
105
|
+
relationships?: ClipboardRelationship[];
|
|
106
|
+
indexes?: ClipboardIndex[];
|
|
79
107
|
};
|
|
80
|
-
export declare function createPayload({ kind, copyId, tables, columns, memos, }: CreatePayloadConfig): ClipboardPayload;
|
|
108
|
+
export declare function createPayload({ kind, copyId, tables, columns, memos, relationships, indexes, }: CreatePayloadConfig): ClipboardPayload;
|
|
81
109
|
export declare function parsePayload(json: string): ParseResult;
|
|
82
110
|
export declare function migratePayload(payload: ClipboardPayload): ClipboardPayload;
|
|
83
111
|
export {};
|
|
112
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -28,3 +28,4 @@ export type ResolvePlacementConfig = {
|
|
|
28
28
|
findSource: (sourceId: string) => PlacementSource | undefined | null;
|
|
29
29
|
};
|
|
30
30
|
export declare function resolvePlacement({ entities, offset, escapeCollision, settings, tables, memos, findSource, }: ResolvePlacementConfig): Map<string, PlacementPoint>;
|
|
31
|
+
//# sourceMappingURL=placement.d.ts.map
|
package/dist/utils/text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const toNumString: (value: string) => string;
|
|
2
|
-
export declare const maxWidthCommentInRange: (
|
|
2
|
+
export declare const maxWidthCommentInRange: (value: number) => number;
|
|
3
3
|
export declare function canvasSizeInRange(size: number | string): number;
|
|
4
4
|
export declare function zoomLevelInRange(zoom: number): number;
|
|
5
5
|
export declare function toMaxWidthCommentFormat(width: number): string;
|
|
@@ -15,3 +15,4 @@ export declare function textInRange(width: number): number;
|
|
|
15
15
|
export declare function toSafeString(value: any): string;
|
|
16
16
|
export declare function isHighLevelTable(zoomLevel: number): boolean;
|
|
17
17
|
export declare function isEditableTarget(target: EventTarget | null): boolean;
|
|
18
|
+
//# sourceMappingURL=validation.d.ts.map
|