@epam/ai-dial-ui-kit 0.15.0-dev.23 → 0.15.0-dev.24
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/CHANGELOG.md +1 -0
- package/dist/components/SchemaRenderer/components/SchemaField.js +19 -19
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +18 -18
- package/dist/components/SchemaRenderer/utils.js +21 -19
- package/dist/components-manifest.json +2 -2
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/src/components/SchemaRenderer/utils.d.ts +5 -0
- package/package.json +1 -1
|
@@ -4,6 +4,11 @@ export declare function sortByPropertyOrder(entries: [string, JsonSchemaDef][]):
|
|
|
4
4
|
export declare function isMissingRequiredValue(value: unknown): boolean;
|
|
5
5
|
export declare function isObjectType(schema: JsonSchemaDef): boolean;
|
|
6
6
|
export declare function toFieldLabel(key: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Builds the "required" error message for a field. The label is quoted so a
|
|
9
|
+
* long title stays visually separate from the "is required" suffix.
|
|
10
|
+
*/
|
|
11
|
+
export declare const toRequiredMessage: (label: string) => string;
|
|
7
12
|
export declare function getOptionLabel(schema: JsonSchemaDef, rootSchema: JsonSchema): string;
|
|
8
13
|
export declare function extractDefaults(schema: JsonSchemaDef, rootSchema: JsonSchema, depth?: number): unknown;
|
|
9
14
|
export declare function validateRequired(value: unknown, schema: JsonSchemaDef, rootSchema: JsonSchema, path?: string, depth?: number): ValidationError[];
|