@json-layout/vocabulary 0.1.0 → 0.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-layout/vocabulary",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Main JSON Layout vocabulary as JSON schemas and Typescript types. Also contains some small utility functions to validate and normalize annotations.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,9 +13,11 @@
13
13
  },
14
14
  "files": [
15
15
  "src",
16
- "types"
16
+ "types",
17
+ "LICENSE"
17
18
  ],
18
19
  "scripts": {
20
+ "test:single": "node --test --test-only test/*.spec.js",
19
21
  "test": "node --test test/*.spec.js",
20
22
  "build": "run-s clean build:schemas build:tsc",
21
23
  "clean": "rm -rf ./types && rm -f src/*/types.ts && rm -f src/*/validate.js",
@@ -3,7 +3,9 @@
3
3
  export default {
4
4
  "$id": "https://json-layout.github.io/layout-keyword",
5
5
  "title": "layout keyword",
6
- "unevaluatedProperties": false,
6
+ "errorMessage": {
7
+ "anyOf": "layout keyword must be a string with a valid component name, or a more complete object definition, or an array of children, or a switch structure"
8
+ },
7
9
  "anyOf": [
8
10
  {
9
11
  "$ref": "#/$defs/comp-name"
@@ -124,11 +126,15 @@ export default {
124
126
  "comp-name": {
125
127
  "title": "component name",
126
128
  "type": "string",
129
+ "errorMessage": {
130
+ "enum": "component name is unknown"
131
+ },
127
132
  "enum": [
128
133
  "none",
129
134
  "text-field",
130
135
  "number-field",
131
136
  "textarea",
137
+ "markdown",
132
138
  "checkbox",
133
139
  "switch",
134
140
  "slider",
@@ -136,12 +142,16 @@ export default {
136
142
  "date-time-picker",
137
143
  "time-picker",
138
144
  "color-picker",
145
+ "combobox",
146
+ "number-combobox",
139
147
  "section",
140
148
  "list",
141
149
  "select",
150
+ "autocomplete",
142
151
  "tabs",
143
152
  "vertical-tabs",
144
- "expansion-panels"
153
+ "expansion-panels",
154
+ "one-of-select"
145
155
  ]
146
156
  },
147
157
  "partial-child": {
@@ -238,26 +248,38 @@ export default {
238
248
  },
239
249
  "partial-get-items-obj": {
240
250
  "type": "object",
241
- "properties": {
242
- "itemTitle": {
243
- "$ref": "#/$defs/partial-expression"
244
- },
245
- "itemKey": {
246
- "$ref": "#/$defs/partial-expression"
247
- },
248
- "itemValue": {
249
- "$ref": "#/$defs/partial-expression"
250
- },
251
- "itemsResults": {
252
- "$ref": "#/$defs/partial-expression"
253
- }
254
- },
255
- "oneOf": [
251
+ "allOf": [
256
252
  {
257
- "$ref": "#/$defs/partial-expression"
253
+ "properties": {
254
+ "itemTitle": {
255
+ "$ref": "#/$defs/partial-expression"
256
+ },
257
+ "itemKey": {
258
+ "$ref": "#/$defs/partial-expression"
259
+ },
260
+ "itemValue": {
261
+ "$ref": "#/$defs/partial-expression"
262
+ },
263
+ "itemIcon": {
264
+ "$ref": "#/$defs/partial-expression"
265
+ },
266
+ "itemsResults": {
267
+ "$ref": "#/$defs/partial-expression"
268
+ }
269
+ }
258
270
  },
259
271
  {
260
- "$ref": "#/$defs/partial-get-items-fetch"
272
+ "anyOf": [
273
+ {
274
+ "type": "object"
275
+ },
276
+ {
277
+ "$ref": "#/$defs/partial-expression-obj"
278
+ },
279
+ {
280
+ "$ref": "#/$defs/partial-get-items-fetch"
281
+ }
282
+ ]
261
283
  }
262
284
  ]
263
285
  },
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "$id": "https://json-layout.github.io/layout-keyword",
3
3
  "title": "layout keyword",
4
- "unevaluatedProperties": false,
4
+ "errorMessage": {
5
+ "anyOf": "layout keyword must be a string with a valid component name, or a more complete object definition, or an array of children, or a switch structure"
6
+ },
5
7
  "anyOf": [
6
8
  {"$ref": "#/$defs/comp-name"},
7
9
  {"$ref": "#/$defs/partial-children"},
@@ -51,11 +53,15 @@
51
53
  "comp-name": {
52
54
  "title": "component name",
53
55
  "type": "string",
56
+ "errorMessage": {
57
+ "enum": "component name is unknown"
58
+ },
54
59
  "enum": [
55
60
  "none",
56
61
  "text-field",
57
62
  "number-field",
58
63
  "textarea",
64
+ "markdown",
59
65
  "checkbox",
60
66
  "switch",
61
67
  "slider",
@@ -63,12 +69,16 @@
63
69
  "date-time-picker",
64
70
  "time-picker",
65
71
  "color-picker",
72
+ "combobox",
73
+ "number-combobox",
66
74
  "section",
67
75
  "list",
68
76
  "select",
77
+ "autocomplete",
69
78
  "tabs",
70
79
  "vertical-tabs",
71
- "expansion-panels"
80
+ "expansion-panels",
81
+ "one-of-select"
72
82
  ]
73
83
  },
74
84
  "partial-child": {
@@ -132,16 +142,22 @@
132
142
  },
133
143
  "partial-get-items-obj": {
134
144
  "type": "object",
135
- "properties": {
136
- "itemTitle": {"$ref": "#/$defs/partial-expression"},
137
- "itemKey": {"$ref": "#/$defs/partial-expression"},
138
- "itemValue": {"$ref": "#/$defs/partial-expression"},
139
- "itemsResults": {"$ref": "#/$defs/partial-expression"}
145
+ "allOf": [{
146
+ "properties": {
147
+ "itemTitle": {"$ref": "#/$defs/partial-expression"},
148
+ "itemKey": {"$ref": "#/$defs/partial-expression"},
149
+ "itemValue": {"$ref": "#/$defs/partial-expression"},
150
+ "itemIcon": {"$ref": "#/$defs/partial-expression"},
151
+ "itemsResults": {"$ref": "#/$defs/partial-expression"}
152
+ }
140
153
  },
141
- "oneOf": [
142
- {"$ref": "#/$defs/partial-expression"},
143
- {"$ref": "#/$defs/partial-get-items-fetch"}
144
- ]
154
+ {
155
+ "anyOf": [
156
+ {"type": "object"},
157
+ {"$ref": "#/$defs/partial-expression-obj"},
158
+ {"$ref": "#/$defs/partial-get-items-fetch"}
159
+ ]
160
+ }]
145
161
  },
146
162
  "partial-get-items-fetch": {
147
163
  "type": "object",
@@ -4,6 +4,7 @@ export type ComponentName =
4
4
  | "text-field"
5
5
  | "number-field"
6
6
  | "textarea"
7
+ | "markdown"
7
8
  | "checkbox"
8
9
  | "switch"
9
10
  | "slider"
@@ -11,12 +12,16 @@ export type ComponentName =
11
12
  | "date-time-picker"
12
13
  | "time-picker"
13
14
  | "color-picker"
15
+ | "combobox"
16
+ | "number-combobox"
14
17
  | "section"
15
18
  | "list"
16
19
  | "select"
20
+ | "autocomplete"
17
21
  | "tabs"
18
22
  | "vertical-tabs"
19
- | "expansion-panels";
23
+ | "expansion-panels"
24
+ | "one-of-select";
20
25
  export type PartialChild = PartialChild1 & {
21
26
  key?: string | number;
22
27
  cols?: PartialCols;
@@ -37,10 +42,16 @@ export type PartialGetItemsObj = {
37
42
  itemTitle?: PartialExpression;
38
43
  itemKey?: PartialExpression;
39
44
  itemValue?: PartialExpression;
45
+ itemIcon?: PartialExpression;
40
46
  itemsResults?: PartialExpression;
41
47
  [k: string]: unknown;
42
- } & PartialGetItemsObj1;
43
- export type PartialGetItemsObj1 = PartialExpression | PartialGetItemsFetch;
48
+ } & (
49
+ | {
50
+ [k: string]: unknown;
51
+ }
52
+ | PartialExpressionObj
53
+ | PartialGetItemsFetch
54
+ );
44
55
  export type PartialCols = PartialColsNumber | PartialColsObj;
45
56
  export type PartialColsNumber = number;
46
57
  /**
@@ -1,2 +1,2 @@
1
1
  // @ts-ignore
2
- export const validate = validate18;export default validate18;const schema21 = {"$id":"https://json-layout.github.io/layout-keyword","title":"layout keyword","unevaluatedProperties":false,"anyOf":[{"$ref":"#/$defs/comp-name"},{"$ref":"#/$defs/partial-children"},{"$ref":"#/$defs/partial-comp-object"},{"$ref":"#/$defs/partial-switch"}],"$defs":{"partial-switch":{"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}},"partial-comp-object":{"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}},"comp-name":{"title":"component name","type":"string","enum":["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"]},"partial-child":{"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]},"partial-children":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}},"partial-expression":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]},"partial-expression-obj":{"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}},"partial-select-item":{"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]},"partial-get-items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]},"partial-get-items-obj":{"type":"object","properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}},"oneOf":[{"$ref":"#/$defs/partial-expression"},{"$ref":"#/$defs/partial-get-items-fetch"}]},"partial-get-items-fetch":{"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}},"partial-cols":{"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]},"partial-cols-obj":{"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}},"partial-cols-number":{"type":"integer","minimum":0,"maximum":12},"partial-slot":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]},"partial-slot-text":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}},"partial-slot-markdown":{"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}},"partial-slot-name":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}}}};const schema22 = {"title":"component name","type":"string","enum":["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"]};const schema23 = {"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}};const schema24 = {"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]};const schema25 = {"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}};const schema29 = {"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]};const wrapper0 = {validate: validate19};const schema27 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]};const schema28 = {"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;const _errs4 = errors;if(errors === _errs4){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.expr === undefined) && (missing0 = "expr")){const err1 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(data.type !== undefined){let data0 = data.type;const _errs6 = errors;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!(((data0 === "js-fn") || (data0 === "js-eval")) || (data0 === "js-tpl"))){const err3 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/enum",keyword:"enum",params:{allowedValues: schema28.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.expr !== undefined){const _errs8 = errors;if(typeof data.expr !== "string"){const err4 = {instancePath:instancePath+"/expr",schemaPath:"#/$defs/partial-expression-obj/properties/expr/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}else {const err5 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = {};props0.type = true;props0.expr = true;}}if(!valid0){const err6 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate22.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate22.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate22.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema30 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]};const schema31 = {"type":"object","properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}},"oneOf":[{"$ref":"#/$defs/partial-expression"},{"$ref":"#/$defs/partial-get-items-fetch"}]};const schema32 = {"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.url === undefined) && (missing0 = "url")){validate27.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.url !== undefined){if(!(validate22(data.url, {instancePath:instancePath+"/url",parentData:data,parentDataProperty:"url",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}}else {validate27.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":{"url":true},"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(!(validate22(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}else {var props0 = validate22.evaluated.props;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(!(validate27(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);errors = vErrors.length;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.url = true;}}}if(!valid0){const err0 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;validate25.errors = vErrors;return false;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){props0 = props0 || {};props0.itemTitle = true;props0.itemKey = true;props0.itemValue = true;props0.itemsResults = true;}if(data.itemTitle !== undefined){const _errs4 = errors;if(!(validate22(data.itemTitle, {instancePath:instancePath+"/itemTitle",parentData:data,parentDataProperty:"itemTitle",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.itemKey !== undefined){const _errs5 = errors;if(!(validate22(data.itemKey, {instancePath:instancePath+"/itemKey",parentData:data,parentDataProperty:"itemKey",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.itemValue !== undefined){const _errs6 = errors;if(!(validate22(data.itemValue, {instancePath:instancePath+"/itemValue",parentData:data,parentDataProperty:"itemValue",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.itemsResults !== undefined){const _errs7 = errors;if(!(validate22(data.itemsResults, {instancePath:instancePath+"/itemsResults",parentData:data,parentDataProperty:"itemsResults",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate25.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(!(validate25(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}else {var props0 = validate25.evaluated.props;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate24.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate24.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema33 = {"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]};const schema34 = {"type":"integer","minimum":0,"maximum":12};const schema35 = {"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){const _errs1 = errors;for(const key0 in data){if(!((((((key0 === "xs") || (key0 === "sm")) || (key0 === "md")) || (key0 === "lg")) || (key0 === "xl")) || (key0 === "xxl"))){validate37.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.xs !== undefined){let data0 = data.xs;const _errs2 = errors;const _errs3 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs3){if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 12 || isNaN(data0)){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data0 < 0 || isNaN(data0)){validate37.errors = [{instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.sm !== undefined){let data1 = data.sm;const _errs5 = errors;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs6){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 12 || isNaN(data1)){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data1 < 0 || isNaN(data1)){validate37.errors = [{instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.md !== undefined){let data2 = data.md;const _errs8 = errors;const _errs9 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 12 || isNaN(data2)){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data2 < 0 || isNaN(data2)){validate37.errors = [{instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.lg !== undefined){let data3 = data.lg;const _errs11 = errors;const _errs12 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs12){if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 12 || isNaN(data3)){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data3 < 0 || isNaN(data3)){validate37.errors = [{instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.xl !== undefined){let data4 = data.xl;const _errs14 = errors;const _errs15 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs15){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 12 || isNaN(data4)){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate37.errors = [{instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.xxl !== undefined){let data5 = data.xxl;const _errs17 = errors;const _errs18 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs18){if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 12 || isNaN(data5)){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"}];return false;}else {if(data5 < 0 || isNaN(data5)){validate37.errors = [{instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;const _errs2 = errors;if(!(((typeof data == "number") && (!(data % 1) && !isNaN(data))) && (isFinite(data)))){const err0 = {instancePath,schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(errors === _errs2){if((typeof data == "number") && (isFinite(data))){if(data > 12 || isNaN(data)){const err1 = {instancePath,schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(data < 0 || isNaN(data)){const err2 = {instancePath,schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs4 = errors;if(!(validate37(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}}if(!valid0){const err3 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate36.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate36.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema42 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]};const schema43 = {"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}};const schema44 = {"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}};const schema45 = {"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;const _errs4 = errors;if(errors === _errs4){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.text === undefined) && (missing0 = "text")){const err1 = {instancePath,schemaPath:"#/$defs/partial-slot-text/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const _errs6 = errors;for(const key0 in data){if(!(key0 === "text")){const err2 = {instancePath,schemaPath:"#/$defs/partial-slot-text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;break;}}if(_errs6 === errors){if(data.text !== undefined){if(typeof data.text !== "string"){const err3 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/partial-slot-text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}}}else {const err4 = {instancePath,schemaPath:"#/$defs/partial-slot-text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.markdown === undefined) && (missing1 = "markdown")){const err5 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {const _errs12 = errors;for(const key1 in data){if(!(key1 === "markdown")){const err6 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;break;}}if(_errs12 === errors){if(data.markdown !== undefined){if(typeof data.markdown !== "string"){const err7 = {instancePath:instancePath+"/markdown",schemaPath:"#/$defs/partial-slot-markdown/properties/markdown/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}}else {const err8 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.name === undefined) && (missing2 = "name")){const err9 = {instancePath,schemaPath:"#/$defs/partial-slot-name/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const _errs18 = errors;for(const key2 in data){if(!(key2 === "name")){const err10 = {instancePath,schemaPath:"#/$defs/partial-slot-name/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;break;}}if(_errs18 === errors){if(data.name !== undefined){if(typeof data.name !== "string"){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/partial-slot-name/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}}}else {const err12 = {instancePath,schemaPath:"#/$defs/partial-slot-name/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err13 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate40.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate40.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate40.evaluated = {"dynamicProps":true,"dynamicItems":false};const pattern2 = new RegExp(".*", "u");function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.comp !== undefined){let data0 = data.comp;const _errs1 = errors;if(typeof data0 !== "string"){validate21.errors = [{instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((((((((((data0 === "none") || (data0 === "text-field")) || (data0 === "number-field")) || (data0 === "textarea")) || (data0 === "checkbox")) || (data0 === "switch")) || (data0 === "slider")) || (data0 === "date-picker")) || (data0 === "date-time-picker")) || (data0 === "time-picker")) || (data0 === "color-picker")) || (data0 === "section")) || (data0 === "list")) || (data0 === "select")) || (data0 === "tabs")) || (data0 === "vertical-tabs")) || (data0 === "expansion-panels"))){validate21.errors = [{instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema22.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.help !== undefined){const _errs4 = errors;if(typeof data.help !== "string"){validate21.errors = [{instancePath:instancePath+"/help",schemaPath:"#/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.children !== undefined){const _errs6 = errors;if(!(wrapper0.validate(data.children, {instancePath:instancePath+"/children",parentData:data,parentDataProperty:"children",rootData,dynamicAnchors}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.label !== undefined){const _errs7 = errors;if(typeof data.label !== "string"){validate21.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.title !== undefined){let data4 = data.title;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate21.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: schema25.properties.title.type},message:"must be string,null"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.subtitle !== undefined){let data5 = data.subtitle;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate21.errors = [{instancePath:instancePath+"/subtitle",schemaPath:"#/properties/subtitle/type",keyword:"type",params:{type: schema25.properties.subtitle.type},message:"must be string,null"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.step !== undefined){let data6 = data.step;const _errs13 = errors;if(!((typeof data6 == "number") && (isFinite(data6)))){validate21.errors = [{instancePath:instancePath+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.if !== undefined){const _errs15 = errors;if(!(validate22(data.if, {instancePath:instancePath+"/if",parentData:data,parentDataProperty:"if",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.items !== undefined){let data8 = data.items;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data8)){var valid2 = true;const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];const _errs18 = errors;const _errs20 = errors;let valid4 = false;let passing0 = null;const _errs21 = errors;if(typeof data9 !== "string"){const err0 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs21 === errors;if(_valid0){valid4 = true;passing0 = 0;}const _errs23 = errors;if(errors === _errs23){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.key !== undefined){const _errs25 = errors;if(typeof data9.key !== "string"){const err1 = {instancePath:instancePath+"/items/" + i0+"/key",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data9.title !== undefined){const _errs27 = errors;if(typeof data9.title !== "string"){const err2 = {instancePath:instancePath+"/items/" + i0+"/title",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}}}else {const err3 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var _valid0 = _errs23 === errors;if(_valid0 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid0){valid4 = true;passing0 = 1;var props2 = {};props2.key = true;props2.title = true;props2.value = true;}}if(!valid4){const err4 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate21.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid2 = _errs18 === errors;if(!valid2){break;}}}else {validate21.errors = [{instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.getItems !== undefined){const _errs29 = errors;if(!(validate24(data.getItems, {instancePath:instancePath+"/getItems",parentData:data,parentDataProperty:"getItems",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.listEditMode !== undefined){let data13 = data.listEditMode;const _errs30 = errors;if(typeof data13 !== "string"){validate21.errors = [{instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data13 === "inline") || (data13 === "inline-single")) || (data13 === "menu")) || (data13 === "dialog"))){validate21.errors = [{instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/enum",keyword:"enum",params:{allowedValues: schema25.properties.listEditMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.listActions !== undefined){let data14 = data.listActions;const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data14)){var valid6 = true;const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];const _errs34 = errors;if(typeof data15 !== "string"){validate21.errors = [{instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data15 === "add") || (data15 === "edit")) || (data15 === "delete")) || (data15 === "sort")) || (data15 === "duplicate"))){validate21.errors = [{instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/enum",keyword:"enum",params:{allowedValues: schema25.properties.listActions.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs34 === errors;if(!valid6){break;}}}else {validate21.errors = [{instancePath:instancePath+"/listActions",schemaPath:"#/properties/listActions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs32 === errors;}else {var valid0 = true;}if(valid0){if(data.cols !== undefined){const _errs36 = errors;if(!(validate36(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.props !== undefined){let data17 = data.props;const _errs37 = errors;if(!(data17 && typeof data17 == "object" && !Array.isArray(data17))){validate21.errors = [{instancePath:instancePath+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}if(valid0){if(data.slots !== undefined){let data18 = data.slots;const _errs39 = errors;if(errors === _errs39){if(data18 && typeof data18 == "object" && !Array.isArray(data18)){var props5 = {};for(const key0 in data18){if(pattern2.test(key0)){if(!(validate40(data18[key0], {instancePath:instancePath+"/slots/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data18,parentDataProperty:key0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}props5[key0] = true;}}}else {validate21.errors = [{instancePath:instancePath+"/slots",schemaPath:"#/properties/slots/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs39 === errors;}else {var valid0 = true;}if(valid0){if(data.options !== undefined){let data20 = data.options;const _errs42 = errors;if(!(data20 && typeof data20 == "object" && !Array.isArray(data20))){validate21.errors = [{instancePath:instancePath+"/options",schemaPath:"#/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs42 === errors;}else {var valid0 = true;}if(valid0){if(data.messages !== undefined){let data21 = data.messages;const _errs44 = errors;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){validate21.errors = [{instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}var valid0 = _errs44 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"comp":true,"help":true,"children":true,"label":true,"title":true,"subtitle":true,"step":true,"if":true,"items":true,"getItems":true,"listEditMode":true,"listActions":true,"cols":true,"props":true,"slots":true,"options":true,"messages":true},"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(!(validate21(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.key !== undefined){let data0 = data.key;const _errs2 = errors;if((typeof data0 !== "string") && (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0))))){validate20.errors = [{instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: schema24.properties.key.type},message:"must be string,integer"}];return false;}var valid1 = _errs2 === errors;}else {var valid1 = true;}if(valid1){if(data.cols !== undefined){const _errs4 = errors;if(!(validate36(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){for(const key0 in data){if((((((((((((((((((key0 !== "key") && (key0 !== "cols")) && (key0 !== "comp")) && (key0 !== "help")) && (key0 !== "children")) && (key0 !== "label")) && (key0 !== "title")) && (key0 !== "subtitle")) && (key0 !== "step")) && (key0 !== "if")) && (key0 !== "items")) && (key0 !== "getItems")) && (key0 !== "listEditMode")) && (key0 !== "listActions")) && (key0 !== "props")) && (key0 !== "slots")) && (key0 !== "options")) && (key0 !== "messages")){validate20.errors = [{instancePath,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty: key0},message:"must NOT have unevaluated properties"}];return false;break;}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate19.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs2 = errors;let valid1 = false;let passing0 = null;const _errs3 = errors;if(typeof data0 !== "string"){const err0 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs3 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs5 = errors;if(!(validate20(data0, {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate19.errors = vErrors;return false;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate19.errors = vErrors;return errors === 0;}validate19.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema46 = {"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate47.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.switch === undefined) && (missing0 = "switch")){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!(key0 === "switch")){validate47.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.switch !== undefined){let data0 = data.switch;const _errs2 = errors;if(errors === _errs2){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs4 = errors;if(!(validate21(data0[i0], {instancePath:instancePath+"/switch/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var valid1 = _errs4 === errors;if(!valid1){break;}}}else {validate47.errors = [{instancePath:instancePath+"/switch",schemaPath:"#/properties/switch/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}validate47.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://json-layout.github.io/layout-keyword" */;let vErrors = null;let errors = 0;const evaluated0 = validate18.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(!(((((((((((((((((data === "none") || (data === "text-field")) || (data === "number-field")) || (data === "textarea")) || (data === "checkbox")) || (data === "switch")) || (data === "slider")) || (data === "date-picker")) || (data === "date-time-picker")) || (data === "time-picker")) || (data === "color-picker")) || (data === "section")) || (data === "list")) || (data === "select")) || (data === "tabs")) || (data === "vertical-tabs")) || (data === "expansion-panels"))){const err1 = {instancePath,schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema22.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;const _errs4 = errors;if(!(validate19(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;valid0 = valid0 || _valid0;if(_valid0){var items0 = true;}const _errs5 = errors;if(!(validate21(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.comp = true;props0.help = true;props0.children = true;props0.label = true;props0.title = true;props0.subtitle = true;props0.step = true;props0.if = true;props0.items = true;props0.getItems = true;props0.listEditMode = true;props0.listActions = true;props0.cols = true;props0.props = true;props0.slots = true;props0.options = true;props0.messages = true;}const _errs6 = errors;if(!(validate47(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var _valid0 = _errs6 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate18.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){for(const key0 in data){if(!props0 || !props0[key0]){validate18.errors = [{instancePath,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty: key0},message:"must NOT have unevaluated properties"}];return false;break;}}}}}validate18.errors = vErrors;evaluated0.items = items0;return errors === 0;}validate18.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":true};
2
+ export const validate = validate22;export default validate22;const schema26 = {"$id":"https://json-layout.github.io/layout-keyword","title":"layout keyword","errorMessage":{"anyOf":"layout keyword must be a string with a valid component name, or a more complete object definition, or an array of children, or a switch structure"},"anyOf":[{"$ref":"#/$defs/comp-name"},{"$ref":"#/$defs/partial-children"},{"$ref":"#/$defs/partial-comp-object"},{"$ref":"#/$defs/partial-switch"}],"$defs":{"partial-switch":{"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}},"partial-comp-object":{"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}},"comp-name":{"title":"component name","type":"string","errorMessage":{"enum":"component name is unknown"},"enum":["none","text-field","number-field","textarea","markdown","checkbox","switch","slider","date-picker","date-time-picker","time-picker","color-picker","combobox","number-combobox","section","list","select","autocomplete","tabs","vertical-tabs","expansion-panels","one-of-select"]},"partial-child":{"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]},"partial-children":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}},"partial-expression":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]},"partial-expression-obj":{"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}},"partial-select-item":{"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]},"partial-get-items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]},"partial-get-items-obj":{"type":"object","allOf":[{"properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemIcon":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}}},{"anyOf":[{"type":"object"},{"$ref":"#/$defs/partial-expression-obj"},{"$ref":"#/$defs/partial-get-items-fetch"}]}]},"partial-get-items-fetch":{"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}},"partial-cols":{"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]},"partial-cols-obj":{"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}},"partial-cols-number":{"type":"integer","minimum":0,"maximum":12},"partial-slot":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]},"partial-slot-text":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}},"partial-slot-markdown":{"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}},"partial-slot-name":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}}}};const schema27 = {"title":"component name","type":"string","errorMessage":{"enum":"component name is unknown"},"enum":["none","text-field","number-field","textarea","markdown","checkbox","switch","slider","date-picker","date-time-picker","time-picker","color-picker","combobox","number-combobox","section","list","select","autocomplete","tabs","vertical-tabs","expansion-panels","one-of-select"]};const schema28 = {"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-child"}]}};const schema29 = {"type":"object","unevaluatedProperties":false,"properties":{"key":{"type":["string","integer"]},"cols":{"$ref":"#/$defs/partial-cols"}},"allOf":[{"$ref":"#/$defs/partial-comp-object"},{}]};const schema30 = {"title":"partial comp object","type":"object","properties":{"comp":{"$ref":"#/$defs/comp-name"},"help":{"type":"string"},"children":{"$ref":"#/$defs/partial-children"},"label":{"type":"string"},"title":{"type":["string","null"]},"subtitle":{"type":["string","null"]},"step":{"type":"number"},"if":{"$ref":"#/$defs/partial-expression"},"items":{"type":"array","items":{"$ref":"#/$defs/partial-select-item"}},"getItems":{"$ref":"#/$defs/partial-get-items"},"listEditMode":{"type":"string","enum":["inline","inline-single","menu","dialog"]},"listActions":{"type":"array","items":{"type":"string","enum":["add","edit","delete","sort","duplicate"]}},"cols":{"$ref":"#/$defs/partial-cols"},"props":{"type":"object"},"slots":{"type":"object","patternProperties":{".*":{"$ref":"#/$defs/partial-slot"}}},"options":{"type":"object"},"messages":{"type":"object"}}};const schema34 = {"oneOf":[{"type":"string"},{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"value":{}}}]};const wrapper0 = {validate: validate23};const schema32 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-expression-obj"}]};const schema33 = {"type":"object","required":["expr"],"properties":{"type":{"type":"string","enum":["js-fn","js-eval","js-tpl"]},"expr":{"type":"string"}}};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.expr === undefined){const err1 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/required",keyword:"required",params:{missingProperty: "expr"},message:"must have required property '"+"expr"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.type !== undefined){let data0 = data.type;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!(((data0 === "js-fn") || (data0 === "js-eval")) || (data0 === "js-tpl"))){const err3 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.expr !== undefined){if(typeof data.expr !== "string"){const err4 = {instancePath:instancePath+"/expr",schemaPath:"#/$defs/partial-expression-obj/properties/expr/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = {};props0.type = true;props0.expr = true;}}if(!valid0){const err6 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate26.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate26.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema35 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-get-items-obj"}]};const schema36 = {"type":"object","allOf":[{"properties":{"itemTitle":{"$ref":"#/$defs/partial-expression"},"itemKey":{"$ref":"#/$defs/partial-expression"},"itemValue":{"$ref":"#/$defs/partial-expression"},"itemIcon":{"$ref":"#/$defs/partial-expression"},"itemsResults":{"$ref":"#/$defs/partial-expression"}}},{"anyOf":[{"type":"object"},{"$ref":"#/$defs/partial-expression-obj"},{"$ref":"#/$defs/partial-get-items-fetch"}]}]};const schema38 = {"type":"object","required":["url"],"properties":{"url":{"$ref":"#/$defs/partial-expression"}}};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate35.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.url === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.url !== undefined){if(!(validate26(data.url, {instancePath:instancePath+"/url",parentData:data,parentDataProperty:"url",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate35.errors = vErrors;return errors === 0;}validate35.evaluated = {"props":{"url":true},"dynamicProps":false,"dynamicItems":false};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate29.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.itemTitle !== undefined){if(!(validate26(data.itemTitle, {instancePath:instancePath+"/itemTitle",parentData:data,parentDataProperty:"itemTitle",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.itemKey !== undefined){if(!(validate26(data.itemKey, {instancePath:instancePath+"/itemKey",parentData:data,parentDataProperty:"itemKey",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.itemValue !== undefined){if(!(validate26(data.itemValue, {instancePath:instancePath+"/itemValue",parentData:data,parentDataProperty:"itemValue",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.itemIcon !== undefined){if(!(validate26(data.itemIcon, {instancePath:instancePath+"/itemIcon",parentData:data,parentDataProperty:"itemIcon",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.itemsResults !== undefined){if(!(validate26(data.itemsResults, {instancePath:instancePath+"/itemsResults",parentData:data,parentDataProperty:"itemsResults",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(data && typeof data == "object" && !Array.isArray(data))){const err1 = {instancePath,schemaPath:"#/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.expr === undefined){const err2 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/required",keyword:"required",params:{missingProperty: "expr"},message:"must have required property '"+"expr"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.type !== undefined){let data5 = data.type;if(typeof data5 !== "string"){const err3 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!(((data5 === "js-fn") || (data5 === "js-eval")) || (data5 === "js-tpl"))){const err4 = {instancePath:instancePath+"/type",schemaPath:"#/$defs/partial-expression-obj/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.expr !== undefined){if(typeof data.expr !== "string"){const err5 = {instancePath:instancePath+"/expr",schemaPath:"#/$defs/partial-expression-obj/properties/expr/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/$defs/partial-expression-obj/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid0 = _errs11 === errors;valid2 = valid2 || _valid0;if(_valid0){var props5 = {};props5.type = true;props5.expr = true;}const _errs18 = errors;if(!(validate35(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);errors = vErrors.length;}var _valid0 = _errs18 === errors;valid2 = valid2 || _valid0;if(_valid0){if(props5 !== true){props5 = props5 || {};props5.url = true;}}if(!valid2){const err7 = {instancePath,schemaPath:"#/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}if(props5 !== true){props5 = props5 || {};props5.itemTitle = true;props5.itemKey = true;props5.itemValue = true;props5.itemIcon = true;props5.itemsResults = true;}validate29.errors = vErrors;evaluated0.props = props5;return errors === 0;}validate29.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(!(validate29(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);errors = vErrors.length;}else {var props0 = validate29.evaluated.props;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate28.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate28.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema39 = {"oneOf":[{"$ref":"#/$defs/partial-cols-number"},{"$ref":"#/$defs/partial-cols-obj"}]};const schema40 = {"type":"integer","minimum":0,"maximum":12};const schema41 = {"type":"object","additionalProperties":false,"properties":{"xs":{"$ref":"#/$defs/partial-cols-number"},"sm":{"$ref":"#/$defs/partial-cols-number"},"md":{"$ref":"#/$defs/partial-cols-number"},"lg":{"$ref":"#/$defs/partial-cols-number"},"xl":{"$ref":"#/$defs/partial-cols-number"},"xxl":{"$ref":"#/$defs/partial-cols-number"}}};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate41.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){for(const key0 in data){if(!((((((key0 === "xs") || (key0 === "sm")) || (key0 === "md")) || (key0 === "lg")) || (key0 === "xl")) || (key0 === "xxl"))){const err0 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}if(data.xs !== undefined){let data0 = data.xs;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err1 = {instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 12 || isNaN(data0)){const err2 = {instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0 < 0 || isNaN(data0)){const err3 = {instancePath:instancePath+"/xs",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}if(data.sm !== undefined){let data1 = data.sm;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err4 = {instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 12 || isNaN(data1)){const err5 = {instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1 < 0 || isNaN(data1)){const err6 = {instancePath:instancePath+"/sm",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}if(data.md !== undefined){let data2 = data.md;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err7 = {instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 12 || isNaN(data2)){const err8 = {instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2 < 0 || isNaN(data2)){const err9 = {instancePath:instancePath+"/md",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(data.lg !== undefined){let data3 = data.lg;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err10 = {instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 > 12 || isNaN(data3)){const err11 = {instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data3 < 0 || isNaN(data3)){const err12 = {instancePath:instancePath+"/lg",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}if(data.xl !== undefined){let data4 = data.xl;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err13 = {instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 12 || isNaN(data4)){const err14 = {instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data4 < 0 || isNaN(data4)){const err15 = {instancePath:instancePath+"/xl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data.xxl !== undefined){let data5 = data.xxl;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err16 = {instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 12 || isNaN(data5)){const err17 = {instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data5 < 0 || isNaN(data5)){const err18 = {instancePath:instancePath+"/xxl",schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}else {const err19 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}validate41.errors = vErrors;return errors === 0;}validate41.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(((typeof data == "number") && (!(data % 1) && !isNaN(data))) && (isFinite(data)))){const err0 = {instancePath,schemaPath:"#/$defs/partial-cols-number/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if((typeof data == "number") && (isFinite(data))){if(data > 12 || isNaN(data)){const err1 = {instancePath,schemaPath:"#/$defs/partial-cols-number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data < 0 || isNaN(data)){const err2 = {instancePath,schemaPath:"#/$defs/partial-cols-number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs4 = errors;if(!(validate41(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}}if(!valid0){const err3 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate40.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate40.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema48 = {"oneOf":[{"type":"string"},{"$ref":"#/$defs/partial-slot-text"},{"$ref":"#/$defs/partial-slot-markdown"},{"$ref":"#/$defs/partial-slot-name"}]};const schema49 = {"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string"}}};const schema50 = {"type":"object","additionalProperties":false,"required":["markdown"],"properties":{"markdown":{"type":"string"}}};const schema51 = {"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"}}};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate44.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text === undefined){const err1 = {instancePath,schemaPath:"#/$defs/partial-slot-text/required",keyword:"required",params:{missingProperty: "text"},message:"must have required property '"+"text"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(key0 === "text")){const err2 = {instancePath,schemaPath:"#/$defs/partial-slot-text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.text !== undefined){if(typeof data.text !== "string"){const err3 = {instancePath:instancePath+"/text",schemaPath:"#/$defs/partial-slot-text/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/$defs/partial-slot-text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;var props0 = true;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.markdown === undefined){const err5 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/required",keyword:"required",params:{missingProperty: "markdown"},message:"must have required property '"+"markdown"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key1 in data){if(!(key1 === "markdown")){const err6 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.markdown !== undefined){if(typeof data.markdown !== "string"){const err7 = {instancePath:instancePath+"/markdown",schemaPath:"#/$defs/partial-slot-markdown/properties/markdown/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/$defs/partial-slot-markdown/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err9 = {instancePath,schemaPath:"#/$defs/partial-slot-name/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key2 in data){if(!(key2 === "name")){const err10 = {instancePath,schemaPath:"#/$defs/partial-slot-name/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/partial-slot-name/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/$defs/partial-slot-name/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err13 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate44.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate44.evaluated = {"dynamicProps":true,"dynamicItems":false};const pattern2 = new RegExp(".*", "u");function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.comp !== undefined){let data0 = data.comp;if(typeof data0 !== "string"){const err0 = {instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(!((((((((((((((((((((((data0 === "none") || (data0 === "text-field")) || (data0 === "number-field")) || (data0 === "textarea")) || (data0 === "markdown")) || (data0 === "checkbox")) || (data0 === "switch")) || (data0 === "slider")) || (data0 === "date-picker")) || (data0 === "date-time-picker")) || (data0 === "time-picker")) || (data0 === "color-picker")) || (data0 === "combobox")) || (data0 === "number-combobox")) || (data0 === "section")) || (data0 === "list")) || (data0 === "select")) || (data0 === "autocomplete")) || (data0 === "tabs")) || (data0 === "vertical-tabs")) || (data0 === "expansion-panels")) || (data0 === "one-of-select"))){const err1 = {instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema27.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(errors > 0){const emErrors0 = {"enum":[]};const templates0 = {};for(const err2 of vErrors){if((((((err2.keyword !== "errorMessage") && (!err2.emUsed)) && (err2.instancePath === instancePath+"/comp")) && (err2.keyword in emErrors0)) && (err2.schemaPath.indexOf("#/$defs/comp-name") === 0)) && (/^\/[^\/]*$/.test(err2.schemaPath.slice(17)))){emErrors0[err2.keyword].push(err2);err2.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err3 = {instancePath:instancePath+"/comp",schemaPath:"#/$defs/comp-name/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema27.errorMessage[key0]};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}const emErrs0 = [];for(const err4 of vErrors){if(!err4.emUsed){emErrs0.push(err4);}}vErrors = emErrs0;errors = emErrs0.length;}}if(data.help !== undefined){if(typeof data.help !== "string"){const err5 = {instancePath:instancePath+"/help",schemaPath:"#/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.children !== undefined){if(!(wrapper0.validate(data.children, {instancePath:instancePath+"/children",parentData:data,parentDataProperty:"children",rootData,dynamicAnchors}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}}if(data.label !== undefined){if(typeof data.label !== "string"){const err6 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.title !== undefined){let data4 = data.title;if((typeof data4 !== "string") && (data4 !== null)){const err7 = {instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: schema30.properties.title.type},message:"must be string,null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.subtitle !== undefined){let data5 = data.subtitle;if((typeof data5 !== "string") && (data5 !== null)){const err8 = {instancePath:instancePath+"/subtitle",schemaPath:"#/properties/subtitle/type",keyword:"type",params:{type: schema30.properties.subtitle.type},message:"must be string,null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.step !== undefined){let data6 = data.step;if(!((typeof data6 == "number") && (isFinite(data6)))){const err9 = {instancePath:instancePath+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.if !== undefined){if(!(validate26(data.if, {instancePath:instancePath+"/if",parentData:data,parentDataProperty:"if",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}if(data.items !== undefined){let data8 = data.items;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];const _errs20 = errors;let valid5 = false;let passing0 = null;const _errs21 = errors;if(typeof data9 !== "string"){const err10 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid0 = _errs21 === errors;if(_valid0){valid5 = true;passing0 = 0;}const _errs23 = errors;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.key !== undefined){if(typeof data9.key !== "string"){const err11 = {instancePath:instancePath+"/items/" + i0+"/key",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data9.title !== undefined){if(typeof data9.title !== "string"){const err12 = {instancePath:instancePath+"/items/" + i0+"/title",schemaPath:"#/$defs/partial-select-item/oneOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid0 = _errs23 === errors;if(_valid0 && valid5){valid5 = false;passing0 = [passing0, 1];}else {if(_valid0){valid5 = true;passing0 = 1;var props2 = {};props2.key = true;props2.title = true;props2.value = true;}}if(!valid5){const err14 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/partial-select-item/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}}}else {const err15 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.getItems !== undefined){if(!(validate28(data.getItems, {instancePath:instancePath+"/getItems",parentData:data,parentDataProperty:"getItems",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data.listEditMode !== undefined){let data13 = data.listEditMode;if(typeof data13 !== "string"){const err16 = {instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(!((((data13 === "inline") || (data13 === "inline-single")) || (data13 === "menu")) || (data13 === "dialog"))){const err17 = {instancePath:instancePath+"/listEditMode",schemaPath:"#/properties/listEditMode/enum",keyword:"enum",params:{allowedValues: schema30.properties.listEditMode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data.listActions !== undefined){let data14 = data.listActions;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(typeof data15 !== "string"){const err18 = {instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(!(((((data15 === "add") || (data15 === "edit")) || (data15 === "delete")) || (data15 === "sort")) || (data15 === "duplicate"))){const err19 = {instancePath:instancePath+"/listActions/" + i1,schemaPath:"#/properties/listActions/items/enum",keyword:"enum",params:{allowedValues: schema30.properties.listActions.items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath:instancePath+"/listActions",schemaPath:"#/properties/listActions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.cols !== undefined){if(!(validate40(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}if(data.props !== undefined){let data17 = data.props;if(!(data17 && typeof data17 == "object" && !Array.isArray(data17))){const err21 = {instancePath:instancePath+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.slots !== undefined){let data18 = data.slots;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){var props5 = {};for(const key1 in data18){if(pattern2.test(key1)){if(!(validate44(data18[key1], {instancePath:instancePath+"/slots/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data18,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}props5[key1] = true;}}}else {const err22 = {instancePath:instancePath+"/slots",schemaPath:"#/properties/slots/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.options !== undefined){let data20 = data.options;if(!(data20 && typeof data20 == "object" && !Array.isArray(data20))){const err23 = {instancePath:instancePath+"/options",schemaPath:"#/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.messages !== undefined){let data21 = data.messages;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err24 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":{"comp":true,"help":true,"children":true,"label":true,"title":true,"subtitle":true,"step":true,"if":true,"items":true,"getItems":true,"listEditMode":true,"listActions":true,"cols":true,"props":true,"slots":true,"options":true,"messages":true},"dynamicProps":false,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(!(validate25(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.key !== undefined){let data0 = data.key;if((typeof data0 !== "string") && (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0))))){const err0 = {instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: schema29.properties.key.type},message:"must be string,integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}if(data.cols !== undefined){if(!(validate40(data.cols, {instancePath:instancePath+"/cols",parentData:data,parentDataProperty:"cols",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}for(const key0 in data){if((((((((((((((((((key0 !== "key") && (key0 !== "cols")) && (key0 !== "comp")) && (key0 !== "help")) && (key0 !== "children")) && (key0 !== "label")) && (key0 !== "title")) && (key0 !== "subtitle")) && (key0 !== "step")) && (key0 !== "if")) && (key0 !== "items")) && (key0 !== "getItems")) && (key0 !== "listEditMode")) && (key0 !== "listActions")) && (key0 !== "props")) && (key0 !== "slots")) && (key0 !== "options")) && (key0 !== "messages")){const err1 = {instancePath,schemaPath:"#/unevaluatedProperties",keyword:"unevaluatedProperties",params:{unevaluatedProperty: key0},message:"must NOT have unevaluated properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}else {const err2 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs2 = errors;let valid2 = false;let passing0 = null;const _errs3 = errors;if(typeof data0 !== "string"){const err0 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs3 === errors;if(_valid0){valid2 = true;passing0 = 0;}const _errs5 = errors;if(!(validate24(data0, {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid0){valid2 = true;passing0 = 1;}}if(!valid2){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}}}else {const err2 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema52 = {"type":"object","required":["switch"],"additionalProperties":false,"properties":{"switch":{"type":"array","items":{"$ref":"#/$defs/partial-comp-object"}}}};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate51.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.switch === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "switch"},message:"must have required property '"+"switch"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "switch")){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.switch !== undefined){let data0 = data.switch;if(Array.isArray(data0)){const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate25(data0[i0], {instancePath:instancePath+"/switch/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}}else {const err2 = {instancePath:instancePath+"/switch",schemaPath:"#/properties/switch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate51.errors = vErrors;return errors === 0;}validate51.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://json-layout.github.io/layout-keyword" */;let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/$defs/comp-name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(!((((((((((((((((((((((data === "none") || (data === "text-field")) || (data === "number-field")) || (data === "textarea")) || (data === "markdown")) || (data === "checkbox")) || (data === "switch")) || (data === "slider")) || (data === "date-picker")) || (data === "date-time-picker")) || (data === "time-picker")) || (data === "color-picker")) || (data === "combobox")) || (data === "number-combobox")) || (data === "section")) || (data === "list")) || (data === "select")) || (data === "autocomplete")) || (data === "tabs")) || (data === "vertical-tabs")) || (data === "expansion-panels")) || (data === "one-of-select"))){const err1 = {instancePath,schemaPath:"#/$defs/comp-name/enum",keyword:"enum",params:{allowedValues: schema27.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(errors > 0){const emErrors0 = {"enum":[]};const templates0 = {};for(const err2 of vErrors){if((((((err2.keyword !== "errorMessage") && (!err2.emUsed)) && (err2.instancePath === instancePath)) && (err2.keyword in emErrors0)) && (err2.schemaPath.indexOf("#/$defs/comp-name") === 0)) && (/^\/[^\/]*$/.test(err2.schemaPath.slice(17)))){emErrors0[err2.keyword].push(err2);err2.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err3 = {instancePath,schemaPath:"#/$defs/comp-name/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema27.errorMessage[key0]};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}const emErrs0 = [];for(const err4 of vErrors){if(!err4.emUsed){emErrs0.push(err4);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;const _errs4 = errors;if(!(validate23(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}var _valid0 = _errs4 === errors;valid0 = valid0 || _valid0;if(_valid0){var items0 = true;}const _errs5 = errors;if(!(validate25(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.comp = true;props0.help = true;props0.children = true;props0.label = true;props0.title = true;props0.subtitle = true;props0.step = true;props0.if = true;props0.items = true;props0.getItems = true;props0.listEditMode = true;props0.listActions = true;props0.cols = true;props0.props = true;props0.slots = true;props0.options = true;props0.messages = true;}const _errs6 = errors;if(!(validate51(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate51.errors : vErrors.concat(validate51.errors);errors = vErrors.length;}var _valid0 = _errs6 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}if(!valid0){const err5 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}if(errors > 0){const emErrors1 = {"anyOf":[]};const templates1 = {};for(const err6 of vErrors){if((((((err6.keyword !== "errorMessage") && (!err6.emUsed)) && (err6.instancePath === instancePath)) && (err6.keyword in emErrors1)) && (err6.schemaPath.indexOf("#") === 0)) && (/^\/[^\/]*$/.test(err6.schemaPath.slice(1)))){emErrors1[err6.keyword].push(err6);err6.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err7 = {instancePath,schemaPath:"#/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema26.errorMessage[key1]};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}const emErrs1 = [];for(const err8 of vErrors){if(!err8.emUsed){emErrs1.push(err8);}}vErrors = emErrs1;errors = emErrs1.length;}validate22.errors = vErrors;evaluated0.props = props0;evaluated0.items = items0;return errors === 0;}validate22.evaluated = {"dynamicProps":true,"dynamicItems":true};