@json-layout/vocabulary 0.8.0 → 0.9.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.
@@ -1,20 +1,24 @@
1
1
  export type NormalizedLayout = SwitchStruct | CompObject;
2
2
  export type CompObject = {
3
3
  if?: Expression;
4
- defaultData?: Expression;
5
- constData?: Expression;
4
+ options?: StateNodeOptionsBase;
5
+ getOptions?: Expression;
6
+ defaultData?: unknown;
7
+ getDefaultData?: Expression;
8
+ constData?: unknown;
9
+ getConstData?: Expression;
6
10
  transformData?: Expression;
7
11
  nullable?: boolean;
8
12
  help?: string;
9
13
  cols?: ColsObj;
10
14
  props?: StateNodePropsLib;
15
+ getProps?: Expression;
11
16
  slots?: StateNodeSlotsLib & {
12
17
  before?: Slot;
13
18
  after?: Slot;
14
19
  component?: Slot;
15
20
  [k: string]: unknown;
16
21
  };
17
- options?: StateNodeOptionsBase;
18
22
  [k: string]: unknown;
19
23
  } & (
20
24
  | None
@@ -42,6 +46,13 @@ export type CompObject = {
42
46
  | Stepper
43
47
  | FileInput
44
48
  );
49
+ export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
50
+ readOnly?: boolean;
51
+ summary?: boolean;
52
+ titleDepth?: number;
53
+ density?: "default" | "comfortable" | "compact";
54
+ [k: string]: unknown;
55
+ };
45
56
  export type Cols = number;
46
57
  /**
47
58
  * This interface was referenced by `StateNodeSlotsLib`'s JSON-Schema definition
@@ -57,12 +68,6 @@ export type Slot =
57
68
  | {
58
69
  name: string;
59
70
  };
60
- export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
61
- readOnly?: boolean;
62
- summary?: boolean;
63
- titleDepth?: number;
64
- [k: string]: unknown;
65
- };
66
71
  export type SelectItems = SelectItem[];
67
72
  export type GetItems = {
68
73
  returnObjects?: boolean;
@@ -96,6 +101,13 @@ export interface Expression {
96
101
  ref?: number;
97
102
  [k: string]: unknown;
98
103
  }
104
+ export interface StateNodeOptionsBaseLib {
105
+ /**
106
+ * This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
107
+ * via the `patternProperty` ".*".
108
+ */
109
+ [k: string]: unknown;
110
+ }
99
111
  export interface ColsObj {
100
112
  xs: number;
101
113
  sm?: Cols;
@@ -114,13 +126,6 @@ export interface StateNodePropsLib {
114
126
  export interface StateNodeSlotsLib {
115
127
  [k: string]: Slot;
116
128
  }
117
- export interface StateNodeOptionsBaseLib {
118
- /**
119
- * This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
120
- * via the `patternProperty` ".*".
121
- */
122
- [k: string]: unknown;
123
- }
124
129
  export interface None {
125
130
  comp: "none";
126
131
  [k: string]: unknown;