@json-layout/vocabulary 0.14.0 → 0.16.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.
Files changed (46) hide show
  1. package/package.json +5 -5
  2. package/src/components/compile-types.js +61 -0
  3. package/src/components/index.js +226 -0
  4. package/src/components/types.ts +378 -0
  5. package/src/index.js +3 -0
  6. package/src/layout-keyword/index.js +9 -2
  7. package/src/layout-keyword/schema.js +67 -62
  8. package/src/layout-keyword/schema.json +35 -50
  9. package/src/layout-keyword/types.ts +111 -42
  10. package/src/normalize.js +95 -54
  11. package/src/normalized-layout/index.js +18 -64
  12. package/src/normalized-layout/schema.js +235 -762
  13. package/src/normalized-layout/schema.json +118 -324
  14. package/src/normalized-layout/types.ts +163 -233
  15. package/src/types.ts +11 -0
  16. package/src/validate.js +42 -0
  17. package/types/components/compile-types.d.ts +13 -0
  18. package/types/components/compile-types.d.ts.map +1 -0
  19. package/types/components/index.d.ts +52 -0
  20. package/types/components/index.d.ts.map +1 -0
  21. package/types/components/types.d.ts +329 -0
  22. package/types/components/types.d.ts.map +1 -0
  23. package/types/index.d.ts +2 -0
  24. package/types/index.d.ts.map +1 -1
  25. package/types/layout-keyword/index.d.ts +6 -1
  26. package/types/layout-keyword/index.d.ts.map +1 -1
  27. package/types/layout-keyword/schema.d.ts +43 -26
  28. package/types/layout-keyword/types.d.ts +111 -18
  29. package/types/layout-keyword/types.d.ts.map +1 -1
  30. package/types/normalize.d.ts +3 -2
  31. package/types/normalize.d.ts.map +1 -1
  32. package/types/normalized-layout/index.d.ts +19 -65
  33. package/types/normalized-layout/index.d.ts.map +1 -1
  34. package/types/normalized-layout/schema.d.ts +171 -526
  35. package/types/normalized-layout/types.d.ts +163 -208
  36. package/types/normalized-layout/types.d.ts.map +1 -1
  37. package/types/types.d.ts +10 -0
  38. package/types/types.d.ts.map +1 -1
  39. package/types/validate.d.ts +8 -0
  40. package/types/validate.d.ts.map +1 -0
  41. package/src/layout-keyword/validate.js +0 -2
  42. package/src/normalized-layout/validate.js +0 -3
  43. package/types/layout-keyword/validate.d.ts +0 -23
  44. package/types/layout-keyword/validate.d.ts.map +0 -1
  45. package/types/normalized-layout/validate.d.ts +0 -23
  46. package/types/normalized-layout/validate.d.ts.map +0 -1
@@ -1,10 +1,14 @@
1
1
  declare namespace _default {
2
2
  let $id: string;
3
- let title: string;
4
- let oneOf: {
5
- $ref: string;
6
- }[];
7
3
  let $defs: {
4
+ "normalized-layout": {
5
+ title: string;
6
+ type: string;
7
+ unevaluatedProperties: boolean;
8
+ oneOf: {
9
+ $ref: string;
10
+ }[];
11
+ };
8
12
  "switch-struct": {
9
13
  type: string;
10
14
  required: string[];
@@ -18,583 +22,236 @@ declare namespace _default {
18
22
  };
19
23
  };
20
24
  };
21
- "comp-object": {
22
- type: string;
23
- required: string[];
24
- unevaluatedProperties: boolean;
25
- allOf: ({
26
- properties: {
27
- if: {
28
- $ref: string;
29
- };
30
- options: {
31
- $ref: string;
32
- };
33
- getOptions: {
34
- $ref: string;
35
- };
36
- defaultData: {};
37
- getDefaultData: {
38
- $ref: string;
39
- };
40
- constData: {};
41
- getConstData: {
42
- $ref: string;
43
- };
44
- transformData: {
45
- $ref: string;
46
- };
47
- nullable: {
48
- type: string;
49
- };
50
- help: {
51
- type: string;
52
- };
53
- cols: {
54
- $ref: string;
55
- };
56
- props: {
57
- $ref: string;
58
- };
59
- getProps: {
60
- $ref: string;
61
- };
62
- slots: {
63
- type: string;
64
- allOf: ({
65
- $ref: string;
66
- properties?: undefined;
67
- } | {
68
- properties: {
69
- before: {
70
- $ref: string;
71
- };
72
- after: {
73
- $ref: string;
74
- };
75
- component: {
76
- $ref: string;
77
- };
78
- };
79
- $ref?: undefined;
80
- })[];
81
- };
82
- };
83
- discriminator?: undefined;
84
- oneOf?: undefined;
85
- } | {
86
- discriminator: {
87
- propertyName: string;
88
- };
89
- oneOf: {
90
- $ref: string;
91
- }[];
92
- properties?: undefined;
93
- })[];
94
- };
95
- "composite-comp-object": {
96
- type: string;
97
- discriminator: {
98
- propertyName: string;
99
- };
100
- oneOf: {
101
- $ref: string;
102
- }[];
103
- };
104
- none: {
25
+ "base-comp-object": {
105
26
  type: string;
106
27
  required: string[];
107
28
  properties: {
108
29
  comp: {
109
- const: string;
110
- };
111
- };
112
- };
113
- section: {
114
- type: string;
115
- required: string[];
116
- properties: {
117
- comp: {
118
- const: string;
119
- };
120
- title: {
121
- type: string[];
122
- };
123
- subtitle: {
124
- type: string[];
30
+ type: string;
125
31
  };
126
- children: {
32
+ if: {
127
33
  $ref: string;
128
34
  };
129
- };
130
- };
131
- tabs: {
132
- type: string;
133
- required: string[];
134
- properties: {
135
- comp: {
136
- const: string;
137
- };
138
- title: {
139
- type: string[];
140
- };
141
- subtitle: {
142
- type: string[];
143
- };
144
- children: {
35
+ options: {
145
36
  $ref: string;
146
37
  };
147
- };
148
- };
149
- "vertical-tabs": {
150
- type: string;
151
- required: string[];
152
- properties: {
153
- comp: {
154
- const: string;
155
- };
156
- title: {
157
- type: string[];
158
- };
159
- subtitle: {
160
- type: string[];
161
- };
162
- children: {
38
+ getOptions: {
163
39
  $ref: string;
164
40
  };
165
- };
166
- };
167
- "expansion-panels": {
168
- type: string;
169
- required: string[];
170
- properties: {
171
- comp: {
172
- const: string;
173
- };
174
- title: {
175
- type: string[];
176
- };
177
- subtitle: {
178
- type: string[];
179
- };
180
- children: {
41
+ defaultData: {};
42
+ getDefaultData: {
181
43
  $ref: string;
182
44
  };
183
- };
184
- };
185
- stepper: {
186
- type: string;
187
- required: string[];
188
- properties: {
189
- comp: {
190
- const: string;
191
- };
192
- title: {
193
- type: string[];
194
- };
195
- subtitle: {
196
- type: string[];
197
- };
198
- children: {
45
+ constData: {};
46
+ getConstData: {
199
47
  $ref: string;
200
48
  };
201
- };
202
- };
203
- child: {
204
- type: string;
205
- unevaluatedProperties: boolean;
206
- required: string[];
207
- properties: {
208
- key: {
209
- type: string[];
210
- };
211
- cols: {
49
+ transformData: {
212
50
  $ref: string;
213
51
  };
214
- };
215
- anyOf: ({
216
- $ref?: undefined;
217
- } | {
218
- $ref: string;
219
- })[];
220
- };
221
- children: {
222
- type: string;
223
- items: {
224
- $ref: string;
225
- };
226
- };
227
- list: {
228
- type: string;
229
- required: string[];
230
- properties: {
231
- comp: {
232
- const: string;
233
- };
234
- title: {
52
+ nullable: {
235
53
  type: string;
236
54
  };
237
- listEditMode: {
55
+ help: {
238
56
  type: string;
239
- enum: string[];
240
57
  };
241
- listActions: {
242
- type: string;
243
- items: {
244
- type: string;
245
- enum: string[];
246
- };
58
+ cols: {
59
+ $ref: string;
247
60
  };
248
- itemTitle: {
61
+ props: {
249
62
  $ref: string;
250
63
  };
251
- itemSubtitle: {
64
+ getProps: {
252
65
  $ref: string;
253
66
  };
254
- messages: {
67
+ slots: {
255
68
  type: string;
256
- additionalProperties: boolean;
257
- properties: {
258
- addItem: {
259
- type: string;
260
- };
261
- delete: {
262
- type: string;
263
- };
264
- edit: {
265
- type: string;
266
- };
267
- duplicate: {
268
- type: string;
269
- };
270
- sort: {
271
- type: string;
69
+ allOf: ({
70
+ $ref: string;
71
+ properties?: undefined;
72
+ } | {
73
+ properties: {
74
+ before: {
75
+ $ref: string;
76
+ };
77
+ after: {
78
+ $ref: string;
79
+ };
80
+ component: {
81
+ $ref: string;
82
+ };
272
83
  };
273
- };
274
- };
275
- };
276
- };
277
- "text-field": {
278
- type: string;
279
- required: string[];
280
- properties: {
281
- comp: {
282
- const: string;
283
- };
284
- label: {
285
- type: string;
286
- };
287
- autofocus: {
288
- type: string;
289
- };
290
- };
291
- };
292
- "number-field": {
293
- type: string;
294
- required: string[];
295
- properties: {
296
- comp: {
297
- const: string;
298
- };
299
- label: {
300
- type: string;
301
- };
302
- autofocus: {
303
- type: string;
304
- };
305
- step: {
306
- type: string;
307
- };
308
- min: {
309
- type: string;
310
- };
311
- max: {
312
- type: string;
313
- };
314
- };
315
- };
316
- textarea: {
317
- type: string;
318
- required: string[];
319
- properties: {
320
- comp: {
321
- const: string;
322
- };
323
- label: {
324
- type: string;
325
- };
326
- autofocus: {
327
- type: string;
328
- };
329
- };
330
- };
331
- markdown: {
332
- type: string;
333
- required: string[];
334
- properties: {
335
- comp: {
336
- const: string;
337
- };
338
- label: {
339
- type: string;
340
- };
341
- autofocus: {
342
- type: string;
343
- };
344
- };
345
- };
346
- checkbox: {
347
- type: string;
348
- required: string[];
349
- properties: {
350
- comp: {
351
- const: string;
352
- };
353
- label: {
354
- type: string;
84
+ $ref?: undefined;
85
+ })[];
355
86
  };
356
87
  };
357
88
  };
358
- switch: {
359
- type: string;
360
- required: string[];
361
- properties: {
362
- comp: {
363
- const: string;
364
- };
365
- label: {
366
- type: string;
367
- };
368
- };
369
- };
370
- slider: {
371
- type: string;
372
- required: string[];
373
- properties: {
374
- comp: {
375
- const: string;
376
- };
377
- label: {
378
- type: string;
379
- };
380
- step: {
381
- type: string;
382
- };
383
- min: {
384
- type: string;
385
- };
386
- max: {
387
- type: string;
89
+ "composite-comp-object": {
90
+ allOf: ({
91
+ $ref: string;
92
+ type?: undefined;
93
+ required?: undefined;
94
+ properties?: undefined;
95
+ } | {
96
+ type: string;
97
+ required: string[];
98
+ properties: {
99
+ comp: {
100
+ type: string;
101
+ };
102
+ title: {
103
+ type: string[];
104
+ };
105
+ subtitle: {
106
+ type: string[];
107
+ };
108
+ children: {
109
+ $ref: string;
110
+ };
388
111
  };
389
- };
112
+ $ref?: undefined;
113
+ })[];
390
114
  };
391
- "date-picker": {
392
- type: string;
393
- required: string[];
394
- properties: {
395
- comp: {
396
- const: string;
397
- };
398
- label: {
399
- type: string;
400
- };
401
- min: {
402
- type: string;
403
- format: string;
404
- };
405
- max: {
406
- type: string;
407
- format: string;
408
- };
409
- format: {
410
- type: string;
411
- enum: string[];
412
- default: string;
115
+ "simple-comp-object": {
116
+ allOf: ({
117
+ $ref: string;
118
+ type?: undefined;
119
+ required?: undefined;
120
+ properties?: undefined;
121
+ } | {
122
+ type: string;
123
+ required: string[];
124
+ properties: {
125
+ comp: {
126
+ type: string;
127
+ };
128
+ label: {
129
+ type: string;
130
+ };
413
131
  };
414
- };
132
+ $ref?: undefined;
133
+ })[];
415
134
  };
416
- "date-time-picker": {
417
- type: string;
418
- required: string[];
419
- properties: {
420
- comp: {
421
- const: string;
422
- };
423
- label: {
424
- type: string;
425
- };
426
- min: {
427
- type: string;
428
- format: string;
429
- };
430
- max: {
431
- type: string;
432
- format: string;
135
+ "focusable-comp-object": {
136
+ allOf: ({
137
+ $ref: string;
138
+ type?: undefined;
139
+ required?: undefined;
140
+ properties?: undefined;
141
+ } | {
142
+ type: string;
143
+ required: string[];
144
+ properties: {
145
+ comp: {
146
+ type: string;
147
+ };
148
+ label: {
149
+ type: string;
150
+ };
151
+ autofocus: {
152
+ type: string;
153
+ };
433
154
  };
434
- };
155
+ $ref?: undefined;
156
+ })[];
435
157
  };
436
- "time-picker": {
437
- type: string;
438
- required: string[];
439
- properties: {
440
- comp: {
441
- const: string;
442
- };
443
- label: {
444
- type: string;
445
- };
446
- min: {
447
- type: string;
448
- format: string;
449
- };
450
- max: {
451
- type: string;
452
- format: string;
158
+ "items-based-comp-object": {
159
+ allOf: ({
160
+ $ref: string;
161
+ type?: undefined;
162
+ required?: undefined;
163
+ properties?: undefined;
164
+ } | {
165
+ type: string;
166
+ required: string[];
167
+ properties: {
168
+ comp: {
169
+ type: string;
170
+ };
171
+ items: {
172
+ $ref: string;
173
+ };
174
+ getItems: {
175
+ $ref: string;
176
+ };
177
+ multiple: {
178
+ type: string;
179
+ };
180
+ separator: {
181
+ type: string;
182
+ };
453
183
  };
454
- };
184
+ $ref?: undefined;
185
+ })[];
455
186
  };
456
- "color-picker": {
457
- type: string;
458
- required: string[];
459
- properties: {
460
- comp: {
461
- const: string;
462
- };
463
- label: {
464
- type: string;
187
+ "multiple-compat-comp-object": {
188
+ allOf: ({
189
+ $ref: string;
190
+ type?: undefined;
191
+ required?: undefined;
192
+ properties?: undefined;
193
+ } | {
194
+ type: string;
195
+ required: string[];
196
+ properties: {
197
+ comp: {
198
+ type: string;
199
+ };
200
+ multiple: {
201
+ type: string;
202
+ };
465
203
  };
466
- };
204
+ $ref?: undefined;
205
+ })[];
467
206
  };
468
- combobox: {
207
+ "child-ref": {
469
208
  type: string;
470
209
  required: string[];
210
+ additionalProperties: boolean;
471
211
  properties: {
472
- comp: {
473
- const: string;
474
- };
475
- label: {
476
- type: string;
477
- };
478
- autofocus: {
479
- type: string;
480
- };
481
- items: {
482
- $ref: string;
212
+ key: {
213
+ type: string[];
483
214
  };
484
- getItems: {
215
+ cols: {
485
216
  $ref: string;
486
217
  };
487
- multiple: {
488
- type: string;
489
- };
490
- separator: {
491
- type: string;
492
- };
493
218
  };
494
219
  };
495
- "number-combobox": {
220
+ "child-composite": {
496
221
  type: string;
497
222
  required: string[];
498
223
  properties: {
499
- comp: {
500
- const: string;
501
- };
502
- label: {
503
- type: string;
504
- };
505
- autofocus: {
506
- type: string;
507
- };
508
- items: {
509
- $ref: string;
224
+ key: {
225
+ type: string[];
510
226
  };
511
- getItems: {
227
+ cols: {
512
228
  $ref: string;
513
229
  };
514
- multiple: {
515
- type: string;
516
- };
517
- step: {
518
- type: string;
519
- };
520
- min: {
521
- type: string;
522
- };
523
- max: {
524
- type: string;
525
- };
526
- };
527
- };
528
- select: {
529
- type: string;
530
- required: string[];
531
- properties: {
532
230
  comp: {
533
- const: string;
534
- };
535
- label: {
536
231
  type: string;
537
232
  };
538
- autofocus: {
539
- type: string;
233
+ title: {
234
+ type: string[];
540
235
  };
541
- items: {
542
- $ref: string;
236
+ subtitle: {
237
+ type: string[];
543
238
  };
544
- getItems: {
239
+ children: {
545
240
  $ref: string;
546
241
  };
547
- multiple: {
548
- type: string;
549
- };
550
- separator: {
551
- type: string;
552
- };
553
242
  };
554
243
  };
555
- autocomplete: {
244
+ child: {
245
+ title: string;
556
246
  type: string;
557
- required: string[];
558
- properties: {
559
- comp: {
560
- const: string;
561
- };
562
- label: {
563
- type: string;
564
- };
565
- autofocus: {
566
- type: string;
567
- };
568
- items: {
569
- $ref: string;
570
- };
571
- getItems: {
572
- $ref: string;
573
- };
574
- multiple: {
575
- type: string;
576
- };
577
- separator: {
578
- type: string;
579
- };
580
- };
247
+ oneOf: {
248
+ $ref: string;
249
+ }[];
581
250
  };
582
- "file-input": {
251
+ children: {
583
252
  type: string;
584
- required: string[];
585
- properties: {
586
- comp: {
587
- const: string;
588
- };
589
- label: {
590
- type: string;
591
- };
592
- accept: {
593
- type: string;
594
- };
595
- multiple: {
596
- type: string;
597
- };
253
+ items: {
254
+ $ref: string;
598
255
  };
599
256
  };
600
257
  "select-items": {
@@ -671,18 +328,6 @@ declare namespace _default {
671
328
  };
672
329
  };
673
330
  };
674
- "one-of-select": {
675
- type: string;
676
- required: string[];
677
- properties: {
678
- comp: {
679
- const: string;
680
- };
681
- label: {
682
- type: string;
683
- };
684
- };
685
- };
686
331
  expression: {
687
332
  type: string;
688
333
  required: string[];