@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
import {
|
|
2
|
+
import { ScenePointerEvent } from '../../sceneTokens';
|
|
3
3
|
import { DiffPaths } from '../../../diff-viewer/diff';
|
|
4
4
|
import { Column } from '../../../../../internal-types';
|
|
5
5
|
import { GeometrySource } from '../../../../../utils/draw-relationship/geometrySource';
|
|
@@ -22,9 +22,9 @@ export type ColumnProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
diffPaths?: DiffPaths | null;
|
|
24
24
|
/**
|
|
25
|
-
* How far the light has come up on the card this row is drawn in, which
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* How far the light has come up on the card this row is drawn in, which a
|
|
26
|
+
* related row's tint is drawn at, so it comes up with the card's border and
|
|
27
|
+
* glow over the one span of time. A document row reads none of it.
|
|
28
28
|
*/
|
|
29
29
|
litAlpha?: number;
|
|
30
30
|
/**
|
|
@@ -45,6 +45,10 @@ export type ColumnProps = {
|
|
|
45
45
|
widthDataType: number;
|
|
46
46
|
widthDefault: number;
|
|
47
47
|
widthComment: number;
|
|
48
|
+
/** The logical name's own cell, 0 while the name view lays out none. */
|
|
49
|
+
widthLogicalName?: number;
|
|
50
|
+
/** The domain's own cell, 0 while its show bit is off. */
|
|
51
|
+
widthDomain?: number;
|
|
48
52
|
/**
|
|
49
53
|
* The room the table keeps for alternate key marks after the last cell, 0
|
|
50
54
|
* while it draws none; the same for every row, so the marks stay in line.
|
|
@@ -52,6 +56,11 @@ export type ColumnProps = {
|
|
|
52
56
|
widthAlternateKey?: number;
|
|
53
57
|
/** The mark this row carries in that room, AK1.2 or several comma joined. */
|
|
54
58
|
alternateKey?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The name and type cells' marks, under whichever focus the name view gives
|
|
61
|
+
* them: the logical view's name cell takes the logical name's, and its type
|
|
62
|
+
* cell the domain's while the domain has no cell of its own.
|
|
63
|
+
*/
|
|
55
64
|
focusName: boolean;
|
|
56
65
|
focusDataType: boolean;
|
|
57
66
|
focusNotNull: boolean;
|
|
@@ -59,6 +68,9 @@ export type ColumnProps = {
|
|
|
59
68
|
focusComment: boolean;
|
|
60
69
|
focusUnique: boolean;
|
|
61
70
|
focusAutoIncrement: boolean;
|
|
71
|
+
/** The marks of the logical name and domain cells, which a row lays out in some views alone. */
|
|
72
|
+
focusLogicalName?: boolean;
|
|
73
|
+
focusDomain?: boolean;
|
|
62
74
|
sharedFocusName: string | null;
|
|
63
75
|
sharedFocusDataType: string | null;
|
|
64
76
|
sharedFocusNotNull: string | null;
|
|
@@ -66,22 +78,37 @@ export type ColumnProps = {
|
|
|
66
78
|
sharedFocusComment: string | null;
|
|
67
79
|
sharedFocusUnique: string | null;
|
|
68
80
|
sharedFocusAutoIncrement: string | null;
|
|
81
|
+
sharedFocusLogicalName?: string | null;
|
|
82
|
+
sharedFocusDomain?: string | null;
|
|
69
83
|
editName: boolean;
|
|
70
84
|
editDataType: boolean;
|
|
71
85
|
editDefault: boolean;
|
|
72
86
|
editComment: boolean;
|
|
87
|
+
editLogicalName?: boolean;
|
|
88
|
+
editDomain?: boolean;
|
|
73
89
|
hovered?: boolean;
|
|
74
90
|
/** The placeholder row for a column dragged in from another table. */
|
|
75
91
|
ghost?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the name cells write what the dictionaries' checks find in their
|
|
94
|
+
* colours, which the table decides for every row it draws.
|
|
95
|
+
*/
|
|
96
|
+
checkMarks?: boolean;
|
|
76
97
|
/** Drawn inside a copy of the table, which owns none of its ids. */
|
|
77
98
|
preview?: boolean;
|
|
78
99
|
editorFocused?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the row carries the handle a column drag starts from, outside the
|
|
102
|
+
* table's left edge. The table gives it to its focused row alone, and only
|
|
103
|
+
* where a reader can reorder: the document, unlocked, never a copy.
|
|
104
|
+
*/
|
|
105
|
+
dragHandle?: boolean;
|
|
79
106
|
/**
|
|
80
107
|
* The one pair of callbacks the scene keeps. A drop lands between siblings,
|
|
81
108
|
* so the table that owns the order is the only thing that can judge one, and
|
|
82
109
|
* the row can only say that a drag of it started and that it ended.
|
|
83
110
|
*/
|
|
84
|
-
onDragstart?: (columnId: string, event:
|
|
111
|
+
onDragstart?: (columnId: string, event: ScenePointerEvent) => void;
|
|
85
112
|
onDragend?: () => void;
|
|
86
113
|
};
|
|
87
114
|
declare const Column: FC<ColumnProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DictionaryCheckField, DictionaryCheckLevel } from '../../../../engine/modules/dictionary/checks';
|
|
2
|
+
import { RxStore } from '../../../../engine/rx-store';
|
|
3
|
+
import { Column, Table } from '../../../../internal-types';
|
|
4
|
+
import { Theme } from '../../../../themes/tokens';
|
|
5
|
+
/** The colour a check level writes a cell's text in: red for an error, amber for a warning. */
|
|
6
|
+
export declare const dictionaryMarkFill: (theme: Theme, level: DictionaryCheckLevel | null) => string | null;
|
|
7
|
+
/**
|
|
8
|
+
* The mark while it reads at 4.5:1 on the header fill under it, else null, so
|
|
9
|
+
* the header's own black or white takes its place: a group's colour is the
|
|
10
|
+
* reader's pick, and a mark of a near hue would hide the name it marks.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readableMarkFill(mark: string | null, background: string): string | null;
|
|
13
|
+
/**
|
|
14
|
+
* The colour a header cell's text takes for what the checks find in the field
|
|
15
|
+
* it draws, null for nothing found. Empty dictionaries find nothing.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const fill = tableMarkFill(store, theme, table, 'logicalName');
|
|
19
|
+
*/
|
|
20
|
+
export declare function tableMarkFill(store: RxStore, theme: Theme, table: Table, field: DictionaryCheckField): string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The colour a row cell's text takes for what the checks find in the field it
|
|
23
|
+
* draws, null for nothing found, as a header cell's is.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const fill = columnMarkFill(store, theme, column, 'name');
|
|
27
|
+
*/
|
|
28
|
+
export declare function columnMarkFill(store: RxStore, theme: Theme, column: Column, field: DictionaryCheckField): string | null;
|
|
29
|
+
//# sourceMappingURL=dictionaryMarks.d.ts.map
|
|
@@ -4,5 +4,6 @@ export declare function useFocusTable(ctx: Ctx, tableId: string): {
|
|
|
4
4
|
hasFocus: (focusType: FocusType, columnId?: string) => boolean;
|
|
5
5
|
hasEdit: (focusType: FocusType, columnId?: string) => boolean;
|
|
6
6
|
hasSelectColumn: (columnId: string) => boolean;
|
|
7
|
+
hasFocusColumn: (columnId: string) => boolean;
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=useFocusTable.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from '../../../appContext';
|
|
3
|
+
import { DiffEntries } from '../../../../utils/diff';
|
|
4
|
+
export type DiffTreeProps = {
|
|
5
|
+
prevApp: AppContext;
|
|
6
|
+
app: AppContext;
|
|
7
|
+
entries: DiffEntries;
|
|
8
|
+
/** The width the diff gives the tree, which a drag on its edge asks to change. */
|
|
9
|
+
width: number;
|
|
10
|
+
onResize: (width: number) => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* What a diff found, on the tree the Explorer draws: the changed entities and
|
|
14
|
+
* the tables they are in, each named in the colour of what happened to it and
|
|
15
|
+
* ending on its status letter. A row takes either pane to its entity.
|
|
16
|
+
*/
|
|
17
|
+
declare const DiffTree: FC<DiffTreeProps>;
|
|
18
|
+
export default DiffTree;
|
|
19
|
+
//# sourceMappingURL=DiffTree.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
|
+
export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
export declare const filter: import('@dineug/r-html').CSSTemplateLiterals;
|
|
4
|
+
export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
export declare const empty: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
|
+
export declare const sash: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
export declare const rowIcon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
export declare const name: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
export declare const after: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
|
+
export declare const count: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
+
export declare const status: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
|
+
export declare const visuallyHidden: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
//# sourceMappingURL=DiffTree.styles.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ErdTarget } from '../../goToErdTarget';
|
|
2
|
+
import { TreeNode } from '../../../primitives/tree/treeModel';
|
|
3
|
+
import { I18n } from '../../../../i18n/translate';
|
|
4
|
+
import { DiffEntries, DiffEntry, DiffStatus } from '../../../../utils/diff';
|
|
5
|
+
export type DiffFolder = 'tables' | 'tableGroups' | 'memos' | 'columns' | 'indexes' | 'foreignKeys';
|
|
6
|
+
/** What one row of the diff tree stands for: a folder, or an entry with the table it is in. */
|
|
7
|
+
export type DiffTreeItem = {
|
|
8
|
+
kind: 'folder';
|
|
9
|
+
folder: DiffFolder;
|
|
10
|
+
count: number;
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'entry';
|
|
13
|
+
entry: DiffEntry;
|
|
14
|
+
table: DiffEntry | null;
|
|
15
|
+
};
|
|
16
|
+
export type DiffTreeNode = TreeNode<DiffTreeItem>;
|
|
17
|
+
export type DiffTree = {
|
|
18
|
+
roots: DiffTreeNode[];
|
|
19
|
+
/** Every row with children, which the tree shows open unless folded. */
|
|
20
|
+
branchIds: string[];
|
|
21
|
+
};
|
|
22
|
+
/** A row's id: the current entity's, or the saved one's where it is gone. */
|
|
23
|
+
export declare const entryNodeId: (entry: DiffEntry) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether a name filter keeps an entry: its current name or the saved one,
|
|
26
|
+
* or either logical name, holds what is typed, in any case and in any view.
|
|
27
|
+
*/
|
|
28
|
+
export declare function matchesFilter(entry: DiffEntry, filter: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The tree a diff lists: Tables, Table Groups and Memos as the Explorer has
|
|
31
|
+
* them, holding what changed and the tables what changed is in, and only what
|
|
32
|
+
* the name filter keeps. Every row with children shows open to begin with.
|
|
33
|
+
*/
|
|
34
|
+
export declare function buildDiffTree(entries: DiffEntries, filter?: string): DiffTree;
|
|
35
|
+
/** The letter a row ends on: its status, or a tilde for a row listed only for what it holds. */
|
|
36
|
+
export declare function statusLetter(item: DiffTreeItem): string;
|
|
37
|
+
export declare const statusLabel: (status: DiffStatus | null, { t }: Pick<I18n, "t">) => string;
|
|
38
|
+
/** How long a text a tooltip line quotes may run before it is cut. */
|
|
39
|
+
export declare const QUOTE_LIMIT = 40;
|
|
40
|
+
/** The tooltip of a row: what it is, then each change as before → after, one a line. */
|
|
41
|
+
export declare function describeEntry(entry: DiffEntry, i18n: Pick<I18n, 't'>): string;
|
|
42
|
+
export type DiffTargets = {
|
|
43
|
+
prev: ErdTarget | null;
|
|
44
|
+
next: ErdTarget | null;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Where a row takes each pane: an added entity the current pane alone, a
|
|
48
|
+
* removed one the saved pane alone, and anything both hold both; a column or
|
|
49
|
+
* an index its table, and a folder neither.
|
|
50
|
+
*/
|
|
51
|
+
export declare function diffTargets(item: DiffTreeItem): DiffTargets;
|
|
52
|
+
//# sourceMappingURL=diffTreeModel.d.ts.map
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { RootState } from '../../../engine/state';
|
|
2
|
-
import { Column, Table } from '../../../internal-types';
|
|
3
1
|
import { Theme } from '../../../themes/tokens';
|
|
4
|
-
/**
|
|
5
|
-
* Map<uuid, [tag, Map<path, diff>]>
|
|
6
|
-
*/
|
|
7
|
-
export type DiffMap = Map<string, DiffTuple>;
|
|
8
|
-
/** Map<path, diff> for one entity, each path spelled as the FocusType of the cell showing it. */
|
|
9
|
-
export type DiffPaths = Map<string, number>;
|
|
10
|
-
type DiffTuple = [string, DiffPaths];
|
|
11
|
-
type NameToTableMap = Map<string, {
|
|
12
|
-
table: Table;
|
|
13
|
-
nameToColumnMap: Map<string, Column>;
|
|
14
|
-
}>;
|
|
2
|
+
/** The kinds of change a diff pane marks, one bit each. */
|
|
15
3
|
export declare const Diff: {
|
|
16
4
|
readonly insert: 1;
|
|
17
5
|
readonly delete: 2;
|
|
6
|
+
readonly modify: 4;
|
|
7
|
+
readonly rename: 8;
|
|
18
8
|
};
|
|
19
|
-
export declare function diffState(prevState: RootState, state: RootState): [DiffMap, DiffMap];
|
|
20
|
-
export declare function getNameToTableMap({ doc: { tableIds }, collections, }: RootState): NameToTableMap;
|
|
21
9
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
10
|
+
* Map<path, diff> for one entity: a cell's path is the FocusType of the cell
|
|
11
|
+
* showing it, and ENTITY_PATH stands for the entity as a whole.
|
|
12
|
+
*/
|
|
13
|
+
export type DiffPaths = Map<string, number>;
|
|
14
|
+
/** Map<id, paths> for the entities one pane marks. */
|
|
15
|
+
export type DiffMap = Map<string, DiffPaths>;
|
|
16
|
+
/** An entity added or removed, or one only moved, resized, recoloured or regrouped. */
|
|
17
|
+
export declare const ENTITY_PATH = "entity";
|
|
18
|
+
export declare const MEMO_VALUE_PATH = "memoValue";
|
|
19
|
+
/** A column's primary key, which its key icon shows. */
|
|
20
|
+
export declare const COLUMN_KEY_PATH = "columnPrimaryKey";
|
|
21
|
+
export declare const TABLE_GROUP_NAME_PATH = "tableGroupName";
|
|
22
|
+
/**
|
|
23
|
+
* The colour a cell's text takes in a diff pane: its own change's, else, in a
|
|
24
|
+
* row, the row's as a whole; null where neither changed.
|
|
24
25
|
*/
|
|
25
|
-
export declare function
|
|
26
|
-
|
|
26
|
+
export declare function diffTextColor(theme: Theme, paths: DiffPaths | null | undefined, path: string, row?: boolean): string | null;
|
|
27
|
+
/** The outline an entity takes in a diff pane, or the colour of a line; null for none. */
|
|
28
|
+
export declare function diffOutline(theme: Theme, paths: DiffPaths | null | undefined): string | null;
|
|
27
29
|
//# sourceMappingURL=diff.d.ts.map
|
|
@@ -18,8 +18,6 @@ export type PlacePillInput = {
|
|
|
18
18
|
/** The table's box on screen. */
|
|
19
19
|
card: Rect;
|
|
20
20
|
viewport: Viewport;
|
|
21
|
-
/** How far in from the left edge Find and Replace hides the canvas. */
|
|
22
|
-
covered: number;
|
|
23
21
|
/** The chrome drawn over the canvas that the buttons keep clear of. */
|
|
24
22
|
obstacles: readonly Rect[];
|
|
25
23
|
pill: PillSize;
|
|
@@ -34,7 +32,7 @@ export declare function getVisibleSpan(card: Rect, viewport: Viewport): {
|
|
|
34
32
|
* top of its shown part and inside the canvas. Off the minimap and the floating
|
|
35
33
|
* toolbar by moving below or above it, then by the other side, else put.
|
|
36
34
|
*/
|
|
37
|
-
export declare function placePill({ card, viewport,
|
|
35
|
+
export declare function placePill({ card, viewport, obstacles, pill, }: PlacePillInput): PillPlacement;
|
|
38
36
|
/**
|
|
39
37
|
* The clear strip from a little past the buttons to the table, as tall as both,
|
|
40
38
|
* which takes a press that would reach a neighbour or the start table under it,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { NameViewMode } from '../../../../constants/schema';
|
|
3
|
+
import { I18n, PlainMessageKey } from '../../../../i18n/translate';
|
|
4
|
+
import { ValuesType } from '../../../../internal-types';
|
|
5
|
+
type Menu = {
|
|
6
|
+
labelKey: PlainMessageKey;
|
|
7
|
+
value: ValuesType<typeof NameViewMode>;
|
|
8
|
+
};
|
|
9
|
+
/** The three name views, by the name a reader picks each one by. */
|
|
10
|
+
export declare const menus: ReadonlyArray<Menu>;
|
|
11
|
+
/**
|
|
12
|
+
* The Name View rows, the view in force checked. A pick switches the reader's
|
|
13
|
+
* own view, and the document's once its lock is off in an editor that is not
|
|
14
|
+
* readonly.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createNameViewMenus({ store }: AppContext, i18n?: Pick<I18n, 't'>): {
|
|
17
|
+
checked: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
}[];
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=nameViewMenus.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
export type FloatingToolbarProps = {
|
|
2
|
+
export type FloatingToolbarProps = {
|
|
3
|
+
/** The editor's readonly, under which the bar offers nothing to add. */
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
|
-
* The bar over the bottom of the canvas: which of the two a press means,
|
|
5
|
-
* zoom, the notation the next relationship is drawn in, zen mode,
|
|
6
|
-
* way the content lies once the screen holds none. It is the one surface zen mode leaves standing.
|
|
7
|
+
* The bar over the bottom of the canvas: which of the two a press means, what
|
|
8
|
+
* to add, the zoom, the notation the next relationship is drawn in, the name view, zen mode,
|
|
9
|
+
* and which way the content lies once the screen holds none. It is the one surface zen mode leaves standing.
|
|
7
10
|
*/
|
|
8
11
|
declare const FloatingToolbar: FC<FloatingToolbarProps>;
|
|
9
12
|
export default FloatingToolbar;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
+
import { Ctx } from '../../../internal-types';
|
|
3
|
+
export type NameViewDropdown = {
|
|
4
|
+
/** The button in the bar, which names the view in force. */
|
|
5
|
+
trigger: () => DOMTemplateLiterals;
|
|
6
|
+
/** The menu over it, drawn beside the bar, whose transform would move it. */
|
|
7
|
+
menu: () => DOMTemplateLiterals | null;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The Name View list a floating bar offers over itself, the view in force
|
|
12
|
+
* checked. A pick switches the reader's own view, and the document's once its
|
|
13
|
+
* lock is off, as the canvas menu's does (toNameViewModeAction).
|
|
14
|
+
*/
|
|
15
|
+
export declare function useNameViewDropdown(ctx: Ctx): NameViewDropdown;
|
|
16
|
+
//# sourceMappingURL=nameViewDropdown.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const trigger: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
|
+
export declare const label: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
export declare const hidden: import('@dineug/r-html').CSSTemplateLiterals;
|
|
4
|
+
export declare const menu: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
//# sourceMappingURL=nameViewDropdown.styles.d.ts.map
|
|
@@ -10,7 +10,7 @@ export type TextRange = {
|
|
|
10
10
|
start: number;
|
|
11
11
|
end: number;
|
|
12
12
|
};
|
|
13
|
-
/** What a jump to the ERD lands on: a table, one cell of a column, or a
|
|
13
|
+
/** What a jump to the ERD lands on: a table, one cell of a column, a memo, a relationship or a table group. */
|
|
14
14
|
export type ErdTarget = {
|
|
15
15
|
kind: 'table';
|
|
16
16
|
tableId: string;
|
|
@@ -25,19 +25,42 @@ export type ErdTarget = {
|
|
|
25
25
|
} | {
|
|
26
26
|
kind: 'memo';
|
|
27
27
|
memoId: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'relationship';
|
|
30
|
+
relationshipId: string;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'tableGroup';
|
|
33
|
+
tableGroupId: string;
|
|
28
34
|
};
|
|
29
|
-
|
|
35
|
+
/** How far in from the edge of the screen a jump keeps what it shows of a rect too long for it. */
|
|
36
|
+
export declare const EDGE_MARGIN = 40;
|
|
37
|
+
export type Span = {
|
|
30
38
|
start: number;
|
|
31
39
|
end: number;
|
|
32
40
|
};
|
|
33
41
|
/**
|
|
34
|
-
* The
|
|
35
|
-
*
|
|
36
|
-
*
|
|
42
|
+
* The one jump rule every go-to shares: each axis judged on its own, the one
|
|
43
|
+
* that is fine left where it is. Where the rect would start on screen, or null
|
|
44
|
+
* when neither start moves by more than half a pixel, as on a press repeated.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* planJump({ width: 800, height: 600 }, toScreenSpans(state, rect), focusSpans);
|
|
48
|
+
*/
|
|
49
|
+
export declare function planJump(viewport: {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
}, [rectX, rectY]: [Span, Span], [focusX, focusY]: [Span, Span]): {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
} | null;
|
|
56
|
+
/**
|
|
57
|
+
* The scroll the jump rule asks for to bring the rect into view at the
|
|
58
|
+
* document's own zoom, none when it asks for none, since that scroll is the
|
|
59
|
+
* one change of a jump the host hears of.
|
|
37
60
|
*
|
|
38
61
|
* @param focus The part of a rect too big for the screen that has to show.
|
|
39
62
|
*/
|
|
40
|
-
export declare function scrollIntoView(state: RootState, rect: Rect,
|
|
63
|
+
export declare function scrollIntoView(state: RootState, rect: Rect, focus?: Rect): Generator<import('@dineug/r-html').AnyAction<{
|
|
41
64
|
originX: number;
|
|
42
65
|
originY: number;
|
|
43
66
|
}>, void, unknown>;
|
|
@@ -48,7 +71,7 @@ export declare function scrollIntoView(state: RootState, rect: Rect, covered?: n
|
|
|
48
71
|
*
|
|
49
72
|
* @param range Where the text a jump is for stands in that cell, in from its left edge.
|
|
50
73
|
*/
|
|
51
|
-
export declare function scrollTableIntoView(state: RootState, table: Table,
|
|
74
|
+
export declare function scrollTableIntoView(state: RootState, table: Table, focusType?: FocusType, range?: Span): Generator<import('@dineug/r-html').AnyAction<{
|
|
52
75
|
originX: number;
|
|
53
76
|
originY: number;
|
|
54
77
|
}>, void, unknown>;
|
|
@@ -59,13 +82,16 @@ export declare function scrollTableIntoView(state: RootState, table: Table, cove
|
|
|
59
82
|
*/
|
|
60
83
|
export declare const selectTableAloneAction$: (tableId: string) => GeneratorAction;
|
|
61
84
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
85
|
+
* Whether a jump to the relationship shows it, as showErdTargetAction$ does
|
|
86
|
+
* only while it and both its tables stand; a host lights none it did not show.
|
|
87
|
+
*/
|
|
88
|
+
export declare function isRelationshipShown(state: RootState, relationshipId: string): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Stands the reader on a table, a column cell, a memo, a relationship or a
|
|
91
|
+
* table group by the one jump rule, with the focus ring on the cell asked for.
|
|
92
|
+
* A row too wide goes by the ringed cell, a cell too wide by the range found.
|
|
67
93
|
*/
|
|
68
|
-
export declare const showErdTargetAction$: (target: ErdTarget
|
|
94
|
+
export declare const showErdTargetAction$: (target: ErdTarget) => GeneratorAction;
|
|
69
95
|
/**
|
|
70
96
|
* Takes the ERD tab when another is up, in a dispatch of its own: a batch is
|
|
71
97
|
* classified by the state before it, so a scroll travelling with the tab
|
|
@@ -74,12 +100,10 @@ export declare const showErdTargetAction$: (target: ErdTarget, covered?: number)
|
|
|
74
100
|
export declare function showErdTab(store: RxStore): void;
|
|
75
101
|
/**
|
|
76
102
|
* A jump from outside the canvas, a search result say, to anything it holds,
|
|
77
|
-
* from whichever tab is up
|
|
78
|
-
* once the ERD tab is up, so a panel that tab draws again counts too.
|
|
103
|
+
* from whichever tab is up, measured on the canvas once the ERD tab is up.
|
|
79
104
|
*
|
|
80
105
|
* @example
|
|
81
106
|
* goToErdTarget(store, { kind: 'memo', memoId: 'note' });
|
|
82
107
|
*/
|
|
83
108
|
export declare function goToErdTarget(store: RxStore, target: ErdTarget): void;
|
|
84
|
-
export {};
|
|
85
109
|
//# sourceMappingURL=goToErdTarget.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
|
+
/**
|
|
3
|
+
* The switch that shows a store opened from the file in the name view its
|
|
4
|
+
* reader is looking at, since the file holds the view its lock keeps. It
|
|
5
|
+
* changes that store's screen alone, as a readonly reader's switch does.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* store.dispatchSync(initialLoadJsonAction$(json), readerNameViewAction(store.state, reader));
|
|
9
|
+
*/
|
|
10
|
+
export declare const readerNameViewAction: (opened: RootState, reader: RootState) => import('@dineug/r-html').AnyAction<{
|
|
11
|
+
value: import('../../internal-types').ValuesType<typeof import('../../constants/schema').NameViewMode>;
|
|
12
|
+
shared: boolean;
|
|
13
|
+
editorId: string;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=readerNameView.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Lights one relationship in the editor, and puts out the one it lit before. */
|
|
2
|
+
export declare function setRelationshipHighlight(editorId: string, relationshipId: string): void;
|
|
3
|
+
/** Puts out whatever relationship the editor has lit. */
|
|
4
|
+
export declare function clearRelationshipHighlight(editorId: string): void;
|
|
5
|
+
/** Whether a jump has lit the relationship, read by its connector as it reads a hover. */
|
|
6
|
+
export declare function isRelationshipHighlighted(editorId: string, relationshipId: string): boolean;
|
|
7
|
+
/** Forgets an editor that went, whose id nothing reads again. */
|
|
8
|
+
export declare function dropRelationshipHighlight(editorId: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Test-only probe: the flags the reactive record holds and the editors it
|
|
11
|
+
* remembers, which a read of an editor never lit must not grow. Nothing
|
|
12
|
+
* shipping calls it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function countRelationshipHighlights(): {
|
|
15
|
+
flags: number;
|
|
16
|
+
editors: number;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=relationshipHighlight.d.ts.map
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
* stands across the canvas is set inline, from the button it was measured at.
|
|
5
5
|
*/
|
|
6
6
|
export declare const up: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
/**
|
|
8
|
+
* A hint whose label has no room beside its arrow: the label hangs under the
|
|
9
|
+
* arrow's tail, clear of a label beside the next arrow.
|
|
10
|
+
*/
|
|
11
|
+
export declare const stacked: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
12
|
/**
|
|
8
13
|
* The hint over the floating toolbar, centred over it as the toolbar is, its
|
|
9
14
|
* arrow's tip clear of the bar's top edge.
|
|
@@ -16,6 +16,8 @@ export declare const WELCOME_MENU_MIN_HEIGHT = 294;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const WELCOME_HINTS_MIN_WIDTH = 720;
|
|
18
18
|
export declare const WELCOME_HINTS_MIN_HEIGHT = 562;
|
|
19
|
+
/** The widest a hint's label runs before it wraps, as WelcomeHints.styles.ts sets it. */
|
|
20
|
+
export declare const HINT_LABEL_MAX_WIDTH = 220;
|
|
19
21
|
/** The narrowest canvas whose menu rows still show their chords. */
|
|
20
22
|
export declare const WELCOME_KBD_MIN_WIDTH = 480;
|
|
21
23
|
/** The arrow that climbs to a toolbar button: its box, and its tip near the top right. */
|
|
@@ -75,13 +77,15 @@ export type HintSide = 'before' | 'after';
|
|
|
75
77
|
*/
|
|
76
78
|
export type HintPlacement = {
|
|
77
79
|
labelFirst: boolean;
|
|
80
|
+
/** The label hangs under the arrow's tail, as the side it names has no room for it. */
|
|
81
|
+
stacked: boolean;
|
|
78
82
|
left?: number;
|
|
79
83
|
right?: number;
|
|
80
84
|
};
|
|
81
85
|
/**
|
|
82
|
-
* Places a hint so
|
|
83
|
-
*
|
|
84
|
-
*
|
|
86
|
+
* Places a hint so its arrow's tip meets the anchor, the label on the side it
|
|
87
|
+
* names (before: left to right, left; right to left, right), or under the
|
|
88
|
+
* arrow where that side has no room for a whole label, as beside the Explorer.
|
|
85
89
|
*/
|
|
86
90
|
export declare function hintPlacement(anchorX: number, rootWidth: number, side: HintSide, dir: TextDirection): HintPlacement;
|
|
87
91
|
//# sourceMappingURL=welcomeLayout.d.ts.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
2
|
export declare const scope: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
/** The ERD tab's row: the Explorer, when shown, and the canvas beside it. */
|
|
4
|
+
export declare const erdRow: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
/** The canvas's share of the row, all of it the Explorer leaves. */
|
|
6
|
+
export declare const erdScope: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
7
|
//# sourceMappingURL=ErdEditor.styles.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RxStore } from '../../engine/rx-store';
|
|
2
|
+
import { RootState } from '../../engine/state';
|
|
3
|
+
import { Unsubscribe } from '../../internal-types';
|
|
4
|
+
export type Layout = {
|
|
5
|
+
/** The root as the ResizeObserver last measured it. */
|
|
6
|
+
observed: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
/** How much of the root's width a panel docked beside the canvas takes. */
|
|
11
|
+
reach: number;
|
|
12
|
+
};
|
|
13
|
+
/** The root's measured size and the panel reach, one per editor, kept until the element goes. */
|
|
14
|
+
export declare function layoutOf(store: RxStore): Layout;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the toolbar is drawn. Zen mode takes it away over the canvas it was
|
|
17
|
+
* entered from alone, or the tab that turned the mode on would be the only one
|
|
18
|
+
* it could be turned off from.
|
|
19
|
+
*/
|
|
20
|
+
export declare const hasToolbar: ({ editor, settings }: RootState) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The editor's own width, panel included, which decides whether a dialog
|
|
23
|
+
* stacks: the viewport plus the reach a docked panel takes from it, so a spec
|
|
24
|
+
* that sets the viewport alone reads that width.
|
|
25
|
+
*/
|
|
26
|
+
export declare function editorWidthOf(store: RxStore): number;
|
|
27
|
+
/**
|
|
28
|
+
* Applies the viewport from what decides it: the measured root, the toolbar
|
|
29
|
+
* zen mode takes away, the tab and the Explorer. It compares those first and
|
|
30
|
+
* returns when none moved, writes the reach first, and dispatches only a new viewport.
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyViewport(store: RxStore): void;
|
|
33
|
+
/**
|
|
34
|
+
* Applies the viewport inside every batch that moves its inputs, so a tab,
|
|
35
|
+
* zen mode or takeover change has it before anything renders. The inputs as
|
|
36
|
+
* they stand now are the first ones, so a batch that moves none writes nothing.
|
|
37
|
+
*/
|
|
38
|
+
export declare function observeViewport(store: RxStore): Unsubscribe;
|
|
39
|
+
/** Records what the ResizeObserver measured and applies the viewport from it. */
|
|
40
|
+
export declare function measureRoot(store: RxStore, observed: {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
}): void;
|
|
44
|
+
/** How far in from the canvas's left edge the theme builder and the locale picker stand. */
|
|
45
|
+
export declare const PICKER_INSET = 16;
|
|
46
|
+
/**
|
|
47
|
+
* Where the theme builder and the locale picker stand left to right while the
|
|
48
|
+
* Explorer takes the left of the root: past it, at the canvas's own left edge.
|
|
49
|
+
* Right to left they keep their place at the other end.
|
|
50
|
+
*/
|
|
51
|
+
export declare function insetPastExplorer(store: RxStore, dir: 'ltr' | 'rtl'): Record<string, string>;
|
|
52
|
+
//# sourceMappingURL=viewportLayout.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
export type ExplorerProps = {
|
|
3
|
+
readonly: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The Explorer's place beside the canvas: the panel at the width the layout
|
|
7
|
+
* reaches, or nothing. It reads the reach alone, so a drag of the edge renders
|
|
8
|
+
* the shell and the panel's root and nothing of the tree.
|
|
9
|
+
*/
|
|
10
|
+
declare const Explorer: FC<ExplorerProps>;
|
|
11
|
+
export default Explorer;
|
|
12
|
+
//# sourceMappingURL=Explorer.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
/** How long the edits must pause before an edit of a searched text searches again. */
|
|
3
|
+
export declare const EDIT_SEARCH_DELAY = 100;
|
|
4
|
+
/**
|
|
5
|
+
* What opens the Explorer's search and keeps it current, mounted beside the
|
|
6
|
+
* panel whether it shows or not: the find chord, the palette row's and the
|
|
7
|
+
* context menu's openings, and the searches an edit asks for.
|
|
8
|
+
*/
|
|
9
|
+
declare const ExplorerController: FC;
|
|
10
|
+
export default ExplorerController;
|
|
11
|
+
//# sourceMappingURL=ExplorerController.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
export type ExplorerPanelProps = {
|
|
3
|
+
/** The width the layout gives the panel, which a drag on its edge asks to change. */
|
|
4
|
+
width: number;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The Explorer docked left of the canvas: a read-only tree of the document
|
|
9
|
+
* that jumps to what a row stands for on a click or Enter. Escape hands the
|
|
10
|
+
* keyboard back to the canvas and leaves the panel open.
|
|
11
|
+
*/
|
|
12
|
+
declare const ExplorerPanel: FC<ExplorerPanelProps>;
|
|
13
|
+
export default ExplorerPanel;
|
|
14
|
+
//# sourceMappingURL=ExplorerPanel.d.ts.map
|