@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,6 +1,5 @@
|
|
|
1
|
-
import { FocusType, SelectType } from './state';
|
|
2
1
|
import { ReducerType } from './actions';
|
|
3
|
-
|
|
2
|
+
import { FocusType, MoveKey, SelectType } from './state';
|
|
4
3
|
export declare const changeHasHistoryAction: {
|
|
5
4
|
(payload: {
|
|
6
5
|
hasUndo: boolean;
|
|
@@ -69,10 +68,10 @@ export declare const initialLoadJsonAction: {
|
|
|
69
68
|
export declare const focusTableAction: {
|
|
70
69
|
(payload: {
|
|
71
70
|
tableId: string;
|
|
72
|
-
focusType?: FocusType
|
|
71
|
+
focusType?: FocusType;
|
|
73
72
|
}): import('@dineug/r-html').AnyAction<{
|
|
74
73
|
tableId: string;
|
|
75
|
-
focusType?: FocusType
|
|
74
|
+
focusType?: FocusType;
|
|
76
75
|
}>;
|
|
77
76
|
toString(): string;
|
|
78
77
|
type: string;
|
|
@@ -101,10 +100,10 @@ export declare const focusTableEndAction: {
|
|
|
101
100
|
};
|
|
102
101
|
export declare const focusMoveTableAction: {
|
|
103
102
|
(payload: {
|
|
104
|
-
moveKey:
|
|
103
|
+
moveKey: MoveKey;
|
|
105
104
|
shiftKey: boolean;
|
|
106
105
|
}): import('@dineug/r-html').AnyAction<{
|
|
107
|
-
moveKey:
|
|
106
|
+
moveKey: MoveKey;
|
|
108
107
|
shiftKey: boolean;
|
|
109
108
|
}>;
|
|
110
109
|
toString(): string;
|
|
@@ -214,6 +213,20 @@ export declare const validationIdsAction: {
|
|
|
214
213
|
toString(): string;
|
|
215
214
|
type: string;
|
|
216
215
|
};
|
|
216
|
+
export declare const getLWWAction: {
|
|
217
|
+
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
218
|
+
toString(): string;
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
export declare const mergeLWWAction: {
|
|
222
|
+
(payload: {
|
|
223
|
+
lww: import('@dineug/erd-editor-schema').LWW;
|
|
224
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
225
|
+
lww: import('@dineug/erd-editor-schema').LWW;
|
|
226
|
+
}>;
|
|
227
|
+
toString(): string;
|
|
228
|
+
type: string;
|
|
229
|
+
};
|
|
217
230
|
export declare const editorReducers: {
|
|
218
231
|
"editor.changeHasHistory": ReducerType<"editor.changeHasHistory">;
|
|
219
232
|
"editor.selectAll": ReducerType<"editor.selectAll">;
|
|
@@ -242,6 +255,8 @@ export declare const editorReducers: {
|
|
|
242
255
|
"editor.dragendColumn": ReducerType<"editor.dragendColumn">;
|
|
243
256
|
"editor.sharedMouseTracker": ReducerType<"editor.sharedMouseTracker">;
|
|
244
257
|
"editor.validationIds": ReducerType<"editor.validationIds">;
|
|
258
|
+
"editor.getLWW": ReducerType<"editor.getLWW">;
|
|
259
|
+
"editor.mergeLWW": ReducerType<"editor.mergeLWW">;
|
|
245
260
|
};
|
|
246
261
|
export declare const actions: {
|
|
247
262
|
changeHasHistoryAction: {
|
|
@@ -312,10 +327,10 @@ export declare const actions: {
|
|
|
312
327
|
focusTableAction: {
|
|
313
328
|
(payload: {
|
|
314
329
|
tableId: string;
|
|
315
|
-
focusType?: FocusType
|
|
330
|
+
focusType?: FocusType;
|
|
316
331
|
}): import('@dineug/r-html').AnyAction<{
|
|
317
332
|
tableId: string;
|
|
318
|
-
focusType?: FocusType
|
|
333
|
+
focusType?: FocusType;
|
|
319
334
|
}>;
|
|
320
335
|
toString(): string;
|
|
321
336
|
type: string;
|
|
@@ -344,10 +359,10 @@ export declare const actions: {
|
|
|
344
359
|
};
|
|
345
360
|
focusMoveTableAction: {
|
|
346
361
|
(payload: {
|
|
347
|
-
moveKey:
|
|
362
|
+
moveKey: MoveKey;
|
|
348
363
|
shiftKey: boolean;
|
|
349
364
|
}): import('@dineug/r-html').AnyAction<{
|
|
350
|
-
moveKey:
|
|
365
|
+
moveKey: MoveKey;
|
|
351
366
|
shiftKey: boolean;
|
|
352
367
|
}>;
|
|
353
368
|
toString(): string;
|
|
@@ -457,4 +472,18 @@ export declare const actions: {
|
|
|
457
472
|
toString(): string;
|
|
458
473
|
type: string;
|
|
459
474
|
};
|
|
475
|
+
getLWWAction: {
|
|
476
|
+
(payload: void): import('@dineug/r-html').AnyAction<void>;
|
|
477
|
+
toString(): string;
|
|
478
|
+
type: string;
|
|
479
|
+
};
|
|
480
|
+
mergeLWWAction: {
|
|
481
|
+
(payload: {
|
|
482
|
+
lww: import('@dineug/erd-editor-schema').LWW;
|
|
483
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
484
|
+
lww: import('@dineug/erd-editor-schema').LWW;
|
|
485
|
+
}>;
|
|
486
|
+
toString(): string;
|
|
487
|
+
type: string;
|
|
488
|
+
};
|
|
460
489
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { MoveKey } from './state';
|
|
2
|
-
import { Rect } from '../../../utils/dragSelect';
|
|
3
1
|
import { GeneratorAction } from '../../generator.actions';
|
|
4
|
-
|
|
2
|
+
import { Rect } from '../../../utils/dragSelect';
|
|
3
|
+
import { MoveKey } from './state';
|
|
5
4
|
export declare const loadJsonAction$: (value: string) => GeneratorAction;
|
|
6
5
|
export declare const initialLoadJsonAction$: (value: string) => GeneratorAction;
|
|
7
6
|
export declare const moveAllAction$: (movementX: number, movementY: number) => GeneratorAction;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { RootState } from '../../../state';
|
|
2
|
-
import { FocusType } from '../state';
|
|
3
1
|
import { ActionMap, ActionType } from '../actions';
|
|
4
|
-
|
|
2
|
+
import { FocusType } from '../state';
|
|
3
|
+
import { RootState } from '../../../state';
|
|
5
4
|
type Payload = ActionMap[typeof ActionType.focusMoveTable];
|
|
6
5
|
export declare function isColumns({ collections, editor: { focusTable } }: RootState): boolean;
|
|
7
6
|
export declare function isLastColumn(state: RootState): boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addIndex: "index.add";
|
|
8
7
|
readonly removeIndex: "index.remove";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addIndexColumn: "indexColumn.add";
|
|
8
7
|
readonly removeIndexColumn: "indexColumn.remove";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GeneratorAction } from '../../generator.actions';
|
|
2
|
-
|
|
3
2
|
export declare const addIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
|
|
4
3
|
export declare const removeIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
|
|
5
4
|
export declare const changeIndexColumnOrderTypeAction$: (indexColumnId: string) => GeneratorAction;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addMemo: "memo.add";
|
|
8
7
|
readonly moveMemo: "memo.move";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GeneratorAction } from '../../generator.actions';
|
|
2
|
-
|
|
3
2
|
export declare const addMemoAction$: () => GeneratorAction;
|
|
4
3
|
export declare const removeMemoAction$: (id?: string) => GeneratorAction;
|
|
5
4
|
export declare const selectMemoAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addRelationship: "relationship.add";
|
|
8
7
|
readonly removeRelationship: "relationship.remove";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly changeDatabaseName: "settings.changeDatabaseName";
|
|
8
7
|
readonly resize: "settings.resize";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addTable: "table.add";
|
|
8
7
|
readonly moveTable: "table.move";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Column } from '../../../internal-types';
|
|
2
1
|
import { GeneratorAction } from '../../generator.actions';
|
|
3
|
-
|
|
2
|
+
import { Column } from '../../../internal-types';
|
|
4
3
|
export declare const addTableAction$: () => GeneratorAction;
|
|
5
4
|
export declare const removeTableAction$: (id?: string) => GeneratorAction;
|
|
6
5
|
export declare const selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ValuesType } from '../../../internal-types';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
import { EngineContext } from '../../context';
|
|
4
1
|
import { Reducer } from '@dineug/r-html';
|
|
5
|
-
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
6
5
|
export declare const ActionType: {
|
|
7
6
|
readonly addColumn: "column.add";
|
|
8
7
|
readonly removeColumn: "column.remove";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ChangeColumnValuePayload } from './actions';
|
|
2
|
-
import { FocusType } from '../editor/state';
|
|
3
1
|
import { GeneratorAction } from '../../generator.actions';
|
|
4
|
-
|
|
2
|
+
import { FocusType } from '../editor/state';
|
|
3
|
+
import { ChangeColumnValuePayload } from './actions';
|
|
5
4
|
export declare const isToggleColumnTypes: (value: FocusType) => boolean;
|
|
6
5
|
export declare const isChangeColumnTypes: (value: FocusType) => boolean;
|
|
7
6
|
export declare const addColumnAction$: (tableId?: string) => GeneratorAction;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RootState } from '../../../state';
|
|
2
1
|
import { ChangeColumnValuePayload } from '../actions';
|
|
3
|
-
|
|
2
|
+
import { RootState } from '../../../state';
|
|
4
3
|
export declare function getDataTypeSyncColumns(stack: ChangeColumnValuePayload[], state: RootState, payload: ChangeColumnValuePayload, payloads?: ChangeColumnValuePayload[]): ChangeColumnValuePayload[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Unsubscribe, ValuesType } from '../internal-types';
|
|
2
|
-
import { EngineContext } from './context';
|
|
3
1
|
import { AnyAction } from '@dineug/r-html';
|
|
4
|
-
|
|
2
|
+
import { InjectEngineContext } from './context';
|
|
3
|
+
import { Unsubscribe, ValuesType } from '../internal-types';
|
|
5
4
|
type ListenerRecord = {
|
|
6
5
|
[P in keyof InternalActionMap]: (payload: InternalActionMap[P]) => void;
|
|
7
6
|
};
|
|
@@ -20,5 +19,5 @@ export type ReplicationStore = {
|
|
|
20
19
|
dispatchSync: (actions: Array<AnyAction> | AnyAction) => void;
|
|
21
20
|
destroy: () => void;
|
|
22
21
|
};
|
|
23
|
-
export declare function createReplicationStore(context:
|
|
22
|
+
export declare function createReplicationStore(context: InjectEngineContext): ReplicationStore;
|
|
24
23
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
1
|
import { AnyAction } from '@dineug/r-html';
|
|
3
|
-
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
4
3
|
export declare const actionsFilter: (actionTypes: Array<string> | ReadonlyArray<string>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
1
|
import { AnyAction } from '@dineug/r-html';
|
|
3
|
-
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
4
3
|
export declare const bufferCircuitBreaker: (openingNotifier$: Observable<any>, closingNotifier$: Observable<any>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { MonoTypeOperatorFunction, Observable } from 'rxjs';
|
|
2
1
|
import { AnyAction } from '@dineug/r-html';
|
|
3
|
-
|
|
2
|
+
import { MonoTypeOperatorFunction, Observable } from 'rxjs';
|
|
4
3
|
type Regroup = [string, Array<string> | ReadonlyArray<string>];
|
|
5
4
|
export declare const groupByStreamActions: (streamActionTypes: Array<string> | ReadonlyArray<string>, regroups?: Regroup[], bufferClosingNotifierOperator?: MonoTypeOperatorFunction<Array<AnyAction>>) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
6
5
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
1
|
import { AnyAction } from '@dineug/r-html';
|
|
3
|
-
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
4
3
|
export declare const readonlyIgnoreFilter: (getReadonly: () => boolean, passTags?: number[]) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Store } from './store';
|
|
2
|
-
import { History, HistoryOptions } from './history';
|
|
3
|
-
import { EngineContext } from './context';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
1
|
import { AnyAction } from '@dineug/r-html';
|
|
6
|
-
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { EngineContext } from './context';
|
|
4
|
+
import { History, HistoryOptions } from './history';
|
|
5
|
+
import { Store } from './store';
|
|
7
6
|
export type RxStore = Store & {
|
|
8
7
|
undo: () => void;
|
|
9
8
|
redo: () => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Unsubscribe } from '../internal-types';
|
|
2
|
-
import { RxStore } from './rx-store';
|
|
3
1
|
import { AnyAction } from '@dineug/r-html';
|
|
4
|
-
|
|
2
|
+
import { RxStore } from './rx-store';
|
|
3
|
+
import { Unsubscribe } from '../internal-types';
|
|
5
4
|
export type SharedStore = {
|
|
6
5
|
connection: () => void;
|
|
7
6
|
disconnect: () => void;
|
package/dist/engine/state.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ERDEditorSchemaV3, LWW } from '@dineug/erd-editor-schema';
|
|
1
2
|
import { Editor } from './modules/editor/state';
|
|
2
|
-
import { ERDEditorSchemaV3 } from '@dineug/erd-editor-schema';
|
|
3
|
-
|
|
4
3
|
export type RootState = ERDEditorSchemaV3 & {
|
|
5
4
|
editor: Editor;
|
|
5
|
+
lww: LWW;
|
|
6
6
|
};
|
package/dist/engine/store.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { RootState } from './state';
|
|
2
|
-
import { EngineContext } from './context';
|
|
3
1
|
import { Store as StoreType } from '@dineug/r-html';
|
|
4
|
-
|
|
2
|
+
import { EngineContext } from './context';
|
|
3
|
+
import { RootState } from './state';
|
|
5
4
|
export type Store = StoreType<RootState, EngineContext>;
|
|
6
5
|
export declare function createStore(context: EngineContext, enableObservable?: boolean): Store;
|
package/dist/engine/tag.d.ts
CHANGED
package/dist/engine.js
CHANGED
|
@@ -1,44 +1,53 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { Z as x, D as w, E as A, w as E, O as G, F as d, J as I, s as O, bv as h, I as l, Y as T, V, d6 as $, bu as j, aB as k, cX as F, da as J, db as R, dc as z } from "./schemaGCService-CLe8cLsy.js";
|
|
2
2
|
/*!
|
|
3
3
|
* @dineug/erd-editor
|
|
4
|
-
* @version 3.
|
|
4
|
+
* @version 3.3.0 | Wed May 07 2025
|
|
5
5
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
8
|
+
const B = {
|
|
9
9
|
change: "change"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const o = /* @__PURE__ */ new Set(),
|
|
13
|
-
n.
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
function H(p) {
|
|
12
|
+
const o = /* @__PURE__ */ new Set(), b = x(p), t = w(b, !1), u = A(t), c = new E(), m = new G(
|
|
13
|
+
(e) => t.subscribe((n) => e.next(n))
|
|
14
|
+
).pipe(d(l), I(200)), a = /* @__PURE__ */ new Set(), S = new F(), g = (e) => (a.has(e) || a.add(e), () => {
|
|
15
|
+
a.delete(e);
|
|
16
|
+
}), f = (e, n) => {
|
|
17
|
+
a.forEach((s) => {
|
|
16
18
|
const r = Reflect.get(s, e);
|
|
17
|
-
|
|
19
|
+
T(r, n);
|
|
18
20
|
});
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
t.dispatchSync(
|
|
22
|
-
(
|
|
21
|
+
}, y = (e) => {
|
|
22
|
+
const n = $(e);
|
|
23
|
+
t.dispatchSync(
|
|
24
|
+
j(k(n) ? "{}" : n)
|
|
25
|
+
), S.run(h(t.state)).then((s) => {
|
|
26
|
+
(s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && (J(t.state, s), t.dispatchSync(R()));
|
|
23
27
|
});
|
|
24
28
|
}, i = (e) => {
|
|
25
29
|
c.next([e].flat());
|
|
26
|
-
},
|
|
27
|
-
|
|
30
|
+
}, C = (e) => {
|
|
31
|
+
V(() => i(e));
|
|
28
32
|
}, v = () => {
|
|
29
|
-
Array.from(o).forEach((e) => e.unsubscribe()), o.clear(),
|
|
33
|
+
Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), a.clear(), t.destroy(), u.destroy();
|
|
30
34
|
};
|
|
31
|
-
return o.add(
|
|
35
|
+
return o.add(m.subscribe(() => f(B.change, void 0))).add(
|
|
36
|
+
c.pipe(
|
|
37
|
+
d(l),
|
|
38
|
+
O((e) => e.map((n) => z(n, "tags")))
|
|
39
|
+
).subscribe(t.dispatchSync)
|
|
40
|
+
), Object.freeze({
|
|
32
41
|
get value() {
|
|
33
42
|
return h(t.state);
|
|
34
43
|
},
|
|
35
|
-
on:
|
|
36
|
-
setInitialValue:
|
|
37
|
-
dispatch:
|
|
44
|
+
on: g,
|
|
45
|
+
setInitialValue: y,
|
|
46
|
+
dispatch: C,
|
|
38
47
|
dispatchSync: i,
|
|
39
48
|
destroy: v
|
|
40
49
|
});
|
|
41
50
|
}
|
|
42
51
|
export {
|
|
43
|
-
|
|
52
|
+
H as createReplicationStore
|
|
44
53
|
};
|