@json-layout/vocabulary 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,15 @@ export default {
39
39
  "if": {
40
40
  "$ref": "#/$defs/expression"
41
41
  },
42
+ "defaultData": {
43
+ "$ref": "#/$defs/expression"
44
+ },
45
+ "constData": {
46
+ "$ref": "#/$defs/expression"
47
+ },
48
+ "nullable": {
49
+ "type": "boolean"
50
+ },
42
51
  "help": {
43
52
  "type": "string"
44
53
  },
@@ -144,6 +153,9 @@ export default {
144
153
  },
145
154
  {
146
155
  "$ref": "#/$defs/expansion-panels"
156
+ },
157
+ {
158
+ "$ref": "#/$defs/stepper"
147
159
  }
148
160
  ]
149
161
  }
@@ -288,6 +300,33 @@ export default {
288
300
  }
289
301
  }
290
302
  },
303
+ "stepper": {
304
+ "type": "object",
305
+ "required": [
306
+ "comp",
307
+ "children"
308
+ ],
309
+ "properties": {
310
+ "comp": {
311
+ "const": "stepper"
312
+ },
313
+ "title": {
314
+ "type": [
315
+ "string",
316
+ "null"
317
+ ]
318
+ },
319
+ "subtitle": {
320
+ "type": [
321
+ "string",
322
+ "null"
323
+ ]
324
+ },
325
+ "children": {
326
+ "$ref": "#/$defs/children"
327
+ }
328
+ }
329
+ },
291
330
  "child": {
292
331
  "type": "object",
293
332
  "unevaluatedProperties": false,
@@ -395,6 +434,9 @@ export default {
395
434
  },
396
435
  "label": {
397
436
  "type": "string"
437
+ },
438
+ "autofocus": {
439
+ "type": "boolean"
398
440
  }
399
441
  }
400
442
  },
@@ -411,6 +453,9 @@ export default {
411
453
  "label": {
412
454
  "type": "string"
413
455
  },
456
+ "autofocus": {
457
+ "type": "boolean"
458
+ },
414
459
  "step": {
415
460
  "type": "number"
416
461
  },
@@ -434,6 +479,9 @@ export default {
434
479
  },
435
480
  "label": {
436
481
  "type": "string"
482
+ },
483
+ "autofocus": {
484
+ "type": "boolean"
437
485
  }
438
486
  }
439
487
  },
@@ -449,6 +497,9 @@ export default {
449
497
  },
450
498
  "label": {
451
499
  "type": "string"
500
+ },
501
+ "autofocus": {
502
+ "type": "boolean"
452
503
  }
453
504
  }
454
505
  },
@@ -613,6 +664,9 @@ export default {
613
664
  "label": {
614
665
  "type": "string"
615
666
  },
667
+ "autofocus": {
668
+ "type": "boolean"
669
+ },
616
670
  "items": {
617
671
  "$ref": "#/$defs/select-items"
618
672
  },
@@ -637,6 +691,9 @@ export default {
637
691
  "label": {
638
692
  "type": "string"
639
693
  },
694
+ "autofocus": {
695
+ "type": "boolean"
696
+ },
640
697
  "items": {
641
698
  "$ref": "#/$defs/select-items"
642
699
  },
@@ -670,6 +727,9 @@ export default {
670
727
  "label": {
671
728
  "type": "string"
672
729
  },
730
+ "autofocus": {
731
+ "type": "boolean"
732
+ },
673
733
  "items": {
674
734
  "$ref": "#/$defs/select-items"
675
735
  },
@@ -694,6 +754,9 @@ export default {
694
754
  "label": {
695
755
  "type": "string"
696
756
  },
757
+ "autofocus": {
758
+ "type": "boolean"
759
+ },
697
760
  "items": {
698
761
  "$ref": "#/$defs/select-items"
699
762
  },
@@ -25,6 +25,9 @@
25
25
  {
26
26
  "properties": {
27
27
  "if": {"$ref": "#/$defs/expression"},
28
+ "defaultData": {"$ref": "#/$defs/expression"},
29
+ "constData": {"$ref": "#/$defs/expression"},
30
+ "nullable": {"type": "boolean"},
28
31
  "help": {"type": "string"},
29
32
  "cols": {"$ref": "#/$defs/cols-obj"},
30
33
  "props": {"$ref": "#/$defs/state-node-props-lib"},
@@ -68,7 +71,8 @@
68
71
  {"$ref": "#/$defs/section"},
69
72
  {"$ref": "#/$defs/tabs"},
70
73
  {"$ref": "#/$defs/vertical-tabs"},
71
- {"$ref": "#/$defs/expansion-panels"}
74
+ {"$ref": "#/$defs/expansion-panels"},
75
+ {"$ref": "#/$defs/stepper"}
72
76
  ]
73
77
  }
74
78
  ]
@@ -131,6 +135,16 @@
131
135
  "children": {"$ref": "#/$defs/children"}
132
136
  }
133
137
  },
138
+ "stepper": {
139
+ "type": "object",
140
+ "required": ["comp", "children"],
141
+ "properties": {
142
+ "comp": {"const": "stepper"},
143
+ "title": {"type": ["string", "null"]},
144
+ "subtitle": {"type": ["string", "null"]},
145
+ "children": {"$ref": "#/$defs/children"}
146
+ }
147
+ },
134
148
  "child": {
135
149
  "type": "object",
136
150
  "unevaluatedProperties": false,
@@ -176,7 +190,8 @@
176
190
  "required": ["comp", "label"],
177
191
  "properties": {
178
192
  "comp": {"const": "text-field"},
179
- "label": {"type": "string"}
193
+ "label": {"type": "string"},
194
+ "autofocus": {"type": "boolean"}
180
195
  }
181
196
  },
182
197
  "number-field": {
@@ -185,6 +200,7 @@
185
200
  "properties": {
186
201
  "comp": {"const": "number-field"},
187
202
  "label": {"type": "string"},
203
+ "autofocus": {"type": "boolean"},
188
204
  "step": {"type": "number"},
189
205
  "min": {"type": "number"},
190
206
  "max": {"type": "number"}
@@ -195,7 +211,8 @@
195
211
  "required": ["comp", "label"],
196
212
  "properties": {
197
213
  "comp": {"const": "textarea"},
198
- "label": {"type": "string"}
214
+ "label": {"type": "string"},
215
+ "autofocus": {"type": "boolean"}
199
216
  }
200
217
  },
201
218
  "markdown": {
@@ -203,7 +220,8 @@
203
220
  "required": ["comp", "label"],
204
221
  "properties": {
205
222
  "comp": {"const": "markdown"},
206
- "label": {"type": "string"}
223
+ "label": {"type": "string"},
224
+ "autofocus": {"type": "boolean"}
207
225
  }
208
226
  },
209
227
  "checkbox": {
@@ -278,6 +296,7 @@
278
296
  "properties": {
279
297
  "comp": {"const": "combobox"},
280
298
  "label": {"type": "string"},
299
+ "autofocus": {"type": "boolean"},
281
300
  "items": {"$ref": "#/$defs/select-items"},
282
301
  "getItems": {"$ref": "#/$defs/get-items"},
283
302
  "multiple": {"type": "boolean"}
@@ -289,6 +308,7 @@
289
308
  "properties": {
290
309
  "comp": {"const": "number-combobox"},
291
310
  "label": {"type": "string"},
311
+ "autofocus": {"type": "boolean"},
292
312
  "items": {"$ref": "#/$defs/select-items"},
293
313
  "getItems": {"$ref": "#/$defs/get-items"},
294
314
  "multiple": {"type": "boolean"},
@@ -303,6 +323,7 @@
303
323
  "properties": {
304
324
  "comp": {"const": "select"},
305
325
  "label": {"type": "string"},
326
+ "autofocus": {"type": "boolean"},
306
327
  "items": {"$ref": "#/$defs/select-items"},
307
328
  "getItems": {"$ref": "#/$defs/get-items"},
308
329
  "multiple": {"type": "boolean"}
@@ -314,6 +335,7 @@
314
335
  "properties": {
315
336
  "comp": {"const": "autocomplete"},
316
337
  "label": {"type": "string"},
338
+ "autofocus": {"type": "boolean"},
317
339
  "items": {"$ref": "#/$defs/select-items"},
318
340
  "getItems": {"$ref": "#/$defs/get-items"},
319
341
  "multiple": {"type": "boolean"}
@@ -1,6 +1,9 @@
1
1
  export type NormalizedLayout = SwitchStruct | CompObject;
2
2
  export type CompObject = {
3
3
  if?: Expression;
4
+ defaultData?: Expression;
5
+ constData?: Expression;
6
+ nullable?: boolean;
4
7
  help?: string;
5
8
  cols?: ColsObj;
6
9
  props?: StateNodePropsLib;
@@ -35,6 +38,7 @@ export type CompObject = {
35
38
  | Tabs
36
39
  | VerticalTabs
37
40
  | ExpansionPanels
41
+ | Stepper
38
42
  );
39
43
  export type Cols = number;
40
44
  /**
@@ -137,11 +141,13 @@ export interface List {
137
141
  export interface TextField {
138
142
  comp: "text-field";
139
143
  label: string;
144
+ autofocus?: boolean;
140
145
  [k: string]: unknown;
141
146
  }
142
147
  export interface NumberField {
143
148
  comp: "number-field";
144
149
  label: string;
150
+ autofocus?: boolean;
145
151
  step?: number;
146
152
  min?: number;
147
153
  max?: number;
@@ -150,11 +156,13 @@ export interface NumberField {
150
156
  export interface Textarea {
151
157
  comp: "textarea";
152
158
  label: string;
159
+ autofocus?: boolean;
153
160
  [k: string]: unknown;
154
161
  }
155
162
  export interface Markdown {
156
163
  comp: "markdown";
157
164
  label: string;
165
+ autofocus?: boolean;
158
166
  [k: string]: unknown;
159
167
  }
160
168
  export interface Checkbox {
@@ -205,6 +213,7 @@ export interface ColorPicker {
205
213
  export interface Combobox {
206
214
  comp: "combobox";
207
215
  label: string;
216
+ autofocus?: boolean;
208
217
  items?: SelectItems;
209
218
  getItems?: GetItems;
210
219
  multiple?: boolean;
@@ -228,6 +237,7 @@ export interface GetItemsFetch {
228
237
  export interface NumberCombobox {
229
238
  comp: "number-combobox";
230
239
  label: string;
240
+ autofocus?: boolean;
231
241
  items?: SelectItems;
232
242
  getItems?: GetItems;
233
243
  multiple?: boolean;
@@ -239,6 +249,7 @@ export interface NumberCombobox {
239
249
  export interface Select {
240
250
  comp: "select";
241
251
  label: string;
252
+ autofocus?: boolean;
242
253
  items?: SelectItems;
243
254
  getItems?: GetItems;
244
255
  multiple?: boolean;
@@ -247,6 +258,7 @@ export interface Select {
247
258
  export interface Autocomplete {
248
259
  comp: "autocomplete";
249
260
  label: string;
261
+ autofocus?: boolean;
250
262
  items?: SelectItems;
251
263
  getItems?: GetItems;
252
264
  multiple?: boolean;
@@ -284,3 +296,10 @@ export interface ExpansionPanels {
284
296
  children: Children;
285
297
  [k: string]: unknown;
286
298
  }
299
+ export interface Stepper {
300
+ comp: "stepper";
301
+ title?: string | null;
302
+ subtitle?: string | null;
303
+ children: Children;
304
+ [k: string]: unknown;
305
+ }