@json-layout/vocabulary 0.14.0 → 0.16.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 +95 -54
- package/src/normalized-layout/index.js +18 -64
- package/src/normalized-layout/schema.js +235 -762
- package/src/normalized-layout/schema.json +118 -324
- package/src/normalized-layout/types.ts +163 -233
- 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 +171 -526
- package/types/normalized-layout/types.d.ts +163 -208
- 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;
|
|
@@ -39,10 +25,17 @@ export type StateNodeOptionsBase = StateNodeOptionsBaseLib & {
|
|
|
39
25
|
readOnlyPropertiesMode?: "remove" | "hide" | "show";
|
|
40
26
|
[k: string]: unknown;
|
|
41
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
30
|
+
* via the `definition` "cols".
|
|
31
|
+
*/
|
|
42
32
|
export type Cols = number;
|
|
43
33
|
/**
|
|
44
34
|
* This interface was referenced by `StateNodeSlotsLib`'s JSON-Schema definition
|
|
45
35
|
* via the `patternProperty` ".*".
|
|
36
|
+
*
|
|
37
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
38
|
+
* via the `definition` "slot".
|
|
46
39
|
*/
|
|
47
40
|
export type Slot = {
|
|
48
41
|
text: string;
|
|
@@ -51,7 +44,67 @@ export type Slot = {
|
|
|
51
44
|
} | {
|
|
52
45
|
name: string;
|
|
53
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
|
+
*/
|
|
54
103
|
export type SelectItems = SelectItem[];
|
|
104
|
+
/**
|
|
105
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
106
|
+
* via the `definition` "get-items".
|
|
107
|
+
*/
|
|
55
108
|
export type GetItems = {
|
|
56
109
|
returnObjects?: boolean;
|
|
57
110
|
itemsResults?: Expression;
|
|
@@ -61,20 +114,58 @@ export type GetItems = {
|
|
|
61
114
|
itemIcon?: Expression;
|
|
62
115
|
[k: string]: unknown;
|
|
63
116
|
} & (Expression | GetItemsFetch);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
67
124
|
[k: string]: unknown;
|
|
68
125
|
};
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
|
|
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
|
+
*/
|
|
72
133
|
export interface SwitchStruct {
|
|
73
|
-
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;
|
|
74
162
|
}
|
|
75
163
|
/**
|
|
76
164
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
77
165
|
* via the `patternProperty` ".*".
|
|
166
|
+
*
|
|
167
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
168
|
+
* via the `definition` "expression".
|
|
78
169
|
*/
|
|
79
170
|
export interface Expression {
|
|
80
171
|
type: "js-fn" | "js-eval" | "js-tpl";
|
|
@@ -83,6 +174,10 @@ export interface Expression {
|
|
|
83
174
|
ref?: number;
|
|
84
175
|
[k: string]: unknown;
|
|
85
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
179
|
+
* via the `definition` "state-node-options-base-lib".
|
|
180
|
+
*/
|
|
86
181
|
export interface StateNodeOptionsBaseLib {
|
|
87
182
|
/**
|
|
88
183
|
* This interface was referenced by `StateNodeOptionsBaseLib`'s JSON-Schema definition
|
|
@@ -90,6 +185,10 @@ export interface StateNodeOptionsBaseLib {
|
|
|
90
185
|
*/
|
|
91
186
|
[k: string]: unknown;
|
|
92
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
190
|
+
* via the `definition` "cols-obj".
|
|
191
|
+
*/
|
|
93
192
|
export interface ColsObj {
|
|
94
193
|
xs: number;
|
|
95
194
|
sm?: Cols;
|
|
@@ -98,6 +197,10 @@ export interface ColsObj {
|
|
|
98
197
|
xl?: Cols;
|
|
99
198
|
xxl?: Cols;
|
|
100
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
202
|
+
* via the `definition` "state-node-props-lib".
|
|
203
|
+
*/
|
|
101
204
|
export interface StateNodePropsLib {
|
|
102
205
|
/**
|
|
103
206
|
* This interface was referenced by `StateNodePropsLib`'s JSON-Schema definition
|
|
@@ -105,111 +208,38 @@ export interface StateNodePropsLib {
|
|
|
105
208
|
*/
|
|
106
209
|
[k: string]: unknown;
|
|
107
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
213
|
+
* via the `definition` "state-node-slots-lib".
|
|
214
|
+
*/
|
|
108
215
|
export interface StateNodeSlotsLib {
|
|
109
216
|
[k: string]: Slot;
|
|
110
217
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export interface
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
listEditMode: "inline" | "inline-single" | "menu" | "dialog";
|
|
119
|
-
listActions: ("add" | "edit" | "delete" | "sort" | "duplicate")[];
|
|
120
|
-
itemTitle?: Expression;
|
|
121
|
-
itemSubtitle?: Expression;
|
|
122
|
-
messages?: {
|
|
123
|
-
addItem?: string;
|
|
124
|
-
delete?: string;
|
|
125
|
-
edit?: string;
|
|
126
|
-
duplicate?: string;
|
|
127
|
-
sort?: string;
|
|
128
|
-
};
|
|
129
|
-
[k: string]: unknown;
|
|
130
|
-
}
|
|
131
|
-
export interface TextField {
|
|
132
|
-
comp: "text-field";
|
|
133
|
-
label: string;
|
|
134
|
-
autofocus?: boolean;
|
|
135
|
-
[k: string]: unknown;
|
|
136
|
-
}
|
|
137
|
-
export interface NumberField {
|
|
138
|
-
comp: "number-field";
|
|
139
|
-
label: string;
|
|
140
|
-
autofocus?: boolean;
|
|
141
|
-
step?: number;
|
|
142
|
-
min?: number;
|
|
143
|
-
max?: number;
|
|
144
|
-
[k: string]: unknown;
|
|
145
|
-
}
|
|
146
|
-
export interface Textarea {
|
|
147
|
-
comp: "textarea";
|
|
148
|
-
label: string;
|
|
149
|
-
autofocus?: boolean;
|
|
150
|
-
[k: string]: unknown;
|
|
151
|
-
}
|
|
152
|
-
export interface Markdown {
|
|
153
|
-
comp: "markdown";
|
|
154
|
-
label: string;
|
|
155
|
-
autofocus?: boolean;
|
|
156
|
-
[k: string]: unknown;
|
|
157
|
-
}
|
|
158
|
-
export interface Checkbox {
|
|
159
|
-
comp: "checkbox";
|
|
160
|
-
label: string;
|
|
161
|
-
[k: string]: unknown;
|
|
162
|
-
}
|
|
163
|
-
export interface Switch {
|
|
164
|
-
comp: "switch";
|
|
165
|
-
label: string;
|
|
166
|
-
[k: string]: unknown;
|
|
167
|
-
}
|
|
168
|
-
export interface Slider {
|
|
169
|
-
comp: "slider";
|
|
170
|
-
label: string;
|
|
171
|
-
step?: number;
|
|
172
|
-
min: number;
|
|
173
|
-
max: number;
|
|
174
|
-
[k: string]: unknown;
|
|
175
|
-
}
|
|
176
|
-
export interface DatePicker {
|
|
177
|
-
comp: "date-picker";
|
|
178
|
-
label: string;
|
|
179
|
-
min?: string;
|
|
180
|
-
max?: string;
|
|
181
|
-
format?: "date" | "date-time";
|
|
182
|
-
[k: string]: unknown;
|
|
183
|
-
}
|
|
184
|
-
export interface DateTimePicker {
|
|
185
|
-
comp: "date-time-picker";
|
|
186
|
-
label: string;
|
|
187
|
-
min?: string;
|
|
188
|
-
max?: string;
|
|
189
|
-
[k: string]: unknown;
|
|
190
|
-
}
|
|
191
|
-
export interface TimePicker {
|
|
192
|
-
comp: "time-picker";
|
|
193
|
-
label: string;
|
|
194
|
-
min?: string;
|
|
195
|
-
max?: string;
|
|
196
|
-
[k: string]: unknown;
|
|
197
|
-
}
|
|
198
|
-
export interface ColorPicker {
|
|
199
|
-
comp: "color-picker";
|
|
200
|
-
label: string;
|
|
201
|
-
[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;
|
|
202
225
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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;
|
|
211
237
|
[k: string]: unknown;
|
|
212
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
241
|
+
* via the `definition` "select-item".
|
|
242
|
+
*/
|
|
213
243
|
export interface SelectItem {
|
|
214
244
|
title: string;
|
|
215
245
|
key: string;
|
|
@@ -217,6 +247,10 @@ export interface SelectItem {
|
|
|
217
247
|
icon?: string;
|
|
218
248
|
[k: string]: unknown;
|
|
219
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* This interface was referenced by `HttpsJsonLayoutGithubIoNormalizedLayoutKeyword`'s JSON-Schema
|
|
252
|
+
* via the `definition` "get-items-fetch".
|
|
253
|
+
*/
|
|
220
254
|
export interface GetItemsFetch {
|
|
221
255
|
url: Expression;
|
|
222
256
|
qSearchParam?: string;
|
|
@@ -225,83 +259,4 @@ export interface GetItemsFetch {
|
|
|
225
259
|
};
|
|
226
260
|
[k: string]: unknown;
|
|
227
261
|
}
|
|
228
|
-
export interface NumberCombobox {
|
|
229
|
-
comp: "number-combobox";
|
|
230
|
-
label: string;
|
|
231
|
-
autofocus?: boolean;
|
|
232
|
-
items?: SelectItems;
|
|
233
|
-
getItems?: GetItems;
|
|
234
|
-
multiple?: boolean;
|
|
235
|
-
step?: number;
|
|
236
|
-
min?: number;
|
|
237
|
-
max?: number;
|
|
238
|
-
[k: string]: unknown;
|
|
239
|
-
}
|
|
240
|
-
export interface Select {
|
|
241
|
-
comp: "select";
|
|
242
|
-
label: string;
|
|
243
|
-
autofocus?: boolean;
|
|
244
|
-
items?: SelectItems;
|
|
245
|
-
getItems?: GetItems;
|
|
246
|
-
multiple?: boolean;
|
|
247
|
-
separator?: string;
|
|
248
|
-
[k: string]: unknown;
|
|
249
|
-
}
|
|
250
|
-
export interface Autocomplete {
|
|
251
|
-
comp: "autocomplete";
|
|
252
|
-
label: string;
|
|
253
|
-
autofocus?: boolean;
|
|
254
|
-
items?: SelectItems;
|
|
255
|
-
getItems?: GetItems;
|
|
256
|
-
multiple?: boolean;
|
|
257
|
-
separator?: string;
|
|
258
|
-
[k: string]: unknown;
|
|
259
|
-
}
|
|
260
|
-
export interface OneOfSelect {
|
|
261
|
-
comp: "one-of-select";
|
|
262
|
-
label: string;
|
|
263
|
-
[k: string]: unknown;
|
|
264
|
-
}
|
|
265
|
-
export interface Section {
|
|
266
|
-
comp: "section";
|
|
267
|
-
title?: string | null;
|
|
268
|
-
subtitle?: string | null;
|
|
269
|
-
children: Children;
|
|
270
|
-
[k: string]: unknown;
|
|
271
|
-
}
|
|
272
|
-
export interface Tabs {
|
|
273
|
-
comp: "tabs";
|
|
274
|
-
title?: string | null;
|
|
275
|
-
subtitle?: string | null;
|
|
276
|
-
children: Children;
|
|
277
|
-
[k: string]: unknown;
|
|
278
|
-
}
|
|
279
|
-
export interface VerticalTabs {
|
|
280
|
-
comp: "vertical-tabs";
|
|
281
|
-
title?: string | null;
|
|
282
|
-
subtitle?: string | null;
|
|
283
|
-
children: Children;
|
|
284
|
-
[k: string]: unknown;
|
|
285
|
-
}
|
|
286
|
-
export interface ExpansionPanels {
|
|
287
|
-
comp: "expansion-panels";
|
|
288
|
-
title?: string | null;
|
|
289
|
-
subtitle?: string | null;
|
|
290
|
-
children: Children;
|
|
291
|
-
[k: string]: unknown;
|
|
292
|
-
}
|
|
293
|
-
export interface Stepper {
|
|
294
|
-
comp: "stepper";
|
|
295
|
-
title?: string | null;
|
|
296
|
-
subtitle?: string | null;
|
|
297
|
-
children: Children;
|
|
298
|
-
[k: string]: unknown;
|
|
299
|
-
}
|
|
300
|
-
export interface FileInput {
|
|
301
|
-
comp: "file-input";
|
|
302
|
-
label: string;
|
|
303
|
-
accept?: string;
|
|
304
|
-
multiple?: boolean;
|
|
305
|
-
[k: string]: unknown;
|
|
306
|
-
}
|
|
307
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,aAAa,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,CAAC,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iB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ment {
|
|
|
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,CAAC,EAAE,GAAG,CAAA;IACX,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACZ,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,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+
/**
|
|
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"}
|