@dineug/erd-editor 3.2.4 → 3.2.5
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/erd/canvas/table/column/column-key/ColumnKey.d.ts +2 -0
- package/dist/components/primitives/icon/Icon.d.ts +2 -0
- package/dist/engine/modules/editor/actions.d.ts +4 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +19 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +4 -0
- package/dist/engine/modules/editor/state.d.ts +1 -0
- package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +8 -0
- package/dist/engine.js +5 -5
- package/dist/erd-editor.js +7659 -7637
- package/dist/{schemaGCService-B0HS3Am6.js → schemaGCService-IUzrsWjr.js} +8659 -9110
- package/package.json +1 -2
|
@@ -10,6 +10,8 @@ export type IconProps = {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
rotate?: number;
|
|
12
12
|
onClick?: (event: MouseEvent) => void;
|
|
13
|
+
onMouseenter?: (event: MouseEvent) => void;
|
|
14
|
+
onMouseleave?: (event: MouseEvent) => void;
|
|
13
15
|
};
|
|
14
16
|
declare const Icon: FC<IconProps>;
|
|
15
17
|
export default Icon;
|
|
@@ -26,6 +26,7 @@ export declare const ActionType: {
|
|
|
26
26
|
readonly drawEndRelationship: "editor.drawEndRelationship";
|
|
27
27
|
readonly drawRelationship: "editor.drawRelationship";
|
|
28
28
|
readonly hoverColumnMap: "editor.hoverColumnMap";
|
|
29
|
+
readonly hoverRelationshipMap: "editor.hoverRelationshipMap";
|
|
29
30
|
readonly changeOpenMap: "editor.changeOpenMap";
|
|
30
31
|
readonly dragstartColumn: "editor.dragstartColumn";
|
|
31
32
|
readonly dragendColumn: "editor.dragendColumn";
|
|
@@ -86,6 +87,9 @@ export type ActionMap = {
|
|
|
86
87
|
[ActionType.hoverColumnMap]: {
|
|
87
88
|
columnIds: string[];
|
|
88
89
|
};
|
|
90
|
+
[ActionType.hoverRelationshipMap]: {
|
|
91
|
+
relationshipIds: string[];
|
|
92
|
+
};
|
|
89
93
|
[ActionType.changeOpenMap]: Record<string, boolean>;
|
|
90
94
|
[ActionType.dragstartColumn]: {
|
|
91
95
|
tableId: string;
|
|
@@ -168,6 +168,15 @@ export declare const hoverColumnMapAction: {
|
|
|
168
168
|
toString(): string;
|
|
169
169
|
type: string;
|
|
170
170
|
};
|
|
171
|
+
export declare const hoverRelationshipMapAction: {
|
|
172
|
+
(payload: {
|
|
173
|
+
relationshipIds: string[];
|
|
174
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
175
|
+
relationshipIds: string[];
|
|
176
|
+
}>;
|
|
177
|
+
toString(): string;
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
171
180
|
export declare const changeOpenMapAction: {
|
|
172
181
|
(payload: Record<string, boolean>): import('@dineug/r-html').AnyAction<Record<string, boolean>>;
|
|
173
182
|
toString(): string;
|
|
@@ -227,6 +236,7 @@ export declare const editorReducers: {
|
|
|
227
236
|
"editor.drawEndRelationship": ReducerType<"editor.drawEndRelationship">;
|
|
228
237
|
"editor.drawRelationship": ReducerType<"editor.drawRelationship">;
|
|
229
238
|
"editor.hoverColumnMap": ReducerType<"editor.hoverColumnMap">;
|
|
239
|
+
"editor.hoverRelationshipMap": ReducerType<"editor.hoverRelationshipMap">;
|
|
230
240
|
"editor.changeOpenMap": ReducerType<"editor.changeOpenMap">;
|
|
231
241
|
"editor.dragstartColumn": ReducerType<"editor.dragstartColumn">;
|
|
232
242
|
"editor.dragendColumn": ReducerType<"editor.dragendColumn">;
|
|
@@ -401,6 +411,15 @@ export declare const actions: {
|
|
|
401
411
|
toString(): string;
|
|
402
412
|
type: string;
|
|
403
413
|
};
|
|
414
|
+
hoverRelationshipMapAction: {
|
|
415
|
+
(payload: {
|
|
416
|
+
relationshipIds: string[];
|
|
417
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
418
|
+
relationshipIds: string[];
|
|
419
|
+
}>;
|
|
420
|
+
toString(): string;
|
|
421
|
+
type: string;
|
|
422
|
+
};
|
|
404
423
|
changeOpenMapAction: {
|
|
405
424
|
(payload: Record<string, boolean>): import('@dineug/r-html').AnyAction<Record<string, boolean>>;
|
|
406
425
|
toString(): string;
|
|
@@ -15,6 +15,8 @@ export declare const changeColorAllAction$: (color: string) => GeneratorAction;
|
|
|
15
15
|
export declare const loadSchemaSQLAction$: (value: string) => GeneratorAction;
|
|
16
16
|
export declare const dragstartColumnAction$: ($mod: boolean) => GeneratorAction;
|
|
17
17
|
export declare const dragoverColumnAction$: (targetId: string, targetTableId: string) => GeneratorAction;
|
|
18
|
+
export declare const columnKeyHoverStartAction$: (columnId: string) => GeneratorAction;
|
|
19
|
+
export declare const columnKeyHoverEndAction$: () => GeneratorAction;
|
|
18
20
|
export declare const actions$: {
|
|
19
21
|
loadJsonAction$: (value: string) => GeneratorAction;
|
|
20
22
|
initialLoadJsonAction$: (value: string) => GeneratorAction;
|
|
@@ -29,4 +31,6 @@ export declare const actions$: {
|
|
|
29
31
|
loadSchemaSQLAction$: (value: string) => GeneratorAction;
|
|
30
32
|
dragstartColumnAction$: ($mod: boolean) => GeneratorAction;
|
|
31
33
|
dragoverColumnAction$: (targetId: string, targetTableId: string) => GeneratorAction;
|
|
34
|
+
columnKeyHoverStartAction$: (columnId: string) => GeneratorAction;
|
|
35
|
+
columnKeyHoverEndAction$: () => GeneratorAction;
|
|
32
36
|
};
|
|
@@ -9,6 +9,7 @@ export type Editor = {
|
|
|
9
9
|
focusTable: FocusTable | null;
|
|
10
10
|
drawRelationship: DrawRelationship | null;
|
|
11
11
|
hoverColumnMap: Record<string, boolean>;
|
|
12
|
+
hoverRelationshipMap: Record<string, boolean>;
|
|
12
13
|
openMap: Record<string, boolean>;
|
|
13
14
|
draggableColumn: DraggableColumn | null;
|
|
14
15
|
draggingColumnMap: Record<string, boolean>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RootState } from '../../../state';
|
|
2
|
+
|
|
3
|
+
type TargetSource = {
|
|
4
|
+
columnId: string;
|
|
5
|
+
relationshipIds: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare function findRelationshipColumn(stack: TargetSource[], state: RootState, result?: TargetSource[]): TargetSource[];
|
|
8
|
+
export {};
|
package/dist/engine.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as w, E as A, w as x, O as E, G as d, K as G, s as I, bv as l, J as p, Y as O, d4 as T, bu as V, aB as $, d9 as j, da as k, V as J, db as R, cY as Y } from "./schemaGCService-IUzrsWjr.js";
|
|
2
2
|
/*!
|
|
3
3
|
* @dineug/erd-editor
|
|
4
|
-
* @version 3.2.
|
|
4
|
+
* @version 3.2.5 | Sun Oct 27 2024
|
|
5
5
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
8
|
const b = {
|
|
9
9
|
change: "change"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const o = /* @__PURE__ */ new Set(), t =
|
|
11
|
+
function B(u) {
|
|
12
|
+
const o = /* @__PURE__ */ new Set(), t = w(u, !1), m = A(t), c = new x(), S = new E((e) => t.subscribe((a) => e.next(a))).pipe(d(p), G(200)), n = /* @__PURE__ */ new Set(), f = new Y(), g = (e) => (n.has(e) || n.add(e), () => {
|
|
13
13
|
n.delete(e);
|
|
14
14
|
}), i = (e, a) => {
|
|
15
15
|
n.forEach((s) => {
|
|
@@ -40,5 +40,5 @@ function D(u) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
B as createReplicationStore
|
|
44
44
|
};
|