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