@ng-formworks/core 16.3.0 → 17.3.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/esm2022/lib/framework-library/framework-library.service.mjs +174 -174
- package/esm2022/lib/framework-library/framework.mjs +14 -14
- package/esm2022/lib/framework-library/no-framework.component.mjs +17 -17
- package/esm2022/lib/framework-library/no-framework.module.mjs +26 -26
- package/esm2022/lib/framework-library/no.framework.mjs +18 -18
- package/esm2022/lib/json-schema-form.component.mjs +765 -765
- package/esm2022/lib/json-schema-form.module.mjs +25 -25
- package/esm2022/lib/json-schema-form.service.mjs +675 -675
- package/esm2022/lib/locale/de-validation-messages.mjs +59 -59
- package/esm2022/lib/locale/en-validation-messages.mjs +59 -59
- package/esm2022/lib/locale/es-validation-messages.mjs +56 -56
- package/esm2022/lib/locale/fr-validation-messages.mjs +59 -59
- package/esm2022/lib/locale/index.mjs +7 -7
- package/esm2022/lib/locale/it-validation-messages.mjs +59 -59
- package/esm2022/lib/locale/pt-validation-messages.mjs +59 -59
- package/esm2022/lib/locale/zh-validation-messages.mjs +59 -59
- package/esm2022/lib/shared/convert-schema-to-draft6.function.mjs +299 -299
- package/esm2022/lib/shared/form-group.functions.mjs +441 -441
- package/esm2022/lib/shared/format-regex.constants.mjs +53 -53
- package/esm2022/lib/shared/index.mjs +11 -11
- package/esm2022/lib/shared/json-schema.functions.mjs +783 -783
- package/esm2022/lib/shared/json.validators.mjs +883 -883
- package/esm2022/lib/shared/jsonpointer.functions.mjs +1025 -1025
- package/esm2022/lib/shared/layout.functions.mjs +1153 -1153
- package/esm2022/lib/shared/merge-schemas.function.mjs +344 -344
- package/esm2022/lib/shared/utility.functions.mjs +379 -379
- package/esm2022/lib/shared/validator.functions.mjs +583 -583
- package/esm2022/lib/widget-library/add-reference.component.mjs +48 -48
- package/esm2022/lib/widget-library/button.component.mjs +41 -41
- package/esm2022/lib/widget-library/checkbox.component.mjs +46 -46
- package/esm2022/lib/widget-library/checkboxes.component.mjs +52 -52
- package/esm2022/lib/widget-library/file.component.mjs +35 -35
- package/esm2022/lib/widget-library/hidden.component.mjs +33 -33
- package/esm2022/lib/widget-library/index.mjs +54 -54
- package/esm2022/lib/widget-library/input.component.mjs +38 -38
- package/esm2022/lib/widget-library/message.component.mjs +33 -33
- package/esm2022/lib/widget-library/none.component.mjs +20 -20
- package/esm2022/lib/widget-library/number.component.mjs +44 -44
- package/esm2022/lib/widget-library/one-of.component.mjs +35 -35
- package/esm2022/lib/widget-library/orderable.directive.mjs +123 -123
- package/esm2022/lib/widget-library/radios.component.mjs +44 -44
- package/esm2022/lib/widget-library/root.component.mjs +44 -44
- package/esm2022/lib/widget-library/section.component.mjs +78 -78
- package/esm2022/lib/widget-library/select-framework.component.mjs +51 -51
- package/esm2022/lib/widget-library/select-widget.component.mjs +46 -46
- package/esm2022/lib/widget-library/select.component.mjs +41 -41
- package/esm2022/lib/widget-library/submit.component.mjs +55 -55
- package/esm2022/lib/widget-library/tab.component.mjs +30 -30
- package/esm2022/lib/widget-library/tabs.component.mjs +53 -53
- package/esm2022/lib/widget-library/template.component.mjs +46 -46
- package/esm2022/lib/widget-library/textarea.component.mjs +37 -37
- package/esm2022/lib/widget-library/widget-library.module.mjs +41 -41
- package/esm2022/lib/widget-library/widget-library.service.mjs +225 -225
- package/esm2022/ng-formworks-core.mjs +4 -4
- package/esm2022/public_api.mjs +12 -12
- package/fesm2022/ng-formworks-core.mjs +9103 -9103
- package/fesm2022/ng-formworks-core.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/framework-library/framework-library.service.d.ts +55 -55
- package/lib/framework-library/framework.d.ts +13 -13
- package/lib/framework-library/no-framework.component.d.ts +8 -8
- package/lib/framework-library/no-framework.module.d.ts +9 -9
- package/lib/framework-library/no.framework.d.ts +10 -10
- package/lib/json-schema-form.component.d.ts +218 -218
- package/lib/json-schema-form.module.d.ts +11 -11
- package/lib/json-schema-form.service.d.ts +115 -115
- package/lib/locale/de-validation-messages.d.ts +1 -1
- package/lib/locale/en-validation-messages.d.ts +1 -1
- package/lib/locale/es-validation-messages.d.ts +1 -1
- package/lib/locale/fr-validation-messages.d.ts +1 -1
- package/lib/locale/index.d.ts +7 -7
- package/lib/locale/it-validation-messages.d.ts +1 -1
- package/lib/locale/pt-validation-messages.d.ts +1 -1
- package/lib/locale/zh-validation-messages.d.ts +1 -1
- package/lib/shared/convert-schema-to-draft6.function.d.ts +21 -21
- package/lib/shared/form-group.functions.d.ts +100 -100
- package/lib/shared/format-regex.constants.d.ts +19 -19
- package/lib/shared/index.d.ts +9 -9
- package/lib/shared/json-schema.functions.d.ts +193 -193
- package/lib/shared/json.validators.d.ts +441 -441
- package/lib/shared/jsonpointer.functions.d.ts +416 -416
- package/lib/shared/layout.functions.d.ts +83 -83
- package/lib/shared/merge-schemas.function.d.ts +19 -19
- package/lib/shared/utility.functions.d.ts +165 -165
- package/lib/shared/validator.functions.d.ts +364 -364
- package/lib/widget-library/add-reference.component.d.ts +20 -20
- package/lib/widget-library/button.component.d.ts +21 -21
- package/lib/widget-library/checkbox.component.d.ts +24 -24
- package/lib/widget-library/checkboxes.component.d.ts +24 -24
- package/lib/widget-library/file.component.d.ts +21 -21
- package/lib/widget-library/hidden.component.d.ts +19 -19
- package/lib/widget-library/index.d.ts +47 -47
- package/lib/widget-library/input.component.d.ts +22 -22
- package/lib/widget-library/message.component.d.ts +15 -15
- package/lib/widget-library/none.component.d.ts +8 -8
- package/lib/widget-library/number.component.d.ts +25 -25
- package/lib/widget-library/one-of.component.d.ts +21 -21
- package/lib/widget-library/orderable.directive.d.ts +41 -41
- package/lib/widget-library/radios.component.d.ts +23 -23
- package/lib/widget-library/root.component.d.ts +17 -17
- package/lib/widget-library/section.component.d.ts +19 -19
- package/lib/widget-library/select-framework.component.d.ts +18 -18
- package/lib/widget-library/select-widget.component.d.ts +18 -18
- package/lib/widget-library/select.component.d.ts +24 -24
- package/lib/widget-library/submit.component.d.ts +24 -24
- package/lib/widget-library/tab.component.d.ts +14 -14
- package/lib/widget-library/tabs.component.d.ts +20 -20
- package/lib/widget-library/template.component.d.ts +18 -18
- package/lib/widget-library/textarea.component.d.ts +21 -21
- package/lib/widget-library/widget-library.module.d.ts +31 -31
- package/lib/widget-library/widget-library.service.d.ts +22 -22
- package/package.json +5 -5
- package/public_api.d.ts +9 -9
|
@@ -1,193 +1,193 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON Schema function library:
|
|
3
|
-
*
|
|
4
|
-
* buildSchemaFromLayout: TODO: Write this function
|
|
5
|
-
*
|
|
6
|
-
* buildSchemaFromData:
|
|
7
|
-
*
|
|
8
|
-
* getFromSchema:
|
|
9
|
-
*
|
|
10
|
-
* removeRecursiveReferences:
|
|
11
|
-
*
|
|
12
|
-
* getInputType:
|
|
13
|
-
*
|
|
14
|
-
* checkInlineType:
|
|
15
|
-
*
|
|
16
|
-
* isInputRequired:
|
|
17
|
-
*
|
|
18
|
-
* updateInputOptions:
|
|
19
|
-
*
|
|
20
|
-
* getTitleMapFromOneOf:
|
|
21
|
-
*
|
|
22
|
-
* getControlValidators:
|
|
23
|
-
*
|
|
24
|
-
* resolveSchemaReferences:
|
|
25
|
-
*
|
|
26
|
-
* getSubSchema:
|
|
27
|
-
*
|
|
28
|
-
* combineAllOf:
|
|
29
|
-
*
|
|
30
|
-
* fixRequiredArrayProperties:
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* 'buildSchemaFromLayout' function
|
|
34
|
-
*
|
|
35
|
-
* TODO: Build a JSON Schema from a JSON Form layout
|
|
36
|
-
*
|
|
37
|
-
* // layout - The JSON Form layout
|
|
38
|
-
* // - The new JSON Schema
|
|
39
|
-
*/
|
|
40
|
-
export declare function buildSchemaFromLayout(layout: any): void;
|
|
41
|
-
/**
|
|
42
|
-
* 'buildSchemaFromData' function
|
|
43
|
-
*
|
|
44
|
-
* Build a JSON Schema from a data object
|
|
45
|
-
*
|
|
46
|
-
* // data - The data object
|
|
47
|
-
* // { boolean = false } requireAllFields - Require all fields?
|
|
48
|
-
* // { boolean = true } isRoot - is root
|
|
49
|
-
* // - The new JSON Schema
|
|
50
|
-
*/
|
|
51
|
-
export declare function buildSchemaFromData(data: any, requireAllFields?: boolean, isRoot?: boolean): any;
|
|
52
|
-
/**
|
|
53
|
-
* 'getFromSchema' function
|
|
54
|
-
*
|
|
55
|
-
* Uses a JSON Pointer for a value within a data object to retrieve
|
|
56
|
-
* the schema for that value within schema for the data object.
|
|
57
|
-
*
|
|
58
|
-
* The optional third parameter can also be set to return something else:
|
|
59
|
-
* 'schema' (default): the schema for the value indicated by the data pointer
|
|
60
|
-
* 'parentSchema': the schema for the value's parent object or array
|
|
61
|
-
* 'schemaPointer': a pointer to the value's schema within the object's schema
|
|
62
|
-
* 'parentSchemaPointer': a pointer to the schema for the value's parent object or array
|
|
63
|
-
*
|
|
64
|
-
* // schema - The schema to get the sub-schema from
|
|
65
|
-
* // { Pointer } dataPointer - JSON Pointer (string or array)
|
|
66
|
-
* // { string = 'schema' } returnType - what to return?
|
|
67
|
-
* // - The located sub-schema
|
|
68
|
-
*/
|
|
69
|
-
export declare function getFromSchema(schema: any, dataPointer: any, returnType?: string): any;
|
|
70
|
-
/**
|
|
71
|
-
* 'removeRecursiveReferences' function
|
|
72
|
-
*
|
|
73
|
-
* Checks a JSON Pointer against a map of recursive references and returns
|
|
74
|
-
* a JSON Pointer to the shallowest equivalent location in the same object.
|
|
75
|
-
*
|
|
76
|
-
* Using this functions enables an object to be constructed with unlimited
|
|
77
|
-
* recursion, while maintaing a fixed set of metadata, such as field data types.
|
|
78
|
-
* The object can grow as large as it wants, and deeply recursed nodes can
|
|
79
|
-
* just refer to the metadata for their shallow equivalents, instead of having
|
|
80
|
-
* to add additional redundant metadata for each recursively added node.
|
|
81
|
-
*
|
|
82
|
-
* Example:
|
|
83
|
-
*
|
|
84
|
-
* pointer: '/stuff/and/more/and/more/and/more/and/more/stuff'
|
|
85
|
-
* recursiveRefMap: [['/stuff/and/more/and/more', '/stuff/and/more/']]
|
|
86
|
-
* returned: '/stuff/and/more/stuff'
|
|
87
|
-
*
|
|
88
|
-
* // { Pointer } pointer -
|
|
89
|
-
* // { Map<string, string> } recursiveRefMap -
|
|
90
|
-
* // { Map<string, number> = new Map() } arrayMap - optional
|
|
91
|
-
* // { string } -
|
|
92
|
-
*/
|
|
93
|
-
export declare function removeRecursiveReferences(pointer: any, recursiveRefMap: any, arrayMap?: Map<any, any>): any;
|
|
94
|
-
/**
|
|
95
|
-
* 'getInputType' function
|
|
96
|
-
*
|
|
97
|
-
* // schema
|
|
98
|
-
* // { any = null } layoutNode
|
|
99
|
-
* // { string }
|
|
100
|
-
*/
|
|
101
|
-
export declare function getInputType(schema: any, layoutNode?: any): any;
|
|
102
|
-
/**
|
|
103
|
-
* 'checkInlineType' function
|
|
104
|
-
*
|
|
105
|
-
* Checks layout and schema nodes for 'inline: true', and converts
|
|
106
|
-
* 'radios' or 'checkboxes' to 'radios-inline' or 'checkboxes-inline'
|
|
107
|
-
*
|
|
108
|
-
* // { string } controlType -
|
|
109
|
-
* // schema -
|
|
110
|
-
* // { any = null } layoutNode -
|
|
111
|
-
* // { string }
|
|
112
|
-
*/
|
|
113
|
-
export declare function checkInlineType(controlType: any, schema: any, layoutNode?: any): any;
|
|
114
|
-
/**
|
|
115
|
-
* 'isInputRequired' function
|
|
116
|
-
*
|
|
117
|
-
* Checks a JSON Schema to see if an item is required
|
|
118
|
-
*
|
|
119
|
-
* // schema - the schema to check
|
|
120
|
-
* // { string } schemaPointer - the pointer to the item to check
|
|
121
|
-
* // { boolean } - true if the item is required, false if not
|
|
122
|
-
*/
|
|
123
|
-
export declare function isInputRequired(schema: any, schemaPointer: any): any;
|
|
124
|
-
/**
|
|
125
|
-
* 'updateInputOptions' function
|
|
126
|
-
*
|
|
127
|
-
* // layoutNode
|
|
128
|
-
* // schema
|
|
129
|
-
* // jsf
|
|
130
|
-
* // { void }
|
|
131
|
-
*/
|
|
132
|
-
export declare function updateInputOptions(layoutNode: any, schema: any, jsf: any): void;
|
|
133
|
-
/**
|
|
134
|
-
* 'getTitleMapFromOneOf' function
|
|
135
|
-
*
|
|
136
|
-
* // { schema } schema
|
|
137
|
-
* // { boolean = null } flatList
|
|
138
|
-
* // { boolean = false } validateOnly
|
|
139
|
-
* // { validators }
|
|
140
|
-
*/
|
|
141
|
-
export declare function getTitleMapFromOneOf(schema?: any, flatList?: boolean, validateOnly?: boolean): any;
|
|
142
|
-
/**
|
|
143
|
-
* 'getControlValidators' function
|
|
144
|
-
*
|
|
145
|
-
* // schema
|
|
146
|
-
* // { validators }
|
|
147
|
-
*/
|
|
148
|
-
export declare function getControlValidators(schema: any): any;
|
|
149
|
-
/**
|
|
150
|
-
* 'resolveSchemaReferences' function
|
|
151
|
-
*
|
|
152
|
-
* Find all $ref links in schema and save links and referenced schemas in
|
|
153
|
-
* schemaRefLibrary, schemaRecursiveRefMap, and dataRecursiveRefMap
|
|
154
|
-
*
|
|
155
|
-
* // schema
|
|
156
|
-
* // schemaRefLibrary
|
|
157
|
-
* // { Map<string, string> } schemaRecursiveRefMap
|
|
158
|
-
* // { Map<string, string> } dataRecursiveRefMap
|
|
159
|
-
* // { Map<string, number> } arrayMap
|
|
160
|
-
* //
|
|
161
|
-
*/
|
|
162
|
-
export declare function resolveSchemaReferences(schema: any, schemaRefLibrary: any, schemaRecursiveRefMap: any, dataRecursiveRefMap: any, arrayMap: any): any;
|
|
163
|
-
/**
|
|
164
|
-
* 'getSubSchema' function
|
|
165
|
-
*
|
|
166
|
-
* // schema
|
|
167
|
-
* // { Pointer } pointer
|
|
168
|
-
* // { object } schemaRefLibrary
|
|
169
|
-
* // { Map<string, string> } schemaRecursiveRefMap
|
|
170
|
-
* // { string[] = [] } usedPointers
|
|
171
|
-
* //
|
|
172
|
-
*/
|
|
173
|
-
export declare function getSubSchema(schema: any, pointer: any, schemaRefLibrary?: any, schemaRecursiveRefMap?: Map<string, string>, usedPointers?: string[]): any;
|
|
174
|
-
/**
|
|
175
|
-
* 'combineAllOf' function
|
|
176
|
-
*
|
|
177
|
-
* Attempt to convert an allOf schema object into
|
|
178
|
-
* a non-allOf schema object with equivalent rules.
|
|
179
|
-
*
|
|
180
|
-
* // schema - allOf schema object
|
|
181
|
-
* // - converted schema object
|
|
182
|
-
*/
|
|
183
|
-
export declare function combineAllOf(schema: any): any;
|
|
184
|
-
/**
|
|
185
|
-
* 'fixRequiredArrayProperties' function
|
|
186
|
-
*
|
|
187
|
-
* Fixes an incorrectly placed required list inside an array schema, by moving
|
|
188
|
-
* it into items.properties or additionalItems.properties, where it belongs.
|
|
189
|
-
*
|
|
190
|
-
* // schema - allOf schema object
|
|
191
|
-
* // - converted schema object
|
|
192
|
-
*/
|
|
193
|
-
export declare function fixRequiredArrayProperties(schema: any): any;
|
|
1
|
+
/**
|
|
2
|
+
* JSON Schema function library:
|
|
3
|
+
*
|
|
4
|
+
* buildSchemaFromLayout: TODO: Write this function
|
|
5
|
+
*
|
|
6
|
+
* buildSchemaFromData:
|
|
7
|
+
*
|
|
8
|
+
* getFromSchema:
|
|
9
|
+
*
|
|
10
|
+
* removeRecursiveReferences:
|
|
11
|
+
*
|
|
12
|
+
* getInputType:
|
|
13
|
+
*
|
|
14
|
+
* checkInlineType:
|
|
15
|
+
*
|
|
16
|
+
* isInputRequired:
|
|
17
|
+
*
|
|
18
|
+
* updateInputOptions:
|
|
19
|
+
*
|
|
20
|
+
* getTitleMapFromOneOf:
|
|
21
|
+
*
|
|
22
|
+
* getControlValidators:
|
|
23
|
+
*
|
|
24
|
+
* resolveSchemaReferences:
|
|
25
|
+
*
|
|
26
|
+
* getSubSchema:
|
|
27
|
+
*
|
|
28
|
+
* combineAllOf:
|
|
29
|
+
*
|
|
30
|
+
* fixRequiredArrayProperties:
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* 'buildSchemaFromLayout' function
|
|
34
|
+
*
|
|
35
|
+
* TODO: Build a JSON Schema from a JSON Form layout
|
|
36
|
+
*
|
|
37
|
+
* // layout - The JSON Form layout
|
|
38
|
+
* // - The new JSON Schema
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildSchemaFromLayout(layout: any): void;
|
|
41
|
+
/**
|
|
42
|
+
* 'buildSchemaFromData' function
|
|
43
|
+
*
|
|
44
|
+
* Build a JSON Schema from a data object
|
|
45
|
+
*
|
|
46
|
+
* // data - The data object
|
|
47
|
+
* // { boolean = false } requireAllFields - Require all fields?
|
|
48
|
+
* // { boolean = true } isRoot - is root
|
|
49
|
+
* // - The new JSON Schema
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildSchemaFromData(data: any, requireAllFields?: boolean, isRoot?: boolean): any;
|
|
52
|
+
/**
|
|
53
|
+
* 'getFromSchema' function
|
|
54
|
+
*
|
|
55
|
+
* Uses a JSON Pointer for a value within a data object to retrieve
|
|
56
|
+
* the schema for that value within schema for the data object.
|
|
57
|
+
*
|
|
58
|
+
* The optional third parameter can also be set to return something else:
|
|
59
|
+
* 'schema' (default): the schema for the value indicated by the data pointer
|
|
60
|
+
* 'parentSchema': the schema for the value's parent object or array
|
|
61
|
+
* 'schemaPointer': a pointer to the value's schema within the object's schema
|
|
62
|
+
* 'parentSchemaPointer': a pointer to the schema for the value's parent object or array
|
|
63
|
+
*
|
|
64
|
+
* // schema - The schema to get the sub-schema from
|
|
65
|
+
* // { Pointer } dataPointer - JSON Pointer (string or array)
|
|
66
|
+
* // { string = 'schema' } returnType - what to return?
|
|
67
|
+
* // - The located sub-schema
|
|
68
|
+
*/
|
|
69
|
+
export declare function getFromSchema(schema: any, dataPointer: any, returnType?: string): any;
|
|
70
|
+
/**
|
|
71
|
+
* 'removeRecursiveReferences' function
|
|
72
|
+
*
|
|
73
|
+
* Checks a JSON Pointer against a map of recursive references and returns
|
|
74
|
+
* a JSON Pointer to the shallowest equivalent location in the same object.
|
|
75
|
+
*
|
|
76
|
+
* Using this functions enables an object to be constructed with unlimited
|
|
77
|
+
* recursion, while maintaing a fixed set of metadata, such as field data types.
|
|
78
|
+
* The object can grow as large as it wants, and deeply recursed nodes can
|
|
79
|
+
* just refer to the metadata for their shallow equivalents, instead of having
|
|
80
|
+
* to add additional redundant metadata for each recursively added node.
|
|
81
|
+
*
|
|
82
|
+
* Example:
|
|
83
|
+
*
|
|
84
|
+
* pointer: '/stuff/and/more/and/more/and/more/and/more/stuff'
|
|
85
|
+
* recursiveRefMap: [['/stuff/and/more/and/more', '/stuff/and/more/']]
|
|
86
|
+
* returned: '/stuff/and/more/stuff'
|
|
87
|
+
*
|
|
88
|
+
* // { Pointer } pointer -
|
|
89
|
+
* // { Map<string, string> } recursiveRefMap -
|
|
90
|
+
* // { Map<string, number> = new Map() } arrayMap - optional
|
|
91
|
+
* // { string } -
|
|
92
|
+
*/
|
|
93
|
+
export declare function removeRecursiveReferences(pointer: any, recursiveRefMap: any, arrayMap?: Map<any, any>): any;
|
|
94
|
+
/**
|
|
95
|
+
* 'getInputType' function
|
|
96
|
+
*
|
|
97
|
+
* // schema
|
|
98
|
+
* // { any = null } layoutNode
|
|
99
|
+
* // { string }
|
|
100
|
+
*/
|
|
101
|
+
export declare function getInputType(schema: any, layoutNode?: any): any;
|
|
102
|
+
/**
|
|
103
|
+
* 'checkInlineType' function
|
|
104
|
+
*
|
|
105
|
+
* Checks layout and schema nodes for 'inline: true', and converts
|
|
106
|
+
* 'radios' or 'checkboxes' to 'radios-inline' or 'checkboxes-inline'
|
|
107
|
+
*
|
|
108
|
+
* // { string } controlType -
|
|
109
|
+
* // schema -
|
|
110
|
+
* // { any = null } layoutNode -
|
|
111
|
+
* // { string }
|
|
112
|
+
*/
|
|
113
|
+
export declare function checkInlineType(controlType: any, schema: any, layoutNode?: any): any;
|
|
114
|
+
/**
|
|
115
|
+
* 'isInputRequired' function
|
|
116
|
+
*
|
|
117
|
+
* Checks a JSON Schema to see if an item is required
|
|
118
|
+
*
|
|
119
|
+
* // schema - the schema to check
|
|
120
|
+
* // { string } schemaPointer - the pointer to the item to check
|
|
121
|
+
* // { boolean } - true if the item is required, false if not
|
|
122
|
+
*/
|
|
123
|
+
export declare function isInputRequired(schema: any, schemaPointer: any): any;
|
|
124
|
+
/**
|
|
125
|
+
* 'updateInputOptions' function
|
|
126
|
+
*
|
|
127
|
+
* // layoutNode
|
|
128
|
+
* // schema
|
|
129
|
+
* // jsf
|
|
130
|
+
* // { void }
|
|
131
|
+
*/
|
|
132
|
+
export declare function updateInputOptions(layoutNode: any, schema: any, jsf: any): void;
|
|
133
|
+
/**
|
|
134
|
+
* 'getTitleMapFromOneOf' function
|
|
135
|
+
*
|
|
136
|
+
* // { schema } schema
|
|
137
|
+
* // { boolean = null } flatList
|
|
138
|
+
* // { boolean = false } validateOnly
|
|
139
|
+
* // { validators }
|
|
140
|
+
*/
|
|
141
|
+
export declare function getTitleMapFromOneOf(schema?: any, flatList?: boolean, validateOnly?: boolean): any;
|
|
142
|
+
/**
|
|
143
|
+
* 'getControlValidators' function
|
|
144
|
+
*
|
|
145
|
+
* // schema
|
|
146
|
+
* // { validators }
|
|
147
|
+
*/
|
|
148
|
+
export declare function getControlValidators(schema: any): any;
|
|
149
|
+
/**
|
|
150
|
+
* 'resolveSchemaReferences' function
|
|
151
|
+
*
|
|
152
|
+
* Find all $ref links in schema and save links and referenced schemas in
|
|
153
|
+
* schemaRefLibrary, schemaRecursiveRefMap, and dataRecursiveRefMap
|
|
154
|
+
*
|
|
155
|
+
* // schema
|
|
156
|
+
* // schemaRefLibrary
|
|
157
|
+
* // { Map<string, string> } schemaRecursiveRefMap
|
|
158
|
+
* // { Map<string, string> } dataRecursiveRefMap
|
|
159
|
+
* // { Map<string, number> } arrayMap
|
|
160
|
+
* //
|
|
161
|
+
*/
|
|
162
|
+
export declare function resolveSchemaReferences(schema: any, schemaRefLibrary: any, schemaRecursiveRefMap: any, dataRecursiveRefMap: any, arrayMap: any): any;
|
|
163
|
+
/**
|
|
164
|
+
* 'getSubSchema' function
|
|
165
|
+
*
|
|
166
|
+
* // schema
|
|
167
|
+
* // { Pointer } pointer
|
|
168
|
+
* // { object } schemaRefLibrary
|
|
169
|
+
* // { Map<string, string> } schemaRecursiveRefMap
|
|
170
|
+
* // { string[] = [] } usedPointers
|
|
171
|
+
* //
|
|
172
|
+
*/
|
|
173
|
+
export declare function getSubSchema(schema: any, pointer: any, schemaRefLibrary?: any, schemaRecursiveRefMap?: Map<string, string>, usedPointers?: string[]): any;
|
|
174
|
+
/**
|
|
175
|
+
* 'combineAllOf' function
|
|
176
|
+
*
|
|
177
|
+
* Attempt to convert an allOf schema object into
|
|
178
|
+
* a non-allOf schema object with equivalent rules.
|
|
179
|
+
*
|
|
180
|
+
* // schema - allOf schema object
|
|
181
|
+
* // - converted schema object
|
|
182
|
+
*/
|
|
183
|
+
export declare function combineAllOf(schema: any): any;
|
|
184
|
+
/**
|
|
185
|
+
* 'fixRequiredArrayProperties' function
|
|
186
|
+
*
|
|
187
|
+
* Fixes an incorrectly placed required list inside an array schema, by moving
|
|
188
|
+
* it into items.properties or additionalItems.properties, where it belongs.
|
|
189
|
+
*
|
|
190
|
+
* // schema - allOf schema object
|
|
191
|
+
* // - converted schema object
|
|
192
|
+
*/
|
|
193
|
+
export declare function fixRequiredArrayProperties(schema: any): any;
|