@elaraai/e3-ui-components 1.0.83 → 1.0.85
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 +113 -6
- package/dist/components/DataTaskPreview.d.ts +35 -1
- package/dist/components/DataTaskPreview.d.ts.map +1 -1
- package/dist/components/DatasetPreview.d.ts +16 -0
- package/dist/components/DatasetPreview.d.ts.map +1 -1
- package/dist/components/InputPreview.d.ts +12 -0
- package/dist/components/InputPreview.d.ts.map +1 -1
- package/dist/components/PagedDatasetPreview.d.ts +15 -0
- package/dist/components/PagedDatasetPreview.d.ts.map +1 -1
- package/dist/components/TaskLogs.d.ts +19 -0
- package/dist/components/TaskLogs.d.ts.map +1 -1
- package/dist/components/TaskPreview.d.ts +24 -0
- package/dist/components/TaskPreview.d.ts.map +1 -1
- package/dist/components/UITaskPreview.d.ts +4 -1
- package/dist/components/UITaskPreview.d.ts.map +1 -1
- package/dist/components/VirtualizedLogViewer.d.ts +29 -1
- package/dist/components/VirtualizedLogViewer.d.ts.map +1 -1
- package/dist/components/controlled-search.d.ts +22 -0
- package/dist/components/controlled-search.d.ts.map +1 -0
- package/dist/components/preview-controls.d.ts +73 -0
- package/dist/components/preview-controls.d.ts.map +1 -0
- package/dist/diff/index.d.ts.map +1 -1
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/hooks/executions.d.ts +17 -0
- package/dist/hooks/executions.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useDatasetValue.d.ts +19 -1
- package/dist/hooks/useDatasetValue.d.ts.map +1 -1
- package/dist/hooks/useTaskLogsHook.d.ts +67 -3
- package/dist/hooks/useTaskLogsHook.d.ts.map +1 -1
- package/dist/in-memory-call-7_3frW52.js +615 -0
- package/dist/in-memory-call-7_3frW52.js.map +1 -0
- package/dist/in-memory-call-_r5DJotS.cjs +614 -0
- package/dist/in-memory-call-_r5DJotS.cjs.map +1 -0
- package/dist/index.cjs +25860 -5731
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28383 -8253
- package/dist/index.js.map +1 -1
- package/dist/platform/bind-runtime.d.ts +18 -3
- package/dist/platform/bind-runtime.d.ts.map +1 -1
- package/dist/platform/dataset-hooks.d.ts +15 -3
- package/dist/platform/dataset-hooks.d.ts.map +1 -1
- package/dist/platform/dataset-store.d.ts +35 -7
- package/dist/platform/dataset-store.d.ts.map +1 -1
- package/dist/platform/e3-config.d.ts +26 -2
- package/dist/platform/e3-config.d.ts.map +1 -1
- package/dist/platform/func-runtime.d.ts +11 -5
- package/dist/platform/func-runtime.d.ts.map +1 -1
- package/dist/platform/index.d.ts +2 -2
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/paged-runtime.d.ts +46 -9
- package/dist/platform/paged-runtime.d.ts.map +1 -1
- package/dist/platform/record-runtime.d.ts +45 -7
- package/dist/platform/record-runtime.d.ts.map +1 -1
- package/dist/platform/recovery.d.ts +44 -0
- package/dist/platform/recovery.d.ts.map +1 -0
- package/dist/platform/staged-store.d.ts +16 -0
- package/dist/platform/staged-store.d.ts.map +1 -1
- package/dist/platform/tracked-channel.d.ts +12 -0
- package/dist/platform/tracked-channel.d.ts.map +1 -1
- package/dist/query/about.d.ts +50 -0
- package/dist/query/about.d.ts.map +1 -0
- package/dist/query/autocomplete.d.ts +112 -0
- package/dist/query/autocomplete.d.ts.map +1 -0
- package/dist/query/builder.d.ts +29 -0
- package/dist/query/builder.d.ts.map +1 -0
- package/dist/query/calls.d.ts +46 -0
- package/dist/query/calls.d.ts.map +1 -0
- package/dist/query/datasets-tab.d.ts +52 -0
- package/dist/query/datasets-tab.d.ts.map +1 -0
- package/dist/query/downloads.d.ts +29 -0
- package/dist/query/downloads.d.ts.map +1 -0
- package/dist/query/drops.d.ts +28 -0
- package/dist/query/drops.d.ts.map +1 -0
- package/dist/query/foot.d.ts +22 -0
- package/dist/query/foot.d.ts.map +1 -0
- package/dist/query/hooks.d.ts +265 -0
- package/dist/query/hooks.d.ts.map +1 -0
- package/dist/query/in-memory-call.d.ts +150 -0
- package/dist/query/in-memory-call.d.ts.map +1 -0
- package/dist/query/jq-editor.d.ts +34 -0
- package/dist/query/jq-editor.d.ts.map +1 -0
- package/dist/query/library-tab.d.ts +33 -0
- package/dist/query/library-tab.d.ts.map +1 -0
- package/dist/query/library.d.ts +20 -0
- package/dist/query/library.d.ts.map +1 -0
- package/dist/query/model/cards.d.ts +179 -0
- package/dist/query/model/cards.d.ts.map +1 -0
- package/dist/query/model/index.d.ts +19 -0
- package/dist/query/model/index.d.ts.map +1 -0
- package/dist/query/model/messages.d.ts +1253 -0
- package/dist/query/model/messages.d.ts.map +1 -0
- package/dist/query/model/refs.d.ts +92 -0
- package/dist/query/model/refs.d.ts.map +1 -0
- package/dist/query/model/slots.d.ts +213 -0
- package/dist/query/model/slots.d.ts.map +1 -0
- package/dist/query/model/summaries.d.ts +104 -0
- package/dist/query/model/summaries.d.ts.map +1 -0
- package/dist/query/model/words.d.ts +331 -0
- package/dist/query/model/words.d.ts.map +1 -0
- package/dist/query/one-shot.d.ts +266 -0
- package/dist/query/one-shot.d.ts.map +1 -0
- package/dist/query/open-query.d.ts +214 -0
- package/dist/query/open-query.d.ts.map +1 -0
- package/dist/query/parts.d.ts +115 -0
- package/dist/query/parts.d.ts.map +1 -0
- package/dist/query/plan-popover.d.ts +22 -0
- package/dist/query/plan-popover.d.ts.map +1 -0
- package/dist/query/plan.d.ts +353 -0
- package/dist/query/plan.d.ts.map +1 -0
- package/dist/query/query-east.d.ts +21 -0
- package/dist/query/query-east.d.ts.map +1 -0
- package/dist/query/query-tab.d.ts +21 -0
- package/dist/query/query-tab.d.ts.map +1 -0
- package/dist/query/results-table.d.ts +153 -0
- package/dist/query/results-table.d.ts.map +1 -0
- package/dist/query/results.d.ts +137 -0
- package/dist/query/results.d.ts.map +1 -0
- package/dist/query/run.d.ts +199 -0
- package/dist/query/run.d.ts.map +1 -0
- package/dist/query/save-popover.d.ts +29 -0
- package/dist/query/save-popover.d.ts.map +1 -0
- package/dist/query/session.d.ts +409 -0
- package/dist/query/session.d.ts.map +1 -0
- package/dist/query/shape-line.d.ts +21 -0
- package/dist/query/shape-line.d.ts.map +1 -0
- package/dist/query/source.d.ts +21 -0
- package/dist/query/source.d.ts.map +1 -0
- package/dist/query/status-line.d.ts +48 -0
- package/dist/query/status-line.d.ts.map +1 -0
- package/dist/query/step-card.d.ts +30 -0
- package/dist/query/step-card.d.ts.map +1 -0
- package/dist/query/steps/check.d.ts +162 -0
- package/dist/query/steps/check.d.ts.map +1 -0
- package/dist/query/steps/count.d.ts +49 -0
- package/dist/query/steps/count.d.ts.map +1 -0
- package/dist/query/steps/edit.d.ts +108 -0
- package/dist/query/steps/edit.d.ts.map +1 -0
- package/dist/query/steps/fields.d.ts +101 -0
- package/dist/query/steps/fields.d.ts.map +1 -0
- package/dist/query/steps/index.d.ts +22 -0
- package/dist/query/steps/index.d.ts.map +1 -0
- package/dist/query/steps/jq.d.ts +188 -0
- package/dist/query/steps/jq.d.ts.map +1 -0
- package/dist/query/steps/parse.d.ts +38 -0
- package/dist/query/steps/parse.d.ts.map +1 -0
- package/dist/query/steps/print.d.ts +195 -0
- package/dist/query/steps/print.d.ts.map +1 -0
- package/dist/query/steps/shape.d.ts +90 -0
- package/dist/query/steps/shape.d.ts.map +1 -0
- package/dist/query/steps/values.d.ts +85 -0
- package/dist/query/steps/values.d.ts.map +1 -0
- package/dist/query/toolbar.d.ts +56 -0
- package/dist/query/toolbar.d.ts.map +1 -0
- package/dist/query/use-query-editor.d.ts +153 -0
- package/dist/query/use-query-editor.d.ts.map +1 -0
- package/dist/query/use-query-session.d.ts +55 -0
- package/dist/query/use-query-session.d.ts.map +1 -0
- package/dist/query/words.d.ts +60 -0
- package/dist/query/words.d.ts.map +1 -0
- package/dist/query.cjs +16 -0
- package/dist/query.cjs.map +1 -0
- package/dist/query.js +16 -0
- package/dist/query.js.map +1 -0
- package/dist/shared/name-popover.d.ts +38 -0
- package/dist/shared/name-popover.d.ts.map +1 -0
- package/dist/studio/builder.d.ts +20 -0
- package/dist/studio/builder.d.ts.map +1 -0
- package/dist/studio/inspector.d.ts +18 -0
- package/dist/studio/inspector.d.ts.map +1 -0
- package/dist/studio/library.d.ts +20 -0
- package/dist/studio/library.d.ts.map +1 -0
- package/dist/studio/messages.d.ts +318 -0
- package/dist/studio/messages.d.ts.map +1 -0
- package/dist/studio/open-page.d.ts +13 -0
- package/dist/studio/open-page.d.ts.map +1 -0
- package/dist/studio/page.d.ts +61 -0
- package/dist/studio/page.d.ts.map +1 -0
- package/dist/studio/palette.d.ts +41 -0
- package/dist/studio/palette.d.ts.map +1 -0
- package/dist/studio/publish.d.ts +21 -0
- package/dist/studio/publish.d.ts.map +1 -0
- package/dist/studio/save-template.d.ts +18 -0
- package/dist/studio/save-template.d.ts.map +1 -0
- package/dist/studio/studio-east.d.ts +45 -0
- package/dist/studio/studio-east.d.ts.map +1 -0
- package/package.json +19 -14
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { OptionType, StringType, StructType, VariantType, ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { SavedQueryType } from '@elaraai/e3-ui/internal';
|
|
3
|
+
/**
|
|
4
|
+
* The query open in a builder.
|
|
5
|
+
*
|
|
6
|
+
* @property new - A query not yet saved: `id` tells it from every other new
|
|
7
|
+
* query, so each keeps its own drafts; `source` is the data source it starts
|
|
8
|
+
* from; `from`, when it begins as a run of this viewer's that was never
|
|
9
|
+
* saved, is that run — its name, its description and its checked query
|
|
10
|
+
* @property saved - A saved query, by its name
|
|
11
|
+
*/
|
|
12
|
+
export declare const QueryOpenType: VariantType<{
|
|
13
|
+
readonly new: StructType<{
|
|
14
|
+
readonly id: StringType;
|
|
15
|
+
readonly source: StringType;
|
|
16
|
+
readonly from: OptionType<StructType<{
|
|
17
|
+
readonly name: StringType;
|
|
18
|
+
readonly description: OptionType<StringType>;
|
|
19
|
+
readonly program: import('@elaraai/east').RecursiveType<VariantType<{
|
|
20
|
+
readonly alternative: StructType<{
|
|
21
|
+
readonly left: import('@elaraai/east').RecursiveTypeMarker;
|
|
22
|
+
readonly right: import('@elaraai/east').RecursiveTypeMarker;
|
|
23
|
+
}>;
|
|
24
|
+
readonly array: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
25
|
+
readonly binary: StructType<{
|
|
26
|
+
readonly left: import('@elaraai/east').RecursiveTypeMarker;
|
|
27
|
+
readonly op: StringType;
|
|
28
|
+
readonly right: import('@elaraai/east').RecursiveTypeMarker;
|
|
29
|
+
}>;
|
|
30
|
+
readonly bind: StructType<{
|
|
31
|
+
readonly body: import('@elaraai/east').RecursiveTypeMarker;
|
|
32
|
+
readonly patterns: import('@elaraai/east').ArrayType<import('@elaraai/east').RecursiveType<VariantType<{
|
|
33
|
+
readonly array: import('@elaraai/east').ArrayType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
34
|
+
readonly object: import('@elaraai/east').ArrayType<StructType<{
|
|
35
|
+
readonly key: StringType;
|
|
36
|
+
readonly value: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
37
|
+
}>>;
|
|
38
|
+
readonly variable: StringType;
|
|
39
|
+
}>>>;
|
|
40
|
+
readonly source: import('@elaraai/east').RecursiveTypeMarker;
|
|
41
|
+
}>;
|
|
42
|
+
readonly break: StringType;
|
|
43
|
+
readonly call: StructType<{
|
|
44
|
+
readonly args: import('@elaraai/east').ArrayType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
45
|
+
readonly name: StringType;
|
|
46
|
+
}>;
|
|
47
|
+
readonly comma: StructType<{
|
|
48
|
+
readonly left: import('@elaraai/east').RecursiveTypeMarker;
|
|
49
|
+
readonly right: import('@elaraai/east').RecursiveTypeMarker;
|
|
50
|
+
}>;
|
|
51
|
+
readonly def: StructType<{
|
|
52
|
+
readonly body: import('@elaraai/east').RecursiveTypeMarker;
|
|
53
|
+
readonly name: StringType;
|
|
54
|
+
readonly params: import('@elaraai/east').ArrayType<StringType>;
|
|
55
|
+
readonly rest: import('@elaraai/east').RecursiveTypeMarker;
|
|
56
|
+
}>;
|
|
57
|
+
readonly descend: import('@elaraai/east').NullType;
|
|
58
|
+
readonly field: StructType<{
|
|
59
|
+
readonly name: StringType;
|
|
60
|
+
readonly optional: import('@elaraai/east').BooleanType;
|
|
61
|
+
readonly target: import('@elaraai/east').RecursiveTypeMarker;
|
|
62
|
+
}>;
|
|
63
|
+
readonly foreach: StructType<{
|
|
64
|
+
readonly extract: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
65
|
+
readonly init: import('@elaraai/east').RecursiveTypeMarker;
|
|
66
|
+
readonly pattern: import('@elaraai/east').RecursiveType<VariantType<{
|
|
67
|
+
readonly array: import('@elaraai/east').ArrayType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
68
|
+
readonly object: import('@elaraai/east').ArrayType<StructType<{
|
|
69
|
+
readonly key: StringType;
|
|
70
|
+
readonly value: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
71
|
+
}>>;
|
|
72
|
+
readonly variable: StringType;
|
|
73
|
+
}>>;
|
|
74
|
+
readonly source: import('@elaraai/east').RecursiveTypeMarker;
|
|
75
|
+
readonly update: import('@elaraai/east').RecursiveTypeMarker;
|
|
76
|
+
}>;
|
|
77
|
+
readonly format: StructType<{
|
|
78
|
+
readonly name: StringType;
|
|
79
|
+
readonly string: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
80
|
+
}>;
|
|
81
|
+
readonly identity: import('@elaraai/east').NullType;
|
|
82
|
+
readonly if: StructType<{
|
|
83
|
+
readonly branches: import('@elaraai/east').ArrayType<StructType<{
|
|
84
|
+
readonly condition: import('@elaraai/east').RecursiveTypeMarker;
|
|
85
|
+
readonly then: import('@elaraai/east').RecursiveTypeMarker;
|
|
86
|
+
}>>;
|
|
87
|
+
readonly otherwise: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
88
|
+
}>;
|
|
89
|
+
readonly index: StructType<{
|
|
90
|
+
readonly index: import('@elaraai/east').RecursiveTypeMarker;
|
|
91
|
+
readonly optional: import('@elaraai/east').BooleanType;
|
|
92
|
+
readonly target: import('@elaraai/east').RecursiveTypeMarker;
|
|
93
|
+
}>;
|
|
94
|
+
readonly iterate: StructType<{
|
|
95
|
+
readonly optional: import('@elaraai/east').BooleanType;
|
|
96
|
+
readonly target: import('@elaraai/east').RecursiveTypeMarker;
|
|
97
|
+
}>;
|
|
98
|
+
readonly label: StructType<{
|
|
99
|
+
readonly body: import('@elaraai/east').RecursiveTypeMarker;
|
|
100
|
+
readonly name: StringType;
|
|
101
|
+
}>;
|
|
102
|
+
readonly literal: VariantType<{
|
|
103
|
+
readonly boolean: import('@elaraai/east').BooleanType;
|
|
104
|
+
readonly float: import('@elaraai/east').FloatType;
|
|
105
|
+
readonly integer: import('@elaraai/east').IntegerType;
|
|
106
|
+
readonly null: import('@elaraai/east').NullType;
|
|
107
|
+
readonly string: StringType;
|
|
108
|
+
}>;
|
|
109
|
+
readonly negate: import('@elaraai/east').RecursiveTypeMarker;
|
|
110
|
+
readonly object: import('@elaraai/east').ArrayType<StructType<{
|
|
111
|
+
readonly key: VariantType<{
|
|
112
|
+
readonly computed: import('@elaraai/east').RecursiveTypeMarker;
|
|
113
|
+
readonly name: StringType;
|
|
114
|
+
readonly variable: StringType;
|
|
115
|
+
}>;
|
|
116
|
+
readonly value: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
117
|
+
}>>;
|
|
118
|
+
readonly pipe: StructType<{
|
|
119
|
+
readonly left: import('@elaraai/east').RecursiveTypeMarker;
|
|
120
|
+
readonly right: import('@elaraai/east').RecursiveTypeMarker;
|
|
121
|
+
}>;
|
|
122
|
+
readonly reduce: StructType<{
|
|
123
|
+
readonly init: import('@elaraai/east').RecursiveTypeMarker;
|
|
124
|
+
readonly pattern: import('@elaraai/east').RecursiveType<VariantType<{
|
|
125
|
+
readonly array: import('@elaraai/east').ArrayType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
126
|
+
readonly object: import('@elaraai/east').ArrayType<StructType<{
|
|
127
|
+
readonly key: StringType;
|
|
128
|
+
readonly value: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
129
|
+
}>>;
|
|
130
|
+
readonly variable: StringType;
|
|
131
|
+
}>>;
|
|
132
|
+
readonly source: import('@elaraai/east').RecursiveTypeMarker;
|
|
133
|
+
readonly update: import('@elaraai/east').RecursiveTypeMarker;
|
|
134
|
+
}>;
|
|
135
|
+
readonly slice: StructType<{
|
|
136
|
+
readonly from: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
137
|
+
readonly optional: import('@elaraai/east').BooleanType;
|
|
138
|
+
readonly target: import('@elaraai/east').RecursiveTypeMarker;
|
|
139
|
+
readonly to: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
140
|
+
}>;
|
|
141
|
+
readonly string: import('@elaraai/east').ArrayType<VariantType<{
|
|
142
|
+
readonly interpolate: import('@elaraai/east').RecursiveTypeMarker;
|
|
143
|
+
readonly text: StringType;
|
|
144
|
+
}>>;
|
|
145
|
+
readonly try: StructType<{
|
|
146
|
+
readonly body: import('@elaraai/east').RecursiveTypeMarker;
|
|
147
|
+
readonly catch: OptionType<import('@elaraai/east').RecursiveTypeMarker>;
|
|
148
|
+
}>;
|
|
149
|
+
readonly update: StructType<{
|
|
150
|
+
readonly op: StringType;
|
|
151
|
+
readonly path: import('@elaraai/east').RecursiveTypeMarker;
|
|
152
|
+
readonly value: import('@elaraai/east').RecursiveTypeMarker;
|
|
153
|
+
}>;
|
|
154
|
+
readonly variable: StringType;
|
|
155
|
+
}>>;
|
|
156
|
+
readonly root: import('@elaraai/east').ArrayType<StructType<{
|
|
157
|
+
readonly name: StringType;
|
|
158
|
+
readonly path: import('@elaraai/east').ArrayType<VariantType<{
|
|
159
|
+
readonly field: StringType;
|
|
160
|
+
}>>;
|
|
161
|
+
}>>;
|
|
162
|
+
readonly saved_at: import('@elaraai/east').DateTimeType;
|
|
163
|
+
}>>;
|
|
164
|
+
}>;
|
|
165
|
+
readonly saved: StringType;
|
|
166
|
+
}>;
|
|
167
|
+
/** The query open in a builder. */
|
|
168
|
+
export type QueryOpen = ValueTypeOf<typeof QueryOpenType>;
|
|
169
|
+
/**
|
|
170
|
+
* The notice a query arrived with.
|
|
171
|
+
*
|
|
172
|
+
* @property sourceId - The session of the query it arrived with ({@link querySourceId})
|
|
173
|
+
* @property text - What the Query tab says when that query opens
|
|
174
|
+
*/
|
|
175
|
+
export declare const QueryArrivalType: StructType<{
|
|
176
|
+
readonly sourceId: StringType;
|
|
177
|
+
readonly text: StringType;
|
|
178
|
+
}>;
|
|
179
|
+
/** The notice a query arrived with. */
|
|
180
|
+
export type QueryArrival = ValueTypeOf<typeof QueryArrivalType>;
|
|
181
|
+
/**
|
|
182
|
+
* The open query's editing session's source id — `query.saved:"Big orders"`,
|
|
183
|
+
* or `query.new:"1"` — one session, and its drafts, per query.
|
|
184
|
+
*
|
|
185
|
+
* @param open - The open query
|
|
186
|
+
* @returns Its source id
|
|
187
|
+
*/
|
|
188
|
+
export declare function querySourceId(open: QueryOpen): string;
|
|
189
|
+
/**
|
|
190
|
+
* A new query: on a data source, or begun as a run of this viewer's that was
|
|
191
|
+
* never saved — its own id, so its drafts are its own.
|
|
192
|
+
*
|
|
193
|
+
* @param source - The data source it starts from
|
|
194
|
+
* @param from - The run it begins as, when it does
|
|
195
|
+
* @returns The query to open
|
|
196
|
+
*/
|
|
197
|
+
export declare function newQuery(source: string, from?: ValueTypeOf<typeof SavedQueryType>): QueryOpen;
|
|
198
|
+
/**
|
|
199
|
+
* Opens a query: writes it as the open query, with the notice it arrives with.
|
|
200
|
+
*
|
|
201
|
+
* @param next - The query to open
|
|
202
|
+
* @param notice - What the Query tab says when it opens — none for a query opened without one
|
|
203
|
+
*/
|
|
204
|
+
export type OpenQueryWrite = (next: QueryOpen, notice?: string) => void;
|
|
205
|
+
/**
|
|
206
|
+
* The query open in the builder the key names, a way to open another, and the
|
|
207
|
+
* notice the open query arrived with.
|
|
208
|
+
*
|
|
209
|
+
* @param key - The builder's open-query key
|
|
210
|
+
* @param first - The query it opens before any is written — a new query on its first data source
|
|
211
|
+
* @returns The open query; the write that opens another, with the notice it arrives with; and the last notice written
|
|
212
|
+
*/
|
|
213
|
+
export declare function useOpenQuery(key: string, first: QueryOpen): [QueryOpen, OpenQueryWrite, QueryArrival | undefined];
|
|
214
|
+
//# sourceMappingURL=open-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-query.d.ts","sourceRoot":"","sources":["../../src/query/open-query.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAmE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACnK,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,mCAAmC;AACnC,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;EAAyD,CAAC;AAEvF,uCAAuC;AACvC,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAQhE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAErD;AAKD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,cAAc,CAAC,GAAG,SAAS,CAG7F;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAExE;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,YAAY,GAAG,SAAS,CAAC,CAiBjH"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { SystemStyleObject } from '@chakra-ui/react';
|
|
3
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
+
import { CardLine, CardPart, ProblemLine } from './model/cards.js';
|
|
5
|
+
import { ActionRef, InputRef, RemoveRef, SlotRef } from './model/refs.js';
|
|
6
|
+
import { QueryWords } from './model/words.js';
|
|
7
|
+
import { StepFix } from './steps/check.js';
|
|
8
|
+
/** A recipe's styles, by slot. */
|
|
9
|
+
export type Styles = Record<string, SystemStyleObject>;
|
|
10
|
+
/** What the parts ask of the Query tab. */
|
|
11
|
+
export interface PartActions {
|
|
12
|
+
/** The key of the slot whose autocomplete is open. */
|
|
13
|
+
readonly openSlot: string | undefined;
|
|
14
|
+
/** Opens a slot's autocomplete, hanging from its element. */
|
|
15
|
+
readonly onSlot: (slot: SlotRef, anchor: HTMLElement) => void;
|
|
16
|
+
/** An input typed in and left. */
|
|
17
|
+
readonly onInput: (input: InputRef, raw: string) => void;
|
|
18
|
+
/** A × pressed. */
|
|
19
|
+
readonly onRemove: (ref: RemoveRef) => void;
|
|
20
|
+
/** An add pressed: one that adds, or one that opens a slot, hanging from its element. */
|
|
21
|
+
readonly onAction: (ref: ActionRef, anchor: HTMLElement) => void;
|
|
22
|
+
/** A problem's fix taken. */
|
|
23
|
+
readonly onFix: (fix: StepFix, label: string) => void;
|
|
24
|
+
}
|
|
25
|
+
/** What drawing the parts needs: the styles of the recipes they are made of, and the words. */
|
|
26
|
+
export interface PartStyles {
|
|
27
|
+
/** The `queryBuilder` recipe's. */
|
|
28
|
+
readonly styles: Styles;
|
|
29
|
+
/** The `select` recipe's, small: a slot is its trigger. */
|
|
30
|
+
readonly select: Styles;
|
|
31
|
+
/** The `input` recipe's, small. */
|
|
32
|
+
readonly input: SystemStyleObject;
|
|
33
|
+
/** The `iconButton` recipe's, quiet and extra small. */
|
|
34
|
+
readonly icon: SystemStyleObject;
|
|
35
|
+
/** The `codeBlock` recipe's. */
|
|
36
|
+
readonly code: Styles;
|
|
37
|
+
/** The words. */
|
|
38
|
+
readonly words: QueryWords;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The parts' styles: the `queryBuilder` recipe's, and the core recipes' a
|
|
42
|
+
* part is made of.
|
|
43
|
+
*
|
|
44
|
+
* @param words - The words
|
|
45
|
+
* @returns The styles, and the words
|
|
46
|
+
*/
|
|
47
|
+
export declare function usePartStyles(words: QueryWords): PartStyles;
|
|
48
|
+
/**
|
|
49
|
+
* A slot's key: what its element carries as `data-slot-key`, so the slot a
|
|
50
|
+
* pick opens next is found after the query renders again.
|
|
51
|
+
*
|
|
52
|
+
* @param slot - The slot
|
|
53
|
+
* @returns Its key
|
|
54
|
+
*/
|
|
55
|
+
export declare function slotKey(slot: SlotRef): string;
|
|
56
|
+
/**
|
|
57
|
+
* A tooltip over a control: the design system's, after a moment's hover.
|
|
58
|
+
*
|
|
59
|
+
* @param props - The words it shows, and the control
|
|
60
|
+
* @returns The control, with its tooltip
|
|
61
|
+
*/
|
|
62
|
+
export declare function Tip({ label, children }: {
|
|
63
|
+
label: string;
|
|
64
|
+
children: ReactElement;
|
|
65
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* An icon button, named for a screen reader and by its tooltip.
|
|
68
|
+
*
|
|
69
|
+
* @param props - Its name, its icon, whether it is off, what it does, and its styles
|
|
70
|
+
* @returns The button
|
|
71
|
+
*/
|
|
72
|
+
export declare function IconPart({ label, icon, disabled, css, onClick }: {
|
|
73
|
+
label: string;
|
|
74
|
+
icon: IconDefinition;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
css: SystemStyleObject | SystemStyleObject[];
|
|
77
|
+
onClick: () => void;
|
|
78
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
/**
|
|
80
|
+
* A row's parts, in order.
|
|
81
|
+
*
|
|
82
|
+
* @param props - The parts, their styles and what they ask
|
|
83
|
+
* @returns The parts
|
|
84
|
+
*/
|
|
85
|
+
export declare function Parts({ parts, ps, actions, ghost }: {
|
|
86
|
+
parts: readonly CardPart[];
|
|
87
|
+
ps: PartStyles;
|
|
88
|
+
actions: PartActions;
|
|
89
|
+
ghost?: boolean;
|
|
90
|
+
}): ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* The problems under a row: each in its severity's ink, the checker's own
|
|
93
|
+
* sentence on hover, and its fixes as buttons.
|
|
94
|
+
*
|
|
95
|
+
* @param props - The problems, their styles and what a fix asks
|
|
96
|
+
* @returns The problem lines
|
|
97
|
+
*/
|
|
98
|
+
export declare function Problems({ problems, ps, actions }: {
|
|
99
|
+
problems: readonly ProblemLine[];
|
|
100
|
+
ps: PartStyles;
|
|
101
|
+
actions: PartActions;
|
|
102
|
+
}): ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* A card's lines: rows, groups with their head and lines, feet, notes and a
|
|
105
|
+
* jq step's code, each with the problems under it.
|
|
106
|
+
*
|
|
107
|
+
* @param props - The lines, their styles and what they ask
|
|
108
|
+
* @returns The lines
|
|
109
|
+
*/
|
|
110
|
+
export declare function Lines({ lines, ps, actions }: {
|
|
111
|
+
lines: readonly CardLine[];
|
|
112
|
+
ps: PartStyles;
|
|
113
|
+
actions: PartActions;
|
|
114
|
+
}): ReactNode;
|
|
115
|
+
//# sourceMappingURL=parts.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EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,KAAa,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAAC,EAAE,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAE7J;AASD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAAC,EAAE,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,GAAG,SAAS,CAazI;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAAC,EAAE,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,GAAG,SAAS,CAoD7H"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SplitCallProgress } from '@elaraai/e3-types';
|
|
2
|
+
import { QueryWords } from './model/words.js';
|
|
3
|
+
import { QueryPlan } from './plan.js';
|
|
4
|
+
/** Props of {@link QueryPlanReadout}. */
|
|
5
|
+
export interface QueryPlanReadoutProps {
|
|
6
|
+
/** The run's plan. */
|
|
7
|
+
readonly planned: QueryPlan;
|
|
8
|
+
/** A split call's progress, while it goes. */
|
|
9
|
+
readonly progress: SplitCallProgress | undefined;
|
|
10
|
+
/** How many pieces a split call cut, once e3 says. */
|
|
11
|
+
readonly pieces: number | undefined;
|
|
12
|
+
/** The words. */
|
|
13
|
+
readonly words: QueryWords;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Renders the plan's read-out — see the module docs.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The plan, a split call's progress and pieces, and the words ({@link QueryPlanReadoutProps})
|
|
19
|
+
* @returns The read-out, and its popover while open
|
|
20
|
+
*/
|
|
21
|
+
export declare const QueryPlanReadout: import('react').NamedExoticComponent<QueryPlanReadoutProps>;
|
|
22
|
+
//# sourceMappingURL=plan-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-popover.d.ts","sourceRoot":"","sources":["../../src/query/plan-popover.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IAClC,sBAAsB;IACtB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,6DAsB3B,CAAC"}
|