@json-layout/vocabulary 0.1.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
  },
@@ -94,6 +103,9 @@ export default {
94
103
  {
95
104
  "$ref": "#/$defs/textarea"
96
105
  },
106
+ {
107
+ "$ref": "#/$defs/markdown"
108
+ },
97
109
  {
98
110
  "$ref": "#/$defs/checkbox"
99
111
  },
@@ -115,9 +127,18 @@ export default {
115
127
  {
116
128
  "$ref": "#/$defs/color-picker"
117
129
  },
130
+ {
131
+ "$ref": "#/$defs/combobox"
132
+ },
133
+ {
134
+ "$ref": "#/$defs/number-combobox"
135
+ },
118
136
  {
119
137
  "$ref": "#/$defs/select"
120
138
  },
139
+ {
140
+ "$ref": "#/$defs/autocomplete"
141
+ },
121
142
  {
122
143
  "$ref": "#/$defs/one-of-select"
123
144
  },
@@ -132,6 +153,9 @@ export default {
132
153
  },
133
154
  {
134
155
  "$ref": "#/$defs/expansion-panels"
156
+ },
157
+ {
158
+ "$ref": "#/$defs/stepper"
135
159
  }
136
160
  ]
137
161
  }
@@ -276,6 +300,33 @@ export default {
276
300
  }
277
301
  }
278
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
+ },
279
330
  "child": {
280
331
  "type": "object",
281
332
  "unevaluatedProperties": false,
@@ -383,6 +434,9 @@ export default {
383
434
  },
384
435
  "label": {
385
436
  "type": "string"
437
+ },
438
+ "autofocus": {
439
+ "type": "boolean"
386
440
  }
387
441
  }
388
442
  },
@@ -399,6 +453,9 @@ export default {
399
453
  "label": {
400
454
  "type": "string"
401
455
  },
456
+ "autofocus": {
457
+ "type": "boolean"
458
+ },
402
459
  "step": {
403
460
  "type": "number"
404
461
  },
@@ -422,6 +479,27 @@ export default {
422
479
  },
423
480
  "label": {
424
481
  "type": "string"
482
+ },
483
+ "autofocus": {
484
+ "type": "boolean"
485
+ }
486
+ }
487
+ },
488
+ "markdown": {
489
+ "type": "object",
490
+ "required": [
491
+ "comp",
492
+ "label"
493
+ ],
494
+ "properties": {
495
+ "comp": {
496
+ "const": "markdown"
497
+ },
498
+ "label": {
499
+ "type": "string"
500
+ },
501
+ "autofocus": {
502
+ "type": "boolean"
425
503
  }
426
504
  }
427
505
  },
@@ -573,6 +651,69 @@ export default {
573
651
  }
574
652
  }
575
653
  },
654
+ "combobox": {
655
+ "type": "object",
656
+ "required": [
657
+ "comp",
658
+ "label"
659
+ ],
660
+ "properties": {
661
+ "comp": {
662
+ "const": "combobox"
663
+ },
664
+ "label": {
665
+ "type": "string"
666
+ },
667
+ "autofocus": {
668
+ "type": "boolean"
669
+ },
670
+ "items": {
671
+ "$ref": "#/$defs/select-items"
672
+ },
673
+ "getItems": {
674
+ "$ref": "#/$defs/get-items"
675
+ },
676
+ "multiple": {
677
+ "type": "boolean"
678
+ }
679
+ }
680
+ },
681
+ "number-combobox": {
682
+ "type": "object",
683
+ "required": [
684
+ "comp",
685
+ "label"
686
+ ],
687
+ "properties": {
688
+ "comp": {
689
+ "const": "number-combobox"
690
+ },
691
+ "label": {
692
+ "type": "string"
693
+ },
694
+ "autofocus": {
695
+ "type": "boolean"
696
+ },
697
+ "items": {
698
+ "$ref": "#/$defs/select-items"
699
+ },
700
+ "getItems": {
701
+ "$ref": "#/$defs/get-items"
702
+ },
703
+ "multiple": {
704
+ "type": "boolean"
705
+ },
706
+ "step": {
707
+ "type": "number"
708
+ },
709
+ "min": {
710
+ "type": "number"
711
+ },
712
+ "max": {
713
+ "type": "number"
714
+ }
715
+ }
716
+ },
576
717
  "select": {
577
718
  "type": "object",
578
719
  "required": [
@@ -586,11 +727,44 @@ export default {
586
727
  "label": {
587
728
  "type": "string"
588
729
  },
730
+ "autofocus": {
731
+ "type": "boolean"
732
+ },
733
+ "items": {
734
+ "$ref": "#/$defs/select-items"
735
+ },
736
+ "getItems": {
737
+ "$ref": "#/$defs/get-items"
738
+ },
739
+ "multiple": {
740
+ "type": "boolean"
741
+ }
742
+ }
743
+ },
744
+ "autocomplete": {
745
+ "type": "object",
746
+ "required": [
747
+ "comp",
748
+ "label"
749
+ ],
750
+ "properties": {
751
+ "comp": {
752
+ "const": "autocomplete"
753
+ },
754
+ "label": {
755
+ "type": "string"
756
+ },
757
+ "autofocus": {
758
+ "type": "boolean"
759
+ },
589
760
  "items": {
590
761
  "$ref": "#/$defs/select-items"
591
762
  },
592
763
  "getItems": {
593
764
  "$ref": "#/$defs/get-items"
765
+ },
766
+ "multiple": {
767
+ "type": "boolean"
594
768
  }
595
769
  }
596
770
  },
@@ -614,35 +788,47 @@ export default {
614
788
  "key": {
615
789
  "type": "string"
616
790
  },
617
- "value": {}
791
+ "value": {},
792
+ "icon": {
793
+ "type": "string"
794
+ }
618
795
  }
619
796
  },
620
797
  "get-items": {
621
798
  "type": "object",
622
- "properties": {
623
- "returnObjects": {
624
- "type": "boolean",
625
- "readOnly": true
626
- },
627
- "itemsResults": {
628
- "$ref": "#/$defs/expression"
629
- },
630
- "itemTitle": {
631
- "$ref": "#/$defs/expression"
632
- },
633
- "itemKey": {
634
- "$ref": "#/$defs/expression"
635
- },
636
- "itemValue": {
637
- "$ref": "#/$defs/expression"
638
- }
639
- },
640
- "oneOf": [
799
+ "allOf": [
641
800
  {
642
- "$ref": "#/$defs/expression"
801
+ "properties": {
802
+ "returnObjects": {
803
+ "type": "boolean",
804
+ "readOnly": true
805
+ },
806
+ "itemsResults": {
807
+ "$ref": "#/$defs/expression"
808
+ },
809
+ "itemTitle": {
810
+ "$ref": "#/$defs/expression"
811
+ },
812
+ "itemKey": {
813
+ "$ref": "#/$defs/expression"
814
+ },
815
+ "itemValue": {
816
+ "$ref": "#/$defs/expression"
817
+ },
818
+ "itemIcon": {
819
+ "$ref": "#/$defs/expression"
820
+ }
821
+ }
643
822
  },
644
823
  {
645
- "$ref": "#/$defs/get-items-fetch"
824
+ "oneOf": [
825
+ {
826
+ "$ref": "#/$defs/expression"
827
+ },
828
+ {
829
+ "$ref": "#/$defs/get-items-fetch"
830
+ }
831
+ ]
646
832
  }
647
833
  ]
648
834
  },
@@ -654,6 +840,17 @@ export default {
654
840
  "properties": {
655
841
  "url": {
656
842
  "$ref": "#/$defs/expression"
843
+ },
844
+ "qSearchParam": {
845
+ "type": "string"
846
+ },
847
+ "searchParams": {
848
+ "type": "object",
849
+ "patternProperties": {
850
+ ".*": {
851
+ "$ref": "#/$defs/expression"
852
+ }
853
+ }
657
854
  }
658
855
  }
659
856
  },
@@ -665,15 +862,6 @@ export default {
665
862
  "properties": {
666
863
  "comp": {
667
864
  "const": "one-of-select"
668
- },
669
- "if": {
670
- "$ref": "#/$defs/expression"
671
- },
672
- "label": {
673
- "type": "string"
674
- },
675
- "help": {
676
- "type": "string"
677
865
  }
678
866
  }
679
867
  },
@@ -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"},
@@ -52,6 +55,7 @@
52
55
  {"$ref": "#/$defs/text-field"},
53
56
  {"$ref": "#/$defs/number-field"},
54
57
  {"$ref": "#/$defs/textarea"},
58
+ {"$ref": "#/$defs/markdown"},
55
59
  {"$ref": "#/$defs/checkbox"},
56
60
  {"$ref": "#/$defs/switch"},
57
61
  {"$ref": "#/$defs/slider"},
@@ -59,12 +63,16 @@
59
63
  {"$ref": "#/$defs/date-time-picker"},
60
64
  {"$ref": "#/$defs/time-picker"},
61
65
  {"$ref": "#/$defs/color-picker"},
66
+ {"$ref": "#/$defs/combobox"},
67
+ {"$ref": "#/$defs/number-combobox"},
62
68
  {"$ref": "#/$defs/select"},
69
+ {"$ref": "#/$defs/autocomplete"},
63
70
  {"$ref": "#/$defs/one-of-select"},
64
71
  {"$ref": "#/$defs/section"},
65
72
  {"$ref": "#/$defs/tabs"},
66
73
  {"$ref": "#/$defs/vertical-tabs"},
67
- {"$ref": "#/$defs/expansion-panels"}
74
+ {"$ref": "#/$defs/expansion-panels"},
75
+ {"$ref": "#/$defs/stepper"}
68
76
  ]
69
77
  }
70
78
  ]
@@ -127,6 +135,16 @@
127
135
  "children": {"$ref": "#/$defs/children"}
128
136
  }
129
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
+ },
130
148
  "child": {
131
149
  "type": "object",
132
150
  "unevaluatedProperties": false,
@@ -172,7 +190,8 @@
172
190
  "required": ["comp", "label"],
173
191
  "properties": {
174
192
  "comp": {"const": "text-field"},
175
- "label": {"type": "string"}
193
+ "label": {"type": "string"},
194
+ "autofocus": {"type": "boolean"}
176
195
  }
177
196
  },
178
197
  "number-field": {
@@ -181,6 +200,7 @@
181
200
  "properties": {
182
201
  "comp": {"const": "number-field"},
183
202
  "label": {"type": "string"},
203
+ "autofocus": {"type": "boolean"},
184
204
  "step": {"type": "number"},
185
205
  "min": {"type": "number"},
186
206
  "max": {"type": "number"}
@@ -191,7 +211,17 @@
191
211
  "required": ["comp", "label"],
192
212
  "properties": {
193
213
  "comp": {"const": "textarea"},
194
- "label": {"type": "string"}
214
+ "label": {"type": "string"},
215
+ "autofocus": {"type": "boolean"}
216
+ }
217
+ },
218
+ "markdown": {
219
+ "type": "object",
220
+ "required": ["comp", "label"],
221
+ "properties": {
222
+ "comp": {"const": "markdown"},
223
+ "label": {"type": "string"},
224
+ "autofocus": {"type": "boolean"}
195
225
  }
196
226
  },
197
227
  "checkbox": {
@@ -260,14 +290,55 @@
260
290
  "label": {"type": "string"}
261
291
  }
262
292
  },
293
+ "combobox": {
294
+ "type": "object",
295
+ "required": ["comp", "label"],
296
+ "properties": {
297
+ "comp": {"const": "combobox"},
298
+ "label": {"type": "string"},
299
+ "autofocus": {"type": "boolean"},
300
+ "items": {"$ref": "#/$defs/select-items"},
301
+ "getItems": {"$ref": "#/$defs/get-items"},
302
+ "multiple": {"type": "boolean"}
303
+ }
304
+ },
305
+ "number-combobox": {
306
+ "type": "object",
307
+ "required": ["comp", "label"],
308
+ "properties": {
309
+ "comp": {"const": "number-combobox"},
310
+ "label": {"type": "string"},
311
+ "autofocus": {"type": "boolean"},
312
+ "items": {"$ref": "#/$defs/select-items"},
313
+ "getItems": {"$ref": "#/$defs/get-items"},
314
+ "multiple": {"type": "boolean"},
315
+ "step": {"type": "number"},
316
+ "min": {"type": "number"},
317
+ "max": {"type": "number"}
318
+ }
319
+ },
263
320
  "select": {
264
321
  "type": "object",
265
322
  "required": ["comp", "label"],
266
323
  "properties": {
267
324
  "comp": {"const": "select"},
268
325
  "label": {"type": "string"},
326
+ "autofocus": {"type": "boolean"},
269
327
  "items": {"$ref": "#/$defs/select-items"},
270
- "getItems": {"$ref": "#/$defs/get-items"}
328
+ "getItems": {"$ref": "#/$defs/get-items"},
329
+ "multiple": {"type": "boolean"}
330
+ }
331
+ },
332
+ "autocomplete": {
333
+ "type": "object",
334
+ "required": ["comp", "label"],
335
+ "properties": {
336
+ "comp": {"const": "autocomplete"},
337
+ "label": {"type": "string"},
338
+ "autofocus": {"type": "boolean"},
339
+ "items": {"$ref": "#/$defs/select-items"},
340
+ "getItems": {"$ref": "#/$defs/get-items"},
341
+ "multiple": {"type": "boolean"}
271
342
  }
272
343
  },
273
344
  "select-items": {
@@ -280,38 +351,48 @@
280
351
  "properties": {
281
352
  "title": {"type": "string"},
282
353
  "key": {"type": "string"},
283
- "value": {}
354
+ "value": {},
355
+ "icon": {"type": "string"}
284
356
  }
285
357
  },
286
358
  "get-items": {
287
359
  "type": "object",
288
- "properties": {
289
- "returnObjects": {"type": "boolean", "readOnly": true},
290
- "itemsResults": {"$ref": "#/$defs/expression"},
291
- "itemTitle": {"$ref": "#/$defs/expression"},
292
- "itemKey": {"$ref": "#/$defs/expression"},
293
- "itemValue": {"$ref": "#/$defs/expression"}
360
+ "allOf": [{
361
+ "properties": {
362
+ "returnObjects": {"type": "boolean", "readOnly": true},
363
+ "itemsResults": {"$ref": "#/$defs/expression"},
364
+ "itemTitle": {"$ref": "#/$defs/expression"},
365
+ "itemKey": {"$ref": "#/$defs/expression"},
366
+ "itemValue": {"$ref": "#/$defs/expression"},
367
+ "itemIcon": {"$ref": "#/$defs/expression"}
368
+ }
294
369
  },
295
- "oneOf": [
296
- {"$ref": "#/$defs/expression"},
297
- {"$ref": "#/$defs/get-items-fetch"}
298
- ]
370
+ {
371
+ "oneOf": [
372
+ {"$ref": "#/$defs/expression"},
373
+ {"$ref": "#/$defs/get-items-fetch"}
374
+ ]
375
+ }]
299
376
  },
300
377
  "get-items-fetch": {
301
378
  "type": "object",
302
379
  "required": ["url"],
303
380
  "properties": {
304
- "url": {"$ref": "#/$defs/expression"}
381
+ "url": {"$ref": "#/$defs/expression"},
382
+ "qSearchParam": {"type": "string"},
383
+ "searchParams": {
384
+ "type": "object",
385
+ "patternProperties": {
386
+ ".*": {"$ref": "#/$defs/expression"}
387
+ }
388
+ }
305
389
  }
306
390
  },
307
391
  "one-of-select": {
308
392
  "type": "object",
309
393
  "required": ["comp"],
310
394
  "properties": {
311
- "comp": {"const": "one-of-select"},
312
- "if": {"$ref": "#/$defs/expression"},
313
- "label": {"type": "string"},
314
- "help": {"type": "string"}
395
+ "comp": {"const": "one-of-select"}
315
396
  }
316
397
  },
317
398
  "expression": {