@nongt/visql 0.0.0-stage → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +916 -2
- package/dist/PipelineEditor-DNZkDSaY.js +10042 -0
- package/dist/calendarDate-CYlr9TvX.js +43 -0
- package/dist/core-api-BDCnbFHY.js +1056 -0
- package/dist/core.js +80 -0
- package/dist/fixtures.js +7 -0
- package/dist/index.js +145 -0
- package/dist/issueLocation-Cw5sttQL.js +3183 -0
- package/dist/mui-date-pickers.js +117 -0
- package/dist/mui.js +510 -0
- package/dist/schema-z95dxLxu.js +839 -0
- package/dist/sql-import.js +1366 -0
- package/dist/style.css +1 -0
- package/dist/tokens-BTaVMSOx.js +95 -0
- package/dist/types/adapters/mui/MuiDatePicker.d.ts +12 -0
- package/dist/types/adapters/mui/MuiDateTimePicker.d.ts +10 -0
- package/dist/types/adapters/mui/MuiListInput.d.ts +9 -0
- package/dist/types/adapters/mui/MuiTimePicker.d.ts +10 -0
- package/dist/types/adapters/mui/QueryBuilder.d.ts +12 -0
- package/dist/types/adapters/mui/components.d.ts +16 -0
- package/dist/types/adapters/mui/index.d.ts +6 -0
- package/dist/types/adapters/mui/muiPickers.d.ts +6 -0
- package/dist/types/adapters/mui/pickerStyles.d.ts +28 -0
- package/dist/types/adapters/mui/theme.d.ts +11 -0
- package/dist/types/core/BetweenOnTextContext.d.ts +11 -0
- package/dist/types/core/DialectContext.d.ts +10 -0
- package/dist/types/core/DrillDownContext.d.ts +22 -0
- package/dist/types/core/ExistsContext.d.ts +29 -0
- package/dist/types/core/FlowDirectionContext.d.ts +8 -0
- package/dist/types/core/FlowOrientationContext.d.ts +6 -0
- package/dist/types/core/FunctionsContext.d.ts +25 -0
- package/dist/types/core/GroupKeysContext.d.ts +18 -0
- package/dist/types/core/MeasureLockContext.d.ts +12 -0
- package/dist/types/core/ReadOnlyContext.d.ts +6 -0
- package/dist/types/core/SchemaContext.d.ts +8 -0
- package/dist/types/core/SubqueryContext.d.ts +16 -0
- package/dist/types/core/UnionBranchContext.d.ts +6 -0
- package/dist/types/core/ValueInputContext.d.ts +24 -0
- package/dist/types/core/absolutePath.d.ts +57 -0
- package/dist/types/core/ast.d.ts +154 -0
- package/dist/types/core/astChildren.d.ts +4 -0
- package/dist/types/core/astEqual.d.ts +4 -0
- package/dist/types/core/astMap.d.ts +21 -0
- package/dist/types/core/calendarDate.d.ts +21 -0
- package/dist/types/core/columnFormats.d.ts +23 -0
- package/dist/types/core/components/BoolPicker.d.ts +8 -0
- package/dist/types/core/components/NumberInput.d.ts +8 -0
- package/dist/types/core/components/ReadOnlyPart.d.ts +10 -0
- package/dist/types/core/components/TextInput.d.ts +8 -0
- package/dist/types/core/components/expression/BinaryView.d.ts +10 -0
- package/dist/types/core/components/expression/ExprSummary.d.ts +12 -0
- package/dist/types/core/components/expression/ExpressionTypeSelector.d.ts +35 -0
- package/dist/types/core/components/expression/ExpressionView.d.ts +30 -0
- package/dist/types/core/components/expression/FieldView.d.ts +15 -0
- package/dist/types/core/components/expression/FormulaPeek.d.ts +14 -0
- package/dist/types/core/components/expression/FunctionArgInput.d.ts +22 -0
- package/dist/types/core/components/expression/FunctionView.d.ts +7 -0
- package/dist/types/core/components/expression/ListView.d.ts +20 -0
- package/dist/types/core/components/expression/LiteralView.d.ts +23 -0
- package/dist/types/core/components/expression/LogicalView.d.ts +9 -0
- package/dist/types/core/components/expression/MeasureMenu.d.ts +21 -0
- package/dist/types/core/components/expression/ParamView.d.ts +13 -0
- package/dist/types/core/components/expression/RelativeDateView.d.ts +15 -0
- package/dist/types/core/components/expression/SubqueryView.d.ts +8 -0
- package/dist/types/core/components/expression/formulaClasses.d.ts +8 -0
- package/dist/types/core/components/flow/CaseBranchFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/CaseElseFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/CaseFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/ConditionFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/CreateConditionFlowNode.d.ts +14 -0
- package/dist/types/core/components/flow/CreateHavingFlowNode.d.ts +11 -0
- package/dist/types/core/components/flow/DistinctToggle.d.ts +10 -0
- package/dist/types/core/components/flow/ExistsFlowNode.d.ts +9 -0
- package/dist/types/core/components/flow/FromFlowNode.d.ts +110 -0
- package/dist/types/core/components/flow/FunctionArgFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/FunctionCallFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/FunctionSortKeys.d.ts +10 -0
- package/dist/types/core/components/flow/GroupBgNode.d.ts +14 -0
- package/dist/types/core/components/flow/GroupByFlowNode.d.ts +29 -0
- package/dist/types/core/components/flow/IfElseFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/IfFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/IfThenFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/LeafConditionFrame.d.ts +19 -0
- package/dist/types/core/components/flow/LogicalFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/MoveTooltip.d.ts +19 -0
- package/dist/types/core/components/flow/NotFlowNode.d.ts +5 -0
- package/dist/types/core/components/flow/OrderByFlowNode.d.ts +32 -0
- package/dist/types/core/components/flow/SectionLabelFlowNode.d.ts +7 -0
- package/dist/types/core/components/flow/SelectFlowNode.d.ts +49 -0
- package/dist/types/core/components/flow/SharedQueriesFlowNode.d.ts +39 -0
- package/dist/types/core/components/flow/SummaryPill.d.ts +12 -0
- package/dist/types/core/components/flow/WarningNote.d.ts +9 -0
- package/dist/types/core/components/flow/chainSides.d.ts +18 -0
- package/dist/types/core/components/flow/dragContext.d.ts +12 -0
- package/dist/types/core/components/flow/moveTooltipHysteresis.d.ts +18 -0
- package/dist/types/core/components/flow/useRowDrag.d.ts +34 -0
- package/dist/types/core/components/flow/useRowReorderFlip.d.ts +30 -0
- package/dist/types/core/derivedTables.d.ts +98 -0
- package/dist/types/core/distinctSort.d.ts +7 -0
- package/dist/types/core/drillPath.d.ts +11 -0
- package/dist/types/core/exists.d.ts +7 -0
- package/dist/types/core/existsMenu.d.ts +61 -0
- package/dist/types/core/expressionFlow.d.ts +428 -0
- package/dist/types/core/fanOut.d.ts +58 -0
- package/dist/types/core/findParts.d.ts +19 -0
- package/dist/types/core/flowTrees.d.ts +20 -0
- package/dist/types/core/focusKey.d.ts +10 -0
- package/dist/types/core/formula.d.ts +24 -0
- package/dist/types/core/formulaPeek.d.ts +16 -0
- package/dist/types/core/functionRegistry.d.ts +117 -0
- package/dist/types/core/grouping.d.ts +58 -0
- package/dist/types/core/history.d.ts +25 -0
- package/dist/types/core/i18n/defaultMessages.d.ts +367 -0
- package/dist/types/core/i18n/messages.d.ts +273 -0
- package/dist/types/core/i18n/relativeDateWords.d.ts +3 -0
- package/dist/types/core/id.d.ts +5 -0
- package/dist/types/core/issueAnchor.d.ts +29 -0
- package/dist/types/core/issueLocation.d.ts +105 -0
- package/dist/types/core/limits.d.ts +17 -0
- package/dist/types/core/measures.d.ts +51 -0
- package/dist/types/core/params.d.ts +30 -0
- package/dist/types/core/pipelineAnchor.d.ts +118 -0
- package/dist/types/core/pipelineFlow.d.ts +271 -0
- package/dist/types/core/queryAst.d.ts +201 -0
- package/dist/types/core/queryHelpers.d.ts +113 -0
- package/dist/types/core/queryValidation.d.ts +206 -0
- package/dist/types/core/relativeDates.d.ts +11 -0
- package/dist/types/core/resolveNames.d.ts +17 -0
- package/dist/types/core/rowRange.d.ts +3 -0
- package/dist/types/core/schema.d.ts +119 -0
- package/dist/types/core/scopeQuery.d.ts +45 -0
- package/dist/types/core/selectColumns.d.ts +23 -0
- package/dist/types/core/settleQuery.d.ts +11 -0
- package/dist/types/core/sharedQueries.d.ts +66 -0
- package/dist/types/core/sqlGen.d.ts +102 -0
- package/dist/types/core/sqlOffsets.d.ts +5 -0
- package/dist/types/core/sqlSpans.d.ts +33 -0
- package/dist/types/core/storedQuery.d.ts +43 -0
- package/dist/types/core/summarize.d.ts +3 -0
- package/dist/types/core/theme/tokens.d.ts +74 -0
- package/dist/types/core/ui/UIContext.d.ts +6 -0
- package/dist/types/core/ui/index.d.ts +12 -0
- package/dist/types/core/ui/types.d.ts +264 -0
- package/dist/types/core/unionTables.d.ts +121 -0
- package/dist/types/core/useValueTypes.d.ts +12 -0
- package/dist/types/core/valueTypes.d.ts +54 -0
- package/dist/types/core-api.d.ts +20 -0
- package/dist/types/features/queryEditor/ExpressionFlowCanvas.d.ts +10 -0
- package/dist/types/features/queryEditor/FindBox.d.ts +12 -0
- package/dist/types/features/queryEditor/FlowCanvas.d.ts +96 -0
- package/dist/types/features/queryEditor/FocusPulse.d.ts +10 -0
- package/dist/types/features/queryEditor/IssuesButton.d.ts +16 -0
- package/dist/types/features/queryEditor/PipelineEditor.d.ts +210 -0
- package/dist/types/features/queryEditor/QueryOutline.d.ts +16 -0
- package/dist/types/features/queryEditor/ResultsPanel.d.ts +11 -0
- package/dist/types/features/queryEditor/RunButton.d.ts +11 -0
- package/dist/types/features/queryEditor/SubFlowPanel.d.ts +24 -0
- package/dist/types/features/queryEditor/UndoRedoToast.d.ts +6 -0
- package/dist/types/features/queryEditor/canvasPositioning.d.ts +81 -0
- package/dist/types/features/queryEditor/findKeys.d.ts +3 -0
- package/dist/types/features/queryEditor/flowDragUtils.d.ts +16 -0
- package/dist/types/features/queryEditor/focusContext.d.ts +24 -0
- package/dist/types/features/queryEditor/hoveredPart.d.ts +32 -0
- package/dist/types/features/queryEditor/issueFocusParts.d.ts +9 -0
- package/dist/types/features/queryEditor/issueLocationText.d.ts +7 -0
- package/dist/types/features/queryEditor/issueText.d.ts +11 -0
- package/dist/types/features/queryEditor/outlineSections.d.ts +23 -0
- package/dist/types/features/queryEditor/run.d.ts +36 -0
- package/dist/types/features/queryEditor/sectionLabels.d.ts +15 -0
- package/dist/types/features/queryEditor/treeScopeContext.d.ts +14 -0
- package/dist/types/features/queryEditor/useRemeasureOnDirectionChange.d.ts +7 -0
- package/dist/types/features/queryEditor/useRevealNewNodes.d.ts +35 -0
- package/dist/types/features/queryEditor/withTreeScope.d.ts +10 -0
- package/dist/types/fixtures.d.ts +44 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/mui-date-pickers.d.ts +3 -0
- package/dist/types/mui.d.ts +2 -0
- package/dist/types/sql-import.d.ts +3 -0
- package/dist/types/sqlImport/context.d.ts +71 -0
- package/dist/types/sqlImport/expressions.d.ts +11 -0
- package/dist/types/sqlImport/importSql.d.ts +28 -0
- package/dist/types/sqlImport/parse.d.ts +6 -0
- package/dist/types/sqlImport/syntax.d.ts +245 -0
- package/dist/types/sqlImport/tokenize.d.ts +26 -0
- package/package.json +164 -3
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import type { RelativeDate } from '../ast.js';
|
|
2
|
+
import englishRelativeDate from './relativeDateWords.js';
|
|
3
|
+
/** Every piece of interface text the editor shows — tooltips, accessible
|
|
4
|
+
* labels, button text, placeholders, hints. English by default; a host
|
|
5
|
+
* overrides any subset through PipelineEditor's `messages` prop (e.g. a
|
|
6
|
+
* translation). Text that embeds a value is a function.
|
|
7
|
+
*
|
|
8
|
+
* Not included, deliberately: SQL keywords shown as such (AND/OR, NOT, IF,
|
|
9
|
+
* CASE, WHEN, THEN, ELSE, join types) and the breadcrumb's structural path
|
|
10
|
+
* labels (`branch[0].when`, `[1]`) — those name parts of the query itself,
|
|
11
|
+
* not the interface. */
|
|
12
|
+
export declare const DEFAULT_MESSAGES: {
|
|
13
|
+
sectionFrom: string;
|
|
14
|
+
sectionWhere: string;
|
|
15
|
+
sectionGroup: string;
|
|
16
|
+
sectionSelect: string;
|
|
17
|
+
sectionOrder: string;
|
|
18
|
+
/** Shared queries (WITH, issue 194): their section, before FROM. */
|
|
19
|
+
sectionShared: string;
|
|
20
|
+
main: string;
|
|
21
|
+
close: string;
|
|
22
|
+
jumpedTo: string;
|
|
23
|
+
editInSubCanvas: (slot: string) => string;
|
|
24
|
+
moveUp: string;
|
|
25
|
+
moveDown: string;
|
|
26
|
+
moveGroupUp: string;
|
|
27
|
+
moveGroupDown: string;
|
|
28
|
+
moveBranchUp: string;
|
|
29
|
+
moveBranchDown: string;
|
|
30
|
+
createCondition: string;
|
|
31
|
+
/** Read-only mode, empty WHERE: stands in for the Create Condition button. */
|
|
32
|
+
noCondition: string;
|
|
33
|
+
addCondition: string;
|
|
34
|
+
addGroup: string;
|
|
35
|
+
addIfExpression: string;
|
|
36
|
+
addCaseExpression: string;
|
|
37
|
+
wrapInGroup: string;
|
|
38
|
+
wrapInNewGroup: string;
|
|
39
|
+
collapseGroup: string;
|
|
40
|
+
negateCondition: string;
|
|
41
|
+
negateGroup: string;
|
|
42
|
+
removeNot: string;
|
|
43
|
+
delete: string;
|
|
44
|
+
deleteGroup: string;
|
|
45
|
+
deleteIf: string;
|
|
46
|
+
deleteCase: string;
|
|
47
|
+
addExists: string;
|
|
48
|
+
/** An entry of its menu when the same table is linked more than one way
|
|
49
|
+
* (`via`: the foreign key's column). */
|
|
50
|
+
existsVia: (table: string, via: string) => string;
|
|
51
|
+
existsHas: string;
|
|
52
|
+
existsLinkedBy: string;
|
|
53
|
+
existsWhere: string;
|
|
54
|
+
/** No conditions on the related rows: any will do. */
|
|
55
|
+
existsAny: string;
|
|
56
|
+
existsEdit: string;
|
|
57
|
+
addBranch: string;
|
|
58
|
+
removeBranch: string;
|
|
59
|
+
addElse: string;
|
|
60
|
+
removeElse: string;
|
|
61
|
+
addArg: string;
|
|
62
|
+
removeArg: string;
|
|
63
|
+
typeField: string;
|
|
64
|
+
typeValue: string;
|
|
65
|
+
/** NULL, picked as a value (no value, on purpose). */
|
|
66
|
+
typeNull: string;
|
|
67
|
+
/** A value's types, picked when nothing typed is compared with it
|
|
68
|
+
* (issue 130). */
|
|
69
|
+
typeText: string;
|
|
70
|
+
typeNumber: string;
|
|
71
|
+
typeDate: string;
|
|
72
|
+
typeBoolean: string;
|
|
73
|
+
typeFunction: string;
|
|
74
|
+
typeExpression: string;
|
|
75
|
+
/** A named param (set by the application, shown read-only). */
|
|
76
|
+
typeParam: string;
|
|
77
|
+
/** A date relative to when the query runs (issue 140): the type menu's
|
|
78
|
+
* item, its words ("30 days ago", "Start of last month"), its presets'
|
|
79
|
+
* "Custom", and its custom parts. */
|
|
80
|
+
typeRelativeDate: string;
|
|
81
|
+
relativeDate: typeof englishRelativeDate;
|
|
82
|
+
relativeCustom: string;
|
|
83
|
+
relativeUnits: Record<RelativeDate["unit"], string>;
|
|
84
|
+
relativeAgo: string;
|
|
85
|
+
relativeFromNow: string;
|
|
86
|
+
relativeSameDay: string;
|
|
87
|
+
relativeStart: string;
|
|
88
|
+
relativeEnd: string;
|
|
89
|
+
/** A parameter's value isn't in the query: it's given when it runs. */
|
|
90
|
+
paramHint: string;
|
|
91
|
+
paramNamePlaceholder: string;
|
|
92
|
+
typeMenuBasic: string;
|
|
93
|
+
/** A function picker's groups, where aggregates are offered: those
|
|
94
|
+
* (which group the rows) apart from the rest. Kept short: the list is
|
|
95
|
+
* as narrow as the name box. */
|
|
96
|
+
functionGroupAggregate: string;
|
|
97
|
+
functionGroupOther: string;
|
|
98
|
+
typeMenuCondition: string;
|
|
99
|
+
/** IN's value as a query of its own (issue 122), when offered: its type,
|
|
100
|
+
* its menu section, and its canvas's name. */
|
|
101
|
+
typeSubquery: string;
|
|
102
|
+
typeMenuQuery: string;
|
|
103
|
+
/** IN's values, one each (issue 130): its type, adding one, taking one
|
|
104
|
+
* out. */
|
|
105
|
+
typeList: string;
|
|
106
|
+
/** A union of tables' rows (issue 121): the add-table picker's groups
|
|
107
|
+
* when rows can be added. */
|
|
108
|
+
/** A NULL value (no value at all): on a union's branch, that table's
|
|
109
|
+
* having none for the column — and filling one in instead. */
|
|
110
|
+
nullValue: string;
|
|
111
|
+
nullInUnion: string;
|
|
112
|
+
fillInValue: string;
|
|
113
|
+
openUnionBranch: (table: string) => string;
|
|
114
|
+
removeUnionBranch: (table: string) => string;
|
|
115
|
+
joinTableGroup: string;
|
|
116
|
+
/** Free-form unions (issue 153): a new one, the query as one's first
|
|
117
|
+
* query, another query for one, and a new query's canvas. */
|
|
118
|
+
createUnion: string;
|
|
119
|
+
unionWithQuery: string;
|
|
120
|
+
addUnionQuery: string;
|
|
121
|
+
/** A union of one query back as a plain query. */
|
|
122
|
+
unwrapUnion: string;
|
|
123
|
+
newUnionQuery: string;
|
|
124
|
+
/** Issue 153, step 4: a union joined. */
|
|
125
|
+
joinUnion: string;
|
|
126
|
+
addRowsGroup: string;
|
|
127
|
+
addListValue: string;
|
|
128
|
+
removeListValue: (value: string) => string;
|
|
129
|
+
subqueryLabel: string;
|
|
130
|
+
/** The type menu's section, and its one item. */
|
|
131
|
+
typeMenuMeasure: string;
|
|
132
|
+
measureFrom: string;
|
|
133
|
+
/** Why it's off: nothing is summed up yet, so there are no groups. */
|
|
134
|
+
measureNeedsGroups: string;
|
|
135
|
+
/** Why a table can't be one: a group key's table it doesn't link to. */
|
|
136
|
+
measureUnlinked: (table: string) => string;
|
|
137
|
+
/** What to sum up of the table picked. */
|
|
138
|
+
measureCount: string;
|
|
139
|
+
measureOf: (aggregate: "SUM" | "AVG" | "MIN" | "MAX", column: string) => string;
|
|
140
|
+
/** The checkbox on a measure's FROM row. */
|
|
141
|
+
keepInStep: string;
|
|
142
|
+
/** On a measure's canvas: what it follows, while kept in step. */
|
|
143
|
+
measureFollows: (grain: string) => string;
|
|
144
|
+
measureAlso: (filters: string) => string;
|
|
145
|
+
/** Where its rows come from (the report's base decides). */
|
|
146
|
+
measureRows: (base: string) => string;
|
|
147
|
+
chooseBaseTableHint: string;
|
|
148
|
+
chooseBaseTable: string;
|
|
149
|
+
addTable: string;
|
|
150
|
+
removeJoin: string;
|
|
151
|
+
removeBaseTable: string;
|
|
152
|
+
setJoinCondition: string;
|
|
153
|
+
conditionCount: (count: number) => string;
|
|
154
|
+
/** Why a FROM row can't move there: `table`'s ON condition uses `needs`,
|
|
155
|
+
* which would then only be joined after it. */
|
|
156
|
+
joinOrderConflict: (table: string, needs: string) => string;
|
|
157
|
+
/** First in the Add Table and base table pickers: opens a new one's
|
|
158
|
+
* canvas, to pick its first table. */
|
|
159
|
+
createSubQuery: string;
|
|
160
|
+
/** That canvas's label until its first table is picked. */
|
|
161
|
+
newSubQuery: string;
|
|
162
|
+
/** The icon after a sub query's name, which opens its own canvas: its
|
|
163
|
+
* tooltip and name (in read-only mode: viewSubQuery). */
|
|
164
|
+
editSubQuery: string;
|
|
165
|
+
viewSubQuery: string;
|
|
166
|
+
/** A derived table of one row (a total): CROSS JOIN it, no condition. */
|
|
167
|
+
joinToEveryRow: string;
|
|
168
|
+
/** In place of its condition, once CROSS joined. */
|
|
169
|
+
joinedToEveryRow: string;
|
|
170
|
+
/** Shared queries (issue 194): the pickers' group of them; the action
|
|
171
|
+
* that makes one (its canvas, empty, labelled newSharedQuery until its
|
|
172
|
+
* first table); the icon opening one (in read-only mode:
|
|
173
|
+
* viewSharedQuery); removing one (its places become sub queries). */
|
|
174
|
+
sharedQueriesGroup: string;
|
|
175
|
+
createSharedQuery: string;
|
|
176
|
+
newSharedQuery: string;
|
|
177
|
+
editSharedQuery: string;
|
|
178
|
+
viewSharedQuery: string;
|
|
179
|
+
removeSharedQuery: string;
|
|
180
|
+
/** The section's "+": a shared query made before it's used. */
|
|
181
|
+
addSharedQuery: string;
|
|
182
|
+
/** Under a shared query's name: where it's used. */
|
|
183
|
+
sharedUsedIn: (count: number) => string;
|
|
184
|
+
/** On a sub query's row: it becomes a shared query; on a shared query's
|
|
185
|
+
* place: it gets a copy of its own, a sub query. */
|
|
186
|
+
makeShared: string;
|
|
187
|
+
makeSubQuery: string;
|
|
188
|
+
/** Removing a shared query that's used: what happens to its places. */
|
|
189
|
+
removeSharedKeepPlaces: string;
|
|
190
|
+
removeSharedWithPlaces: string;
|
|
191
|
+
/** Why the second can't be: a query reads from it as its base. */
|
|
192
|
+
removeSharedIsBase: string;
|
|
193
|
+
/** Renaming a shared query: a name another one, or a table, has. */
|
|
194
|
+
sharedNameTaken: (name: string) => string;
|
|
195
|
+
/** Renaming a derived table: no name given. */
|
|
196
|
+
derivedNameEmpty: string;
|
|
197
|
+
/** Renaming a derived table: a name another table already has. */
|
|
198
|
+
derivedNameTaken: (name: string) => string;
|
|
199
|
+
/** The "+" that starts grouping. */
|
|
200
|
+
groupRows: string;
|
|
201
|
+
/** A group key added for a SELECT column, following it. */
|
|
202
|
+
groupKeyFromColumn: (column: string) => string;
|
|
203
|
+
/** A grouped query's HAVING or sort key with no group key to pick: why,
|
|
204
|
+
* and what to do instead. */
|
|
205
|
+
onlyGroupKeys: string;
|
|
206
|
+
addGrouping: string;
|
|
207
|
+
removeGrouping: string;
|
|
208
|
+
/** Read-only mode, no grouping. */
|
|
209
|
+
notGrouped: string;
|
|
210
|
+
/** Above HAVING's tree (and the "+" that starts it) on the canvas — the
|
|
211
|
+
* counterpart of `sectionWhere`: conditions on groups, not rows. */
|
|
212
|
+
havingCaption: string;
|
|
213
|
+
addHaving: string;
|
|
214
|
+
/** A column (in SELECT, ORDER BY or HAVING) that isn't one value per group. */
|
|
215
|
+
notPerGroup: string;
|
|
216
|
+
/** Quick fix on a SELECT column that isn't one value per group. */
|
|
217
|
+
groupByColumn: string;
|
|
218
|
+
/** A sum, average or count over rows the joins repeat (the tables'
|
|
219
|
+
* labels, joined). */
|
|
220
|
+
fanOut: (tables: string) => string;
|
|
221
|
+
/** A grouped query with no columns picked (SELECT *). */
|
|
222
|
+
groupedNeedsColumns: string;
|
|
223
|
+
countRows: string;
|
|
224
|
+
countValues: string;
|
|
225
|
+
countDistinct: string;
|
|
226
|
+
joinEveryValue: string;
|
|
227
|
+
joinDistinctValues: string;
|
|
228
|
+
addColumn: string;
|
|
229
|
+
/** Read-only mode, no columns picked: every column is selected. */
|
|
230
|
+
allColumns: string;
|
|
231
|
+
removeColumn: string;
|
|
232
|
+
aliasPlaceholder: string;
|
|
233
|
+
/** The SELECT node's DISTINCT switch. */
|
|
234
|
+
distinct: string;
|
|
235
|
+
/** Read-only mode, DISTINCT on. */
|
|
236
|
+
distinctOn: string;
|
|
237
|
+
addSort: string;
|
|
238
|
+
removeSort: string;
|
|
239
|
+
toggleSortDirection: string;
|
|
240
|
+
/** Opens the row-count inputs. */
|
|
241
|
+
limitRows: string;
|
|
242
|
+
removeLimit: string;
|
|
243
|
+
showRowsBefore: string;
|
|
244
|
+
showRowsAfter: string;
|
|
245
|
+
skipRowsBefore: string;
|
|
246
|
+
skipRowsAfter: string;
|
|
247
|
+
/** What the row counts come to (1-based; `to` undefined: no limit). */
|
|
248
|
+
rowRange: (from: number, to?: number) => string;
|
|
249
|
+
allRows: string;
|
|
250
|
+
/** LIMIT 0. */
|
|
251
|
+
noRows: string;
|
|
252
|
+
/** Skipping rows without a sort: the database may return any rows. */
|
|
253
|
+
pagingNeedsSort: string;
|
|
254
|
+
/** DISTINCT on, and a sort key that isn't a selected column (no database
|
|
255
|
+
* accepts that). */
|
|
256
|
+
sortNeedsSelected: string;
|
|
257
|
+
/** Read-only mode, no sorting and no limit. */
|
|
258
|
+
noSort: string;
|
|
259
|
+
emptyText: string;
|
|
260
|
+
markEmpty: string;
|
|
261
|
+
unmarkEmpty: string;
|
|
262
|
+
run: string;
|
|
263
|
+
running: string;
|
|
264
|
+
/** The Run button's tooltip. */
|
|
265
|
+
runShortcut: string;
|
|
266
|
+
/** Why Run is off: no table picked yet. */
|
|
267
|
+
runNeedsTable: string;
|
|
268
|
+
/** Why Run is off: the query has errors. */
|
|
269
|
+
runNeedsFixes: (count: number) => string;
|
|
270
|
+
runFailed: string;
|
|
271
|
+
/** How many rows came back (`truncated`: more matched). */
|
|
272
|
+
runRows: (count: number, truncated: boolean) => string;
|
|
273
|
+
runNoRows: string;
|
|
274
|
+
/** The results are from before the latest edits. */
|
|
275
|
+
runOutdated: string;
|
|
276
|
+
closeResults: string;
|
|
277
|
+
problems: (count: number) => string;
|
|
278
|
+
problemsErrors: string;
|
|
279
|
+
problemsWarnings: string;
|
|
280
|
+
/** Issues about the query as a whole (no one section). */
|
|
281
|
+
problemsQuery: string;
|
|
282
|
+
locationJoinCondition: string;
|
|
283
|
+
locationColumn: (n: number) => string;
|
|
284
|
+
locationGroupKey: (n: number) => string;
|
|
285
|
+
locationSortKey: (n: number) => string;
|
|
286
|
+
locationCondition: (n: number) => string;
|
|
287
|
+
locationLeft: string;
|
|
288
|
+
locationRight: string;
|
|
289
|
+
/** One of IN's values, or a function's argument with no label. */
|
|
290
|
+
locationValue: (n: number) => string;
|
|
291
|
+
locationUnionQuery: (n: number) => string;
|
|
292
|
+
locationInSubquery: string;
|
|
293
|
+
issueInvalidStructure: string;
|
|
294
|
+
issueDuplicateId: string;
|
|
295
|
+
issueUnknownTable: string;
|
|
296
|
+
issueUnknownColumn: string;
|
|
297
|
+
issueTableNotInQuery: string;
|
|
298
|
+
issueUnqualifiedField: string;
|
|
299
|
+
issueIncomplete: string;
|
|
300
|
+
issueArgCount: string;
|
|
301
|
+
issueAmbiguousTable: string;
|
|
302
|
+
issueDuplicateTableName: string;
|
|
303
|
+
issueDerivedColumnName: string;
|
|
304
|
+
issueUnknownFunction: string;
|
|
305
|
+
issueJoinOrder: string;
|
|
306
|
+
issueDistinctSort: string;
|
|
307
|
+
issueNotGrouped: string;
|
|
308
|
+
issueUnknownAggregate: string;
|
|
309
|
+
issueMisplacedAggregate: string;
|
|
310
|
+
issueParamConflict: string;
|
|
311
|
+
issueFanOut: string;
|
|
312
|
+
issueCrossJoin: string;
|
|
313
|
+
issueDrillAcrossOutOfStep: string;
|
|
314
|
+
issueDrillAcrossFilterMixed: string;
|
|
315
|
+
issueUnlinkedJoin: string;
|
|
316
|
+
issueTooLong: string;
|
|
317
|
+
issueDialectUnsupported: string;
|
|
318
|
+
issueSubqueryColumns: string;
|
|
319
|
+
issueNotInSubquery: string;
|
|
320
|
+
issueNoLimit: string;
|
|
321
|
+
issueLimitTooHigh: string;
|
|
322
|
+
issueTypeMismatch: string;
|
|
323
|
+
issueInvalidPattern: string;
|
|
324
|
+
issueUnionColumns: string;
|
|
325
|
+
issueUnionTypes: string;
|
|
326
|
+
issueSharedOrder: string;
|
|
327
|
+
issueUnusedShared: string;
|
|
328
|
+
issueUnknownTableNamed: (table: string) => string;
|
|
329
|
+
issueUnknownColumnNamed: (table: string, column: string) => string;
|
|
330
|
+
issueTableNotInQueryNamed: (table: string) => string;
|
|
331
|
+
issueUnqualifiedFieldNamed: (column: string) => string;
|
|
332
|
+
issueAmbiguousTableNamed: (table: string) => string;
|
|
333
|
+
issueNoColumn: string;
|
|
334
|
+
issueNoValue: string;
|
|
335
|
+
issueNothingToCompare: string;
|
|
336
|
+
issueComparedWithNull: string;
|
|
337
|
+
issueNoJoinCondition: (table: string) => string;
|
|
338
|
+
issueEmptyGroup: string;
|
|
339
|
+
/** `part`: 'condition', or the keyword THEN. */
|
|
340
|
+
issueIfPartMissing: (part: string) => string;
|
|
341
|
+
issueCaseNoWhen: string;
|
|
342
|
+
issueInNoValues: string;
|
|
343
|
+
issueFunctionNeedsArgs: (fn: string, count: number) => string;
|
|
344
|
+
issueFunctionTakesArgs: (fn: string, count: number) => string;
|
|
345
|
+
issueDuplicateTableNamed: (name: string) => string;
|
|
346
|
+
issueDuplicateColumnNamed: (name: string) => string;
|
|
347
|
+
issueUnnamedColumn: string;
|
|
348
|
+
issueUnknownFunctionNamed: (fn: string) => string;
|
|
349
|
+
issueDialectUnsupportedNamed: (what: string) => string;
|
|
350
|
+
issueJoinOrderNamed: (table: string) => string;
|
|
351
|
+
issueNotGroupedNamed: (column: string) => string;
|
|
352
|
+
issueSelectAllGrouped: string;
|
|
353
|
+
issueMisplacedAggregateNamed: (fn: string) => string;
|
|
354
|
+
peekHint: string;
|
|
355
|
+
/** `keys`: its shortcut, as the user's keyboard has it (⌘F, Ctrl+F). */
|
|
356
|
+
find: (keys: string) => string;
|
|
357
|
+
findPlaceholder: string;
|
|
358
|
+
findNothing: string;
|
|
359
|
+
outline: string;
|
|
360
|
+
outlineCollapse: string;
|
|
361
|
+
outlineExpand: string;
|
|
362
|
+
outlineAllColumns: string;
|
|
363
|
+
outlineEmpty: string;
|
|
364
|
+
outlineLimit: (n: number) => string;
|
|
365
|
+
outlineOffset: (n: number) => string;
|
|
366
|
+
};
|
|
367
|
+
export type Messages = typeof DEFAULT_MESSAGES;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { type Messages } from './defaultMessages.js';
|
|
2
|
+
export { DEFAULT_MESSAGES, type Messages } from './defaultMessages.js';
|
|
3
|
+
declare const MessagesContext: import("react").Context<{
|
|
4
|
+
sectionFrom: string;
|
|
5
|
+
sectionWhere: string;
|
|
6
|
+
sectionGroup: string;
|
|
7
|
+
sectionSelect: string;
|
|
8
|
+
sectionOrder: string;
|
|
9
|
+
sectionShared: string;
|
|
10
|
+
main: string;
|
|
11
|
+
close: string;
|
|
12
|
+
jumpedTo: string;
|
|
13
|
+
editInSubCanvas: (slot: string) => string;
|
|
14
|
+
moveUp: string;
|
|
15
|
+
moveDown: string;
|
|
16
|
+
moveGroupUp: string;
|
|
17
|
+
moveGroupDown: string;
|
|
18
|
+
moveBranchUp: string;
|
|
19
|
+
moveBranchDown: string;
|
|
20
|
+
createCondition: string;
|
|
21
|
+
noCondition: string;
|
|
22
|
+
addCondition: string;
|
|
23
|
+
addGroup: string;
|
|
24
|
+
addIfExpression: string;
|
|
25
|
+
addCaseExpression: string;
|
|
26
|
+
wrapInGroup: string;
|
|
27
|
+
wrapInNewGroup: string;
|
|
28
|
+
collapseGroup: string;
|
|
29
|
+
negateCondition: string;
|
|
30
|
+
negateGroup: string;
|
|
31
|
+
removeNot: string;
|
|
32
|
+
delete: string;
|
|
33
|
+
deleteGroup: string;
|
|
34
|
+
deleteIf: string;
|
|
35
|
+
deleteCase: string;
|
|
36
|
+
addExists: string;
|
|
37
|
+
existsVia: (table: string, via: string) => string;
|
|
38
|
+
existsHas: string;
|
|
39
|
+
existsLinkedBy: string;
|
|
40
|
+
existsWhere: string;
|
|
41
|
+
existsAny: string;
|
|
42
|
+
existsEdit: string;
|
|
43
|
+
addBranch: string;
|
|
44
|
+
removeBranch: string;
|
|
45
|
+
addElse: string;
|
|
46
|
+
removeElse: string;
|
|
47
|
+
addArg: string;
|
|
48
|
+
removeArg: string;
|
|
49
|
+
typeField: string;
|
|
50
|
+
typeValue: string;
|
|
51
|
+
typeNull: string;
|
|
52
|
+
typeText: string;
|
|
53
|
+
typeNumber: string;
|
|
54
|
+
typeDate: string;
|
|
55
|
+
typeBoolean: string;
|
|
56
|
+
typeFunction: string;
|
|
57
|
+
typeExpression: string;
|
|
58
|
+
typeParam: string;
|
|
59
|
+
typeRelativeDate: string;
|
|
60
|
+
relativeDate: typeof import("./relativeDateWords.js").default;
|
|
61
|
+
relativeCustom: string;
|
|
62
|
+
relativeUnits: Record<import("../ast.js").RelativeDate["unit"], string>;
|
|
63
|
+
relativeAgo: string;
|
|
64
|
+
relativeFromNow: string;
|
|
65
|
+
relativeSameDay: string;
|
|
66
|
+
relativeStart: string;
|
|
67
|
+
relativeEnd: string;
|
|
68
|
+
paramHint: string;
|
|
69
|
+
paramNamePlaceholder: string;
|
|
70
|
+
typeMenuBasic: string;
|
|
71
|
+
functionGroupAggregate: string;
|
|
72
|
+
functionGroupOther: string;
|
|
73
|
+
typeMenuCondition: string;
|
|
74
|
+
typeSubquery: string;
|
|
75
|
+
typeMenuQuery: string;
|
|
76
|
+
typeList: string;
|
|
77
|
+
nullValue: string;
|
|
78
|
+
nullInUnion: string;
|
|
79
|
+
fillInValue: string;
|
|
80
|
+
openUnionBranch: (table: string) => string;
|
|
81
|
+
removeUnionBranch: (table: string) => string;
|
|
82
|
+
joinTableGroup: string;
|
|
83
|
+
createUnion: string;
|
|
84
|
+
unionWithQuery: string;
|
|
85
|
+
addUnionQuery: string;
|
|
86
|
+
unwrapUnion: string;
|
|
87
|
+
newUnionQuery: string;
|
|
88
|
+
joinUnion: string;
|
|
89
|
+
addRowsGroup: string;
|
|
90
|
+
addListValue: string;
|
|
91
|
+
removeListValue: (value: string) => string;
|
|
92
|
+
subqueryLabel: string;
|
|
93
|
+
typeMenuMeasure: string;
|
|
94
|
+
measureFrom: string;
|
|
95
|
+
measureNeedsGroups: string;
|
|
96
|
+
measureUnlinked: (table: string) => string;
|
|
97
|
+
measureCount: string;
|
|
98
|
+
measureOf: (aggregate: "SUM" | "AVG" | "MIN" | "MAX", column: string) => string;
|
|
99
|
+
keepInStep: string;
|
|
100
|
+
measureFollows: (grain: string) => string;
|
|
101
|
+
measureAlso: (filters: string) => string;
|
|
102
|
+
measureRows: (base: string) => string;
|
|
103
|
+
chooseBaseTableHint: string;
|
|
104
|
+
chooseBaseTable: string;
|
|
105
|
+
addTable: string;
|
|
106
|
+
removeJoin: string;
|
|
107
|
+
removeBaseTable: string;
|
|
108
|
+
setJoinCondition: string;
|
|
109
|
+
conditionCount: (count: number) => string;
|
|
110
|
+
joinOrderConflict: (table: string, needs: string) => string;
|
|
111
|
+
createSubQuery: string;
|
|
112
|
+
newSubQuery: string;
|
|
113
|
+
editSubQuery: string;
|
|
114
|
+
viewSubQuery: string;
|
|
115
|
+
joinToEveryRow: string;
|
|
116
|
+
joinedToEveryRow: string;
|
|
117
|
+
sharedQueriesGroup: string;
|
|
118
|
+
createSharedQuery: string;
|
|
119
|
+
newSharedQuery: string;
|
|
120
|
+
editSharedQuery: string;
|
|
121
|
+
viewSharedQuery: string;
|
|
122
|
+
removeSharedQuery: string;
|
|
123
|
+
addSharedQuery: string;
|
|
124
|
+
sharedUsedIn: (count: number) => string;
|
|
125
|
+
makeShared: string;
|
|
126
|
+
makeSubQuery: string;
|
|
127
|
+
removeSharedKeepPlaces: string;
|
|
128
|
+
removeSharedWithPlaces: string;
|
|
129
|
+
removeSharedIsBase: string;
|
|
130
|
+
sharedNameTaken: (name: string) => string;
|
|
131
|
+
derivedNameEmpty: string;
|
|
132
|
+
derivedNameTaken: (name: string) => string;
|
|
133
|
+
groupRows: string;
|
|
134
|
+
groupKeyFromColumn: (column: string) => string;
|
|
135
|
+
onlyGroupKeys: string;
|
|
136
|
+
addGrouping: string;
|
|
137
|
+
removeGrouping: string;
|
|
138
|
+
notGrouped: string;
|
|
139
|
+
havingCaption: string;
|
|
140
|
+
addHaving: string;
|
|
141
|
+
notPerGroup: string;
|
|
142
|
+
groupByColumn: string;
|
|
143
|
+
fanOut: (tables: string) => string;
|
|
144
|
+
groupedNeedsColumns: string;
|
|
145
|
+
countRows: string;
|
|
146
|
+
countValues: string;
|
|
147
|
+
countDistinct: string;
|
|
148
|
+
joinEveryValue: string;
|
|
149
|
+
joinDistinctValues: string;
|
|
150
|
+
addColumn: string;
|
|
151
|
+
allColumns: string;
|
|
152
|
+
removeColumn: string;
|
|
153
|
+
aliasPlaceholder: string;
|
|
154
|
+
distinct: string;
|
|
155
|
+
distinctOn: string;
|
|
156
|
+
addSort: string;
|
|
157
|
+
removeSort: string;
|
|
158
|
+
toggleSortDirection: string;
|
|
159
|
+
limitRows: string;
|
|
160
|
+
removeLimit: string;
|
|
161
|
+
showRowsBefore: string;
|
|
162
|
+
showRowsAfter: string;
|
|
163
|
+
skipRowsBefore: string;
|
|
164
|
+
skipRowsAfter: string;
|
|
165
|
+
rowRange: (from: number, to?: number) => string;
|
|
166
|
+
allRows: string;
|
|
167
|
+
noRows: string;
|
|
168
|
+
pagingNeedsSort: string;
|
|
169
|
+
sortNeedsSelected: string;
|
|
170
|
+
noSort: string;
|
|
171
|
+
emptyText: string;
|
|
172
|
+
markEmpty: string;
|
|
173
|
+
unmarkEmpty: string;
|
|
174
|
+
run: string;
|
|
175
|
+
running: string;
|
|
176
|
+
runShortcut: string;
|
|
177
|
+
runNeedsTable: string;
|
|
178
|
+
runNeedsFixes: (count: number) => string;
|
|
179
|
+
runFailed: string;
|
|
180
|
+
runRows: (count: number, truncated: boolean) => string;
|
|
181
|
+
runNoRows: string;
|
|
182
|
+
runOutdated: string;
|
|
183
|
+
closeResults: string;
|
|
184
|
+
problems: (count: number) => string;
|
|
185
|
+
problemsErrors: string;
|
|
186
|
+
problemsWarnings: string;
|
|
187
|
+
problemsQuery: string;
|
|
188
|
+
locationJoinCondition: string;
|
|
189
|
+
locationColumn: (n: number) => string;
|
|
190
|
+
locationGroupKey: (n: number) => string;
|
|
191
|
+
locationSortKey: (n: number) => string;
|
|
192
|
+
locationCondition: (n: number) => string;
|
|
193
|
+
locationLeft: string;
|
|
194
|
+
locationRight: string;
|
|
195
|
+
locationValue: (n: number) => string;
|
|
196
|
+
locationUnionQuery: (n: number) => string;
|
|
197
|
+
locationInSubquery: string;
|
|
198
|
+
issueInvalidStructure: string;
|
|
199
|
+
issueDuplicateId: string;
|
|
200
|
+
issueUnknownTable: string;
|
|
201
|
+
issueUnknownColumn: string;
|
|
202
|
+
issueTableNotInQuery: string;
|
|
203
|
+
issueUnqualifiedField: string;
|
|
204
|
+
issueIncomplete: string;
|
|
205
|
+
issueArgCount: string;
|
|
206
|
+
issueAmbiguousTable: string;
|
|
207
|
+
issueDuplicateTableName: string;
|
|
208
|
+
issueDerivedColumnName: string;
|
|
209
|
+
issueUnknownFunction: string;
|
|
210
|
+
issueJoinOrder: string;
|
|
211
|
+
issueDistinctSort: string;
|
|
212
|
+
issueNotGrouped: string;
|
|
213
|
+
issueUnknownAggregate: string;
|
|
214
|
+
issueMisplacedAggregate: string;
|
|
215
|
+
issueParamConflict: string;
|
|
216
|
+
issueFanOut: string;
|
|
217
|
+
issueCrossJoin: string;
|
|
218
|
+
issueDrillAcrossOutOfStep: string;
|
|
219
|
+
issueDrillAcrossFilterMixed: string;
|
|
220
|
+
issueUnlinkedJoin: string;
|
|
221
|
+
issueTooLong: string;
|
|
222
|
+
issueDialectUnsupported: string;
|
|
223
|
+
issueSubqueryColumns: string;
|
|
224
|
+
issueNotInSubquery: string;
|
|
225
|
+
issueNoLimit: string;
|
|
226
|
+
issueLimitTooHigh: string;
|
|
227
|
+
issueTypeMismatch: string;
|
|
228
|
+
issueInvalidPattern: string;
|
|
229
|
+
issueUnionColumns: string;
|
|
230
|
+
issueUnionTypes: string;
|
|
231
|
+
issueSharedOrder: string;
|
|
232
|
+
issueUnusedShared: string;
|
|
233
|
+
issueUnknownTableNamed: (table: string) => string;
|
|
234
|
+
issueUnknownColumnNamed: (table: string, column: string) => string;
|
|
235
|
+
issueTableNotInQueryNamed: (table: string) => string;
|
|
236
|
+
issueUnqualifiedFieldNamed: (column: string) => string;
|
|
237
|
+
issueAmbiguousTableNamed: (table: string) => string;
|
|
238
|
+
issueNoColumn: string;
|
|
239
|
+
issueNoValue: string;
|
|
240
|
+
issueNothingToCompare: string;
|
|
241
|
+
issueComparedWithNull: string;
|
|
242
|
+
issueNoJoinCondition: (table: string) => string;
|
|
243
|
+
issueEmptyGroup: string;
|
|
244
|
+
issueIfPartMissing: (part: string) => string;
|
|
245
|
+
issueCaseNoWhen: string;
|
|
246
|
+
issueInNoValues: string;
|
|
247
|
+
issueFunctionNeedsArgs: (fn: string, count: number) => string;
|
|
248
|
+
issueFunctionTakesArgs: (fn: string, count: number) => string;
|
|
249
|
+
issueDuplicateTableNamed: (name: string) => string;
|
|
250
|
+
issueDuplicateColumnNamed: (name: string) => string;
|
|
251
|
+
issueUnnamedColumn: string;
|
|
252
|
+
issueUnknownFunctionNamed: (fn: string) => string;
|
|
253
|
+
issueDialectUnsupportedNamed: (what: string) => string;
|
|
254
|
+
issueJoinOrderNamed: (table: string) => string;
|
|
255
|
+
issueNotGroupedNamed: (column: string) => string;
|
|
256
|
+
issueSelectAllGrouped: string;
|
|
257
|
+
issueMisplacedAggregateNamed: (fn: string) => string;
|
|
258
|
+
peekHint: string;
|
|
259
|
+
find: (keys: string) => string;
|
|
260
|
+
findPlaceholder: string;
|
|
261
|
+
findNothing: string;
|
|
262
|
+
outline: string;
|
|
263
|
+
outlineCollapse: string;
|
|
264
|
+
outlineExpand: string;
|
|
265
|
+
outlineAllColumns: string;
|
|
266
|
+
outlineEmpty: string;
|
|
267
|
+
outlineLimit: (n: number) => string;
|
|
268
|
+
outlineOffset: (n: number) => string;
|
|
269
|
+
}>;
|
|
270
|
+
/** The interface text in effect (defaults merged with PipelineEditor's
|
|
271
|
+
* `messages` prop). */
|
|
272
|
+
export declare function useMessages(): Messages;
|
|
273
|
+
export default MessagesContext;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** A random id for a new query (`createEmptyQuery`): 24 lowercase hex
|
|
2
|
+
* characters from `crypto.getRandomValues`, which, unlike
|
|
3
|
+
* `crypto.randomUUID`, works outside secure contexts (plain-http hosts).
|
|
4
|
+
* Only needs to be unique, not secret. */
|
|
5
|
+
export default function createId(): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PipelineAnchor } from './pipelineAnchor.js';
|
|
2
|
+
import type { QueryPipeline } from './queryAst.js';
|
|
3
|
+
import { type QueryPath } from './derivedTables.js';
|
|
4
|
+
/** `segments` split into the nested queries they lead through (a
|
|
5
|
+
* QueryPath) and the rest, within the query they lead to. A nested query
|
|
6
|
+
* is anything on the way with an `id` and a `query`: a derived base
|
|
7
|
+
* (`from.query.…`), a derived join (`joins[i].query.…`), an IN's sub query
|
|
8
|
+
* (`where.right.query.…`). (An EXISTS has no id: it's part of its query.) */
|
|
9
|
+
export declare function issueQueryPath(query: QueryPipeline, segments: (string | number)[]): {
|
|
10
|
+
queryPath: QueryPath;
|
|
11
|
+
local: (string | number)[];
|
|
12
|
+
};
|
|
13
|
+
/** The anchor of an issue at `segments` in `query` — 'structural' when it
|
|
14
|
+
* isn't inside an expression the editor can open (the FROM list, LIMIT, a
|
|
15
|
+
* join with no ON condition yet: all on the main canvas, or on a derived
|
|
16
|
+
* table's own). Inside a derived table, it carries the table's QueryPath. */
|
|
17
|
+
export default function issueAnchor(query: QueryPipeline, segments: (string | number)[]): PipelineAnchor;
|
|
18
|
+
/** Where the query at `queryPath` is in `query`: its segments, and the
|
|
19
|
+
* query itself — issueQueryPath's reverse. Undefined once one on the way
|
|
20
|
+
* is gone. */
|
|
21
|
+
export declare function queryPathSegments(query: QueryPipeline, queryPath: QueryPath): {
|
|
22
|
+
segments: (string | number)[];
|
|
23
|
+
query: QueryPipeline;
|
|
24
|
+
} | undefined;
|
|
25
|
+
/** The segments of `anchor` in `query` — issueAnchor's reverse: what the
|
|
26
|
+
* editor shows at a spot (a node in a tree, by the canvas it's on), as
|
|
27
|
+
* the query's path (a validateQuery issue's kind of path). Undefined for a
|
|
28
|
+
* 'structural' anchor, or one whose query or item is gone. */
|
|
29
|
+
export declare function anchorSegments(query: QueryPipeline, anchor: PipelineAnchor): (string | number)[] | undefined;
|