@json-layout/vocabulary 0.13.0 → 0.15.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 +5 -5
- package/src/components/compile-types.js +61 -0
- package/src/components/index.js +226 -0
- package/src/components/types.ts +378 -0
- package/src/index.js +3 -0
- package/src/layout-keyword/index.js +9 -2
- package/src/layout-keyword/schema.js +67 -62
- package/src/layout-keyword/schema.json +35 -50
- package/src/layout-keyword/types.ts +111 -42
- package/src/normalize.js +93 -54
- package/src/normalized-layout/index.js +18 -64
- package/src/normalized-layout/schema.js +247 -766
- package/src/normalized-layout/schema.json +128 -329
- package/src/normalized-layout/types.ts +165 -234
- package/src/types.ts +11 -0
- package/src/validate.js +42 -0
- package/types/components/compile-types.d.ts +13 -0
- package/types/components/compile-types.d.ts.map +1 -0
- package/types/components/index.d.ts +52 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/types.d.ts +329 -0
- package/types/components/types.d.ts.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/layout-keyword/index.d.ts +6 -1
- package/types/layout-keyword/index.d.ts.map +1 -1
- package/types/layout-keyword/schema.d.ts +43 -26
- package/types/layout-keyword/types.d.ts +111 -18
- package/types/layout-keyword/types.d.ts.map +1 -1
- package/types/normalize.d.ts +3 -2
- package/types/normalize.d.ts.map +1 -1
- package/types/normalized-layout/index.d.ts +19 -65
- package/types/normalized-layout/index.d.ts.map +1 -1
- package/types/normalized-layout/schema.d.ts +181 -531
- package/types/normalized-layout/types.d.ts +165 -209
- package/types/normalized-layout/types.d.ts.map +1 -1
- package/types/types.d.ts +10 -0
- package/types/types.d.ts.map +1 -1
- package/types/validate.d.ts +8 -0
- package/types/validate.d.ts.map +1 -0
- package/src/layout-keyword/validate.js +0 -2
- package/src/normalized-layout/validate.js +0 -3
- package/types/layout-keyword/validate.d.ts +0 -23
- package/types/layout-keyword/validate.d.ts.map +0 -1
- package/types/normalized-layout/validate.d.ts +0 -23
- package/types/normalized-layout/validate.d.ts.map +0 -1
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
transformData?: Expression;
|
|
11
|
-
nullable?: boolean;
|
|
12
|
-
help?: string;
|
|
13
|
-
cols?: ColsObj;
|
|
14
|
-
props?: StateNodePropsLib;
|
|
15
|
-
getProps?: Expression;
|
|
16
|
-
slots?: StateNodeSlotsLib & {
|
|
17
|
-
before?: Slot;
|
|
18
|
-
after?: Slot;
|
|
19
|
-
component?: Slot;
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
[k: string]: unknown;
|
|
23
|
-
} & (None | List | TextField | NumberField | Textarea | Markdown | Checkbox | Switch | Slider | DatePicker | DateTimePicker | TimePicker | ColorPicker | Combobox | NumberCombobox | Select | Autocomplete | OneOfSelect | Section | Tabs | VerticalTabs | ExpansionPanels | Stepper | FileInput);
|
|
1
|
+
/**
|
|
2
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
3
|
+
* via the `definition` "normalized-layout".
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedLayout = SwitchStruct | BaseCompObject;
|
|
6
|
+
/**
|
|
7
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
8
|
+
* via the `definition` "state-node-options-base".
|
|
9
|
+
*/
|
|
24
10
|
export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
|
|
25
11
|
readOnly?: boolean;
|
|
26
12
|
summary?: boolean;
|
|
@@ -31,17 +17,25 @@ export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
|
|
|
31
17
|
*/
|
|
32
18
|
removeAdditional?: boolean | ("unknown" | "error" | "none");
|
|
33
19
|
validateOn?: "input" | "blur" | "submit";
|
|
20
|
+
updateOn?: "input" | "blur";
|
|
21
|
+
debounceInputMs?: number;
|
|
34
22
|
initialValidation?: "never" | "always" | "withData";
|
|
35
23
|
defaultOn?: "missing" | "empty" | "never";
|
|
36
24
|
autofocus?: boolean;
|
|
37
25
|
readOnlyPropertiesMode?: "remove" | "hide" | "show";
|
|
38
|
-
debounceInputMs?: number;
|
|
39
26
|
[k: string]: unknown;
|
|
40
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
30
|
+
* via the `definition` "cols".
|
|
31
|
+
*/
|
|
41
32
|
export type Cols = number;
|
|
42
33
|
/**
|
|
43
34
|
* This interface was referenced by `StateNodeSlotsLib`'s JSON-Schema definition
|
|
44
35
|
* via the `patternProperty` ".*".
|
|
36
|
+
*
|
|
37
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
38
|
+
* via the `definition` "slot".
|
|
45
39
|
*/
|
|
46
40
|
export type Slot = {
|
|
47
41
|
text: string;
|
|
@@ -50,7 +44,67 @@ export type Slot = {
|
|
|
50
44
|
} | {
|
|
51
45
|
name: string;
|
|
52
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
49
|
+
* via the `definition` "composite-comp-object".
|
|
50
|
+
*/
|
|
51
|
+
export type CompositeCompObject = BaseCompObject & {
|
|
52
|
+
comp: string;
|
|
53
|
+
title?: string | null;
|
|
54
|
+
subtitle?: string | null;
|
|
55
|
+
children: Children;
|
|
56
|
+
[k: string]: unknown;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
60
|
+
* via the `definition` "child".
|
|
61
|
+
*/
|
|
62
|
+
export type Child = ChildRef | ChildComposite;
|
|
63
|
+
/**
|
|
64
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
65
|
+
* via the `definition` "children".
|
|
66
|
+
*/
|
|
67
|
+
export type Children = Child[];
|
|
68
|
+
/**
|
|
69
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
70
|
+
* via the `definition` "simple-comp-object".
|
|
71
|
+
*/
|
|
72
|
+
export type SimpleCompObject = BaseCompObject & {
|
|
73
|
+
comp: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
[k: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
79
|
+
* via the `definition` "focusable-comp-object".
|
|
80
|
+
*/
|
|
81
|
+
export type FocusableCompObject = BaseCompObject & {
|
|
82
|
+
comp: string;
|
|
83
|
+
label?: string;
|
|
84
|
+
autofocus?: boolean;
|
|
85
|
+
[k: string]: unknown;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
89
|
+
* via the `definition` "items-based-comp-object".
|
|
90
|
+
*/
|
|
91
|
+
export type ItemsBasedCompObject = BaseCompObject & {
|
|
92
|
+
comp: string;
|
|
93
|
+
items?: SelectItems;
|
|
94
|
+
getItems?: GetItems;
|
|
95
|
+
multiple?: boolean;
|
|
96
|
+
separator?: string;
|
|
97
|
+
[k: string]: unknown;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
101
|
+
* via the `definition` "select-items".
|
|
102
|
+
*/
|
|
53
103
|
export type SelectItems = SelectItem[];
|
|
104
|
+
/**
|
|
105
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
106
|
+
* via the `definition` "get-items".
|
|
107
|
+
*/
|
|
54
108
|
export type GetItems = {
|
|
55
109
|
returnObjects?: boolean;
|
|
56
110
|
itemsResults?: Expression;
|
|
@@ -60,20 +114,58 @@ export type GetItems = {
|
|
|
60
114
|
itemIcon?: Expression;
|
|
61
115
|
[k: string]: unknown;
|
|
62
116
|
} & (Expression | GetItemsFetch);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
117
|
+
/**
|
|
118
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
119
|
+
* via the `definition` "multiple-compat-comp-object".
|
|
120
|
+
*/
|
|
121
|
+
export type MultipleCompatCompObject = BaseCompObject & {
|
|
122
|
+
comp: string;
|
|
123
|
+
multiple?: boolean;
|
|
66
124
|
[k: string]: unknown;
|
|
67
125
|
};
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
126
|
+
export interface HttpsJsonLayoutGithubIoNormalizedLayoutKeyword {
|
|
127
|
+
[k: string]: unknown;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
131
|
+
* via the `definition` "switch-struct".
|
|
132
|
+
*/
|
|
71
133
|
export interface SwitchStruct {
|
|
72
|
-
switch:
|
|
134
|
+
switch: BaseCompObject[];
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
138
|
+
* via the `definition` "base-comp-object".
|
|
139
|
+
*/
|
|
140
|
+
export interface BaseCompObject {
|
|
141
|
+
comp: string;
|
|
142
|
+
if?: Expression;
|
|
143
|
+
options?: StateNodeOptionsBase;
|
|
144
|
+
getOptions?: Expression;
|
|
145
|
+
defaultData?: unknown;
|
|
146
|
+
getDefaultData?: Expression;
|
|
147
|
+
constData?: unknown;
|
|
148
|
+
getConstData?: Expression;
|
|
149
|
+
transformData?: Expression;
|
|
150
|
+
nullable?: boolean;
|
|
151
|
+
help?: string;
|
|
152
|
+
cols?: ColsObj;
|
|
153
|
+
props?: StateNodePropsLib;
|
|
154
|
+
getProps?: Expression;
|
|
155
|
+
slots?: StateNodeSlotsLib & {
|
|
156
|
+
before?: Slot;
|
|
157
|
+
after?: Slot;
|
|
158
|
+
component?: Slot;
|
|
159
|
+
[k: string]: unknown;
|
|
160
|
+
};
|
|
161
|
+
[k: string]: unknown;
|
|
73
162
|
}
|
|
74
163
|
/**
|
|
75
164
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
76
165
|
* via the `patternProperty` ".*".
|
|
166
|
+
*
|
|
167
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
168
|
+
* via the `definition` "expression".
|
|
77
169
|
*/
|
|
78
170
|
export interface Expression {
|
|
79
171
|
type: "js-fn" | "js-eval" | "js-tpl";
|
|
@@ -82,6 +174,10 @@ export interface Expression {
|
|
|
82
174
|
ref?: number;
|
|
83
175
|
[k: string]: unknown;
|
|
84
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
179
|
+
* via the `definition` "state-node-options-base-lib".
|
|
180
|
+
*/
|
|
85
181
|
export interface StateNodeOptionsBaseLib {
|
|
86
182
|
/**
|
|
87
183
|
* This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
|
|
@@ -89,6 +185,10 @@ export interface StateNodeOptionsBaseLib {
|
|
|
89
185
|
*/
|
|
90
186
|
[k: string]: unknown;
|
|
91
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
190
|
+
* via the `definition` "cols-obj".
|
|
191
|
+
*/
|
|
92
192
|
export interface ColsObj {
|
|
93
193
|
xs: number;
|
|
94
194
|
sm?: Cols;
|
|
@@ -97,6 +197,10 @@ export interface ColsObj {
|
|
|
97
197
|
xl?: Cols;
|
|
98
198
|
xxl?: Cols;
|
|
99
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
202
|
+
* via the `definition` "state-node-props-lib".
|
|
203
|
+
*/
|
|
100
204
|
export interface StateNodePropsLib {
|
|
101
205
|
/**
|
|
102
206
|
* This interface was referenced by `StateNodePropsLib`'s JSON-Schema definition
|
|
@@ -104,111 +208,38 @@ export interface StateNodePropsLib {
|
|
|
104
208
|
*/
|
|
105
209
|
[k: string]: unknown;
|
|
106
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
213
|
+
* via the `definition` "state-node-slots-lib".
|
|
214
|
+
*/
|
|
107
215
|
export interface StateNodeSlotsLib {
|
|
108
216
|
[k: string]: Slot;
|
|
109
217
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export interface
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
listEditMode: "inline" | "inline-single" | "menu" | "dialog";
|
|
118
|
-
listActions: ("add" | "edit" | "delete" | "sort" | "duplicate")[];
|
|
119
|
-
itemTitle?: Expression;
|
|
120
|
-
itemSubtitle?: Expression;
|
|
121
|
-
messages?: {
|
|
122
|
-
addItem?: string;
|
|
123
|
-
delete?: string;
|
|
124
|
-
edit?: string;
|
|
125
|
-
duplicate?: string;
|
|
126
|
-
sort?: string;
|
|
127
|
-
};
|
|
128
|
-
[k: string]: unknown;
|
|
129
|
-
}
|
|
130
|
-
export interface TextField {
|
|
131
|
-
comp: "text-field";
|
|
132
|
-
label: string;
|
|
133
|
-
autofocus?: boolean;
|
|
134
|
-
[k: string]: unknown;
|
|
135
|
-
}
|
|
136
|
-
export interface NumberField {
|
|
137
|
-
comp: "number-field";
|
|
138
|
-
label: string;
|
|
139
|
-
autofocus?: boolean;
|
|
140
|
-
step?: number;
|
|
141
|
-
min?: number;
|
|
142
|
-
max?: number;
|
|
143
|
-
[k: string]: unknown;
|
|
144
|
-
}
|
|
145
|
-
export interface Textarea {
|
|
146
|
-
comp: "textarea";
|
|
147
|
-
label: string;
|
|
148
|
-
autofocus?: boolean;
|
|
149
|
-
[k: string]: unknown;
|
|
150
|
-
}
|
|
151
|
-
export interface Markdown {
|
|
152
|
-
comp: "markdown";
|
|
153
|
-
label: string;
|
|
154
|
-
autofocus?: boolean;
|
|
155
|
-
[k: string]: unknown;
|
|
156
|
-
}
|
|
157
|
-
export interface Checkbox {
|
|
158
|
-
comp: "checkbox";
|
|
159
|
-
label: string;
|
|
160
|
-
[k: string]: unknown;
|
|
161
|
-
}
|
|
162
|
-
export interface Switch {
|
|
163
|
-
comp: "switch";
|
|
164
|
-
label: string;
|
|
165
|
-
[k: string]: unknown;
|
|
166
|
-
}
|
|
167
|
-
export interface Slider {
|
|
168
|
-
comp: "slider";
|
|
169
|
-
label: string;
|
|
170
|
-
step?: number;
|
|
171
|
-
min: number;
|
|
172
|
-
max: number;
|
|
173
|
-
[k: string]: unknown;
|
|
174
|
-
}
|
|
175
|
-
export interface DatePicker {
|
|
176
|
-
comp: "date-picker";
|
|
177
|
-
label: string;
|
|
178
|
-
min?: string;
|
|
179
|
-
max?: string;
|
|
180
|
-
format?: "date" | "date-time";
|
|
181
|
-
[k: string]: unknown;
|
|
182
|
-
}
|
|
183
|
-
export interface DateTimePicker {
|
|
184
|
-
comp: "date-time-picker";
|
|
185
|
-
label: string;
|
|
186
|
-
min?: string;
|
|
187
|
-
max?: string;
|
|
188
|
-
[k: string]: unknown;
|
|
189
|
-
}
|
|
190
|
-
export interface TimePicker {
|
|
191
|
-
comp: "time-picker";
|
|
192
|
-
label: string;
|
|
193
|
-
min?: string;
|
|
194
|
-
max?: string;
|
|
195
|
-
[k: string]: unknown;
|
|
196
|
-
}
|
|
197
|
-
export interface ColorPicker {
|
|
198
|
-
comp: "color-picker";
|
|
199
|
-
label: string;
|
|
200
|
-
[k: string]: unknown;
|
|
218
|
+
/**
|
|
219
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
220
|
+
* via the `definition` "child-ref".
|
|
221
|
+
*/
|
|
222
|
+
export interface ChildRef {
|
|
223
|
+
key: string | number;
|
|
224
|
+
cols?: ColsObj;
|
|
201
225
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
226
|
+
/**
|
|
227
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
228
|
+
* via the `definition` "child-composite".
|
|
229
|
+
*/
|
|
230
|
+
export interface ChildComposite {
|
|
231
|
+
key: string | number;
|
|
232
|
+
cols?: ColsObj;
|
|
233
|
+
comp?: string;
|
|
234
|
+
title?: string | null;
|
|
235
|
+
subtitle?: string | null;
|
|
236
|
+
children: Children;
|
|
210
237
|
[k: string]: unknown;
|
|
211
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
241
|
+
* via the `definition` "select-item".
|
|
242
|
+
*/
|
|
212
243
|
export interface SelectItem {
|
|
213
244
|
title: string;
|
|
214
245
|
key: string;
|
|
@@ -216,6 +247,10 @@ export interface SelectItem {
|
|
|
216
247
|
icon?: string;
|
|
217
248
|
[k: string]: unknown;
|
|
218
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
252
|
+
* via the `definition` "get-items-fetch".
|
|
253
|
+
*/
|
|
219
254
|
export interface GetItemsFetch {
|
|
220
255
|
url: Expression;
|
|
221
256
|
qSearchParam?: string;
|
|
@@ -224,83 +259,4 @@ export interface GetItemsFetch {
|
|
|
224
259
|
};
|
|
225
260
|
[k: string]: unknown;
|
|
226
261
|
}
|
|
227
|
-
export interface NumberCombobox {
|
|
228
|
-
comp: "number-combobox";
|
|
229
|
-
label: string;
|
|
230
|
-
autofocus?: boolean;
|
|
231
|
-
items?: SelectItems;
|
|
232
|
-
getItems?: GetItems;
|
|
233
|
-
multiple?: boolean;
|
|
234
|
-
step?: number;
|
|
235
|
-
min?: number;
|
|
236
|
-
max?: number;
|
|
237
|
-
[k: string]: unknown;
|
|
238
|
-
}
|
|
239
|
-
export interface Select {
|
|
240
|
-
comp: "select";
|
|
241
|
-
label: string;
|
|
242
|
-
autofocus?: boolean;
|
|
243
|
-
items?: SelectItems;
|
|
244
|
-
getItems?: GetItems;
|
|
245
|
-
multiple?: boolean;
|
|
246
|
-
separator?: string;
|
|
247
|
-
[k: string]: unknown;
|
|
248
|
-
}
|
|
249
|
-
export interface Autocomplete {
|
|
250
|
-
comp: "autocomplete";
|
|
251
|
-
label: string;
|
|
252
|
-
autofocus?: boolean;
|
|
253
|
-
items?: SelectItems;
|
|
254
|
-
getItems?: GetItems;
|
|
255
|
-
multiple?: boolean;
|
|
256
|
-
separator?: string;
|
|
257
|
-
[k: string]: unknown;
|
|
258
|
-
}
|
|
259
|
-
export interface OneOfSelect {
|
|
260
|
-
comp: "one-of-select";
|
|
261
|
-
label: string;
|
|
262
|
-
[k: string]: unknown;
|
|
263
|
-
}
|
|
264
|
-
export interface Section {
|
|
265
|
-
comp: "section";
|
|
266
|
-
title?: string | null;
|
|
267
|
-
subtitle?: string | null;
|
|
268
|
-
children: Children;
|
|
269
|
-
[k: string]: unknown;
|
|
270
|
-
}
|
|
271
|
-
export interface Tabs {
|
|
272
|
-
comp: "tabs";
|
|
273
|
-
title?: string | null;
|
|
274
|
-
subtitle?: string | null;
|
|
275
|
-
children: Children;
|
|
276
|
-
[k: string]: unknown;
|
|
277
|
-
}
|
|
278
|
-
export interface VerticalTabs {
|
|
279
|
-
comp: "vertical-tabs";
|
|
280
|
-
title?: string | null;
|
|
281
|
-
subtitle?: string | null;
|
|
282
|
-
children: Children;
|
|
283
|
-
[k: string]: unknown;
|
|
284
|
-
}
|
|
285
|
-
export interface ExpansionPanels {
|
|
286
|
-
comp: "expansion-panels";
|
|
287
|
-
title?: string | null;
|
|
288
|
-
subtitle?: string | null;
|
|
289
|
-
children: Children;
|
|
290
|
-
[k: string]: unknown;
|
|
291
|
-
}
|
|
292
|
-
export interface Stepper {
|
|
293
|
-
comp: "stepper";
|
|
294
|
-
title?: string | null;
|
|
295
|
-
subtitle?: string | null;
|
|
296
|
-
children: Children;
|
|
297
|
-
[k: string]: unknown;
|
|
298
|
-
}
|
|
299
|
-
export interface FileInput {
|
|
300
|
-
comp: "file-input";
|
|
301
|
-
label: string;
|
|
302
|
-
accept?: string;
|
|
303
|
-
multiple?: boolean;
|
|
304
|
-
[k: string]: unknown;
|
|
305
|
-
}
|
|
306
262
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/normalized-layout/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/normalized-layout/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,cAAc,CAAC;AAC7D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,GAAG;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,aA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AAM,WAAW,aAAa;IAC5B,GAAG,EAAE,UAAU,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KACzB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/types/types.d.ts
CHANGED
|
@@ -19,4 +19,14 @@ export interface SchemaFragment {
|
|
|
19
19
|
formatMaximum?: string;
|
|
20
20
|
readOnly?: boolean;
|
|
21
21
|
}
|
|
22
|
+
export interface ComponentInfo {
|
|
23
|
+
name: string;
|
|
24
|
+
composite?: boolean;
|
|
25
|
+
shouldDebounce?: boolean;
|
|
26
|
+
emitsBlur?: boolean;
|
|
27
|
+
focusable?: boolean;
|
|
28
|
+
itemsBased?: boolean;
|
|
29
|
+
multipleCompat?: boolean;
|
|
30
|
+
schema?: any;
|
|
31
|
+
}
|
|
22
32
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,KAAK,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EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,GAAG,CAAA;CACb"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('./types.js').ComponentInfo} component
|
|
3
|
+
* @returns {import('ajv').ValidateFunction}
|
|
4
|
+
*/
|
|
5
|
+
export function getComponentValidate(component: import('./types.js').ComponentInfo): import('ajv').ValidateFunction;
|
|
6
|
+
export const ajv: ajvModule.default;
|
|
7
|
+
import ajvModule from 'ajv/dist/2019.js';
|
|
8
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.js"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,gDAHW,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,KAAK,EAAE,gBAAgB,CAO1C;AA9BD,oCAUE;sBArBoB,kBAAkB"}
|