@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.
@@ -0,0 +1,4 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type VirtualScrollProps = {};
3
+ declare const VirtualScroll: FC<VirtualScrollProps>;
4
+ export default VirtualScroll;
@@ -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 $, p as G, bs as d, I as p, Y as I, c$ as O, br as T, aA as j, d5 as k, U as F, cY as J, cS as R } from "./schemaGCService-L2WKQw4y.js";
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.2 | Thu Jan 11 2024
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 Y(u) {
12
- const o = /* @__PURE__ */ new Set(), s = A(u, !1), m = w(s), c = new x(), S = new E((e) => s.subscribe((a) => e.next(a))).pipe(l(p), $(200)), n = /* @__PURE__ */ new Set(), f = new R(), g = (e) => (n.has(e) || n.add(e), () => {
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((t) => {
16
- const h = Reflect.get(t, e);
17
- I(h, a);
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
- s.dispatchSync(T(j(a) ? "{}" : a)), f.run(d(s.state)).then((t) => {
22
- (t.tableIds.length || t.tableColumnIds.length || t.relationshipIds.length || t.indexIds.length || t.indexColumnIds.length || t.memoIds.length) && (k(s.state, t), i(b.change, void 0));
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
- c.next([e].flat());
26
- }, C = (e) => {
27
- F(() => r(e));
28
- }, v = () => {
29
- Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), n.clear(), s.destroy(), m.destroy();
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 o.add(S.subscribe(() => i(b.change, void 0))).add(c.pipe(l(p), G((e) => e.map((a) => J(a, "tags")))).subscribe(s.dispatchSync)), Object.freeze({
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(s.state);
33
+ return d(t.state);
34
34
  },
35
35
  on: g,
36
36
  setInitialValue: y,
37
- dispatch: C,
37
+ dispatch: v,
38
38
  dispatchSync: r,
39
- destroy: v
39
+ destroy: C
40
40
  });
41
41
  }
42
42
  export {
43
- Y as createReplicationStore
43
+ z as createReplicationStore
44
44
  };