@dineug/erd-editor 3.1.2 → 3.1.4
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/virtual-scroll/VirtualScroll.d.ts +4 -0
- package/dist/components/erd/virtual-scroll/VirtualScroll.styles.d.ts +5 -0
- package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +10 -0
- package/dist/engine/modules/editor/actions.d.ts +2 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +11 -0
- package/dist/engine.js +19 -19
- package/dist/erd-editor.js +6824 -6646
- package/dist/{schemaGCService-L2WKQw4y.js → schemaGCService-SG9sYyYd.js} +4130 -4126
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const vertical: import("@dineug/r-html").CSSTemplateLiterals;
|
|
2
|
+
export declare const horizontal: import("@dineug/r-html").CSSTemplateLiterals;
|
|
3
|
+
export declare const ghostThumb: import("@dineug/r-html").CSSTemplateLiterals;
|
|
4
|
+
export declare const verticalThumb: import("@dineug/r-html").CSSTemplateLiterals;
|
|
5
|
+
export declare const horizontalThumb: import("@dineug/r-html").CSSTemplateLiterals;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ctx } from "../../../internal-types";
|
|
2
|
+
export declare function useVirtualScroll(ctx: Ctx): {
|
|
3
|
+
state: {
|
|
4
|
+
selected: "vertical" | "horizontal" | null;
|
|
5
|
+
};
|
|
6
|
+
onScrollLeftStart: (event: MouseEvent) => void;
|
|
7
|
+
onScrollTopStart: (event: MouseEvent) => void;
|
|
8
|
+
getWidthRatio: () => number;
|
|
9
|
+
getHeightRatio: () => number;
|
|
10
|
+
};
|
|
@@ -29,6 +29,7 @@ export declare const ActionType: {
|
|
|
29
29
|
readonly dragstartColumn: "editor.dragstartColumn";
|
|
30
30
|
readonly dragendColumn: "editor.dragendColumn";
|
|
31
31
|
readonly sharedMouseTracker: "editor.sharedMouseTracker";
|
|
32
|
+
readonly validationIds: "editor.validationIds";
|
|
32
33
|
};
|
|
33
34
|
export type ActionType = ValuesType<typeof ActionType>;
|
|
34
35
|
export type ActionMap = {
|
|
@@ -94,5 +95,6 @@ export type ActionMap = {
|
|
|
94
95
|
x: number;
|
|
95
96
|
y: number;
|
|
96
97
|
};
|
|
98
|
+
[ActionType.validationIds]: void;
|
|
97
99
|
};
|
|
98
100
|
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
@@ -199,6 +199,11 @@ export declare const sharedMouseTrackerAction: {
|
|
|
199
199
|
toString(): string;
|
|
200
200
|
type: string;
|
|
201
201
|
};
|
|
202
|
+
export declare const validationIdsAction: {
|
|
203
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
204
|
+
toString(): string;
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
202
207
|
export declare const editorReducers: {
|
|
203
208
|
"editor.changeHasHistory": ReducerType<"editor.changeHasHistory">;
|
|
204
209
|
"editor.selectAll": ReducerType<"editor.selectAll">;
|
|
@@ -225,6 +230,7 @@ export declare const editorReducers: {
|
|
|
225
230
|
"editor.dragstartColumn": ReducerType<"editor.dragstartColumn">;
|
|
226
231
|
"editor.dragendColumn": ReducerType<"editor.dragendColumn">;
|
|
227
232
|
"editor.sharedMouseTracker": ReducerType<"editor.sharedMouseTracker">;
|
|
233
|
+
"editor.validationIds": ReducerType<"editor.validationIds">;
|
|
228
234
|
};
|
|
229
235
|
export declare const actions: {
|
|
230
236
|
changeHasHistoryAction: {
|
|
@@ -426,4 +432,9 @@ export declare const actions: {
|
|
|
426
432
|
toString(): string;
|
|
427
433
|
type: string;
|
|
428
434
|
};
|
|
435
|
+
validationIdsAction: {
|
|
436
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
437
|
+
toString(): string;
|
|
438
|
+
type: string;
|
|
439
|
+
};
|
|
429
440
|
};
|
package/dist/engine.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { D as A, E as w, u as x, O as E, F as l, J as
|
|
1
|
+
import { D as A, E as w, u as x, O as E, F as l, J as I, p as $, bs as d, I as p, Y as G, c$ as O, br as T, aA as j, d5 as k, d6 as F, U as J, cY as R, cS as V } from "./schemaGCService-SG9sYyYd.js";
|
|
2
2
|
/*!
|
|
3
3
|
* @dineug/erd-editor
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.4 | Sun Jan 14 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
|
|
11
|
+
function z(u) {
|
|
12
|
+
const c = /* @__PURE__ */ new Set(), t = A(u, !1), S = w(t), o = new x(), m = new E((e) => t.subscribe((a) => e.next(a))).pipe(l(p), I(200)), n = /* @__PURE__ */ new Set(), f = new V(), g = (e) => (n.has(e) || n.add(e), () => {
|
|
13
13
|
n.delete(e);
|
|
14
14
|
}), i = (e, a) => {
|
|
15
|
-
n.forEach((
|
|
16
|
-
const h = Reflect.get(
|
|
17
|
-
|
|
15
|
+
n.forEach((s) => {
|
|
16
|
+
const h = Reflect.get(s, e);
|
|
17
|
+
G(h, a);
|
|
18
18
|
});
|
|
19
19
|
}, y = (e) => {
|
|
20
20
|
const a = O(e);
|
|
21
|
-
|
|
22
|
-
(
|
|
21
|
+
t.dispatchSync(T(j(a) ? "{}" : a)), f.run(d(t.state)).then((s) => {
|
|
22
|
+
(s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && (k(t.state, s), t.dispatchSync(F()), i(b.change, void 0));
|
|
23
23
|
});
|
|
24
24
|
}, r = (e) => {
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
Array.from(
|
|
25
|
+
o.next([e].flat());
|
|
26
|
+
}, v = (e) => {
|
|
27
|
+
J(() => r(e));
|
|
28
|
+
}, C = () => {
|
|
29
|
+
Array.from(c).forEach((e) => e.unsubscribe()), c.clear(), n.clear(), t.destroy(), S.destroy();
|
|
30
30
|
};
|
|
31
|
-
return
|
|
31
|
+
return c.add(m.subscribe(() => i(b.change, void 0))).add(o.pipe(l(p), $((e) => e.map((a) => R(a, "tags")))).subscribe(t.dispatchSync)), Object.freeze({
|
|
32
32
|
get value() {
|
|
33
|
-
return d(
|
|
33
|
+
return d(t.state);
|
|
34
34
|
},
|
|
35
35
|
on: g,
|
|
36
36
|
setInitialValue: y,
|
|
37
|
-
dispatch:
|
|
37
|
+
dispatch: v,
|
|
38
38
|
dispatchSync: r,
|
|
39
|
-
destroy:
|
|
39
|
+
destroy: C
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
z as createReplicationStore
|
|
44
44
|
};
|