@dineug/erd-editor 3.2.7 → 3.3.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/dist/components/appContext.d.ts +6 -7
- package/dist/components/customElementRegistry.d.ts +0 -1
- package/dist/components/erd/Erd.d.ts +0 -1
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -2
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +1 -2
- package/dist/components/erd/canvas/Canvas.d.ts +0 -1
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -1
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -2
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -2
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -2
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -2
- package/dist/components/erd/canvas/memo/Memo.d.ts +1 -2
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -2
- package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +0 -1
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -2
- package/dist/components/erd/canvas/table/Table.d.ts +1 -2
- package/dist/components/erd/canvas/table/column/Column.d.ts +2 -3
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -2
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +0 -1
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +0 -1
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +0 -1
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -2
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +0 -1
- package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -2
- package/dist/components/erd/diff-viewer/diff.d.ts +1 -2
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +2 -3
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +2 -3
- package/dist/components/erd/drag-select/DragSelect.d.ts +0 -1
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -2
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +0 -1
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -2
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +0 -1
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +0 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +0 -1
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +0 -1
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -2
- package/dist/components/erd/hide-sign/HideSign.d.ts +0 -1
- package/dist/components/erd/minimap/Minimap.d.ts +0 -1
- package/dist/components/erd/minimap/memo/Memo.d.ts +1 -2
- package/dist/components/erd/minimap/table/Table.d.ts +1 -2
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +0 -1
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +0 -1
- package/dist/components/erd/table-properties/TableProperties.d.ts +0 -1
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +0 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -2
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -2
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -2
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -2
- package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -2
- package/dist/components/erd/useErdShortcut.d.ts +0 -1
- package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +0 -1
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -2
- package/dist/components/erd-editor/ErdEditor.d.ts +4 -5
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +1 -2
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -6
- package/dist/components/generator-code/GeneratorCode.d.ts +0 -1
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +0 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +0 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +0 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +0 -1
- package/dist/components/global-styles/GlobalStyles.d.ts +0 -1
- package/dist/components/primitives/button/Button.d.ts +0 -1
- package/dist/components/primitives/button/Button.stories.d.ts +1 -2
- package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -2
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +1 -2
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -2
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +1 -2
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -3
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -1
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +0 -1
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +0 -1
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +0 -1
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -2
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +0 -1
- package/dist/components/primitives/edit-input/EditInput.d.ts +0 -1
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +1 -2
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -2
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +1 -2
- package/dist/components/primitives/icon/Icon.d.ts +0 -1
- package/dist/components/primitives/icon/Icon.stories.d.ts +1 -2
- package/dist/components/primitives/icon/icons.d.ts +0 -1
- package/dist/components/primitives/kbd/Kbd.d.ts +0 -1
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +1 -2
- package/dist/components/primitives/sash/Sash.d.ts +2 -3
- package/dist/components/primitives/sash/Sash.stories.d.ts +1 -2
- package/dist/components/primitives/separator/Separator.d.ts +0 -1
- package/dist/components/primitives/separator/Separator.stories.d.ts +1 -2
- package/dist/components/primitives/slider/Slider.d.ts +0 -1
- package/dist/components/primitives/slider/Slider.stories.d.ts +1 -2
- package/dist/components/primitives/switch/Switch.d.ts +0 -1
- package/dist/components/primitives/switch/Switch.stories.d.ts +1 -2
- package/dist/components/primitives/text-input/TextInput.d.ts +0 -1
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +1 -2
- package/dist/components/primitives/toast/Toast.d.ts +0 -1
- package/dist/components/primitives/toast/Toast.stories.d.ts +1 -2
- package/dist/components/quick-search/QuickSearch.d.ts +0 -1
- package/dist/components/quick-search/actions.d.ts +1 -2
- package/dist/components/schema-sql/SchemaSQL.d.ts +0 -1
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +0 -1
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +0 -1
- package/dist/components/settings/Settings.d.ts +0 -1
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -2
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +0 -1
- package/dist/components/theme/Theme.d.ts +1 -2
- package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -2
- package/dist/components/toast-container/ToastContainer.d.ts +0 -1
- package/dist/components/toolbar/Toolbar.d.ts +0 -1
- package/dist/components/visualization/Visualization.d.ts +0 -1
- package/dist/components/visualization/createVisualization.d.ts +0 -1
- package/dist/components/visualization/table/Table.d.ts +1 -2
- package/dist/components/visualization/table/column/Column.d.ts +1 -2
- package/dist/constants/open.d.ts +0 -1
- package/dist/constants/sql/dataType/MSSQL.d.ts +0 -1
- package/dist/constants/sql/dataType/MariaDB.d.ts +0 -1
- package/dist/constants/sql/dataType/MySQL.d.ts +0 -1
- package/dist/constants/sql/dataType/Oracle.d.ts +0 -1
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +0 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +0 -1
- package/dist/constants/sql/dataType/index.d.ts +0 -1
- package/dist/constants/sql/database.d.ts +0 -1
- package/dist/engine/actions.d.ts +23 -24
- package/dist/engine/clock.d.ts +6 -0
- package/dist/engine/context.d.ts +3 -1
- package/dist/engine/generator.actions.d.ts +2 -3
- package/dist/engine/history.actions.d.ts +3 -4
- package/dist/engine/history.d.ts +0 -1
- package/dist/engine/hooks.d.ts +3 -4
- package/dist/engine/modules/editor/actions.d.ts +10 -5
- package/dist/engine/modules/editor/atom.actions.d.ts +39 -10
- package/dist/engine/modules/editor/generator.actions.d.ts +2 -3
- package/dist/engine/modules/editor/history.d.ts +0 -1
- package/dist/engine/modules/editor/state.d.ts +0 -1
- package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +0 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +2 -3
- package/dist/engine/modules/index/actions.d.ts +3 -4
- package/dist/engine/modules/index/atom.actions.d.ts +0 -1
- package/dist/engine/modules/index/generator.actions.d.ts +0 -1
- package/dist/engine/modules/index/history.d.ts +0 -1
- package/dist/engine/modules/index-column/actions.d.ts +3 -4
- package/dist/engine/modules/index-column/atom.actions.d.ts +0 -1
- package/dist/engine/modules/index-column/generator.actions.d.ts +0 -1
- package/dist/engine/modules/index-column/history.d.ts +0 -1
- package/dist/engine/modules/memo/actions.d.ts +3 -4
- package/dist/engine/modules/memo/atom.actions.d.ts +0 -1
- package/dist/engine/modules/memo/generator.actions.d.ts +0 -1
- package/dist/engine/modules/memo/history.d.ts +0 -1
- package/dist/engine/modules/relationship/actions.d.ts +3 -4
- package/dist/engine/modules/relationship/atom.actions.d.ts +0 -1
- package/dist/engine/modules/relationship/history.d.ts +0 -1
- package/dist/engine/modules/relationship/hooks.d.ts +0 -1
- package/dist/engine/modules/settings/actions.d.ts +3 -4
- package/dist/engine/modules/settings/atom.actions.d.ts +0 -1
- package/dist/engine/modules/settings/generator.actions.d.ts +0 -1
- package/dist/engine/modules/settings/history.d.ts +0 -1
- package/dist/engine/modules/table/actions.d.ts +3 -4
- package/dist/engine/modules/table/atom.actions.d.ts +0 -1
- package/dist/engine/modules/table/generator.actions.d.ts +1 -2
- package/dist/engine/modules/table/history.d.ts +0 -1
- package/dist/engine/modules/table/hooks.d.ts +0 -1
- package/dist/engine/modules/table-column/actions.d.ts +3 -4
- package/dist/engine/modules/table-column/atom.actions.d.ts +0 -1
- package/dist/engine/modules/table-column/generator.actions.d.ts +2 -3
- package/dist/engine/modules/table-column/history.d.ts +0 -1
- package/dist/engine/modules/table-column/hooks.d.ts +0 -1
- package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -2
- package/dist/engine/replication-store.d.ts +3 -4
- package/dist/engine/rx-operators/actionsFilter.d.ts +1 -2
- package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -2
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -2
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -2
- package/dist/engine/rx-operators/notEmptyActions.d.ts +0 -1
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -2
- package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -2
- package/dist/engine/rx-store.d.ts +4 -5
- package/dist/engine/shared-store.d.ts +2 -3
- package/dist/engine/state.d.ts +2 -2
- package/dist/engine/store-hooks.d.ts +0 -1
- package/dist/engine/store.d.ts +2 -3
- package/dist/engine/tag.d.ts +1 -2
- package/dist/engine.js +30 -21
- package/dist/erd-editor.js +15610 -14610
- package/dist/hooks/useFlipAnimation.d.ts +0 -1
- package/dist/hooks/useKeyBindingMap.d.ts +1 -2
- package/dist/hooks/useUnmounted.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/internal-types/index.d.ts +2 -4
- package/dist/{schemaGCService-AAKKj104.js → schemaGCService-CLe8cLsy.js} +6321 -5966
- package/dist/services/schema-gc/index.d.ts +0 -1
- package/dist/services/schema-gc/procGC.d.ts +2 -3
- package/dist/services/schema-gc/schemaGCService.d.ts +0 -1
- package/dist/themes/radix-ui-theme.config.d.ts +0 -1
- package/dist/themes/radix-ui-theme.d.ts +1 -2
- package/dist/themes/textColor.d.ts +0 -1
- package/dist/utils/calcMemo.d.ts +0 -1
- package/dist/utils/calcTable.d.ts +2 -3
- package/dist/utils/collection/index.entity.d.ts +0 -1
- package/dist/utils/collection/indexColumn.entity.d.ts +0 -1
- package/dist/utils/collection/memo.entity.d.ts +0 -1
- package/dist/utils/collection/relationship.entity.d.ts +0 -1
- package/dist/utils/collection/table.entity.d.ts +0 -1
- package/dist/utils/collection/tableColumn.entity.d.ts +0 -1
- package/dist/utils/dragSelect.d.ts +0 -1
- package/dist/utils/draw-relationship/calc.d.ts +2 -3
- package/dist/utils/draw-relationship/draw.d.ts +2 -3
- package/dist/utils/draw-relationship/index.d.ts +0 -1
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -2
- package/dist/utils/draw-relationship/sort.d.ts +0 -1
- package/dist/utils/emitter.d.ts +4 -5
- package/dist/utils/file/importFile.d.ts +0 -1
- package/dist/utils/flipAnimation.d.ts +0 -1
- package/dist/utils/focus.d.ts +0 -1
- package/dist/utils/generator-code/csharp.d.ts +1 -2
- package/dist/utils/generator-code/graphql.d.ts +1 -2
- package/dist/utils/generator-code/index.d.ts +1 -2
- package/dist/utils/generator-code/java.d.ts +1 -2
- package/dist/utils/generator-code/jpa.d.ts +1 -2
- package/dist/utils/generator-code/kotlin.d.ts +1 -2
- package/dist/utils/generator-code/scala.d.ts +1 -2
- package/dist/utils/generator-code/typescript.d.ts +1 -2
- package/dist/utils/generator-code/utils.d.ts +1 -2
- package/dist/utils/globalEmitter.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/internalEvents.d.ts +0 -1
- package/dist/utils/keyboard-shortcut/index.d.ts +1 -2
- package/dist/utils/rx-operators/fromCopy.d.ts +1 -2
- package/dist/utils/rx-operators/fromPaste.d.ts +1 -2
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +0 -1
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -2
- package/dist/utils/schema-sql/MariaDB.d.ts +1 -2
- package/dist/utils/schema-sql/MySQL.d.ts +1 -2
- package/dist/utils/schema-sql/Oracle.d.ts +1 -2
- package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -2
- package/dist/utils/schema-sql/SQLite.d.ts +1 -2
- package/dist/utils/schema-sql/index.d.ts +1 -2
- package/dist/utils/schema-sql/utils.d.ts +0 -1
- package/dist/utils/schema-sql-parser/index.d.ts +1 -2
- package/dist/utils/table-clipboard/copy.d.ts +0 -1
- package/dist/utils/table-clipboard/index.d.ts +0 -1
- package/dist/utils/table-clipboard/paste.d.ts +1 -2
- package/package.json +6 -6
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GCIds } from '.';
|
|
2
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
3
|
-
|
|
4
|
-
export declare function procGC({ collections
|
|
2
|
+
import { GCIds } from '.';
|
|
3
|
+
export declare function procGC({ collections }: ERDEditorSchemaV3, { tableIds, tableColumnIds, relationshipIds, indexIds, indexColumnIds, memoIds, }: GCIds): void;
|
package/dist/utils/calcMemo.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Table } from '../internal-types';
|
|
2
|
-
import { RootState } from '../engine/state';
|
|
3
1
|
import { EngineContext } from '../engine/context';
|
|
4
|
-
|
|
2
|
+
import { RootState } from '../engine/state';
|
|
3
|
+
import { Table } from '../internal-types';
|
|
5
4
|
export declare function calcTableWidths(table: Table, { settings: { show, maxWidthComment }, collections }: RootState): ColumnWidth;
|
|
6
5
|
export type ColumnWidth = {
|
|
7
6
|
width: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ObjectPoint } from '.';
|
|
2
|
-
import { Point, Table } from '../../internal-types';
|
|
3
1
|
import { RootState } from '../../engine/state';
|
|
4
|
-
|
|
2
|
+
import { Point, Table } from '../../internal-types';
|
|
3
|
+
import { ObjectPoint } from '.';
|
|
5
4
|
export declare function tableToObjectPoint(state: RootState, table: Table): ObjectPoint;
|
|
6
5
|
export declare function euclideanDistance(a: Point, b: Point): number;
|
|
7
6
|
export declare function manhattanDistance(a: Point, b: Point): number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DrawPath } from '.';
|
|
2
|
-
import { RootState } from '../../engine/state';
|
|
3
1
|
import { DrawRelationship } from '../../engine/modules/editor/state';
|
|
4
|
-
|
|
2
|
+
import { RootState } from '../../engine/state';
|
|
3
|
+
import { DrawPath } from '.';
|
|
5
4
|
export declare function getDraw(state: RootState, draw: DrawRelationship): DrawPath;
|
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ThemeOptions } from '../themes/radix-ui-theme';
|
|
2
|
-
import { ValuesType } from '../internal-types';
|
|
3
1
|
import { Action, AnyAction, DOMTemplateLiterals } from '@dineug/r-html';
|
|
4
|
-
|
|
2
|
+
import { ValuesType } from '../internal-types';
|
|
3
|
+
import { ThemeOptions } from '../themes/radix-ui-theme';
|
|
5
4
|
declare const InternalActionType: {
|
|
6
5
|
readonly openColorPicker: "openColorPicker";
|
|
7
6
|
readonly closeColorPicker: "closeColorPicker";
|
|
@@ -82,10 +81,10 @@ export declare const closeColorPickerAction: {
|
|
|
82
81
|
export declare const openToastAction: {
|
|
83
82
|
(payload: {
|
|
84
83
|
message: DOMTemplateLiterals;
|
|
85
|
-
close?: Promise<void
|
|
84
|
+
close?: Promise<void>;
|
|
86
85
|
}): AnyAction<{
|
|
87
86
|
message: DOMTemplateLiterals;
|
|
88
|
-
close?: Promise<void
|
|
87
|
+
close?: Promise<void>;
|
|
89
88
|
}>;
|
|
90
89
|
toString(): string;
|
|
91
90
|
type: string;
|
package/dist/utils/focus.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FocusTable, FocusType } from '../engine/modules/editor/state';
|
|
2
|
-
|
|
3
2
|
export declare function isFocus(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
4
3
|
export declare const isSelectColumn: (focusTable: FocusTable | null, tableId: string, columnId: string) => boolean;
|
|
5
4
|
export declare function isEdit(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Table } from '../../internal-types';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { Table } from '../../internal-types';
|
|
4
3
|
export declare function createGeneratorCode(state: RootState): string;
|
|
5
4
|
export declare function createGeneratorCodeTable(state: RootState, table: Table): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createCode(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EntityMeta, Memo, Point, Settings, Table } from '../internal-types';
|
|
2
|
-
|
|
3
2
|
export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
|
|
4
3
|
export declare function nextPoint({ width, height, zoomLevel, scrollLeft, scrollTop }: Settings, tables: Table[], memos: Memo[]): Point;
|
|
5
4
|
export declare const toList: <T>(ids: string[], entities: Record<string, T>) => Array<T>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
3
|
export declare function createSchema(state: RootState): string;
|
|
5
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
5
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Table } from '../../internal-types';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { Table } from '../../internal-types';
|
|
4
3
|
export declare function createSchemaSQL(state: RootState, database?: number): string;
|
|
5
4
|
export declare function createSchemaSQLTable(state: RootState, table: Table): string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EngineContext } from '../../engine/context';
|
|
2
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
3
|
-
|
|
2
|
+
import { EngineContext } from '../../engine/context';
|
|
4
3
|
export declare function schemaSQLParserToSchemaJson(sql: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Column } from '../../internal-types';
|
|
2
1
|
import { RootState } from '../../engine/state';
|
|
3
|
-
|
|
2
|
+
import { Column } from '../../internal-types';
|
|
4
3
|
export declare function tablePasteFromTextToColumns({ settings: { show, columnOrder } }: RootState, text: string): Column[];
|
|
5
4
|
export declare function tablePasteFromHtmlToColumns({ settings: { show, columnOrder } }: RootState, html: string): Column[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dineug/erd-editor",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Entity-Relationship Diagram Editor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/erd-editor.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@dineug/erd-editor-schema": "workspace:*",
|
|
55
55
|
"@dineug/erd-editor-shiki-worker": "workspace:*",
|
|
56
|
-
"@dineug/go": "
|
|
56
|
+
"@dineug/go": "workspace:*",
|
|
57
57
|
"@dineug/r-html": "workspace:*",
|
|
58
58
|
"@dineug/schema-sql-parser": "workspace:*",
|
|
59
59
|
"@dineug/shared": "workspace:*",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"stats.js": "^0.17.0",
|
|
93
93
|
"storybook": "^8.0.8",
|
|
94
94
|
"tinykeys": "^2.1.0",
|
|
95
|
-
"tslib": "^2.
|
|
96
|
-
"typescript": "5.
|
|
97
|
-
"vite": "^
|
|
98
|
-
"vite-plugin-dts": "^
|
|
95
|
+
"tslib": "^2.8.1",
|
|
96
|
+
"typescript": "5.8.2",
|
|
97
|
+
"vite": "^6.2.1",
|
|
98
|
+
"vite-plugin-dts": "^4.5.3"
|
|
99
99
|
}
|
|
100
100
|
}
|