@json-layout/vocabulary 0.1.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/LICENSE +21 -0
- package/package.json +54 -0
- package/src/index.js +4 -0
- package/src/layout-keyword/index.js +62 -0
- package/src/layout-keyword/schema.js +367 -0
- package/src/layout-keyword/schema.json +209 -0
- package/src/layout-keyword/types.ts +109 -0
- package/src/layout-keyword/validate.js +2 -0
- package/src/normalize.js +313 -0
- package/src/normalized-layout/index.js +105 -0
- package/src/normalized-layout/schema.js +824 -0
- package/src/normalized-layout/schema.json +413 -0
- package/src/normalized-layout/types.ts +243 -0
- package/src/normalized-layout/validate.js +3 -0
- package/src/types.ts +19 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/layout-keyword/index.d.ts +42 -0
- package/types/layout-keyword/index.d.ts.map +1 -0
- package/types/layout-keyword/schema.d.ts +279 -0
- package/types/layout-keyword/schema.d.ts.map +1 -0
- package/types/layout-keyword/types.d.ts +90 -0
- package/types/layout-keyword/types.d.ts.map +1 -0
- package/types/layout-keyword/validate.d.ts +24 -0
- package/types/layout-keyword/validate.d.ts.map +1 -0
- package/types/normalize.d.ts +18 -0
- package/types/normalize.d.ts.map +1 -0
- package/types/normalized-layout/index.d.ts +96 -0
- package/types/normalized-layout/index.d.ts.map +1 -0
- package/types/normalized-layout/schema.d.ts +626 -0
- package/types/normalized-layout/schema.d.ts.map +1 -0
- package/types/normalized-layout/types.d.ts +221 -0
- package/types/normalized-layout/types.d.ts.map +1 -0
- package/types/normalized-layout/validate.d.ts +23 -0
- package/types/normalized-layout/validate.d.ts.map +1 -0
- package/types/types.d.ts +19 -0
- package/types/types.d.ts.map +1 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let $id: string;
|
|
3
|
+
let title: string;
|
|
4
|
+
let unevaluatedProperties: boolean;
|
|
5
|
+
let anyOf: {
|
|
6
|
+
$ref: string;
|
|
7
|
+
}[];
|
|
8
|
+
let $defs: {
|
|
9
|
+
"partial-switch": {
|
|
10
|
+
type: string;
|
|
11
|
+
required: string[];
|
|
12
|
+
additionalProperties: boolean;
|
|
13
|
+
properties: {
|
|
14
|
+
switch: {
|
|
15
|
+
type: string;
|
|
16
|
+
items: {
|
|
17
|
+
$ref: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
"partial-comp-object": {
|
|
23
|
+
title: string;
|
|
24
|
+
type: string;
|
|
25
|
+
properties: {
|
|
26
|
+
comp: {
|
|
27
|
+
$ref: string;
|
|
28
|
+
};
|
|
29
|
+
help: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
children: {
|
|
33
|
+
$ref: string;
|
|
34
|
+
};
|
|
35
|
+
label: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
type: string[];
|
|
40
|
+
};
|
|
41
|
+
subtitle: {
|
|
42
|
+
type: string[];
|
|
43
|
+
};
|
|
44
|
+
step: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
if: {
|
|
48
|
+
$ref: string;
|
|
49
|
+
};
|
|
50
|
+
items: {
|
|
51
|
+
type: string;
|
|
52
|
+
items: {
|
|
53
|
+
$ref: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
getItems: {
|
|
57
|
+
$ref: string;
|
|
58
|
+
};
|
|
59
|
+
listEditMode: {
|
|
60
|
+
type: string;
|
|
61
|
+
enum: string[];
|
|
62
|
+
};
|
|
63
|
+
listActions: {
|
|
64
|
+
type: string;
|
|
65
|
+
items: {
|
|
66
|
+
type: string;
|
|
67
|
+
enum: string[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
cols: {
|
|
71
|
+
$ref: string;
|
|
72
|
+
};
|
|
73
|
+
props: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
slots: {
|
|
77
|
+
type: string;
|
|
78
|
+
patternProperties: {
|
|
79
|
+
".*": {
|
|
80
|
+
$ref: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
options: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
messages: {
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
"comp-name": {
|
|
93
|
+
title: string;
|
|
94
|
+
type: string;
|
|
95
|
+
enum: string[];
|
|
96
|
+
};
|
|
97
|
+
"partial-child": {
|
|
98
|
+
type: string;
|
|
99
|
+
unevaluatedProperties: boolean;
|
|
100
|
+
properties: {
|
|
101
|
+
key: {
|
|
102
|
+
type: string[];
|
|
103
|
+
};
|
|
104
|
+
cols: {
|
|
105
|
+
$ref: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
allOf: ({
|
|
109
|
+
$ref: string;
|
|
110
|
+
} | {
|
|
111
|
+
$ref?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
};
|
|
114
|
+
"partial-children": {
|
|
115
|
+
type: string;
|
|
116
|
+
items: {
|
|
117
|
+
oneOf: ({
|
|
118
|
+
type: string;
|
|
119
|
+
$ref?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
$ref: string;
|
|
122
|
+
type?: undefined;
|
|
123
|
+
})[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
"partial-expression": {
|
|
127
|
+
oneOf: ({
|
|
128
|
+
type: string;
|
|
129
|
+
$ref?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
$ref: string;
|
|
132
|
+
type?: undefined;
|
|
133
|
+
})[];
|
|
134
|
+
};
|
|
135
|
+
"partial-expression-obj": {
|
|
136
|
+
type: string;
|
|
137
|
+
required: string[];
|
|
138
|
+
properties: {
|
|
139
|
+
type: {
|
|
140
|
+
type: string;
|
|
141
|
+
enum: string[];
|
|
142
|
+
};
|
|
143
|
+
expr: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
"partial-select-item": {
|
|
149
|
+
oneOf: ({
|
|
150
|
+
type: string;
|
|
151
|
+
properties?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
type: string;
|
|
154
|
+
properties: {
|
|
155
|
+
key: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
title: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
value: {};
|
|
162
|
+
};
|
|
163
|
+
})[];
|
|
164
|
+
};
|
|
165
|
+
"partial-get-items": {
|
|
166
|
+
oneOf: ({
|
|
167
|
+
type: string;
|
|
168
|
+
$ref?: undefined;
|
|
169
|
+
} | {
|
|
170
|
+
$ref: string;
|
|
171
|
+
type?: undefined;
|
|
172
|
+
})[];
|
|
173
|
+
};
|
|
174
|
+
"partial-get-items-obj": {
|
|
175
|
+
type: string;
|
|
176
|
+
properties: {
|
|
177
|
+
itemTitle: {
|
|
178
|
+
$ref: string;
|
|
179
|
+
};
|
|
180
|
+
itemKey: {
|
|
181
|
+
$ref: string;
|
|
182
|
+
};
|
|
183
|
+
itemValue: {
|
|
184
|
+
$ref: string;
|
|
185
|
+
};
|
|
186
|
+
itemsResults: {
|
|
187
|
+
$ref: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
oneOf: {
|
|
191
|
+
$ref: string;
|
|
192
|
+
}[];
|
|
193
|
+
};
|
|
194
|
+
"partial-get-items-fetch": {
|
|
195
|
+
type: string;
|
|
196
|
+
required: string[];
|
|
197
|
+
properties: {
|
|
198
|
+
url: {
|
|
199
|
+
$ref: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
"partial-cols": {
|
|
204
|
+
oneOf: {
|
|
205
|
+
$ref: string;
|
|
206
|
+
}[];
|
|
207
|
+
};
|
|
208
|
+
"partial-cols-obj": {
|
|
209
|
+
type: string;
|
|
210
|
+
additionalProperties: boolean;
|
|
211
|
+
properties: {
|
|
212
|
+
xs: {
|
|
213
|
+
$ref: string;
|
|
214
|
+
};
|
|
215
|
+
sm: {
|
|
216
|
+
$ref: string;
|
|
217
|
+
};
|
|
218
|
+
md: {
|
|
219
|
+
$ref: string;
|
|
220
|
+
};
|
|
221
|
+
lg: {
|
|
222
|
+
$ref: string;
|
|
223
|
+
};
|
|
224
|
+
xl: {
|
|
225
|
+
$ref: string;
|
|
226
|
+
};
|
|
227
|
+
xxl: {
|
|
228
|
+
$ref: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
"partial-cols-number": {
|
|
233
|
+
type: string;
|
|
234
|
+
minimum: number;
|
|
235
|
+
maximum: number;
|
|
236
|
+
};
|
|
237
|
+
"partial-slot": {
|
|
238
|
+
oneOf: ({
|
|
239
|
+
type: string;
|
|
240
|
+
$ref?: undefined;
|
|
241
|
+
} | {
|
|
242
|
+
$ref: string;
|
|
243
|
+
type?: undefined;
|
|
244
|
+
})[];
|
|
245
|
+
};
|
|
246
|
+
"partial-slot-text": {
|
|
247
|
+
type: string;
|
|
248
|
+
additionalProperties: boolean;
|
|
249
|
+
required: string[];
|
|
250
|
+
properties: {
|
|
251
|
+
text: {
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
"partial-slot-markdown": {
|
|
257
|
+
type: string;
|
|
258
|
+
additionalProperties: boolean;
|
|
259
|
+
required: string[];
|
|
260
|
+
properties: {
|
|
261
|
+
markdown: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
"partial-slot-name": {
|
|
267
|
+
type: string;
|
|
268
|
+
additionalProperties: boolean;
|
|
269
|
+
required: string[];
|
|
270
|
+
properties: {
|
|
271
|
+
name: {
|
|
272
|
+
type: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
export default _default;
|
|
279
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/layout-keyword/schema.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type LayoutKeyword = ComponentName | PartialChildren | PartialCompObject | PartialSwitch;
|
|
2
|
+
export type ComponentName = "none" | "text-field" | "number-field" | "textarea" | "checkbox" | "switch" | "slider" | "date-picker" | "date-time-picker" | "time-picker" | "color-picker" | "section" | "list" | "select" | "tabs" | "vertical-tabs" | "expansion-panels";
|
|
3
|
+
export type PartialChild = PartialChild1 & {
|
|
4
|
+
key?: string | number;
|
|
5
|
+
cols?: PartialCols;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
export type PartialChild1 = PartialCompObject & unknown;
|
|
9
|
+
export type PartialExpression = string | PartialExpressionObj;
|
|
10
|
+
export type PartialSelectItem = string | {
|
|
11
|
+
key?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
value?: unknown;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
export type PartialGetItems = string | PartialGetItemsObj;
|
|
17
|
+
export type PartialGetItemsObj = {
|
|
18
|
+
itemTitle?: PartialExpression;
|
|
19
|
+
itemKey?: PartialExpression;
|
|
20
|
+
itemValue?: PartialExpression;
|
|
21
|
+
itemsResults?: PartialExpression;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
} & PartialGetItemsObj1;
|
|
24
|
+
export type PartialGetItemsObj1 = PartialExpression | PartialGetItemsFetch;
|
|
25
|
+
export type PartialCols = PartialColsNumber | PartialColsObj;
|
|
26
|
+
export type PartialColsNumber = number;
|
|
27
|
+
/**
|
|
28
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
29
|
+
* via the `patternProperty` ".*".
|
|
30
|
+
*/
|
|
31
|
+
export type PartialSlot = string | PartialSlotText | PartialSlotMarkdown | PartialSlotName;
|
|
32
|
+
export type PartialChildren = (string | PartialChild)[];
|
|
33
|
+
export interface PartialCompObject {
|
|
34
|
+
comp?: ComponentName;
|
|
35
|
+
help?: string;
|
|
36
|
+
children?: PartialChildren;
|
|
37
|
+
label?: string;
|
|
38
|
+
title?: string | null;
|
|
39
|
+
subtitle?: string | null;
|
|
40
|
+
step?: number;
|
|
41
|
+
if?: PartialExpression;
|
|
42
|
+
items?: PartialSelectItem[];
|
|
43
|
+
getItems?: PartialGetItems;
|
|
44
|
+
listEditMode?: "inline" | "inline-single" | "menu" | "dialog";
|
|
45
|
+
listActions?: ("add" | "edit" | "delete" | "sort" | "duplicate")[];
|
|
46
|
+
cols?: PartialCols;
|
|
47
|
+
props?: {
|
|
48
|
+
[k: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
slots?: {
|
|
51
|
+
[k: string]: PartialSlot;
|
|
52
|
+
};
|
|
53
|
+
options?: {
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
messages?: {
|
|
57
|
+
[k: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
[k: string]: unknown;
|
|
60
|
+
}
|
|
61
|
+
export interface PartialExpressionObj {
|
|
62
|
+
type?: "js-fn" | "js-eval" | "js-tpl";
|
|
63
|
+
expr: string;
|
|
64
|
+
[k: string]: unknown;
|
|
65
|
+
}
|
|
66
|
+
export interface PartialGetItemsFetch {
|
|
67
|
+
url: PartialExpression;
|
|
68
|
+
[k: string]: unknown;
|
|
69
|
+
}
|
|
70
|
+
export interface PartialColsObj {
|
|
71
|
+
xs?: PartialColsNumber;
|
|
72
|
+
sm?: PartialColsNumber;
|
|
73
|
+
md?: PartialColsNumber;
|
|
74
|
+
lg?: PartialColsNumber;
|
|
75
|
+
xl?: PartialColsNumber;
|
|
76
|
+
xxl?: PartialColsNumber;
|
|
77
|
+
}
|
|
78
|
+
export interface PartialSlotText {
|
|
79
|
+
text: string;
|
|
80
|
+
}
|
|
81
|
+
export interface PartialSlotMarkdown {
|
|
82
|
+
markdown: string;
|
|
83
|
+
}
|
|
84
|
+
export interface PartialSlotName {
|
|
85
|
+
name: string;
|
|
86
|
+
}
|
|
87
|
+
export interface PartialSwitch {
|
|
88
|
+
switch: PartialCompObject[];
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/layout-keyword/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,eAAe,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAChG,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,YAAY,GACZ,cAAc,GACd,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,SAAS,GACT,MAAM,GACN,QAAQ,GACR,MAAM,GACN,eAAe,GACf,kBAAkB,CAAC;AACvB,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IACzC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,oBAAoB,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN;IACE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AACN,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,kBAAkB,CAA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ate(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
2
|
+
instancePath?: string | undefined;
|
|
3
|
+
parentData: any;
|
|
4
|
+
parentDataProperty: any;
|
|
5
|
+
rootData?: any;
|
|
6
|
+
dynamicAnchors?: {} | undefined;
|
|
7
|
+
}): boolean;
|
|
8
|
+
export namespace validate {
|
|
9
|
+
namespace evaluated {
|
|
10
|
+
let props: boolean;
|
|
11
|
+
let dynamicProps: boolean;
|
|
12
|
+
let dynamicItems: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default validate18;
|
|
16
|
+
declare function validate18(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
17
|
+
instancePath?: string | undefined;
|
|
18
|
+
parentData: any;
|
|
19
|
+
parentDataProperty: any;
|
|
20
|
+
rootData?: any;
|
|
21
|
+
dynamicAnchors?: {} | undefined;
|
|
22
|
+
}): boolean;
|
|
23
|
+
declare namespace validate18 { }
|
|
24
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/layout-keyword/validate.js"],"names":[],"mappings":"AACw8iD;;;;;;YAAu9G;;;;;;;;;AAAv9G;;;;;;YAAu9G"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {SchemaFragment} schemaFragment
|
|
3
|
+
* @param {string} schemaPath
|
|
4
|
+
* @param {(text: string) => string} markdown
|
|
5
|
+
* @param {'oneOf'} [arrayChild]
|
|
6
|
+
* @returns {NormalizedLayout}
|
|
7
|
+
*/
|
|
8
|
+
export function normalizeLayoutFragment(schemaFragment: SchemaFragment, schemaPath: string, markdown?: (text: string) => string, arrayChild?: "oneOf" | undefined): NormalizedLayout;
|
|
9
|
+
export type Child = import('./index.js').Child;
|
|
10
|
+
export type Children = import('./index.js').Children;
|
|
11
|
+
export type CompObject = import('./index.js').CompObject;
|
|
12
|
+
export type Expression = import('./index.js').Expression;
|
|
13
|
+
export type NormalizedLayout = import('./index.js').NormalizedLayout;
|
|
14
|
+
export type LayoutKeyword = import('./index.js').LayoutKeyword;
|
|
15
|
+
export type PartialChildren = import('./index.js').PartialChildren;
|
|
16
|
+
export type PartialCompObject = import('./index.js').PartialCompObject;
|
|
17
|
+
export type SchemaFragment = import("./types.js").SchemaFragment;
|
|
18
|
+
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../src/normalize.js"],"names":[],"mappings":"AA0RA;;;;;;GAMG;AACH,wDANW,cAAc,cACd,MAAM,oBACC,MAAM,KAAK,MAAM,qCAEtB,gBAAgB,CAyB5B;oBApTY,OAAO,YAAY,EAAE,KAAK;uBAC1B,OAAO,YAAY,EAAE,QAAQ;yBAC7B,OAAO,YAAY,EAAE,UAAU;yBAC/B,OAAO,YAAY,EAAE,UAAU;+BAC/B,OAAO,YAAY,EAAE,gBAAgB;4BACrC,OAAO,YAAY,EAAE,aAAa;8BAClC,OAAO,YAAY,EAAE,eAAe;gCACpC,OAAO,YAAY,EAAE,iBAAiB;6BACtC,OAAO,YAAY,EAAE,cAAc"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export function isSwitchStruct(layout: NormalizedLayout): layout is import("./types.js").SwitchStruct;
|
|
2
|
+
export function isCompObject(layout: NormalizedLayout): layout is import("./types.js").CompObject;
|
|
3
|
+
export function childIsCompObject(child: Child): child is {
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
key: string | number;
|
|
6
|
+
cols?: import("./types.js").ColsObj | undefined;
|
|
7
|
+
} & import("./types.js").CompositeCompObject;
|
|
8
|
+
export function isSectionLayout(layout: CompObject): layout is import("./types.js").Section;
|
|
9
|
+
export function isCompositeLayout(layout: CompObject): layout is import("./types.js").CompositeCompObject;
|
|
10
|
+
export function isTextFieldLayout(layout: CompObject): layout is import("./types.js").TextField;
|
|
11
|
+
export function isSelectLayout(layout: CompObject): layout is import("./types.js").Select;
|
|
12
|
+
export function isGetItemsExpression(getItems: GetItems): getItems is import("./types.js").Expression;
|
|
13
|
+
export function isGetItemsFetch(getItems: GetItems): getItems is import("./types.js").GetItemsFetch;
|
|
14
|
+
export function isTextSlot(slot: Slot): slot is {
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
export function isMarkdownSlot(slot: Slot): slot is {
|
|
18
|
+
markdown: string;
|
|
19
|
+
};
|
|
20
|
+
export function isNameSlot(slot: Slot): slot is {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {import('./types.js').NormalizedLayout} NormalizedLayout
|
|
25
|
+
* @typedef {import('./types.js').SwitchStruct} SwitchStruct
|
|
26
|
+
* @typedef {import('./types.js').CompObject} CompObject
|
|
27
|
+
* @typedef {import('./types.js').Section} Section
|
|
28
|
+
* @typedef {import('./types.js').GetItems} GetItems
|
|
29
|
+
* @typedef {import('./types.js').Expression} Expression
|
|
30
|
+
* @typedef {import('./types.js').Select} Select
|
|
31
|
+
* @typedef {import('./types.js').SelectItem} SelectItem
|
|
32
|
+
* @typedef {import('./types.js').SelectItems} SelectItems
|
|
33
|
+
* @typedef {import('./types.js').GetItemsFetch} GetItemsFetch
|
|
34
|
+
* @typedef {import('./types.js').TextField} TextField
|
|
35
|
+
* @typedef {import('./types.js').Textarea} Textarea
|
|
36
|
+
* @typedef {import('./types.js').NumberField} NumberField
|
|
37
|
+
* @typedef {import('./types.js').Slider} Slider
|
|
38
|
+
* @typedef {import('./types.js').Checkbox} Checkbox
|
|
39
|
+
* @typedef {import('./types.js').Switch} Switch
|
|
40
|
+
* @typedef {import('./types.js').DatePicker} DatePicker
|
|
41
|
+
* @typedef {import('./types.js').TimePicker} TimePicker
|
|
42
|
+
* @typedef {import('./types.js').DateTimePicker} DateTimePicker
|
|
43
|
+
* @typedef {import('./types.js').ColorPicker} ColorPicker
|
|
44
|
+
* @typedef {import('./types.js').OneOfSelect} OneOfSelect
|
|
45
|
+
* @typedef {import('./types.js').Child} Child
|
|
46
|
+
* @typedef {import('./types.js').Children} Children
|
|
47
|
+
* @typedef {import('./types.js').CompositeCompObject} CompositeCompObject
|
|
48
|
+
* @typedef {import('./types.js').Tabs} Tabs
|
|
49
|
+
* @typedef {import('./types.js').VerticalTabs} VerticalTabs
|
|
50
|
+
* @typedef {import('./types.js').ExpansionPanels} ExpansionPanels
|
|
51
|
+
* @typedef {import('./types.js').List} List
|
|
52
|
+
* @typedef {import('./types.js').Cols} Cols
|
|
53
|
+
* @typedef {import('./types.js').ColsObj} ColsObj
|
|
54
|
+
* @typedef {import('./types.js').StateNodeOptions} StateNodeOptions
|
|
55
|
+
* @typedef {import('./types.js').Slot} Slot
|
|
56
|
+
* @typedef {{ errors: any, (layoutKeyword: any): layoutKeyword is NormalizedLayout }} ValidateNormalizedLayout
|
|
57
|
+
*/
|
|
58
|
+
export const validateNormalizedLayout: ValidateNormalizedLayout;
|
|
59
|
+
export const normalizedLayoutSchema: any;
|
|
60
|
+
export type NormalizedLayout = import('./types.js').NormalizedLayout;
|
|
61
|
+
export type SwitchStruct = import('./types.js').SwitchStruct;
|
|
62
|
+
export type CompObject = import('./types.js').CompObject;
|
|
63
|
+
export type Section = import('./types.js').Section;
|
|
64
|
+
export type GetItems = import('./types.js').GetItems;
|
|
65
|
+
export type Expression = import('./types.js').Expression;
|
|
66
|
+
export type Select = import('./types.js').Select;
|
|
67
|
+
export type SelectItem = import('./types.js').SelectItem;
|
|
68
|
+
export type SelectItems = import('./types.js').SelectItems;
|
|
69
|
+
export type GetItemsFetch = import('./types.js').GetItemsFetch;
|
|
70
|
+
export type TextField = import('./types.js').TextField;
|
|
71
|
+
export type Textarea = import('./types.js').Textarea;
|
|
72
|
+
export type NumberField = import('./types.js').NumberField;
|
|
73
|
+
export type Slider = import('./types.js').Slider;
|
|
74
|
+
export type Checkbox = import('./types.js').Checkbox;
|
|
75
|
+
export type Switch = import('./types.js').Switch;
|
|
76
|
+
export type DatePicker = import('./types.js').DatePicker;
|
|
77
|
+
export type TimePicker = import('./types.js').TimePicker;
|
|
78
|
+
export type DateTimePicker = import('./types.js').DateTimePicker;
|
|
79
|
+
export type ColorPicker = import('./types.js').ColorPicker;
|
|
80
|
+
export type OneOfSelect = import('./types.js').OneOfSelect;
|
|
81
|
+
export type Child = import('./types.js').Child;
|
|
82
|
+
export type Children = import('./types.js').Children;
|
|
83
|
+
export type CompositeCompObject = import('./types.js').CompositeCompObject;
|
|
84
|
+
export type Tabs = import('./types.js').Tabs;
|
|
85
|
+
export type VerticalTabs = import('./types.js').VerticalTabs;
|
|
86
|
+
export type ExpansionPanels = import('./types.js').ExpansionPanels;
|
|
87
|
+
export type List = import('./types.js').List;
|
|
88
|
+
export type Cols = import('./types.js').Cols;
|
|
89
|
+
export type ColsObj = import('./types.js').ColsObj;
|
|
90
|
+
export type StateNodeOptions = import('./types.js').StateNodeOptions;
|
|
91
|
+
export type Slot = import('./types.js').Slot;
|
|
92
|
+
export type ValidateNormalizedLayout = {
|
|
93
|
+
(layoutKeyword: any): layoutKeyword is import("./types.js").NormalizedLayout;
|
|
94
|
+
errors: any;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalized-layout/index.js"],"names":[],"mappings":"AA2CW,uCAAS,gBAAgB,+CAA2B;AAKpD,qCAAS,gBAAgB,6CAAyB;AAKlD,yCAAQ,KAAK;;;;6CAAyC;AAKtD,wCAAS,UAAU,0CAAsB;AAKzC,0CAAS,UAAU,sDAAkC;AAKrD,0CAAS,UAAU,4CAAwB;AAK3C,uCAAS,UAAU,yCAAqB;AAKxC,+CAAW,QAAQ,+CAA2B;AAK9C,0CAAW,QAAQ,kDAA8B;AAKjD,iCAAO,IAAI;UAAoB,MAAM;EAAC;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