@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,50 +1,27 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* `EdsInputField` is a versatile form input component that supports various input types and customization options.
|
|
4
|
-
*
|
|
5
|
-
* Key Features:
|
|
6
|
-
* - Supports multiple input types (text, checkbox, radio, select, file) with corresponding behaviors and styling.
|
|
7
|
-
* - Provides options for validation, including required fields and max length.
|
|
8
|
-
* - Allows custom messages and error handling with `message` and `errorMessage` props.
|
|
9
|
-
* - Offers additional features like icons, labels, links, and hints to enhance user experience.
|
|
10
|
-
*
|
|
11
|
-
* This component provides a structured and configurable form input with additional features to suit various input requirements.
|
|
12
|
-
*/
|
|
13
2
|
export class EdsInputField {
|
|
14
3
|
constructor() {
|
|
15
4
|
this.handleNativeInput = (ev) => {
|
|
16
5
|
var _a;
|
|
17
|
-
// 1) Call any passed-in handler
|
|
18
6
|
(_a = this.onInput) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
19
7
|
if (this.shouldEmitValue()) {
|
|
20
|
-
// 2) Re-emit on host so Vue/others can catch it
|
|
21
8
|
const newValue = ev.target.value;
|
|
22
|
-
this.
|
|
23
|
-
detail: { value: newValue },
|
|
24
|
-
bubbles: false,
|
|
25
|
-
composed: true
|
|
26
|
-
}));
|
|
9
|
+
this.edsinput.emit({ value: newValue });
|
|
27
10
|
}
|
|
28
11
|
};
|
|
29
12
|
this.handleNativeChange = (ev) => {
|
|
30
13
|
var _a;
|
|
31
|
-
(_a = this.
|
|
14
|
+
(_a = this.onChangeNative) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
32
15
|
if (this.shouldEmitValue()) {
|
|
33
16
|
const target = ev.target;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
bubbles: false,
|
|
37
|
-
composed: true
|
|
38
|
-
}));
|
|
17
|
+
const value = target.value;
|
|
18
|
+
this.edschange.emit({ value });
|
|
39
19
|
}
|
|
40
20
|
};
|
|
41
21
|
this.name = undefined;
|
|
42
22
|
this.inputId = undefined;
|
|
43
23
|
this.placeholder = undefined;
|
|
44
24
|
this.disabled = false;
|
|
45
|
-
this.onChange = undefined;
|
|
46
|
-
this.onInput = undefined;
|
|
47
|
-
this.type = 'text';
|
|
48
25
|
this.required = false;
|
|
49
26
|
this.label = undefined;
|
|
50
27
|
this.hint = undefined;
|
|
@@ -57,22 +34,22 @@ export class EdsInputField {
|
|
|
57
34
|
this.value = undefined;
|
|
58
35
|
this.maxLength = undefined;
|
|
59
36
|
this.options = undefined;
|
|
37
|
+
this.type = 'text';
|
|
38
|
+
this.onChangeNative = undefined;
|
|
39
|
+
this.onInput = undefined;
|
|
60
40
|
this.exposeValueEvents = true;
|
|
61
41
|
}
|
|
62
42
|
shouldEmitValue() {
|
|
63
|
-
// Never emit for password fields, and respect the exposeValueEvents prop
|
|
64
43
|
return this.exposeValueEvents && this.type !== 'password';
|
|
65
44
|
}
|
|
66
45
|
get parsedOptions() {
|
|
67
|
-
if (Array.isArray(this.options))
|
|
46
|
+
if (Array.isArray(this.options))
|
|
68
47
|
return this.options;
|
|
69
|
-
|
|
70
|
-
else if (typeof this.options === 'string') {
|
|
48
|
+
if (typeof this.options === 'string') {
|
|
71
49
|
try {
|
|
72
50
|
return JSON.parse(this.options);
|
|
73
51
|
}
|
|
74
52
|
catch (_a) {
|
|
75
|
-
// eslint-disable-next-line
|
|
76
53
|
console.warn('Invalid options format');
|
|
77
54
|
return [];
|
|
78
55
|
}
|
|
@@ -94,7 +71,8 @@ export class EdsInputField {
|
|
|
94
71
|
icon: this.icon,
|
|
95
72
|
checked: this.checked
|
|
96
73
|
};
|
|
97
|
-
return (h("div", { key: '
|
|
74
|
+
return (h("div", { key: '2ff82dedd17922c5cb72fc30b7f616c7fafa7b07', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (h("fieldset", { class: "space-y-4 mt-8" }, h("div", { class: "flex justify-between" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (h("div", { class: "flex items-center gap-x-2", key: option.value }, h("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' &&
|
|
75
|
+
this.value.split(',').includes(String(option.value)) })), h("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (h("div", { class: "flex items-center gap-x-8" }, h("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' })), this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (h("div", null, h("div", { class: "flex justify-between" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
98
76
|
var _a, _b, _c;
|
|
99
77
|
const rangeProps = {
|
|
100
78
|
name: inputOpts.name,
|
|
@@ -107,7 +85,7 @@ export class EdsInputField {
|
|
|
107
85
|
const opt = this.parsedOptions;
|
|
108
86
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
109
87
|
return (h("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
|
|
110
|
-
})()) : (h("eds-input", Object.assign({}, inputOpts))))), h("eds-input-footer", { key: '
|
|
88
|
+
})()) : (h("eds-input", Object.assign({}, inputOpts))))), h("eds-input-footer", { key: '4b8513dcd713d56953934b158ba1b9182e1497a8', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
111
89
|
}
|
|
112
90
|
static get is() { return "eds-input-field"; }
|
|
113
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,7 +113,7 @@ export class EdsInputField {
|
|
|
135
113
|
"optional": false,
|
|
136
114
|
"docs": {
|
|
137
115
|
"tags": [],
|
|
138
|
-
"text": "The `name` attribute
|
|
116
|
+
"text": "The `name` attribute of the input element. Required for form submission."
|
|
139
117
|
},
|
|
140
118
|
"attribute": "name",
|
|
141
119
|
"reflect": false
|
|
@@ -152,7 +130,7 @@ export class EdsInputField {
|
|
|
152
130
|
"optional": true,
|
|
153
131
|
"docs": {
|
|
154
132
|
"tags": [],
|
|
155
|
-
"text": "The
|
|
133
|
+
"text": "The `id` attribute of the internal input element. Defaults to `name` if not set."
|
|
156
134
|
},
|
|
157
135
|
"attribute": "input-id",
|
|
158
136
|
"reflect": false
|
|
@@ -169,7 +147,7 @@ export class EdsInputField {
|
|
|
169
147
|
"optional": true,
|
|
170
148
|
"docs": {
|
|
171
149
|
"tags": [],
|
|
172
|
-
"text": "
|
|
150
|
+
"text": "Placeholder text for the input field."
|
|
173
151
|
},
|
|
174
152
|
"attribute": "placeholder",
|
|
175
153
|
"reflect": false
|
|
@@ -186,70 +164,12 @@ export class EdsInputField {
|
|
|
186
164
|
"optional": false,
|
|
187
165
|
"docs": {
|
|
188
166
|
"tags": [],
|
|
189
|
-
"text": "If `true`,
|
|
167
|
+
"text": "If `true`, the input is disabled."
|
|
190
168
|
},
|
|
191
169
|
"attribute": "disabled",
|
|
192
170
|
"reflect": false,
|
|
193
171
|
"defaultValue": "false"
|
|
194
172
|
},
|
|
195
|
-
"onChange": {
|
|
196
|
-
"type": "unknown",
|
|
197
|
-
"mutable": false,
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "(event: Event) => void",
|
|
200
|
-
"resolved": "(event: Event) => void",
|
|
201
|
-
"references": {
|
|
202
|
-
"Event": {
|
|
203
|
-
"location": "global",
|
|
204
|
-
"id": "global::Event"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
"required": false,
|
|
209
|
-
"optional": true,
|
|
210
|
-
"docs": {
|
|
211
|
-
"tags": [],
|
|
212
|
-
"text": "The `onChange` event handler for the input element."
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"onInput": {
|
|
216
|
-
"type": "unknown",
|
|
217
|
-
"mutable": false,
|
|
218
|
-
"complexType": {
|
|
219
|
-
"original": "(event: InputEvent) => void",
|
|
220
|
-
"resolved": "(event: InputEvent) => void",
|
|
221
|
-
"references": {
|
|
222
|
-
"InputEvent": {
|
|
223
|
-
"location": "global",
|
|
224
|
-
"id": "global::InputEvent"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"required": false,
|
|
229
|
-
"optional": true,
|
|
230
|
-
"docs": {
|
|
231
|
-
"tags": [],
|
|
232
|
-
"text": "The `onInput` event handler for the input element."
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"type": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"mutable": false,
|
|
238
|
-
"complexType": {
|
|
239
|
-
"original": "string",
|
|
240
|
-
"resolved": "string",
|
|
241
|
-
"references": {}
|
|
242
|
-
},
|
|
243
|
-
"required": false,
|
|
244
|
-
"optional": false,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": "The type of the input element. Defaults to `text`.\nSupported types: `text`, `checkbox`, `radio`, `select`, `file`, `search`, etc."
|
|
248
|
-
},
|
|
249
|
-
"attribute": "type",
|
|
250
|
-
"reflect": false,
|
|
251
|
-
"defaultValue": "'text'"
|
|
252
|
-
},
|
|
253
173
|
"required": {
|
|
254
174
|
"type": "boolean",
|
|
255
175
|
"mutable": false,
|
|
@@ -262,7 +182,7 @@ export class EdsInputField {
|
|
|
262
182
|
"optional": false,
|
|
263
183
|
"docs": {
|
|
264
184
|
"tags": [],
|
|
265
|
-
"text": "If `true`, the input
|
|
185
|
+
"text": "If `true`, the input is required."
|
|
266
186
|
},
|
|
267
187
|
"attribute": "required",
|
|
268
188
|
"reflect": false,
|
|
@@ -280,7 +200,7 @@ export class EdsInputField {
|
|
|
280
200
|
"optional": true,
|
|
281
201
|
"docs": {
|
|
282
202
|
"tags": [],
|
|
283
|
-
"text": "
|
|
203
|
+
"text": "Label text for the input field."
|
|
284
204
|
},
|
|
285
205
|
"attribute": "label",
|
|
286
206
|
"reflect": false
|
|
@@ -297,7 +217,7 @@ export class EdsInputField {
|
|
|
297
217
|
"optional": true,
|
|
298
218
|
"docs": {
|
|
299
219
|
"tags": [],
|
|
300
|
-
"text": "
|
|
220
|
+
"text": "Optional hint displayed next to the label."
|
|
301
221
|
},
|
|
302
222
|
"attribute": "hint",
|
|
303
223
|
"reflect": false
|
|
@@ -314,7 +234,7 @@ export class EdsInputField {
|
|
|
314
234
|
"optional": true,
|
|
315
235
|
"docs": {
|
|
316
236
|
"tags": [],
|
|
317
|
-
"text": "
|
|
237
|
+
"text": "Optional icon name to display inside the input."
|
|
318
238
|
},
|
|
319
239
|
"attribute": "icon",
|
|
320
240
|
"reflect": false
|
|
@@ -331,7 +251,7 @@ export class EdsInputField {
|
|
|
331
251
|
"optional": true,
|
|
332
252
|
"docs": {
|
|
333
253
|
"tags": [],
|
|
334
|
-
"text": "
|
|
254
|
+
"text": "Optional link associated with the input (for help or docs)."
|
|
335
255
|
}
|
|
336
256
|
},
|
|
337
257
|
"message": {
|
|
@@ -346,7 +266,7 @@ export class EdsInputField {
|
|
|
346
266
|
"optional": true,
|
|
347
267
|
"docs": {
|
|
348
268
|
"tags": [],
|
|
349
|
-
"text": "
|
|
269
|
+
"text": "Message shown below the input (e.g., additional info or validation message)."
|
|
350
270
|
},
|
|
351
271
|
"attribute": "message",
|
|
352
272
|
"reflect": false
|
|
@@ -363,7 +283,7 @@ export class EdsInputField {
|
|
|
363
283
|
"optional": false,
|
|
364
284
|
"docs": {
|
|
365
285
|
"tags": [],
|
|
366
|
-
"text": "If `true`,
|
|
286
|
+
"text": "If `true`, renders the input with error styles."
|
|
367
287
|
},
|
|
368
288
|
"attribute": "error",
|
|
369
289
|
"reflect": false,
|
|
@@ -381,7 +301,7 @@ export class EdsInputField {
|
|
|
381
301
|
"optional": true,
|
|
382
302
|
"docs": {
|
|
383
303
|
"tags": [],
|
|
384
|
-
"text": "If `true`, the
|
|
304
|
+
"text": "If `true`, the checkbox/radio is checked."
|
|
385
305
|
},
|
|
386
306
|
"attribute": "checked",
|
|
387
307
|
"reflect": false
|
|
@@ -398,7 +318,7 @@ export class EdsInputField {
|
|
|
398
318
|
"optional": true,
|
|
399
319
|
"docs": {
|
|
400
320
|
"tags": [],
|
|
401
|
-
"text": "
|
|
321
|
+
"text": "Error message text shown when validation fails."
|
|
402
322
|
},
|
|
403
323
|
"attribute": "error-message",
|
|
404
324
|
"reflect": false
|
|
@@ -415,7 +335,7 @@ export class EdsInputField {
|
|
|
415
335
|
"optional": true,
|
|
416
336
|
"docs": {
|
|
417
337
|
"tags": [],
|
|
418
|
-
"text": "The value of the input
|
|
338
|
+
"text": "The value of the input. Can be `string` or `number`."
|
|
419
339
|
},
|
|
420
340
|
"attribute": "value",
|
|
421
341
|
"reflect": false
|
|
@@ -432,7 +352,7 @@ export class EdsInputField {
|
|
|
432
352
|
"optional": true,
|
|
433
353
|
"docs": {
|
|
434
354
|
"tags": [],
|
|
435
|
-
"text": "The maximum length
|
|
355
|
+
"text": "The maximum allowed length for text input."
|
|
436
356
|
},
|
|
437
357
|
"attribute": "max-length",
|
|
438
358
|
"reflect": false
|
|
@@ -449,11 +369,70 @@ export class EdsInputField {
|
|
|
449
369
|
"optional": true,
|
|
450
370
|
"docs": {
|
|
451
371
|
"tags": [],
|
|
452
|
-
"text": "Options for
|
|
372
|
+
"text": "Options for select, checkbox, radio, or range inputs.\nCan be a JSON string or an array of `{ value, label }` objects."
|
|
453
373
|
},
|
|
454
374
|
"attribute": "options",
|
|
455
375
|
"reflect": false
|
|
456
376
|
},
|
|
377
|
+
"type": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"mutable": false,
|
|
380
|
+
"complexType": {
|
|
381
|
+
"original": "string",
|
|
382
|
+
"resolved": "string",
|
|
383
|
+
"references": {}
|
|
384
|
+
},
|
|
385
|
+
"required": false,
|
|
386
|
+
"optional": false,
|
|
387
|
+
"docs": {
|
|
388
|
+
"tags": [],
|
|
389
|
+
"text": "Type of the input: e.g., `text`, `checkbox`, `select`, `range`, etc."
|
|
390
|
+
},
|
|
391
|
+
"attribute": "type",
|
|
392
|
+
"reflect": false,
|
|
393
|
+
"defaultValue": "'text'"
|
|
394
|
+
},
|
|
395
|
+
"onChangeNative": {
|
|
396
|
+
"type": "unknown",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "(event: Event) => void",
|
|
400
|
+
"resolved": "(event: Event) => void",
|
|
401
|
+
"references": {
|
|
402
|
+
"Event": {
|
|
403
|
+
"location": "import",
|
|
404
|
+
"path": "@stencil/core",
|
|
405
|
+
"id": "../../../node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": true,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "Native `onChange` handler for React/Vue wrappers.\nEnables use without manually attaching DOM event listeners."
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"onInput": {
|
|
417
|
+
"type": "unknown",
|
|
418
|
+
"mutable": false,
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "(event: InputEvent) => void",
|
|
421
|
+
"resolved": "(event: InputEvent) => void",
|
|
422
|
+
"references": {
|
|
423
|
+
"InputEvent": {
|
|
424
|
+
"location": "global",
|
|
425
|
+
"id": "global::InputEvent"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": true,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "Native `onInput` handler for React/Vue wrappers.\nEnables use without manually attaching DOM event listeners."
|
|
434
|
+
}
|
|
435
|
+
},
|
|
457
436
|
"exposeValueEvents": {
|
|
458
437
|
"type": "boolean",
|
|
459
438
|
"mutable": false,
|
|
@@ -466,7 +445,7 @@ export class EdsInputField {
|
|
|
466
445
|
"optional": false,
|
|
467
446
|
"docs": {
|
|
468
447
|
"tags": [],
|
|
469
|
-
"text": "
|
|
448
|
+
"text": "If `true`, emits `edsChange` and `edsInput` events for external usage.\nSet to `false` to disable value emission entirely."
|
|
470
449
|
},
|
|
471
450
|
"attribute": "expose-value-events",
|
|
472
451
|
"reflect": false,
|
|
@@ -474,5 +453,38 @@ export class EdsInputField {
|
|
|
474
453
|
}
|
|
475
454
|
};
|
|
476
455
|
}
|
|
456
|
+
static get events() {
|
|
457
|
+
return [{
|
|
458
|
+
"method": "edsinput",
|
|
459
|
+
"name": "edsinput",
|
|
460
|
+
"bubbles": true,
|
|
461
|
+
"cancelable": true,
|
|
462
|
+
"composed": true,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": "Emits on every user input (key press, typing, etc.).\nUse `event.detail.value` to access the new value."
|
|
466
|
+
},
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "{ value: string }",
|
|
469
|
+
"resolved": "{ value: string; }",
|
|
470
|
+
"references": {}
|
|
471
|
+
}
|
|
472
|
+
}, {
|
|
473
|
+
"method": "edschange",
|
|
474
|
+
"name": "edschange",
|
|
475
|
+
"bubbles": true,
|
|
476
|
+
"cancelable": true,
|
|
477
|
+
"composed": true,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": "Emits on blur or change event (e.g., selecting an option, leaving the field).\nUse `event.detail.value` to access the final value."
|
|
481
|
+
},
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "{ value: string }",
|
|
484
|
+
"resolved": "{ value: string; }",
|
|
485
|
+
"references": {}
|
|
486
|
+
}
|
|
487
|
+
}];
|
|
488
|
+
}
|
|
477
489
|
static get elementRef() { return "hostEl"; }
|
|
478
490
|
}
|
|
@@ -279,8 +279,8 @@ export class EdsForm {
|
|
|
279
279
|
if (!this.isFieldVisible(field)) {
|
|
280
280
|
return null;
|
|
281
281
|
}
|
|
282
|
-
return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field),
|
|
283
|
-
})), this.formBtn && (h("div", { key: '
|
|
282
|
+
return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
283
|
+
})), this.formBtn && (h("div", { key: 'c97041c2e421c21a38513d3b456991167f5d1cdb', class: "mt-20" }, h("eds-button", { key: '96c35271f7227b9acd467fe822745bd41d3eaa80', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
284
284
|
}
|
|
285
285
|
static get is() { return "eds-form"; }
|
|
286
286
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7010,6 +7010,10 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
7010
7010
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
7011
7011
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
7012
7012
|
}
|
|
7013
|
+
.blur {
|
|
7014
|
+
--tw-blur: blur(8px);
|
|
7015
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
7016
|
+
}
|
|
7013
7017
|
.filter {
|
|
7014
7018
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
7015
7019
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-28ae3f3a.js";export{s as setNonce}from"./p-28ae3f3a.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await t(),a(JSON.parse('[["p-e6a0b8c2",[[1,"eds-form",{"name":[1],"setFormUrl":[4,"set-form-url"],"formBtn":[4,"form-btn"],"formBtnLabel":[1,"form-btn-label"],"errorMessage":[1,"error-message"],"fields":[1],"initData":[16],"values":[32],"isSubmitting":[32],"hasError":[32],"errors":[32],"parsedFields":[32],"setData":[64],"getData":[64]},null,{"fields":["parseFields"]}],[1,"eds-fullscreen-menu",{"links":[1],"menuLinks":[1,"menu-links"],"homeUrl":[1,"home-url"],"inverseHeader":[4,"inverse-header"],"isMenuOpen":[32]},[[16,"toggleheadermenu","handleToggleMenu"]]],[1,"eds-user",{"user":[1025]}],[1,"eds-header",{"homeUrl":[513,"home-url"],"links":[1],"headerVariant":[513,"header-variant"],"menuEnabled":[4,"menu-enabled"],"isMenuOpen":[32],"isUserMenuOpen":[32],"isAuthenticated":[32]},[[16,"authStatusChanged","onAuthStatusChanged"]]],[1,"eds-steps-v2",{"steps":[1],"type":[1],"imageSrc":[1,"image-src"],"imageWidth":[2,"image-width"],"bg":[4],"message":[1],"activeStep":[32]},null,{"activeStep":["activeStepChanged"]}],[1,"eds-modal",{"heading":[1,"title"],"truncate":[2],"position":[1],"inverseHeader":[4,"inverse-header"],"isOpen":[32],"open":[64],"close":[64],"toggle":[64]},[[0,"eds-modal-open","handleGlobalOpen"],[0,"eds-modal-close","handleGlobalClose"],[8,"keydown","handleKeyDown"]]],[1,"eds-tabs",{"identifier":[1,"id"],"navAriaLabel":[1,"nav-aria-label"],"tabs":[1],"parsedTabs":[32],"activeIndex":[32]},null,{"tabs":["parseTabs"]}],[1,"eds-footer",{"social":[4],"enableScrollTop":[4,"enable-scroll-top"],"fundedBy":[1,"funded-by"],"rightsReserved":[1,"rights-reserved"],"cookiesPreferences":[1,"cookies-preferences"],"enableCookiesSettings":[4,"enable-cookies-settings"],"backToTopAriaLabel":[1,"back-to-top-aria-label"],"showMatomoNotice":[32]}],[1,"eds-dropdown",{"icon":[1],"label":[1],"rounded":[4],"ariaLabel":[1,"aria-label"],"asNav":[4,"as-nav"],"dropdownPos":[1,"dropdown-pos"],"dropdownOffset":[4,"dropdown-offset"],"intent":[1],"isOpen":[32],"focusIndex":[32]},[[8,"click","handleWindowClick"],[8,"keydown","handleKeyDown"]]],[1,"eds-steps",{"steps":[1],"type":[1],"activeStep":[32]},null,{"activeStep":["activeStepChanged"]}],[1,"eds-social-networks",{"heading":[1,"title"]}],[1,"eds-table",{"data":[1,"table-data"],"endpoint":[1],"config":[1],"rowsPerPage":[2,"rows-per-page"],"paginationEnabled":[4,"pagination-enabled"],"searchEnabled":[4,"search-enabled"],"hostWidth":[1,"host-width"],"columnSize":[1,"column-size"],"actions":[1],"actionTemplate":[16],"parsedActions":[32],"dataColumns":[32],"tbData":[32],"columns":[32],"currentPage":[32],"parsedConfig":[32],"totalRows":[32],"searchQuery":[32],"containerWidth":[32]},null,{"data":["handleDataChange","parseData"],"config":["handleConfigChange"],"actions":["handleActionsChange"]}],[1,"eds-pagination",{"currentPage":[2,"current-page"],"lastPage":[2,"last-page"],"perPage":[2,"per-page"],"total":[2],"url":[1],"mode":[1],"prevLabel":[1,"prev-label"],"nextLabel":[1,"next-label"],"prevUrl":[1,"prev-url"],"nextUrl":[1,"next-url"],"links":[32]},null,{"currentPage":["onPageOrLastPageChange"],"lastPage":["onPageOrLastPageChange"]}],[1,"eds-block-break",{"inverse":[4]}],[1,"eds-input-field",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"disabled":[4],"onChange":[16],"onInput":[16],"type":[1],"required":[4],"label":[1],"hint":[1],"icon":[1],"link":[16],"message":[1],"error":[4],"checked":[4],"errorMessage":[1,"error-message"],"value":[8],"maxLength":[2,"max-length"],"options":[1],"exposeValueEvents":[4,"expose-value-events"]}],[1,"eds-avatar",{"firstName":[1,"first-name"],"lastName":[1,"last-name"],"picture":[1],"initials":[1],"color":[1]}],[0,"eds-input",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"disabled":[4],"hasMessage":[4,"has-message"],"error":[4],"checked":[4],"type":[1],"required":[4],"value":[8],"icon":[1],"maxLength":[2,"max-length"],"options":[16],"extraClass":[1,"extra-class"],"innerVal":[32],"maxLengthReached":[32]},null,{"value":["onValueChanged"]}],[0,"eds-input-footer",{"name":[1],"errorMessage":[1,"error-message"],"message":[1],"error":[4],"link":[16]}],[0,"eds-input-search",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"value":[1],"disabled":[4],"required":[4],"decorate":[1],"label":[1],"getInputElement":[64]}],[0,"eds-input-select",{"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"disabled":[4],"hasMessage":[4,"has-message"],"error":[4],"required":[4],"options":[16],"value":[8]}],[0,"eds-input-label",{"label":[1],"name":[1],"required":[4],"disabled":[4]}],[0,"eds-input-range",{"name":[1],"inputId":[1,"input-id"],"disabled":[4],"required":[4],"min":[2],"max":[2],"step":[2],"value":[2],"sliderVal":[32],"getInputElement":[64]},null,{"value":["onValueChange"]}],[1,"eds-tag",{"label":[1],"intent":[1],"size":[1]}],[1,"eds-logo",{"href":[1],"orientation":[1],"type":[1],"label":[1]}],[1,"eds-img",{"src":[1],"alt":[1],"width":[2],"height":[2],"srcset":[1],"sizes":[1],"formats":[16],"lazyload":[4],"withBg":[4,"with-bg"],"loaded":[32],"showBg":[32]}],[1,"eds-link",{"label":[1],"intent":[1],"icon":[1],"iconPos":[1,"icon-pos"],"iconSmall":[4,"icon-small"],"size":[1],"external":[4],"current":[4],"download":[4],"url":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"hideLabelOnSmallScreen":[4,"hide-label-on-small-screen"],"extraClass":[1,"extra-class"]},[[0,"parentContext","handleParentContext"]]],[1,"eds-button",{"label":[1],"ariaLabel":[1,"aria-label"],"elementType":[1,"element-type"],"intent":[1],"loading":[4],"disabled":[4],"pill":[4],"icon":[1],"size":[1],"iconPos":[1,"icon-pos"],"iconSmall":[4,"icon-small"],"extraClass":[1,"extra-class"],"triggerClick":[16]},[[0,"parentContext","handleParentContext"]]],[0,"eds-icon-wrapper",{"icon":[1],"class":[1],"IconComponent":[32]},null,{"icon":["iconChanged"]}]]],["p-223ba66e",[[0,"eds-trl",{"applications":[1]}]]],["p-cde3d7a4",[[1,"logo-space"]]],["p-24dab785",[[1,"svg-repository"]]],["p-019555e2",[[0,"docs-palettes",{"tabIndex":[2,"tab-index"]}]]],["p-df772a35",[[0,"components-section",{"tabIndex":[2,"tab-index"]}]]],["p-adbd0d7b",[[1,"eds-card-section",{"cards":[1],"occupyCols":[2,"occupy-cols"]}]]],["p-2c571550",[[1,"eds-timeline",{"events":[1],"selectedEvent":[32],"parsedEvents":[32]},null,{"events":["parseEvents"]}]]],["p-1661f33c",[[0,"docs-tokens",{"tabIndex":[2,"tab-index"]}]]],["p-1f5c19b9",[[1,"eds-card-tool",{"cardTitle":[1,"card-title"],"url":[1],"description":[1],"image":[8],"avatar":[1],"shortAbbreviation":[1,"short-abbreviation"],"headingLevel":[1,"heading-level"],"tags":[8],"tiny":[4],"bg":[4],"withHover":[4,"with-hover"],"external":[4],"hierarchy":[4]}]]],["p-f2c23162",[[0,"eds-cookies-preference",{"buttonText":[1,"button-text"],"intent":[1],"showMatomoNotice":[32],"noticeKey":[32]}]]],["p-682f7376",[[1,"eds-app-root",{"isAuthenticated":[32]}]]],["p-f189be4f",[[0,"eds-card-project",{"image":[8],"editorialTitle":[1,"editorial-title"],"headingLevel":[1,"heading-level"],"categoryTitle":[1,"category-title"],"color":[1],"bgOnHover":[4,"bg-on-hover"],"vertical":[4],"titleProject":[1,"title-project"],"url":[1],"parsedImage":[32]}]]],["p-6907a47c",[[1,"eds-feedback",{"headingLevel":[1,"heading-level"],"type":[1],"count":[2],"label":[1],"description":[1],"textMapping":[1,"text-mapping"],"selectedRating":[32]},[[16,"rating","ratingUpdated"]]]]],["p-fc4edb18",[[1,"eds-toast-manager",{"toasts":[32]}]]],["p-0ed92872",[[0,"incorrect-use-of-colors"]]],["p-b4abff90",[[0,"logo-variations-tabs",{"tabIndex":[2,"tab-index"]}]]],["p-10db551c",[[0,"correct-use-of-colors"]]],["p-b630e51a",[[1,"eds-breadcrumb",{"items":[1],"intent":[1],"parsedItems":[32],"isSmallScreen":[32],"maxVisibleItems":[32]},null,{"items":["parseItems"]}]]],["p-7f31622d",[[1,"eds-frame",{"frameLabel":[1,"frame-label"],"frameSrc":[1,"frame-src"],"urlLabel":[1,"url-label"],"errorMessage":[1,"error-message"],"url":[1],"intent":[1],"size":[1],"iframeError":[32]}]]],["p-36d6134f",[[0,"token-ratios"]]],["p-46a6ab04",[[0,"token-typography"]]],["p-11efb1d1",[[1,"eds-card-tags",{"accent":[4],"tags":[16]}]]],["p-b073d78f",[[1,"eds-gauge",{"size":[2],"valueMin":[2,"value-min"],"valueMax":[2,"value-max"],"value":[2],"thickness":[2],"variant":[1]}]]],["p-19d586e6",[[0,"eds-icon-arrow-diagonal",{"class":[1]}]]],["p-d4f239d7",[[0,"eds-icon-arrow-right",{"class":[1]}]]],["p-f221eca2",[[0,"eds-icon-bluesky",{"class":[1]}]]],["p-6f9ab63c",[[0,"eds-icon-bookmark",{"class":[1]}]]],["p-c91b4eec",[[0,"eds-icon-chevron-down",{"class":[1]}]]],["p-023bc47c",[[0,"eds-icon-chevron-left",{"class":[1]}]]],["p-f2416727",[[0,"eds-icon-chevron-right",{"class":[1]}]]],["p-50f43dfd",[[0,"eds-icon-chevron-up",{"class":[1]}]]],["p-9a4b5746",[[0,"eds-icon-close",{"class":[1]}]]],["p-750e3ec8",[[0,"eds-icon-copy",{"class":[1]}]]],["p-e8f0d7fc",[[0,"eds-icon-eu",{"class":[1]}]]],["p-177103fd",[[0,"eds-icon-external",{"class":[1]}]]],["p-42295abe",[[0,"eds-icon-facebook",{"class":[1]}]]],["p-424e91b3",[[0,"eds-icon-gitlab",{"class":[1]}]]],["p-563d56c0",[[0,"eds-icon-linkedin",{"class":[1]}]]],["p-95518776",[[0,"eds-icon-loader",{"class":[1]}]]],["p-9d64d1fd",[[0,"eds-icon-mastodon",{"class":[1]}]]],["p-ab4447f6",[[0,"eds-icon-menu",{"class":[1]}]]],["p-fd85675b",[[0,"eds-icon-minus",{"class":[1]}]]],["p-99d9bb29",[[0,"eds-icon-more",{"class":[1]}]]],["p-1de8401b",[[0,"eds-icon-paper",{"class":[1]}]]],["p-4dcdd4d9",[[0,"eds-icon-plus",{"class":[1]}]]],["p-e5113509",[[0,"eds-icon-portal",{"class":[1]}]]],["p-7502b8b4",[[0,"eds-icon-private",{"class":[1]}]]],["p-43cff423",[[0,"eds-icon-public",{"class":[1]}]]],["p-321a950b",[[0,"eds-icon-search",{"class":[1]}]]],["p-38c9aee7",[[0,"eds-icon-star",{"class":[1]}]]],["p-ffccfeb6",[[0,"eds-icon-success",{"class":[1]}]]],["p-9c823b5e",[[0,"eds-icon-thumbs-down",{"class":[1]}]]],["p-45f21238",[[0,"eds-icon-thumbs-up",{"class":[1]}]]],["p-4fad9296",[[0,"eds-icon-tutorial",{"class":[1]}]]],["p-5827fd52",[[0,"eds-icon-twitter",{"class":[1]}]]],["p-4bdf1589",[[0,"eds-icon-unknown",{"class":[1]}]]],["p-158c95bc",[[0,"eds-icon-updown",{"class":[1]}]]],["p-d3bb444a",[[0,"eds-icon-user",{"class":[1]}]]],["p-5c5dfc4a",[[0,"eds-icon-youtube",{"class":[1]}]]],["p-8c0b0121",[[1,"eds-pie",{"size":[2],"slices":[1],"thickness":[2],"display":[1],"legend":[4],"colorScheme":[1,"color-scheme"]}]]],["p-590fb0e7",[[1,"eds-switch",{"checked":[1540],"disabled":[4],"labelOn":[1,"label-on"],"labelOff":[1,"label-off"]}]]],["p-6dc6f729",[[1,"eds-tooltip",{"content":[1]},[[1,"mouseenter","handleHover"]]]]],["p-a4f552b2",[[1,"logo-wrong-usage"]]],["p-d25364db",[[0,"token-spacing"]]],["p-b5e64725",[[1,"eds-accordion",{"heading":[1,"title"],"description":[1],"switchBg":[4,"switch-bg"],"expanded":[4],"clampText":[4,"clamp-text"],"isExpanded":[32],"panelHeight":[32],"shortContent":[32],"headerHeight":[32]}]]],["p-bb9af709",[[1,"eds-matomo-notice",{"heading":[1,"title"],"description":[1],"optOutMessage":[1,"opt-out-message"],"forceShow":[4,"force-show"],"showNotice":[32]},[[16,"cookies","toggleCookiesConsent"]]]]],["p-d05a09df",[[1,"eds-rating",{"ratingType":[1,"rating-type"],"ratingCount":[2,"rating-count"],"selectedRating":[32]}]]],["p-f7716080",[[1,"eds-spinner",{"size":[1],"thickness":[1],"borderColor":[1,"border-color"],"bottomColor":[1,"bottom-color"],"background":[1],"fullscreen":[4]}]]],["p-cfccddc3",[[1,"eds-splash-screen",{"inverse":[4],"initPromise":[16],"isVisible":[32]},[[8,"hideSplash","handleHideSplash"]],{"initPromise":["watchInitPromise"]}]]],["p-326d9e55",[[1,"eds-toast",{"message":[1],"intent":[1],"duration":[2],"visible":[32]}]]],["p-17d39d66",[[1,"eds-progress-bar",{"value":[1026],"rounded":[4],"updateValue":[64]}]]],["p-14679a86",[[1,"eds-card-generic",{"cardTitle":[1,"card-title"],"url":[1],"description":[1],"image":[8],"avatar":[1],"shortAbbreviation":[1,"short-abbreviation"],"headingLevel":[1,"heading-level"],"tags":[1],"tiny":[4],"bg":[4],"withHover":[4,"with-hover"],"hierarchy":[4],"parsedImage":[32]},[[0,"parentContext","handleParentContext"]]]]],["p-b50fc0d7",[[1,"logo-variations-horizontal"],[1,"logo-variations-vertical",{"orientation":[1],"type":[1]}]]],["p-deb9bbed",[[1,"eds-alert",{"message":[1],"pressableLabel":[1,"pressable-label"],"pressableUrl":[1,"pressable-url"],"direction":[1],"intent":[1],"brd":[1],"withBtn":[32]}]]],["p-eac593ee",[[0,"token-list",{"show":[1]}],[0,"token-radii"],[0,"token-shadows"]]],["p-d0b1e963",[[1,"eds-section-core",{"tag":[1],"sectionTitle":[1,"section-title"],"headingLevel":[1,"heading-level"]}],[0,"eds-section-heading",{"sectionTitle":[1,"section-title"],"withContainer":[4,"with-container"],"headingLevel":[1,"heading-level"],"tag":[1],"spacingLarge":[4,"spacing-large"]}]]],["p-fe167c78",[[1,"eds-code-block",{"code":[1],"language":[1],"copied":[32]}]]],["p-2810d568",[[0,"gradient-secondary-palette"],[0,"color-primary-palette"],[0,"color-secondary-palette",{"show":[1]}],[0,"color-support-palette"],[0,"gradient-primary-palette"],[0,"gradient-support-palette"]]],["p-66f4cdd9",[[1,"eds-card-desc",{"description":[1],"truncate":[4],"truncateLines":[1,"truncate-lines"]}],[1,"eds-card-title",{"url":[1],"titleClass":[1,"title-class"],"headingLevel":[1,"heading-level"],"externalLink":[4,"external-link"],"cardTitle":[1,"card-title"],"hierarchy":[4]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-28ae3f3a.js";export{s as setNonce}from"./p-28ae3f3a.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await t(),a(JSON.parse('[["p-233d3577",[[1,"eds-form",{"name":[1],"setFormUrl":[4,"set-form-url"],"formBtn":[4,"form-btn"],"formBtnLabel":[1,"form-btn-label"],"errorMessage":[1,"error-message"],"fields":[1],"initData":[16],"values":[32],"isSubmitting":[32],"hasError":[32],"errors":[32],"parsedFields":[32],"setData":[64],"getData":[64]},null,{"fields":["parseFields"]}],[1,"eds-fullscreen-menu",{"links":[1],"menuLinks":[1,"menu-links"],"homeUrl":[1,"home-url"],"inverseHeader":[4,"inverse-header"],"isMenuOpen":[32]},[[16,"toggleheadermenu","handleToggleMenu"]]],[1,"eds-user",{"user":[1025]}],[1,"eds-header",{"homeUrl":[513,"home-url"],"links":[1],"headerVariant":[513,"header-variant"],"menuEnabled":[4,"menu-enabled"],"isMenuOpen":[32],"isUserMenuOpen":[32],"isAuthenticated":[32]},[[16,"authStatusChanged","onAuthStatusChanged"]]],[1,"eds-steps-v2",{"steps":[1],"type":[1],"imageSrc":[1,"image-src"],"imageWidth":[2,"image-width"],"bg":[4],"message":[1],"activeStep":[32]},null,{"activeStep":["activeStepChanged"]}],[1,"eds-modal",{"heading":[1,"title"],"truncate":[2],"position":[1],"inverseHeader":[4,"inverse-header"],"isOpen":[32],"open":[64],"close":[64],"toggle":[64]},[[0,"eds-modal-open","handleGlobalOpen"],[0,"eds-modal-close","handleGlobalClose"],[8,"keydown","handleKeyDown"]]],[1,"eds-tabs",{"identifier":[1,"id"],"navAriaLabel":[1,"nav-aria-label"],"tabs":[1],"parsedTabs":[32],"activeIndex":[32]},null,{"tabs":["parseTabs"]}],[1,"eds-footer",{"social":[4],"enableScrollTop":[4,"enable-scroll-top"],"fundedBy":[1,"funded-by"],"rightsReserved":[1,"rights-reserved"],"cookiesPreferences":[1,"cookies-preferences"],"enableCookiesSettings":[4,"enable-cookies-settings"],"backToTopAriaLabel":[1,"back-to-top-aria-label"],"showMatomoNotice":[32]}],[1,"eds-dropdown",{"icon":[1],"label":[1],"rounded":[4],"ariaLabel":[1,"aria-label"],"asNav":[4,"as-nav"],"dropdownPos":[1,"dropdown-pos"],"dropdownOffset":[4,"dropdown-offset"],"intent":[1],"isOpen":[32],"focusIndex":[32]},[[8,"click","handleWindowClick"],[8,"keydown","handleKeyDown"]]],[1,"eds-steps",{"steps":[1],"type":[1],"activeStep":[32]},null,{"activeStep":["activeStepChanged"]}],[1,"eds-social-networks",{"heading":[1,"title"]}],[1,"eds-table",{"data":[1,"table-data"],"endpoint":[1],"config":[1],"rowsPerPage":[2,"rows-per-page"],"paginationEnabled":[4,"pagination-enabled"],"searchEnabled":[4,"search-enabled"],"hostWidth":[1,"host-width"],"columnSize":[1,"column-size"],"actions":[1],"actionTemplate":[16],"parsedActions":[32],"dataColumns":[32],"tbData":[32],"columns":[32],"currentPage":[32],"parsedConfig":[32],"totalRows":[32],"searchQuery":[32],"containerWidth":[32]},null,{"data":["handleDataChange","parseData"],"config":["handleConfigChange"],"actions":["handleActionsChange"]}],[1,"eds-pagination",{"currentPage":[2,"current-page"],"lastPage":[2,"last-page"],"perPage":[2,"per-page"],"total":[2],"url":[1],"mode":[1],"prevLabel":[1,"prev-label"],"nextLabel":[1,"next-label"],"prevUrl":[1,"prev-url"],"nextUrl":[1,"next-url"],"links":[32]},null,{"currentPage":["onPageOrLastPageChange"],"lastPage":["onPageOrLastPageChange"]}],[1,"eds-block-break",{"inverse":[4]}],[1,"eds-input-field",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"disabled":[4],"required":[4],"label":[1],"hint":[1],"icon":[1],"link":[16],"message":[1],"error":[4],"checked":[4],"errorMessage":[1,"error-message"],"value":[8],"maxLength":[2,"max-length"],"options":[1],"type":[1],"onChangeNative":[16],"onInput":[16],"exposeValueEvents":[4,"expose-value-events"]}],[1,"eds-avatar",{"firstName":[1,"first-name"],"lastName":[1,"last-name"],"picture":[1],"initials":[1],"color":[1]}],[0,"eds-input",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"disabled":[4],"hasMessage":[4,"has-message"],"error":[4],"checked":[4],"type":[1],"required":[4],"value":[8],"icon":[1],"maxLength":[2,"max-length"],"options":[16],"extraClass":[1,"extra-class"],"innerVal":[32],"maxLengthReached":[32]},null,{"value":["onValueChanged"]}],[0,"eds-input-footer",{"name":[1],"errorMessage":[1,"error-message"],"message":[1],"error":[4],"link":[16]}],[0,"eds-input-search",{"name":[1],"inputId":[1,"input-id"],"placeholder":[1],"value":[1],"disabled":[4],"required":[4],"decorate":[1],"label":[1],"getInputElement":[64]}],[0,"eds-input-select",{"inputId":[1,"input-id"],"name":[1],"placeholder":[1],"disabled":[4],"hasMessage":[4,"has-message"],"error":[4],"required":[4],"options":[16],"value":[8]}],[0,"eds-input-label",{"label":[1],"name":[1],"required":[4],"disabled":[4]}],[0,"eds-input-range",{"name":[1],"inputId":[1,"input-id"],"disabled":[4],"required":[4],"min":[2],"max":[2],"step":[2],"value":[2],"sliderVal":[32],"getInputElement":[64]},null,{"value":["onValueChange"]}],[1,"eds-tag",{"label":[1],"intent":[1],"size":[1]}],[1,"eds-logo",{"href":[1],"orientation":[1],"type":[1],"label":[1]}],[1,"eds-img",{"src":[1],"alt":[1],"width":[2],"height":[2],"srcset":[1],"sizes":[1],"formats":[16],"lazyload":[4],"withBg":[4,"with-bg"],"loaded":[32],"showBg":[32]}],[1,"eds-link",{"label":[1],"intent":[1],"icon":[1],"iconPos":[1,"icon-pos"],"iconSmall":[4,"icon-small"],"size":[1],"external":[4],"current":[4],"download":[4],"url":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"hideLabelOnSmallScreen":[4,"hide-label-on-small-screen"],"extraClass":[1,"extra-class"]},[[0,"parentContext","handleParentContext"]]],[1,"eds-button",{"label":[1],"ariaLabel":[1,"aria-label"],"elementType":[1,"element-type"],"intent":[1],"loading":[4],"disabled":[4],"pill":[4],"icon":[1],"size":[1],"iconPos":[1,"icon-pos"],"iconSmall":[4,"icon-small"],"extraClass":[1,"extra-class"],"triggerClick":[16]},[[0,"parentContext","handleParentContext"]]],[0,"eds-icon-wrapper",{"icon":[1],"class":[1],"IconComponent":[32]},null,{"icon":["iconChanged"]}]]],["p-223ba66e",[[0,"eds-trl",{"applications":[1]}]]],["p-cde3d7a4",[[1,"logo-space"]]],["p-24dab785",[[1,"svg-repository"]]],["p-019555e2",[[0,"docs-palettes",{"tabIndex":[2,"tab-index"]}]]],["p-df772a35",[[0,"components-section",{"tabIndex":[2,"tab-index"]}]]],["p-adbd0d7b",[[1,"eds-card-section",{"cards":[1],"occupyCols":[2,"occupy-cols"]}]]],["p-2c571550",[[1,"eds-timeline",{"events":[1],"selectedEvent":[32],"parsedEvents":[32]},null,{"events":["parseEvents"]}]]],["p-1661f33c",[[0,"docs-tokens",{"tabIndex":[2,"tab-index"]}]]],["p-1f5c19b9",[[1,"eds-card-tool",{"cardTitle":[1,"card-title"],"url":[1],"description":[1],"image":[8],"avatar":[1],"shortAbbreviation":[1,"short-abbreviation"],"headingLevel":[1,"heading-level"],"tags":[8],"tiny":[4],"bg":[4],"withHover":[4,"with-hover"],"external":[4],"hierarchy":[4]}]]],["p-f2c23162",[[0,"eds-cookies-preference",{"buttonText":[1,"button-text"],"intent":[1],"showMatomoNotice":[32],"noticeKey":[32]}]]],["p-682f7376",[[1,"eds-app-root",{"isAuthenticated":[32]}]]],["p-f189be4f",[[0,"eds-card-project",{"image":[8],"editorialTitle":[1,"editorial-title"],"headingLevel":[1,"heading-level"],"categoryTitle":[1,"category-title"],"color":[1],"bgOnHover":[4,"bg-on-hover"],"vertical":[4],"titleProject":[1,"title-project"],"url":[1],"parsedImage":[32]}]]],["p-6907a47c",[[1,"eds-feedback",{"headingLevel":[1,"heading-level"],"type":[1],"count":[2],"label":[1],"description":[1],"textMapping":[1,"text-mapping"],"selectedRating":[32]},[[16,"rating","ratingUpdated"]]]]],["p-fc4edb18",[[1,"eds-toast-manager",{"toasts":[32]}]]],["p-0ed92872",[[0,"incorrect-use-of-colors"]]],["p-b4abff90",[[0,"logo-variations-tabs",{"tabIndex":[2,"tab-index"]}]]],["p-10db551c",[[0,"correct-use-of-colors"]]],["p-b630e51a",[[1,"eds-breadcrumb",{"items":[1],"intent":[1],"parsedItems":[32],"isSmallScreen":[32],"maxVisibleItems":[32]},null,{"items":["parseItems"]}]]],["p-7f31622d",[[1,"eds-frame",{"frameLabel":[1,"frame-label"],"frameSrc":[1,"frame-src"],"urlLabel":[1,"url-label"],"errorMessage":[1,"error-message"],"url":[1],"intent":[1],"size":[1],"iframeError":[32]}]]],["p-36d6134f",[[0,"token-ratios"]]],["p-46a6ab04",[[0,"token-typography"]]],["p-11efb1d1",[[1,"eds-card-tags",{"accent":[4],"tags":[16]}]]],["p-b073d78f",[[1,"eds-gauge",{"size":[2],"valueMin":[2,"value-min"],"valueMax":[2,"value-max"],"value":[2],"thickness":[2],"variant":[1]}]]],["p-19d586e6",[[0,"eds-icon-arrow-diagonal",{"class":[1]}]]],["p-d4f239d7",[[0,"eds-icon-arrow-right",{"class":[1]}]]],["p-f221eca2",[[0,"eds-icon-bluesky",{"class":[1]}]]],["p-6f9ab63c",[[0,"eds-icon-bookmark",{"class":[1]}]]],["p-c91b4eec",[[0,"eds-icon-chevron-down",{"class":[1]}]]],["p-023bc47c",[[0,"eds-icon-chevron-left",{"class":[1]}]]],["p-f2416727",[[0,"eds-icon-chevron-right",{"class":[1]}]]],["p-50f43dfd",[[0,"eds-icon-chevron-up",{"class":[1]}]]],["p-9a4b5746",[[0,"eds-icon-close",{"class":[1]}]]],["p-750e3ec8",[[0,"eds-icon-copy",{"class":[1]}]]],["p-e8f0d7fc",[[0,"eds-icon-eu",{"class":[1]}]]],["p-177103fd",[[0,"eds-icon-external",{"class":[1]}]]],["p-42295abe",[[0,"eds-icon-facebook",{"class":[1]}]]],["p-424e91b3",[[0,"eds-icon-gitlab",{"class":[1]}]]],["p-563d56c0",[[0,"eds-icon-linkedin",{"class":[1]}]]],["p-95518776",[[0,"eds-icon-loader",{"class":[1]}]]],["p-9d64d1fd",[[0,"eds-icon-mastodon",{"class":[1]}]]],["p-ab4447f6",[[0,"eds-icon-menu",{"class":[1]}]]],["p-fd85675b",[[0,"eds-icon-minus",{"class":[1]}]]],["p-99d9bb29",[[0,"eds-icon-more",{"class":[1]}]]],["p-1de8401b",[[0,"eds-icon-paper",{"class":[1]}]]],["p-4dcdd4d9",[[0,"eds-icon-plus",{"class":[1]}]]],["p-e5113509",[[0,"eds-icon-portal",{"class":[1]}]]],["p-7502b8b4",[[0,"eds-icon-private",{"class":[1]}]]],["p-43cff423",[[0,"eds-icon-public",{"class":[1]}]]],["p-321a950b",[[0,"eds-icon-search",{"class":[1]}]]],["p-38c9aee7",[[0,"eds-icon-star",{"class":[1]}]]],["p-ffccfeb6",[[0,"eds-icon-success",{"class":[1]}]]],["p-9c823b5e",[[0,"eds-icon-thumbs-down",{"class":[1]}]]],["p-45f21238",[[0,"eds-icon-thumbs-up",{"class":[1]}]]],["p-4fad9296",[[0,"eds-icon-tutorial",{"class":[1]}]]],["p-5827fd52",[[0,"eds-icon-twitter",{"class":[1]}]]],["p-4bdf1589",[[0,"eds-icon-unknown",{"class":[1]}]]],["p-158c95bc",[[0,"eds-icon-updown",{"class":[1]}]]],["p-d3bb444a",[[0,"eds-icon-user",{"class":[1]}]]],["p-5c5dfc4a",[[0,"eds-icon-youtube",{"class":[1]}]]],["p-8c0b0121",[[1,"eds-pie",{"size":[2],"slices":[1],"thickness":[2],"display":[1],"legend":[4],"colorScheme":[1,"color-scheme"]}]]],["p-590fb0e7",[[1,"eds-switch",{"checked":[1540],"disabled":[4],"labelOn":[1,"label-on"],"labelOff":[1,"label-off"]}]]],["p-6dc6f729",[[1,"eds-tooltip",{"content":[1]},[[1,"mouseenter","handleHover"]]]]],["p-a4f552b2",[[1,"logo-wrong-usage"]]],["p-d25364db",[[0,"token-spacing"]]],["p-b5e64725",[[1,"eds-accordion",{"heading":[1,"title"],"description":[1],"switchBg":[4,"switch-bg"],"expanded":[4],"clampText":[4,"clamp-text"],"isExpanded":[32],"panelHeight":[32],"shortContent":[32],"headerHeight":[32]}]]],["p-bb9af709",[[1,"eds-matomo-notice",{"heading":[1,"title"],"description":[1],"optOutMessage":[1,"opt-out-message"],"forceShow":[4,"force-show"],"showNotice":[32]},[[16,"cookies","toggleCookiesConsent"]]]]],["p-d05a09df",[[1,"eds-rating",{"ratingType":[1,"rating-type"],"ratingCount":[2,"rating-count"],"selectedRating":[32]}]]],["p-f7716080",[[1,"eds-spinner",{"size":[1],"thickness":[1],"borderColor":[1,"border-color"],"bottomColor":[1,"bottom-color"],"background":[1],"fullscreen":[4]}]]],["p-cfccddc3",[[1,"eds-splash-screen",{"inverse":[4],"initPromise":[16],"isVisible":[32]},[[8,"hideSplash","handleHideSplash"]],{"initPromise":["watchInitPromise"]}]]],["p-326d9e55",[[1,"eds-toast",{"message":[1],"intent":[1],"duration":[2],"visible":[32]}]]],["p-17d39d66",[[1,"eds-progress-bar",{"value":[1026],"rounded":[4],"updateValue":[64]}]]],["p-14679a86",[[1,"eds-card-generic",{"cardTitle":[1,"card-title"],"url":[1],"description":[1],"image":[8],"avatar":[1],"shortAbbreviation":[1,"short-abbreviation"],"headingLevel":[1,"heading-level"],"tags":[1],"tiny":[4],"bg":[4],"withHover":[4,"with-hover"],"hierarchy":[4],"parsedImage":[32]},[[0,"parentContext","handleParentContext"]]]]],["p-b50fc0d7",[[1,"logo-variations-horizontal"],[1,"logo-variations-vertical",{"orientation":[1],"type":[1]}]]],["p-deb9bbed",[[1,"eds-alert",{"message":[1],"pressableLabel":[1,"pressable-label"],"pressableUrl":[1,"pressable-url"],"direction":[1],"intent":[1],"brd":[1],"withBtn":[32]}]]],["p-eac593ee",[[0,"token-list",{"show":[1]}],[0,"token-radii"],[0,"token-shadows"]]],["p-d0b1e963",[[1,"eds-section-core",{"tag":[1],"sectionTitle":[1,"section-title"],"headingLevel":[1,"heading-level"]}],[0,"eds-section-heading",{"sectionTitle":[1,"section-title"],"withContainer":[4,"with-container"],"headingLevel":[1,"heading-level"],"tag":[1],"spacingLarge":[4,"spacing-large"]}]]],["p-fe167c78",[[1,"eds-code-block",{"code":[1],"language":[1],"copied":[32]}]]],["p-2810d568",[[0,"gradient-secondary-palette"],[0,"color-primary-palette"],[0,"color-secondary-palette",{"show":[1]}],[0,"color-support-palette"],[0,"gradient-primary-palette"],[0,"gradient-support-palette"]]],["p-66f4cdd9",[[1,"eds-card-desc",{"description":[1],"truncate":[4],"truncateLines":[1,"truncate-lines"]}],[1,"eds-card-title",{"url":[1],"titleClass":[1,"title-class"],"headingLevel":[1,"heading-level"],"externalLink":[4,"external-link"],"cardTitle":[1,"card-title"],"hierarchy":[4]}]]]]'),e))));
|
|
@@ -426,8 +426,8 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
426
426
|
if (!this.isFieldVisible(field)) {
|
|
427
427
|
return null;
|
|
428
428
|
}
|
|
429
|
-
return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field),
|
|
430
|
-
})), this.formBtn && (h("div", { key: '
|
|
429
|
+
return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
430
|
+
})), this.formBtn && (h("div", { key: 'c97041c2e421c21a38513d3b456991167f5d1cdb', class: "mt-20" }, h("eds-button", { key: '96c35271f7227b9acd467fe822745bd41d3eaa80', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
431
431
|
}
|
|
432
432
|
get el() { return this; }
|
|
433
433
|
static get watchers() { return {
|