@epam/ai-dial-ui-kit 0.12.0-dev.32 → 0.12.0-dev.34
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/{JsonEditor-C5c-YV_i.cjs → JsonEditor-BNqb-kWl.cjs} +1 -1
- package/dist/{JsonEditor-CbEDgAiZ.js → JsonEditor-Dtr1SWzB.js} +1 -1
- package/dist/{MarkdownEditor-DiTJQAXc.js → MarkdownEditor-B_HrwgQV.js} +1 -1
- package/dist/{MarkdownEditor-CMsFkeVW.cjs → MarkdownEditor-DjLO_HUp.cjs} +1 -1
- package/dist/components-manifest.json +13 -2
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +1 -1
- package/dist/index-CH7p1rnL.cjs +71 -0
- package/dist/{index-B7pslaXN.js → index-Con4Xt8a.js} +9006 -8971
- package/dist/src/components/SchemaRenderer/context.d.ts +1 -0
- package/dist/src/components/SchemaRenderer/types.d.ts +8 -0
- package/dist/src/components/Select/Select.d.ts +3 -0
- package/package.json +1 -1
- package/dist/index-BpeuFm0G.cjs +0 -71
|
@@ -8,6 +8,7 @@ interface SchemaRendererContextValue {
|
|
|
8
8
|
defaultExpanded?: boolean;
|
|
9
9
|
inputClassName?: string;
|
|
10
10
|
jsonEditorTheme?: EditorThemes;
|
|
11
|
+
acceptableResourceTypes?: Record<string, unknown>;
|
|
11
12
|
renderField?: (path: string[], schema: JsonSchemaDef, defaultElement: React.ReactElement) => React.ReactNode;
|
|
12
13
|
touchedPaths?: ReadonlySet<string>;
|
|
13
14
|
markTouched?: (path: string) => void;
|
|
@@ -47,6 +47,7 @@ export interface JsonSchemaDef {
|
|
|
47
47
|
};
|
|
48
48
|
'dial:meta'?: Record<string, unknown>;
|
|
49
49
|
'dial:resource'?: boolean;
|
|
50
|
+
acceptableResourceTypes?: string[];
|
|
50
51
|
[key: string]: unknown;
|
|
51
52
|
}
|
|
52
53
|
export interface JsonSchema extends JsonSchemaDef {
|
|
@@ -100,6 +101,13 @@ export interface DialSchemaRendererProps {
|
|
|
100
101
|
* schema's `properties`. Defaults to `EditorThemes.dark`.
|
|
101
102
|
*/
|
|
102
103
|
jsonEditorTheme?: EditorThemes;
|
|
104
|
+
/**
|
|
105
|
+
* Live resource options for schema properties flagged with `dial:resource: true`.
|
|
106
|
+
* Keyed by the resource type name referenced in a property's `acceptableResourceTypes`
|
|
107
|
+
* array; each value provides the selectable entries for that resource type (a string
|
|
108
|
+
* array for string-typed properties).
|
|
109
|
+
*/
|
|
110
|
+
acceptableResourceTypes?: Record<string, unknown>;
|
|
103
111
|
onChange?: (value: Record<string, unknown>) => void;
|
|
104
112
|
onPropertyChange?: (path: string, value: unknown) => void;
|
|
105
113
|
onDefaultValues?: (value: Record<string, unknown>) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode, MouseEvent, Ref } from 'react';
|
|
2
2
|
import { SelectOption } from '../../models/select';
|
|
3
3
|
import { SelectSize, SelectVariant } from '../../types/select';
|
|
4
|
+
import { ElementSize } from '../../types/size';
|
|
4
5
|
export interface DialSelectProps {
|
|
5
6
|
options: SelectOption[];
|
|
6
7
|
multiple?: boolean;
|
|
@@ -13,6 +14,7 @@ export interface DialSelectProps {
|
|
|
13
14
|
defaultValue?: string | string[];
|
|
14
15
|
placeholder?: string;
|
|
15
16
|
searchable?: boolean;
|
|
17
|
+
searchSize?: ElementSize;
|
|
16
18
|
searchPlaceholder?: string;
|
|
17
19
|
selectAll?: boolean;
|
|
18
20
|
selectAllLabel?: string;
|
|
@@ -71,6 +73,7 @@ export interface DialSelectProps {
|
|
|
71
73
|
* @param [defaultValue] - Uncontrolled initial selected value(s).
|
|
72
74
|
* @param [placeholder="Select..."] - Placeholder text when no selection is made.
|
|
73
75
|
* @param [searchable=false] - Show a search field in the overlay header.
|
|
76
|
+
* @param [searchSize=ElementSize.Standard] - Size of the overlay search input when `searchable` is enabled.
|
|
74
77
|
* @param [searchPlaceholder] - Placeholder for the search input (overlay/inline).
|
|
75
78
|
* @param [selectAll=false] - Show a "Select All" checkbox in multiple mode.
|
|
76
79
|
* @param [selectAllLabel="Select all"] - Label for the "Select All" checkbox.
|