@ebrains/components 1.1.0 → 1.2.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/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/eds-avatar_28.cjs.entry.js +16 -25
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/eds-input-field/eds-input-field.js +121 -109
- package/dist/collection/shared-ui/eds-form/eds-form.js +2 -2
- package/dist/components/components.css +4 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/eds-form.js +2 -2
- package/dist/components/eds-input-field2.js +18 -27
- package/dist/components/p-233d3577.entry.js +1 -0
- package/dist/esm/components.js +1 -1
- package/dist/esm/eds-avatar_28.entry.js +16 -25
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +19 -39
- package/dist/hydrate/index.mjs +19 -39
- package/dist/types/components/eds-input-field/eds-input-field.d.ts +47 -72
- package/dist/types/components.d.ts +68 -80
- package/package.json +1 -1
- package/dist/components/p-e6a0b8c2.entry.js +0 -1
|
@@ -1,103 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
* `EdsInputField` is a versatile form input component that supports various input types and customization options.
|
|
3
|
-
*
|
|
4
|
-
* Key Features:
|
|
5
|
-
* - Supports multiple input types (text, checkbox, radio, select, file) with corresponding behaviors and styling.
|
|
6
|
-
* - Provides options for validation, including required fields and max length.
|
|
7
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
8
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
9
|
-
*
|
|
10
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
11
|
-
*/
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
12
2
|
export declare class EdsInputField {
|
|
13
|
-
/**
|
|
14
|
-
* The `name` attribute for the input element. Required for form submissions.
|
|
15
|
-
*/
|
|
3
|
+
/** The `name` attribute of the input element. Required for form submission. */
|
|
16
4
|
name: string;
|
|
17
|
-
/**
|
|
18
|
-
* The unique `id` for the input element. Defaults to the `name` attribute if not provided.
|
|
19
|
-
*/
|
|
5
|
+
/** The `id` attribute of the internal input element. Defaults to `name` if not set. */
|
|
20
6
|
inputId?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The placeholder text for the input element.
|
|
23
|
-
*/
|
|
7
|
+
/** Placeholder text for the input field. */
|
|
24
8
|
placeholder?: string;
|
|
25
|
-
/**
|
|
26
|
-
* If `true`, disables the input field.
|
|
27
|
-
*/
|
|
9
|
+
/** If `true`, the input is disabled. */
|
|
28
10
|
disabled: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The `onChange` event handler for the input element.
|
|
31
|
-
*/
|
|
32
|
-
onChange?: (event: Event) => void;
|
|
33
|
-
/**
|
|
34
|
-
* The `onInput` event handler for the input element.
|
|
35
|
-
*/
|
|
36
|
-
onInput?: (event: InputEvent) => void;
|
|
37
|
-
/**
|
|
38
|
-
* The type of the input element. Defaults to `text`.
|
|
39
|
-
* Supported types: `text`, `checkbox`, `radio`, `select`, `file`, `search`, etc.
|
|
40
|
-
*/
|
|
41
|
-
type: string;
|
|
42
|
-
/**
|
|
43
|
-
* If `true`, the input field is required.
|
|
44
|
-
*/
|
|
11
|
+
/** If `true`, the input is required. */
|
|
45
12
|
required: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The label text for the input field.
|
|
48
|
-
*/
|
|
13
|
+
/** Label text for the input field. */
|
|
49
14
|
label?: string;
|
|
50
|
-
/**
|
|
51
|
-
* A short hint displayed alongside the input field.
|
|
52
|
-
*/
|
|
15
|
+
/** Optional hint displayed next to the label. */
|
|
53
16
|
hint?: string;
|
|
54
|
-
/**
|
|
55
|
-
* The icon name to be displayed within the input field.
|
|
56
|
-
*/
|
|
17
|
+
/** Optional icon name to display inside the input. */
|
|
57
18
|
icon?: string;
|
|
58
|
-
/**
|
|
59
|
-
* A link object containing the URL and label to display alongside the input field.
|
|
60
|
-
*/
|
|
19
|
+
/** Optional link associated with the input (for help or docs). */
|
|
61
20
|
link?: {
|
|
62
21
|
url: string;
|
|
63
22
|
label: string;
|
|
64
23
|
};
|
|
65
|
-
/**
|
|
66
|
-
* An additional message displayed below the input field.
|
|
67
|
-
*/
|
|
24
|
+
/** Message shown below the input (e.g., additional info or validation message). */
|
|
68
25
|
message?: string;
|
|
69
|
-
/**
|
|
70
|
-
* If `true`, marks the input field as having an error.
|
|
71
|
-
*/
|
|
26
|
+
/** If `true`, renders the input with error styles. */
|
|
72
27
|
error: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* If `true`, the input field is checked (for `checkbox` or `radio` types).
|
|
75
|
-
*/
|
|
28
|
+
/** If `true`, the checkbox/radio is checked. */
|
|
76
29
|
checked?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* The error message displayed when validation fails.
|
|
79
|
-
*/
|
|
30
|
+
/** Error message text shown when validation fails. */
|
|
80
31
|
errorMessage?: string;
|
|
81
|
-
/**
|
|
82
|
-
* The value of the input field.
|
|
83
|
-
*/
|
|
32
|
+
/** The value of the input. Can be `string` or `number`. */
|
|
84
33
|
value?: string | number;
|
|
85
|
-
/**
|
|
86
|
-
* The maximum length of the input value (for `text` types).
|
|
87
|
-
*/
|
|
34
|
+
/** The maximum allowed length for text input. */
|
|
88
35
|
maxLength?: number;
|
|
89
36
|
/**
|
|
90
|
-
* Options for
|
|
37
|
+
* Options for select, checkbox, radio, or range inputs.
|
|
38
|
+
* Can be a JSON string or an array of `{ value, label }` objects.
|
|
91
39
|
*/
|
|
92
40
|
options?: string | {
|
|
93
41
|
value: string | number;
|
|
94
42
|
label: string;
|
|
95
43
|
}[];
|
|
44
|
+
/** Type of the input: e.g., `text`, `checkbox`, `select`, `range`, etc. */
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
* Native `onChange` handler for React/Vue wrappers.
|
|
48
|
+
* Enables use without manually attaching DOM event listeners.
|
|
49
|
+
*/
|
|
50
|
+
onChangeNative?: (event: Event) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Native `onInput` handler for React/Vue wrappers.
|
|
53
|
+
* Enables use without manually attaching DOM event listeners.
|
|
54
|
+
*/
|
|
55
|
+
onInput?: (event: InputEvent) => void;
|
|
96
56
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
57
|
+
* If `true`, emits `edsChange` and `edsInput` events for external usage.
|
|
58
|
+
* Set to `false` to disable value emission entirely.
|
|
99
59
|
*/
|
|
100
60
|
exposeValueEvents: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Emits on every user input (key press, typing, etc.).
|
|
63
|
+
* Use `event.detail.value` to access the new value.
|
|
64
|
+
*/
|
|
65
|
+
edsinput: EventEmitter<{
|
|
66
|
+
value: string;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Emits on blur or change event (e.g., selecting an option, leaving the field).
|
|
70
|
+
* Use `event.detail.value` to access the final value.
|
|
71
|
+
*/
|
|
72
|
+
edschange: EventEmitter<{
|
|
73
|
+
value: string;
|
|
74
|
+
}>;
|
|
75
|
+
/** Reference to the host element. */
|
|
101
76
|
hostEl: HTMLElement;
|
|
102
77
|
private shouldEmitValue;
|
|
103
78
|
private handleNativeInput;
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Tag } from "./components/eds-cards/eds-card-generic/eds-card-generic";
|
|
9
9
|
import { Card } from "./shared-ui/eds-card-section/eds-card-section";
|
|
10
|
+
import { Event, VNode } from "./stencil-public-runtime";
|
|
10
11
|
import { Step } from "./shared-ui/eds-steps/eds-steps";
|
|
11
12
|
import { Step as Step1 } from "./shared-ui/eds-steps-v2/eds-steps-v2";
|
|
12
13
|
import { TableAction } from "./components/eds-table/eds-table";
|
|
13
|
-
import { VNode } from "./stencil-public-runtime";
|
|
14
14
|
export { Tag } from "./components/eds-cards/eds-card-generic/eds-card-generic";
|
|
15
15
|
export { Card } from "./shared-ui/eds-card-section/eds-card-section";
|
|
16
|
+
export { Event, VNode } from "./stencil-public-runtime";
|
|
16
17
|
export { Step } from "./shared-ui/eds-steps/eds-steps";
|
|
17
18
|
export { Step as Step1 } from "./shared-ui/eds-steps-v2/eds-steps-v2";
|
|
18
19
|
export { TableAction } from "./components/eds-table/eds-table";
|
|
19
|
-
export { VNode } from "./stencil-public-runtime";
|
|
20
20
|
export namespace Components {
|
|
21
21
|
interface ColorPrimaryPalette {
|
|
22
22
|
}
|
|
@@ -1078,94 +1078,85 @@ export namespace Components {
|
|
|
1078
1078
|
"type": string;
|
|
1079
1079
|
"value"?: string | number;
|
|
1080
1080
|
}
|
|
1081
|
-
/**
|
|
1082
|
-
* `EdsInputField` is a versatile form input component that supports various input types and customization options.
|
|
1083
|
-
* Key Features:
|
|
1084
|
-
* - Supports multiple input types (text, checkbox, radio, select, file) with corresponding behaviors and styling.
|
|
1085
|
-
* - Provides options for validation, including required fields and max length.
|
|
1086
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
1087
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
1088
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
1089
|
-
*/
|
|
1090
1081
|
interface EdsInputField {
|
|
1091
1082
|
/**
|
|
1092
|
-
* If `true`, the
|
|
1083
|
+
* If `true`, the checkbox/radio is checked.
|
|
1093
1084
|
*/
|
|
1094
1085
|
"checked"?: boolean;
|
|
1095
1086
|
/**
|
|
1096
|
-
* If `true`,
|
|
1087
|
+
* If `true`, the input is disabled.
|
|
1097
1088
|
*/
|
|
1098
1089
|
"disabled": boolean;
|
|
1099
1090
|
/**
|
|
1100
|
-
* If `true`,
|
|
1091
|
+
* If `true`, renders the input with error styles.
|
|
1101
1092
|
*/
|
|
1102
1093
|
"error": boolean;
|
|
1103
1094
|
/**
|
|
1104
|
-
*
|
|
1095
|
+
* Error message text shown when validation fails.
|
|
1105
1096
|
*/
|
|
1106
1097
|
"errorMessage"?: string;
|
|
1107
1098
|
/**
|
|
1108
|
-
*
|
|
1099
|
+
* If `true`, emits `edsChange` and `edsInput` events for external usage. Set to `false` to disable value emission entirely.
|
|
1109
1100
|
*/
|
|
1110
1101
|
"exposeValueEvents": boolean;
|
|
1111
1102
|
/**
|
|
1112
|
-
*
|
|
1103
|
+
* Optional hint displayed next to the label.
|
|
1113
1104
|
*/
|
|
1114
1105
|
"hint"?: string;
|
|
1115
1106
|
/**
|
|
1116
|
-
*
|
|
1107
|
+
* Optional icon name to display inside the input.
|
|
1117
1108
|
*/
|
|
1118
1109
|
"icon"?: string;
|
|
1119
1110
|
/**
|
|
1120
|
-
* The
|
|
1111
|
+
* The `id` attribute of the internal input element. Defaults to `name` if not set.
|
|
1121
1112
|
*/
|
|
1122
1113
|
"inputId"?: string;
|
|
1123
1114
|
/**
|
|
1124
|
-
*
|
|
1115
|
+
* Label text for the input field.
|
|
1125
1116
|
*/
|
|
1126
1117
|
"label"?: string;
|
|
1127
1118
|
/**
|
|
1128
|
-
*
|
|
1119
|
+
* Optional link associated with the input (for help or docs).
|
|
1129
1120
|
*/
|
|
1130
1121
|
"link"?: { url: string; label: string };
|
|
1131
1122
|
/**
|
|
1132
|
-
* The maximum length
|
|
1123
|
+
* The maximum allowed length for text input.
|
|
1133
1124
|
*/
|
|
1134
1125
|
"maxLength"?: number;
|
|
1135
1126
|
/**
|
|
1136
|
-
*
|
|
1127
|
+
* Message shown below the input (e.g., additional info or validation message).
|
|
1137
1128
|
*/
|
|
1138
1129
|
"message"?: string;
|
|
1139
1130
|
/**
|
|
1140
|
-
* The `name` attribute
|
|
1131
|
+
* The `name` attribute of the input element. Required for form submission.
|
|
1141
1132
|
*/
|
|
1142
1133
|
"name": string;
|
|
1143
1134
|
/**
|
|
1144
|
-
*
|
|
1135
|
+
* Native `onChange` handler for React/Vue wrappers. Enables use without manually attaching DOM event listeners.
|
|
1145
1136
|
*/
|
|
1146
|
-
"
|
|
1137
|
+
"onChangeNative"?: (event: Event) => void;
|
|
1147
1138
|
/**
|
|
1148
|
-
*
|
|
1139
|
+
* Native `onInput` handler for React/Vue wrappers. Enables use without manually attaching DOM event listeners.
|
|
1149
1140
|
*/
|
|
1150
1141
|
"onInput"?: (event: InputEvent) => void;
|
|
1151
1142
|
/**
|
|
1152
|
-
* Options for
|
|
1143
|
+
* Options for select, checkbox, radio, or range inputs. Can be a JSON string or an array of `{ value, label }` objects.
|
|
1153
1144
|
*/
|
|
1154
1145
|
"options"?: string | { value: string | number; label: string }[];
|
|
1155
1146
|
/**
|
|
1156
|
-
*
|
|
1147
|
+
* Placeholder text for the input field.
|
|
1157
1148
|
*/
|
|
1158
1149
|
"placeholder"?: string;
|
|
1159
1150
|
/**
|
|
1160
|
-
* If `true`, the input
|
|
1151
|
+
* If `true`, the input is required.
|
|
1161
1152
|
*/
|
|
1162
1153
|
"required": boolean;
|
|
1163
1154
|
/**
|
|
1164
|
-
*
|
|
1155
|
+
* Type of the input: e.g., `text`, `checkbox`, `select`, `range`, etc.
|
|
1165
1156
|
*/
|
|
1166
1157
|
"type": string;
|
|
1167
1158
|
/**
|
|
1168
|
-
* The value of the input
|
|
1159
|
+
* The value of the input. Can be `string` or `number`.
|
|
1169
1160
|
*/
|
|
1170
1161
|
"value"?: string | number;
|
|
1171
1162
|
}
|
|
@@ -1905,6 +1896,10 @@ export interface EdsHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
|
1905
1896
|
detail: T;
|
|
1906
1897
|
target: HTMLEdsHeaderElement;
|
|
1907
1898
|
}
|
|
1899
|
+
export interface EdsInputFieldCustomEvent<T> extends CustomEvent<T> {
|
|
1900
|
+
detail: T;
|
|
1901
|
+
target: HTMLEdsInputFieldElement;
|
|
1902
|
+
}
|
|
1908
1903
|
export interface EdsInputRangeCustomEvent<T> extends CustomEvent<T> {
|
|
1909
1904
|
detail: T;
|
|
1910
1905
|
target: HTMLEdsInputRangeElement;
|
|
@@ -2615,16 +2610,19 @@ declare global {
|
|
|
2615
2610
|
prototype: HTMLEdsInputElement;
|
|
2616
2611
|
new (): HTMLEdsInputElement;
|
|
2617
2612
|
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
* - Provides options for validation, including required fields and max length.
|
|
2623
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
2624
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
2625
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
2626
|
-
*/
|
|
2613
|
+
interface HTMLEdsInputFieldElementEventMap {
|
|
2614
|
+
"edsinput": { value: string };
|
|
2615
|
+
"edschange": { value: string };
|
|
2616
|
+
}
|
|
2627
2617
|
interface HTMLEdsInputFieldElement extends Components.EdsInputField, HTMLStencilElement {
|
|
2618
|
+
addEventListener<K extends keyof HTMLEdsInputFieldElementEventMap>(type: K, listener: (this: HTMLEdsInputFieldElement, ev: EdsInputFieldCustomEvent<HTMLEdsInputFieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2619
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2620
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2621
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2622
|
+
removeEventListener<K extends keyof HTMLEdsInputFieldElementEventMap>(type: K, listener: (this: HTMLEdsInputFieldElement, ev: EdsInputFieldCustomEvent<HTMLEdsInputFieldElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2623
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2624
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2625
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2628
2626
|
}
|
|
2629
2627
|
var HTMLEdsInputFieldElement: {
|
|
2630
2628
|
prototype: HTMLEdsInputFieldElement;
|
|
@@ -4313,94 +4311,93 @@ declare namespace LocalJSX {
|
|
|
4313
4311
|
"type"?: string;
|
|
4314
4312
|
"value"?: string | number;
|
|
4315
4313
|
}
|
|
4316
|
-
/**
|
|
4317
|
-
* `EdsInputField` is a versatile form input component that supports various input types and customization options.
|
|
4318
|
-
* Key Features:
|
|
4319
|
-
* - Supports multiple input types (text, checkbox, radio, select, file) with corresponding behaviors and styling.
|
|
4320
|
-
* - Provides options for validation, including required fields and max length.
|
|
4321
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
4322
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
4323
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
4324
|
-
*/
|
|
4325
4314
|
interface EdsInputField {
|
|
4326
4315
|
/**
|
|
4327
|
-
* If `true`, the
|
|
4316
|
+
* If `true`, the checkbox/radio is checked.
|
|
4328
4317
|
*/
|
|
4329
4318
|
"checked"?: boolean;
|
|
4330
4319
|
/**
|
|
4331
|
-
* If `true`,
|
|
4320
|
+
* If `true`, the input is disabled.
|
|
4332
4321
|
*/
|
|
4333
4322
|
"disabled"?: boolean;
|
|
4334
4323
|
/**
|
|
4335
|
-
* If `true`,
|
|
4324
|
+
* If `true`, renders the input with error styles.
|
|
4336
4325
|
*/
|
|
4337
4326
|
"error"?: boolean;
|
|
4338
4327
|
/**
|
|
4339
|
-
*
|
|
4328
|
+
* Error message text shown when validation fails.
|
|
4340
4329
|
*/
|
|
4341
4330
|
"errorMessage"?: string;
|
|
4342
4331
|
/**
|
|
4343
|
-
*
|
|
4332
|
+
* If `true`, emits `edsChange` and `edsInput` events for external usage. Set to `false` to disable value emission entirely.
|
|
4344
4333
|
*/
|
|
4345
4334
|
"exposeValueEvents"?: boolean;
|
|
4346
4335
|
/**
|
|
4347
|
-
*
|
|
4336
|
+
* Optional hint displayed next to the label.
|
|
4348
4337
|
*/
|
|
4349
4338
|
"hint"?: string;
|
|
4350
4339
|
/**
|
|
4351
|
-
*
|
|
4340
|
+
* Optional icon name to display inside the input.
|
|
4352
4341
|
*/
|
|
4353
4342
|
"icon"?: string;
|
|
4354
4343
|
/**
|
|
4355
|
-
* The
|
|
4344
|
+
* The `id` attribute of the internal input element. Defaults to `name` if not set.
|
|
4356
4345
|
*/
|
|
4357
4346
|
"inputId"?: string;
|
|
4358
4347
|
/**
|
|
4359
|
-
*
|
|
4348
|
+
* Label text for the input field.
|
|
4360
4349
|
*/
|
|
4361
4350
|
"label"?: string;
|
|
4362
4351
|
/**
|
|
4363
|
-
*
|
|
4352
|
+
* Optional link associated with the input (for help or docs).
|
|
4364
4353
|
*/
|
|
4365
4354
|
"link"?: { url: string; label: string };
|
|
4366
4355
|
/**
|
|
4367
|
-
* The maximum length
|
|
4356
|
+
* The maximum allowed length for text input.
|
|
4368
4357
|
*/
|
|
4369
4358
|
"maxLength"?: number;
|
|
4370
4359
|
/**
|
|
4371
|
-
*
|
|
4360
|
+
* Message shown below the input (e.g., additional info or validation message).
|
|
4372
4361
|
*/
|
|
4373
4362
|
"message"?: string;
|
|
4374
4363
|
/**
|
|
4375
|
-
* The `name` attribute
|
|
4364
|
+
* The `name` attribute of the input element. Required for form submission.
|
|
4376
4365
|
*/
|
|
4377
4366
|
"name": string;
|
|
4378
4367
|
/**
|
|
4379
|
-
*
|
|
4368
|
+
* Native `onChange` handler for React/Vue wrappers. Enables use without manually attaching DOM event listeners.
|
|
4369
|
+
*/
|
|
4370
|
+
"onChangeNative"?: (event: Event) => void;
|
|
4371
|
+
/**
|
|
4372
|
+
* Emits on blur or change event (e.g., selecting an option, leaving the field). Use `event.detail.value` to access the final value.
|
|
4373
|
+
*/
|
|
4374
|
+
"onEdschange"?: (event: EdsInputFieldCustomEvent<{ value: string }>) => void;
|
|
4375
|
+
/**
|
|
4376
|
+
* Emits on every user input (key press, typing, etc.). Use `event.detail.value` to access the new value.
|
|
4380
4377
|
*/
|
|
4381
|
-
"
|
|
4378
|
+
"onEdsinput"?: (event: EdsInputFieldCustomEvent<{ value: string }>) => void;
|
|
4382
4379
|
/**
|
|
4383
|
-
*
|
|
4380
|
+
* Native `onInput` handler for React/Vue wrappers. Enables use without manually attaching DOM event listeners.
|
|
4384
4381
|
*/
|
|
4385
4382
|
"onInput"?: (event: InputEvent) => void;
|
|
4386
4383
|
/**
|
|
4387
|
-
* Options for
|
|
4384
|
+
* Options for select, checkbox, radio, or range inputs. Can be a JSON string or an array of `{ value, label }` objects.
|
|
4388
4385
|
*/
|
|
4389
4386
|
"options"?: string | { value: string | number; label: string }[];
|
|
4390
4387
|
/**
|
|
4391
|
-
*
|
|
4388
|
+
* Placeholder text for the input field.
|
|
4392
4389
|
*/
|
|
4393
4390
|
"placeholder"?: string;
|
|
4394
4391
|
/**
|
|
4395
|
-
* If `true`, the input
|
|
4392
|
+
* If `true`, the input is required.
|
|
4396
4393
|
*/
|
|
4397
4394
|
"required"?: boolean;
|
|
4398
4395
|
/**
|
|
4399
|
-
*
|
|
4396
|
+
* Type of the input: e.g., `text`, `checkbox`, `select`, `range`, etc.
|
|
4400
4397
|
*/
|
|
4401
4398
|
"type"?: string;
|
|
4402
4399
|
/**
|
|
4403
|
-
* The value of the input
|
|
4400
|
+
* The value of the input. Can be `string` or `number`.
|
|
4404
4401
|
*/
|
|
4405
4402
|
"value"?: string | number;
|
|
4406
4403
|
}
|
|
@@ -5492,15 +5489,6 @@ declare module "@stencil/core" {
|
|
|
5492
5489
|
*/
|
|
5493
5490
|
"eds-img": LocalJSX.EdsImg & JSXBase.HTMLAttributes<HTMLEdsImgElement>;
|
|
5494
5491
|
"eds-input": LocalJSX.EdsInput & JSXBase.HTMLAttributes<HTMLEdsInputElement>;
|
|
5495
|
-
/**
|
|
5496
|
-
* `EdsInputField` is a versatile form input component that supports various input types and customization options.
|
|
5497
|
-
* Key Features:
|
|
5498
|
-
* - Supports multiple input types (text, checkbox, radio, select, file) with corresponding behaviors and styling.
|
|
5499
|
-
* - Provides options for validation, including required fields and max length.
|
|
5500
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
5501
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
5502
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
5503
|
-
*/
|
|
5504
5492
|
"eds-input-field": LocalJSX.EdsInputField & JSXBase.HTMLAttributes<HTMLEdsInputFieldElement>;
|
|
5505
5493
|
"eds-input-footer": LocalJSX.EdsInputFooter & JSXBase.HTMLAttributes<HTMLEdsInputFooterElement>;
|
|
5506
5494
|
"eds-input-label": LocalJSX.EdsInputLabel & JSXBase.HTMLAttributes<HTMLEdsInputLabelElement>;
|