@dineug/erd-editor 4.1.0 → 4.2.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/README.md +17 -4
- package/dist/components/dictionary/Dictionary.d.ts +12 -0
- package/dist/components/dictionary/Dictionary.styles.d.ts +33 -0
- package/dist/components/dictionary/checkCount.d.ts +28 -0
- package/dist/components/dictionary/checkSheet.d.ts +41 -0
- package/dist/components/dictionary/dictionary-context-menu/DictionaryContextMenu.d.ts +30 -0
- package/dist/components/dictionary/dictionaryCommit.d.ts +83 -0
- package/dist/components/dictionary/dictionaryFile.d.ts +23 -0
- package/dist/components/dictionary/dictionaryKeys.d.ts +48 -0
- package/dist/components/dictionary/dictionaryView.d.ts +65 -0
- package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.d.ts +22 -0
- package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.styles.d.ts +7 -0
- package/dist/components/dictionary/domain-cell-editor/openDomainCellEditor.d.ts +9 -0
- package/dist/components/dictionary/gridTheme.d.ts +18 -0
- package/dist/components/dictionary/sheets.d.ts +65 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +4 -4
- package/dist/components/erd/canvas/EditOverlay.styles.d.ts +6 -0
- package/dist/components/erd/canvas/sceneHit.d.ts +5 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +6 -0
- package/dist/components/erd/canvas/table/Table.d.ts +6 -0
- package/dist/components/erd/canvas/table/blankLogicalName.d.ts +19 -0
- package/dist/components/erd/canvas/table/cellLayout.d.ts +4 -4
- package/dist/components/erd/canvas/table/column/Column.d.ts +32 -5
- package/dist/components/erd/canvas/table/dictionaryMarks.d.ts +29 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.d.ts +1 -0
- package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.d.ts +4 -1
- package/dist/components/erd/erd-context-menu/menus/nameViewMenus.d.ts +22 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +1 -1
- package/dist/components/erd/floating-toolbar/nameViewDropdown.d.ts +16 -0
- package/dist/components/erd/floating-toolbar/nameViewDropdown.styles.d.ts +5 -0
- package/dist/components/erd/readerNameView.d.ts +15 -0
- package/dist/components/explorer/explorerTree.d.ts +4 -1
- package/dist/components/explorer/fieldIcon.d.ts +4 -1
- package/dist/components/explorer/matchTarget.d.ts +6 -6
- package/dist/components/export-image/ExportImage.d.ts +10 -0
- package/dist/components/export-image/exportImageActions.d.ts +2 -2
- package/dist/components/flowCenters.d.ts +9 -0
- package/dist/components/map-columns/nameOf.d.ts +11 -3
- package/dist/components/primitives/icon/icons.d.ts +5 -0
- package/dist/components/quick-search/actions.d.ts +3 -1
- package/dist/components/quick-search/scopedActions.d.ts +2 -2
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +2 -2
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +2 -0
- package/dist/components/schema-sql/schemaSQLView.d.ts +2 -0
- package/dist/components/settings/lockSettingRows.d.ts +2 -1
- package/dist/components/table-view/column/column-domain/ColumnDomain.d.ts +19 -0
- package/dist/components/table-view/column/column-domain/domainOptions.d.ts +13 -0
- package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.d.ts +22 -0
- package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.styles.d.ts +4 -0
- package/dist/components/table-view/column/columnViewText.d.ts +33 -0
- package/dist/components/table-view/column/useHintList.d.ts +24 -0
- package/dist/components/visualization/createVisualization.d.ts +2 -0
- package/dist/components/visualization/flowLayout.d.ts +2 -1
- package/dist/components/visualization/table/column/Column.d.ts +4 -0
- package/dist/components/visualization/visualization-toolbar/VisualizationToolbar.d.ts +2 -2
- package/dist/components/visualization/visualizationView.d.ts +15 -4
- package/dist/constants/layout.d.ts +11 -0
- package/dist/constants/schema.d.ts +15 -2
- package/dist/engine/actions.d.ts +5 -2
- package/dist/engine/history.actions.d.ts +8 -0
- package/dist/engine/history.d.ts +11 -3
- package/dist/engine/index.js +17 -17
- package/dist/engine/modules/dictionary/actions.d.ts +74 -0
- package/dist/engine/modules/dictionary/atom.actions.d.ts +74 -0
- package/dist/engine/modules/dictionary/checks.d.ts +76 -0
- package/dist/engine/modules/dictionary/derive.d.ts +54 -0
- package/dist/engine/modules/dictionary/derivedNames.d.ts +23 -0
- package/dist/engine/modules/dictionary/dictionaryIndex.d.ts +73 -0
- package/dist/engine/modules/dictionary/domainLinks.d.ts +9 -0
- package/dist/engine/modules/dictionary/domainTypes.d.ts +27 -0
- package/dist/engine/modules/dictionary/entryWrites.d.ts +63 -0
- package/dist/engine/modules/dictionary/generator.actions.d.ts +126 -0
- package/dist/engine/modules/dictionary/history.d.ts +14 -0
- package/dist/engine/modules/dictionary/membership.d.ts +28 -0
- package/dist/engine/modules/dictionary/orderKeys.d.ts +13 -0
- package/dist/engine/modules/dictionary/termIndex.d.ts +24 -0
- package/dist/engine/modules/editor/actions.d.ts +18 -3
- package/dist/engine/modules/editor/atom.actions.d.ts +24 -6
- package/dist/engine/modules/editor/generator.actions.d.ts +22 -8
- package/dist/engine/modules/editor/state.d.ts +24 -0
- package/dist/engine/modules/editor/utils/nameView.d.ts +103 -0
- package/dist/engine/modules/editor/view.actions.d.ts +24 -1
- package/dist/engine/modules/editor/view.d.ts +8 -0
- package/dist/engine/modules/relationship/fkColumns.d.ts +10 -4
- package/dist/engine/modules/settings/actions.d.ts +13 -3
- package/dist/engine/modules/settings/atom.actions.d.ts +49 -5
- package/dist/engine/modules/settings/generator.actions.d.ts +2 -2
- package/dist/engine/modules/table/actions.d.ts +7 -0
- package/dist/engine/modules/table/atom.actions.d.ts +46 -0
- package/dist/engine/modules/table/generator.actions.d.ts +7 -0
- package/dist/engine/modules/table/history.d.ts +2 -0
- package/dist/engine/modules/table-column/actions.d.ts +7 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +49 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +5 -0
- package/dist/engine/modules/table-column/history.d.ts +3 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -1
- package/dist/engine/rx-store.d.ts +6 -0
- package/dist/engine/tag.d.ts +8 -0
- package/dist/erd-editor.umd.js +1163 -817
- package/dist/i18n/messages/ar-SA.d.ts +125 -0
- package/dist/i18n/messages/de-DE.d.ts +93 -0
- package/dist/i18n/messages/en/common.d.ts +11 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +1 -0
- package/dist/i18n/messages/en/dictionary.d.ts +79 -0
- package/dist/i18n/messages/en/findReplace.d.ts +2 -0
- package/dist/i18n/messages/en/index.d.ts +93 -0
- package/dist/i18n/messages/en/palette.d.ts +4 -0
- package/dist/i18n/messages/en/schemaSql.d.ts +1 -0
- package/dist/i18n/messages/en/settings.d.ts +1 -0
- package/dist/i18n/messages/en/visualization.d.ts +2 -0
- package/dist/i18n/messages/es-ES.d.ts +101 -0
- package/dist/i18n/messages/eu-ES.d.ts +93 -0
- package/dist/i18n/messages/fa-IR.d.ts +93 -0
- package/dist/i18n/messages/fr-FR.d.ts +101 -0
- package/dist/i18n/messages/he-IL.d.ts +101 -0
- package/dist/i18n/messages/id-ID.d.ts +85 -0
- package/dist/i18n/messages/it-IT.d.ts +101 -0
- package/dist/i18n/messages/ja-JP.d.ts +85 -0
- package/dist/i18n/messages/ko-KR.d.ts +85 -0
- package/dist/i18n/messages/nl-NL.d.ts +93 -0
- package/dist/i18n/messages/pl-PL.d.ts +109 -0
- package/dist/i18n/messages/pt-BR.d.ts +101 -0
- package/dist/i18n/messages/pt-PT.d.ts +101 -0
- package/dist/i18n/messages/ro-RO.d.ts +101 -0
- package/dist/i18n/messages/ru-RU.d.ts +109 -0
- package/dist/i18n/messages/sk-SK.d.ts +109 -0
- package/dist/i18n/messages/sl-SI.d.ts +109 -0
- package/dist/i18n/messages/sv-SE.d.ts +93 -0
- package/dist/i18n/messages/tr-TR.d.ts +93 -0
- package/dist/i18n/messages/uk-UA.d.ts +109 -0
- package/dist/i18n/messages/zh-CN.d.ts +85 -0
- package/dist/i18n/messages/zh-TW.d.ts +85 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25195 -18014
- package/dist/internal-types/index.d.ts +6 -0
- package/dist/konva/scene/columnDropTarget.d.ts +2 -2
- package/dist/loadValue-B5ojYrZ-.js +14682 -0
- package/dist/peer/index.d.ts +4 -0
- package/dist/peer/index.js +61 -60
- package/dist/services/export-png/ExportScene.d.ts +1 -1
- package/dist/services/export-png/documentScene.d.ts +7 -1
- package/dist/services/export-png/index.d.ts +11 -5
- package/dist/services/export-png/renderPng.d.ts +4 -1
- package/dist/services/export-png/renderSvg.d.ts +4 -1
- package/dist/shared-store-S7YWEz3E.js +1656 -0
- package/dist/themes/tokens.d.ts +12 -0
- package/dist/utils/calcTable.d.ts +20 -4
- package/dist/utils/collection/domain.entity.d.ts +3 -0
- package/dist/utils/collection/term.entity.d.ts +3 -0
- package/dist/utils/collection/word.entity.d.ts +3 -0
- package/dist/utils/dictionary-csv/csv.d.ts +13 -0
- package/dist/utils/dictionary-csv/decode.d.ts +7 -0
- package/dist/utils/dictionary-csv/dictionaryCsv.d.ts +55 -0
- package/dist/utils/dictionary-csv/index.d.ts +4 -0
- package/dist/utils/diff/types.d.ts +4 -0
- package/dist/utils/file/exportFile.d.ts +10 -0
- package/dist/utils/find-replace/findMatches.d.ts +10 -4
- package/dist/utils/find-replace/present.d.ts +1 -1
- package/dist/utils/find-replace/replaceActions.d.ts +9 -5
- package/dist/utils/focus.d.ts +2 -0
- package/dist/utils/formatCount.d.ts +10 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +1 -1
- package/dist/utils/map-columns/alignTypes.d.ts +3 -3
- package/dist/utils/schema-sql/Databricks.d.ts +2 -2
- package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
- package/dist/utils/schema-sql/MariaDB.d.ts +2 -2
- package/dist/utils/schema-sql/MySQL.d.ts +2 -2
- 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 +2 -2
- package/dist/utils/schema-sql/Snowflake.d.ts +2 -2
- package/dist/utils/schema-sql/options.d.ts +2 -0
- package/dist/utils/schema-sql/utils.d.ts +14 -0
- package/dist/utils/table-clipboard/copy.d.ts +2 -3
- package/dist/utils/table-clipboard/index.d.ts +9 -1
- package/dist/utils/table-clipboard/paste.d.ts +2 -2
- package/dist/utils/table-clipboard/payload.d.ts +12 -0
- package/dist/utils/validation.d.ts +1 -0
- package/dist/workers/exportPng.shared-worker.js +30 -29
- package/package.json +7 -5
- package/dist/konva/batchDraw.d.ts +0 -42
- package/dist/konva/host.d.ts +0 -30
- package/dist/konva/jsx-types.test-d.d.ts +0 -2
- package/dist/loadValue-BKvXDYoC.js +0 -12925
- package/dist/shared-store-2IUOt99m.js +0 -1341
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dineug/erd-editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Entity-Relationship Diagram Editor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"homepage": "https://github.com/dineug/erd-editor#readme",
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@chenglou/pretext": "^0.0
|
|
51
|
+
"@chenglou/pretext": "^1.0.0",
|
|
52
52
|
"@radix-ui/colors": "^3.0.0",
|
|
53
53
|
"@shikijs/langs": "^4.4.3",
|
|
54
54
|
"@shikijs/themes": "^4.4.3",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"elkjs": "^0.12.0",
|
|
58
58
|
"es-hangul": "^2.4.0",
|
|
59
59
|
"es-toolkit": "^1.50.0",
|
|
60
|
-
"fuse.js": "^7.
|
|
60
|
+
"fuse.js": "^7.5.0",
|
|
61
61
|
"graphql": "^17.0.2",
|
|
62
62
|
"konva": "^10.3.2",
|
|
63
63
|
"lucide": "^1.35.0",
|
|
@@ -86,10 +86,12 @@
|
|
|
86
86
|
"vite-plus": "1.0.0",
|
|
87
87
|
"vitest": "5.0.1",
|
|
88
88
|
"@dineug/erd-editor-schema": "0.1.0",
|
|
89
|
+
"@dineug/grid": "0.1.0",
|
|
89
90
|
"@dineug/r-html": "0.1.3",
|
|
91
|
+
"@dineug/r-html-konva": "0.1.0",
|
|
92
|
+
"@dineug/vite-plugin-r-html": "0.1.0",
|
|
90
93
|
"@dineug/schema-sql-parser": "0.1.0",
|
|
91
|
-
"@dineug/uuid": "0.1.0"
|
|
92
|
-
"@dineug/vite-plugin-r-html": "0.1.0"
|
|
94
|
+
"@dineug/uuid": "0.1.0"
|
|
93
95
|
},
|
|
94
96
|
"scripts": {
|
|
95
97
|
"dev": "vp run --filter @dineug/erd-editor... --filter !@dineug/erd-editor build && vp dev",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Layer } from 'konva/lib/Layer';
|
|
2
|
-
/**
|
|
3
|
-
* The commit counter the host's epoch scoped reconcile reads. It advances once
|
|
4
|
-
* per flush and never on a deferred hop, so one commit reconciles a parent at
|
|
5
|
-
* most once however many hops the fixed point took.
|
|
6
|
-
*/
|
|
7
|
-
export declare function currentEpoch(): number;
|
|
8
|
-
/**
|
|
9
|
-
* Registers work that settles the scene before a commit draws it. The host
|
|
10
|
-
* reconciles its ledger here, which is what makes the flush the one boundary
|
|
11
|
-
* where the konva tree and the ledger are known to agree.
|
|
12
|
-
*/
|
|
13
|
-
export declare function onBeforeFlush(listener: () => void): () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Arms the gate without naming a layer, for a change that has to reach the
|
|
16
|
-
* fixed point but nothing to draw yet. The arming mark counts as dirt itself,
|
|
17
|
-
* so the commit always lands at least one hop later than the write.
|
|
18
|
-
*/
|
|
19
|
-
export declare function requestFlush(): void;
|
|
20
|
-
/**
|
|
21
|
-
* Records that a layer needs redrawing and arms the gate. A layer a Tween has
|
|
22
|
-
* claimed is parked instead, and the end of that window hands it back.
|
|
23
|
-
*/
|
|
24
|
-
export declare function markDirty(layer: Layer): void;
|
|
25
|
-
/**
|
|
26
|
-
* Hands the draw authority for one layer to a Tween, whose animation frame
|
|
27
|
-
* draws it. Windows count rather than latch, because one FLIP tweens many
|
|
28
|
-
* nodes of a layer and each of them opens and closes its own.
|
|
29
|
-
*/
|
|
30
|
-
export declare function beginAnimation(layer: Layer): void;
|
|
31
|
-
/**
|
|
32
|
-
* Closes one Tween window and, with the last one on a layer, hands the marks
|
|
33
|
-
* parked meanwhile back to the gate as a single re-arm.
|
|
34
|
-
*/
|
|
35
|
-
export declare function endAnimation(layer: Layer): void;
|
|
36
|
-
/**
|
|
37
|
-
* Resolves once the scene has settled. An open Tween window anywhere defers
|
|
38
|
-
* the answer to the end of that window, an armed gate to its flush, and an
|
|
39
|
-
* idle gate answers at once so a call after a flush never hangs.
|
|
40
|
-
*/
|
|
41
|
-
export declare function whenDrawn(): Promise<void>;
|
|
42
|
-
//# sourceMappingURL=batchDraw.d.ts.map
|
package/dist/konva/host.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DOMTemplateLiterals, HostAdapter } from '@dineug/r-html';
|
|
2
|
-
import { Stage } from 'konva/lib/Stage';
|
|
3
|
-
/**
|
|
4
|
-
* The name the minimap Stage carries, and the whole reach of the id ban below.
|
|
5
|
-
* An id scan over Konva.stages is ambiguous the moment two stages spell one id,
|
|
6
|
-
* so ids belong to the main canvas and the minimap locates by name.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MINIMAP_STAGE_NAME = "minimap";
|
|
9
|
-
/**
|
|
10
|
-
* What the marker bench reads. A reconcile gone quadratic is invisible from
|
|
11
|
-
* outside the host, so the counters name the shape of the work itself rather
|
|
12
|
-
* than a wall clock.
|
|
13
|
-
*/
|
|
14
|
-
export interface HostStats {
|
|
15
|
-
reconcile: number;
|
|
16
|
-
scan: number;
|
|
17
|
-
attach: number;
|
|
18
|
-
drop: number;
|
|
19
|
-
order: number;
|
|
20
|
-
setZIndex: number;
|
|
21
|
-
}
|
|
22
|
-
export declare const hostStats: HostStats;
|
|
23
|
-
export declare function resetHostStats(): void;
|
|
24
|
-
export declare const konvaAdapter: HostAdapter;
|
|
25
|
-
/** Spelt out rather than inferred: the inferred one names an r-html internal. */
|
|
26
|
-
type KonvaTag = (strings: TemplateStringsArray, ...values: any[]) => DOMTemplateLiterals;
|
|
27
|
-
export declare const konva: KonvaTag;
|
|
28
|
-
export declare function renderKonva(stage: Stage, templateLiterals?: DOMTemplateLiterals | null): void;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=host.d.ts.map
|