@dineug/erd-editor 3.1.8 → 3.2.1
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 -429
- package/dist/components/appContext.d.ts +8 -7
- package/dist/components/customElementRegistry.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 +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 +9 -0
- package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +3 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +19 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +10 -0
- package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +11 -0
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +5 -0
- 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 +6 -5
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -1
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -5
- 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/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/layout.d.ts +1 -0
- package/dist/constants/open.d.ts +3 -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 +8876 -8205
- 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-Cyip5lJB.js → schemaGCService-tEI4URA5.js} +500 -499
- 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/themes/tokens.d.ts +6 -0
- 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 +15 -2
- package/dist/utils/file/importFile.d.ts +3 -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 +4 -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 +4 -2
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ActionMap, ActionType } from
|
|
2
|
-
import { FocusType } from
|
|
3
|
-
import { RootState } from
|
|
1
|
+
import { ActionMap, ActionType } from '../actions';
|
|
2
|
+
import { FocusType } from '../state';
|
|
3
|
+
import { RootState } from '../../../state';
|
|
4
4
|
type Payload = ActionMap[typeof ActionType.focusMoveTable];
|
|
5
5
|
export declare function isColumns({ collections, editor: { focusTable } }: RootState): boolean;
|
|
6
6
|
export declare function isLastColumn(state: RootState): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addIndex: "index.add";
|
|
7
7
|
readonly removeIndex: "index.remove";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
2
|
export declare const addIndexAction$: (tableId: string) => GeneratorAction;
|
|
3
3
|
export declare const changeIndexUniqueAction$: (indexId: string) => GeneratorAction;
|
|
4
4
|
export declare const actions$: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addIndexColumn: "indexColumn.add";
|
|
7
7
|
readonly removeIndexColumn: "indexColumn.remove";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
2
|
export declare const addIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
|
|
3
3
|
export declare const removeIndexColumnAction$: (indexId: string, columnId: string) => GeneratorAction;
|
|
4
4
|
export declare const changeIndexColumnOrderTypeAction$: (indexColumnId: string) => GeneratorAction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addMemo: "memo.add";
|
|
7
7
|
readonly moveMemo: "memo.move";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
2
|
export declare const addMemoAction$: () => GeneratorAction;
|
|
3
3
|
export declare const removeMemoAction$: (id?: string) => GeneratorAction;
|
|
4
4
|
export declare const selectMemoAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addRelationship: "relationship.add";
|
|
7
7
|
readonly removeRelationship: "relationship.remove";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Hook } from
|
|
1
|
+
import type { Hook } from '../../hooks';
|
|
2
2
|
export declare const hooks: Hook[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly changeDatabaseName: "settings.changeDatabaseName";
|
|
7
7
|
readonly resize: "settings.resize";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
2
|
export declare const changeZoomLevelAction$: (value: number) => GeneratorAction;
|
|
3
3
|
export declare const streamZoomLevelAction$: (value: number) => GeneratorAction;
|
|
4
4
|
export declare const actions$: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PushStreamHistory, PushUndoHistory } from
|
|
1
|
+
import { PushStreamHistory, PushUndoHistory } from '../../history.actions';
|
|
2
2
|
export declare const settingsPushUndoHistoryMap: {
|
|
3
3
|
"settings.resize": PushUndoHistory;
|
|
4
4
|
"settings.scrollTo": PushUndoHistory;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addTable: "table.add";
|
|
7
7
|
readonly moveTable: "table.move";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
2
|
-
import { Column } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
|
+
import { Column } from '../../../internal-types';
|
|
3
3
|
export declare const addTableAction$: () => GeneratorAction;
|
|
4
4
|
export declare const removeTableAction$: (id?: string) => GeneratorAction;
|
|
5
5
|
export declare const selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Hook } from
|
|
1
|
+
import type { Hook } from '../../hooks';
|
|
2
2
|
export declare const hooks: Hook[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
4
|
-
import { ValuesType } from
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
5
|
export declare const ActionType: {
|
|
6
6
|
readonly addColumn: "column.add";
|
|
7
7
|
readonly removeColumn: "column.remove";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneratorAction } from
|
|
2
|
-
import { FocusType } from
|
|
1
|
+
import { GeneratorAction } from '../../generator.actions';
|
|
2
|
+
import { FocusType } from '../editor/state';
|
|
3
3
|
import { ChangeColumnValuePayload } from './actions';
|
|
4
4
|
export declare const isToggleColumnTypes: (value: FocusType) => boolean;
|
|
5
5
|
export declare const isChangeColumnTypes: (value: FocusType) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Hook } from
|
|
1
|
+
import type { Hook } from '../../hooks';
|
|
2
2
|
export declare const hooks: Hook[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChangeColumnValuePayload } from
|
|
2
|
-
import { RootState } from
|
|
1
|
+
import { ChangeColumnValuePayload } from '../actions';
|
|
2
|
+
import { RootState } from '../../../state';
|
|
3
3
|
export declare function getDataTypeSyncColumns(stack: ChangeColumnValuePayload[], state: RootState, payload: ChangeColumnValuePayload, payloads?: ChangeColumnValuePayload[]): ChangeColumnValuePayload[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { Unsubscribe, ValuesType } from
|
|
2
|
+
import { EngineContext } from './context';
|
|
3
|
+
import { Unsubscribe, ValuesType } from '../internal-types';
|
|
4
4
|
type ReducerRecord = {
|
|
5
5
|
[P in keyof InternalActionMap]: (payload: InternalActionMap[P]) => void;
|
|
6
6
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EngineContext } from
|
|
4
|
-
import {
|
|
3
|
+
import { EngineContext } from './context';
|
|
4
|
+
import { History, HistoryOptions } from './history';
|
|
5
|
+
import { Store } from './store';
|
|
5
6
|
export type RxStore = Store & {
|
|
6
7
|
undo: () => void;
|
|
7
8
|
redo: () => void;
|
|
9
|
+
history: History;
|
|
8
10
|
change$: Observable<Array<AnyAction>>;
|
|
9
11
|
};
|
|
10
|
-
export
|
|
12
|
+
export type RxStoreOptions = {
|
|
13
|
+
getReadonly?: () => boolean;
|
|
14
|
+
getHistory?: (options: HistoryOptions) => History;
|
|
15
|
+
};
|
|
16
|
+
export declare const HISTORY_LIMIT = 2048;
|
|
17
|
+
export declare function createRxStore(context: EngineContext, { getReadonly, getHistory }?: RxStoreOptions): RxStore;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
|
-
import { RxStore } from
|
|
3
|
-
import { Unsubscribe } from
|
|
2
|
+
import { RxStore } from './rx-store';
|
|
3
|
+
import { Unsubscribe } from '../internal-types';
|
|
4
4
|
export type SharedStore = {
|
|
5
5
|
connection: () => void;
|
|
6
6
|
disconnect: () => void;
|
package/dist/engine/state.d.ts
CHANGED
package/dist/engine/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Store as StoreType } from '@dineug/r-html';
|
|
2
|
-
import { EngineContext } from
|
|
3
|
-
import { RootState } from
|
|
2
|
+
import { EngineContext } from './context';
|
|
3
|
+
import { RootState } from './state';
|
|
4
4
|
export type Store = StoreType<RootState, EngineContext>;
|
|
5
5
|
export declare function createStore(context: EngineContext, enableObservable?: boolean): Store;
|
package/dist/engine/tag.d.ts
CHANGED
package/dist/engine.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as A, E as w, u as x, O as E,
|
|
1
|
+
import { D as A, E as w, u as x, O as E, G as d, K as G, p as I, bs as l, J as p, Y as O, d0 as T, br as V, aB as $, d5 as j, d6 as k, V as J, d7 as R, cU as z } from "./schemaGCService-tEI4URA5.js";
|
|
2
2
|
/*!
|
|
3
3
|
* @dineug/erd-editor
|
|
4
|
-
* @version 3.1
|
|
4
|
+
* @version 3.2.1 | Wed Mar 20 2024
|
|
5
5
|
* @author SeungHwan-Lee <dineug2@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
@@ -9,7 +9,7 @@ const b = {
|
|
|
9
9
|
change: "change"
|
|
10
10
|
};
|
|
11
11
|
function D(u) {
|
|
12
|
-
const o = /* @__PURE__ */ new Set(), t = A(u, !1),
|
|
12
|
+
const o = /* @__PURE__ */ new Set(), t = A(u, !1), m = w(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 z(), g = (e) => (n.has(e) || n.add(e), () => {
|
|
13
13
|
n.delete(e);
|
|
14
14
|
}), i = (e, a) => {
|
|
15
15
|
n.forEach((s) => {
|
|
@@ -18,19 +18,19 @@ function D(u) {
|
|
|
18
18
|
});
|
|
19
19
|
}, y = (e) => {
|
|
20
20
|
const a = T(e);
|
|
21
|
-
t.dispatchSync($(
|
|
22
|
-
(s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && (
|
|
21
|
+
t.dispatchSync(V($(a) ? "{}" : a)), f.run(l(t.state)).then((s) => {
|
|
22
|
+
(s.tableIds.length || s.tableColumnIds.length || s.relationshipIds.length || s.indexIds.length || s.indexColumnIds.length || s.memoIds.length) && (j(t.state, s), t.dispatchSync(k()), i(b.change, void 0));
|
|
23
23
|
});
|
|
24
24
|
}, r = (e) => {
|
|
25
25
|
c.next([e].flat());
|
|
26
26
|
}, v = (e) => {
|
|
27
27
|
J(() => r(e));
|
|
28
28
|
}, C = () => {
|
|
29
|
-
Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), n.clear(), t.destroy(),
|
|
29
|
+
Array.from(o).forEach((e) => e.unsubscribe()), o.clear(), n.clear(), t.destroy(), m.destroy();
|
|
30
30
|
};
|
|
31
|
-
return o.add(
|
|
31
|
+
return o.add(S.subscribe(() => i(b.change, void 0))).add(c.pipe(d(p), I((e) => e.map((a) => R(a, "tags")))).subscribe(t.dispatchSync)), Object.freeze({
|
|
32
32
|
get value() {
|
|
33
|
-
return
|
|
33
|
+
return l(t.state);
|
|
34
34
|
},
|
|
35
35
|
on: g,
|
|
36
36
|
setInitialValue: y,
|