@limetech/lime-elements 36.2.0-next.3 → 36.2.0-next.4
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/dist/cjs/limel-form.cjs.entry.js +15 -1
- package/dist/collection/components/form/fields/schema-field.js +15 -1
- package/dist/esm/limel-form.entry.js +15 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-f33cfcb8.entry.js → p-0db5c143.entry.js} +1 -1
- package/dist/types/components/form/fields/schema-field.d.ts +11 -0
- package/dist/types/components/form/form.types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -27,4 +27,15 @@ export declare class SchemaField extends React.Component<FieldProps> {
|
|
|
27
27
|
private buildCustomComponentProps;
|
|
28
28
|
private renderCustomComponent;
|
|
29
29
|
render(): React.FunctionComponentElement<any> | React.CElement<import("@rjsf/core/lib/components/fields/SchemaField").SchemaFieldProps<any>, JSONSchemaField>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the path to the current property within the schema
|
|
32
|
+
*
|
|
33
|
+
* @param {string} schemaId the id of the schema
|
|
34
|
+
* @returns {string[]} an array with the schema path for the current property
|
|
35
|
+
* @example
|
|
36
|
+
* const schemaId = 'root_sections_0_controls_0_name';
|
|
37
|
+
* const schemaPath = getSchemaPath(schemaId);
|
|
38
|
+
* // => ['sections', '0', 'controls', '0', 'name']
|
|
39
|
+
*/
|
|
40
|
+
private getSchemaPath;
|
|
30
41
|
}
|
|
@@ -94,6 +94,10 @@ export interface FormInfo {
|
|
|
94
94
|
* The name of the current property
|
|
95
95
|
*/
|
|
96
96
|
name?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Path to the property within the schema
|
|
99
|
+
*/
|
|
100
|
+
schemaPath?: string[];
|
|
97
101
|
}
|
|
98
102
|
/**
|
|
99
103
|
* Lime elements specific options that can be specified under the `lime` key in
|