@dineug/erd-editor 3.2.0 → 3.2.2
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 +2 -2
- package/dist/components/appContext.d.ts +7 -7
- package/dist/components/customElementRegistry.d.ts +0 -1
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -1
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +2 -2
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -1
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -1
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -1
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -1
- package/dist/components/erd/canvas/memo/Memo.d.ts +1 -1
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -1
- package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -1
- package/dist/components/erd/canvas/table/Table.d.ts +1 -1
- package/dist/components/erd/canvas/table/column/Column.d.ts +2 -2
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -1
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +2 -2
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -1
- package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -1
- package/dist/components/erd/diff-viewer/diff.d.ts +2 -2
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +2 -2
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +2 -2
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +2 -2
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -1
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -1
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -1
- package/dist/components/erd/minimap/memo/Memo.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +1 -1
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -1
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -1
- package/dist/components/erd/time-travel/TimeTravel.d.ts +9 -0
- package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +4 -0
- package/dist/components/erd/useErdShortcut.d.ts +1 -1
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -1
- package/dist/components/erd-editor/ErdEditor.d.ts +5 -5
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -1
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +4 -4
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -1
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -1
- package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -1
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -1
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -1
- package/dist/components/primitives/icon/icons.d.ts +1 -1
- package/dist/components/primitives/sash/Sash.d.ts +2 -2
- package/dist/components/primitives/slider/Slider.d.ts +9 -0
- package/dist/components/primitives/slider/Slider.stories.d.ts +23 -0
- package/dist/components/primitives/slider/Slider.styles.d.ts +4 -0
- package/dist/components/quick-search/actions.d.ts +1 -1
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -1
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -1
- package/dist/components/theme/Theme.d.ts +1 -1
- package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.styles.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +1 -1
- package/dist/components/visualization/table/Table.d.ts +1 -1
- package/dist/components/visualization/table/column/Column.d.ts +1 -1
- package/dist/constants/open.d.ts +2 -1
- package/dist/constants/sql/dataType/MSSQL.d.ts +1 -1
- package/dist/constants/sql/dataType/MariaDB.d.ts +1 -1
- package/dist/constants/sql/dataType/MySQL.d.ts +1 -1
- package/dist/constants/sql/dataType/Oracle.d.ts +1 -1
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +1 -1
- package/dist/constants/sql/dataType/index.d.ts +1 -1
- package/dist/constants/sql/database.d.ts +1 -1
- package/dist/engine/actions.d.ts +24 -24
- package/dist/engine/generator.actions.d.ts +2 -2
- package/dist/engine/history.actions.d.ts +3 -3
- package/dist/engine/history.d.ts +24 -10
- package/dist/engine/hooks.d.ts +2 -2
- package/dist/engine/modules/editor/actions.d.ts +3 -3
- package/dist/engine/modules/editor/generator.actions.d.ts +2 -2
- package/dist/engine/modules/editor/history.d.ts +1 -1
- package/dist/engine/modules/editor/state.d.ts +1 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +3 -3
- package/dist/engine/modules/index/actions.d.ts +3 -3
- package/dist/engine/modules/index/generator.actions.d.ts +1 -1
- package/dist/engine/modules/index/history.d.ts +1 -1
- package/dist/engine/modules/index-column/actions.d.ts +3 -3
- package/dist/engine/modules/index-column/generator.actions.d.ts +1 -1
- package/dist/engine/modules/index-column/history.d.ts +1 -1
- package/dist/engine/modules/memo/actions.d.ts +3 -3
- package/dist/engine/modules/memo/generator.actions.d.ts +1 -1
- package/dist/engine/modules/memo/history.d.ts +1 -1
- package/dist/engine/modules/relationship/actions.d.ts +3 -3
- package/dist/engine/modules/relationship/history.d.ts +1 -1
- package/dist/engine/modules/relationship/hooks.d.ts +1 -1
- package/dist/engine/modules/settings/actions.d.ts +3 -3
- package/dist/engine/modules/settings/generator.actions.d.ts +1 -1
- package/dist/engine/modules/settings/history.d.ts +1 -1
- package/dist/engine/modules/table/actions.d.ts +3 -3
- package/dist/engine/modules/table/generator.actions.d.ts +2 -2
- package/dist/engine/modules/table/history.d.ts +1 -1
- package/dist/engine/modules/table/hooks.d.ts +1 -1
- package/dist/engine/modules/table-column/actions.d.ts +3 -3
- package/dist/engine/modules/table-column/generator.actions.d.ts +2 -2
- package/dist/engine/modules/table-column/history.d.ts +1 -1
- package/dist/engine/modules/table-column/hooks.d.ts +1 -1
- package/dist/engine/modules/table-column/utils/dataType.d.ts +2 -2
- package/dist/engine/replication-store.d.ts +2 -2
- package/dist/engine/rx-store.d.ts +10 -3
- package/dist/engine/shared-store.d.ts +2 -2
- package/dist/engine/state.d.ts +1 -1
- package/dist/engine/store-hooks.d.ts +1 -1
- package/dist/engine/store.d.ts +2 -2
- package/dist/engine/tag.d.ts +1 -1
- package/dist/engine.js +8 -8
- package/dist/erd-editor.js +6841 -6622
- package/dist/hooks/useKeyBindingMap.d.ts +1 -1
- package/dist/hooks/useUnmounted.d.ts +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/{schemaGCService-8ppNbFYF.js → schemaGCService--OrV_3hH.js} +21 -21
- package/dist/services/schema-gc/procGC.d.ts +1 -1
- package/dist/services/schema-gc/schemaGCService.d.ts +1 -1
- package/dist/themes/radix-ui-theme.config.d.ts +1 -1
- package/dist/themes/radix-ui-theme.d.ts +2 -2
- package/dist/utils/calcMemo.d.ts +1 -1
- package/dist/utils/calcTable.d.ts +3 -3
- package/dist/utils/collection/index.entity.d.ts +1 -1
- package/dist/utils/collection/indexColumn.entity.d.ts +1 -1
- package/dist/utils/collection/memo.entity.d.ts +1 -1
- package/dist/utils/collection/relationship.entity.d.ts +1 -1
- package/dist/utils/collection/table.entity.d.ts +1 -1
- package/dist/utils/collection/tableColumn.entity.d.ts +1 -1
- package/dist/utils/dragSelect.d.ts +1 -1
- package/dist/utils/draw-relationship/calc.d.ts +3 -3
- package/dist/utils/draw-relationship/draw.d.ts +3 -3
- package/dist/utils/draw-relationship/index.d.ts +1 -1
- package/dist/utils/draw-relationship/pathFinding.d.ts +2 -2
- package/dist/utils/draw-relationship/sort.d.ts +1 -1
- package/dist/utils/emitter.d.ts +2 -2
- package/dist/utils/file/importFile.d.ts +1 -1
- package/dist/utils/focus.d.ts +1 -1
- package/dist/utils/generator-code/csharp.d.ts +1 -1
- package/dist/utils/generator-code/graphql.d.ts +1 -1
- package/dist/utils/generator-code/index.d.ts +2 -2
- package/dist/utils/generator-code/java.d.ts +1 -1
- package/dist/utils/generator-code/jpa.d.ts +1 -1
- package/dist/utils/generator-code/kotlin.d.ts +1 -1
- package/dist/utils/generator-code/scala.d.ts +1 -1
- package/dist/utils/generator-code/typescript.d.ts +1 -1
- package/dist/utils/generator-code/utils.d.ts +2 -2
- package/dist/utils/globalEmitter.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/internalEvents.d.ts +1 -1
- package/dist/utils/keyboard-shortcut/index.d.ts +1 -1
- package/dist/utils/rx-operators/fromCopy.d.ts +1 -1
- package/dist/utils/rx-operators/fromPaste.d.ts +1 -1
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
- package/dist/utils/schema-sql/MariaDB.d.ts +1 -1
- package/dist/utils/schema-sql/MySQL.d.ts +1 -1
- package/dist/utils/schema-sql/Oracle.d.ts +1 -1
- package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -1
- package/dist/utils/schema-sql/SQLite.d.ts +1 -1
- package/dist/utils/schema-sql/index.d.ts +2 -2
- package/dist/utils/schema-sql/utils.d.ts +1 -1
- package/dist/utils/schema-sql-parser/index.d.ts +1 -1
- package/dist/utils/table-clipboard/copy.d.ts +1 -1
- package/dist/utils/table-clipboard/index.d.ts +1 -1
- package/dist/utils/table-clipboard/paste.d.ts +2 -2
- package/package.json +14 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { setImportFileCallback } from "./utils/file/importFile";
|
|
1
|
+
export type { ErdEditorElement } from './components/erd-editor/ErdEditor';
|
|
2
|
+
export { setGetShikiServiceCallback } from './services/shikiService';
|
|
3
|
+
export { setExportFileCallback } from './utils/file/exportFile';
|
|
4
|
+
export { setImportFileCallback } from './utils/file/importFile';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @dineug/erd-editor
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.2 | Wed Mar 20 2024
|
|
4
4
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
/*!
|
|
8
8
|
* @dineug/erd-editor-schema
|
|
9
|
-
* @version 0.1.0 |
|
|
9
|
+
* @version 0.1.0 | Wed Mar 20 2024
|
|
10
10
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
11
11
|
* @license MIT
|
|
12
12
|
*/
|
|
@@ -1536,7 +1536,7 @@ function wc(e) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
/*!
|
|
1538
1538
|
* @dineug/r-html
|
|
1539
|
-
* @version 0.1.3 |
|
|
1539
|
+
* @version 0.1.3 | Wed Mar 20 2024
|
|
1540
1540
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
1541
1541
|
* @license MIT
|
|
1542
1542
|
*/
|
|
@@ -8196,13 +8196,13 @@ function rL(e, t, n) {
|
|
|
8196
8196
|
for (const i of Object.keys(ci))
|
|
8197
8197
|
ci[i](o, r, n);
|
|
8198
8198
|
!o.length || !r.length || t.push({
|
|
8199
|
-
undo: () => {
|
|
8200
|
-
const
|
|
8201
|
-
|
|
8199
|
+
undo: (i) => {
|
|
8200
|
+
const s = Date.now();
|
|
8201
|
+
i(o.map(sd(s)));
|
|
8202
8202
|
},
|
|
8203
|
-
redo: () => {
|
|
8204
|
-
const
|
|
8205
|
-
|
|
8203
|
+
redo: (i) => {
|
|
8204
|
+
const s = Date.now();
|
|
8205
|
+
i(r.map(sd(s)));
|
|
8206
8206
|
}
|
|
8207
8207
|
});
|
|
8208
8208
|
}
|
|
@@ -15723,23 +15723,23 @@ export {
|
|
|
15723
15723
|
dj as C,
|
|
15724
15724
|
vj as D,
|
|
15725
15725
|
Ej as E,
|
|
15726
|
-
|
|
15727
|
-
|
|
15726
|
+
wM as F,
|
|
15727
|
+
yj as G,
|
|
15728
15728
|
pj as H,
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15729
|
+
ad as I,
|
|
15730
|
+
Oy as J,
|
|
15731
|
+
Lw as K,
|
|
15732
|
+
cj as L,
|
|
15733
|
+
RR as M,
|
|
15734
|
+
PR as N,
|
|
15735
15735
|
Xe as O,
|
|
15736
|
-
|
|
15737
|
-
|
|
15736
|
+
_R as P,
|
|
15737
|
+
$u as Q,
|
|
15738
15738
|
Ko as R,
|
|
15739
15739
|
wi as S,
|
|
15740
15740
|
Kn as T,
|
|
15741
|
-
|
|
15742
|
-
|
|
15741
|
+
fm as U,
|
|
15742
|
+
WB as V,
|
|
15743
15743
|
I as W,
|
|
15744
15744
|
UB as X,
|
|
15745
15745
|
Bw as Y,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
|
-
import { GCIds } from
|
|
2
|
+
import { GCIds } from '.';
|
|
3
3
|
export declare function procGC({ collections, lww }: ERDEditorSchemaV3, { tableIds, tableColumnIds, relationshipIds, indexIds, indexColumnIds, memoIds, }: GCIds): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Theme } from
|
|
1
|
+
import { Theme } from './tokens';
|
|
2
2
|
export declare const ThemeConfig: Theme;
|
package/dist/utils/calcMemo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EngineContext } from
|
|
2
|
-
import { RootState } from
|
|
3
|
-
import { Table } from
|
|
1
|
+
import { EngineContext } from '../engine/context';
|
|
2
|
+
import { RootState } from '../engine/state';
|
|
3
|
+
import { Table } from '../internal-types';
|
|
4
4
|
export declare function calcTableWidths(table: Table, { settings: { show, maxWidthComment }, collections }: RootState): ColumnWidth;
|
|
5
5
|
export type ColumnWidth = {
|
|
6
6
|
width: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepPartial, Index } from
|
|
1
|
+
import { DeepPartial, Index } from '../../internal-types';
|
|
2
2
|
export declare const createIndex: (value?: DeepPartial<Index>) => Index;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepPartial, IndexColumn } from
|
|
1
|
+
import { DeepPartial, IndexColumn } from '../../internal-types';
|
|
2
2
|
export declare const createIndexColumn: (value?: DeepPartial<IndexColumn>) => IndexColumn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepPartial, Memo } from
|
|
1
|
+
import { DeepPartial, Memo } from '../../internal-types';
|
|
2
2
|
export declare const createMemo: (value?: DeepPartial<Memo>) => Memo;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepPartial, Relationship } from
|
|
1
|
+
import { DeepPartial, Relationship } from '../../internal-types';
|
|
2
2
|
export declare const createRelationship: (value?: DeepPartial<Relationship>) => Relationship;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeepPartial, Table } from
|
|
1
|
+
import { DeepPartial, Table } from '../../internal-types';
|
|
2
2
|
export declare const createTable: (value?: DeepPartial<Table>) => Table;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Column, DeepPartial } from
|
|
1
|
+
import { Column, DeepPartial } from '../../internal-types';
|
|
2
2
|
export declare const createColumn: (value?: DeepPartial<Column>) => Column;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RootState } from
|
|
2
|
-
import { Point, Table } from
|
|
3
|
-
import { ObjectPoint } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
|
+
import { Point, Table } from '../../internal-types';
|
|
3
|
+
import { ObjectPoint } from '.';
|
|
4
4
|
export declare function tableToObjectPoint(state: RootState, table: Table): ObjectPoint;
|
|
5
5
|
export declare function euclideanDistance(a: Point, b: Point): number;
|
|
6
6
|
export declare function manhattanDistance(a: Point, b: Point): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawRelationship } from
|
|
2
|
-
import { RootState } from
|
|
3
|
-
import { DrawPath } from
|
|
1
|
+
import { DrawRelationship } from '../../engine/modules/editor/state';
|
|
2
|
+
import { RootState } from '../../engine/state';
|
|
3
|
+
import { DrawPath } from '.';
|
|
4
4
|
export declare function getDraw(state: RootState, draw: DrawRelationship): DrawPath;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Relationship } from
|
|
2
|
-
import { RelationshipPath } from
|
|
1
|
+
import { Relationship } from '../../internal-types';
|
|
2
|
+
import { RelationshipPath } from '.';
|
|
3
3
|
export declare function getRelationshipPath(relationship: Relationship): RelationshipPath;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
export declare function relationshipSort(state: RootState): void;
|
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action, AnyAction, DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
-
import { ValuesType } from
|
|
3
|
-
import { ThemeOptions } from
|
|
2
|
+
import { ValuesType } from '../internal-types';
|
|
3
|
+
import { ThemeOptions } from '../themes/radix-ui-theme';
|
|
4
4
|
declare const InternalActionType: {
|
|
5
5
|
readonly openColorPicker: "openColorPicker";
|
|
6
6
|
readonly closeColorPicker: "closeColorPicker";
|
package/dist/utils/focus.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FocusTable, FocusType } from
|
|
1
|
+
import { FocusTable, FocusType } from '../engine/modules/editor/state';
|
|
2
2
|
export declare function isFocus(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
3
3
|
export declare const isSelectColumn: (focusTable: FocusTable | null, tableId: string, columnId: string) => boolean;
|
|
4
4
|
export declare function isEdit(focusTable: FocusTable | null, focusType: FocusType, tableId: string, columnId?: string | null): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
2
|
-
import { Table } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
|
+
import { Table } from '../../internal-types';
|
|
3
3
|
export declare function createGeneratorCode(state: RootState): string;
|
|
4
4
|
export declare function createGeneratorCodeTable(state: RootState, table: Table): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
import { FormatTableOptions } from './utils';
|
|
3
3
|
export declare function createCode(state: RootState): string;
|
|
4
4
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataTypeHint, PrimitiveType } from
|
|
2
|
-
import { Column, Table } from
|
|
1
|
+
import { DataTypeHint, PrimitiveType } from '../../constants/sql/dataType';
|
|
2
|
+
import { Column, Table } from '../../internal-types';
|
|
3
3
|
export interface FormatTableOptions {
|
|
4
4
|
buffer: string[];
|
|
5
5
|
table: Table;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityMeta, Memo, Point, Settings, Table } from
|
|
1
|
+
import { EntityMeta, Memo, Point, Settings, Table } from '../internal-types';
|
|
2
2
|
export declare const nextZIndex: (tables: Table[], memos: Memo[]) => number;
|
|
3
3
|
export declare function nextPoint({ width, height, zoomLevel, scrollLeft, scrollTop }: Settings, tables: Table[], memos: Memo[]): Point;
|
|
4
4
|
export declare const toList: <T>(ids: string[], entities: Record<string, T>) => T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
2
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
2
|
-
import { Table } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
2
|
-
import { EngineContext } from
|
|
2
|
+
import { EngineContext } from '../../engine/context';
|
|
3
3
|
export declare function schemaSQLParserToSchemaJson(sql: string, ctx: EngineContext, prepare?: (schema: ERDEditorSchemaV3) => ERDEditorSchemaV3): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootState } from
|
|
2
|
-
import { Column } from
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
|
+
import { Column } from '../../internal-types';
|
|
3
3
|
export declare function tablePasteFromTextToColumns({ settings: { show, columnOrder } }: RootState, text: string): Column[];
|
|
4
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.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Entity-Relationship Diagram Editor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/erd-editor.js",
|
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
"dev": "vite serve --mode lib",
|
|
47
47
|
"dev:storybook": "storybook dev -p 6006",
|
|
48
48
|
"build": "vite build --mode lib",
|
|
49
|
-
"build:storybook": "storybook build"
|
|
49
|
+
"build:storybook": "storybook build",
|
|
50
|
+
"nx:dev": "nx dev",
|
|
51
|
+
"nx:build": "nx build"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@dineug/erd-editor-schema": "workspace:*",
|
|
@@ -64,13 +66,13 @@
|
|
|
64
66
|
"@mdi/js": "7.3.67",
|
|
65
67
|
"@radix-ui/colors": "3.0.0",
|
|
66
68
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
67
|
-
"@storybook/addon-essentials": "^
|
|
68
|
-
"@storybook/addon-interactions": "^
|
|
69
|
-
"@storybook/addon-links": "^
|
|
70
|
-
"@storybook/blocks": "^
|
|
71
|
-
"@storybook/html": "^
|
|
72
|
-
"@storybook/html-vite": "^
|
|
73
|
-
"@storybook/
|
|
69
|
+
"@storybook/addon-essentials": "^8.0.0",
|
|
70
|
+
"@storybook/addon-interactions": "^8.0.0",
|
|
71
|
+
"@storybook/addon-links": "^8.0.0",
|
|
72
|
+
"@storybook/blocks": "^8.0.0",
|
|
73
|
+
"@storybook/html": "^8.0.0",
|
|
74
|
+
"@storybook/html-vite": "^8.0.0",
|
|
75
|
+
"@storybook/test": "^8.0.0",
|
|
74
76
|
"@types/color": "^3.0.6",
|
|
75
77
|
"@types/d3": "7.4.3",
|
|
76
78
|
"@types/highlight-words-core": "^1.2.3",
|
|
@@ -89,12 +91,11 @@
|
|
|
89
91
|
"rollup-plugin-visualizer": "^5.11.0",
|
|
90
92
|
"rxjs": "^7.8.1",
|
|
91
93
|
"stats.js": "^0.17.0",
|
|
92
|
-
"storybook": "^
|
|
94
|
+
"storybook": "^8.0.0",
|
|
93
95
|
"tinykeys": "^2.1.0",
|
|
94
|
-
"ts-patch": "^3.1.1",
|
|
95
96
|
"tslib": "^2.6.2",
|
|
96
97
|
"typescript": "5.3.3",
|
|
97
|
-
"
|
|
98
|
-
"vite": "^
|
|
98
|
+
"vite": "^5.0.12",
|
|
99
|
+
"vite-plugin-dts": "^3.7.3"
|
|
99
100
|
}
|
|
100
101
|
}
|