@json-layout/vocabulary 0.4.0 → 0.6.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.
@@ -27,6 +27,7 @@
27
27
  "if": {"$ref": "#/$defs/expression"},
28
28
  "defaultData": {"$ref": "#/$defs/expression"},
29
29
  "constData": {"$ref": "#/$defs/expression"},
30
+ "transformData": {"$ref": "#/$defs/expression"},
30
31
  "nullable": {"type": "boolean"},
31
32
  "help": {"type": "string"},
32
33
  "cols": {"$ref": "#/$defs/cols-obj"},
@@ -44,7 +45,7 @@
44
45
  }
45
46
  ]
46
47
  },
47
- "options": {"$ref": "#/$defs/state-node-options"}
48
+ "options": {"$ref": "#/$defs/state-node-options-base"}
48
49
  }
49
50
  },
50
51
  {
@@ -72,7 +73,8 @@
72
73
  {"$ref": "#/$defs/tabs"},
73
74
  {"$ref": "#/$defs/vertical-tabs"},
74
75
  {"$ref": "#/$defs/expansion-panels"},
75
- {"$ref": "#/$defs/stepper"}
76
+ {"$ref": "#/$defs/stepper"},
77
+ {"$ref": "#/$defs/file-input"}
76
78
  ]
77
79
  }
78
80
  ]
@@ -341,6 +343,16 @@
341
343
  "multiple": {"type": "boolean"}
342
344
  }
343
345
  },
346
+ "file-input": {
347
+ "type": "object",
348
+ "required": ["comp", "label"],
349
+ "properties": {
350
+ "comp": {"const": "file-input"},
351
+ "label": {"type": "string"},
352
+ "accept": {"type": "string"},
353
+ "multiple": {"type": "boolean"}
354
+ }
355
+ },
344
356
  "select-items": {
345
357
  "type": "array",
346
358
  "items": {"$ref": "#/$defs/select-item"}
@@ -397,7 +409,7 @@
397
409
  },
398
410
  "expression": {
399
411
  "type": "object",
400
- "required": ["type", "expr"],
412
+ "required": ["type", "expr", "pure"],
401
413
  "properties": {
402
414
  "type": {
403
415
  "type": "string",
@@ -406,6 +418,9 @@
406
418
  "expr": {
407
419
  "type": "string"
408
420
  },
421
+ "pure": {
422
+ "type": "boolean"
423
+ },
409
424
  "ref": {
410
425
  "type": "integer",
411
426
  "readOnly": true
@@ -458,10 +473,10 @@
458
473
  }
459
474
  ]
460
475
  },
461
- "state-node-options": {
476
+ "state-node-options-base": {
462
477
  "type": "object",
463
478
  "allOf": [
464
- {"$ref": "#/$defs/state-node-options-lib"},
479
+ {"$ref": "#/$defs/state-node-options-base-lib"},
465
480
  {
466
481
  "properties": {
467
482
  "readOnly": {"type": "boolean", "default": false},
@@ -471,7 +486,7 @@
471
486
  }
472
487
  ]
473
488
  },
474
- "state-node-options-lib": {
489
+ "state-node-options-base-lib": {
475
490
  "type": "object",
476
491
  "patternProperties": {
477
492
  ".*": {}
@@ -3,6 +3,7 @@ export type CompObject = {
3
3
  if?: Expression;
4
4
  defaultData?: Expression;
5
5
  constData?: Expression;
6
+ transformData?: Expression;
6
7
  nullable?: boolean;
7
8
  help?: string;
8
9
  cols?: ColsObj;
@@ -13,7 +14,7 @@ export type CompObject = {
13
14
  component?: Slot;
14
15
  [k: string]: unknown;
15
16
  };
16
- options?: StateNodeOptions;
17
+ options?: StateNodeOptionsBase;
17
18
  [k: string]: unknown;
18
19
  } & (
19
20
  | None
@@ -39,6 +40,7 @@ export type CompObject = {
39
40
  | VerticalTabs
40
41
  | ExpansionPanels
41
42
  | Stepper
43
+ | FileInput
42
44
  );
43
45
  export type Cols = number;
44
46
  /**
@@ -55,7 +57,7 @@ export type Slot =
55
57
  | {
56
58
  name: string;
57
59
  };
58
- export type StateNodeOptions = StateNodeOptionsLib & {
60
+ export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
59
61
  readOnly?: boolean;
60
62
  summary?: boolean;
61
63
  titleDepth?: number;
@@ -90,6 +92,7 @@ export interface SwitchStruct {
90
92
  export interface Expression {
91
93
  type: "js-fn" | "js-eval" | "js-tpl";
92
94
  expr: string;
95
+ pure: boolean;
93
96
  ref?: number;
94
97
  [k: string]: unknown;
95
98
  }
@@ -111,9 +114,9 @@ export interface StateNodePropsLib {
111
114
  export interface StateNodeSlotsLib {
112
115
  [k: string]: Slot;
113
116
  }
114
- export interface StateNodeOptionsLib {
117
+ export interface StateNodeOptionsBaseLib {
115
118
  /**
116
- * This interface was referenced by `StateNodeOptionsLib`'s JSON-Schema definition
119
+ * This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
117
120
  * via the `patternProperty` ".*".
118
121
  */
119
122
  [k: string]: unknown;
@@ -303,3 +306,10 @@ export interface Stepper {
303
306
  children: Children;
304
307
  [k: string]: unknown;
305
308
  }
309
+ export interface FileInput {
310
+ comp: "file-input";
311
+ label: string;
312
+ accept?: string;
313
+ multiple?: boolean;
314
+ [k: string]: unknown;
315
+ }