@dineug/erd-editor 3.0.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/LICENSE +21 -0
- package/README.md +337 -0
- package/dist/components/appContext.d.ts +22 -0
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +6 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +2 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +11 -0
- package/dist/components/erd/canvas/Canvas.d.ts +7 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +7 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +8 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +3 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +8 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.styles.d.ts +1 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +1 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +7 -0
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +6 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +9 -0
- package/dist/components/erd/canvas/table/Table.d.ts +7 -0
- package/dist/components/erd/canvas/table/Table.styles.d.ts +5 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +29 -0
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +2 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +16 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.styles.d.ts +3 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +6 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +7 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +11 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +7 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +6 -0
- package/dist/components/erd/drag-select/DragSelect.d.ts +9 -0
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +17 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +12 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +16 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +7 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +6 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +3 -0
- package/dist/components/erd/hide-sign/HideSign.d.ts +6 -0
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.d.ts +4 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +3 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +7 -0
- package/dist/components/erd/minimap/table/Table.d.ts +7 -0
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +7 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +6 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +9 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +8 -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 +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +9 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +4 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +14 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +2 -0
- package/dist/components/erd/useErdShortcut.d.ts +2 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +26 -0
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +18 -0
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +2 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +21 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +7 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +6 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +12 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +4 -0
- package/dist/components/primitives/button/Button.d.ts +9 -0
- package/dist/components/primitives/button/Button.stories.d.ts +26 -0
- package/dist/components/primitives/button/Button.styles.d.ts +6 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +10 -0
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +25 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +3 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +12 -0
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +26 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +10 -0
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +16 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +9 -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 +8 -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 +6 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +22 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +8 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +3 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +16 -0
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +36 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +4 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +8 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +23 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +14 -0
- package/dist/components/primitives/icon/Icon.stories.d.ts +8 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +2 -0
- package/dist/components/primitives/icon/icons.d.ts +29 -0
- package/dist/components/primitives/kbd/Kbd.d.ts +7 -0
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +17 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +3 -0
- package/dist/components/primitives/sash/Sash.d.ts +27 -0
- package/dist/components/primitives/sash/Sash.stories.d.ts +30 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +2 -0
- package/dist/components/primitives/separator/Separator.d.ts +7 -0
- package/dist/components/primitives/separator/Separator.stories.d.ts +25 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +2 -0
- package/dist/components/primitives/switch/Switch.d.ts +8 -0
- package/dist/components/primitives/switch/Switch.stories.d.ts +21 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +5 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +19 -0
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +41 -0
- package/dist/components/primitives/toast/Toast.d.ts +8 -0
- package/dist/components/primitives/toast/Toast.stories.d.ts +20 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +5 -0
- package/dist/components/quick-search/QuickSearch.d.ts +4 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +10 -0
- package/dist/components/quick-search/actions.d.ts +14 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +7 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +6 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +12 -0
- package/dist/components/settings/Settings.d.ts +4 -0
- package/dist/components/settings/Settings.styles.d.ts +10 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +13 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +3 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +4 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +2 -0
- package/dist/components/theme/Theme.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -0
- package/dist/components/toast-container/ToastContainer.d.ts +4 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +6 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +3 -0
- package/dist/components/visualization/Visualization.d.ts +4 -0
- package/dist/components/visualization/Visualization.styles.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +9 -0
- package/dist/components/visualization/table/Table.d.ts +10 -0
- package/dist/components/visualization/table/Table.styles.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.d.ts +12 -0
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/constants/language.d.ts +1 -0
- package/dist/constants/layout.d.ts +32 -0
- package/dist/constants/open.d.ts +8 -0
- package/dist/constants/schema.d.ts +102 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +5 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +5 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +5 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +5 -0
- package/dist/constants/sql/dataType/index.d.ts +25 -0
- package/dist/constants/sql/database.d.ts +12 -0
- package/dist/engine/actions.d.ts +35 -0
- package/dist/engine/context.d.ts +5 -0
- package/dist/engine/generator.actions.d.ts +4 -0
- package/dist/engine/history.actions.d.ts +9 -0
- package/dist/engine/history.d.ts +20 -0
- package/dist/engine/hooks.d.ts +8 -0
- package/dist/engine/modules/editor/actions.d.ts +93 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +406 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +31 -0
- package/dist/engine/modules/editor/history.d.ts +5 -0
- package/dist/engine/modules/editor/state.d.ts +63 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +15 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +3 -0
- package/dist/engine/modules/index/actions.d.ts +31 -0
- package/dist/engine/modules/index/atom.actions.d.ts +101 -0
- package/dist/engine/modules/index/generator.actions.d.ts +7 -0
- package/dist/engine/modules/index/history.d.ts +7 -0
- package/dist/engine/modules/index-column/actions.d.ts +37 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +125 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +11 -0
- package/dist/engine/modules/index-column/history.d.ts +7 -0
- package/dist/engine/modules/memo/actions.d.ts +59 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +225 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +9 -0
- package/dist/engine/modules/memo/history.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +31 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +102 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +6 -0
- package/dist/engine/modules/relationship/hooks.d.ts +2 -0
- package/dist/engine/modules/settings/actions.d.ts +83 -0
- package/dist/engine/modules/settings/atom.actions.d.ts +348 -0
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +11 -0
- package/dist/engine/modules/table/actions.d.ts +57 -0
- package/dist/engine/modules/table/atom.actions.d.ts +224 -0
- package/dist/engine/modules/table/generator.actions.d.ts +12 -0
- package/dist/engine/modules/table/history.d.ts +13 -0
- package/dist/engine/modules/table/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/actions.d.ts +53 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +230 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +19 -0
- package/dist/engine/modules/table-column/history.d.ts +14 -0
- package/dist/engine/modules/table-column/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +3 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +3 -0
- package/dist/engine/rx-operators/index.d.ts +4 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +2 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +3 -0
- package/dist/engine/rx-store.d.ts +10 -0
- package/dist/engine/state.d.ts +5 -0
- package/dist/engine/store.d.ts +5 -0
- package/dist/engine/store.hooks.d.ts +4 -0
- package/dist/engine/tag.d.ts +7 -0
- package/dist/erd-editor.js +42402 -0
- package/dist/hooks/useDarkMode.d.ts +5 -0
- package/dist/hooks/useFlipAnimation.d.ts +2 -0
- package/dist/hooks/useKeyBindingMap.d.ts +3 -0
- package/dist/hooks/useUnmounted.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/internal-types/index.d.ts +40 -0
- package/dist/services/schema-gc/index.d.ts +10 -0
- package/dist/services/schema-gc/procGC.d.ts +3 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +4 -0
- package/dist/services/shikiService.d.ts +8 -0
- package/dist/styles/colorPicker.style.d.ts +1 -0
- package/dist/styles/fonts.styles.d.ts +3 -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 +14 -0
- package/dist/themes/radix-ui-theme.config.d.ts +2 -0
- package/dist/themes/radix-ui-theme.d.ts +1792 -0
- package/dist/themes/textColor.d.ts +2 -0
- package/dist/themes/tokens.d.ts +63 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +3 -0
- package/dist/utils/calcTable.d.ts +16 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +2 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +2 -0
- package/dist/utils/collection/memo.entity.d.ts +2 -0
- package/dist/utils/collection/relationship.entity.d.ts +2 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +2 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +2 -0
- package/dist/utils/device-detect/index.d.ts +7 -0
- package/dist/utils/domEvent.d.ts +6 -0
- package/dist/utils/dragSelect.d.ts +23 -0
- package/dist/utils/draw-relationship/calc.d.ts +6 -0
- package/dist/utils/draw-relationship/draw.d.ts +4 -0
- package/dist/utils/draw-relationship/index.d.ts +108 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +3 -0
- package/dist/utils/draw-relationship/sort.d.ts +2 -0
- package/dist/utils/emitter.d.ts +141 -0
- package/dist/utils/file/exportFile.d.ts +9 -0
- package/dist/utils/file/importFile.d.ts +10 -0
- package/dist/utils/flipAnimation.d.ts +10 -0
- package/dist/utils/focus.d.ts +5 -0
- package/dist/utils/generator-code/csharp.d.ts +4 -0
- package/dist/utils/generator-code/graphql.d.ts +4 -0
- package/dist/utils/generator-code/index.d.ts +4 -0
- package/dist/utils/generator-code/java.d.ts +4 -0
- package/dist/utils/generator-code/jpa.d.ts +4 -0
- package/dist/utils/generator-code/kotlin.d.ts +4 -0
- package/dist/utils/generator-code/scala.d.ts +4 -0
- package/dist/utils/generator-code/typescript.d.ts +4 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/globalEmitter.d.ts +28 -0
- package/dist/utils/globalEventObservable.d.ts +41 -0
- package/dist/utils/icon.d.ts +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/internalEvents.d.ts +38 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +36 -0
- package/dist/utils/keyboard-shortcut/utils.d.ts +2 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +3 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +3 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +2 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +5 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +5 -0
- package/dist/utils/schema-sql/MySQL.d.ts +5 -0
- package/dist/utils/schema-sql/Oracle.d.ts +5 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +5 -0
- package/dist/utils/schema-sql/SQLite.d.ts +5 -0
- package/dist/utils/schema-sql/index.d.ts +4 -0
- package/dist/utils/schema-sql/utils.d.ts +53 -0
- package/dist/utils/schema-sql-parser/index.d.ts +3 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +3 -0
- package/dist/utils/table-clipboard/copy.d.ts +3 -0
- package/dist/utils/table-clipboard/index.d.ts +15 -0
- package/dist/utils/table-clipboard/paste.d.ts +4 -0
- package/dist/utils/text.d.ts +4 -0
- package/dist/utils/validation.d.ts +16 -0
- package/dist/workers/schemaGC.shared-worker.d.ts +1 -0
- package/dist/workers/schemaGC.worker.d.ts +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RootState } from "../../engine/state";
|
|
2
|
+
type Props = {
|
|
3
|
+
onDragStart: () => void;
|
|
4
|
+
onDragEnd: () => void;
|
|
5
|
+
onStartPreview: (event: MouseEvent, tableId: string | null, columnId: string | null) => void;
|
|
6
|
+
onEndPreview: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function createVisualization(state: RootState, props: Props): import("d3-selection").Selection<SVGSVGElement, undefined, null, undefined>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { Column } from "../../../../internal-types";
|
|
3
|
+
export type ColumnProps = {
|
|
4
|
+
column: Column;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
widthName: number;
|
|
7
|
+
widthDataType: number;
|
|
8
|
+
widthDefault: number;
|
|
9
|
+
widthComment: number;
|
|
10
|
+
};
|
|
11
|
+
declare const Column: FC<ColumnProps>;
|
|
12
|
+
export default Column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LanguageToLangMap: Record<number, string>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const START_X = 200;
|
|
2
|
+
export declare const START_Y = 100;
|
|
3
|
+
export declare const START_ADD = 50;
|
|
4
|
+
export declare const DEFAULT_WIDTH = 1200;
|
|
5
|
+
export declare const DEFAULT_HEIGHT: number;
|
|
6
|
+
export declare const INPUT_HEIGHT = 20;
|
|
7
|
+
export declare const INPUT_MARGIN_RIGHT = 8;
|
|
8
|
+
export declare const HEADER_ICON_HEIGHT = 12;
|
|
9
|
+
export declare const HEADER_ICON_MARGIN_BOTTOM = 4;
|
|
10
|
+
export declare const TABLE_BORDER = 1;
|
|
11
|
+
export declare const TABLE_PADDING = 8;
|
|
12
|
+
export declare const TABLE_HEADER_PADDING = 2;
|
|
13
|
+
export declare const TABLE_HEADER_ICON_MARGIN_BOTTOM = 2;
|
|
14
|
+
export declare const TABLE_HEADER_INPUT_HEIGHT: number;
|
|
15
|
+
export declare const TABLE_HEADER_HEIGHT: number;
|
|
16
|
+
export declare const TABLE_HEADER_BUTTON_MARGIN_LEFT = 4;
|
|
17
|
+
export declare const COLUMN_DELETE_WIDTH = 12;
|
|
18
|
+
export declare const COLUMN_KEY_WIDTH = 12;
|
|
19
|
+
export declare const COLUMN_MIN_WIDTH = 60;
|
|
20
|
+
export declare const COLUMN_NOT_NULL_WIDTH = 35;
|
|
21
|
+
export declare const COLUMN_UNIQUE_WIDTH = 22;
|
|
22
|
+
export declare const COLUMN_AUTO_INCREMENT_WIDTH = 15;
|
|
23
|
+
export declare const COLUMN_PADDING = 2;
|
|
24
|
+
export declare const COLUMN_HEIGHT: number;
|
|
25
|
+
export declare const MEMO_BORDER = 1;
|
|
26
|
+
export declare const MEMO_PADDING = 8;
|
|
27
|
+
export declare const MEMO_HEADER_HEIGHT: number;
|
|
28
|
+
export declare const MEMO_MIN_WIDTH: number;
|
|
29
|
+
export declare const MEMO_MIN_HEIGHT = 100;
|
|
30
|
+
export declare const MINIMAP_SIZE = 150;
|
|
31
|
+
export declare const MINIMAP_MARGIN = 20;
|
|
32
|
+
export declare const TOOLBAR_HEIGHT = 30;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValuesType } from "../internal-types";
|
|
2
|
+
export declare const Open: {
|
|
3
|
+
readonly automaticTablePlacement: "automaticTablePlacement";
|
|
4
|
+
readonly tableProperties: "tableProperties";
|
|
5
|
+
readonly search: "search";
|
|
6
|
+
readonly themeBuilder: "themeBuilder";
|
|
7
|
+
};
|
|
8
|
+
export type Open = ValuesType<typeof Open>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const CanvasType: {
|
|
2
|
+
readonly ERD: "ERD";
|
|
3
|
+
readonly visualization: "@dineug/erd-editor/builtin-visualization";
|
|
4
|
+
readonly schemaSQL: "@dineug/erd-editor/builtin-schema-sql";
|
|
5
|
+
readonly generatorCode: "@dineug/erd-editor/builtin-generator-code";
|
|
6
|
+
readonly settings: "settings";
|
|
7
|
+
};
|
|
8
|
+
export declare const CanvasTypeList: readonly string[];
|
|
9
|
+
export declare const Show: {
|
|
10
|
+
readonly tableComment: 1;
|
|
11
|
+
readonly columnComment: 2;
|
|
12
|
+
readonly columnDataType: 4;
|
|
13
|
+
readonly columnDefault: 8;
|
|
14
|
+
readonly columnAutoIncrement: 16;
|
|
15
|
+
readonly columnPrimaryKey: 32;
|
|
16
|
+
readonly columnUnique: 64;
|
|
17
|
+
readonly columnNotNull: 128;
|
|
18
|
+
readonly relationship: 256;
|
|
19
|
+
};
|
|
20
|
+
export declare const ColumnType: {
|
|
21
|
+
readonly columnName: 1;
|
|
22
|
+
readonly columnDataType: 2;
|
|
23
|
+
readonly columnNotNull: 4;
|
|
24
|
+
readonly columnUnique: 8;
|
|
25
|
+
readonly columnAutoIncrement: 16;
|
|
26
|
+
readonly columnDefault: 32;
|
|
27
|
+
readonly columnComment: 64;
|
|
28
|
+
};
|
|
29
|
+
export declare const ColumnTypeList: readonly number[];
|
|
30
|
+
export declare const Database: {
|
|
31
|
+
readonly MariaDB: 1;
|
|
32
|
+
readonly MSSQL: 2;
|
|
33
|
+
readonly MySQL: 4;
|
|
34
|
+
readonly Oracle: 8;
|
|
35
|
+
readonly PostgreSQL: 16;
|
|
36
|
+
readonly SQLite: 32;
|
|
37
|
+
};
|
|
38
|
+
export declare const DatabaseList: readonly number[];
|
|
39
|
+
export declare const Language: {
|
|
40
|
+
readonly GraphQL: 1;
|
|
41
|
+
readonly csharp: 2;
|
|
42
|
+
readonly Java: 4;
|
|
43
|
+
readonly Kotlin: 8;
|
|
44
|
+
readonly TypeScript: 16;
|
|
45
|
+
readonly JPA: 32;
|
|
46
|
+
readonly Scala: 64;
|
|
47
|
+
};
|
|
48
|
+
export declare const LanguageList: readonly number[];
|
|
49
|
+
export declare const NameCase: {
|
|
50
|
+
readonly none: 1;
|
|
51
|
+
readonly camelCase: 2;
|
|
52
|
+
readonly pascalCase: 4;
|
|
53
|
+
readonly snakeCase: 8;
|
|
54
|
+
};
|
|
55
|
+
export declare const NameCaseList: readonly number[];
|
|
56
|
+
export declare const BracketType: {
|
|
57
|
+
readonly none: 1;
|
|
58
|
+
readonly doubleQuote: 2;
|
|
59
|
+
readonly singleQuote: 4;
|
|
60
|
+
readonly backtick: 8;
|
|
61
|
+
};
|
|
62
|
+
export declare const BracketTypeList: readonly number[];
|
|
63
|
+
export declare const RelationshipType: {
|
|
64
|
+
readonly ZeroOne: 2;
|
|
65
|
+
readonly ZeroN: 4;
|
|
66
|
+
readonly OneOnly: 8;
|
|
67
|
+
readonly OneN: 16;
|
|
68
|
+
};
|
|
69
|
+
export declare const RelationshipTypeList: readonly number[];
|
|
70
|
+
export declare const StartRelationshipType: {
|
|
71
|
+
readonly ring: 1;
|
|
72
|
+
readonly dash: 2;
|
|
73
|
+
};
|
|
74
|
+
export declare const StartRelationshipTypeList: readonly number[];
|
|
75
|
+
export declare const Direction: {
|
|
76
|
+
readonly left: 1;
|
|
77
|
+
readonly right: 2;
|
|
78
|
+
readonly top: 4;
|
|
79
|
+
readonly bottom: 8;
|
|
80
|
+
};
|
|
81
|
+
export declare const DirectionList: readonly number[];
|
|
82
|
+
export declare const ColumnOption: {
|
|
83
|
+
readonly autoIncrement: 1;
|
|
84
|
+
readonly primaryKey: 2;
|
|
85
|
+
readonly unique: 4;
|
|
86
|
+
readonly notNull: 8;
|
|
87
|
+
};
|
|
88
|
+
export declare const ColumnUIKey: {
|
|
89
|
+
readonly primaryKey: 1;
|
|
90
|
+
readonly foreignKey: 2;
|
|
91
|
+
};
|
|
92
|
+
export declare const OrderType: {
|
|
93
|
+
readonly ASC: 1;
|
|
94
|
+
readonly DESC: 2;
|
|
95
|
+
};
|
|
96
|
+
export declare const OrderTypeList: readonly number[];
|
|
97
|
+
export declare const CANVAS_SIZE_MAX: 20000;
|
|
98
|
+
export declare const CANVAS_SIZE_MIN: 2000;
|
|
99
|
+
export declare const CANVAS_ZOOM_MAX: 1;
|
|
100
|
+
export declare const CANVAS_ZOOM_MIN: 0.1;
|
|
101
|
+
export declare const BracketTypeMap: Record<number, string>;
|
|
102
|
+
export declare const ColumnTypeToName: Record<number, string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ValuesType } from "../../../internal-types";
|
|
2
|
+
export declare const PrimitiveType: {
|
|
3
|
+
readonly int: "int";
|
|
4
|
+
readonly long: "long";
|
|
5
|
+
readonly float: "float";
|
|
6
|
+
readonly double: "double";
|
|
7
|
+
readonly decimal: "decimal";
|
|
8
|
+
readonly boolean: "boolean";
|
|
9
|
+
readonly string: "string";
|
|
10
|
+
readonly lob: "lob";
|
|
11
|
+
readonly date: "date";
|
|
12
|
+
readonly dateTime: "dateTime";
|
|
13
|
+
readonly time: "time";
|
|
14
|
+
};
|
|
15
|
+
export type PrimitiveType = ValuesType<typeof PrimitiveType>;
|
|
16
|
+
export type PrimitiveTypeMap = Record<PrimitiveType, string>;
|
|
17
|
+
export type DataTypeHint = {
|
|
18
|
+
name: string;
|
|
19
|
+
primitiveType: PrimitiveType;
|
|
20
|
+
};
|
|
21
|
+
export type DatabaseHint = {
|
|
22
|
+
database: number;
|
|
23
|
+
dataTypeHints: DataTypeHint[];
|
|
24
|
+
};
|
|
25
|
+
export declare const DatabaseHintMap: Record<number, Array<DataTypeHint>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValuesType } from "../../internal-types";
|
|
2
|
+
export declare const DatabaseVendor: {
|
|
3
|
+
readonly MariaDB: "MariaDB";
|
|
4
|
+
readonly MSSQL: "MSSQL";
|
|
5
|
+
readonly MySQL: "MySQL";
|
|
6
|
+
readonly Oracle: "Oracle";
|
|
7
|
+
readonly PostgreSQL: "PostgreSQL";
|
|
8
|
+
readonly SQLite: "SQLite";
|
|
9
|
+
};
|
|
10
|
+
export type DatabaseVendor = ValuesType<typeof DatabaseVendor>;
|
|
11
|
+
export declare const DatabaseVendorList: ReadonlyArray<string>;
|
|
12
|
+
export declare const DatabaseVendorToDatabase: Record<DatabaseVendor, number>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ActionMap as EditorActionMap } from "./modules/editor/actions";
|
|
2
|
+
import { actions as editorActions } from "./modules/editor/atom.actions";
|
|
3
|
+
import { actions$ as editorActions$ } from "./modules/editor/generator.actions";
|
|
4
|
+
import { ActionMap as IndexActionMap } from "./modules/index/actions";
|
|
5
|
+
import { actions as indexActions } from "./modules/index/atom.actions";
|
|
6
|
+
import { actions$ as indexActions$ } from "./modules/index/generator.actions";
|
|
7
|
+
import { ActionMap as IndexColumnActionMap } from "./modules/index-column/actions";
|
|
8
|
+
import { actions as indexColumnActions } from "./modules/index-column/atom.actions";
|
|
9
|
+
import { actions$ as indexColumnActions$ } from "./modules/index-column/generator.actions";
|
|
10
|
+
import { ActionMap as MemoActionMap } from "./modules/memo/actions";
|
|
11
|
+
import { actions as memoActions } from "./modules/memo/atom.actions";
|
|
12
|
+
import { actions$ as memoActions$ } from "./modules/memo/generator.actions";
|
|
13
|
+
import { ActionMap as RelationshipActionMap } from "./modules/relationship/actions";
|
|
14
|
+
import { actions as relationshipActions } from "./modules/relationship/atom.actions";
|
|
15
|
+
import { actions$ as relationshipActions$ } from "./modules/relationship/generator.actions";
|
|
16
|
+
import { ActionMap as SettingsActionMap } from "./modules/settings/actions";
|
|
17
|
+
import { actions as settingsActions } from "./modules/settings/atom.actions";
|
|
18
|
+
import { actions$ as settingsActions$ } from "./modules/settings/generator.actions";
|
|
19
|
+
import { ActionMap as TableActionMap } from "./modules/table/actions";
|
|
20
|
+
import { actions as tableActions } from "./modules/table/atom.actions";
|
|
21
|
+
import { actions$ as tableActions$ } from "./modules/table/generator.actions";
|
|
22
|
+
import { ActionMap as TableColumnActionMap } from "./modules/table-column/actions";
|
|
23
|
+
import { actions as tableColumnActions } from "./modules/table-column/atom.actions";
|
|
24
|
+
import { actions$ as tableColumnActions$ } from "./modules/table-column/generator.actions";
|
|
25
|
+
export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$;
|
|
26
|
+
export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap;
|
|
27
|
+
export type ActionType = keyof RootActionMap;
|
|
28
|
+
export declare const actions: Actions;
|
|
29
|
+
export declare const ChangeActionTypes: ReadonlyArray<ActionType>;
|
|
30
|
+
export declare const ReadonlyIgnoreActionTypes: ReadonlyArray<ActionType>;
|
|
31
|
+
export declare const StreamRegroupMoveActionTypes: ReadonlyArray<ActionType>;
|
|
32
|
+
export declare const StreamRegroupColorActionTypes: ReadonlyArray<ActionType>;
|
|
33
|
+
export declare const StreamRegroupScrollActionTypes: ReadonlyArray<ActionType>;
|
|
34
|
+
export declare const StreamActionTypes: ReadonlyArray<ActionType>;
|
|
35
|
+
export declare const HistoryActionTypes: ReadonlyArray<ActionType>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
import { History } from "./history";
|
|
3
|
+
import { RootState } from "./state";
|
|
4
|
+
import { Store } from "./store";
|
|
5
|
+
export type PushUndoHistory = (undoActions: AnyAction[], action: AnyAction, state: RootState) => void;
|
|
6
|
+
export type PushStreamHistory = (undoActions: AnyAction[], redoActions: AnyAction[], actions: AnyAction[], state: RootState) => void;
|
|
7
|
+
export declare const pushUndoHistoryMap: Record<string, PushUndoHistory>;
|
|
8
|
+
export declare const pushStreamHistoryMap: Record<string, PushStreamHistory>;
|
|
9
|
+
export declare const pushHistory: (store: Store, history: History) => (actions: AnyAction[]) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Command = {
|
|
2
|
+
undo(): void;
|
|
3
|
+
redo(): void;
|
|
4
|
+
};
|
|
5
|
+
export type CommandKey = keyof Command;
|
|
6
|
+
export type History = {
|
|
7
|
+
hasUndo(): boolean;
|
|
8
|
+
hasRedo(): boolean;
|
|
9
|
+
undo(): void;
|
|
10
|
+
redo(): void;
|
|
11
|
+
push(command: Command): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
setLimit(limit: number): void;
|
|
14
|
+
};
|
|
15
|
+
type HasHistory = {
|
|
16
|
+
hasRedo: boolean;
|
|
17
|
+
hasUndo: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function createHistory(notify: (has: HasHistory) => void): History;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Channel, CoroutineCreator } from '@dineug/go';
|
|
2
|
+
import { type AnyAction, createAction } from '@dineug/r-html';
|
|
3
|
+
import type { EngineContext } from "./context";
|
|
4
|
+
import type { RootState } from "./state";
|
|
5
|
+
type ActionCreator = ReturnType<typeof createAction<any>>;
|
|
6
|
+
export type CO = (channel: Channel<AnyAction>, state: RootState, ctx: EngineContext) => ReturnType<CoroutineCreator>;
|
|
7
|
+
export type Hook = [Array<ActionCreator | string>, CO];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Reducer } from '@dineug/r-html';
|
|
2
|
+
import { EngineContext } from "../../context";
|
|
3
|
+
import { RootState } from "../../state";
|
|
4
|
+
import { ValuesType } from "../../../internal-types";
|
|
5
|
+
import { FocusType, MoveKey, SelectType } from './state';
|
|
6
|
+
export declare const ActionType: {
|
|
7
|
+
readonly changeHasHistory: "editor.changeHasHistory";
|
|
8
|
+
readonly selectAll: "editor.selectAll";
|
|
9
|
+
readonly unselectAll: "editor.unselectAll";
|
|
10
|
+
readonly select: "editor.select";
|
|
11
|
+
readonly changeViewport: "editor.changeViewport";
|
|
12
|
+
readonly clear: "editor.clear";
|
|
13
|
+
readonly loadJson: "editor.loadJson";
|
|
14
|
+
readonly initialClear: "editor.initialClear";
|
|
15
|
+
readonly initialLoadJson: "editor.initialLoadJson";
|
|
16
|
+
readonly focusTable: "editor.focusTable";
|
|
17
|
+
readonly focusColumn: "editor.focusColumn";
|
|
18
|
+
readonly focusTableEnd: "editor.focusTableEnd";
|
|
19
|
+
readonly focusMoveTable: "editor.focusMoveTable";
|
|
20
|
+
readonly editTable: "editor.editTable";
|
|
21
|
+
readonly editTableEnd: "editor.editTableEnd";
|
|
22
|
+
readonly selectAllColumn: "editor.selectAllColumn";
|
|
23
|
+
readonly drawStartRelationship: "editor.drawStartRelationship";
|
|
24
|
+
readonly drawStartAddRelationship: "editor.drawStartAddRelationship";
|
|
25
|
+
readonly drawEndRelationship: "editor.drawEndRelationship";
|
|
26
|
+
readonly drawRelationship: "editor.drawRelationship";
|
|
27
|
+
readonly hoverColumnMap: "editor.hoverColumnMap";
|
|
28
|
+
readonly changeOpenMap: "editor.changeOpenMap";
|
|
29
|
+
readonly dragstartColumn: "editor.dragstartColumn";
|
|
30
|
+
readonly dragendColumn: "editor.dragendColumn";
|
|
31
|
+
};
|
|
32
|
+
export type ActionType = ValuesType<typeof ActionType>;
|
|
33
|
+
export type ActionMap = {
|
|
34
|
+
[ActionType.changeHasHistory]: {
|
|
35
|
+
hasUndo: boolean;
|
|
36
|
+
hasRedo: boolean;
|
|
37
|
+
};
|
|
38
|
+
[ActionType.selectAll]: void;
|
|
39
|
+
[ActionType.unselectAll]: void;
|
|
40
|
+
[ActionType.select]: Record<string, SelectType>;
|
|
41
|
+
[ActionType.changeViewport]: {
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
};
|
|
45
|
+
[ActionType.clear]: void;
|
|
46
|
+
[ActionType.loadJson]: {
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
[ActionType.initialClear]: void;
|
|
50
|
+
[ActionType.initialLoadJson]: {
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
[ActionType.focusTable]: {
|
|
54
|
+
tableId: string;
|
|
55
|
+
focusType?: FocusType;
|
|
56
|
+
};
|
|
57
|
+
[ActionType.focusColumn]: {
|
|
58
|
+
tableId: string;
|
|
59
|
+
columnId: string;
|
|
60
|
+
focusType: FocusType;
|
|
61
|
+
$mod: boolean;
|
|
62
|
+
shiftKey: boolean;
|
|
63
|
+
};
|
|
64
|
+
[ActionType.focusTableEnd]: void;
|
|
65
|
+
[ActionType.focusMoveTable]: {
|
|
66
|
+
moveKey: MoveKey;
|
|
67
|
+
shiftKey: boolean;
|
|
68
|
+
};
|
|
69
|
+
[ActionType.editTable]: void;
|
|
70
|
+
[ActionType.editTableEnd]: void;
|
|
71
|
+
[ActionType.selectAllColumn]: void;
|
|
72
|
+
[ActionType.drawStartRelationship]: {
|
|
73
|
+
relationshipType: number;
|
|
74
|
+
};
|
|
75
|
+
[ActionType.drawStartAddRelationship]: {
|
|
76
|
+
tableId: string;
|
|
77
|
+
};
|
|
78
|
+
[ActionType.drawEndRelationship]: void;
|
|
79
|
+
[ActionType.drawRelationship]: {
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
};
|
|
83
|
+
[ActionType.hoverColumnMap]: {
|
|
84
|
+
columnIds: string[];
|
|
85
|
+
};
|
|
86
|
+
[ActionType.changeOpenMap]: Record<string, boolean>;
|
|
87
|
+
[ActionType.dragstartColumn]: {
|
|
88
|
+
tableId: string;
|
|
89
|
+
columnIds: string[];
|
|
90
|
+
};
|
|
91
|
+
[ActionType.dragendColumn]: void;
|
|
92
|
+
};
|
|
93
|
+
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|