@ebrains/react 1.3.0 → 1.4.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.
@@ -517,11 +517,24 @@ const EdsFooter = class {
517
517
  EdsFooter.style = EdsFooterStyle0;
518
518
 
519
519
  // utils/validators.ts
520
- function validateField(name, value, type, required, maxLength) {
520
+ function validateField(name, value, type, required, maxLength, min, max) {
521
521
  const errors = [];
522
522
  if (required && !value) {
523
523
  errors.push(`${name} is required.`);
524
524
  }
525
+ if (type === 'number') {
526
+ const parsed = typeof value === 'number' ? value : parseFloat(value);
527
+ if (isNaN(parsed)) {
528
+ errors.push(`${name} must be a valid number.`);
529
+ } else {
530
+ if (typeof min === 'number' && parsed < min) {
531
+ errors.push(`${name} must be greater than or equal to ${min}.`);
532
+ }
533
+ if (typeof max === 'number' && parsed > max) {
534
+ errors.push(`${name} must be less than or equal to ${max}.`);
535
+ }
536
+ }
537
+ }
525
538
  if (maxLength && typeof value === 'string' && value.length > maxLength) {
526
539
  errors.push(`${name} must be at most ${maxLength} characters.`);
527
540
  }
@@ -622,7 +635,7 @@ isFieldVisible) {
622
635
  const inputEl = findFieldElement(formEl, field.name);
623
636
  if (inputEl) {
624
637
  const value = inputEl.value;
625
- const fieldErrors = validateField(field.name, value, field.type, field.required, field.maxlength);
638
+ const fieldErrors = validateField(field.name, value, field.type, field.required, field.maxlength, field.min, field.max);
626
639
  if (fieldErrors.length > 0) {
627
640
  errors[field.name] = fieldErrors;
628
641
  hasError = true;
@@ -650,7 +663,7 @@ function validateInputField(field, value, formEl) {
650
663
  }
651
664
  return validateSingleBox(field.name, field.required, formEl);
652
665
  }
653
- return validateField(field.name, value, field.type, field.required, field.maxlength);
666
+ return validateField(field.name, value, field.type, field.required, field.maxlength, field.min, field.max);
654
667
  }
655
668
 
656
669
  /**
@@ -726,11 +739,11 @@ const EdsForm = class {
726
739
  linkElement.dispatchEvent(event);
727
740
  }
728
741
  isFieldVisible(field) {
729
- if (!field.condition) {
730
- return true;
731
- }
732
- const parentValue = this.values[field.condition.field];
733
- return parentValue === field.condition.value;
742
+ if (!field.condition) return true;
743
+ const actual = this.values[field.condition.field];
744
+ const expected = field.condition.value;
745
+ // Handle loose match between booleans and strings
746
+ return String(actual) === String(expected);
734
747
  }
735
748
  validateForm() {
736
749
  const {
@@ -820,6 +833,7 @@ const EdsForm = class {
820
833
  }
821
834
  handleChange(e, field) {
822
835
  const target = e.target;
836
+ let newValue = target.value;
823
837
  if (target.type === 'checkbox') {
824
838
  // Get the current comma separated string or default to an empty string.
825
839
  const currentStr = this.values[field.name] || '';
@@ -834,16 +848,14 @@ const EdsForm = class {
834
848
  // Remove the value from the array if the checkbox is unchecked.
835
849
  valuesArray = valuesArray.filter(item => item !== target.value);
836
850
  }
837
- // Reassemble the comma separated string and update your form values.
838
- this.values = Object.assign(Object.assign({}, this.values), {
839
- [field.name]: valuesArray.join(',')
840
- });
841
- } else {
842
- // Handle non-checkbox input normally.
843
- this.values = Object.assign(Object.assign({}, this.values), {
844
- [field.name]: target.value
845
- });
851
+ newValue = valuesArray.join(',');
852
+ } else if (target.type === 'radio') {
853
+ if (!target.checked) return; // Only react to the selected radio
854
+ newValue = target.value;
846
855
  }
856
+ this.values = Object.assign(Object.assign({}, this.values), {
857
+ [field.name]: newValue
858
+ });
847
859
  // If it’s the password field, return here for no event emission
848
860
  if (field.name === 'password') {
849
861
  return;
@@ -852,13 +864,15 @@ const EdsForm = class {
852
864
  this.form.emit({
853
865
  event: 'change',
854
866
  field: field.name,
855
- value: target.type === 'checkbox' ? this.values[field.name] : target.value,
867
+ value: newValue,
856
868
  message: `${field.name} updated`
857
869
  //data: this.makeFormData()
858
870
  });
859
871
  }
860
872
  handleInput(e, field) {
861
873
  const target = e.target;
874
+ if (target.type === 'radio' && !target.checked) return;
875
+ const newValue = target.value;
862
876
  // Update the field's value in state.
863
877
  //this.values = { ...this.values, [field.name]: target.value };
864
878
  // Create a copy of the current errors.
@@ -877,7 +891,7 @@ const EdsForm = class {
877
891
  this.form.emit({
878
892
  event: 'input',
879
893
  field: field.name,
880
- value: target.type === 'checkbox' ? this.values[field.name] : target.value,
894
+ value: newValue,
881
895
  message: `${field.name} updated`
882
896
  //data: this.makeFormData()
883
897
  });
@@ -942,14 +956,14 @@ const EdsForm = class {
942
956
  const hiddenFields = this.parsedFields.filter(field => field.type === 'hidden');
943
957
  const otherFields = this.parsedFields.filter(field => field.type !== 'hidden');
944
958
  return h("form", {
945
- key: '1a53a4f0d2b8420a14db6fe35548a86cfeb8b698',
959
+ key: '98825e73a0279bed49b82caf2cc0529f30b53c70',
946
960
  ref: el => this.formEl = el,
947
961
  autocomplete: "on",
948
962
  onSubmit: this.handleSubmit
949
963
  }, h("div", {
950
- key: '8fdd2fa6b73f24c025b43d6f0b34cdbb22e0ec82'
964
+ key: '6b9abe2a6c2d091d57ea9ca383d9edb5d48445dc'
951
965
  }, h("slot", {
952
- key: '385f8c71b86b7ab9a74c1b7a0204331d0022467f'
966
+ key: '930bcd24d9b1c6ec1b29ccb1c3150897fa9d0a35'
953
967
  }), hiddenFields.map((field, index) => h("eds-input", {
954
968
  key: index,
955
969
  type: "hidden",
@@ -967,6 +981,9 @@ const EdsForm = class {
967
981
  label: field.label,
968
982
  placeholder: field.placeholder,
969
983
  value: this.values[field.name] || null,
984
+ min: field.min,
985
+ max: field.max,
986
+ step: field.step,
970
987
  type: field.type,
971
988
  icon: field.icon || null,
972
989
  disabled: field.disabled,
@@ -983,10 +1000,10 @@ const EdsForm = class {
983
1000
  options: field.options
984
1001
  });
985
1002
  })), this.formBtn && h("div", {
986
- key: '0a120557c574112a8686087cfe2dbf3aae3feaa5',
1003
+ key: 'e0ab2f16ff4a677a2b09a1069212e374f6d6eff8',
987
1004
  class: "mt-20"
988
1005
  }, h("eds-button", {
989
- key: '277a39f0d82e01f549966aa0c91347e090a82bc7',
1006
+ key: '781250d5e456a3f0176ade6e28356063c6981bb7',
990
1007
  intent: "primary",
991
1008
  label: this.formBtnLabel,
992
1009
  disabled: this.isSubmitting,
@@ -1353,6 +1370,9 @@ const EdsInput = class {
1353
1370
  this.maxLength = undefined;
1354
1371
  this.options = [];
1355
1372
  this.extraClass = undefined;
1373
+ this.min = undefined;
1374
+ this.max = undefined;
1375
+ this.step = undefined;
1356
1376
  this.innerVal = '';
1357
1377
  this.maxLengthReached = false;
1358
1378
  }
@@ -1375,7 +1395,7 @@ const EdsInput = class {
1375
1395
  const withIcon = !!this.icon;
1376
1396
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
1377
1397
  return h("div", {
1378
- key: '5c66c14b19aa3d5fc37e7a77a2d1194fa0be9b8c',
1398
+ key: '8645092d1b4c53609cbac2077fd0575f7bae4aaa',
1379
1399
  class: "relative flex items-center"
1380
1400
  }, this.type === 'textarea' ? h("textarea", {
1381
1401
  id: this.inputId || this.name,
@@ -1404,7 +1424,7 @@ const EdsInput = class {
1404
1424
  value: option.value,
1405
1425
  selected: option.value === this.innerVal,
1406
1426
  key: option.value
1407
- }, option.label))) : h("input", {
1427
+ }, option.label))) : h("input", Object.assign({
1408
1428
  id: this.inputId || this.name,
1409
1429
  name: this.name,
1410
1430
  placeholder: this.placeholder,
@@ -1412,7 +1432,12 @@ const EdsInput = class {
1412
1432
  required: this.required,
1413
1433
  disabled: this.disabled,
1414
1434
  type: this.type,
1415
- checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined,
1435
+ checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined
1436
+ }, this.type === 'number' ? {
1437
+ min: this.min,
1438
+ max: this.max,
1439
+ step: this.step
1440
+ } : {}, {
1416
1441
  class: `
1417
1442
  ${this.extraClass || ''}
1418
1443
  input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
@@ -1424,11 +1449,11 @@ const EdsInput = class {
1424
1449
  maxlength: this.maxLength,
1425
1450
  onInput: this.handleInput,
1426
1451
  onChange: this.handleInput
1427
- }), this.maxLength && this.type === 'textarea' && h("span", {
1428
- key: '4326db3729dea8bbddb7a109a90424aa832aded7',
1452
+ })), this.maxLength && this.type === 'textarea' && h("span", {
1453
+ key: '3cbf1dbffabb0cb895c6b69651933867584606d0',
1429
1454
  class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}`
1430
1455
  }, this.maxLength), this.icon && h("eds-icon-wrapper", {
1431
- key: 'df2f5598aedd36b9cb2ce886fb8ea08da58dc5ff',
1456
+ key: 'fb3a7051ecb72a5f425a0590dae14ee731e40a60',
1432
1457
  class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`,
1433
1458
  icon: this.icon
1434
1459
  }));
@@ -1450,21 +1475,44 @@ const EdsInputField = class {
1450
1475
  this.edsinput = createEvent(this, "edsinput", 7);
1451
1476
  this.edschange = createEvent(this, "edschange", 7);
1452
1477
  this.handleNativeInput = ev => {
1453
- var _a;
1478
+ var _a, _b;
1454
1479
  (_a = this.onInput) === null || _a === void 0 ? void 0 : _a.call(this, ev);
1455
1480
  if (this.shouldEmitValue()) {
1456
- const newValue = ev.target.value;
1481
+ const target = ev.target;
1482
+ let value = target.value;
1483
+ if (this.type === 'checkbox' && ((_b = this.parsedOptions) === null || _b === void 0 ? void 0 : _b.length) > 0) {
1484
+ // checkbox group case
1485
+ const checkboxes = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
1486
+ value = Array.from(checkboxes).filter(cb => cb.checked).map(cb => cb.value);
1487
+ } else if (this.type === 'checkbox') {
1488
+ value = target.checked;
1489
+ } else if (this.type === 'radio') {
1490
+ value = target.value;
1491
+ } else {
1492
+ value = target.value;
1493
+ }
1457
1494
  this.edsinput.emit({
1458
- value: newValue
1495
+ value
1459
1496
  });
1460
1497
  }
1461
1498
  };
1462
1499
  this.handleNativeChange = ev => {
1463
- var _a;
1500
+ var _a, _b;
1464
1501
  (_a = this.onChangeNative) === null || _a === void 0 ? void 0 : _a.call(this, ev);
1465
1502
  if (this.shouldEmitValue()) {
1466
1503
  const target = ev.target;
1467
- const value = target.value;
1504
+ let value = target.value;
1505
+ if (this.type === 'checkbox' && ((_b = this.parsedOptions) === null || _b === void 0 ? void 0 : _b.length) > 0) {
1506
+ // checkbox group case
1507
+ const checkboxes = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
1508
+ value = Array.from(checkboxes).filter(cb => cb.checked).map(cb => cb.value);
1509
+ } else if (this.type === 'checkbox') {
1510
+ value = target.checked;
1511
+ } else if (this.type === 'radio') {
1512
+ value = target.value;
1513
+ } else {
1514
+ value = target.value;
1515
+ }
1468
1516
  this.edschange.emit({
1469
1517
  value
1470
1518
  });
@@ -1485,6 +1533,9 @@ const EdsInputField = class {
1485
1533
  this.errorMessage = undefined;
1486
1534
  this.value = undefined;
1487
1535
  this.maxLength = undefined;
1536
+ this.min = undefined;
1537
+ this.max = undefined;
1538
+ this.step = undefined;
1488
1539
  this.options = undefined;
1489
1540
  this.type = 'text';
1490
1541
  this.onChangeNative = undefined;
@@ -1507,7 +1558,7 @@ const EdsInputField = class {
1507
1558
  return [];
1508
1559
  }
1509
1560
  render() {
1510
- const inputOpts = {
1561
+ const inputOpts = Object.assign({
1511
1562
  name: this.name,
1512
1563
  id: this.inputId,
1513
1564
  placeholder: this.placeholder,
@@ -1520,9 +1571,13 @@ const EdsInputField = class {
1520
1571
  error: this.error,
1521
1572
  icon: this.icon,
1522
1573
  checked: this.checked
1523
- };
1574
+ }, this.type === 'number' ? {
1575
+ min: this.min,
1576
+ max: this.max,
1577
+ step: this.step
1578
+ } : {});
1524
1579
  return h("div", {
1525
- key: '6f048dc1418d0738fc097d3c48148ccfdf70fbdc'
1580
+ key: '48926c14240f7e26d2277729d829d98ab17f9eee'
1526
1581
  }, this.type === 'checkbox' || this.type === 'radio' ? this.parsedOptions.length > 0 ? h("fieldset", {
1527
1582
  class: "space-y-4 mt-8"
1528
1583
  }, h("div", {
@@ -1547,7 +1602,7 @@ const EdsInputField = class {
1547
1602
  class: "flex items-center gap-x-8"
1548
1603
  }, h("eds-input", Object.assign({}, inputOpts, {
1549
1604
  value: this.value,
1550
- checked: this.value === 'on'
1605
+ checked: this.value === 'on' || this.checked
1551
1606
  })), this.label && h("eds-input-label", {
1552
1607
  name: this.inputId || this.name,
1553
1608
  label: this.label,
@@ -1593,10 +1648,10 @@ const EdsInputField = class {
1593
1648
  value: numberValue
1594
1649
  }));
1595
1650
  })() : h("eds-input", Object.assign({}, inputOpts))), h("div", {
1596
- key: '27fb201362b478009fdc68a285395bfc24e84d45',
1651
+ key: '72b565ac1c52a56d7e563e227baf187d72f2ba21',
1597
1652
  class: "mt-4"
1598
1653
  }, h("eds-input-footer", {
1599
- key: 'cd3d5742879b13ab62f9ba989971290b527be3ca',
1654
+ key: '65c40184d6fd5dfc730a46ffe8e826687c7d6f36',
1600
1655
  id: `${this.name}-footer`,
1601
1656
  name: this.name,
1602
1657
  message: this.message,
@@ -3109,10 +3164,9 @@ const EdsTable = class {
3109
3164
  }
3110
3165
  updateColumns() {
3111
3166
  var _a, _b;
3112
- // 1) Grab all data‐keys from the first row (if any) as before:
3167
+ // Grab all data‐keys from the first row (if any) as before:
3113
3168
  this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
3114
- // 2) Instead of pushing each action.name, we add just a single “actions” column
3115
- // (you can call it anything; we’ll detect it in render())
3169
+ // Instead of pushing each action.name, add just a single “actions” column
3116
3170
  if (((_b = (_a = this.parsedActions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0 && this.tbData.length > 0) {
3117
3171
  this.columns.push('actions');
3118
3172
  }
@@ -3142,9 +3196,9 @@ const EdsTable = class {
3142
3196
  const paginatedRows = this.getPaginatedRows();
3143
3197
  const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
3144
3198
  return h("div", {
3145
- key: '5034177431626ab2bfc5fd0118c006d11a4f6e96'
3199
+ key: 'f188b98870101f250e8515178d50763bb708ade5'
3146
3200
  }, this.searchEnabled && h("div", {
3147
- key: '86e1a6ffc4bed69f290b3a53031341ab276eaf04'
3201
+ key: '96f046ad286df6cb46e9f9f6d3e45a69f90af108'
3148
3202
  }, h("eds-input-field", {
3149
3203
  key: 1,
3150
3204
  name: "search",
@@ -3153,29 +3207,26 @@ const EdsTable = class {
3153
3207
  placeholder: "Search...",
3154
3208
  onInput: event => this.handleSearch(event)
3155
3209
  })), h("div", {
3156
- key: 'bc11838d819ecf89c5ba1cc1cfe7ac0af0e82b59',
3210
+ key: 'bbf27504732266f3e3ae299fcf742a653a23fdef',
3157
3211
  class: "mt-20"
3158
3212
  }, h("table", {
3159
- key: '97f16b65eb1d9387e9ca7588184c9e68c1afcc2e',
3213
+ key: 'a1c76a7b0d4c4a1382c34cf58a49896567610403',
3160
3214
  class: "block overflow-x-auto mt-6 p-0"
3161
3215
  }, h("thead", {
3162
- key: 'f4d64ada28c225db1b224277513e663a99de1cec'
3216
+ key: 'ea7e4b5d1c48c63094a96ba5c8fb38bf8e805024'
3163
3217
  }, h("tr", {
3164
- key: 'c6a69e159cceada0f7143c0acb787e5c23242ae7',
3218
+ key: '6e49bc93f9678f5f6449269728ca893a88ceb51a',
3165
3219
  class: "m-0 p-0 border border-softer even:bg-inverse-softer"
3166
3220
  }, this.columns.map(col => {
3167
3221
  var _a;
3168
- // 3) For the “actions” column, override the header to “Actions”
3169
3222
  if (col === 'actions') {
3170
- // You can choose a smaller min‐width here if you wish:
3171
3223
  return h("th", {
3172
3224
  class: "m-0 py-8 border border-softer f-ui-02 break-words",
3173
3225
  style: {
3174
3226
  minWidth: `${columnWidth - 4}px`
3175
3227
  }
3176
- }, "Actions");
3228
+ });
3177
3229
  }
3178
- // Otherwise, render column name or action label if you do want to override:
3179
3230
  if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
3180
3231
  return h("th", {
3181
3232
  class: "m-0 py-8 border border-softer f-ui-02 break-words",
@@ -3186,13 +3237,12 @@ const EdsTable = class {
3186
3237
  }
3187
3238
  return null;
3188
3239
  }))), h("tbody", {
3189
- key: '133af82fdd1f820e853734ab48123cb3db527e15'
3240
+ key: '7f09b3133241c4a19ad75c27134c04192e9dc357'
3190
3241
  }, paginatedRows.map(row => h("tr", {
3191
3242
  class: "m-0 p-0 border border-softer even:bg-inverse-softer"
3192
3243
  }, this.columns.map(col => {
3193
3244
  var _a;
3194
3245
  if (col === 'actions') {
3195
- // 4) Render ALL actions inside a single <td> for this row:
3196
3246
  return h("td", {
3197
3247
  class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell",
3198
3248
  style: {
@@ -3212,7 +3262,7 @@ const EdsTable = class {
3212
3262
  }, this.renderSingleActionCell(act.name, row)))));
3213
3263
  }
3214
3264
  if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
3215
- // Regular data cell:
3265
+ // Regular data cell
3216
3266
  return h("td", {
3217
3267
  class: "text-center border border-softer m-0 py-8 f-ui-2 break-words",
3218
3268
  style: {
@@ -3222,10 +3272,10 @@ const EdsTable = class {
3222
3272
  }
3223
3273
  return null;
3224
3274
  })))))), this.shouldEnablePagination() && h("div", {
3225
- key: '85032d06cd0ac5dae9b504d423fceba3cd074861',
3275
+ key: 'ceb320ba2e1cb14e4220c653c92bb2a9e8bf3593',
3226
3276
  class: "mt-20"
3227
3277
  }, h("eds-pagination", {
3228
- key: '8caf6f57960e222c04d45f57a5811cd7bd524f4c',
3278
+ key: '19c22566443e476742fd7f5e232c9240ecb34bec',
3229
3279
  currentPage: this.currentPage,
3230
3280
  lastPage: lastPage,
3231
3281
  perPage: this.rowsPerPage,
@@ -3433,6 +3483,96 @@ const EdsTag = class {
3433
3483
  }
3434
3484
  };
3435
3485
  EdsTag.style = EdsTagStyle0;
3486
+ const edsToastCss = ".relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}";
3487
+ const EdsToastStyle0 = edsToastCss;
3488
+ const toastStyles = cva(['relative bottom-4 w-auto p-12 rounded-lg shadow-md'], {
3489
+ variants: {
3490
+ intent: {
3491
+ default: 'bg-dark text-light',
3492
+ success: 'bg-success text-dark',
3493
+ error: 'bg-error text-light',
3494
+ warning: 'bg-warning text-dark'
3495
+ }
3496
+ },
3497
+ defaultVariants: {
3498
+ intent: 'default'
3499
+ }
3500
+ });
3501
+ const EdsToast = class {
3502
+ constructor(hostRef) {
3503
+ registerInstance(this, hostRef);
3504
+ this.toast = createEvent(this, "toast", 7);
3505
+ /**
3506
+ * Dismisses the toast.
3507
+ */
3508
+ this.dismissToast = () => {
3509
+ this.toast.emit({
3510
+ visible: false,
3511
+ label: 'dismissed'
3512
+ });
3513
+ this.visible = false;
3514
+ };
3515
+ this.message = undefined;
3516
+ this.intent = 'default';
3517
+ this.duration = undefined;
3518
+ this.visible = true;
3519
+ }
3520
+ componentDidLoad() {
3521
+ const btn = this.el.shadowRoot.querySelector('eds-button');
3522
+ this.emitContext(btn);
3523
+ }
3524
+ /**
3525
+ * Emits a custom event called `parentContext` for a given button element.
3526
+ * This event provides context information about the toast component.
3527
+ *
3528
+ * @param btnElement - The link element to which the event will be dispatched.
3529
+ */
3530
+ emitContext(btnElement) {
3531
+ const event = new CustomEvent('parentContext', {
3532
+ detail: {
3533
+ componentName: this.el.tagName.toLowerCase(),
3534
+ identifier: null
3535
+ }
3536
+ });
3537
+ btnElement.dispatchEvent(event);
3538
+ }
3539
+ connectedCallback() {
3540
+ if (this.duration && this.duration > 0) {
3541
+ this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
3542
+ }
3543
+ }
3544
+ disconnectedCallback() {
3545
+ // Clear the timeout when the component is removed
3546
+ clearTimeout(this.dismissTimeout);
3547
+ }
3548
+ render() {
3549
+ if (!this.visible) {
3550
+ return null;
3551
+ }
3552
+ const classes = toastStyles({
3553
+ intent: this.intent
3554
+ });
3555
+ return h("div", {
3556
+ class: classes,
3557
+ role: "alert",
3558
+ "aria-live": "assertive"
3559
+ }, h("div", {
3560
+ class: "flex items-center justify-between gap-4"
3561
+ }, h("span", {
3562
+ class: "f-ui-01"
3563
+ }, this.message), h("eds-button", {
3564
+ intent: "tertiary",
3565
+ icon: "close",
3566
+ "aria-label": "Close Toast",
3567
+ onClick: () => this.dismissToast(),
3568
+ "extra-class": "ml-8"
3569
+ })));
3570
+ }
3571
+ get el() {
3572
+ return getElement(this);
3573
+ }
3574
+ };
3575
+ EdsToast.style = EdsToastStyle0;
3436
3576
  const edsUserCss = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}";
3437
3577
  const EdsUserStyle0 = edsUserCss;
3438
3578
  const EdsUser = class {
@@ -3517,4 +3657,4 @@ const EdsUser = class {
3517
3657
  };
3518
3658
  EdsUser.style = EdsUserStyle0;
3519
3659
 
3520
- export { EdsAvatar as eds_avatar, EdsBlockBreak as eds_block_break, EdsButton as eds_button, EdsDropdown as eds_dropdown, EdsFooter as eds_footer, EdsForm as eds_form, EdsFullscreenMenu as eds_fullscreen_menu, EdsHeader as eds_header, EdsIconWrapper as eds_icon_wrapper, EdsImg as eds_img, EdsInput as eds_input, EdsInputField as eds_input_field, EdsInputFooter as eds_input_footer, EdsInputLabel as eds_input_label, EdsInputRange as eds_input_range, EdsInputSearch as eds_input_search, EdsInputSelect as eds_input_select, EdsLink as eds_link, EdsLogo as eds_logo, EdsModal as eds_modal, EdsPagination as eds_pagination, EdsSocialNetworks as eds_social_networks, EdsSteps as eds_steps, EdsStepsV2 as eds_steps_v2, EdsTable as eds_table, EdsTabs as eds_tabs, EdsTag as eds_tag, EdsUser as eds_user };
3660
+ export { EdsAvatar as eds_avatar, EdsBlockBreak as eds_block_break, EdsButton as eds_button, EdsDropdown as eds_dropdown, EdsFooter as eds_footer, EdsForm as eds_form, EdsFullscreenMenu as eds_fullscreen_menu, EdsHeader as eds_header, EdsIconWrapper as eds_icon_wrapper, EdsImg as eds_img, EdsInput as eds_input, EdsInputField as eds_input_field, EdsInputFooter as eds_input_footer, EdsInputLabel as eds_input_label, EdsInputRange as eds_input_range, EdsInputSearch as eds_input_search, EdsInputSelect as eds_input_select, EdsLink as eds_link, EdsLogo as eds_logo, EdsModal as eds_modal, EdsPagination as eds_pagination, EdsSocialNetworks as eds_social_networks, EdsSteps as eds_steps, EdsStepsV2 as eds_steps_v2, EdsTable as eds_table, EdsTabs as eds_tabs, EdsTag as eds_tag, EdsToast as eds_toast, EdsUser as eds_user };
package/index.esm2.js CHANGED
@@ -2760,9 +2760,9 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2760
2760
  return importedModule[exportName];
2761
2761
  };
2762
2762
  switch (bundleId) {
2763
- case 'eds-avatar_28':
2763
+ case 'eds-avatar_29':
2764
2764
  return import(/* webpackMode: "lazy" */
2765
- './eds-avatar_28.entry.esm.js').then(processMod, consoleError);
2765
+ './eds-avatar_29.entry.esm.js').then(processMod, consoleError);
2766
2766
  case 'components-section':
2767
2767
  return import(/* webpackMode: "lazy" */
2768
2768
  './components-section.entry.esm.js').then(processMod, consoleError);
@@ -2970,9 +2970,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2970
2970
  case 'eds-splash-screen':
2971
2971
  return import(/* webpackMode: "lazy" */
2972
2972
  './eds-splash-screen.entry.esm.js').then(processMod, consoleError);
2973
- case 'eds-toast':
2974
- return import(/* webpackMode: "lazy" */
2975
- './eds-toast.entry.esm.js').then(processMod, consoleError);
2976
2973
  case 'logo-variations-horizontal_2':
2977
2974
  return import(/* webpackMode: "lazy" */
2978
2975
  './logo-variations-horizontal_2.entry.esm.js').then(processMod, consoleError);
@@ -4514,7 +4511,7 @@ const globalScripts = () => {};
4514
4511
  const defineCustomElements = async (win, options) => {
4515
4512
  if (typeof window === 'undefined') return undefined;
4516
4513
  await globalScripts();
4517
- return bootstrapLazy(JSON.parse("[[\"eds-avatar_28\",[[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\"]}],[1,\"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]}],[1,\"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\"]}]]],[\"eds-trl\",[[0,\"eds-trl\",{\"applications\":[1]}]]],[\"logo-space\",[[1,\"logo-space\"]]],[\"svg-repository\",[[1,\"svg-repository\"]]],[\"docs-palettes\",[[0,\"docs-palettes\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"components-section\",[[0,\"components-section\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-card-section\",[[1,\"eds-card-section\",{\"cards\":[1],\"occupyCols\":[2,\"occupy-cols\"]}]]],[\"eds-timeline\",[[1,\"eds-timeline\",{\"events\":[1],\"selectedEvent\":[32],\"parsedEvents\":[32]},null,{\"events\":[\"parseEvents\"]}]]],[\"docs-tokens\",[[0,\"docs-tokens\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-card-tool\",[[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]}]]],[\"eds-cookies-preference\",[[0,\"eds-cookies-preference\",{\"buttonText\":[1,\"button-text\"],\"intent\":[1],\"showMatomoNotice\":[32],\"noticeKey\":[32]}]]],[\"eds-app-root\",[[1,\"eds-app-root\",{\"isAuthenticated\":[32]}]]],[\"eds-card-project\",[[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]}]]],[\"eds-feedback\",[[1,\"eds-feedback\",{\"headingLevel\":[1,\"heading-level\"],\"type\":[1],\"count\":[2],\"label\":[1],\"description\":[1],\"textMapping\":[1,\"text-mapping\"],\"selectedRating\":[32]},[[16,\"rating\",\"ratingUpdated\"]]]]],[\"eds-toast-manager\",[[1,\"eds-toast-manager\",{\"toasts\":[32]}]]],[\"incorrect-use-of-colors\",[[0,\"incorrect-use-of-colors\"]]],[\"logo-variations-tabs\",[[0,\"logo-variations-tabs\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"correct-use-of-colors\",[[0,\"correct-use-of-colors\"]]],[\"eds-breadcrumb\",[[1,\"eds-breadcrumb\",{\"items\":[1],\"intent\":[1],\"parsedItems\":[32],\"isSmallScreen\":[32],\"maxVisibleItems\":[32]},null,{\"items\":[\"parseItems\"]}]]],[\"eds-frame\",[[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]}]]],[\"token-ratios\",[[0,\"token-ratios\"]]],[\"token-typography\",[[0,\"token-typography\"]]],[\"eds-card-tags\",[[1,\"eds-card-tags\",{\"accent\":[4],\"tags\":[16]}]]],[\"eds-gauge\",[[1,\"eds-gauge\",{\"size\":[2],\"valueMin\":[2,\"value-min\"],\"valueMax\":[2,\"value-max\"],\"value\":[2],\"thickness\":[2],\"variant\":[1]}]]],[\"eds-icon-arrow-diagonal\",[[0,\"eds-icon-arrow-diagonal\",{\"class\":[1]}]]],[\"eds-icon-arrow-right\",[[0,\"eds-icon-arrow-right\",{\"class\":[1]}]]],[\"eds-icon-bluesky\",[[0,\"eds-icon-bluesky\",{\"class\":[1]}]]],[\"eds-icon-bookmark\",[[0,\"eds-icon-bookmark\",{\"class\":[1]}]]],[\"eds-icon-chevron-down\",[[0,\"eds-icon-chevron-down\",{\"class\":[1]}]]],[\"eds-icon-chevron-left\",[[0,\"eds-icon-chevron-left\",{\"class\":[1]}]]],[\"eds-icon-chevron-right\",[[0,\"eds-icon-chevron-right\",{\"class\":[1]}]]],[\"eds-icon-chevron-up\",[[0,\"eds-icon-chevron-up\",{\"class\":[1]}]]],[\"eds-icon-close\",[[0,\"eds-icon-close\",{\"class\":[1]}]]],[\"eds-icon-copy\",[[0,\"eds-icon-copy\",{\"class\":[1]}]]],[\"eds-icon-eu\",[[0,\"eds-icon-eu\",{\"class\":[1]}]]],[\"eds-icon-external\",[[0,\"eds-icon-external\",{\"class\":[1]}]]],[\"eds-icon-facebook\",[[0,\"eds-icon-facebook\",{\"class\":[1]}]]],[\"eds-icon-gitlab\",[[0,\"eds-icon-gitlab\",{\"class\":[1]}]]],[\"eds-icon-linkedin\",[[0,\"eds-icon-linkedin\",{\"class\":[1]}]]],[\"eds-icon-loader\",[[0,\"eds-icon-loader\",{\"class\":[1]}]]],[\"eds-icon-mastodon\",[[0,\"eds-icon-mastodon\",{\"class\":[1]}]]],[\"eds-icon-menu\",[[0,\"eds-icon-menu\",{\"class\":[1]}]]],[\"eds-icon-minus\",[[0,\"eds-icon-minus\",{\"class\":[1]}]]],[\"eds-icon-more\",[[0,\"eds-icon-more\",{\"class\":[1]}]]],[\"eds-icon-paper\",[[0,\"eds-icon-paper\",{\"class\":[1]}]]],[\"eds-icon-plus\",[[0,\"eds-icon-plus\",{\"class\":[1]}]]],[\"eds-icon-portal\",[[0,\"eds-icon-portal\",{\"class\":[1]}]]],[\"eds-icon-private\",[[0,\"eds-icon-private\",{\"class\":[1]}]]],[\"eds-icon-public\",[[0,\"eds-icon-public\",{\"class\":[1]}]]],[\"eds-icon-search\",[[0,\"eds-icon-search\",{\"class\":[1]}]]],[\"eds-icon-star\",[[0,\"eds-icon-star\",{\"class\":[1]}]]],[\"eds-icon-success\",[[0,\"eds-icon-success\",{\"class\":[1]}]]],[\"eds-icon-thumbs-down\",[[0,\"eds-icon-thumbs-down\",{\"class\":[1]}]]],[\"eds-icon-thumbs-up\",[[0,\"eds-icon-thumbs-up\",{\"class\":[1]}]]],[\"eds-icon-tutorial\",[[0,\"eds-icon-tutorial\",{\"class\":[1]}]]],[\"eds-icon-twitter\",[[0,\"eds-icon-twitter\",{\"class\":[1]}]]],[\"eds-icon-unknown\",[[0,\"eds-icon-unknown\",{\"class\":[1]}]]],[\"eds-icon-updown\",[[0,\"eds-icon-updown\",{\"class\":[1]}]]],[\"eds-icon-user\",[[0,\"eds-icon-user\",{\"class\":[1]}]]],[\"eds-icon-youtube\",[[0,\"eds-icon-youtube\",{\"class\":[1]}]]],[\"eds-pie\",[[1,\"eds-pie\",{\"size\":[2],\"slices\":[1],\"thickness\":[2],\"display\":[1],\"legend\":[4],\"colorScheme\":[1,\"color-scheme\"]}]]],[\"eds-switch\",[[1,\"eds-switch\",{\"checked\":[1540],\"disabled\":[4],\"labelOn\":[1,\"label-on\"],\"labelOff\":[1,\"label-off\"]}]]],[\"eds-tooltip\",[[1,\"eds-tooltip\",{\"content\":[1]},[[1,\"mouseenter\",\"handleHover\"]]]]],[\"logo-wrong-usage\",[[1,\"logo-wrong-usage\"]]],[\"token-spacing\",[[0,\"token-spacing\"]]],[\"eds-accordion\",[[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]}]]],[\"eds-matomo-notice\",[[1,\"eds-matomo-notice\",{\"heading\":[1,\"title\"],\"description\":[1],\"optOutMessage\":[1,\"opt-out-message\"],\"forceShow\":[4,\"force-show\"],\"showNotice\":[32]},[[16,\"cookies\",\"toggleCookiesConsent\"]]]]],[\"eds-rating\",[[1,\"eds-rating\",{\"ratingType\":[1,\"rating-type\"],\"ratingCount\":[2,\"rating-count\"],\"selectedRating\":[32]}]]],[\"eds-spinner\",[[1,\"eds-spinner\",{\"size\":[1],\"thickness\":[1],\"borderColor\":[1,\"border-color\"],\"bottomColor\":[1,\"bottom-color\"],\"background\":[1],\"fullscreen\":[4]}]]],[\"eds-splash-screen\",[[1,\"eds-splash-screen\",{\"inverse\":[4],\"initPromise\":[16],\"isVisible\":[32]},[[8,\"hideSplash\",\"handleHideSplash\"]],{\"initPromise\":[\"watchInitPromise\"]}]]],[\"eds-toast\",[[1,\"eds-toast\",{\"message\":[1],\"intent\":[1],\"duration\":[2],\"visible\":[32]}]]],[\"eds-progress-bar\",[[1,\"eds-progress-bar\",{\"value\":[1026],\"rounded\":[4],\"updateValue\":[64]}]]],[\"eds-card-generic\",[[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\"]]]]],[\"logo-variations-horizontal_2\",[[1,\"logo-variations-horizontal\"],[1,\"logo-variations-vertical\",{\"orientation\":[1],\"type\":[1]}]]],[\"eds-alert\",[[1,\"eds-alert\",{\"message\":[1],\"pressableLabel\":[1,\"pressable-label\"],\"pressableUrl\":[1,\"pressable-url\"],\"direction\":[1],\"intent\":[1],\"brd\":[1],\"withBtn\":[32]}]]],[\"token-list_3\",[[0,\"token-list\",{\"show\":[1]}],[0,\"token-radii\"],[0,\"token-shadows\"]]],[\"eds-section-core_2\",[[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\"]}]]],[\"eds-code-block\",[[1,\"eds-code-block\",{\"code\":[1],\"language\":[1],\"copied\":[32]}]]],[\"color-primary-palette_6\",[[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\"]]],[\"eds-card-desc_2\",[[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]}]]]]"), options);
4514
+ return bootstrapLazy(JSON.parse("[[\"eds-avatar_29\",[[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-toast\",{\"message\":[1],\"intent\":[1],\"duration\":[2],\"visible\":[32]}],[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\"],\"min\":[2],\"max\":[2],\"step\":[2],\"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\"],\"min\":[2],\"max\":[2],\"step\":[2],\"innerVal\":[32],\"maxLengthReached\":[32]},null,{\"value\":[\"onValueChanged\"]}],[1,\"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]}],[1,\"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\"]}]]],[\"eds-trl\",[[0,\"eds-trl\",{\"applications\":[1]}]]],[\"logo-space\",[[1,\"logo-space\"]]],[\"svg-repository\",[[1,\"svg-repository\"]]],[\"docs-palettes\",[[0,\"docs-palettes\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"components-section\",[[0,\"components-section\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-card-section\",[[1,\"eds-card-section\",{\"cards\":[1],\"occupyCols\":[2,\"occupy-cols\"]}]]],[\"eds-timeline\",[[1,\"eds-timeline\",{\"events\":[1],\"selectedEvent\":[32],\"parsedEvents\":[32]},null,{\"events\":[\"parseEvents\"]}]]],[\"docs-tokens\",[[0,\"docs-tokens\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-card-tool\",[[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]}]]],[\"eds-cookies-preference\",[[0,\"eds-cookies-preference\",{\"buttonText\":[1,\"button-text\"],\"intent\":[1],\"showMatomoNotice\":[32],\"noticeKey\":[32]}]]],[\"eds-app-root\",[[1,\"eds-app-root\",{\"isAuthenticated\":[32]}]]],[\"eds-card-project\",[[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]}]]],[\"eds-feedback\",[[1,\"eds-feedback\",{\"headingLevel\":[1,\"heading-level\"],\"type\":[1],\"count\":[2],\"label\":[1],\"description\":[1],\"textMapping\":[1,\"text-mapping\"],\"selectedRating\":[32]},[[16,\"rating\",\"ratingUpdated\"]]]]],[\"eds-toast-manager\",[[1,\"eds-toast-manager\",{\"toasts\":[32]}]]],[\"incorrect-use-of-colors\",[[0,\"incorrect-use-of-colors\"]]],[\"logo-variations-tabs\",[[0,\"logo-variations-tabs\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"correct-use-of-colors\",[[0,\"correct-use-of-colors\"]]],[\"eds-breadcrumb\",[[1,\"eds-breadcrumb\",{\"items\":[1],\"intent\":[1],\"parsedItems\":[32],\"isSmallScreen\":[32],\"maxVisibleItems\":[32]},null,{\"items\":[\"parseItems\"]}]]],[\"eds-frame\",[[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]}]]],[\"token-ratios\",[[0,\"token-ratios\"]]],[\"token-typography\",[[0,\"token-typography\"]]],[\"eds-card-tags\",[[1,\"eds-card-tags\",{\"accent\":[4],\"tags\":[16]}]]],[\"eds-gauge\",[[1,\"eds-gauge\",{\"size\":[2],\"valueMin\":[2,\"value-min\"],\"valueMax\":[2,\"value-max\"],\"value\":[2],\"thickness\":[2],\"variant\":[1]}]]],[\"eds-icon-arrow-diagonal\",[[0,\"eds-icon-arrow-diagonal\",{\"class\":[1]}]]],[\"eds-icon-arrow-right\",[[0,\"eds-icon-arrow-right\",{\"class\":[1]}]]],[\"eds-icon-bluesky\",[[0,\"eds-icon-bluesky\",{\"class\":[1]}]]],[\"eds-icon-bookmark\",[[0,\"eds-icon-bookmark\",{\"class\":[1]}]]],[\"eds-icon-chevron-down\",[[0,\"eds-icon-chevron-down\",{\"class\":[1]}]]],[\"eds-icon-chevron-left\",[[0,\"eds-icon-chevron-left\",{\"class\":[1]}]]],[\"eds-icon-chevron-right\",[[0,\"eds-icon-chevron-right\",{\"class\":[1]}]]],[\"eds-icon-chevron-up\",[[0,\"eds-icon-chevron-up\",{\"class\":[1]}]]],[\"eds-icon-close\",[[0,\"eds-icon-close\",{\"class\":[1]}]]],[\"eds-icon-copy\",[[0,\"eds-icon-copy\",{\"class\":[1]}]]],[\"eds-icon-eu\",[[0,\"eds-icon-eu\",{\"class\":[1]}]]],[\"eds-icon-external\",[[0,\"eds-icon-external\",{\"class\":[1]}]]],[\"eds-icon-facebook\",[[0,\"eds-icon-facebook\",{\"class\":[1]}]]],[\"eds-icon-gitlab\",[[0,\"eds-icon-gitlab\",{\"class\":[1]}]]],[\"eds-icon-linkedin\",[[0,\"eds-icon-linkedin\",{\"class\":[1]}]]],[\"eds-icon-loader\",[[0,\"eds-icon-loader\",{\"class\":[1]}]]],[\"eds-icon-mastodon\",[[0,\"eds-icon-mastodon\",{\"class\":[1]}]]],[\"eds-icon-menu\",[[0,\"eds-icon-menu\",{\"class\":[1]}]]],[\"eds-icon-minus\",[[0,\"eds-icon-minus\",{\"class\":[1]}]]],[\"eds-icon-more\",[[0,\"eds-icon-more\",{\"class\":[1]}]]],[\"eds-icon-paper\",[[0,\"eds-icon-paper\",{\"class\":[1]}]]],[\"eds-icon-plus\",[[0,\"eds-icon-plus\",{\"class\":[1]}]]],[\"eds-icon-portal\",[[0,\"eds-icon-portal\",{\"class\":[1]}]]],[\"eds-icon-private\",[[0,\"eds-icon-private\",{\"class\":[1]}]]],[\"eds-icon-public\",[[0,\"eds-icon-public\",{\"class\":[1]}]]],[\"eds-icon-search\",[[0,\"eds-icon-search\",{\"class\":[1]}]]],[\"eds-icon-star\",[[0,\"eds-icon-star\",{\"class\":[1]}]]],[\"eds-icon-success\",[[0,\"eds-icon-success\",{\"class\":[1]}]]],[\"eds-icon-thumbs-down\",[[0,\"eds-icon-thumbs-down\",{\"class\":[1]}]]],[\"eds-icon-thumbs-up\",[[0,\"eds-icon-thumbs-up\",{\"class\":[1]}]]],[\"eds-icon-tutorial\",[[0,\"eds-icon-tutorial\",{\"class\":[1]}]]],[\"eds-icon-twitter\",[[0,\"eds-icon-twitter\",{\"class\":[1]}]]],[\"eds-icon-unknown\",[[0,\"eds-icon-unknown\",{\"class\":[1]}]]],[\"eds-icon-updown\",[[0,\"eds-icon-updown\",{\"class\":[1]}]]],[\"eds-icon-user\",[[0,\"eds-icon-user\",{\"class\":[1]}]]],[\"eds-icon-youtube\",[[0,\"eds-icon-youtube\",{\"class\":[1]}]]],[\"eds-pie\",[[1,\"eds-pie\",{\"size\":[2],\"slices\":[1],\"thickness\":[2],\"display\":[1],\"legend\":[4],\"colorScheme\":[1,\"color-scheme\"]}]]],[\"eds-switch\",[[1,\"eds-switch\",{\"checked\":[1540],\"disabled\":[4],\"labelOn\":[1,\"label-on\"],\"labelOff\":[1,\"label-off\"]}]]],[\"eds-tooltip\",[[1,\"eds-tooltip\",{\"content\":[1]},[[1,\"mouseenter\",\"handleHover\"]]]]],[\"logo-wrong-usage\",[[1,\"logo-wrong-usage\"]]],[\"token-spacing\",[[0,\"token-spacing\"]]],[\"eds-matomo-notice\",[[1,\"eds-matomo-notice\",{\"heading\":[1,\"title\"],\"description\":[1],\"optOutMessage\":[1,\"opt-out-message\"],\"forceShow\":[4,\"force-show\"],\"showNotice\":[32]},[[16,\"cookies\",\"toggleCookiesConsent\"]]]]],[\"eds-rating\",[[1,\"eds-rating\",{\"ratingType\":[1,\"rating-type\"],\"ratingCount\":[2,\"rating-count\"],\"selectedRating\":[32]}]]],[\"eds-spinner\",[[1,\"eds-spinner\",{\"size\":[1],\"thickness\":[1],\"borderColor\":[1,\"border-color\"],\"bottomColor\":[1,\"bottom-color\"],\"background\":[1],\"fullscreen\":[4]}]]],[\"eds-splash-screen\",[[1,\"eds-splash-screen\",{\"inverse\":[4],\"initPromise\":[16],\"isVisible\":[32]},[[8,\"hideSplash\",\"handleHideSplash\"]],{\"initPromise\":[\"watchInitPromise\"]}]]],[\"eds-progress-bar\",[[1,\"eds-progress-bar\",{\"value\":[1026],\"rounded\":[4],\"updateValue\":[64]}]]],[\"eds-card-generic\",[[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\"]]]]],[\"logo-variations-horizontal_2\",[[1,\"logo-variations-horizontal\"],[1,\"logo-variations-vertical\",{\"orientation\":[1],\"type\":[1]}]]],[\"eds-accordion\",[[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]}]]],[\"eds-alert\",[[1,\"eds-alert\",{\"message\":[1],\"pressableLabel\":[1,\"pressable-label\"],\"pressableUrl\":[1,\"pressable-url\"],\"direction\":[1],\"intent\":[1],\"brd\":[1],\"withBtn\":[32]}]]],[\"eds-code-block\",[[1,\"eds-code-block\",{\"code\":[1],\"language\":[1],\"copied\":[32]}]]],[\"token-list_3\",[[0,\"token-list\",{\"show\":[1]}],[0,\"token-radii\"],[0,\"token-shadows\"]]],[\"eds-section-core_2\",[[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\"]}]]],[\"color-primary-palette_6\",[[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\"]]],[\"eds-card-desc_2\",[[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]}]]]]"), options);
4518
4515
  };
4519
4516
 
4520
4517
  (function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebrains/react",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",
@@ -1,93 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index.esm2.js';
2
- import { c as cva } from './index-39c58238.esm.js';
3
- import 'react';
4
- import 'react/jsx-runtime';
5
- import 'react-dom';
6
-
7
- const edsToastCss = ".relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}";
8
- const EdsToastStyle0 = edsToastCss;
9
- const toastStyles = cva(['relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md'], {
10
- variants: {
11
- intent: {
12
- default: 'bg-dark text-light',
13
- success: 'bg-success text-dark',
14
- error: 'bg-error text-light',
15
- warning: 'bg-warning text-dark'
16
- }
17
- },
18
- defaultVariants: {
19
- intent: 'default'
20
- }
21
- });
22
- const EdsToast = class {
23
- constructor(hostRef) {
24
- registerInstance(this, hostRef);
25
- /**
26
- * Dismisses the toast.
27
- */
28
- this.dismissToast = () => {
29
- this.visible = false;
30
- };
31
- this.message = undefined;
32
- this.intent = 'default';
33
- this.duration = undefined;
34
- this.visible = true;
35
- }
36
- componentDidLoad() {
37
- const btn = this.el.shadowRoot.querySelector('eds-button');
38
- this.emitContext(btn);
39
- }
40
- /**
41
- * Emits a custom event called `parentContext` for a given button element.
42
- * This event provides context information about the toast component.
43
- *
44
- * @param btnElement - The link element to which the event will be dispatched.
45
- */
46
- emitContext(btnElement) {
47
- const event = new CustomEvent('parentContext', {
48
- detail: {
49
- componentName: this.el.tagName.toLowerCase(),
50
- identifier: null
51
- }
52
- });
53
- btnElement.dispatchEvent(event);
54
- }
55
- connectedCallback() {
56
- if (this.duration && this.duration > 0) {
57
- this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
58
- }
59
- }
60
- disconnectedCallback() {
61
- // Clear the timeout when the component is removed
62
- clearTimeout(this.dismissTimeout);
63
- }
64
- render() {
65
- if (!this.visible) {
66
- return null;
67
- }
68
- const classes = toastStyles({
69
- intent: this.intent
70
- });
71
- return h("div", {
72
- class: classes,
73
- role: "alert",
74
- "aria-live": "assertive"
75
- }, h("div", {
76
- class: "flex items-center justify-between gap-4"
77
- }, h("span", {
78
- class: "f-ui-01"
79
- }, this.message), h("eds-button", {
80
- intent: "tertiary",
81
- icon: "close",
82
- "aria-label": "Close Toast",
83
- onClick: () => this.dismissToast(),
84
- "extra-class": "ml-8"
85
- })));
86
- }
87
- get el() {
88
- return getElement(this);
89
- }
90
- };
91
- EdsToast.style = EdsToastStyle0;
92
-
93
- export { EdsToast as eds_toast };