@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,179 @@
|
|
|
1
|
+
import { EastType } from '@elaraai/east';
|
|
2
|
+
import { CheckedSteps, StepFix } from '../steps/check.js';
|
|
3
|
+
import { Step, StepQuery } from '../steps/values.js';
|
|
4
|
+
import { ActionRef, InputRef, RemoveRef, SlotRef } from './refs.js';
|
|
5
|
+
import { QueryWords } from './words.js';
|
|
6
|
+
/** One part of a card's row. */
|
|
7
|
+
export type CardPart =
|
|
8
|
+
/** Words; a joiner (`and`, `or`) sits in the joiner column. */
|
|
9
|
+
{
|
|
10
|
+
readonly t: "word";
|
|
11
|
+
readonly text: string;
|
|
12
|
+
readonly joiner?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** A slot: what it shows, its placeholder while empty, and whether it reads as data or has a problem. */
|
|
15
|
+
| {
|
|
16
|
+
readonly t: "slot";
|
|
17
|
+
readonly slot: SlotRef;
|
|
18
|
+
readonly text: string;
|
|
19
|
+
readonly empty: boolean;
|
|
20
|
+
readonly placeholder: string;
|
|
21
|
+
readonly mono: boolean;
|
|
22
|
+
readonly error: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** An input: a count, a name, a value or a bound. */
|
|
25
|
+
| {
|
|
26
|
+
readonly t: "input";
|
|
27
|
+
readonly input: InputRef;
|
|
28
|
+
readonly value: string;
|
|
29
|
+
readonly width: "count" | "name" | "value" | "range";
|
|
30
|
+
readonly mono: boolean;
|
|
31
|
+
readonly error: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** A chip with its ×: a field a Look up brings in. */
|
|
34
|
+
| {
|
|
35
|
+
readonly t: "chip";
|
|
36
|
+
readonly text: string;
|
|
37
|
+
readonly remove: RemoveRef;
|
|
38
|
+
}
|
|
39
|
+
/** An add: a foot's, or Look up's Add field. */
|
|
40
|
+
| {
|
|
41
|
+
readonly t: "add";
|
|
42
|
+
readonly text: string;
|
|
43
|
+
readonly action: ActionRef;
|
|
44
|
+
readonly ghost: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** A row's ×. */
|
|
47
|
+
| {
|
|
48
|
+
readonly t: "remove";
|
|
49
|
+
readonly label: string;
|
|
50
|
+
readonly target: RemoveRef;
|
|
51
|
+
}
|
|
52
|
+
/** A jq step's code. */
|
|
53
|
+
| {
|
|
54
|
+
readonly t: "code";
|
|
55
|
+
readonly text: string;
|
|
56
|
+
};
|
|
57
|
+
/** A problem under a row: its plain words, the checker's, and its fixes. */
|
|
58
|
+
export interface ProblemLine {
|
|
59
|
+
/** An error, a warning, or a jq step's note. */
|
|
60
|
+
readonly severity: "error" | "warning" | "note";
|
|
61
|
+
/** Its code. */
|
|
62
|
+
readonly code: string;
|
|
63
|
+
/** The plain sentence. */
|
|
64
|
+
readonly text: string;
|
|
65
|
+
/** The checker's own sentence, one step away (on hover). */
|
|
66
|
+
readonly message: string;
|
|
67
|
+
/** Its fixes, best first. */
|
|
68
|
+
readonly fixes: readonly {
|
|
69
|
+
readonly label: string;
|
|
70
|
+
readonly fix: StepFix;
|
|
71
|
+
}[];
|
|
72
|
+
}
|
|
73
|
+
/** One line of a card. */
|
|
74
|
+
export interface CardLine {
|
|
75
|
+
/** A row of parts; a group, with its own head and lines; a foot of adds; a note; a jq step's code. */
|
|
76
|
+
readonly kind: "row" | "group" | "foot" | "note" | "code";
|
|
77
|
+
/** Its parts. */
|
|
78
|
+
readonly parts: readonly CardPart[];
|
|
79
|
+
/** A group's head: its match and its words. */
|
|
80
|
+
readonly head?: readonly CardPart[];
|
|
81
|
+
/** A group's lines. */
|
|
82
|
+
readonly lines?: readonly CardLine[];
|
|
83
|
+
/** The problems under it. */
|
|
84
|
+
readonly problems: readonly ProblemLine[];
|
|
85
|
+
}
|
|
86
|
+
/** The line between two steps: the shape in words. */
|
|
87
|
+
export interface ShapeLine {
|
|
88
|
+
/** The shape, or the count after a fresh run — `16 shipped orders`. */
|
|
89
|
+
readonly text: string;
|
|
90
|
+
/** What changed: `+ name, region` after a Look up or a date part, or the fields after a reshaping step. */
|
|
91
|
+
readonly extra: string;
|
|
92
|
+
/** The East type, for hover. */
|
|
93
|
+
readonly type: string;
|
|
94
|
+
/** Whether the text is a count. */
|
|
95
|
+
readonly counted: boolean;
|
|
96
|
+
}
|
|
97
|
+
/** A step's card. */
|
|
98
|
+
export interface Card {
|
|
99
|
+
/** The step's id. */
|
|
100
|
+
readonly stepId: string;
|
|
101
|
+
/** Its place, from 0. */
|
|
102
|
+
readonly index: number;
|
|
103
|
+
/** Its kind. */
|
|
104
|
+
readonly kind: Step["type"];
|
|
105
|
+
/** Its title. */
|
|
106
|
+
readonly title: string;
|
|
107
|
+
/** Its icon. */
|
|
108
|
+
readonly icon: string;
|
|
109
|
+
/** Its head: a filter's match, when it has two conditions or more. */
|
|
110
|
+
readonly head: readonly CardPart[];
|
|
111
|
+
/** Its lines. */
|
|
112
|
+
readonly lines: readonly CardLine[];
|
|
113
|
+
/** Whether it is finished, and so in the program. */
|
|
114
|
+
readonly complete: boolean;
|
|
115
|
+
/** Its problems that stop the query running. */
|
|
116
|
+
readonly errors: number;
|
|
117
|
+
/** Its warnings, unfinished slots aside. */
|
|
118
|
+
readonly warnings: number;
|
|
119
|
+
/** The shape after it. */
|
|
120
|
+
readonly shape: ShapeLine;
|
|
121
|
+
}
|
|
122
|
+
/** The source's card: what the query starts with. */
|
|
123
|
+
export interface SourceCard {
|
|
124
|
+
/** `Start with orders`. */
|
|
125
|
+
readonly title: string;
|
|
126
|
+
/** The source's plain kind — `list of orders`. */
|
|
127
|
+
readonly kind: string;
|
|
128
|
+
/** The shape it gives. */
|
|
129
|
+
readonly shape: ShapeLine;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* A query's step cards (`Query Editor Spec.md` §4.3, §4.4).
|
|
133
|
+
*
|
|
134
|
+
* @param query - the query
|
|
135
|
+
* @param root - the root's type: a struct of the data sources
|
|
136
|
+
* @param checked - its check (`checkSteps`)
|
|
137
|
+
* @param words - the words
|
|
138
|
+
* @param counts - the rows a fresh run counted, by step id (`readCounts`), so the shape lines count
|
|
139
|
+
* @returns one card per step, in order
|
|
140
|
+
*/
|
|
141
|
+
export declare function cardsFor(query: StepQuery, root: EastType, checked: CheckedSteps, words: QueryWords, counts?: ReadonlyMap<string, number>): Card[];
|
|
142
|
+
/**
|
|
143
|
+
* The source's card: `Start with orders`, its plain kind and its shape.
|
|
144
|
+
*
|
|
145
|
+
* @param query - the query
|
|
146
|
+
* @param root - the root's type
|
|
147
|
+
* @param checked - its check
|
|
148
|
+
* @param words - the words
|
|
149
|
+
* @param counts - the rows a fresh run counted (`SOURCE_COUNT` for the source's)
|
|
150
|
+
* @returns the card
|
|
151
|
+
*/
|
|
152
|
+
export declare function sourceCard(query: StepQuery, root: EastType, checked: CheckedSteps, words: QueryWords, counts?: ReadonlyMap<string, number>): SourceCard;
|
|
153
|
+
/** One line of an outline: a finished step's icon, title and words. */
|
|
154
|
+
export interface OutlineLine {
|
|
155
|
+
/** The step's icon. */
|
|
156
|
+
readonly icon: string;
|
|
157
|
+
/** Its title. */
|
|
158
|
+
readonly title: string;
|
|
159
|
+
/** What it does, in words — `status is shipped and total is at least 100`. */
|
|
160
|
+
readonly words: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* A query's outline: one line per finished step, which a library card's
|
|
164
|
+
* wireframe draws (`Query Editor Spec.md` §5).
|
|
165
|
+
*
|
|
166
|
+
* @param query - the query
|
|
167
|
+
* @param checked - its check, for the rows each step takes
|
|
168
|
+
* @param words - the words
|
|
169
|
+
* @returns the lines, in order: each step's icon, title and {@link stepWords}
|
|
170
|
+
*/
|
|
171
|
+
export declare function outlineOf(query: StepQuery, checked: CheckedSteps, words: QueryWords): OutlineLine[];
|
|
172
|
+
/**
|
|
173
|
+
* The first empty slot of a card: where an added step opens.
|
|
174
|
+
*
|
|
175
|
+
* @param card - the card
|
|
176
|
+
* @returns the slot, or `undefined` when every slot is filled
|
|
177
|
+
*/
|
|
178
|
+
export declare function firstEmptySlot(card: Card): SlotRef | undefined;
|
|
179
|
+
//# sourceMappingURL=cards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/query/model/cards.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EAA+B,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAkC,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK/F,OAAO,EAA0C,KAAK,IAAI,EAAE,KAAK,SAAS,EAAsB,MAAM,oBAAoB,CAAC;AAC3H,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAEH,KAAK,UAAU,EAClB,MAAM,YAAY,CAAC;AAEpB,gCAAgC;AAChC,MAAM,MAAM,QAAQ;AAChB,+DAA+D;AAC7D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AAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,CAoBjJ;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAQvJ;AAED,uEAAuE;AACvE,MAAM,WAAW,WAAW;IACxB,uBAAuB;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,GAAG,WAAW,EAAE,CAMnG;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAI9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The query builder's model (#934), on top of the canonical steps (#933):
|
|
7
|
+
* plain words, step cards, slots and autocomplete, summaries and the
|
|
8
|
+
* generated description — plain TypeScript over East values, with no React,
|
|
9
|
+
* so the renderers (#935–#939, #1063) stay thin.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
export { queryMessages, type KindName, type OneKind, type QueryMessages, type SlotKind, type TotalName, } from './messages.js';
|
|
14
|
+
export { DESCRIPTION_MAX, STEP_ICON, adjectiveOf, conditionWords, countWords, dataNumber, describeQuery, fieldKind, fieldLabel, fieldLabels, fieldSummaryWords, human, isIdName, leafPath, orderKind, parseErrorWords, plainKind, plural, problemWords, queryWords, refLabel, rowsWords, shapeWords, stepWords, valueWords, type ProblemWords, type QueryWords, type SummaryLeaf, } from './words.js';
|
|
15
|
+
export { sameSlot, type ActionRef, type InputKind, type InputRef, type RemoveRef, type SlotRef, type SlotValue } from './refs.js';
|
|
16
|
+
export { cardsFor, firstEmptySlot, outlineOf, sourceCard, type Card, type CardLine, type CardPart, type OutlineLine, type ProblemLine, type ShapeLine, type SourceCard, } from './cards.js';
|
|
17
|
+
export { activeItem, applyAction, applyInput, applyRemove, applySlot, quickAddOptions, slotEmpty, slotHint, slotItems, slotLabel, slotPlaceholder, stepOptions, type SavedOffer, type SlotContext, type SlotItem, type SlotResult, type StepOption, } from './slots.js';
|
|
18
|
+
export { SUMMARY_LIMITS, SummaryCache, leafOf, summaryAt, summaryNeeded, type Summary, type SummaryRequest, type SummaryResult, type SummaryRun, } from './summaries.js';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/query/model/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EACH,aAAa,EACb,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,GACjF,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,eAAe,EAAE,SAAS,EAC1B,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EACpJ,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,M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