@zveltio/sdk 3.0.0-beta.110 → 3.0.0-beta.115
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/dist/extension/capabilities.d.ts +1 -12
- package/dist/extension/capabilities.d.ts.map +1 -1
- package/dist/extension/capabilities.js +1 -12
- package/dist/extension/index.d.ts +110 -157
- package/dist/extension/index.d.ts.map +1 -1
- package/dist/tests/validate-manifest-routes.test.js +30 -0
- package/dist/tests/view-runtime.test.d.ts +2 -0
- package/dist/tests/view-runtime.test.d.ts.map +1 -0
- package/dist/tests/view-runtime.test.js +158 -0
- package/dist/tests/view.test.d.ts +2 -0
- package/dist/tests/view.test.d.ts.map +1 -0
- package/dist/tests/view.test.js +200 -0
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js +30 -0
- package/dist/view/index.d.ts +172 -0
- package/dist/view/index.d.ts.map +1 -0
- package/dist/view/index.js +367 -0
- package/dist/view/runtime.d.ts +71 -0
- package/dist/view/runtime.d.ts.map +1 -0
- package/dist/view/runtime.js +185 -0
- package/dist/view/schema.d.ts +20 -0
- package/dist/view/schema.d.ts.map +1 -0
- package/dist/view/schema.js +357 -0
- package/dist/view/types.generated.d.ts +318 -0
- package/dist/view/types.generated.d.ts.map +1 -0
- package/dist/view/types.generated.js +2 -0
- package/package.json +7 -1
- package/schemas/view-2.schema.json +2047 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `zveltio.view/2` — the specification of an extension's views (ADR 0042).
|
|
3
|
+
*
|
|
4
|
+
* THE SINGLE SOURCE. `scripts/gen-view-spec.ts` derives from this object the
|
|
5
|
+
* TypeScript types (`types.generated.ts`) and the published JSON Schema
|
|
6
|
+
* (`packages/sdk/schemas/view-2.schema.json`); `bun run check:view-spec` fails
|
|
7
|
+
* when either is stale. Edit here, then run `bun run scripts/gen-view-spec.ts`.
|
|
8
|
+
*
|
|
9
|
+
* A view is semantic: it names collections, fields and actions, never a URL,
|
|
10
|
+
* an HTTP verb, a CSS class, an icon or an expression. Every object is closed
|
|
11
|
+
* (`additionalProperties: false`), so a key the vocabulary does not have — a
|
|
12
|
+
* `dataSource`, an `endpoint`, a `class` — is refused rather than ignored.
|
|
13
|
+
* Additions inside `view/2` are new optional keys or view kinds; removing or
|
|
14
|
+
* narrowing anything is `view/3`.
|
|
15
|
+
*/
|
|
16
|
+
export const VIEW_SPEC = 'zveltio.view/2';
|
|
17
|
+
/** The data API's filter operators: a view's conditions use exactly these. */
|
|
18
|
+
const FILTER_OPS = [
|
|
19
|
+
'eq',
|
|
20
|
+
'neq',
|
|
21
|
+
'lt',
|
|
22
|
+
'lte',
|
|
23
|
+
'gt',
|
|
24
|
+
'gte',
|
|
25
|
+
'like',
|
|
26
|
+
'ilike',
|
|
27
|
+
'not_contains',
|
|
28
|
+
'starts_with',
|
|
29
|
+
'ends_with',
|
|
30
|
+
'in',
|
|
31
|
+
'not_in',
|
|
32
|
+
'null',
|
|
33
|
+
'not_null',
|
|
34
|
+
'near',
|
|
35
|
+
'within',
|
|
36
|
+
];
|
|
37
|
+
const _allFilterOps = true;
|
|
38
|
+
void _allFilterOps;
|
|
39
|
+
const LIST_OPS = ['in', 'not_in'];
|
|
40
|
+
const NULL_OPS = ['null', 'not_null'];
|
|
41
|
+
const ref = (name) => ({ $ref: `#/$defs/${name}` });
|
|
42
|
+
const arrayOf = (items, minItems) => minItems === undefined ? { type: 'array', items } : { type: 'array', items, minItems };
|
|
43
|
+
const closed = (description, properties, required = []) => ({
|
|
44
|
+
type: 'object',
|
|
45
|
+
description,
|
|
46
|
+
properties,
|
|
47
|
+
...(required.length > 0 ? { required } : {}),
|
|
48
|
+
additionalProperties: false,
|
|
49
|
+
});
|
|
50
|
+
/** Keys every view kind accepts. */
|
|
51
|
+
const common = {
|
|
52
|
+
id: ref('PaneId'),
|
|
53
|
+
title: ref('Text'),
|
|
54
|
+
actions: { ...ref('Buttons'), description: 'Toolbar actions of this view.' },
|
|
55
|
+
fallback: {
|
|
56
|
+
...ref('View'),
|
|
57
|
+
description: 'What a front end that does not know this view kind draws instead.',
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
const kind = (type, description, properties, required) => closed(description, { type: { const: type }, ...common, ...properties }, ['type', ...required]);
|
|
61
|
+
/** What both forms (collection-bound, action-bound) accept. */
|
|
62
|
+
const formProps = {
|
|
63
|
+
fields: ref('Fields'),
|
|
64
|
+
sections: arrayOf(closed('A titled group of fields.', { title: ref('Text'), fields: ref('Fields') }, ['fields']), 1),
|
|
65
|
+
lines: closed('Line items: records of another collection pointing at this one.', { collection: ref('Name'), fk: ref('Name'), fields: ref('Fields'), order: ref('Name') }, ['collection', 'fk']),
|
|
66
|
+
submit: ref('Buttons'),
|
|
67
|
+
recalc: { ...ref('ActionCall'), description: 'Recomputes values on the server.' },
|
|
68
|
+
autosave: { type: 'boolean' },
|
|
69
|
+
};
|
|
70
|
+
const VIEW_KINDS = [
|
|
71
|
+
'ListView',
|
|
72
|
+
'FormView',
|
|
73
|
+
'DetailView',
|
|
74
|
+
'BoardView',
|
|
75
|
+
'TimelineView',
|
|
76
|
+
'TreeView',
|
|
77
|
+
'MatrixView',
|
|
78
|
+
'MapView',
|
|
79
|
+
'StatView',
|
|
80
|
+
'SplitView',
|
|
81
|
+
'TabsView',
|
|
82
|
+
];
|
|
83
|
+
const defs = {
|
|
84
|
+
Name: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
pattern: '^[a-z][a-z0-9_]*$',
|
|
87
|
+
maxLength: 63,
|
|
88
|
+
description: 'A collection or field name.',
|
|
89
|
+
},
|
|
90
|
+
ActionName: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
pattern: '^([a-z][a-z0-9-]*(/[a-z][a-z0-9-]*)*\\.)?[a-z][a-zA-Z0-9]*$',
|
|
93
|
+
description: "One of this extension's actions, or `<dependency>.<action>` for a dependency's (ADR 0014).",
|
|
94
|
+
},
|
|
95
|
+
ViewId: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
pattern: '^[a-z][a-z0-9-]*(\\.[a-z][a-zA-Z0-9-]*)*$',
|
|
98
|
+
description: 'The id of a view, e.g. `mail.compose`.',
|
|
99
|
+
},
|
|
100
|
+
PaneId: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
pattern: '^[a-z][a-zA-Z0-9_]*$',
|
|
103
|
+
description: 'The id of a view inside a container; `$selected` names it.',
|
|
104
|
+
},
|
|
105
|
+
Text: {
|
|
106
|
+
type: 'string',
|
|
107
|
+
minLength: 1,
|
|
108
|
+
maxLength: 200,
|
|
109
|
+
description: 'A message key of the extension, or literal text.',
|
|
110
|
+
},
|
|
111
|
+
Tone: {
|
|
112
|
+
enum: ['neutral', 'info', 'success', 'warning', 'danger', 'muted'],
|
|
113
|
+
description: 'A semantic tone; each front end picks its colours.',
|
|
114
|
+
},
|
|
115
|
+
Ref: {
|
|
116
|
+
description: 'A value the front end fills in. Nothing else is computed in a view.',
|
|
117
|
+
anyOf: [
|
|
118
|
+
closed('A field of the current record.', { $record: ref('Name') }, ['$record']),
|
|
119
|
+
closed('The id of the record selected in a pane.', { $selected: ref('PaneId') }, [
|
|
120
|
+
'$selected',
|
|
121
|
+
]),
|
|
122
|
+
closed('A field of every selected record (bulk actions).', { $selection: ref('Name') }, [
|
|
123
|
+
'$selection',
|
|
124
|
+
]),
|
|
125
|
+
closed('A parameter the view was opened with.', { $param: ref('Name') }, ['$param']),
|
|
126
|
+
closed("The signed-in user's id.", { $user: { const: 'id' } }, ['$user']),
|
|
127
|
+
closed("Today's date.", { $today: { const: true } }, ['$today']),
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
Literal: { type: ['string', 'number', 'boolean', 'null'] },
|
|
131
|
+
Value: {
|
|
132
|
+
anyOf: [ref('Literal'), ref('Ref'), arrayOf({ anyOf: [ref('Literal'), ref('Ref')] })],
|
|
133
|
+
},
|
|
134
|
+
Input: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
description: "An action's input, or a view's parameters, by name.",
|
|
137
|
+
additionalProperties: ref('Value'),
|
|
138
|
+
},
|
|
139
|
+
Condition: {
|
|
140
|
+
description: 'A data API condition on one field; its value is shaped by the operator.',
|
|
141
|
+
anyOf: [
|
|
142
|
+
closed('Compares the field with a value.', {
|
|
143
|
+
field: ref('Name'),
|
|
144
|
+
op: { enum: FILTER_OPS.filter((o) => !LIST_OPS.includes(o) && !NULL_OPS.includes(o)) },
|
|
145
|
+
value: ref('Value'),
|
|
146
|
+
}, ['field', 'op', 'value']),
|
|
147
|
+
closed('The field is (not) one of a list.', {
|
|
148
|
+
field: ref('Name'),
|
|
149
|
+
op: { enum: [...LIST_OPS] },
|
|
150
|
+
value: { anyOf: [arrayOf({ anyOf: [ref('Literal'), ref('Ref')] }), ref('Ref')] },
|
|
151
|
+
}, ['field', 'op', 'value']),
|
|
152
|
+
closed('The field is (not) empty.', { field: ref('Name'), op: { enum: [...NULL_OPS] } }, [
|
|
153
|
+
'field',
|
|
154
|
+
'op',
|
|
155
|
+
]),
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
Conditions: { ...arrayOf(ref('Condition'), 1), description: 'All must hold.' },
|
|
159
|
+
Sort: {
|
|
160
|
+
description: 'A field, or several; `-field` sorts descending.',
|
|
161
|
+
anyOf: [
|
|
162
|
+
{ type: 'string', pattern: '^-?[a-z][a-z0-9_]*$' },
|
|
163
|
+
arrayOf({ type: 'string', pattern: '^-?[a-z][a-z0-9_]*$' }, 1),
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
Field: {
|
|
167
|
+
description: 'A field by name; its type, label and editor come from the collection.',
|
|
168
|
+
anyOf: [
|
|
169
|
+
ref('Name'),
|
|
170
|
+
closed('A field with presentation hints.', {
|
|
171
|
+
field: ref('Name'),
|
|
172
|
+
label: ref('Text'),
|
|
173
|
+
display: { enum: ['badge', 'flag', 'mono', 'elapsed'] },
|
|
174
|
+
tones: {
|
|
175
|
+
type: 'object',
|
|
176
|
+
description: 'A tone per value (enum fields).',
|
|
177
|
+
additionalProperties: ref('Tone'),
|
|
178
|
+
},
|
|
179
|
+
readOnly: { type: 'boolean' },
|
|
180
|
+
}, ['field']),
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
Fields: arrayOf(ref('Field'), 1),
|
|
184
|
+
ActionCall: closed('Runs an action.', { action: ref('ActionName'), input: ref('Input') }, [
|
|
185
|
+
'action',
|
|
186
|
+
]),
|
|
187
|
+
Change: {
|
|
188
|
+
description: '`patch` writes the record through the data API; or an action does it.',
|
|
189
|
+
anyOf: [{ const: 'patch' }, ref('ActionCall')],
|
|
190
|
+
},
|
|
191
|
+
Button: {
|
|
192
|
+
anyOf: [
|
|
193
|
+
closed('Runs an action.', {
|
|
194
|
+
action: ref('ActionName'),
|
|
195
|
+
label: ref('Text'),
|
|
196
|
+
tone: ref('Tone'),
|
|
197
|
+
input: ref('Input'),
|
|
198
|
+
prompt: { ...arrayOf(ref('Name'), 1), description: 'Input fields to ask for.' },
|
|
199
|
+
confirm: ref('Text'),
|
|
200
|
+
when: ref('Conditions'),
|
|
201
|
+
}, ['action']),
|
|
202
|
+
closed('Opens another view.', {
|
|
203
|
+
navigate: ref('ViewId'),
|
|
204
|
+
params: ref('Input'),
|
|
205
|
+
label: ref('Text'),
|
|
206
|
+
when: ref('Conditions'),
|
|
207
|
+
}, ['navigate']),
|
|
208
|
+
closed('Saves the form.', { save: { const: true }, label: ref('Text') }, ['save']),
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
Buttons: arrayOf(ref('Button'), 1),
|
|
212
|
+
ListView: kind('list', 'Rows of a collection.', {
|
|
213
|
+
collection: ref('Name'),
|
|
214
|
+
fields: ref('Fields'),
|
|
215
|
+
filter: ref('Conditions'),
|
|
216
|
+
sort: ref('Sort'),
|
|
217
|
+
search: { type: 'boolean' },
|
|
218
|
+
present: { enum: ['table', 'cards', 'feed'] },
|
|
219
|
+
pageSize: { type: 'integer', minimum: 1, maximum: 500 },
|
|
220
|
+
emphasisWhen: ref('Conditions'),
|
|
221
|
+
selectable: { type: 'boolean' },
|
|
222
|
+
rowActions: ref('Buttons'),
|
|
223
|
+
bulkActions: ref('Buttons'),
|
|
224
|
+
open: { ...ref('ViewId'), description: 'The view a row opens.' },
|
|
225
|
+
create: { type: 'boolean', description: 'Offer a form to add a record.' },
|
|
226
|
+
edit: { type: 'boolean', description: "Offer each row's form, to change it." },
|
|
227
|
+
delete: { type: 'boolean', description: 'Offer to delete each row, after a confirm.' },
|
|
228
|
+
realtime: { type: 'boolean' },
|
|
229
|
+
}, ['collection']),
|
|
230
|
+
FormView: {
|
|
231
|
+
description: 'A form binds a collection or an action, never both.',
|
|
232
|
+
anyOf: [
|
|
233
|
+
kind('form', 'Create or edit a record of a collection.', {
|
|
234
|
+
collection: ref('Name'),
|
|
235
|
+
record: {
|
|
236
|
+
description: 'The record to edit; `singleton` for a one-row collection.',
|
|
237
|
+
anyOf: [ref('Ref'), { const: 'singleton' }],
|
|
238
|
+
},
|
|
239
|
+
...formProps,
|
|
240
|
+
}, ['collection']),
|
|
241
|
+
kind('form', "Fill an action's input; submitting runs the action.", { action: ref('ActionName'), ...formProps }, ['action']),
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
DetailView: kind('detail', 'One record, in panels.', {
|
|
245
|
+
collection: ref('Name'),
|
|
246
|
+
record: ref('Ref'),
|
|
247
|
+
fields: ref('Fields'),
|
|
248
|
+
panels: arrayOf(ref('View'), 1),
|
|
249
|
+
}, ['collection', 'record']),
|
|
250
|
+
BoardView: kind('board', 'Records grouped by a field (kanban).', {
|
|
251
|
+
collection: ref('Name'),
|
|
252
|
+
groupBy: ref('Name'),
|
|
253
|
+
card: ref('Fields'),
|
|
254
|
+
filter: ref('Conditions'),
|
|
255
|
+
move: ref('Change'),
|
|
256
|
+
}, ['collection', 'groupBy']),
|
|
257
|
+
TimelineView: kind('timeline', 'Records on a time axis (calendar, Gantt).', {
|
|
258
|
+
collection: ref('Name'),
|
|
259
|
+
start: ref('Name'),
|
|
260
|
+
end: ref('Name'),
|
|
261
|
+
groupBy: ref('Name'),
|
|
262
|
+
scale: { enum: ['day', 'week', 'month', 'gantt'] },
|
|
263
|
+
filter: ref('Conditions'),
|
|
264
|
+
move: ref('Change'),
|
|
265
|
+
}, ['collection', 'start']),
|
|
266
|
+
TreeView: kind('tree', 'Records linked to a parent.', {
|
|
267
|
+
collection: ref('Name'),
|
|
268
|
+
parent: ref('Name'),
|
|
269
|
+
label: ref('Name'),
|
|
270
|
+
order: ref('Name'),
|
|
271
|
+
move: ref('Change'),
|
|
272
|
+
}, ['collection', 'parent', 'label']),
|
|
273
|
+
MatrixView: kind('matrix', 'Rows by columns of a relation (checklists, grants).', {
|
|
274
|
+
collection: ref('Name'),
|
|
275
|
+
row: ref('Name'),
|
|
276
|
+
column: ref('Name'),
|
|
277
|
+
value: ref('Name'),
|
|
278
|
+
edit: ref('Change'),
|
|
279
|
+
}, ['collection', 'row', 'column', 'value']),
|
|
280
|
+
MapView: kind('map', 'Records with a location.', {
|
|
281
|
+
collection: ref('Name'),
|
|
282
|
+
location: ref('Name'),
|
|
283
|
+
label: ref('Name'),
|
|
284
|
+
filter: ref('Conditions'),
|
|
285
|
+
}, ['collection', 'location']),
|
|
286
|
+
StatView: kind('stat', 'A number.', {
|
|
287
|
+
source: {
|
|
288
|
+
anyOf: [
|
|
289
|
+
closed('An aggregate over a collection.', {
|
|
290
|
+
collection: ref('Name'),
|
|
291
|
+
aggregate: { enum: ['count', 'sum', 'avg', 'min', 'max'] },
|
|
292
|
+
field: ref('Name'),
|
|
293
|
+
filter: ref('Conditions'),
|
|
294
|
+
}, ['collection', 'aggregate']),
|
|
295
|
+
ref('ActionCall'),
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
format: { enum: ['number', 'money', 'progress', 'elapsed'] },
|
|
299
|
+
tone: ref('Tone'),
|
|
300
|
+
}, ['source']),
|
|
301
|
+
SplitView: kind('split', 'Panes side by side; a later pane filters on `$selected` of an earlier one.', { panes: arrayOf(ref('View'), 2) }, ['panes']),
|
|
302
|
+
TabsView: kind('tabs', 'Views as tabs.', { items: arrayOf(ref('View'), 1) }, ['items']),
|
|
303
|
+
View: { anyOf: VIEW_KINDS.map(ref) },
|
|
304
|
+
ActionResult: {
|
|
305
|
+
description: 'What an action returns, as a front end reads it (ADR 0042 decision 4). An object with `view`, `file` or `reveal` is one of the closed forms; anything else is values.',
|
|
306
|
+
anyOf: [
|
|
307
|
+
closed('Opens a view (a navigation).', {
|
|
308
|
+
view: ref('ViewId'),
|
|
309
|
+
params: {
|
|
310
|
+
type: 'object',
|
|
311
|
+
description: 'The parameters it is opened with (`$param`).',
|
|
312
|
+
additionalProperties: ref('Literal'),
|
|
313
|
+
},
|
|
314
|
+
}, ['view']),
|
|
315
|
+
closed('Draws this view (wizards, computed screens).', { view: ref('View') }, ['view']),
|
|
316
|
+
closed('Hands the caller a stored file.', { file: { type: 'string', minLength: 1 } }, [
|
|
317
|
+
'file',
|
|
318
|
+
]),
|
|
319
|
+
closed('Shows a value once (a key, a secret).', { reveal: { type: 'string', minLength: 1 } }, ['reveal']),
|
|
320
|
+
ref('ActionValues'),
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
ActionValues: {
|
|
324
|
+
description: 'Values: a scalar, a list, or an object without `view`, `file` or `reveal` (a form `recalc` merges an object of them).',
|
|
325
|
+
anyOf: [
|
|
326
|
+
{ type: ['string', 'number', 'boolean', 'null'] },
|
|
327
|
+
{ type: 'array', items: {} },
|
|
328
|
+
{
|
|
329
|
+
type: 'object',
|
|
330
|
+
properties: { view: { not: {} }, file: { not: {} }, reveal: { not: {} } },
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
},
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* The top of a file: a view kind with `spec` required and `id` a `ViewId`
|
|
337
|
+
* (what `navigate` and `open` name). Nested views carry neither.
|
|
338
|
+
*/
|
|
339
|
+
const asDocument = (s) => Array.isArray(s.anyOf)
|
|
340
|
+
? { ...s, anyOf: s.anyOf.map(asDocument) }
|
|
341
|
+
: {
|
|
342
|
+
...s,
|
|
343
|
+
properties: {
|
|
344
|
+
spec: { const: VIEW_SPEC },
|
|
345
|
+
...s.properties,
|
|
346
|
+
id: { ...ref('ViewId'), description: 'Names this file for `navigate` and `open`.' },
|
|
347
|
+
},
|
|
348
|
+
required: ['spec', ...(s.required ?? [])],
|
|
349
|
+
};
|
|
350
|
+
export const VIEW_SCHEMA = {
|
|
351
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
352
|
+
$id: 'https://zveltio.com/schemas/view-2.schema.json',
|
|
353
|
+
title: VIEW_SPEC,
|
|
354
|
+
description: "An extension's view (ADR 0042): what a screen shows, bound by name to the extension's collections and actions. Each front end draws it in its own way.",
|
|
355
|
+
anyOf: VIEW_KINDS.map((k) => asDocument(defs[k])),
|
|
356
|
+
$defs: defs,
|
|
357
|
+
};
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/** A collection or field name. */
|
|
2
|
+
export type Name = string;
|
|
3
|
+
/** One of this extension's actions, or `<dependency>.<action>` for a dependency's (ADR 0014). */
|
|
4
|
+
export type ActionName = string;
|
|
5
|
+
/** The id of a view, e.g. `mail.compose`. */
|
|
6
|
+
export type ViewId = string;
|
|
7
|
+
/** The id of a view inside a container; `$selected` names it. */
|
|
8
|
+
export type PaneId = string;
|
|
9
|
+
/** A message key of the extension, or literal text. */
|
|
10
|
+
export type Text = string;
|
|
11
|
+
/** A semantic tone; each front end picks its colours. */
|
|
12
|
+
export type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'muted';
|
|
13
|
+
/** A value the front end fills in. Nothing else is computed in a view. */
|
|
14
|
+
export type Ref = {
|
|
15
|
+
$record: Name;
|
|
16
|
+
} | {
|
|
17
|
+
$selected: PaneId;
|
|
18
|
+
} | {
|
|
19
|
+
$selection: Name;
|
|
20
|
+
} | {
|
|
21
|
+
$param: Name;
|
|
22
|
+
} | {
|
|
23
|
+
$user: 'id';
|
|
24
|
+
} | {
|
|
25
|
+
$today: true;
|
|
26
|
+
};
|
|
27
|
+
export type Literal = string | number | boolean | null;
|
|
28
|
+
export type Value = Literal | Ref | Array<Literal | Ref>;
|
|
29
|
+
/** An action's input, or a view's parameters, by name. */
|
|
30
|
+
export type Input = Record<string, Value>;
|
|
31
|
+
/** A data API condition on one field; its value is shaped by the operator. */
|
|
32
|
+
export type Condition = {
|
|
33
|
+
field: Name;
|
|
34
|
+
op: 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte' | 'like' | 'ilike' | 'not_contains' | 'starts_with' | 'ends_with' | 'near' | 'within';
|
|
35
|
+
value: Value;
|
|
36
|
+
} | {
|
|
37
|
+
field: Name;
|
|
38
|
+
op: 'in' | 'not_in';
|
|
39
|
+
value: Array<Literal | Ref> | Ref;
|
|
40
|
+
} | {
|
|
41
|
+
field: Name;
|
|
42
|
+
op: 'null' | 'not_null';
|
|
43
|
+
};
|
|
44
|
+
/** All must hold. */
|
|
45
|
+
export type Conditions = Condition[];
|
|
46
|
+
/** A field, or several; `-field` sorts descending. */
|
|
47
|
+
export type Sort = string | string[];
|
|
48
|
+
/** A field by name; its type, label and editor come from the collection. */
|
|
49
|
+
export type Field = Name | {
|
|
50
|
+
field: Name;
|
|
51
|
+
label?: Text;
|
|
52
|
+
display?: 'badge' | 'flag' | 'mono' | 'elapsed';
|
|
53
|
+
/** A tone per value (enum fields). */
|
|
54
|
+
tones?: Record<string, Tone>;
|
|
55
|
+
readOnly?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type Fields = Field[];
|
|
58
|
+
/** Runs an action. */
|
|
59
|
+
export type ActionCall = {
|
|
60
|
+
action: ActionName;
|
|
61
|
+
input?: Input;
|
|
62
|
+
};
|
|
63
|
+
/** `patch` writes the record through the data API; or an action does it. */
|
|
64
|
+
export type Change = 'patch' | ActionCall;
|
|
65
|
+
export type Button = {
|
|
66
|
+
action: ActionName;
|
|
67
|
+
label?: Text;
|
|
68
|
+
tone?: Tone;
|
|
69
|
+
input?: Input;
|
|
70
|
+
/** Input fields to ask for. */
|
|
71
|
+
prompt?: Name[];
|
|
72
|
+
confirm?: Text;
|
|
73
|
+
when?: Conditions;
|
|
74
|
+
} | {
|
|
75
|
+
navigate: ViewId;
|
|
76
|
+
params?: Input;
|
|
77
|
+
label?: Text;
|
|
78
|
+
when?: Conditions;
|
|
79
|
+
} | {
|
|
80
|
+
save: true;
|
|
81
|
+
label?: Text;
|
|
82
|
+
};
|
|
83
|
+
export type Buttons = Button[];
|
|
84
|
+
/** Rows of a collection. */
|
|
85
|
+
export type ListView = {
|
|
86
|
+
type: 'list';
|
|
87
|
+
id?: PaneId;
|
|
88
|
+
title?: Text;
|
|
89
|
+
/** Toolbar actions of this view. */
|
|
90
|
+
actions?: Buttons;
|
|
91
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
92
|
+
fallback?: View;
|
|
93
|
+
collection: Name;
|
|
94
|
+
fields?: Fields;
|
|
95
|
+
filter?: Conditions;
|
|
96
|
+
sort?: Sort;
|
|
97
|
+
search?: boolean;
|
|
98
|
+
present?: 'table' | 'cards' | 'feed';
|
|
99
|
+
pageSize?: number;
|
|
100
|
+
emphasisWhen?: Conditions;
|
|
101
|
+
selectable?: boolean;
|
|
102
|
+
rowActions?: Buttons;
|
|
103
|
+
bulkActions?: Buttons;
|
|
104
|
+
/** The view a row opens. */
|
|
105
|
+
open?: ViewId;
|
|
106
|
+
/** Offer a form to add a record. */
|
|
107
|
+
create?: boolean;
|
|
108
|
+
/** Offer each row's form, to change it. */
|
|
109
|
+
edit?: boolean;
|
|
110
|
+
/** Offer to delete each row, after a confirm. */
|
|
111
|
+
delete?: boolean;
|
|
112
|
+
realtime?: boolean;
|
|
113
|
+
};
|
|
114
|
+
/** A form binds a collection or an action, never both. */
|
|
115
|
+
export type FormView = {
|
|
116
|
+
type: 'form';
|
|
117
|
+
id?: PaneId;
|
|
118
|
+
title?: Text;
|
|
119
|
+
/** Toolbar actions of this view. */
|
|
120
|
+
actions?: Buttons;
|
|
121
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
122
|
+
fallback?: View;
|
|
123
|
+
collection: Name;
|
|
124
|
+
/** The record to edit; `singleton` for a one-row collection. */
|
|
125
|
+
record?: Ref | 'singleton';
|
|
126
|
+
fields?: Fields;
|
|
127
|
+
sections?: Array<{
|
|
128
|
+
title?: Text;
|
|
129
|
+
fields: Fields;
|
|
130
|
+
}>;
|
|
131
|
+
/** Line items: records of another collection pointing at this one. */
|
|
132
|
+
lines?: {
|
|
133
|
+
collection: Name;
|
|
134
|
+
fk: Name;
|
|
135
|
+
fields?: Fields;
|
|
136
|
+
order?: Name;
|
|
137
|
+
};
|
|
138
|
+
submit?: Buttons;
|
|
139
|
+
/** Recomputes values on the server. */
|
|
140
|
+
recalc?: ActionCall;
|
|
141
|
+
autosave?: boolean;
|
|
142
|
+
} | {
|
|
143
|
+
type: 'form';
|
|
144
|
+
id?: PaneId;
|
|
145
|
+
title?: Text;
|
|
146
|
+
/** Toolbar actions of this view. */
|
|
147
|
+
actions?: Buttons;
|
|
148
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
149
|
+
fallback?: View;
|
|
150
|
+
action: ActionName;
|
|
151
|
+
fields?: Fields;
|
|
152
|
+
sections?: Array<{
|
|
153
|
+
title?: Text;
|
|
154
|
+
fields: Fields;
|
|
155
|
+
}>;
|
|
156
|
+
/** Line items: records of another collection pointing at this one. */
|
|
157
|
+
lines?: {
|
|
158
|
+
collection: Name;
|
|
159
|
+
fk: Name;
|
|
160
|
+
fields?: Fields;
|
|
161
|
+
order?: Name;
|
|
162
|
+
};
|
|
163
|
+
submit?: Buttons;
|
|
164
|
+
/** Recomputes values on the server. */
|
|
165
|
+
recalc?: ActionCall;
|
|
166
|
+
autosave?: boolean;
|
|
167
|
+
};
|
|
168
|
+
/** One record, in panels. */
|
|
169
|
+
export type DetailView = {
|
|
170
|
+
type: 'detail';
|
|
171
|
+
id?: PaneId;
|
|
172
|
+
title?: Text;
|
|
173
|
+
/** Toolbar actions of this view. */
|
|
174
|
+
actions?: Buttons;
|
|
175
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
176
|
+
fallback?: View;
|
|
177
|
+
collection: Name;
|
|
178
|
+
record: Ref;
|
|
179
|
+
fields?: Fields;
|
|
180
|
+
panels?: View[];
|
|
181
|
+
};
|
|
182
|
+
/** Records grouped by a field (kanban). */
|
|
183
|
+
export type BoardView = {
|
|
184
|
+
type: 'board';
|
|
185
|
+
id?: PaneId;
|
|
186
|
+
title?: Text;
|
|
187
|
+
/** Toolbar actions of this view. */
|
|
188
|
+
actions?: Buttons;
|
|
189
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
190
|
+
fallback?: View;
|
|
191
|
+
collection: Name;
|
|
192
|
+
groupBy: Name;
|
|
193
|
+
card?: Fields;
|
|
194
|
+
filter?: Conditions;
|
|
195
|
+
move?: Change;
|
|
196
|
+
};
|
|
197
|
+
/** Records on a time axis (calendar, Gantt). */
|
|
198
|
+
export type TimelineView = {
|
|
199
|
+
type: 'timeline';
|
|
200
|
+
id?: PaneId;
|
|
201
|
+
title?: Text;
|
|
202
|
+
/** Toolbar actions of this view. */
|
|
203
|
+
actions?: Buttons;
|
|
204
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
205
|
+
fallback?: View;
|
|
206
|
+
collection: Name;
|
|
207
|
+
start: Name;
|
|
208
|
+
end?: Name;
|
|
209
|
+
groupBy?: Name;
|
|
210
|
+
scale?: 'day' | 'week' | 'month' | 'gantt';
|
|
211
|
+
filter?: Conditions;
|
|
212
|
+
move?: Change;
|
|
213
|
+
};
|
|
214
|
+
/** Records linked to a parent. */
|
|
215
|
+
export type TreeView = {
|
|
216
|
+
type: 'tree';
|
|
217
|
+
id?: PaneId;
|
|
218
|
+
title?: Text;
|
|
219
|
+
/** Toolbar actions of this view. */
|
|
220
|
+
actions?: Buttons;
|
|
221
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
222
|
+
fallback?: View;
|
|
223
|
+
collection: Name;
|
|
224
|
+
parent: Name;
|
|
225
|
+
label: Name;
|
|
226
|
+
order?: Name;
|
|
227
|
+
move?: Change;
|
|
228
|
+
};
|
|
229
|
+
/** Rows by columns of a relation (checklists, grants). */
|
|
230
|
+
export type MatrixView = {
|
|
231
|
+
type: 'matrix';
|
|
232
|
+
id?: PaneId;
|
|
233
|
+
title?: Text;
|
|
234
|
+
/** Toolbar actions of this view. */
|
|
235
|
+
actions?: Buttons;
|
|
236
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
237
|
+
fallback?: View;
|
|
238
|
+
collection: Name;
|
|
239
|
+
row: Name;
|
|
240
|
+
column: Name;
|
|
241
|
+
value: Name;
|
|
242
|
+
edit?: Change;
|
|
243
|
+
};
|
|
244
|
+
/** Records with a location. */
|
|
245
|
+
export type MapView = {
|
|
246
|
+
type: 'map';
|
|
247
|
+
id?: PaneId;
|
|
248
|
+
title?: Text;
|
|
249
|
+
/** Toolbar actions of this view. */
|
|
250
|
+
actions?: Buttons;
|
|
251
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
252
|
+
fallback?: View;
|
|
253
|
+
collection: Name;
|
|
254
|
+
location: Name;
|
|
255
|
+
label?: Name;
|
|
256
|
+
filter?: Conditions;
|
|
257
|
+
};
|
|
258
|
+
/** A number. */
|
|
259
|
+
export type StatView = {
|
|
260
|
+
type: 'stat';
|
|
261
|
+
id?: PaneId;
|
|
262
|
+
title?: Text;
|
|
263
|
+
/** Toolbar actions of this view. */
|
|
264
|
+
actions?: Buttons;
|
|
265
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
266
|
+
fallback?: View;
|
|
267
|
+
source: {
|
|
268
|
+
collection: Name;
|
|
269
|
+
aggregate: 'count' | 'sum' | 'avg' | 'min' | 'max';
|
|
270
|
+
field?: Name;
|
|
271
|
+
filter?: Conditions;
|
|
272
|
+
} | ActionCall;
|
|
273
|
+
format?: 'number' | 'money' | 'progress' | 'elapsed';
|
|
274
|
+
tone?: Tone;
|
|
275
|
+
};
|
|
276
|
+
/** Panes side by side; a later pane filters on `$selected` of an earlier one. */
|
|
277
|
+
export type SplitView = {
|
|
278
|
+
type: 'split';
|
|
279
|
+
id?: PaneId;
|
|
280
|
+
title?: Text;
|
|
281
|
+
/** Toolbar actions of this view. */
|
|
282
|
+
actions?: Buttons;
|
|
283
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
284
|
+
fallback?: View;
|
|
285
|
+
panes: View[];
|
|
286
|
+
};
|
|
287
|
+
/** Views as tabs. */
|
|
288
|
+
export type TabsView = {
|
|
289
|
+
type: 'tabs';
|
|
290
|
+
id?: PaneId;
|
|
291
|
+
title?: Text;
|
|
292
|
+
/** Toolbar actions of this view. */
|
|
293
|
+
actions?: Buttons;
|
|
294
|
+
/** What a front end that does not know this view kind draws instead. */
|
|
295
|
+
fallback?: View;
|
|
296
|
+
items: View[];
|
|
297
|
+
};
|
|
298
|
+
export type View = ListView | FormView | DetailView | BoardView | TimelineView | TreeView | MatrixView | MapView | StatView | SplitView | TabsView;
|
|
299
|
+
/** What an action returns, as a front end reads it (ADR 0042 decision 4). An object with `view`, `file` or `reveal` is one of the closed forms; anything else is values. */
|
|
300
|
+
export type ActionResult = {
|
|
301
|
+
view: ViewId;
|
|
302
|
+
/** The parameters it is opened with (`$param`). */
|
|
303
|
+
params?: Record<string, Literal>;
|
|
304
|
+
} | {
|
|
305
|
+
view: View;
|
|
306
|
+
} | {
|
|
307
|
+
file: string;
|
|
308
|
+
} | {
|
|
309
|
+
reveal: string;
|
|
310
|
+
} | ActionValues;
|
|
311
|
+
/** Values: a scalar, a list, or an object without `view`, `file` or `reveal` (a form `recalc` merges an object of them). */
|
|
312
|
+
export type ActionValues = string | number | boolean | null | unknown[] | {
|
|
313
|
+
view?: never;
|
|
314
|
+
file?: never;
|
|
315
|
+
reveal?: never;
|
|
316
|
+
[key: string]: unknown;
|
|
317
|
+
};
|
|
318
|
+
//# sourceMappingUR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