@ng-formworks/core 19.6.3 → 20.6.3
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/README.md +2 -1
- package/fesm2022/ng-formworks-core.mjs +209 -209
- package/fesm2022/ng-formworks-core.mjs.map +1 -1
- package/index.d.ts +2772 -3
- package/package.json +11 -6
- package/lib/framework-library/framework-library.service.d.ts +0 -53
- package/lib/framework-library/framework.d.ts +0 -13
- package/lib/framework-library/no-framework.component.d.ts +0 -8
- package/lib/framework-library/no-framework.module.d.ts +0 -9
- package/lib/framework-library/no.framework.d.ts +0 -10
- package/lib/json-schema-form.component.d.ts +0 -225
- package/lib/json-schema-form.module.d.ts +0 -11
- package/lib/json-schema-form.service.d.ts +0 -150
- package/lib/locale/de-validation-messages.d.ts +0 -1
- package/lib/locale/en-validation-messages.d.ts +0 -1
- package/lib/locale/es-validation-messages.d.ts +0 -1
- package/lib/locale/fr-validation-messages.d.ts +0 -1
- package/lib/locale/index.d.ts +0 -7
- package/lib/locale/it-validation-messages.d.ts +0 -1
- package/lib/locale/pt-validation-messages.d.ts +0 -1
- package/lib/locale/zh-validation-messages.d.ts +0 -1
- package/lib/shared/convert-schema-to-draft6.function.d.ts +0 -21
- package/lib/shared/form-group.functions.d.ts +0 -128
- package/lib/shared/format-regex.constants.d.ts +0 -20
- package/lib/shared/index.d.ts +0 -9
- package/lib/shared/json-schema.functions.d.ts +0 -214
- package/lib/shared/json.validators.d.ts +0 -441
- package/lib/shared/jsonpointer.functions.d.ts +0 -416
- package/lib/shared/layout.functions.d.ts +0 -83
- package/lib/shared/merge-schemas.function.d.ts +0 -19
- package/lib/shared/utility.functions.d.ts +0 -180
- package/lib/shared/validator.functions.d.ts +0 -364
- package/lib/widget-library/add-reference.component.d.ts +0 -18
- package/lib/widget-library/button.component.d.ts +0 -20
- package/lib/widget-library/checkbox.component.d.ts +0 -23
- package/lib/widget-library/checkboxes.component.d.ts +0 -24
- package/lib/widget-library/element-attribute.directive.d.ts +0 -13
- package/lib/widget-library/file.component.d.ts +0 -20
- package/lib/widget-library/hidden.component.d.ts +0 -18
- package/lib/widget-library/index.d.ts +0 -29
- package/lib/widget-library/input.component.d.ts +0 -22
- package/lib/widget-library/message.component.d.ts +0 -13
- package/lib/widget-library/none.component.d.ts +0 -8
- package/lib/widget-library/number.component.d.ts +0 -27
- package/lib/widget-library/one-of.component.d.ts +0 -21
- package/lib/widget-library/orderable.directive.d.ts +0 -41
- package/lib/widget-library/radios.component.d.ts +0 -22
- package/lib/widget-library/root.component.d.ts +0 -23
- package/lib/widget-library/section.component.d.ts +0 -17
- package/lib/widget-library/select-framework.component.d.ts +0 -15
- package/lib/widget-library/select-widget.component.d.ts +0 -15
- package/lib/widget-library/select.component.d.ts +0 -25
- package/lib/widget-library/selectcheckbox.component.d.ts +0 -55
- package/lib/widget-library/submit.component.d.ts +0 -22
- package/lib/widget-library/tab.component.d.ts +0 -12
- package/lib/widget-library/tabs.component.d.ts +0 -18
- package/lib/widget-library/template.component.d.ts +0 -15
- package/lib/widget-library/textarea.component.d.ts +0 -20
- package/lib/widget-library/widget-library.module.d.ts +0 -34
- package/lib/widget-library/widget-library.service.d.ts +0 -22
- package/public_api.d.ts +0 -9
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { Pointer } from './jsonpointer.functions';
|
|
3
|
-
/**
|
|
4
|
-
* path2ControlKey takes a datapointer path like /some/pointer/path
|
|
5
|
-
* and returns something like $some$pointer$path
|
|
6
|
-
* used mainly to convert paths so it can be used as keys in FormGroups
|
|
7
|
-
* fot ITE scenarios
|
|
8
|
-
* @param path
|
|
9
|
-
* @returns string
|
|
10
|
-
*/
|
|
11
|
-
export declare function path2ControlKey(path: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* FormGroup function library:
|
|
14
|
-
*
|
|
15
|
-
* buildFormGroupTemplate: Builds a FormGroupTemplate from schema
|
|
16
|
-
*
|
|
17
|
-
* buildFormGroup: Builds an Angular FormGroup from a FormGroupTemplate
|
|
18
|
-
*
|
|
19
|
-
* mergeValues:
|
|
20
|
-
*
|
|
21
|
-
* setRequiredFields:
|
|
22
|
-
*
|
|
23
|
-
* formatFormData:
|
|
24
|
-
*
|
|
25
|
-
* getControl:
|
|
26
|
-
*
|
|
27
|
-
* ---- TODO: ----
|
|
28
|
-
* TODO: add buildFormGroupTemplateFromLayout function
|
|
29
|
-
* buildFormGroupTemplateFromLayout: Builds a FormGroupTemplate from a form layout
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* 'buildFormGroupTemplate' function
|
|
33
|
-
*
|
|
34
|
-
* Builds a template for an Angular FormGroup from a JSON Schema.
|
|
35
|
-
*
|
|
36
|
-
* TODO: add support for pattern properties
|
|
37
|
-
* https://spacetelescope.github.io/understanding-json-schema/reference/object.html
|
|
38
|
-
*
|
|
39
|
-
* // {any} jsf -
|
|
40
|
-
* // {any = null} nodeValue -
|
|
41
|
-
* // {boolean = true} mapArrays -
|
|
42
|
-
* // {string = ''} schemaPointer -
|
|
43
|
-
* // {string = ''} dataPointer -
|
|
44
|
-
* // {any = ''} templatePointer -
|
|
45
|
-
* // {any} -
|
|
46
|
-
*/
|
|
47
|
-
export declare function buildFormGroupTemplate(jsf: any, nodeValue?: any, setValues?: boolean, schemaPointer?: string, dataPointer?: string, templatePointer?: string): {
|
|
48
|
-
controlType: string;
|
|
49
|
-
controls: any;
|
|
50
|
-
validators: any;
|
|
51
|
-
schemaPointer: string;
|
|
52
|
-
value?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
controlType: string;
|
|
55
|
-
value: {
|
|
56
|
-
value: any;
|
|
57
|
-
disabled: any;
|
|
58
|
-
};
|
|
59
|
-
validators: any;
|
|
60
|
-
schemaPointer: string;
|
|
61
|
-
controls?: undefined;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 'buildFormGroup' function
|
|
65
|
-
*
|
|
66
|
-
* // {any} template -
|
|
67
|
-
* // {AbstractControl}
|
|
68
|
-
*/
|
|
69
|
-
export declare function buildFormGroup(template: any): AbstractControl;
|
|
70
|
-
/**
|
|
71
|
-
* 'mergeValues' function
|
|
72
|
-
*
|
|
73
|
-
* // {any[]} ...valuesToMerge - Multiple values to merge
|
|
74
|
-
* // {any} - Merged values
|
|
75
|
-
*/
|
|
76
|
-
export declare function mergeValues(...valuesToMerge: any[]): any;
|
|
77
|
-
/**
|
|
78
|
-
* 'setRequiredFields' function
|
|
79
|
-
*
|
|
80
|
-
* // {schema} schema - JSON Schema
|
|
81
|
-
* // {object} formControlTemplate - Form Control Template object
|
|
82
|
-
* // {boolean} - true if any fields have been set to required, false if not
|
|
83
|
-
*/
|
|
84
|
-
export declare function setRequiredFields(schema: any, formControlTemplate: any): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* 'formatFormData' function
|
|
87
|
-
*
|
|
88
|
-
* // {any} formData - Angular FormGroup data object
|
|
89
|
-
* // {Map<string, any>} dataMap -
|
|
90
|
-
* // {Map<string, string>} recursiveRefMap -
|
|
91
|
-
* // {Map<string, number>} arrayMap -
|
|
92
|
-
* // {boolean = false} fixErrors - if TRUE, tries to fix data
|
|
93
|
-
* // {any} - formatted data object
|
|
94
|
-
*/
|
|
95
|
-
export declare function formatFormData(formData: any, dataMap: Map<string, any>, recursiveRefMap: Map<string, string>, arrayMap: Map<string, number>, returnEmptyFields?: boolean, fixErrors?: boolean): any;
|
|
96
|
-
/**
|
|
97
|
-
* 'getControl' function
|
|
98
|
-
*
|
|
99
|
-
* Uses a JSON Pointer for a data object to retrieve a control from
|
|
100
|
-
* an Angular formGroup or formGroup template. (Note: though a formGroup
|
|
101
|
-
* template is much simpler, its basic structure is idential to a formGroup).
|
|
102
|
-
*
|
|
103
|
-
* If the optional third parameter 'returnGroup' is set to TRUE, the group
|
|
104
|
-
* containing the control is returned, rather than the control itself.
|
|
105
|
-
*
|
|
106
|
-
* // {FormGroup} formGroup - Angular FormGroup to get value from
|
|
107
|
-
* // {Pointer} dataPointer - JSON Pointer (string or array)
|
|
108
|
-
* // {boolean = false} returnGroup - If true, return group containing control
|
|
109
|
-
* // {group} - Located value (or null, if no control found)
|
|
110
|
-
* // {string} schemaPointer - string used for conditional controls coming from schema if/then/else
|
|
111
|
-
*/
|
|
112
|
-
export declare function getControl(formGroup: any, dataPointer: Pointer, returnGroup?: boolean, schemaPointer?: string): any;
|
|
113
|
-
/**
|
|
114
|
-
* 'setControl' function
|
|
115
|
-
*
|
|
116
|
-
* Uses a JSON Pointer for a data object to retrieve a control from
|
|
117
|
-
* an Angular formGroup or formGroup template. (Note: though a formGroup
|
|
118
|
-
* template is much simpler, its basic structure is idential to a formGroup).
|
|
119
|
-
*
|
|
120
|
-
* If the optional third parameter 'returnGroup' is set to TRUE, the group
|
|
121
|
-
* containing the control is returned, rather than the control itself.
|
|
122
|
-
*
|
|
123
|
-
* // {FormGroup} formGroup - Angular FormGroup to get value from
|
|
124
|
-
* // {Pointer} dataPointer - JSON Pointer (string or array)
|
|
125
|
-
* // {AbstractControl} control - control used to replace existing or add
|
|
126
|
-
* // {targetKey} - optional string used as the new key-not implemented as yet
|
|
127
|
-
*/
|
|
128
|
-
export declare function setControl(formGroup: any, dataPointer: Pointer, control: AbstractControl, targetKey?: string): any;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const jsonSchemaFormatTests: {
|
|
2
|
-
date: RegExp;
|
|
3
|
-
time: RegExp;
|
|
4
|
-
'date-time': RegExp;
|
|
5
|
-
email: RegExp;
|
|
6
|
-
hostname: RegExp;
|
|
7
|
-
ipv4: RegExp;
|
|
8
|
-
ipv6: RegExp;
|
|
9
|
-
uri: RegExp;
|
|
10
|
-
'uri-reference': RegExp;
|
|
11
|
-
'uri-template': RegExp;
|
|
12
|
-
url: RegExp;
|
|
13
|
-
uuid: RegExp;
|
|
14
|
-
color: RegExp;
|
|
15
|
-
'json-pointer': RegExp;
|
|
16
|
-
'relative-json-pointer': RegExp;
|
|
17
|
-
duration: RegExp;
|
|
18
|
-
regex: (str: any) => boolean;
|
|
19
|
-
};
|
|
20
|
-
export type JsonSchemaFormatNames = 'date' | 'time' | 'date-time' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'uri-template' | 'url' | 'uuid' | 'color' | 'json-pointer' | 'relative-json-pointer' | 'duration' | 'regex';
|
package/lib/shared/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { _executeAsyncValidators, _executeValidators, _mergeErrors, _mergeObjects, _toPromise, AsyncIValidatorFn, getType, hasValue, inArray, isArray, isBoolean, isDate, isDefined, isEmpty, isFunction, isInteger, isMap, isNumber, isObject, isObservable, isPrimitive, isPromise, isSet, isString, isType, IValidatorFn, JavaScriptPrimitiveType, JavaScriptType, PlainObject, PrimitiveValue, SchemaPrimitiveType, SchemaType, toJavaScriptType, toObservable, toSchemaType, xor } from './validator.functions';
|
|
2
|
-
export { addClasses, commonItems, copy, fixTitle, forEach, forEachCopy, hasNonNullValue, hasOwn, mergeFilteredObject, toTitleCase, uniqueItems } from './utility.functions';
|
|
3
|
-
export { JsonPointer, Pointer } from './jsonpointer.functions';
|
|
4
|
-
export { JsonValidators } from './json.validators';
|
|
5
|
-
export { buildSchemaFromData, buildSchemaFromLayout, checkInlineType, combineAllOf, fixRequiredArrayProperties, getControlValidators, getFromSchema, getInputType, getSubSchema, getTitleMapFromOneOf, isInputRequired, removeRecursiveReferences, resolveSchemaReferences, updateInputOptions } from './json-schema.functions';
|
|
6
|
-
export { convertSchemaToDraft6 } from './convert-schema-to-draft6.function';
|
|
7
|
-
export { mergeSchemas } from './merge-schemas.function';
|
|
8
|
-
export { buildFormGroup, buildFormGroupTemplate, formatFormData, getControl, path2ControlKey, setControl, setRequiredFields } from './form-group.functions';
|
|
9
|
-
export { buildLayout, buildLayoutFromSchema, buildTitleMap, getLayoutNode, mapLayout } from './layout.functions';
|
|
@@ -1,214 +0,0 @@
|
|
|
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
|
-
export declare function omitKeys<T extends object>(objects: T[], keysToOmit: (keyof T)[]): Omit<T, keyof T>[];
|
|
175
|
-
export declare function combineAllOfITE(schema: any): void;
|
|
176
|
-
/**
|
|
177
|
-
* 'combineAllOf' function
|
|
178
|
-
*
|
|
179
|
-
* Attempt to convert an allOf schema object into
|
|
180
|
-
* a non-allOf schema object with equivalent rules.
|
|
181
|
-
*
|
|
182
|
-
* // schema - allOf schema object
|
|
183
|
-
* // - converted schema object
|
|
184
|
-
*/
|
|
185
|
-
export declare function combineAllOf(schema: any): any;
|
|
186
|
-
/**
|
|
187
|
-
* 'fixRequiredArrayProperties' function
|
|
188
|
-
*
|
|
189
|
-
* Fixes an incorrectly placed required list inside an array schema, by moving
|
|
190
|
-
* it into items.properties or additionalItems.properties, where it belongs.
|
|
191
|
-
*
|
|
192
|
-
* // schema - allOf schema object
|
|
193
|
-
* // - converted schema object
|
|
194
|
-
*/
|
|
195
|
-
export declare function fixRequiredArrayProperties(schema: any): any;
|
|
196
|
-
/**
|
|
197
|
-
* 'convertJSONSchemaIfToCondition' function
|
|
198
|
-
* converts something like
|
|
199
|
-
* "if": {
|
|
200
|
-
* "properties": {
|
|
201
|
-
* "animal": {
|
|
202
|
-
* "const": "Cat"
|
|
203
|
-
* },
|
|
204
|
-
* "habitat":{
|
|
205
|
-
* "const": "City"
|
|
206
|
-
* }
|
|
207
|
-
* }
|
|
208
|
-
* }
|
|
209
|
-
* to "model.animal=='Cat' && habitat=='City" contion
|
|
210
|
-
* @param schema:any
|
|
211
|
-
* @param negate:boolean=false
|
|
212
|
-
* @returns
|
|
213
|
-
*/
|
|
214
|
-
export declare function convertJSONSchemaIfToCondition(schema: any, layoutNode: any, negate?: boolean): {};
|