@json-layout/vocabulary 0.7.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.
- package/package.json +1 -1
- package/src/layout-keyword/schema.js +10 -2
- package/src/layout-keyword/schema.json +6 -2
- package/src/layout-keyword/types.ts +6 -2
- package/src/layout-keyword/validate.js +1 -1
- package/src/normalize.js +5 -3
- package/src/normalized-layout/index.js +1 -0
- package/src/normalized-layout/schema.js +26 -6
- package/src/normalized-layout/schema.json +13 -7
- package/src/normalized-layout/types.ts +22 -16
- package/src/normalized-layout/validate.js +2 -2
- package/types/layout-keyword/schema.d.ts +10 -2
- package/types/layout-keyword/types.d.ts +6 -2
- package/types/layout-keyword/types.d.ts.map +1 -1
- package/types/layout-keyword/validate.d.ts.map +1 -1
- package/types/normalize.d.ts.map +1 -1
- package/types/normalized-layout/index.d.ts +2 -0
- package/types/normalized-layout/index.d.ts.map +1 -1
- package/types/normalized-layout/schema.d.ts +20 -5
- package/types/normalized-layout/types.d.ts +22 -16
- package/types/normalized-layout/types.d.ts.map +1 -1
- package/types/normalized-layout/validate.d.ts +3 -3
- package/types/normalized-layout/validate.d.ts.map +1 -1
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
export type NormalizedLayout = SwitchStruct | CompObject;
|
|
2
2
|
export type CompObject = {
|
|
3
3
|
if?: Expression;
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
@@ -269,6 +274,7 @@ export interface Autocomplete {
|
|
|
269
274
|
}
|
|
270
275
|
export interface OneOfSelect {
|
|
271
276
|
comp: "one-of-select";
|
|
277
|
+
label: string;
|
|
272
278
|
[k: string]: unknown;
|
|
273
279
|
}
|
|
274
280
|
export interface Section {
|