@dineug/erd-editor 4.0.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 +106 -280
- 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/DiffOutline.template.d.ts +14 -0
- 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 +8 -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.d.ts +19 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.d.ts +13 -0
- package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.d.ts +52 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +21 -19
- package/dist/components/erd/draw-target/placePill.d.ts +1 -3
- package/dist/components/erd/erd-context-menu/menus/nameViewMenus.d.ts +22 -0
- package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +7 -4
- 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/goToErdTarget.d.ts +40 -16
- package/dist/components/erd/readerNameView.d.ts +15 -0
- package/dist/components/erd/relationshipHighlight.d.ts +18 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +5 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +7 -3
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +4 -0
- package/dist/components/erd-editor/viewportLayout.d.ts +52 -0
- package/dist/components/explorer/Explorer.d.ts +12 -0
- package/dist/components/explorer/explorer-controller/ExplorerController.d.ts +11 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.d.ts +14 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.styles.d.ts +13 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.d.ts +12 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.styles.d.ts +13 -0
- package/dist/components/explorer/explorerCommands.d.ts +28 -0
- package/dist/components/explorer/explorerNavigation.d.ts +14 -0
- package/dist/components/explorer/explorerSearch.d.ts +71 -0
- package/dist/components/explorer/explorerTree.d.ts +93 -0
- package/dist/components/explorer/explorerView.d.ts +54 -0
- package/dist/components/{find-replace → explorer}/fieldIcon.d.ts +4 -1
- package/dist/components/{find-replace → explorer}/matchTarget.d.ts +7 -9
- 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 +13 -4
- package/dist/components/primitives/sash/Sash.d.ts +1 -0
- package/dist/components/primitives/tree/Tree.d.ts +30 -0
- package/dist/components/primitives/tree/Tree.styles.d.ts +5 -0
- package/dist/components/primitives/tree/treeModel.d.ts +42 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
- package/dist/components/quick-search/actions.d.ts +3 -4
- package/dist/components/quick-search/paletteList.d.ts +7 -0
- package/dist/components/quick-search/scopedActions.d.ts +5 -11
- 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/theme-builder/ThemeBuilder.styles.d.ts +3 -3
- package/dist/components/toolbar/Toolbar.styles.d.ts +0 -1
- 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 +18 -1
- package/dist/constants/open.d.ts +0 -1
- 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 +1586 -1018
- package/dist/i18n/messages/ar-SA.d.ts +166 -15
- package/dist/i18n/messages/de-DE.d.ts +134 -11
- package/dist/i18n/messages/en/code.d.ts +0 -1
- package/dist/i18n/messages/en/common.d.ts +11 -1
- 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/explorer.d.ts +37 -0
- package/dist/i18n/messages/en/findReplace.d.ts +7 -1
- package/dist/i18n/messages/en/index.d.ts +135 -12
- package/dist/i18n/messages/en/palette.d.ts +5 -7
- 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/shortcuts.d.ts +3 -1
- package/dist/i18n/messages/en/toolbar.d.ts +0 -1
- package/dist/i18n/messages/en/visualization.d.ts +2 -0
- package/dist/i18n/messages/es-ES.d.ts +142 -12
- package/dist/i18n/messages/eu-ES.d.ts +134 -11
- package/dist/i18n/messages/fa-IR.d.ts +134 -11
- package/dist/i18n/messages/fr-FR.d.ts +142 -12
- package/dist/i18n/messages/he-IL.d.ts +142 -12
- package/dist/i18n/messages/id-ID.d.ts +126 -10
- package/dist/i18n/messages/it-IT.d.ts +142 -12
- package/dist/i18n/messages/ja-JP.d.ts +126 -10
- package/dist/i18n/messages/ko-KR.d.ts +126 -10
- package/dist/i18n/messages/nl-NL.d.ts +134 -11
- package/dist/i18n/messages/pl-PL.d.ts +150 -13
- package/dist/i18n/messages/pt-BR.d.ts +142 -12
- package/dist/i18n/messages/pt-PT.d.ts +142 -12
- package/dist/i18n/messages/ro-RO.d.ts +142 -12
- package/dist/i18n/messages/ru-RU.d.ts +150 -13
- package/dist/i18n/messages/sk-SK.d.ts +150 -13
- package/dist/i18n/messages/sl-SI.d.ts +150 -13
- package/dist/i18n/messages/sv-SE.d.ts +134 -11
- package/dist/i18n/messages/tr-TR.d.ts +134 -11
- package/dist/i18n/messages/uk-UA.d.ts +150 -13
- package/dist/i18n/messages/zh-CN.d.ts +126 -10
- package/dist/i18n/messages/zh-TW.d.ts +126 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +34929 -25093
- 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 +60 -59
- 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/styles/scrollbar.styles.d.ts +1 -1
- package/dist/themes/tokens.d.ts +21 -4
- 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/compareEntities.d.ts +39 -0
- package/dist/utils/diff/diffDocuments.d.ts +12 -0
- package/dist/utils/diff/index.d.ts +5 -0
- package/dist/utils/diff/pairEntities.d.ts +41 -0
- package/dist/utils/diff/types.d.ts +81 -0
- package/dist/utils/emitter.d.ts +2 -8
- package/dist/utils/file/exportFile.d.ts +10 -0
- package/dist/utils/find-replace/findMatches.d.ts +31 -12
- package/dist/utils/find-replace/matcher.d.ts +2 -0
- package/dist/utils/find-replace/present.d.ts +4 -3
- package/dist/utils/find-replace/preserveCase.d.ts +10 -0
- 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 +11 -3
- 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/takeover.d.ts +6 -0
- package/dist/utils/validation.d.ts +1 -0
- package/dist/utils/virtualRange.d.ts +15 -0
- package/dist/workers/exportPng.shared-worker.js +30 -29
- package/package.json +8 -6
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +0 -12
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +0 -6
- package/dist/components/find-replace/FindReplace.d.ts +0 -13
- package/dist/components/find-replace/FindReplace.styles.d.ts +0 -27
- package/dist/components/find-replace/panelLayout.d.ts +0 -20
- 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-B3EFSe9k.js +0 -12925
- package/dist/shared-store-fUggY7sI.js +0 -1341
|
@@ -16,6 +16,8 @@ export declare const KeyBindingName: {
|
|
|
16
16
|
readonly addTable: "addTable";
|
|
17
17
|
readonly addColumn: "addColumn";
|
|
18
18
|
readonly addMemo: "addMemo";
|
|
19
|
+
readonly addTableGroup: "addTableGroup";
|
|
20
|
+
readonly groupSelectedTables: "groupSelectedTables";
|
|
19
21
|
readonly removeTable: "removeTable";
|
|
20
22
|
readonly removeColumn: "removeColumn";
|
|
21
23
|
readonly removeSelection: "removeSelection";
|
|
@@ -35,18 +37,24 @@ export declare const KeyBindingName: {
|
|
|
35
37
|
readonly zenMode: "zenMode";
|
|
36
38
|
};
|
|
37
39
|
export type KeyBindingName = ValuesType<typeof KeyBindingName>;
|
|
38
|
-
export declare const KeyBindingNameList: ("undo" | "redo" | "
|
|
40
|
+
export declare const KeyBindingNameList: ("undo" | "redo" | "addColumn" | "removeColumn" | "search" | "stop" | "selectAllColumn" | "primaryKey" | "edit" | "addMemo" | "addTable" | "removeTable" | "addTableGroup" | "findReplace" | "groupSelectedTables" | "removeSelection" | "selectAllTable" | "relationshipZeroOne" | "relationshipZeroN" | "relationshipOneOnly" | "relationshipOneN" | "tableProperties" | "focusView" | "zoomIn" | "zoomOut" | "zoomReset" | "handTool" | "zenMode")[];
|
|
39
41
|
/**
|
|
40
42
|
* The chords a press inside a floating panel still carries to the editor:
|
|
41
43
|
* Find and Replace's own, search, the document's undo and redo, and the zoom.
|
|
42
44
|
*/
|
|
43
45
|
export declare const PANEL_PASSING_BINDINGS: ReadonlyArray<KeyBindingName>;
|
|
44
46
|
export type KeyBindingMap = Record<KeyBindingName, ShortcutOption[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Whether a press inside a panel stops there: a press an IME still holds, a
|
|
49
|
+
* chord of the map outside the passing list, or a key the panel moves or
|
|
50
|
+
* presses with. A host that leaves Escape to the editor passes stop through.
|
|
51
|
+
*/
|
|
52
|
+
export declare function stopsAtPanel(event: KeyboardEvent, keyBindingMap: KeyBindingMap, passing?: ReadonlyArray<KeyBindingName>): boolean;
|
|
45
53
|
export declare const createKeyBindingMap: () => KeyBindingMap;
|
|
46
54
|
/**
|
|
47
55
|
* Whether the press is one of the chords given, matched as bindKeys matches a
|
|
48
|
-
* press, so a panel reads a binding as the editor root does.
|
|
49
|
-
*
|
|
56
|
+
* press, so a panel reads a binding as the editor root does. Of a sequence it
|
|
57
|
+
* is the last press, the one that would complete it at the root.
|
|
50
58
|
*/
|
|
51
59
|
export declare function matchesShortcut(event: KeyboardEvent, options: ReadonlyArray<ShortcutOption>): boolean;
|
|
52
60
|
export declare function shortcutToTuple(shortcut?: string): KeyBindingPress[];
|
|
@@ -14,9 +14,9 @@ export type AlignTypesInput = {
|
|
|
14
14
|
newColumnIds: string[];
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* While the sync is on, the type changes the sync makes over the relationships
|
|
18
|
+
* as they will stand to bring each existing child column to its parent's, none
|
|
19
|
+
* for one already there, then the unlink of each left off its domain's type.
|
|
20
20
|
*/
|
|
21
21
|
export declare function toAlignTypeActions(state: RootState, { relationshipId, start, end, newColumnIds }: AlignTypesInput): AnyAction[];
|
|
22
22
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
5
|
-
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
|
+
export declare function formatTable(state: RootState, { buffer, table, statements, logicalNameAsComment }: FormatTableOptions): void;
|
|
6
6
|
/**
|
|
7
7
|
* A comment per column the diagram marks unique, after the table: UNIQUE is not
|
|
8
8
|
* one of the constraints Databricks accepts, so it is reported, never dropped.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { written }?: CreateSchemaOptions): string;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
5
|
export declare function formatTable(state: RootState, { buffer, table }: FormatTableOptions): void;
|
|
6
6
|
/**
|
|
7
7
|
* One named constraint per column the diagram marks unique, after the table.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions } from './utils';
|
|
3
3
|
export { formatDropBlock, formatHeader } from './MySQL';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
5
|
-
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
|
+
export declare function formatTable(state: RootState, { buffer, table, statements, logicalNameAsComment }: FormatTableOptions): void;
|
|
6
6
|
/**
|
|
7
7
|
* One named constraint per column the diagram marks unique, after the table.
|
|
8
8
|
* The whole export and the per-table Schema SQL tab both write it.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
5
|
-
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
|
+
export declare function formatTable(state: RootState, { buffer, table, statements, logicalNameAsComment }: FormatTableOptions): void;
|
|
6
6
|
/**
|
|
7
7
|
* One named constraint per column the diagram marks unique, after the table.
|
|
8
8
|
* The whole export and the per-table Schema SQL tab both write it.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { written }?: CreateSchemaOptions): string;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
5
|
export declare function formatTable(state: RootState, { buffer, table, written }: FormatTableOptions): void;
|
|
6
6
|
/**
|
|
7
7
|
* One named constraint per column the diagram marks unique, after the table.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
5
|
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
6
6
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames, statements }: FormatIndexOptions): void;
|
|
7
7
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions, WrittenObjects } from './utils';
|
|
3
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
3
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
4
4
|
/**
|
|
5
5
|
* An integer type name, with or without a width, which an AUTOINCREMENT key
|
|
6
6
|
* is written as INTEGER for; the rest keep their type and lose the keyword.
|
|
7
7
|
*/
|
|
8
8
|
export declare function isIntegerFamily(dataType: string): boolean;
|
|
9
|
-
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
9
|
+
export declare function formatTable(state: RootState, { buffer, table, statements, logicalNameAsComment }: FormatTableOptions): void;
|
|
10
10
|
export declare function formatIndex({ settings: { bracketType }, collections }: RootState, { buffer, index, indexNames, statements }: FormatIndexOptions): void;
|
|
11
11
|
/** SQLite has no database or schema to create or select in a script. */
|
|
12
12
|
export declare function formatHeader(): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { SchemaSQLHeader } from './options';
|
|
3
3
|
import { CreateSchemaOptions, FormatIndexOptions, FormatTableOptions } from './utils';
|
|
4
|
-
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written }?: CreateSchemaOptions): string;
|
|
5
|
-
export declare function formatTable(state: RootState, { buffer, table, statements }: FormatTableOptions): void;
|
|
4
|
+
export declare function createSchema(state: RootState, tableIds?: readonly string[], { statements, written, logicalNameAsComment }?: CreateSchemaOptions): string;
|
|
5
|
+
export declare function formatTable(state: RootState, { buffer, table, statements, logicalNameAsComment }: FormatTableOptions): void;
|
|
6
6
|
export declare function formatIndex({ collections, settings: { bracketType } }: RootState, { buffer, index, indexNames }: FormatIndexOptions): void;
|
|
7
7
|
/** USE SCHEMA, after CREATE SCHEMA IF NOT EXISTS for createAndUse. */
|
|
8
8
|
export declare function formatHeader({ settings: { bracketType } }: RootState, header: Exclude<SchemaSQLHeader, 'none'>, name: string): string;
|
|
@@ -19,6 +19,8 @@ export type SchemaSQLOptions = {
|
|
|
19
19
|
statements?: SchemaSQLStatements;
|
|
20
20
|
/** none when left out. */
|
|
21
21
|
header?: SchemaSQLHeader;
|
|
22
|
+
/** Whether a table or column with an empty comment writes its logical name as one; off when left out. */
|
|
23
|
+
logicalNameAsComment?: boolean;
|
|
22
24
|
};
|
|
23
25
|
/** The name a header may write: a plain identifier, so no vendor needs it escaped. */
|
|
24
26
|
export declare const HEADER_NAME_PATTERN: RegExp;
|
|
@@ -15,6 +15,8 @@ export interface CreateSchemaOptions {
|
|
|
15
15
|
/** Already what the database writes (resolveSchemaSQLOptions); create when left out. */
|
|
16
16
|
statements?: SchemaSQLStatements;
|
|
17
17
|
written?: WrittenObjects;
|
|
18
|
+
/** Whether an empty comment writes the logical name (commentToWrite); off when left out. */
|
|
19
|
+
logicalNameAsComment?: boolean;
|
|
18
20
|
}
|
|
19
21
|
export interface FormatTableOptions {
|
|
20
22
|
buffer: string[];
|
|
@@ -22,12 +24,16 @@ export interface FormatTableOptions {
|
|
|
22
24
|
/** create when left out. */
|
|
23
25
|
statements?: SchemaSQLStatements;
|
|
24
26
|
written?: WrittenObjects;
|
|
27
|
+
/** off when left out. */
|
|
28
|
+
logicalNameAsComment?: boolean;
|
|
25
29
|
}
|
|
26
30
|
export interface FormatColumnOptions {
|
|
27
31
|
buffer: string[];
|
|
28
32
|
column: Column;
|
|
29
33
|
isComma: boolean;
|
|
30
34
|
spaceSize: MaxLength;
|
|
35
|
+
/** off when left out. */
|
|
36
|
+
logicalNameAsComment?: boolean;
|
|
31
37
|
}
|
|
32
38
|
export interface FormatRelationOptions {
|
|
33
39
|
buffer: string[];
|
|
@@ -48,7 +54,15 @@ export interface FormatIndexOptions {
|
|
|
48
54
|
export interface FormatCommentOptions {
|
|
49
55
|
buffer: string[];
|
|
50
56
|
table: Table;
|
|
57
|
+
/** off when left out. */
|
|
58
|
+
logicalNameAsComment?: boolean;
|
|
51
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The comment the DDL writes on a table or column: its own while not blank,
|
|
62
|
+
* else its logical name while logicalNameAsComment is on and that is not
|
|
63
|
+
* blank, else the empty string, which writes no comment.
|
|
64
|
+
*/
|
|
65
|
+
export declare function commentToWrite({ comment, logicalName }: Pick<Table | Column, 'comment' | 'logicalName'>, logicalNameAsComment?: boolean): string;
|
|
52
66
|
export interface Name {
|
|
53
67
|
id: string;
|
|
54
68
|
name: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
|
-
import { Settings } from '../../internal-types';
|
|
3
2
|
import { ClipboardIndex, ClipboardPayload, ClipboardRelationship } from '.';
|
|
4
3
|
export declare function tableCopyToText(state: RootState): string;
|
|
5
4
|
export declare function tableCopyToHtml(state: RootState): string;
|
|
@@ -17,7 +16,7 @@ export declare function toClipboardRelationships({ doc, collections }: Pick<Root
|
|
|
17
16
|
*/
|
|
18
17
|
export declare function toClipboardIndexes({ doc, collections }: Pick<RootState, 'doc' | 'collections'>, tableIds: string[]): ClipboardIndex[];
|
|
19
18
|
export declare function columnsCopyToPayload({ editor: { focusTable }, collections, }: RootState): ClipboardPayload | null;
|
|
20
|
-
export declare function entitiesToTsv(payload: ClipboardPayload,
|
|
21
|
-
export declare function entitiesToHtmlTable(payload: ClipboardPayload,
|
|
19
|
+
export declare function entitiesToTsv(payload: ClipboardPayload, state: RootState): string;
|
|
20
|
+
export declare function entitiesToHtmlTable(payload: ClipboardPayload, state: RootState): string;
|
|
22
21
|
export declare function payloadToHtml(payload: ClipboardPayload, tableHtml: string): string;
|
|
23
22
|
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
1
2
|
import { ValuesType } from '../../internal-types';
|
|
2
3
|
export * from './payload';
|
|
3
4
|
export * from './placement';
|
|
@@ -11,8 +12,15 @@ export declare const CellType: {
|
|
|
11
12
|
readonly columnAutoIncrement: "columnAutoIncrement";
|
|
12
13
|
readonly columnDefault: "columnDefault";
|
|
13
14
|
readonly columnComment: "columnComment";
|
|
15
|
+
readonly columnLogicalName: "columnLogicalName";
|
|
16
|
+
readonly columnDomain: "columnDomain";
|
|
14
17
|
};
|
|
15
18
|
export type CellType = ValuesType<typeof CellType>;
|
|
16
19
|
export declare const hasCellType: (value: string) => boolean;
|
|
17
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The column types of a row's cells in their order, as the name view lays
|
|
22
|
+
* them out: the logical view's name cell holds the logical name. A column
|
|
23
|
+
* type this release does not know has no cell.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getShowColumnOrder(show: number, columnOrder: number[], nameViewMode: RootState['settings']['nameViewMode']): number[];
|
|
18
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootState } from '../../engine/state';
|
|
2
2
|
import { Column } from '../../internal-types';
|
|
3
3
|
import { ClipboardPayload, ParseResult } from './payload';
|
|
4
|
-
export declare function tablePasteFromTextToColumns(
|
|
5
|
-
export declare function tablePasteFromHtmlToColumns(
|
|
4
|
+
export declare function tablePasteFromTextToColumns(state: RootState, text: string): Column[];
|
|
5
|
+
export declare function tablePasteFromHtmlToColumns(state: RootState, html: string): Column[];
|
|
6
6
|
export declare function readClipboardPayload(dataTransfer: DataTransfer): ParseResult;
|
|
7
7
|
export declare function payloadToColumns({ columns }: ClipboardPayload): Column[];
|
|
8
8
|
//# sourceMappingURL=paste.d.ts.map
|
|
@@ -10,11 +10,17 @@ export declare const PayloadKind: {
|
|
|
10
10
|
readonly columns: "columns";
|
|
11
11
|
};
|
|
12
12
|
export type PayloadKind = ValuesType<typeof PayloadKind>;
|
|
13
|
+
/**
|
|
14
|
+
* A copied table. Its logical name and derived flag, like a column's logical
|
|
15
|
+
* name and domain, are absent from a copy made before the dictionaries.
|
|
16
|
+
*/
|
|
13
17
|
export type ClipboardTable = {
|
|
14
18
|
sourceId: string;
|
|
15
19
|
name: string;
|
|
20
|
+
logicalName?: string;
|
|
16
21
|
comment: string;
|
|
17
22
|
columnIds: string[];
|
|
23
|
+
nameDerived?: boolean;
|
|
18
24
|
ui: {
|
|
19
25
|
x: number;
|
|
20
26
|
y: number;
|
|
@@ -32,6 +38,12 @@ export type ClipboardColumn = {
|
|
|
32
38
|
dataType: string;
|
|
33
39
|
default: string;
|
|
34
40
|
options: number;
|
|
41
|
+
logicalName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The domain the column linked where it was copied, which a paste keeps
|
|
44
|
+
* only while the document it lands in lists it.
|
|
45
|
+
*/
|
|
46
|
+
domainId?: string;
|
|
35
47
|
ui: {
|
|
36
48
|
keys: number;
|
|
37
49
|
widthName: number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RootState } from '../engine/state';
|
|
2
|
+
/** The overlays that take the whole canvas over, each standing a scene of its own there. */
|
|
3
|
+
export declare const TAKEOVERS: ("automaticTablePlacement" | "diffViewer" | "timeTravel")[];
|
|
4
|
+
/** Whether an overlay that takes the canvas over is up, which keeps Find and Replace and the Explorer shut. */
|
|
5
|
+
export declare const isTakenOver: ({ editor }: RootState) => boolean;
|
|
6
|
+
//# sourceMappingURL=takeover.d.ts.map
|
|
@@ -12,6 +12,7 @@ export declare const hasLanguage: (value: number) => boolean;
|
|
|
12
12
|
export declare const hasColumnType: (value: number) => boolean;
|
|
13
13
|
export declare const hasDatabaseVendor: (value: string) => boolean;
|
|
14
14
|
export declare const hasCanvasType: (value: string) => boolean;
|
|
15
|
+
export declare const hasNameViewMode: (value: string) => boolean;
|
|
15
16
|
export declare function textInRange(width: number): number;
|
|
16
17
|
export declare function toSafeString(value: any): string;
|
|
17
18
|
export declare function isHighLevelTable(zoomLevel: number): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** How many rows a virtual list draws past each edge of its view, so a short scroll finds them drawn already. */
|
|
2
|
+
export declare const VIRTUAL_OVERSCAN = 8;
|
|
3
|
+
/** The rows a list renders, first to last, both included; none while last is below first. */
|
|
4
|
+
export type VirtualRange = {
|
|
5
|
+
first: number;
|
|
6
|
+
last: number;
|
|
7
|
+
};
|
|
8
|
+
/** The rows the screen shows at a scroll offset, with the overscan either side. */
|
|
9
|
+
export declare function visibleRange(count: number, scrollTop: number, height: number, rowHeight: number): VirtualRange;
|
|
10
|
+
/**
|
|
11
|
+
* The scroll offset nearest the one given that shows a row whole: the same
|
|
12
|
+
* while it shows, else the row's top or bottom at the edge it is past.
|
|
13
|
+
*/
|
|
14
|
+
export declare function offsetToShow(index: number, scrollTop: number, height: number, rowHeight: number): number;
|
|
15
|
+
//# sourceMappingURL=virtualRange.d.ts.map
|