@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
|
@@ -25,6 +25,12 @@ export type TableProps = {
|
|
|
25
25
|
* reads the group list once for every table; a table drawn alone reads its own.
|
|
26
26
|
*/
|
|
27
27
|
tableGroupId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the cells write what the dictionaries' checks find in their colours,
|
|
30
|
+
* on unless the scene says otherwise. Only the document scene outside a diff
|
|
31
|
+
* pane draws them, and an export turns them off.
|
|
32
|
+
*/
|
|
33
|
+
checkMarks?: boolean;
|
|
28
34
|
};
|
|
29
35
|
declare const Table: FC<TableProps>;
|
|
30
36
|
export default Table;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RootState } from '../../../../engine/state';
|
|
2
|
+
import { PlainMessageKey } from '../../../../i18n/translate';
|
|
3
|
+
/** What a logical name cell shows, dimmed, while its logical name is blank. */
|
|
4
|
+
export type BlankLogicalName = {
|
|
5
|
+
/** The name drawn in the logical name's place, '' while there is none to draw. */
|
|
6
|
+
standIn: string;
|
|
7
|
+
/** The placeholder shown while there is no stand-in. */
|
|
8
|
+
key: PlainMessageKey;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The logical view sets the logical name cell in the name's place, so a blank
|
|
12
|
+
* one shows the name, or the name's own placeholder while that is blank too.
|
|
13
|
+
* The view of both shows the logical name's placeholder beside the name.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { standIn, key } = blankLogicalName(settings, table.name, 'common.placeholder.table');
|
|
17
|
+
*/
|
|
18
|
+
export declare function blankLogicalName(settings: Pick<RootState['settings'], 'nameViewMode'>, name: string, nameKey: PlainMessageKey): BlankLogicalName;
|
|
19
|
+
//# sourceMappingURL=blankLogicalName.d.ts.map
|
|
@@ -4,8 +4,8 @@ import { Table } from '../../../../internal-types';
|
|
|
4
4
|
import { Theme } from '../../../../themes/tokens';
|
|
5
5
|
import { ColumnWidth } from '../../../../utils/calcTable';
|
|
6
6
|
import { GeometrySource } from '../../../../utils/draw-relationship/geometrySource';
|
|
7
|
-
/** The
|
|
8
|
-
export type ColumnCellWidths = Pick<ColumnWidth, 'comment' | 'dataType' | 'default' | 'name'>;
|
|
7
|
+
/** The six widths a column row measures from its table; the rest are fixed. */
|
|
8
|
+
export type ColumnCellWidths = Pick<ColumnWidth, 'comment' | 'dataType' | 'default' | 'domain' | 'logicalName' | 'name'>;
|
|
9
9
|
/** One editable box on a table, positioned inside the table's own group. */
|
|
10
10
|
export type CellSlot = {
|
|
11
11
|
focusType: FocusType;
|
|
@@ -93,13 +93,13 @@ export declare function getWidthComment(state: RootState, table: Table): number;
|
|
|
93
93
|
/**
|
|
94
94
|
* The name and comment boxes past a header's table icon. One list feeds the
|
|
95
95
|
* scene that draws them and the overlay that edits them, so an editor never
|
|
96
|
-
* sits anywhere but on the text it replaces. A view draws the
|
|
96
|
+
* sits anywhere but on the text it replaces. A view draws the names alone.
|
|
97
97
|
*/
|
|
98
98
|
export declare function getHeaderCellSlots(state: RootState, table: Table, source?: GeometrySource): CellSlot[];
|
|
99
99
|
/**
|
|
100
100
|
* The cells of one column row, in the order the settings put them and at the x
|
|
101
101
|
* each lands on once the ones before it have taken their width. A view lays
|
|
102
|
-
* out the name
|
|
102
|
+
* out the cells its name view names and reads neither the show bits nor the order.
|
|
103
103
|
*/
|
|
104
104
|
export declare function getColumnCellSlots(state: RootState, widths: ColumnCellWidths, source?: GeometrySource): ColumnCellSlot[];
|
|
105
105
|
//# sourceMappingURL=cellLayout.d.ts.map
|
|
@@ -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
|
|
@@ -6,6 +6,7 @@ export declare const empty: import('@dineug/r-html').CSSTemplateLiterals;
|
|
|
6
6
|
export declare const sash: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
7
|
export declare const rowIcon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
8
|
export declare const name: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
export declare const after: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
10
|
export declare const count: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
11
|
export declare const status: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
12
|
export declare const visuallyHidden: import('@dineug/r-html').CSSTemplateLiterals;
|
|
@@ -21,7 +21,10 @@ export type DiffTree = {
|
|
|
21
21
|
};
|
|
22
22
|
/** A row's id: the current entity's, or the saved one's where it is gone. */
|
|
23
23
|
export declare const entryNodeId: (entry: DiffEntry) => string;
|
|
24
|
-
/**
|
|
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
|
+
*/
|
|
25
28
|
export declare function matchesFilter(entry: DiffEntry, filter: string): boolean;
|
|
26
29
|
/**
|
|
27
30
|
* The tree a diff lists: Tables, Table Groups and Memos as the Explorer has
|
|
@@ -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
|
|
@@ -5,7 +5,7 @@ export type FloatingToolbarProps = {
|
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
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, zen mode,
|
|
8
|
+
* to add, the zoom, the notation the next relationship is drawn in, the name view, zen mode,
|
|
9
9
|
* and which way the content lies once the screen holds none. It is the one surface zen mode leaves standing.
|
|
10
10
|
*/
|
|
11
11
|
declare const FloatingToolbar: FC<FloatingToolbarProps>;
|
|
@@ -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
|
|
@@ -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
|
|
@@ -15,11 +15,13 @@ export type ExplorerNode = {
|
|
|
15
15
|
kind: 'table';
|
|
16
16
|
tableId: string;
|
|
17
17
|
name: string;
|
|
18
|
+
logicalName: string;
|
|
18
19
|
} & NameMatches) | ({
|
|
19
20
|
kind: 'column';
|
|
20
21
|
tableId: string;
|
|
21
22
|
columnId: string;
|
|
22
23
|
name: string;
|
|
24
|
+
logicalName: string;
|
|
23
25
|
dataType: string;
|
|
24
26
|
primaryKey: boolean;
|
|
25
27
|
foreignKey: boolean;
|
|
@@ -49,6 +51,7 @@ export type ExplorerNode = {
|
|
|
49
51
|
tableGroupId: string;
|
|
50
52
|
tableId: string;
|
|
51
53
|
name: string;
|
|
54
|
+
logicalName: string;
|
|
52
55
|
} | {
|
|
53
56
|
kind: 'memo';
|
|
54
57
|
memoId: string;
|
|
@@ -72,7 +75,7 @@ export declare function buildExplorerTree(state: RootState): ExplorerTreeNode[];
|
|
|
72
75
|
*/
|
|
73
76
|
export declare function matchRowId(match: FindMatch): string;
|
|
74
77
|
/** The rows above a match's row in the search's tree, which must be open for the row to be drawn. */
|
|
75
|
-
export declare function matchAncestorIds(
|
|
78
|
+
export declare function matchAncestorIds(match: FindMatch): string[];
|
|
76
79
|
export type SearchTree = {
|
|
77
80
|
roots: ExplorerTreeNode[];
|
|
78
81
|
/** Every row with children, which a search shows open unless folded. */
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
2
|
import { FindField } from '../../utils/find-replace';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* The icon a result row carries for the kind of text it was found in. A
|
|
5
|
+
* logical name draws a column's, since only the column search lists one.
|
|
6
|
+
*/
|
|
4
7
|
export declare function fieldIcon(field: FindField, size?: number): DOMTemplateLiterals;
|
|
5
8
|
//# sourceMappingURL=fieldIcon.d.ts.map
|
|
@@ -4,17 +4,17 @@ import { GeneratorAction } from '../../engine/generator.actions';
|
|
|
4
4
|
import { RootState } from '../../engine/state';
|
|
5
5
|
import { FindMatch } from '../../utils/find-replace';
|
|
6
6
|
/**
|
|
7
|
-
* Where on the ERD canvas
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Where on the ERD canvas a match's text is edited: its table, column cell,
|
|
8
|
+
* memo or table group, with the match, which a cell too wide is scrolled to
|
|
9
|
+
* by. An index goes to its table, a logical name to the cell the view draws.
|
|
10
10
|
*/
|
|
11
11
|
export declare function toErdTarget(match: FindMatch): ErdTarget;
|
|
12
12
|
/**
|
|
13
13
|
* The state as a jump measures it once a replacement is in: the field holding
|
|
14
|
-
* the new text at the width its reducer gives it
|
|
15
|
-
*
|
|
14
|
+
* the new text at the width its reducer gives it, a name a logical name derives
|
|
15
|
+
* left as it was. A memo, an index or a group name sizes no table.
|
|
16
16
|
*/
|
|
17
|
-
export declare function withReplacement(state: RootState, { toWidth }: EngineContext,
|
|
17
|
+
export declare function withReplacement(state: RootState, { toWidth }: EngineContext, match: FindMatch, value: string): RootState;
|
|
18
18
|
/**
|
|
19
19
|
* The jump Replace makes to the next match, in the replacement's own dispatch.
|
|
20
20
|
* A batch is read against the state before it, so the jump measures the table
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { RootState } from '../../engine/state';
|
|
2
3
|
import { ThemeOptions } from '../../themes/radix-ui-theme';
|
|
3
4
|
export type ExportImageProps = {
|
|
4
5
|
/** The gray and accent the editor's preset is built from. */
|
|
@@ -13,6 +14,15 @@ export type ExportScale = (typeof EXPORT_SCALES)[number];
|
|
|
13
14
|
export declare const PREVIEW_MAX_SIDE = 1280;
|
|
14
15
|
/** How long the toggles rest before the preview is drawn again. */
|
|
15
16
|
export declare const PREVIEW_DEBOUNCE_MS = 200;
|
|
17
|
+
/**
|
|
18
|
+
* The document an image is drawn from: the words and terms left out, which
|
|
19
|
+
* only the checks read and an image marks none of, and the domains kept,
|
|
20
|
+
* whose names the logical view's type cells draw.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const doc = toExportJson(store.state);
|
|
24
|
+
*/
|
|
25
|
+
export declare const toExportJson: (state: RootState) => string;
|
|
16
26
|
/**
|
|
17
27
|
* The export image dialog: a preview, the options, the buttons that write a png
|
|
18
28
|
* or an svg or copy a png, and a close button. The options last for the
|
|
@@ -32,9 +32,9 @@ export declare function exportImagePng({ emitter }: AppContext, request: ImageRe
|
|
|
32
32
|
* a failure is reported once the file is done.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* await exportImageSvg(app, { doc, theme, toWidth, i18n }, databaseName);
|
|
35
|
+
* await exportImageSvg(app, { doc, theme, toWidth, i18n, nameViewMode }, databaseName);
|
|
36
36
|
*/
|
|
37
|
-
export declare function exportImageSvg({ emitter }: AppContext, { doc, theme, toWidth, i18n }: SvgRequest, databaseName: string): Promise<void>;
|
|
37
|
+
export declare function exportImageSvg({ emitter }: AppContext, { doc, theme, toWidth, i18n, nameViewMode }: SvgRequest, databaseName: string): Promise<void>;
|
|
38
38
|
/**
|
|
39
39
|
* Puts the document on the clipboard as a png. The clipboard write starts in
|
|
40
40
|
* the click that called this, before any await, so call it from the handler
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppContext } from './appContext';
|
|
2
|
+
import { CenterStep } from '../engine/modules/editor/state';
|
|
2
3
|
/**
|
|
3
4
|
* Narrows the Flow view to the tables given and their one hop. State alone:
|
|
4
5
|
* the placement loop reads the display set it names and asks for the layout,
|
|
@@ -7,4 +8,12 @@ import { AppContext } from './appContext';
|
|
|
7
8
|
export declare function focusFlowView(app: AppContext, tableIds: string[]): void;
|
|
8
9
|
/** Widens the Flow view back to everything it placed, through that same one channel: state alone. */
|
|
9
10
|
export declare function showAllFlowView(app: AppContext): void;
|
|
11
|
+
/**
|
|
12
|
+
* Stands the Flow view on the centers a step the way given reaches, through that
|
|
13
|
+
* same one channel: state alone. With nowhere to go it dispatches nothing, so a
|
|
14
|
+
* dimmed button or a chord pressed again wakes no sort and drops no set.
|
|
15
|
+
*/
|
|
16
|
+
export declare function stepFlowView(app: AppContext, step: CenterStep): void;
|
|
17
|
+
/** Whether a step the way given would move the Flow view, past the sets it would pass over. */
|
|
18
|
+
export declare function canStepFlowView(app: AppContext, step: CenterStep): boolean;
|
|
10
19
|
//# sourceMappingURL=flowCenters.d.ts.map
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
1
2
|
import { I18n } from '../../i18n/translate';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
type ViewSettings = Pick<RootState['settings'], 'nameViewMode'>;
|
|
4
|
+
/**
|
|
5
|
+
* A table's or column's name as Map Columns, the draw-target buttons and the
|
|
6
|
+
* check sheet write it: the one the name view shows, the name after the
|
|
7
|
+
* logical name in the view of both, and unnamed where it shows none.
|
|
8
|
+
*/
|
|
9
|
+
export declare function nameOf(entity: {
|
|
4
10
|
name: string;
|
|
5
|
-
|
|
11
|
+
logicalName: string;
|
|
12
|
+
} | undefined, { t }: Pick<I18n, 't'>, settings: ViewSettings): string;
|
|
13
|
+
export {};
|
|
6
14
|
//# sourceMappingURL=nameOf.d.ts.map
|
|
@@ -9,6 +9,7 @@ declare const LUCIDE_ICON: {
|
|
|
9
9
|
'arrow-right': IconNode;
|
|
10
10
|
'arrow-up': IconNode;
|
|
11
11
|
atom: IconNode;
|
|
12
|
+
'book-type': IconNode;
|
|
12
13
|
braces: IconNode;
|
|
13
14
|
brackets: IconNode;
|
|
14
15
|
'case-sensitive': IconNode;
|
|
@@ -32,6 +33,7 @@ declare const LUCIDE_ICON: {
|
|
|
32
33
|
folder: IconNode;
|
|
33
34
|
'folder-open': IconNode;
|
|
34
35
|
fullscreen: IconNode;
|
|
36
|
+
'funnel-x': IconNode;
|
|
35
37
|
'grip-vertical': IconNode;
|
|
36
38
|
group: IconNode;
|
|
37
39
|
hand: IconNode;
|
|
@@ -40,7 +42,9 @@ declare const LUCIDE_ICON: {
|
|
|
40
42
|
languages: IconNode;
|
|
41
43
|
link: IconNode;
|
|
42
44
|
list: IconNode;
|
|
45
|
+
'list-plus': IconNode;
|
|
43
46
|
'list-tree': IconNode;
|
|
47
|
+
'list-x': IconNode;
|
|
44
48
|
'loader-circle': IconNode;
|
|
45
49
|
lock: IconNode;
|
|
46
50
|
'lock-open': IconNode;
|
|
@@ -77,6 +81,7 @@ declare const LUCIDE_ICON: {
|
|
|
77
81
|
'triangle-alert': IconNode;
|
|
78
82
|
'undo-2': IconNode;
|
|
79
83
|
ungroup: IconNode;
|
|
84
|
+
upload: IconNode;
|
|
80
85
|
'wand-sparkles': IconNode;
|
|
81
86
|
waypoints: IconNode;
|
|
82
87
|
'whole-word': IconNode;
|
|
@@ -13,6 +13,8 @@ export type Action = {
|
|
|
13
13
|
shortcut?: string;
|
|
14
14
|
/** The table a row jumps to, whose keyword names the kind of row, not the table. */
|
|
15
15
|
tableId?: string;
|
|
16
|
+
/** A table row's own names, its name and logical name, which a search reads whatever the name view shows. */
|
|
17
|
+
tableNames?: string[];
|
|
16
18
|
/** What choosing the row types into the input, which stays open, instead of running a command. */
|
|
17
19
|
insert?: string;
|
|
18
20
|
/** The English of a translated name and keywords, each its own text, which a search also reads and the list never shows. */
|
|
@@ -64,7 +66,7 @@ export declare function createScopeActions(app: AppContext, i18n?: I18n, prefere
|
|
|
64
66
|
export declare function createPreferenceActions(i18n: I18n, { appearance, locale }: PalettePreferences): Action[];
|
|
65
67
|
/** The row for one field a search found, saying where it is, which stands the reader on it when chosen. */
|
|
66
68
|
export declare function createMatchAction(state: RootState, match: FindMatch, i18n?: I18n): Action;
|
|
67
|
-
/** The
|
|
69
|
+
/** The six tabs the Tab row opens, each but the one shown. */
|
|
68
70
|
export declare function createTabActions(i18n?: I18n): Action[];
|
|
69
71
|
export {};
|
|
70
72
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -21,8 +21,8 @@ export declare function paletteRows(app: AppContext, found: Action[], { scope, k
|
|
|
21
21
|
export declare function rankTableActions(found: Action[], keyword: string): Action[];
|
|
22
22
|
/**
|
|
23
23
|
* One row for each field of the kinds given holding the keyword, Hangul letters
|
|
24
|
-
* too, or for every column or text that is not empty while there is none,
|
|
25
|
-
* table part narrowing a column search; the list draws only the rows in view.
|
|
24
|
+
* too, or for every column name or text that is not empty while there is none,
|
|
25
|
+
* the table part narrowing a column search; the list draws only the rows in view.
|
|
26
26
|
*/
|
|
27
27
|
export declare function createFieldActions(app: AppContext, fields: FindField[], keyword: string, table?: string | null, i18n?: I18n): Action[];
|
|
28
28
|
/** The prefixes as rows, each typing its character into the input when chosen; a keyword fuzzes them. */
|
|
@@ -16,8 +16,8 @@ export type SchemaSQLOptionsProps = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* The options beside the Schema SQL: the database and the bracket, then this
|
|
19
|
-
* window's statements, header and tables, then the
|
|
20
|
-
* saves, and the buttons that save and copy the text.
|
|
19
|
+
* window's statements, header, logical name comments and tables, then the
|
|
20
|
+
* scripts the document saves, and the buttons that save and copy the text.
|
|
21
21
|
*/
|
|
22
22
|
declare const SchemaSQLOptions: FC<SchemaSQLOptionsProps>;
|
|
23
23
|
export default SchemaSQLOptions;
|
|
@@ -11,6 +11,8 @@ export declare const group: import('@dineug/r-html').CSSTemplateLiterals;
|
|
|
11
11
|
/** A group under a rule, drawn halfway into the gap above it. */
|
|
12
12
|
export declare const separated: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
13
|
export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
/** A label beside its switch: the label wraps, the switch keeps its size and the label takes the press. */
|
|
15
|
+
export declare const toggle: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
16
|
export declare const column: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
17
|
export declare const caption: import('@dineug/r-html').CSSTemplateLiterals;
|
|
16
18
|
export declare const note: import('@dineug/r-html').CSSTemplateLiterals;
|
|
@@ -19,6 +19,8 @@ export type SchemaSQLView = {
|
|
|
19
19
|
statements: SchemaSQLStatements;
|
|
20
20
|
/** The header asked for, resolved the same way. */
|
|
21
21
|
header: SchemaSQLHeader;
|
|
22
|
+
/** Whether an empty comment writes the logical name; off at first. */
|
|
23
|
+
logicalNameAsComment: boolean;
|
|
22
24
|
/** Replaced whole, never changed in place, so a watcher hears one change. */
|
|
23
25
|
tables: SchemaSQLTableChoice;
|
|
24
26
|
panel: OptionsPanelState;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { LockSettingType as LockSettingBit } from '@dineug/erd-editor-schema';
|
|
1
2
|
import { RootState } from '../../engine/state';
|
|
2
3
|
import { I18n, PlainMessageKey } from '../../i18n/translate';
|
|
3
4
|
type LockedValues = RootState['settings']['lockedValues'];
|
|
4
5
|
type Translator = Pick<I18n, 't'>;
|
|
5
6
|
export type LockSettingRow = {
|
|
6
7
|
nameKey: PlainMessageKey;
|
|
7
|
-
lockSettingType:
|
|
8
|
+
lockSettingType: LockSettingBit;
|
|
8
9
|
toText: (values: LockedValues, i18n: Translator) => string;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC, Ref } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from '../../../appContext';
|
|
3
|
+
export type ColumnDomainProps = {
|
|
4
|
+
app?: Ref<AppContext>;
|
|
5
|
+
tableId: string;
|
|
6
|
+
columnId: string;
|
|
7
|
+
width: number;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
onBlur?: (event: FocusEvent) => void;
|
|
10
|
+
onEditEnd?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The domain editor of a row: a search over the domain sheet by name that only
|
|
14
|
+
* picks, never writing what is typed. A pick links the domain with its type in
|
|
15
|
+
* one dispatch, and None unlinks; it opens on the row of the domain linked.
|
|
16
|
+
*/
|
|
17
|
+
declare const ColumnDomain: FC<ColumnDomainProps>;
|
|
18
|
+
export default ColumnDomain;
|
|
19
|
+
//# sourceMappingURL=ColumnDomain.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RootState } from '../../../../engine/state';
|
|
2
|
+
/** A row of a domain picker: a domain by its id and name, or the empty id that unlinks. */
|
|
3
|
+
export type DomainOption = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The rows a search offers: every named domain in sheet order after the row
|
|
9
|
+
* that unlinks while nothing is typed, else the domains whose names hold the
|
|
10
|
+
* text in any case; none at all while the sheet lists no named domain.
|
|
11
|
+
*/
|
|
12
|
+
export declare function searchDomainOptions(state: RootState, typed: string): DomainOption[];
|
|
13
|
+
//# sourceMappingURL=domainOptions.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC, Ref } from '@dineug/r-html';
|
|
2
|
+
import { AppContext } from '../../../appContext';
|
|
3
|
+
export type ColumnLogicalNameProps = {
|
|
4
|
+
app?: Ref<AppContext>;
|
|
5
|
+
tableId: string;
|
|
6
|
+
/** The column whose logical name is edited, null for the table's own. */
|
|
7
|
+
columnId: string | null;
|
|
8
|
+
width: number;
|
|
9
|
+
value: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
onInput?: (event: InputEvent) => void;
|
|
12
|
+
onBlur?: (event: FocusEvent) => void;
|
|
13
|
+
onEditEnd?: () => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The logical name editor of a header or a row: each key writes the text, the
|
|
17
|
+
* terms its start names drop under it, and a term picked writes it with its
|
|
18
|
+
* derivation; the name is derived once more as the editor closes on a change.
|
|
19
|
+
*/
|
|
20
|
+
declare const ColumnLogicalName: FC<ColumnLogicalNameProps>;
|
|
21
|
+
export default ColumnLogicalName;
|
|
22
|
+
//# sourceMappingURL=ColumnLogicalName.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
|
+
export declare const hint: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
export declare const hintItem: import('@dineug/r-html').CSSTemplateLiterals;
|
|
4
|
+
//# sourceMappingURL=ColumnLogicalName.styles.d.ts.map
|