@nldd/design-system 0.8.39 → 0.8.40

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.
Files changed (65) hide show
  1. package/dist/components/components.js +1015 -409
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/index.d.ts.map +1 -1
  4. package/dist/components/index.js +1 -0
  5. package/dist/components/index.js.map +1 -1
  6. package/dist/components/inputs/checkbox/checkbox.d.ts +9 -1
  7. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  8. package/dist/components/inputs/checkbox/checkbox.js +22 -1
  9. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  10. package/dist/components/inputs/combo-box/combo-box.d.ts +7 -0
  11. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  12. package/dist/components/inputs/combo-box/combo-box.js +34 -1
  13. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  14. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +74 -0
  15. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -0
  16. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +175 -0
  17. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -0
  18. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts +2 -0
  19. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -0
  20. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +174 -0
  21. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -0
  22. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts +5 -0
  23. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -0
  24. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +48 -0
  25. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -0
  26. package/dist/components/inputs/number-field/number-field.d.ts +6 -0
  27. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  28. package/dist/components/inputs/number-field/number-field.js +21 -1
  29. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  30. package/dist/components/inputs/password-field/password-field.d.ts +7 -4
  31. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  32. package/dist/components/inputs/password-field/password-field.js +20 -5
  33. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  34. package/dist/components/inputs/radio-button/radio-button.d.ts +9 -1
  35. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  36. package/dist/components/inputs/radio-button/radio-button.js +21 -1
  37. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  38. package/dist/components/inputs/search-field/search-field.d.ts +7 -0
  39. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  40. package/dist/components/inputs/search-field/search-field.js +20 -1
  41. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  42. package/dist/components/inputs/segmented-control/segmented-control.d.ts +8 -0
  43. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  44. package/dist/components/inputs/segmented-control/segmented-control.js +48 -1
  45. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  46. package/dist/components/inputs/stepper/stepper.d.ts +10 -1
  47. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  48. package/dist/components/inputs/stepper/stepper.js +28 -0
  49. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  50. package/dist/components/inputs/switch/switch.d.ts +9 -1
  51. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  52. package/dist/components/inputs/switch/switch.js +22 -0
  53. package/dist/components/inputs/switch/switch.js.map +1 -1
  54. package/dist/components/inputs/text-field/text-field.d.ts +7 -3
  55. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  56. package/dist/components/inputs/text-field/text-field.js +20 -4
  57. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  58. package/dist/components/inputs/toggle-button/toggle-button.d.ts +9 -2
  59. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  60. package/dist/components/inputs/toggle-button/toggle-button.js +22 -2
  61. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  62. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  63. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +8 -1
  64. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  65. package/package.json +5 -1
@@ -740,14 +740,14 @@ const iconRegistry = /* @__PURE__ */ new Map([
740
740
  ["trash", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path fill="currentColor" fill-rule="evenodd" d="M8 4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2h5v2h-1.08L19 19.046A3 3 0 0 1 16 22H8a3 3 0 0 1-3-2.954L4.08 8H3V6h5zM6.087 8l.91 10.917L7 19a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l.003-.083L17.914 8zM14 6h-4V4h4zm-3 4v8H9v-8zm4 0v8h-2v-8z"/>\n</svg>'],
741
741
  ["underlined", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path fill="currentColor" d="M20 22H4v-2h16zM8.7 12.07q0 1.92.81 2.8.84.87 2.55.87 1.61 0 2.47-.91.89-.94.89-2.67V2h2.37v10.16q0 1.78-.72 3.1a4.7 4.7 0 0 1-2.04 2.02q-1.32.81-3.14.72-2.83.09-4.27-1.44c-.95-.9-1.42-2.36-1.42-4.2V2h2.5z"/>\n</svg>']
742
742
  ]);
743
- var __defProp$1d = Object.defineProperty;
744
- var __getOwnPropDesc$1c = Object.getOwnPropertyDescriptor;
745
- var __decorateClass$1f = (decorators, target, key, kind) => {
746
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1c(target, key) : target;
743
+ var __defProp$1e = Object.defineProperty;
744
+ var __getOwnPropDesc$1d = Object.getOwnPropertyDescriptor;
745
+ var __decorateClass$1g = (decorators, target, key, kind) => {
746
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1d(target, key) : target;
747
747
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
748
748
  if (decorator = decorators[i])
749
749
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
750
- if (kind && result) __defProp$1d(target, key, result);
750
+ if (kind && result) __defProp$1e(target, key, result);
751
751
  return result;
752
752
  };
753
753
  [
@@ -785,23 +785,23 @@ let NLDDIcon = class extends LitElement {
785
785
  }
786
786
  };
787
787
  NLDDIcon.styles = iconStyles;
788
- __decorateClass$1f([
788
+ __decorateClass$1g([
789
789
  property({ type: String })
790
790
  ], NLDDIcon.prototype, "name", 2);
791
- __decorateClass$1f([
791
+ __decorateClass$1g([
792
792
  state()
793
793
  ], NLDDIcon.prototype, "_iconSvg", 2);
794
- NLDDIcon = __decorateClass$1f([
794
+ NLDDIcon = __decorateClass$1g([
795
795
  customElement("nldd-icon")
796
796
  ], NLDDIcon);
797
- var __defProp$1c = Object.defineProperty;
798
- var __getOwnPropDesc$1b = Object.getOwnPropertyDescriptor;
799
- var __decorateClass$1e = (decorators, target, key, kind) => {
800
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1b(target, key) : target;
797
+ var __defProp$1d = Object.defineProperty;
798
+ var __getOwnPropDesc$1c = Object.getOwnPropertyDescriptor;
799
+ var __decorateClass$1f = (decorators, target, key, kind) => {
800
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1c(target, key) : target;
801
801
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
802
802
  if (decorator = decorators[i])
803
803
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
804
- if (kind && result) __defProp$1c(target, key, result);
804
+ if (kind && result) __defProp$1d(target, key, result);
805
805
  return result;
806
806
  };
807
807
  let NLDDButton = class extends LitElement {
@@ -849,49 +849,49 @@ let NLDDButton = class extends LitElement {
849
849
  }
850
850
  };
851
851
  NLDDButton.styles = buttonStyles;
852
- __decorateClass$1e([
852
+ __decorateClass$1f([
853
853
  property({ type: String, reflect: true })
854
854
  ], NLDDButton.prototype, "variant", 2);
855
- __decorateClass$1e([
855
+ __decorateClass$1f([
856
856
  property({ type: String, reflect: true })
857
857
  ], NLDDButton.prototype, "size", 2);
858
- __decorateClass$1e([
858
+ __decorateClass$1f([
859
859
  property({ type: Boolean, reflect: true, attribute: "full-width" })
860
860
  ], NLDDButton.prototype, "fullWidth", 2);
861
- __decorateClass$1e([
861
+ __decorateClass$1f([
862
862
  property({ type: Boolean, reflect: true, attribute: "expandable" })
863
863
  ], NLDDButton.prototype, "expandable", 2);
864
- __decorateClass$1e([
864
+ __decorateClass$1f([
865
865
  property({ type: String, reflect: true })
866
866
  ], NLDDButton.prototype, "type", 2);
867
- __decorateClass$1e([
867
+ __decorateClass$1f([
868
868
  property({ type: String })
869
869
  ], NLDDButton.prototype, "popovertarget", 2);
870
- __decorateClass$1e([
870
+ __decorateClass$1f([
871
871
  property({ type: Boolean, reflect: true })
872
872
  ], NLDDButton.prototype, "disabled", 2);
873
- __decorateClass$1e([
873
+ __decorateClass$1f([
874
874
  property({ type: String })
875
875
  ], NLDDButton.prototype, "text", 2);
876
- __decorateClass$1e([
876
+ __decorateClass$1f([
877
877
  property({ type: String, attribute: "start-icon" })
878
878
  ], NLDDButton.prototype, "startIcon", 2);
879
- __decorateClass$1e([
879
+ __decorateClass$1f([
880
880
  property({ type: String, attribute: "end-icon" })
881
881
  ], NLDDButton.prototype, "endIcon", 2);
882
- __decorateClass$1e([
882
+ __decorateClass$1f([
883
883
  property({ type: String, attribute: "accessible-label" })
884
884
  ], NLDDButton.prototype, "accessibleLabel", 2);
885
- __decorateClass$1e([
885
+ __decorateClass$1f([
886
886
  property({ type: String, reflect: true })
887
887
  ], NLDDButton.prototype, "href", 2);
888
- __decorateClass$1e([
888
+ __decorateClass$1f([
889
889
  property({ type: String })
890
890
  ], NLDDButton.prototype, "target", 2);
891
- __decorateClass$1e([
891
+ __decorateClass$1f([
892
892
  property({ type: String })
893
893
  ], NLDDButton.prototype, "rel", 2);
894
- NLDDButton = __decorateClass$1e([
894
+ NLDDButton = __decorateClass$1f([
895
895
  customElement("nldd-button")
896
896
  ], NLDDButton);
897
897
  const iconButtonStyles = css`
@@ -1359,14 +1359,14 @@ function isPointerMode() {
1359
1359
  function isTouchMode() {
1360
1360
  return getInputModality() === "touch";
1361
1361
  }
1362
- var __defProp$1b = Object.defineProperty;
1363
- var __getOwnPropDesc$1a = Object.getOwnPropertyDescriptor;
1364
- var __decorateClass$1d = (decorators, target, key, kind) => {
1365
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1a(target, key) : target;
1362
+ var __defProp$1c = Object.defineProperty;
1363
+ var __getOwnPropDesc$1b = Object.getOwnPropertyDescriptor;
1364
+ var __decorateClass$1e = (decorators, target, key, kind) => {
1365
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1b(target, key) : target;
1366
1366
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1367
1367
  if (decorator = decorators[i])
1368
1368
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1369
- if (kind && result) __defProp$1b(target, key, result);
1369
+ if (kind && result) __defProp$1c(target, key, result);
1370
1370
  return result;
1371
1371
  };
1372
1372
  let tooltipCounter = 0;
@@ -1569,19 +1569,19 @@ let NLDDTooltip = class extends LitElement {
1569
1569
  }
1570
1570
  };
1571
1571
  NLDDTooltip.styles = tooltipStyles;
1572
- __decorateClass$1d([
1572
+ __decorateClass$1e([
1573
1573
  property({ type: String, reflect: true })
1574
1574
  ], NLDDTooltip.prototype, "text", 2);
1575
- __decorateClass$1d([
1575
+ __decorateClass$1e([
1576
1576
  property({ type: String, reflect: true })
1577
1577
  ], NLDDTooltip.prototype, "placement", 2);
1578
- __decorateClass$1d([
1578
+ __decorateClass$1e([
1579
1579
  property({ type: Boolean, reflect: true })
1580
1580
  ], NLDDTooltip.prototype, "disabled", 2);
1581
- __decorateClass$1d([
1581
+ __decorateClass$1e([
1582
1582
  state()
1583
1583
  ], NLDDTooltip.prototype, "_visible", 2);
1584
- NLDDTooltip = __decorateClass$1d([
1584
+ NLDDTooltip = __decorateClass$1e([
1585
1585
  customElement("nldd-tooltip")
1586
1586
  ], NLDDTooltip);
1587
1587
  function renderContent(component) {
@@ -1643,14 +1643,14 @@ function template$l() {
1643
1643
  }
1644
1644
  return renderButton();
1645
1645
  }
1646
- var __defProp$1a = Object.defineProperty;
1647
- var __getOwnPropDesc$19 = Object.getOwnPropertyDescriptor;
1648
- var __decorateClass$1c = (decorators, target, key, kind) => {
1649
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$19(target, key) : target;
1646
+ var __defProp$1b = Object.defineProperty;
1647
+ var __getOwnPropDesc$1a = Object.getOwnPropertyDescriptor;
1648
+ var __decorateClass$1d = (decorators, target, key, kind) => {
1649
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1a(target, key) : target;
1650
1650
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1651
1651
  if (decorator = decorators[i])
1652
1652
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1653
- if (kind && result) __defProp$1a(target, key, result);
1653
+ if (kind && result) __defProp$1b(target, key, result);
1654
1654
  return result;
1655
1655
  };
1656
1656
  let NLDDIconButton = class extends LitElement {
@@ -1701,46 +1701,46 @@ let NLDDIconButton = class extends LitElement {
1701
1701
  }
1702
1702
  };
1703
1703
  NLDDIconButton.styles = iconButtonStyles;
1704
- __decorateClass$1c([
1704
+ __decorateClass$1d([
1705
1705
  property({ type: String, reflect: true })
1706
1706
  ], NLDDIconButton.prototype, "variant", 2);
1707
- __decorateClass$1c([
1707
+ __decorateClass$1d([
1708
1708
  property({ type: String, reflect: true })
1709
1709
  ], NLDDIconButton.prototype, "size", 2);
1710
- __decorateClass$1c([
1710
+ __decorateClass$1d([
1711
1711
  property({ type: Boolean, reflect: true })
1712
1712
  ], NLDDIconButton.prototype, "disabled", 2);
1713
- __decorateClass$1c([
1713
+ __decorateClass$1d([
1714
1714
  property({ type: String, reflect: true })
1715
1715
  ], NLDDIconButton.prototype, "type", 2);
1716
- __decorateClass$1c([
1716
+ __decorateClass$1d([
1717
1717
  property({ type: Boolean, reflect: true, attribute: "expandable" })
1718
1718
  ], NLDDIconButton.prototype, "expandable", 2);
1719
- __decorateClass$1c([
1719
+ __decorateClass$1d([
1720
1720
  property({ type: Boolean, reflect: true, attribute: "full-width" })
1721
1721
  ], NLDDIconButton.prototype, "fullWidth", 2);
1722
- __decorateClass$1c([
1722
+ __decorateClass$1d([
1723
1723
  property({ type: String })
1724
1724
  ], NLDDIconButton.prototype, "popovertarget", 2);
1725
- __decorateClass$1c([
1725
+ __decorateClass$1d([
1726
1726
  property({ type: String })
1727
1727
  ], NLDDIconButton.prototype, "text", 2);
1728
- __decorateClass$1c([
1728
+ __decorateClass$1d([
1729
1729
  property({ type: String })
1730
1730
  ], NLDDIconButton.prototype, "icon", 2);
1731
- __decorateClass$1c([
1731
+ __decorateClass$1d([
1732
1732
  property({ type: String, attribute: "accessible-label" })
1733
1733
  ], NLDDIconButton.prototype, "accessibleLabel", 2);
1734
- __decorateClass$1c([
1734
+ __decorateClass$1d([
1735
1735
  property({ type: String, reflect: true })
1736
1736
  ], NLDDIconButton.prototype, "href", 2);
1737
- __decorateClass$1c([
1737
+ __decorateClass$1d([
1738
1738
  property({ type: String })
1739
1739
  ], NLDDIconButton.prototype, "target", 2);
1740
- __decorateClass$1c([
1740
+ __decorateClass$1d([
1741
1741
  property({ type: String })
1742
1742
  ], NLDDIconButton.prototype, "rel", 2);
1743
- NLDDIconButton = __decorateClass$1c([
1743
+ NLDDIconButton = __decorateClass$1d([
1744
1744
  customElement("nldd-icon-button")
1745
1745
  ], NLDDIconButton);
1746
1746
  const splitButtonStyles = css`
@@ -2221,13 +2221,13 @@ function template$j() {
2221
2221
  ${this.icon ? html`<nldd-icon name=${this.icon}></nldd-icon>` : html`<slot></slot>`}
2222
2222
  `;
2223
2223
  }
2224
- var __defProp$19 = Object.defineProperty;
2225
- var __decorateClass$1b = (decorators, target, key, kind) => {
2224
+ var __defProp$1a = Object.defineProperty;
2225
+ var __decorateClass$1c = (decorators, target, key, kind) => {
2226
2226
  var result = void 0;
2227
2227
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2228
2228
  if (decorator = decorators[i])
2229
2229
  result = decorator(target, key, result) || result;
2230
- if (result) __defProp$19(target, key, result);
2230
+ if (result) __defProp$1a(target, key, result);
2231
2231
  return result;
2232
2232
  };
2233
2233
  function VisibilityMixin(Base) {
@@ -2263,22 +2263,22 @@ function VisibilityMixin(Base) {
2263
2263
  this._visibilityStyle.textContent = rules.join("\n");
2264
2264
  }
2265
2265
  }
2266
- __decorateClass$1b([
2266
+ __decorateClass$1c([
2267
2267
  property({ type: String, reflect: true, attribute: "hide-below" })
2268
2268
  ], WithVisibility.prototype, "hideBelow");
2269
- __decorateClass$1b([
2269
+ __decorateClass$1c([
2270
2270
  property({ type: String, reflect: true, attribute: "hide-above" })
2271
2271
  ], WithVisibility.prototype, "hideAbove");
2272
2272
  return WithVisibility;
2273
2273
  }
2274
- var __defProp$18 = Object.defineProperty;
2275
- var __getOwnPropDesc$18 = Object.getOwnPropertyDescriptor;
2276
- var __decorateClass$1a = (decorators, target, key, kind) => {
2277
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$18(target, key) : target;
2274
+ var __defProp$19 = Object.defineProperty;
2275
+ var __getOwnPropDesc$19 = Object.getOwnPropertyDescriptor;
2276
+ var __decorateClass$1b = (decorators, target, key, kind) => {
2277
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$19(target, key) : target;
2278
2278
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2279
2279
  if (decorator = decorators[i])
2280
2280
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2281
- if (kind && result) __defProp$18(target, key, result);
2281
+ if (kind && result) __defProp$19(target, key, result);
2282
2282
  return result;
2283
2283
  };
2284
2284
  let NLDDIconCell = class extends VisibilityMixin(LitElement) {
@@ -2294,19 +2294,19 @@ let NLDDIconCell = class extends VisibilityMixin(LitElement) {
2294
2294
  }
2295
2295
  };
2296
2296
  NLDDIconCell.styles = iconCellStyles;
2297
- __decorateClass$1a([
2297
+ __decorateClass$1b([
2298
2298
  property({ type: String, reflect: true, attribute: "vertical-alignment" })
2299
2299
  ], NLDDIconCell.prototype, "verticalAlignment", 2);
2300
- __decorateClass$1a([
2300
+ __decorateClass$1b([
2301
2301
  property({ type: String, reflect: true })
2302
2302
  ], NLDDIconCell.prototype, "size", 2);
2303
- __decorateClass$1a([
2303
+ __decorateClass$1b([
2304
2304
  property({ type: String, reflect: true })
2305
2305
  ], NLDDIconCell.prototype, "color", 2);
2306
- __decorateClass$1a([
2306
+ __decorateClass$1b([
2307
2307
  property({ type: String, reflect: true })
2308
2308
  ], NLDDIconCell.prototype, "icon", 2);
2309
- NLDDIconCell = __decorateClass$1a([
2309
+ NLDDIconCell = __decorateClass$1b([
2310
2310
  customElement("nldd-icon-cell")
2311
2311
  ], NLDDIconCell);
2312
2312
  const spacerCellStyles = css`
@@ -2354,14 +2354,14 @@ const spacerCellStyles = css`
2354
2354
  width: auto;
2355
2355
  }
2356
2356
  `;
2357
- var __defProp$17 = Object.defineProperty;
2358
- var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
2359
- var __decorateClass$19 = (decorators, target, key, kind) => {
2360
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$17(target, key) : target;
2357
+ var __defProp$18 = Object.defineProperty;
2358
+ var __getOwnPropDesc$18 = Object.getOwnPropertyDescriptor;
2359
+ var __decorateClass$1a = (decorators, target, key, kind) => {
2360
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$18(target, key) : target;
2361
2361
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2362
2362
  if (decorator = decorators[i])
2363
2363
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2364
- if (kind && result) __defProp$17(target, key, result);
2364
+ if (kind && result) __defProp$18(target, key, result);
2365
2365
  return result;
2366
2366
  };
2367
2367
  let NLDDSpacerCell = class extends VisibilityMixin(LitElement) {
@@ -2374,10 +2374,10 @@ let NLDDSpacerCell = class extends VisibilityMixin(LitElement) {
2374
2374
  }
2375
2375
  };
2376
2376
  NLDDSpacerCell.styles = spacerCellStyles;
2377
- __decorateClass$19([
2377
+ __decorateClass$1a([
2378
2378
  property({ type: String, reflect: true })
2379
2379
  ], NLDDSpacerCell.prototype, "size", 2);
2380
- NLDDSpacerCell = __decorateClass$19([
2380
+ NLDDSpacerCell = __decorateClass$1a([
2381
2381
  customElement("nldd-spacer-cell")
2382
2382
  ], NLDDSpacerCell);
2383
2383
  const textCellStyles = css`
@@ -2597,14 +2597,14 @@ function template$i() {
2597
2597
  ${this.supportingText ? html`<p class="text-cell__supporting-text">${renderQueryMark(this.supportingText, this.query, this.queryMarkMode)}</p>` : nothing}
2598
2598
  `;
2599
2599
  }
2600
- var __defProp$16 = Object.defineProperty;
2601
- var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
2602
- var __decorateClass$18 = (decorators, target, key, kind) => {
2603
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
2600
+ var __defProp$17 = Object.defineProperty;
2601
+ var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
2602
+ var __decorateClass$19 = (decorators, target, key, kind) => {
2603
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$17(target, key) : target;
2604
2604
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2605
2605
  if (decorator = decorators[i])
2606
2606
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2607
- if (kind && result) __defProp$16(target, key, result);
2607
+ if (kind && result) __defProp$17(target, key, result);
2608
2608
  return result;
2609
2609
  };
2610
2610
  let NLDDTextCell = class extends VisibilityMixin(LitElement) {
@@ -2655,46 +2655,46 @@ let NLDDTextCell = class extends VisibilityMixin(LitElement) {
2655
2655
  }
2656
2656
  };
2657
2657
  NLDDTextCell.styles = [textCellStyles];
2658
- __decorateClass$18([
2658
+ __decorateClass$19([
2659
2659
  property({ type: String, reflect: true })
2660
2660
  ], NLDDTextCell.prototype, "size", 2);
2661
- __decorateClass$18([
2661
+ __decorateClass$19([
2662
2662
  property({ type: String, reflect: true })
2663
2663
  ], NLDDTextCell.prototype, "color", 2);
2664
- __decorateClass$18([
2664
+ __decorateClass$19([
2665
2665
  property({ type: String, reflect: true })
2666
2666
  ], NLDDTextCell.prototype, "width", 2);
2667
- __decorateClass$18([
2667
+ __decorateClass$19([
2668
2668
  property({ type: String, reflect: true, attribute: "min-width" })
2669
2669
  ], NLDDTextCell.prototype, "minWidth", 2);
2670
- __decorateClass$18([
2670
+ __decorateClass$19([
2671
2671
  property({ type: String, reflect: true, attribute: "max-width" })
2672
2672
  ], NLDDTextCell.prototype, "maxWidth", 2);
2673
- __decorateClass$18([
2673
+ __decorateClass$19([
2674
2674
  property({ type: String, reflect: true, attribute: "min-height" })
2675
2675
  ], NLDDTextCell.prototype, "minHeight", 2);
2676
- __decorateClass$18([
2676
+ __decorateClass$19([
2677
2677
  property({ type: String, reflect: true, attribute: "horizontal-alignment" })
2678
2678
  ], NLDDTextCell.prototype, "horizontalAlignment", 2);
2679
- __decorateClass$18([
2679
+ __decorateClass$19([
2680
2680
  property({ type: String, reflect: true, attribute: "vertical-alignment" })
2681
2681
  ], NLDDTextCell.prototype, "verticalAlignment", 2);
2682
- __decorateClass$18([
2682
+ __decorateClass$19([
2683
2683
  property({ type: String })
2684
2684
  ], NLDDTextCell.prototype, "text", 2);
2685
- __decorateClass$18([
2685
+ __decorateClass$19([
2686
2686
  property({ type: String })
2687
2687
  ], NLDDTextCell.prototype, "overline", 2);
2688
- __decorateClass$18([
2688
+ __decorateClass$19([
2689
2689
  property({ type: String, attribute: "supporting-text" })
2690
2690
  ], NLDDTextCell.prototype, "supportingText", 2);
2691
- __decorateClass$18([
2691
+ __decorateClass$19([
2692
2692
  property({ type: String })
2693
2693
  ], NLDDTextCell.prototype, "query", 2);
2694
- __decorateClass$18([
2694
+ __decorateClass$19([
2695
2695
  property({ type: String, attribute: "query-mark-mode" })
2696
2696
  ], NLDDTextCell.prototype, "queryMarkMode", 2);
2697
- NLDDTextCell = __decorateClass$18([
2697
+ NLDDTextCell = __decorateClass$19([
2698
2698
  customElement("nldd-text-cell")
2699
2699
  ], NLDDTextCell);
2700
2700
  const textCell = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -2893,14 +2893,14 @@ function template$h() {
2893
2893
  </div>
2894
2894
  `;
2895
2895
  }
2896
- var __defProp$15 = Object.defineProperty;
2897
- var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
2898
- var __decorateClass$17 = (decorators, target, key, kind) => {
2899
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
2896
+ var __defProp$16 = Object.defineProperty;
2897
+ var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
2898
+ var __decorateClass$18 = (decorators, target, key, kind) => {
2899
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
2900
2900
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2901
2901
  if (decorator = decorators[i])
2902
2902
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2903
- if (kind && result) __defProp$15(target, key, result);
2903
+ if (kind && result) __defProp$16(target, key, result);
2904
2904
  return result;
2905
2905
  };
2906
2906
  let NLDDButtonGroup = class extends LitElement {
@@ -2933,26 +2933,26 @@ let NLDDButtonGroup = class extends LitElement {
2933
2933
  }
2934
2934
  };
2935
2935
  NLDDButtonGroup.styles = buttonGroupStyles;
2936
- __decorateClass$17([
2936
+ __decorateClass$18([
2937
2937
  property({ type: String, reflect: true })
2938
2938
  ], NLDDButtonGroup.prototype, "size", 2);
2939
- __decorateClass$17([
2939
+ __decorateClass$18([
2940
2940
  property({ type: String, reflect: true })
2941
2941
  ], NLDDButtonGroup.prototype, "orientation", 2);
2942
- __decorateClass$17([
2942
+ __decorateClass$18([
2943
2943
  query("slot")
2944
2944
  ], NLDDButtonGroup.prototype, "_slot", 2);
2945
- NLDDButtonGroup = __decorateClass$17([
2945
+ NLDDButtonGroup = __decorateClass$18([
2946
2946
  customElement("nldd-button-group")
2947
2947
  ], NLDDButtonGroup);
2948
- var __defProp$14 = Object.defineProperty;
2949
- var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
2950
- var __decorateClass$16 = (decorators, target, key, kind) => {
2951
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
2948
+ var __defProp$15 = Object.defineProperty;
2949
+ var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
2950
+ var __decorateClass$17 = (decorators, target, key, kind) => {
2951
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
2952
2952
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2953
2953
  if (decorator = decorators[i])
2954
2954
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2955
- if (kind && result) __defProp$14(target, key, result);
2955
+ if (kind && result) __defProp$15(target, key, result);
2956
2956
  return result;
2957
2957
  };
2958
2958
  let NLDDInlineDialog = class extends LitElement {
@@ -2996,38 +2996,38 @@ let NLDDInlineDialog = class extends LitElement {
2996
2996
  }
2997
2997
  };
2998
2998
  NLDDInlineDialog.styles = inlineDialogStyles;
2999
- __decorateClass$16([
2999
+ __decorateClass$17([
3000
3000
  property({ type: String, reflect: true })
3001
3001
  ], NLDDInlineDialog.prototype, "variant", 2);
3002
- __decorateClass$16([
3002
+ __decorateClass$17([
3003
3003
  property({ type: String, reflect: true })
3004
3004
  ], NLDDInlineDialog.prototype, "icon", 2);
3005
- __decorateClass$16([
3005
+ __decorateClass$17([
3006
3006
  property({ type: String, reflect: true })
3007
3007
  ], NLDDInlineDialog.prototype, "text", 2);
3008
- __decorateClass$16([
3008
+ __decorateClass$17([
3009
3009
  property({ type: String, reflect: true, attribute: "supporting-text" })
3010
3010
  ], NLDDInlineDialog.prototype, "supportingText", 2);
3011
- __decorateClass$16([
3011
+ __decorateClass$17([
3012
3012
  property({ type: Number, reflect: true, attribute: "heading-level" })
3013
3013
  ], NLDDInlineDialog.prototype, "headingLevel", 2);
3014
- __decorateClass$16([
3014
+ __decorateClass$17([
3015
3015
  state()
3016
3016
  ], NLDDInlineDialog.prototype, "_hasContent", 2);
3017
- __decorateClass$16([
3017
+ __decorateClass$17([
3018
3018
  state()
3019
3019
  ], NLDDInlineDialog.prototype, "_hasActions", 2);
3020
- NLDDInlineDialog = __decorateClass$16([
3020
+ NLDDInlineDialog = __decorateClass$17([
3021
3021
  customElement("nldd-inline-dialog")
3022
3022
  ], NLDDInlineDialog);
3023
3023
  const POPOVER_REOPEN_GUARD_MS = 100;
3024
- var __defProp$13 = Object.defineProperty;
3025
- var __decorateClass$15 = (decorators, target, key, kind) => {
3024
+ var __defProp$14 = Object.defineProperty;
3025
+ var __decorateClass$16 = (decorators, target, key, kind) => {
3026
3026
  var result = void 0;
3027
3027
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
3028
3028
  if (decorator = decorators[i])
3029
3029
  result = decorator(target, key, result) || result;
3030
- if (result) __defProp$13(target, key, result);
3030
+ if (result) __defProp$14(target, key, result);
3031
3031
  return result;
3032
3032
  };
3033
3033
  const _NLDDMenuDivider = class _NLDDMenuDivider extends LitElement {
@@ -3089,37 +3089,37 @@ const _NLDDMenuItem = (_a = class extends LitElement {
3089
3089
  return menuItemTemplate.call(this, this.menuVariant);
3090
3090
  }
3091
3091
  }, _a.styles = menuItemStyles, _a._idCounter = 0, _a);
3092
- __decorateClass$15([
3092
+ __decorateClass$16([
3093
3093
  property({ type: String, reflect: true })
3094
3094
  ], _NLDDMenuItem.prototype, "text");
3095
- __decorateClass$15([
3095
+ __decorateClass$16([
3096
3096
  property({ type: String, reflect: true })
3097
3097
  ], _NLDDMenuItem.prototype, "value");
3098
- __decorateClass$15([
3098
+ __decorateClass$16([
3099
3099
  property({ type: String, reflect: true })
3100
3100
  ], _NLDDMenuItem.prototype, "aliases");
3101
- __decorateClass$15([
3101
+ __decorateClass$16([
3102
3102
  property({ type: String, reflect: true })
3103
3103
  ], _NLDDMenuItem.prototype, "details");
3104
- __decorateClass$15([
3104
+ __decorateClass$16([
3105
3105
  property({ type: String, reflect: true })
3106
3106
  ], _NLDDMenuItem.prototype, "icon");
3107
- __decorateClass$15([
3107
+ __decorateClass$16([
3108
3108
  property({ type: String, reflect: true })
3109
3109
  ], _NLDDMenuItem.prototype, "type");
3110
- __decorateClass$15([
3110
+ __decorateClass$16([
3111
3111
  property({ type: Boolean, reflect: true })
3112
3112
  ], _NLDDMenuItem.prototype, "selected");
3113
- __decorateClass$15([
3113
+ __decorateClass$16([
3114
3114
  property({ type: Boolean, reflect: true })
3115
3115
  ], _NLDDMenuItem.prototype, "disabled");
3116
- __decorateClass$15([
3116
+ __decorateClass$16([
3117
3117
  property({ type: String, reflect: true })
3118
3118
  ], _NLDDMenuItem.prototype, "query");
3119
- __decorateClass$15([
3119
+ __decorateClass$16([
3120
3120
  property({ type: String, reflect: true, attribute: "query-mark-mode" })
3121
3121
  ], _NLDDMenuItem.prototype, "queryMarkMode");
3122
- __decorateClass$15([
3122
+ __decorateClass$16([
3123
3123
  state()
3124
3124
  ], _NLDDMenuItem.prototype, "menuVariant");
3125
3125
  let NLDDMenuItem = _NLDDMenuItem;
@@ -3451,50 +3451,50 @@ const _NLDDMenu = class _NLDDMenu extends LitElement {
3451
3451
  };
3452
3452
  _NLDDMenu.styles = menuStyles;
3453
3453
  let NLDDMenu = _NLDDMenu;
3454
- __decorateClass$15([
3454
+ __decorateClass$16([
3455
3455
  property({ type: String, reflect: true })
3456
3456
  ], NLDDMenu.prototype, "anchor");
3457
- __decorateClass$15([
3457
+ __decorateClass$16([
3458
3458
  property({ attribute: false })
3459
3459
  ], NLDDMenu.prototype, "anchorElement");
3460
- __decorateClass$15([
3460
+ __decorateClass$16([
3461
3461
  property({ type: String, reflect: true })
3462
3462
  ], NLDDMenu.prototype, "placement");
3463
- __decorateClass$15([
3463
+ __decorateClass$16([
3464
3464
  property({ type: String, reflect: true })
3465
3465
  ], NLDDMenu.prototype, "variant");
3466
- __decorateClass$15([
3466
+ __decorateClass$16([
3467
3467
  property({ type: String, attribute: "empty-text" })
3468
3468
  ], NLDDMenu.prototype, "emptyText");
3469
- __decorateClass$15([
3469
+ __decorateClass$16([
3470
3470
  property({ type: String, attribute: "empty-supporting-text" })
3471
3471
  ], NLDDMenu.prototype, "emptySupportingText");
3472
- __decorateClass$15([
3472
+ __decorateClass$16([
3473
3473
  property({ type: String, reflect: true })
3474
3474
  ], NLDDMenu.prototype, "width");
3475
- __decorateClass$15([
3475
+ __decorateClass$16([
3476
3476
  property({ type: Number, attribute: "max-items" })
3477
3477
  ], NLDDMenu.prototype, "maxItems");
3478
- __decorateClass$15([
3478
+ __decorateClass$16([
3479
3479
  property({ type: Object })
3480
3480
  ], NLDDMenu.prototype, "translations");
3481
- __decorateClass$15([
3481
+ __decorateClass$16([
3482
3482
  property({ attribute: false })
3483
3483
  ], NLDDMenu.prototype, "filterFn");
3484
- __decorateClass$15([
3484
+ __decorateClass$16([
3485
3485
  state()
3486
3486
  ], NLDDMenu.prototype, "_isEmpty");
3487
3487
  if (!customElements.get("nldd-menu")) {
3488
3488
  customElements.define("nldd-menu", NLDDMenu);
3489
3489
  }
3490
- var __defProp$12 = Object.defineProperty;
3491
- var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
3492
- var __decorateClass$14 = (decorators, target, key, kind) => {
3493
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
3490
+ var __defProp$13 = Object.defineProperty;
3491
+ var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
3492
+ var __decorateClass$15 = (decorators, target, key, kind) => {
3493
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
3494
3494
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
3495
3495
  if (decorator = decorators[i])
3496
3496
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3497
- if (kind && result) __defProp$12(target, key, result);
3497
+ if (kind && result) __defProp$13(target, key, result);
3498
3498
  return result;
3499
3499
  };
3500
3500
  let NLDDSplitButton = class extends LitElement {
@@ -3574,37 +3574,37 @@ let NLDDSplitButton = class extends LitElement {
3574
3574
  }
3575
3575
  };
3576
3576
  NLDDSplitButton.styles = splitButtonStyles;
3577
- __decorateClass$14([
3577
+ __decorateClass$15([
3578
3578
  property({ type: String, reflect: true })
3579
3579
  ], NLDDSplitButton.prototype, "size", 2);
3580
- __decorateClass$14([
3580
+ __decorateClass$15([
3581
3581
  property({ type: String, reflect: true })
3582
3582
  ], NLDDSplitButton.prototype, "variant", 2);
3583
- __decorateClass$14([
3583
+ __decorateClass$15([
3584
3584
  property({ type: Boolean, reflect: true })
3585
3585
  ], NLDDSplitButton.prototype, "disabled", 2);
3586
- __decorateClass$14([
3586
+ __decorateClass$15([
3587
3587
  property({ type: String })
3588
3588
  ], NLDDSplitButton.prototype, "text", 2);
3589
- __decorateClass$14([
3589
+ __decorateClass$15([
3590
3590
  property({ type: String, attribute: "start-icon" })
3591
3591
  ], NLDDSplitButton.prototype, "startIcon", 2);
3592
- __decorateClass$14([
3592
+ __decorateClass$15([
3593
3593
  property({ type: Object })
3594
3594
  ], NLDDSplitButton.prototype, "translations", 2);
3595
- __decorateClass$14([
3595
+ __decorateClass$15([
3596
3596
  query(".split-button__trigger")
3597
3597
  ], NLDDSplitButton.prototype, "_trigger", 2);
3598
- __decorateClass$14([
3598
+ __decorateClass$15([
3599
3599
  query(".split-button__menu")
3600
3600
  ], NLDDSplitButton.prototype, "_menu", 2);
3601
- __decorateClass$14([
3601
+ __decorateClass$15([
3602
3602
  state()
3603
3603
  ], NLDDSplitButton.prototype, "_menuIsOpen", 2);
3604
- __decorateClass$14([
3604
+ __decorateClass$15([
3605
3605
  state()
3606
3606
  ], NLDDSplitButton.prototype, "_hasMenuItems", 2);
3607
- NLDDSplitButton = __decorateClass$14([
3607
+ NLDDSplitButton = __decorateClass$15([
3608
3608
  customElement("nldd-split-button")
3609
3609
  ], NLDDSplitButton);
3610
3610
  const buttonBarStyles = css`
@@ -3733,14 +3733,14 @@ function renderChild(child) {
3733
3733
  }
3734
3734
  return html`<slot name="child-${child.id}"></slot>`;
3735
3735
  }
3736
- var __defProp$11 = Object.defineProperty;
3737
- var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
3738
- var __decorateClass$13 = (decorators, target, key, kind) => {
3739
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
3736
+ var __defProp$12 = Object.defineProperty;
3737
+ var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
3738
+ var __decorateClass$14 = (decorators, target, key, kind) => {
3739
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
3740
3740
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
3741
3741
  if (decorator = decorators[i])
3742
3742
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3743
- if (kind && result) __defProp$11(target, key, result);
3743
+ if (kind && result) __defProp$12(target, key, result);
3744
3744
  return result;
3745
3745
  };
3746
3746
  if (!customElements.get("nldd-button-bar-divider")) {
@@ -3853,19 +3853,19 @@ let NLDDButtonBar = class extends LitElement {
3853
3853
  }
3854
3854
  };
3855
3855
  NLDDButtonBar.styles = buttonBarStyles;
3856
- __decorateClass$13([
3856
+ __decorateClass$14([
3857
3857
  property({ type: String, reflect: true })
3858
3858
  ], NLDDButtonBar.prototype, "size", 2);
3859
- __decorateClass$13([
3859
+ __decorateClass$14([
3860
3860
  property({ type: String, reflect: true })
3861
3861
  ], NLDDButtonBar.prototype, "variant", 2);
3862
- __decorateClass$13([
3862
+ __decorateClass$14([
3863
3863
  property({ type: Boolean, reflect: true })
3864
3864
  ], NLDDButtonBar.prototype, "disabled", 2);
3865
- __decorateClass$13([
3865
+ __decorateClass$14([
3866
3866
  state()
3867
3867
  ], NLDDButtonBar.prototype, "_children", 2);
3868
- NLDDButtonBar = __decorateClass$13([
3868
+ NLDDButtonBar = __decorateClass$14([
3869
3869
  customElement("nldd-button-bar")
3870
3870
  ], NLDDButtonBar);
3871
3871
  const toolbarStyles = css`
@@ -4251,14 +4251,14 @@ function template$f(startChildren, centerChildren, endChildren, overflowIds, siz
4251
4251
  const nlddToolbarTranslations = {
4252
4252
  "components.toolbar.overflow-action": "Meer"
4253
4253
  };
4254
- var __defProp$10 = Object.defineProperty;
4255
- var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
4256
- var __decorateClass$12 = (decorators, target, key, kind) => {
4257
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
4254
+ var __defProp$11 = Object.defineProperty;
4255
+ var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
4256
+ var __decorateClass$13 = (decorators, target, key, kind) => {
4257
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
4258
4258
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4259
4259
  if (decorator = decorators[i])
4260
4260
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4261
- if (kind && result) __defProp$10(target, key, result);
4261
+ if (kind && result) __defProp$11(target, key, result);
4262
4262
  return result;
4263
4263
  };
4264
4264
  if (!customElements.get("nldd-toolbar-item")) {
@@ -4689,43 +4689,43 @@ let NLDDToolbar = class extends LitElement {
4689
4689
  }
4690
4690
  };
4691
4691
  NLDDToolbar.styles = toolbarStyles;
4692
- __decorateClass$12([
4692
+ __decorateClass$13([
4693
4693
  property({ type: String, reflect: true })
4694
4694
  ], NLDDToolbar.prototype, "size", 2);
4695
- __decorateClass$12([
4695
+ __decorateClass$13([
4696
4696
  property({ type: Boolean, reflect: true, attribute: "show-item-labels" })
4697
4697
  ], NLDDToolbar.prototype, "showItemLabels", 2);
4698
- __decorateClass$12([
4698
+ __decorateClass$13([
4699
4699
  property({ type: String, reflect: true })
4700
4700
  ], NLDDToolbar.prototype, "label", 2);
4701
- __decorateClass$12([
4701
+ __decorateClass$13([
4702
4702
  property({ type: Object })
4703
4703
  ], NLDDToolbar.prototype, "translations", 2);
4704
- __decorateClass$12([
4704
+ __decorateClass$13([
4705
4705
  state()
4706
4706
  ], NLDDToolbar.prototype, "_menuOpen", 2);
4707
- __decorateClass$12([
4707
+ __decorateClass$13([
4708
4708
  state()
4709
4709
  ], NLDDToolbar.prototype, "_startChildren", 2);
4710
- __decorateClass$12([
4710
+ __decorateClass$13([
4711
4711
  state()
4712
4712
  ], NLDDToolbar.prototype, "_centerChildren", 2);
4713
- __decorateClass$12([
4713
+ __decorateClass$13([
4714
4714
  state()
4715
4715
  ], NLDDToolbar.prototype, "_endChildren", 2);
4716
- __decorateClass$12([
4716
+ __decorateClass$13([
4717
4717
  state()
4718
4718
  ], NLDDToolbar.prototype, "_overflowIds", 2);
4719
- __decorateClass$12([
4719
+ __decorateClass$13([
4720
4720
  state()
4721
4721
  ], NLDDToolbar.prototype, "_leftSpacerZero", 2);
4722
- __decorateClass$12([
4722
+ __decorateClass$13([
4723
4723
  state()
4724
4724
  ], NLDDToolbar.prototype, "_rightSpacerZero", 2);
4725
- __decorateClass$12([
4725
+ __decorateClass$13([
4726
4726
  state()
4727
4727
  ], NLDDToolbar.prototype, "_pinnedOverflowItems", 2);
4728
- NLDDToolbar = __decorateClass$12([
4728
+ NLDDToolbar = __decorateClass$13([
4729
4729
  customElement("nldd-toolbar")
4730
4730
  ], NLDDToolbar);
4731
4731
  const linkStyles = css`
@@ -4866,14 +4866,14 @@ function template$e(helpers) {
4866
4866
  </a>
4867
4867
  `;
4868
4868
  }
4869
- var __defProp$$ = Object.defineProperty;
4870
- var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
4871
- var __decorateClass$11 = (decorators, target, key, kind) => {
4872
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
4869
+ var __defProp$10 = Object.defineProperty;
4870
+ var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
4871
+ var __decorateClass$12 = (decorators, target, key, kind) => {
4872
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
4873
4873
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4874
4874
  if (decorator = decorators[i])
4875
4875
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4876
- if (kind && result) __defProp$$(target, key, result);
4876
+ if (kind && result) __defProp$10(target, key, result);
4877
4877
  return result;
4878
4878
  };
4879
4879
  let NLDDLink = class extends LitElement {
@@ -4911,44 +4911,44 @@ let NLDDLink = class extends LitElement {
4911
4911
  }
4912
4912
  };
4913
4913
  NLDDLink.styles = linkStyles;
4914
- __decorateClass$11([
4914
+ __decorateClass$12([
4915
4915
  property({ type: String, reflect: true })
4916
4916
  ], NLDDLink.prototype, "href", 2);
4917
- __decorateClass$11([
4917
+ __decorateClass$12([
4918
4918
  property({ type: String })
4919
4919
  ], NLDDLink.prototype, "target", 2);
4920
- __decorateClass$11([
4920
+ __decorateClass$12([
4921
4921
  property({ type: String })
4922
4922
  ], NLDDLink.prototype, "rel", 2);
4923
- __decorateClass$11([
4923
+ __decorateClass$12([
4924
4924
  property({ type: String, reflect: true })
4925
4925
  ], NLDDLink.prototype, "size", 2);
4926
- __decorateClass$11([
4926
+ __decorateClass$12([
4927
4927
  property({ type: String })
4928
4928
  ], NLDDLink.prototype, "text", 2);
4929
- __decorateClass$11([
4929
+ __decorateClass$12([
4930
4930
  property({ type: String, attribute: "start-icon" })
4931
4931
  ], NLDDLink.prototype, "startIcon", 2);
4932
- __decorateClass$11([
4932
+ __decorateClass$12([
4933
4933
  property({ type: String, attribute: "end-icon" })
4934
4934
  ], NLDDLink.prototype, "endIcon", 2);
4935
- __decorateClass$11([
4935
+ __decorateClass$12([
4936
4936
  property({ type: String, attribute: "accessible-label" })
4937
4937
  ], NLDDLink.prototype, "accessibleLabel", 2);
4938
- __decorateClass$11([
4938
+ __decorateClass$12([
4939
4939
  property({ type: Boolean, reflect: true })
4940
4940
  ], NLDDLink.prototype, "disabled", 2);
4941
- NLDDLink = __decorateClass$11([
4941
+ NLDDLink = __decorateClass$12([
4942
4942
  customElement("nldd-link")
4943
4943
  ], NLDDLink);
4944
- var __defProp$_ = Object.defineProperty;
4945
- var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
4946
- var __decorateClass$10 = (decorators, target, key, kind) => {
4947
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
4944
+ var __defProp$$ = Object.defineProperty;
4945
+ var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
4946
+ var __decorateClass$11 = (decorators, target, key, kind) => {
4947
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
4948
4948
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4949
4949
  if (decorator = decorators[i])
4950
4950
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4951
- if (kind && result) __defProp$_(target, key, result);
4951
+ if (kind && result) __defProp$$(target, key, result);
4952
4952
  return result;
4953
4953
  };
4954
4954
  let NLDDRichText = class extends LitElement {
@@ -4960,10 +4960,10 @@ let NLDDRichText = class extends LitElement {
4960
4960
  return this;
4961
4961
  }
4962
4962
  };
4963
- __decorateClass$10([
4963
+ __decorateClass$11([
4964
4964
  property({ type: String, reflect: true })
4965
4965
  ], NLDDRichText.prototype, "spacing", 2);
4966
- NLDDRichText = __decorateClass$10([
4966
+ NLDDRichText = __decorateClass$11([
4967
4967
  customElement("nldd-rich-text")
4968
4968
  ], NLDDRichText);
4969
4969
  const breakpoints = {
@@ -5222,14 +5222,14 @@ function titleTemplate() {
5222
5222
  </div>
5223
5223
  `;
5224
5224
  }
5225
- var __defProp$Z = Object.defineProperty;
5226
- var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
5227
- var __decorateClass$$ = (decorators, target, key, kind) => {
5228
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
5225
+ var __defProp$_ = Object.defineProperty;
5226
+ var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
5227
+ var __decorateClass$10 = (decorators, target, key, kind) => {
5228
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
5229
5229
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5230
5230
  if (decorator = decorators[i])
5231
5231
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5232
- if (kind && result) __defProp$Z(target, key, result);
5232
+ if (kind && result) __defProp$_(target, key, result);
5233
5233
  return result;
5234
5234
  };
5235
5235
  let NLDDTitle = class extends LitElement {
@@ -5242,10 +5242,10 @@ let NLDDTitle = class extends LitElement {
5242
5242
  }
5243
5243
  };
5244
5244
  NLDDTitle.styles = titleStyles;
5245
- __decorateClass$$([
5245
+ __decorateClass$10([
5246
5246
  property({ type: Number, reflect: true })
5247
5247
  ], NLDDTitle.prototype, "size", 2);
5248
- NLDDTitle = __decorateClass$$([
5248
+ NLDDTitle = __decorateClass$10([
5249
5249
  customElement("nldd-title")
5250
5250
  ], NLDDTitle);
5251
5251
  const smMax$b = unsafeCSS(breakpoints.smMax);
@@ -5344,13 +5344,13 @@ function template$d(component) {
5344
5344
  </blockquote>
5345
5345
  `;
5346
5346
  }
5347
- var __defProp$Y = Object.defineProperty;
5348
- var __decorateClass$_ = (decorators, target, key, kind) => {
5347
+ var __defProp$Z = Object.defineProperty;
5348
+ var __decorateClass$$ = (decorators, target, key, kind) => {
5349
5349
  var result = void 0;
5350
5350
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5351
5351
  if (decorator = decorators[i])
5352
5352
  result = decorator(target, key, result) || result;
5353
- if (result) __defProp$Y(target, key, result);
5353
+ if (result) __defProp$Z(target, key, result);
5354
5354
  return result;
5355
5355
  };
5356
5356
  function withTranslations(Base, defaults) {
@@ -5377,7 +5377,7 @@ function withTranslations(Base, defaults) {
5377
5377
  }
5378
5378
  }
5379
5379
  }
5380
- __decorateClass$_([
5380
+ __decorateClass$$([
5381
5381
  property({ type: Object })
5382
5382
  ], TranslationsMixin.prototype, "translations");
5383
5383
  return TranslationsMixin;
@@ -5385,14 +5385,14 @@ function withTranslations(Base, defaults) {
5385
5385
  const nlddBlockquoteTranslations = {
5386
5386
  "components.blockquote.attribution-prefix": "— "
5387
5387
  };
5388
- var __defProp$X = Object.defineProperty;
5389
- var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
5390
- var __decorateClass$Z = (decorators, target, key, kind) => {
5391
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
5388
+ var __defProp$Y = Object.defineProperty;
5389
+ var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
5390
+ var __decorateClass$_ = (decorators, target, key, kind) => {
5391
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
5392
5392
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5393
5393
  if (decorator = decorators[i])
5394
5394
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5395
- if (kind && result) __defProp$X(target, key, result);
5395
+ if (kind && result) __defProp$Y(target, key, result);
5396
5396
  return result;
5397
5397
  };
5398
5398
  let NLDDBlockquote = class extends withTranslations(LitElement, nlddBlockquoteTranslations) {
@@ -5416,13 +5416,13 @@ let NLDDBlockquote = class extends withTranslations(LitElement, nlddBlockquoteTr
5416
5416
  }
5417
5417
  };
5418
5418
  NLDDBlockquote.styles = blockquoteStyles;
5419
- __decorateClass$Z([
5419
+ __decorateClass$_([
5420
5420
  property({ type: String })
5421
5421
  ], NLDDBlockquote.prototype, "cite", 2);
5422
- __decorateClass$Z([
5422
+ __decorateClass$_([
5423
5423
  state()
5424
5424
  ], NLDDBlockquote.prototype, "_hasAttribution", 2);
5425
- NLDDBlockquote = __decorateClass$Z([
5425
+ NLDDBlockquote = __decorateClass$_([
5426
5426
  customElement("nldd-blockquote")
5427
5427
  ], NLDDBlockquote);
5428
5428
  const tagStyles = css`
@@ -5547,14 +5547,14 @@ function template$c(component) {
5547
5547
  </span>
5548
5548
  `;
5549
5549
  }
5550
- var __defProp$W = Object.defineProperty;
5551
- var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
5552
- var __decorateClass$Y = (decorators, target, key, kind) => {
5553
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
5550
+ var __defProp$X = Object.defineProperty;
5551
+ var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
5552
+ var __decorateClass$Z = (decorators, target, key, kind) => {
5553
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
5554
5554
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5555
5555
  if (decorator = decorators[i])
5556
5556
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5557
- if (kind && result) __defProp$W(target, key, result);
5557
+ if (kind && result) __defProp$X(target, key, result);
5558
5558
  return result;
5559
5559
  };
5560
5560
  let NLDDTag = class extends LitElement {
@@ -5605,28 +5605,28 @@ let NLDDTag = class extends LitElement {
5605
5605
  }
5606
5606
  };
5607
5607
  NLDDTag.styles = tagStyles;
5608
- __decorateClass$Y([
5608
+ __decorateClass$Z([
5609
5609
  property({ type: String, reflect: true })
5610
5610
  ], NLDDTag.prototype, "variant", 2);
5611
- __decorateClass$Y([
5611
+ __decorateClass$Z([
5612
5612
  property({ type: String, reflect: true })
5613
5613
  ], NLDDTag.prototype, "size", 2);
5614
- __decorateClass$Y([
5614
+ __decorateClass$Z([
5615
5615
  property({ type: String })
5616
5616
  ], NLDDTag.prototype, "text", 2);
5617
- __decorateClass$Y([
5617
+ __decorateClass$Z([
5618
5618
  property({ type: String })
5619
5619
  ], NLDDTag.prototype, "icon", 2);
5620
- __decorateClass$Y([
5620
+ __decorateClass$Z([
5621
5621
  property({ type: String, attribute: "accessible-label" })
5622
5622
  ], NLDDTag.prototype, "accessibleLabel", 2);
5623
- __decorateClass$Y([
5623
+ __decorateClass$Z([
5624
5624
  state()
5625
5625
  ], NLDDTag.prototype, "_hasSlotText", 2);
5626
- __decorateClass$Y([
5626
+ __decorateClass$Z([
5627
5627
  state()
5628
5628
  ], NLDDTag.prototype, "_hasSlotIcon", 2);
5629
- NLDDTag = __decorateClass$Y([
5629
+ NLDDTag = __decorateClass$Z([
5630
5630
  customElement("nldd-tag")
5631
5631
  ], NLDDTag);
5632
5632
  const keyboardShortcutStyles = css`
@@ -5723,14 +5723,14 @@ function template$b(component) {
5723
5723
  </kbd>
5724
5724
  `;
5725
5725
  }
5726
- var __defProp$V = Object.defineProperty;
5727
- var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
5728
- var __decorateClass$X = (decorators, target, key, kind) => {
5729
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
5726
+ var __defProp$W = Object.defineProperty;
5727
+ var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
5728
+ var __decorateClass$Y = (decorators, target, key, kind) => {
5729
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
5730
5730
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5731
5731
  if (decorator = decorators[i])
5732
5732
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5733
- if (kind && result) __defProp$V(target, key, result);
5733
+ if (kind && result) __defProp$W(target, key, result);
5734
5734
  return result;
5735
5735
  };
5736
5736
  let NLDDKeyboardShortcut = class extends LitElement {
@@ -5750,16 +5750,16 @@ let NLDDKeyboardShortcut = class extends LitElement {
5750
5750
  }
5751
5751
  };
5752
5752
  NLDDKeyboardShortcut.styles = keyboardShortcutStyles;
5753
- __decorateClass$X([
5753
+ __decorateClass$Y([
5754
5754
  property({ type: String })
5755
5755
  ], NLDDKeyboardShortcut.prototype, "keys", 2);
5756
- __decorateClass$X([
5756
+ __decorateClass$Y([
5757
5757
  property({ type: String, reflect: true })
5758
5758
  ], NLDDKeyboardShortcut.prototype, "size", 2);
5759
- __decorateClass$X([
5759
+ __decorateClass$Y([
5760
5760
  property({ type: Boolean, reflect: true, attribute: "always-visible" })
5761
5761
  ], NLDDKeyboardShortcut.prototype, "alwaysVisible", 2);
5762
- NLDDKeyboardShortcut = __decorateClass$X([
5762
+ NLDDKeyboardShortcut = __decorateClass$Y([
5763
5763
  customElement("nldd-keyboard-shortcut")
5764
5764
  ], NLDDKeyboardShortcut);
5765
5765
  const FORWARDED_ATTRIBUTES = [
@@ -5936,14 +5936,14 @@ function formActionsTemplate() {
5936
5936
  </div>
5937
5937
  `;
5938
5938
  }
5939
- var __defProp$U = Object.defineProperty;
5940
- var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
5941
- var __decorateClass$W = (decorators, target, key, kind) => {
5942
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
5939
+ var __defProp$V = Object.defineProperty;
5940
+ var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
5941
+ var __decorateClass$X = (decorators, target, key, kind) => {
5942
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
5943
5943
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5944
5944
  if (decorator = decorators[i])
5945
5945
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5946
- if (kind && result) __defProp$U(target, key, result);
5946
+ if (kind && result) __defProp$V(target, key, result);
5947
5947
  return result;
5948
5948
  };
5949
5949
  let NLDDFormActions = class extends LitElement {
@@ -5956,10 +5956,10 @@ let NLDDFormActions = class extends LitElement {
5956
5956
  }
5957
5957
  };
5958
5958
  NLDDFormActions.styles = formActionsStyles;
5959
- __decorateClass$W([
5959
+ __decorateClass$X([
5960
5960
  property({ type: String, reflect: true, attribute: "label-alignment" })
5961
5961
  ], NLDDFormActions.prototype, "labelAlignment", 2);
5962
- NLDDFormActions = __decorateClass$W([
5962
+ NLDDFormActions = __decorateClass$X([
5963
5963
  customElement("nldd-form-actions")
5964
5964
  ], NLDDFormActions);
5965
5965
  const formFieldStyles = css`
@@ -6274,14 +6274,14 @@ function formFieldErrorTextTemplate(_component) {
6274
6274
  </p>
6275
6275
  `;
6276
6276
  }
6277
- var __defProp$T = Object.defineProperty;
6278
- var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
6279
- var __decorateClass$V = (decorators, target, key, kind) => {
6280
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
6277
+ var __defProp$U = Object.defineProperty;
6278
+ var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
6279
+ var __decorateClass$W = (decorators, target, key, kind) => {
6280
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
6281
6281
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6282
6282
  if (decorator = decorators[i])
6283
6283
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6284
- if (kind && result) __defProp$T(target, key, result);
6284
+ if (kind && result) __defProp$U(target, key, result);
6285
6285
  return result;
6286
6286
  };
6287
6287
  const HELPER_TAGS = ["nldd-form-field-help-text", "nldd-form-field-error-text"];
@@ -6412,25 +6412,25 @@ let NLDDFormField = class extends LitElement {
6412
6412
  }
6413
6413
  };
6414
6414
  NLDDFormField.styles = formFieldStyles;
6415
- __decorateClass$V([
6415
+ __decorateClass$W([
6416
6416
  property({ type: String, attribute: "label-alignment", reflect: true })
6417
6417
  ], NLDDFormField.prototype, "labelAlignment", 2);
6418
- __decorateClass$V([
6418
+ __decorateClass$W([
6419
6419
  property({ type: String })
6420
6420
  ], NLDDFormField.prototype, "label", 2);
6421
- __decorateClass$V([
6421
+ __decorateClass$W([
6422
6422
  property({ type: String, attribute: "supporting-label" })
6423
6423
  ], NLDDFormField.prototype, "supportingLabel", 2);
6424
- __decorateClass$V([
6424
+ __decorateClass$W([
6425
6425
  property({ type: Boolean })
6426
6426
  ], NLDDFormField.prototype, "optional", 2);
6427
- __decorateClass$V([
6427
+ __decorateClass$W([
6428
6428
  property({ type: String, attribute: "optional-label" })
6429
6429
  ], NLDDFormField.prototype, "optionalLabel", 2);
6430
- __decorateClass$V([
6430
+ __decorateClass$W([
6431
6431
  state()
6432
6432
  ], NLDDFormField.prototype, "_hasErrors", 2);
6433
- NLDDFormField = __decorateClass$V([
6433
+ NLDDFormField = __decorateClass$W([
6434
6434
  customElement("nldd-form-field")
6435
6435
  ], NLDDFormField);
6436
6436
  let NLDDFormFieldHelpText = class extends LitElement {
@@ -6443,7 +6443,7 @@ let NLDDFormFieldHelpText = class extends LitElement {
6443
6443
  }
6444
6444
  };
6445
6445
  NLDDFormFieldHelpText.styles = formFieldHelpTextStyles;
6446
- NLDDFormFieldHelpText = __decorateClass$V([
6446
+ NLDDFormFieldHelpText = __decorateClass$W([
6447
6447
  customElement("nldd-form-field-help-text")
6448
6448
  ], NLDDFormFieldHelpText);
6449
6449
  let NLDDFormFieldErrorText = class extends LitElement {
@@ -6460,10 +6460,10 @@ let NLDDFormFieldErrorText = class extends LitElement {
6460
6460
  }
6461
6461
  };
6462
6462
  NLDDFormFieldErrorText.styles = formFieldErrorTextStyles;
6463
- __decorateClass$V([
6463
+ __decorateClass$W([
6464
6464
  property({ type: Boolean, reflect: true })
6465
6465
  ], NLDDFormFieldErrorText.prototype, "invalid", 2);
6466
- NLDDFormFieldErrorText = __decorateClass$V([
6466
+ NLDDFormFieldErrorText = __decorateClass$W([
6467
6467
  customElement("nldd-form-field-error-text")
6468
6468
  ], NLDDFormFieldErrorText);
6469
6469
  const FIELDSET_CLASS = "form-section";
@@ -6590,52 +6590,425 @@ const textFieldStyles = css`
6590
6590
 
6591
6591
  /* # Block */
6592
6592
 
6593
- .text-field {
6594
- display: flex;
6595
- flex-direction: row;
6596
- align-items: center;
6597
- overflow: hidden;
6593
+ .text-field {
6594
+ display: flex;
6595
+ flex-direction: row;
6596
+ align-items: center;
6597
+ overflow: hidden;
6598
+ box-sizing: border-box;
6599
+ border: var(--semantics-input-fields-border);
6600
+ background-color: var(--_background-color);
6601
+ }
6602
+
6603
+ :host([size='sm']) .text-field {
6604
+ padding-left: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-thickness));
6605
+ min-height: var(--semantics-controls-sm-min-size);
6606
+ border-radius: var(--semantics-controls-sm-corner-radius);
6607
+ }
6608
+
6609
+ :host([size='md']) .text-field,
6610
+ :host(:not([size])) .text-field {
6611
+ padding-left: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-thickness));
6612
+ min-height: var(--semantics-controls-md-min-size);
6613
+ border-radius: var(--semantics-controls-md-corner-radius);
6614
+ }
6615
+
6616
+ :host([valid]) .text-field {
6617
+ border-color: var(--semantics-input-fields-is-valid-border-color);
6618
+ }
6619
+
6620
+ :host([invalid]) .text-field {
6621
+ border-color: var(--semantics-input-fields-is-invalid-border-color);
6622
+ }
6623
+
6624
+ :host([readonly]) .text-field {
6625
+ border-color: var(--semantics-input-fields-is-read-only-border-color);
6626
+ --_background-color: var(--semantics-input-fields-is-read-only-background-color);
6627
+ }
6628
+
6629
+ :host([disabled]) .text-field {
6630
+ opacity: var(--primitives-opacity-disabled);
6631
+ }
6632
+
6633
+ .text-field:has(input:-webkit-autofill),
6634
+ .text-field:has(input:autofill) {
6635
+ --_background-color: var(--semantics-input-fields-is-autofill-background-color);
6636
+ }
6637
+
6638
+ .text-field:focus-within {
6639
+ outline: var(--semantics-focus-ring-outline);
6640
+ outline-offset: var(--semantics-focus-ring-outline-offset);
6641
+ box-shadow: var(--semantics-focus-ring-box-shadow);
6642
+ }
6643
+
6644
+
6645
+ /* # Input */
6646
+
6647
+ .text-field__input {
6648
+ flex-grow: 1;
6649
+ min-width: 0;
6650
+ overflow: hidden;
6651
+ box-sizing: border-box;
6652
+ padding: 0;
6653
+ margin: 0;
6654
+ color: var(--semantics-content-color);
6655
+ background: transparent;
6656
+ border: none;
6657
+ outline: none;
6658
+ appearance: none;
6659
+ }
6660
+
6661
+ :host([size='sm']) .text-field__input {
6662
+ min-height: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6663
+ font: var(--semantics-input-fields-sm-text-font);
6664
+ }
6665
+
6666
+ :host([size='md']) .text-field__input,
6667
+ :host(:not([size])) .text-field__input {
6668
+ min-height: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6669
+ font: var(--semantics-input-fields-md-text-font);
6670
+ }
6671
+
6672
+ :host([disabled]) .text-field__input {
6673
+ pointer-events: none;
6674
+ }
6675
+
6676
+ .text-field__input::placeholder {
6677
+ color: var(--semantics-input-fields-placeholder-color);
6678
+ }
6679
+
6680
+ .text-field__input:-webkit-autofill,
6681
+ .text-field__input:autofill {
6682
+ box-shadow: 0 0 0 999px var(--_background-color) inset;
6683
+ }
6684
+
6685
+
6686
+ /* # Input fade */
6687
+
6688
+ .text-field__input-fade {
6689
+ position: relative;
6690
+ flex-shrink: 0;
6691
+ align-self: stretch;
6692
+ width: 0;
6693
+ }
6694
+
6695
+ .text-field__input-fade::after {
6696
+ content: '';
6697
+ position: absolute;
6698
+ top: 0;
6699
+ bottom: 0;
6700
+ right: 0;
6701
+ width: var(--primitives-space-8);
6702
+ background: linear-gradient(90deg, color-mix(in oklch, var(--_background-color) 0%, transparent) 0%, var(--_background-color) 100%);
6703
+ pointer-events: none;
6704
+ }
6705
+
6706
+ :host([size='sm']) .text-field__input-fade::after {
6707
+ border-radius: var(--semantics-controls-sm-corner-radius);
6708
+ }
6709
+
6710
+ :host([size='md']) .text-field__input-fade::after,
6711
+ :host(:not([size])) .text-field__input-fade::after {
6712
+ border-radius: var(--semantics-controls-md-corner-radius);
6713
+ }
6714
+
6715
+
6716
+ /* # Validation icon area */
6717
+
6718
+ .text-field__validation-icon-area {
6719
+ display: flex;
6720
+ align-items: center;
6721
+ justify-content: center;
6722
+ flex-shrink: 0;
6723
+ height: 100%;
6724
+ }
6725
+
6726
+ :host([size='sm']) .text-field__validation-icon-area {
6727
+ width: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6728
+ }
6729
+
6730
+ :host([size='md']) .text-field__validation-icon-area,
6731
+ :host(:not([size])) .text-field__validation-icon-area {
6732
+ width: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6733
+ }
6734
+
6735
+ :host([valid]) .text-field__validation-icon-area {
6736
+ color: var(--semantics-input-fields-is-valid-icon-color);
6737
+ }
6738
+
6739
+ :host([invalid]) .text-field__validation-icon-area {
6740
+ color: var(--semantics-input-fields-is-invalid-icon-color);
6741
+ }
6742
+
6743
+
6744
+ /* # Validation icon */
6745
+
6746
+ :host([size='sm']) .text-field__validation-icon {
6747
+ width: var(--semantics-input-fields-sm-validation-icon-size);
6748
+ height: var(--semantics-input-fields-sm-validation-icon-size);
6749
+ }
6750
+
6751
+ :host([size='md']) .text-field__validation-icon,
6752
+ :host(:not([size])) .text-field__validation-icon {
6753
+ width: var(--semantics-input-fields-md-validation-icon-size);
6754
+ height: var(--semantics-input-fields-md-validation-icon-size);
6755
+ }
6756
+ `;
6757
+ function renderValidationIcon$4(component) {
6758
+ if (component.invalid) {
6759
+ return html`
6760
+ <div class="text-field__validation-icon-area">
6761
+ <nldd-icon class="text-field__validation-icon"
6762
+ name="invalid"
6763
+ aria-hidden="true"
6764
+ ></nldd-icon>
6765
+ </div>
6766
+ `;
6767
+ }
6768
+ if (component.valid) {
6769
+ return html`
6770
+ <div class="text-field__validation-icon-area">
6771
+ <nldd-icon class="text-field__validation-icon"
6772
+ name="valid"
6773
+ aria-hidden="true"
6774
+ ></nldd-icon>
6775
+ </div>
6776
+ `;
6777
+ }
6778
+ return nothing;
6779
+ }
6780
+ function textFieldTemplate(component) {
6781
+ return html`
6782
+ <div class="text-field">
6783
+ <input class="text-field__input"
6784
+ id=${component.inputId || nothing}
6785
+ type=${component.type}
6786
+ .value=${component.value}
6787
+ placeholder=${component.placeholder || nothing}
6788
+ ?disabled=${component.disabled}
6789
+ ?readonly=${component.readonly}
6790
+ ?required=${component.required}
6791
+ name=${component.name || nothing}
6792
+ autocomplete=${component.autocomplete || nothing}
6793
+ aria-label=${component.accessibleLabel || nothing}
6794
+ aria-describedby=${component.errorMessageIds || nothing}
6795
+ aria-invalid=${component.invalid ? "true" : nothing}
6796
+ @input=${component._handleInput}
6797
+ @change=${component._handleChange}
6798
+ />
6799
+ <div class="text-field__input-fade"></div>
6800
+ ${renderValidationIcon$4(component)}
6801
+ </div>
6802
+ `;
6803
+ }
6804
+ var __defProp$T = Object.defineProperty;
6805
+ var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
6806
+ var __decorateClass$V = (decorators, target, key, kind) => {
6807
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
6808
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6809
+ if (decorator = decorators[i])
6810
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6811
+ if (kind && result) __defProp$T(target, key, result);
6812
+ return result;
6813
+ };
6814
+ let NLDDTextField = class extends LitElement {
6815
+ constructor() {
6816
+ super(...arguments);
6817
+ this._internals = this.attachInternals();
6818
+ this._initialValue = "";
6819
+ this.size = "md";
6820
+ this.value = "";
6821
+ this.inputId = "";
6822
+ this.placeholder = "";
6823
+ this.invalid = false;
6824
+ this.valid = false;
6825
+ this.disabled = false;
6826
+ this.type = "text";
6827
+ this.name = "";
6828
+ this.readonly = false;
6829
+ this.required = false;
6830
+ this.autocomplete = "";
6831
+ this.accessibleLabel = "";
6832
+ this.errorMessageIds = "";
6833
+ this.width = "";
6834
+ }
6835
+ firstUpdated() {
6836
+ this._initialValue = this.value;
6837
+ }
6838
+ updated(changed) {
6839
+ if (changed.has("width")) {
6840
+ this.style.width = this.width || "";
6841
+ }
6842
+ if (changed.has("value")) {
6843
+ this._internals.setFormValue(this.value);
6844
+ }
6845
+ }
6846
+ formResetCallback() {
6847
+ this.value = this._initialValue;
6848
+ }
6849
+ formDisabledCallback(disabled) {
6850
+ this.disabled = disabled;
6851
+ }
6852
+ formStateRestoreCallback(state2) {
6853
+ if (typeof state2 === "string") this.value = state2;
6854
+ }
6855
+ _handleInput(e) {
6856
+ e.stopPropagation();
6857
+ const input = e.target;
6858
+ this.value = input.value;
6859
+ this.dispatchEvent(new CustomEvent("input", {
6860
+ detail: { value: this.value },
6861
+ bubbles: true,
6862
+ composed: true
6863
+ }));
6864
+ }
6865
+ _handleChange(e) {
6866
+ e.stopPropagation();
6867
+ const input = e.target;
6868
+ this.value = input.value;
6869
+ this.dispatchEvent(new CustomEvent("change", {
6870
+ detail: { value: this.value },
6871
+ bubbles: true,
6872
+ composed: true
6873
+ }));
6874
+ }
6875
+ focus() {
6876
+ this._input?.focus();
6877
+ }
6878
+ blur() {
6879
+ this._input?.blur();
6880
+ }
6881
+ render() {
6882
+ return textFieldTemplate(this);
6883
+ }
6884
+ };
6885
+ NLDDTextField.formAssociated = true;
6886
+ NLDDTextField.shadowRootOptions = {
6887
+ ...LitElement.shadowRootOptions,
6888
+ delegatesFocus: true
6889
+ };
6890
+ NLDDTextField.styles = textFieldStyles;
6891
+ __decorateClass$V([
6892
+ property({ type: String, reflect: true })
6893
+ ], NLDDTextField.prototype, "size", 2);
6894
+ __decorateClass$V([
6895
+ property({ type: String })
6896
+ ], NLDDTextField.prototype, "value", 2);
6897
+ __decorateClass$V([
6898
+ property({ type: String, attribute: "input-id" })
6899
+ ], NLDDTextField.prototype, "inputId", 2);
6900
+ __decorateClass$V([
6901
+ property({ type: String })
6902
+ ], NLDDTextField.prototype, "placeholder", 2);
6903
+ __decorateClass$V([
6904
+ property({ type: Boolean, reflect: true })
6905
+ ], NLDDTextField.prototype, "invalid", 2);
6906
+ __decorateClass$V([
6907
+ property({ type: Boolean, reflect: true })
6908
+ ], NLDDTextField.prototype, "valid", 2);
6909
+ __decorateClass$V([
6910
+ property({ type: Boolean, reflect: true })
6911
+ ], NLDDTextField.prototype, "disabled", 2);
6912
+ __decorateClass$V([
6913
+ property({ type: String })
6914
+ ], NLDDTextField.prototype, "type", 2);
6915
+ __decorateClass$V([
6916
+ property({ type: String, reflect: true })
6917
+ ], NLDDTextField.prototype, "name", 2);
6918
+ __decorateClass$V([
6919
+ property({ type: Boolean, reflect: true })
6920
+ ], NLDDTextField.prototype, "readonly", 2);
6921
+ __decorateClass$V([
6922
+ property({ type: Boolean, reflect: true })
6923
+ ], NLDDTextField.prototype, "required", 2);
6924
+ __decorateClass$V([
6925
+ property({ type: String })
6926
+ ], NLDDTextField.prototype, "autocomplete", 2);
6927
+ __decorateClass$V([
6928
+ property({ type: String, attribute: "accessible-label" })
6929
+ ], NLDDTextField.prototype, "accessibleLabel", 2);
6930
+ __decorateClass$V([
6931
+ property({ type: String, attribute: "error-message-ids" })
6932
+ ], NLDDTextField.prototype, "errorMessageIds", 2);
6933
+ __decorateClass$V([
6934
+ property({ type: String, reflect: true })
6935
+ ], NLDDTextField.prototype, "width", 2);
6936
+ __decorateClass$V([
6937
+ query(".text-field__input")
6938
+ ], NLDDTextField.prototype, "_input", 2);
6939
+ NLDDTextField = __decorateClass$V([
6940
+ customElement("nldd-text-field")
6941
+ ], NLDDTextField);
6942
+ const multiLineTextFieldStyles = css`
6943
+
6944
+
6945
+ /* # Host */
6946
+
6947
+ :host {
6948
+ display: block;
6949
+ --_background-color: var(--semantics-input-fields-background-color);
6950
+ -webkit-tap-highlight-color: transparent;
6951
+ }
6952
+
6953
+ :host([size='sm']) {
6954
+ --_inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-thickness));
6955
+ --_icon-area-size: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6956
+ }
6957
+
6958
+ :host([size='md']),
6959
+ :host(:not([size])) {
6960
+ --_inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-thickness));
6961
+ --_icon-area-size: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6962
+ }
6963
+
6964
+ :host([hidden]) {
6965
+ display: none;
6966
+ }
6967
+
6968
+
6969
+ /* # Block */
6970
+
6971
+ .multi-line-text-field {
6972
+ position: relative;
6973
+ display: block;
6598
6974
  box-sizing: border-box;
6599
6975
  border: var(--semantics-input-fields-border);
6600
6976
  background-color: var(--_background-color);
6977
+ overflow: hidden;
6601
6978
  }
6602
6979
 
6603
- :host([size='sm']) .text-field {
6604
- padding-left: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-thickness));
6605
- min-height: var(--semantics-controls-sm-min-size);
6980
+ :host([size='sm']) .multi-line-text-field {
6606
6981
  border-radius: var(--semantics-controls-sm-corner-radius);
6607
6982
  }
6608
6983
 
6609
- :host([size='md']) .text-field,
6610
- :host(:not([size])) .text-field {
6611
- padding-left: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-thickness));
6612
- min-height: var(--semantics-controls-md-min-size);
6984
+ :host([size='md']) .multi-line-text-field,
6985
+ :host(:not([size])) .multi-line-text-field {
6613
6986
  border-radius: var(--semantics-controls-md-corner-radius);
6614
6987
  }
6615
6988
 
6616
- :host([valid]) .text-field {
6989
+ :host([valid]) .multi-line-text-field {
6617
6990
  border-color: var(--semantics-input-fields-is-valid-border-color);
6618
6991
  }
6619
6992
 
6620
- :host([invalid]) .text-field {
6993
+ :host([invalid]) .multi-line-text-field {
6621
6994
  border-color: var(--semantics-input-fields-is-invalid-border-color);
6622
6995
  }
6623
6996
 
6624
- :host([readonly]) .text-field {
6997
+ :host([readonly]) .multi-line-text-field {
6625
6998
  border-color: var(--semantics-input-fields-is-read-only-border-color);
6626
6999
  --_background-color: var(--semantics-input-fields-is-read-only-background-color);
6627
7000
  }
6628
7001
 
6629
- :host([disabled]) .text-field {
7002
+ :host([disabled]) .multi-line-text-field {
6630
7003
  opacity: var(--primitives-opacity-disabled);
6631
7004
  }
6632
7005
 
6633
- .text-field:has(input:-webkit-autofill),
6634
- .text-field:has(input:autofill) {
7006
+ .multi-line-text-field:has(textarea:-webkit-autofill),
7007
+ .multi-line-text-field:has(textarea:autofill) {
6635
7008
  --_background-color: var(--semantics-input-fields-is-autofill-background-color);
6636
7009
  }
6637
7010
 
6638
- .text-field:focus-within {
7011
+ .multi-line-text-field:focus-within {
6639
7012
  outline: var(--semantics-focus-ring-outline);
6640
7013
  outline-offset: var(--semantics-focus-ring-outline-offset);
6641
7014
  box-shadow: var(--semantics-focus-ring-box-shadow);
@@ -6644,112 +7017,96 @@ const textFieldStyles = css`
6644
7017
 
6645
7018
  /* # Input */
6646
7019
 
6647
- .text-field__input {
6648
- flex-grow: 1;
6649
- min-width: 0;
6650
- overflow: hidden;
7020
+ .multi-line-text-field__input {
7021
+ display: block;
7022
+ width: 100%;
6651
7023
  box-sizing: border-box;
6652
- padding: 0;
6653
7024
  margin: 0;
6654
7025
  color: var(--semantics-content-color);
6655
7026
  background: transparent;
6656
7027
  border: none;
6657
7028
  outline: none;
6658
7029
  appearance: none;
7030
+ padding-inline: var(--_inline-padding);
6659
7031
  }
6660
7032
 
6661
- :host([size='sm']) .text-field__input {
6662
- min-height: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6663
- font: var(--semantics-input-fields-sm-text-font);
7033
+ :host([resize='vertical']) .multi-line-text-field__input {
7034
+ resize: vertical;
6664
7035
  }
6665
7036
 
6666
- :host([size='md']) .text-field__input,
6667
- :host(:not([size])) .text-field__input {
6668
- min-height: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6669
- font: var(--semantics-input-fields-md-text-font);
7037
+ :host([resize='none']) .multi-line-text-field__input {
7038
+ resize: none;
6670
7039
  }
6671
7040
 
6672
- :host([disabled]) .text-field__input {
6673
- pointer-events: none;
7041
+ :host([resize='auto']) .multi-line-text-field__input {
7042
+ resize: none;
7043
+ field-sizing: content;
6674
7044
  }
6675
7045
 
6676
- .text-field__input::placeholder {
6677
- color: var(--semantics-input-fields-placeholder-color);
7046
+ :host([size='sm']) .multi-line-text-field__input {
7047
+ font: var(--semantics-input-fields-sm-text-font);
7048
+ padding-block: calc((var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2 - 1lh) / 2);
7049
+ min-height: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6678
7050
  }
6679
7051
 
6680
- .text-field__input:-webkit-autofill,
6681
- .text-field__input:autofill {
6682
- box-shadow: 0 0 0 999px var(--_background-color) inset;
7052
+ :host([size='md']) .multi-line-text-field__input,
7053
+ :host(:not([size])) .multi-line-text-field__input {
7054
+ font: var(--semantics-input-fields-md-text-font);
7055
+ padding-block: calc((var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2 - 1lh) / 2);
7056
+ min-height: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6683
7057
  }
6684
7058
 
6685
-
6686
- /* # Input fade */
6687
-
6688
- .text-field__input-fade {
6689
- position: relative;
6690
- flex-shrink: 0;
6691
- align-self: stretch;
6692
- width: 0;
7059
+ :host([valid]) .multi-line-text-field__input,
7060
+ :host([invalid]) .multi-line-text-field__input {
7061
+ padding-inline-end: var(--_icon-area-size);
6693
7062
  }
6694
7063
 
6695
- .text-field__input-fade::after {
6696
- content: '';
6697
- position: absolute;
6698
- top: 0;
6699
- bottom: 0;
6700
- right: 0;
6701
- width: var(--primitives-space-8);
6702
- background: linear-gradient(90deg, color-mix(in oklch, var(--_background-color) 0%, transparent) 0%, var(--_background-color) 100%);
7064
+ :host([disabled]) .multi-line-text-field__input {
6703
7065
  pointer-events: none;
6704
7066
  }
6705
7067
 
6706
- :host([size='sm']) .text-field__input-fade::after {
6707
- border-radius: var(--semantics-controls-sm-corner-radius);
7068
+ .multi-line-text-field__input::placeholder {
7069
+ color: var(--semantics-input-fields-placeholder-color);
6708
7070
  }
6709
7071
 
6710
- :host([size='md']) .text-field__input-fade::after,
6711
- :host(:not([size])) .text-field__input-fade::after {
6712
- border-radius: var(--semantics-controls-md-corner-radius);
7072
+ .multi-line-text-field__input:-webkit-autofill,
7073
+ .multi-line-text-field__input:autofill {
7074
+ box-shadow: 0 0 0 999px var(--_background-color) inset;
6713
7075
  }
6714
7076
 
6715
7077
 
6716
7078
  /* # Validation icon area */
6717
7079
 
6718
- .text-field__validation-icon-area {
7080
+ .multi-line-text-field__validation-icon-area {
7081
+ position: absolute;
7082
+ top: 0;
7083
+ right: 0;
6719
7084
  display: flex;
6720
7085
  align-items: center;
6721
7086
  justify-content: center;
6722
- flex-shrink: 0;
6723
- height: 100%;
6724
- }
6725
-
6726
- :host([size='sm']) .text-field__validation-icon-area {
6727
- width: calc(var(--semantics-controls-sm-min-size) - var(--semantics-input-fields-border-thickness) * 2);
6728
- }
6729
-
6730
- :host([size='md']) .text-field__validation-icon-area,
6731
- :host(:not([size])) .text-field__validation-icon-area {
6732
- width: calc(var(--semantics-controls-md-min-size) - var(--semantics-input-fields-border-thickness) * 2);
7087
+ width: var(--_icon-area-size);
7088
+ height: var(--_icon-area-size);
7089
+ pointer-events: none;
6733
7090
  }
6734
7091
 
6735
- :host([valid]) .text-field__validation-icon-area {
7092
+ :host([valid]) .multi-line-text-field__validation-icon-area {
6736
7093
  color: var(--semantics-input-fields-is-valid-icon-color);
6737
7094
  }
6738
7095
 
6739
- :host([invalid]) .text-field__validation-icon-area {
7096
+ :host([invalid]) .multi-line-text-field__validation-icon-area {
6740
7097
  color: var(--semantics-input-fields-is-invalid-icon-color);
6741
7098
  }
6742
7099
 
6743
7100
 
6744
7101
  /* # Validation icon */
6745
7102
 
6746
- :host([size='sm']) .text-field__validation-icon {
7103
+ :host([size='sm']) .multi-line-text-field__validation-icon {
6747
7104
  width: var(--semantics-input-fields-sm-validation-icon-size);
6748
7105
  height: var(--semantics-input-fields-sm-validation-icon-size);
6749
7106
  }
6750
7107
 
6751
- :host([size='md']) .text-field__validation-icon,
6752
- :host(:not([size])) .text-field__validation-icon {
7108
+ :host([size='md']) .multi-line-text-field__validation-icon,
7109
+ :host(:not([size])) .multi-line-text-field__validation-icon {
6753
7110
  width: var(--semantics-input-fields-md-validation-icon-size);
6754
7111
  height: var(--semantics-input-fields-md-validation-icon-size);
6755
7112
  }
@@ -6757,8 +7114,8 @@ const textFieldStyles = css`
6757
7114
  function renderValidationIcon$3(component) {
6758
7115
  if (component.invalid) {
6759
7116
  return html`
6760
- <div class="text-field__validation-icon-area">
6761
- <nldd-icon class="text-field__validation-icon"
7117
+ <div class="multi-line-text-field__validation-icon-area">
7118
+ <nldd-icon class="multi-line-text-field__validation-icon"
6762
7119
  name="invalid"
6763
7120
  aria-hidden="true"
6764
7121
  ></nldd-icon>
@@ -6767,8 +7124,8 @@ function renderValidationIcon$3(component) {
6767
7124
  }
6768
7125
  if (component.valid) {
6769
7126
  return html`
6770
- <div class="text-field__validation-icon-area">
6771
- <nldd-icon class="text-field__validation-icon"
7127
+ <div class="multi-line-text-field__validation-icon-area">
7128
+ <nldd-icon class="multi-line-text-field__validation-icon"
6772
7129
  name="valid"
6773
7130
  aria-hidden="true"
6774
7131
  ></nldd-icon>
@@ -6777,26 +7134,24 @@ function renderValidationIcon$3(component) {
6777
7134
  }
6778
7135
  return nothing;
6779
7136
  }
6780
- function textFieldTemplate(component) {
7137
+ function multiLineTextFieldTemplate(component) {
6781
7138
  return html`
6782
- <div class="text-field">
6783
- <input class="text-field__input"
7139
+ <div class="multi-line-text-field">
7140
+ <textarea class="multi-line-text-field__input"
6784
7141
  id=${component.inputId || nothing}
6785
- type=${component.type}
7142
+ rows=${component.rows}
6786
7143
  .value=${component.value}
6787
7144
  placeholder=${component.placeholder || nothing}
6788
7145
  ?disabled=${component.disabled}
6789
7146
  ?readonly=${component.readonly}
6790
7147
  ?required=${component.required}
6791
- name=${component.name || nothing}
6792
7148
  autocomplete=${component.autocomplete || nothing}
6793
7149
  aria-label=${component.accessibleLabel || nothing}
6794
7150
  aria-describedby=${component.errorMessageIds || nothing}
6795
7151
  aria-invalid=${component.invalid ? "true" : nothing}
6796
7152
  @input=${component._handleInput}
6797
7153
  @change=${component._handleChange}
6798
- />
6799
- <div class="text-field__input-fade"></div>
7154
+ ></textarea>
6800
7155
  ${renderValidationIcon$3(component)}
6801
7156
  </div>
6802
7157
  `;
@@ -6811,9 +7166,11 @@ var __decorateClass$U = (decorators, target, key, kind) => {
6811
7166
  if (kind && result) __defProp$S(target, key, result);
6812
7167
  return result;
6813
7168
  };
6814
- let NLDDTextField = class extends LitElement {
7169
+ let NLDDMultiLineTextField = class extends LitElement {
6815
7170
  constructor() {
6816
7171
  super(...arguments);
7172
+ this._internals = this.attachInternals();
7173
+ this._initialValue = "";
6817
7174
  this.size = "md";
6818
7175
  this.value = "";
6819
7176
  this.inputId = "";
@@ -6821,24 +7178,44 @@ let NLDDTextField = class extends LitElement {
6821
7178
  this.invalid = false;
6822
7179
  this.valid = false;
6823
7180
  this.disabled = false;
6824
- this.type = "text";
6825
7181
  this.name = "";
6826
7182
  this.readonly = false;
6827
7183
  this.required = false;
6828
7184
  this.autocomplete = "";
7185
+ this.rows = 3;
7186
+ this.resize = "vertical";
6829
7187
  this.accessibleLabel = "";
6830
7188
  this.errorMessageIds = "";
6831
7189
  this.width = "";
6832
7190
  }
7191
+ firstUpdated() {
7192
+ this._initialValue = this.value;
7193
+ }
6833
7194
  updated(changed) {
6834
7195
  if (changed.has("width")) {
6835
7196
  this.style.width = this.width || "";
6836
7197
  }
7198
+ if (changed.has("resize") && this.resize === "auto" && this._textarea) {
7199
+ this._textarea.style.width = "";
7200
+ this._textarea.style.height = "";
7201
+ }
7202
+ if (changed.has("value")) {
7203
+ this._internals.setFormValue(this.value);
7204
+ }
7205
+ }
7206
+ formResetCallback() {
7207
+ this.value = this._initialValue;
7208
+ }
7209
+ formDisabledCallback(disabled) {
7210
+ this.disabled = disabled;
7211
+ }
7212
+ formStateRestoreCallback(state2) {
7213
+ if (typeof state2 === "string") this.value = state2;
6837
7214
  }
6838
7215
  _handleInput(e) {
6839
7216
  e.stopPropagation();
6840
- const input = e.target;
6841
- this.value = input.value;
7217
+ const textarea = e.target;
7218
+ this.value = textarea.value;
6842
7219
  this.dispatchEvent(new CustomEvent("input", {
6843
7220
  detail: { value: this.value },
6844
7221
  bubbles: true,
@@ -6847,80 +7224,78 @@ let NLDDTextField = class extends LitElement {
6847
7224
  }
6848
7225
  _handleChange(e) {
6849
7226
  e.stopPropagation();
6850
- const input = e.target;
6851
- this.value = input.value;
7227
+ const textarea = e.target;
7228
+ this.value = textarea.value;
6852
7229
  this.dispatchEvent(new CustomEvent("change", {
6853
7230
  detail: { value: this.value },
6854
7231
  bubbles: true,
6855
7232
  composed: true
6856
7233
  }));
6857
7234
  }
6858
- focus() {
6859
- this._input?.focus();
6860
- }
6861
- blur() {
6862
- this._input?.blur();
6863
- }
6864
7235
  render() {
6865
- return textFieldTemplate(this);
7236
+ return multiLineTextFieldTemplate(this);
6866
7237
  }
6867
7238
  };
6868
- NLDDTextField.shadowRootOptions = {
7239
+ NLDDMultiLineTextField.formAssociated = true;
7240
+ NLDDMultiLineTextField.shadowRootOptions = {
6869
7241
  ...LitElement.shadowRootOptions,
6870
7242
  delegatesFocus: true
6871
7243
  };
6872
- NLDDTextField.styles = textFieldStyles;
7244
+ NLDDMultiLineTextField.styles = multiLineTextFieldStyles;
6873
7245
  __decorateClass$U([
6874
7246
  property({ type: String, reflect: true })
6875
- ], NLDDTextField.prototype, "size", 2);
7247
+ ], NLDDMultiLineTextField.prototype, "size", 2);
6876
7248
  __decorateClass$U([
6877
7249
  property({ type: String })
6878
- ], NLDDTextField.prototype, "value", 2);
7250
+ ], NLDDMultiLineTextField.prototype, "value", 2);
6879
7251
  __decorateClass$U([
6880
7252
  property({ type: String, attribute: "input-id" })
6881
- ], NLDDTextField.prototype, "inputId", 2);
7253
+ ], NLDDMultiLineTextField.prototype, "inputId", 2);
6882
7254
  __decorateClass$U([
6883
7255
  property({ type: String })
6884
- ], NLDDTextField.prototype, "placeholder", 2);
7256
+ ], NLDDMultiLineTextField.prototype, "placeholder", 2);
6885
7257
  __decorateClass$U([
6886
7258
  property({ type: Boolean, reflect: true })
6887
- ], NLDDTextField.prototype, "invalid", 2);
7259
+ ], NLDDMultiLineTextField.prototype, "invalid", 2);
6888
7260
  __decorateClass$U([
6889
7261
  property({ type: Boolean, reflect: true })
6890
- ], NLDDTextField.prototype, "valid", 2);
7262
+ ], NLDDMultiLineTextField.prototype, "valid", 2);
6891
7263
  __decorateClass$U([
6892
7264
  property({ type: Boolean, reflect: true })
6893
- ], NLDDTextField.prototype, "disabled", 2);
7265
+ ], NLDDMultiLineTextField.prototype, "disabled", 2);
6894
7266
  __decorateClass$U([
6895
- property({ type: String })
6896
- ], NLDDTextField.prototype, "type", 2);
6897
- __decorateClass$U([
6898
- property({ type: String })
6899
- ], NLDDTextField.prototype, "name", 2);
7267
+ property({ type: String, reflect: true })
7268
+ ], NLDDMultiLineTextField.prototype, "name", 2);
6900
7269
  __decorateClass$U([
6901
7270
  property({ type: Boolean, reflect: true })
6902
- ], NLDDTextField.prototype, "readonly", 2);
7271
+ ], NLDDMultiLineTextField.prototype, "readonly", 2);
6903
7272
  __decorateClass$U([
6904
7273
  property({ type: Boolean, reflect: true })
6905
- ], NLDDTextField.prototype, "required", 2);
7274
+ ], NLDDMultiLineTextField.prototype, "required", 2);
6906
7275
  __decorateClass$U([
6907
7276
  property({ type: String })
6908
- ], NLDDTextField.prototype, "autocomplete", 2);
7277
+ ], NLDDMultiLineTextField.prototype, "autocomplete", 2);
7278
+ __decorateClass$U([
7279
+ property({ type: Number })
7280
+ ], NLDDMultiLineTextField.prototype, "rows", 2);
7281
+ __decorateClass$U([
7282
+ property({ type: String, reflect: true })
7283
+ ], NLDDMultiLineTextField.prototype, "resize", 2);
6909
7284
  __decorateClass$U([
6910
7285
  property({ type: String, attribute: "accessible-label" })
6911
- ], NLDDTextField.prototype, "accessibleLabel", 2);
7286
+ ], NLDDMultiLineTextField.prototype, "accessibleLabel", 2);
6912
7287
  __decorateClass$U([
6913
7288
  property({ type: String, attribute: "error-message-ids" })
6914
- ], NLDDTextField.prototype, "errorMessageIds", 2);
7289
+ ], NLDDMultiLineTextField.prototype, "errorMessageIds", 2);
6915
7290
  __decorateClass$U([
6916
7291
  property({ type: String, reflect: true })
6917
- ], NLDDTextField.prototype, "width", 2);
7292
+ ], NLDDMultiLineTextField.prototype, "width", 2);
6918
7293
  __decorateClass$U([
6919
- query(".text-field__input")
6920
- ], NLDDTextField.prototype, "_input", 2);
6921
- NLDDTextField = __decorateClass$U([
6922
- customElement("nldd-text-field")
6923
- ], NLDDTextField);
7294
+ query(".multi-line-text-field__input")
7295
+ ], NLDDMultiLineTextField.prototype, "_textarea", 2);
7296
+ NLDDMultiLineTextField = __decorateClass$U([
7297
+ customElement("nldd-multi-line-text-field")
7298
+ ], NLDDMultiLineTextField);
6924
7299
  const passwordFieldStyles = css`
6925
7300
 
6926
7301
 
@@ -7221,6 +7596,8 @@ var __decorateClass$T = (decorators, target, key, kind) => {
7221
7596
  let NLDDPasswordField = class extends LitElement {
7222
7597
  constructor() {
7223
7598
  super(...arguments);
7599
+ this._internals = this.attachInternals();
7600
+ this._initialValue = "";
7224
7601
  this.size = "md";
7225
7602
  this.value = "";
7226
7603
  this.inputId = "";
@@ -7241,10 +7618,25 @@ let NLDDPasswordField = class extends LitElement {
7241
7618
  this.errorMessageIds = "";
7242
7619
  this.width = "";
7243
7620
  }
7621
+ firstUpdated() {
7622
+ this._initialValue = this.value;
7623
+ }
7244
7624
  updated(changed) {
7245
7625
  if (changed.has("width")) {
7246
7626
  this.style.width = this.width || "";
7247
7627
  }
7628
+ if (changed.has("value")) {
7629
+ this._internals.setFormValue(this.value);
7630
+ }
7631
+ }
7632
+ formResetCallback() {
7633
+ this.value = this._initialValue;
7634
+ }
7635
+ formDisabledCallback(disabled) {
7636
+ this.disabled = disabled;
7637
+ }
7638
+ formStateRestoreCallback(state2) {
7639
+ if (typeof state2 === "string") this.value = state2;
7248
7640
  }
7249
7641
  _handleInput(e) {
7250
7642
  e.stopPropagation();
@@ -7279,6 +7671,7 @@ let NLDDPasswordField = class extends LitElement {
7279
7671
  return passwordFieldTemplate(this);
7280
7672
  }
7281
7673
  };
7674
+ NLDDPasswordField.formAssociated = true;
7282
7675
  NLDDPasswordField.shadowRootOptions = {
7283
7676
  ...LitElement.shadowRootOptions,
7284
7677
  delegatesFocus: true
@@ -7327,7 +7720,7 @@ __decorateClass$T([
7327
7720
  property({ type: Boolean, reflect: true })
7328
7721
  ], NLDDPasswordField.prototype, "required", 2);
7329
7722
  __decorateClass$T([
7330
- property({ type: String })
7723
+ property({ type: String, reflect: true })
7331
7724
  ], NLDDPasswordField.prototype, "name", 2);
7332
7725
  __decorateClass$T([
7333
7726
  property({ type: String })
@@ -7587,6 +7980,8 @@ var __decorateClass$S = (decorators, target, key, kind) => {
7587
7980
  let NLDDSearchField = class extends LitElement {
7588
7981
  constructor() {
7589
7982
  super(...arguments);
7983
+ this._internals = this.attachInternals();
7984
+ this._initialValue = "";
7590
7985
  this.value = "";
7591
7986
  this.placeholder = "Zoeken";
7592
7987
  this.accessibleLabel = "";
@@ -7597,10 +7992,25 @@ let NLDDSearchField = class extends LitElement {
7597
7992
  this.translations = {};
7598
7993
  this.width = "";
7599
7994
  }
7995
+ firstUpdated() {
7996
+ this._initialValue = this.value;
7997
+ }
7600
7998
  updated(changed) {
7601
7999
  if (changed.has("width")) {
7602
8000
  this.style.width = this.width || "";
7603
8001
  }
8002
+ if (changed.has("value")) {
8003
+ this._internals.setFormValue(this.value);
8004
+ }
8005
+ }
8006
+ formResetCallback() {
8007
+ this.value = this._initialValue;
8008
+ }
8009
+ formDisabledCallback(disabled) {
8010
+ this.disabled = disabled;
8011
+ }
8012
+ formStateRestoreCallback(state2) {
8013
+ if (typeof state2 === "string") this.value = state2;
7604
8014
  }
7605
8015
  // — i18n ——————————————————————————————————————————————————————————————————
7606
8016
  _t(key) {
@@ -7658,6 +8068,7 @@ let NLDDSearchField = class extends LitElement {
7658
8068
  return searchFieldTemplate(this);
7659
8069
  }
7660
8070
  };
8071
+ NLDDSearchField.formAssociated = true;
7661
8072
  NLDDSearchField.styles = searchFieldStyles;
7662
8073
  __decorateClass$S([
7663
8074
  property({ type: String })
@@ -7675,7 +8086,7 @@ __decorateClass$S([
7675
8086
  property({ type: Boolean, reflect: true })
7676
8087
  ], NLDDSearchField.prototype, "disabled", 2);
7677
8088
  __decorateClass$S([
7678
- property({ type: String })
8089
+ property({ type: String, reflect: true })
7679
8090
  ], NLDDSearchField.prototype, "name", 2);
7680
8091
  __decorateClass$S([
7681
8092
  property({ type: Boolean, reflect: true, attribute: "show-search-button" })
@@ -7910,6 +8321,8 @@ var __decorateClass$R = (decorators, target, key, kind) => {
7910
8321
  let NLDDNumberField = class extends LitElement {
7911
8322
  constructor() {
7912
8323
  super(...arguments);
8324
+ this._internals = this.attachInternals();
8325
+ this._initialValue = 0;
7913
8326
  this.value = 0;
7914
8327
  this.min = -Infinity;
7915
8328
  this.max = Infinity;
@@ -7926,6 +8339,7 @@ let NLDDNumberField = class extends LitElement {
7926
8339
  }
7927
8340
  firstUpdated() {
7928
8341
  this._lastValidValue = this._clamp(this.value);
8342
+ this._initialValue = this._lastValidValue;
7929
8343
  }
7930
8344
  updated(changedProperties) {
7931
8345
  if (changedProperties.has("width")) {
@@ -7937,6 +8351,20 @@ let NLDDNumberField = class extends LitElement {
7937
8351
  this.removeAttribute("width");
7938
8352
  }
7939
8353
  }
8354
+ if (changedProperties.has("value")) {
8355
+ this._internals.setFormValue(String(this.value));
8356
+ }
8357
+ }
8358
+ formResetCallback() {
8359
+ this.value = this._initialValue;
8360
+ }
8361
+ formDisabledCallback(disabled) {
8362
+ this.disabled = disabled;
8363
+ }
8364
+ formStateRestoreCallback(state2) {
8365
+ if (typeof state2 !== "string") return;
8366
+ const parsed = parseFloat(state2);
8367
+ if (!isNaN(parsed)) this.value = this._clamp(parsed);
7940
8368
  }
7941
8369
  // — i18n —————————————————————————————————————————————————————————————————
7942
8370
  _t(key) {
@@ -7997,6 +8425,7 @@ let NLDDNumberField = class extends LitElement {
7997
8425
  return numberFieldTemplate(this);
7998
8426
  }
7999
8427
  };
8428
+ NLDDNumberField.formAssociated = true;
8000
8429
  NLDDNumberField.styles = numberFieldStyles;
8001
8430
  __decorateClass$R([
8002
8431
  property({ type: Number })
@@ -8017,7 +8446,7 @@ __decorateClass$R([
8017
8446
  property({ type: Boolean, reflect: true })
8018
8447
  ], NLDDNumberField.prototype, "disabled", 2);
8019
8448
  __decorateClass$R([
8020
- property({ type: String })
8449
+ property({ type: String, reflect: true })
8021
8450
  ], NLDDNumberField.prototype, "name", 2);
8022
8451
  __decorateClass$R([
8023
8452
  property({ type: Boolean, reflect: true, attribute: "full-width" })
@@ -8639,6 +9068,9 @@ var __decorateClass$P = (decorators, target, key, kind) => {
8639
9068
  let NLDDComboBox = class extends LitElement {
8640
9069
  constructor() {
8641
9070
  super(...arguments);
9071
+ this._internals = this.attachInternals();
9072
+ this._initialValue = "";
9073
+ this._initialDisplayValue = "";
8642
9074
  this.value = "";
8643
9075
  this.placeholder = "";
8644
9076
  this.size = "md";
@@ -8700,6 +9132,8 @@ let NLDDComboBox = class extends LitElement {
8700
9132
  }
8701
9133
  // — Lifecycle ————————————————————————————————————————————————————————————
8702
9134
  firstUpdated() {
9135
+ this._initialValue = this.value;
9136
+ this._initialDisplayValue = this._displayValue;
8703
9137
  }
8704
9138
  updated(changedProperties) {
8705
9139
  if (changedProperties.has("maxItems") && this._menu) {
@@ -8708,6 +9142,28 @@ let NLDDComboBox = class extends LitElement {
8708
9142
  if (changedProperties.has("width")) {
8709
9143
  this.style.width = this.width || "";
8710
9144
  }
9145
+ if (changedProperties.has("value") || changedProperties.has("_displayValue")) {
9146
+ const state2 = new FormData();
9147
+ state2.append("value", this.value);
9148
+ state2.append("display", this._displayValue);
9149
+ this._internals.setFormValue(this.value, state2);
9150
+ }
9151
+ }
9152
+ formResetCallback() {
9153
+ this.value = this._initialValue;
9154
+ this._displayValue = this._initialDisplayValue;
9155
+ }
9156
+ formDisabledCallback(disabled) {
9157
+ this.disabled = disabled;
9158
+ }
9159
+ formStateRestoreCallback(state2) {
9160
+ if (state2 instanceof FormData) {
9161
+ this.value = String(state2.get("value") ?? "");
9162
+ this._displayValue = String(state2.get("display") ?? "");
9163
+ } else if (typeof state2 === "string") {
9164
+ this.value = state2;
9165
+ this._displayValue = state2;
9166
+ }
8711
9167
  }
8712
9168
  connectedCallback() {
8713
9169
  super.connectedCallback();
@@ -8878,6 +9334,7 @@ let NLDDComboBox = class extends LitElement {
8878
9334
  return comboBoxTemplate(this);
8879
9335
  }
8880
9336
  };
9337
+ NLDDComboBox.formAssociated = true;
8881
9338
  NLDDComboBox.styles = comboBoxStyles;
8882
9339
  NLDDComboBox._idCounter = 0;
8883
9340
  __decorateClass$P([
@@ -8899,7 +9356,7 @@ __decorateClass$P([
8899
9356
  property({ type: Boolean, reflect: true })
8900
9357
  ], NLDDComboBox.prototype, "disabled", 2);
8901
9358
  __decorateClass$P([
8902
- property({ type: String })
9359
+ property({ type: String, reflect: true })
8903
9360
  ], NLDDComboBox.prototype, "name", 2);
8904
9361
  __decorateClass$P([
8905
9362
  property({ type: String })
@@ -9072,14 +9529,36 @@ var __decorateClass$O = (decorators, target, key, kind) => {
9072
9529
  let NLDDStepper = class extends LitElement {
9073
9530
  constructor() {
9074
9531
  super(...arguments);
9532
+ this._internals = this.attachInternals();
9533
+ this._initialValue = 0;
9075
9534
  this.value = 0;
9076
9535
  this.min = 0;
9077
9536
  this.max = Infinity;
9078
9537
  this.step = 1;
9079
9538
  this.disabled = false;
9080
9539
  this.size = "md";
9540
+ this.name = "";
9081
9541
  this.translations = {};
9082
9542
  }
9543
+ firstUpdated() {
9544
+ this._initialValue = this.value;
9545
+ }
9546
+ updated(changed) {
9547
+ if (changed.has("value")) {
9548
+ this._internals.setFormValue(String(this.value));
9549
+ }
9550
+ }
9551
+ formResetCallback() {
9552
+ this.value = this._initialValue;
9553
+ }
9554
+ formDisabledCallback(disabled) {
9555
+ this.disabled = disabled;
9556
+ }
9557
+ formStateRestoreCallback(state2) {
9558
+ if (typeof state2 !== "string") return;
9559
+ const parsed = parseFloat(state2);
9560
+ if (!isNaN(parsed)) this.value = Math.max(this.min, Math.min(this.max, parsed));
9561
+ }
9083
9562
  // — i18n —————————————————————————————————————————————————————————————————
9084
9563
  _t(key) {
9085
9564
  return this.translations[key] ?? nlddStepperTranslations[key];
@@ -9140,6 +9619,7 @@ let NLDDStepper = class extends LitElement {
9140
9619
  return stepperTemplate(this);
9141
9620
  }
9142
9621
  };
9622
+ NLDDStepper.formAssociated = true;
9143
9623
  NLDDStepper.styles = stepperStyles;
9144
9624
  __decorateClass$O([
9145
9625
  property({ type: Number })
@@ -9159,6 +9639,9 @@ __decorateClass$O([
9159
9639
  __decorateClass$O([
9160
9640
  property({ type: String, reflect: true })
9161
9641
  ], NLDDStepper.prototype, "size", 2);
9642
+ __decorateClass$O([
9643
+ property({ type: String, reflect: true })
9644
+ ], NLDDStepper.prototype, "name", 2);
9162
9645
  __decorateClass$O([
9163
9646
  property({ type: Object })
9164
9647
  ], NLDDStepper.prototype, "translations", 2);
@@ -9322,6 +9805,8 @@ var __decorateClass$N = (decorators, target, key, kind) => {
9322
9805
  let NLDDCheckbox = class extends LitElement {
9323
9806
  constructor() {
9324
9807
  super(...arguments);
9808
+ this._internals = this.attachInternals();
9809
+ this._initialChecked = false;
9325
9810
  this.checked = false;
9326
9811
  this.disabled = false;
9327
9812
  this.indeterminate = false;
@@ -9329,6 +9814,24 @@ let NLDDCheckbox = class extends LitElement {
9329
9814
  this.name = "";
9330
9815
  this.accessibleLabel = "";
9331
9816
  }
9817
+ firstUpdated() {
9818
+ this._initialChecked = this.checked;
9819
+ }
9820
+ updated(changed) {
9821
+ if (changed.has("checked") || changed.has("value")) {
9822
+ this._internals.setFormValue(this.checked ? this.value : null);
9823
+ }
9824
+ }
9825
+ formResetCallback() {
9826
+ this.checked = this._initialChecked;
9827
+ this.indeterminate = false;
9828
+ }
9829
+ formDisabledCallback(disabled) {
9830
+ this.disabled = disabled;
9831
+ }
9832
+ formStateRestoreCallback(state2) {
9833
+ this.checked = state2 !== null;
9834
+ }
9332
9835
  toggle() {
9333
9836
  if (this.disabled) return;
9334
9837
  this.checked = !this.checked;
@@ -9353,6 +9856,7 @@ let NLDDCheckbox = class extends LitElement {
9353
9856
  return checkboxTemplate(this);
9354
9857
  }
9355
9858
  };
9859
+ NLDDCheckbox.formAssociated = true;
9356
9860
  NLDDCheckbox.styles = checkboxStyles;
9357
9861
  __decorateClass$N([
9358
9862
  property({ type: Boolean, reflect: true })
@@ -9367,7 +9871,7 @@ __decorateClass$N([
9367
9871
  property({ type: String })
9368
9872
  ], NLDDCheckbox.prototype, "value", 2);
9369
9873
  __decorateClass$N([
9370
- property({ type: String })
9874
+ property({ type: String, reflect: true })
9371
9875
  ], NLDDCheckbox.prototype, "name", 2);
9372
9876
  __decorateClass$N([
9373
9877
  property({ type: String, attribute: "accessible-label" })
@@ -9657,6 +10161,8 @@ var __decorateClass$L = (decorators, target, key, kind) => {
9657
10161
  let NLDDRadioButton = class extends LitElement {
9658
10162
  constructor() {
9659
10163
  super(...arguments);
10164
+ this._internals = this.attachInternals();
10165
+ this._initialChecked = false;
9660
10166
  this.checked = false;
9661
10167
  this.disabled = false;
9662
10168
  this.required = false;
@@ -9664,6 +10170,23 @@ let NLDDRadioButton = class extends LitElement {
9664
10170
  this.value = "";
9665
10171
  this.accessibleLabel = "";
9666
10172
  }
10173
+ firstUpdated() {
10174
+ this._initialChecked = this.checked;
10175
+ }
10176
+ updated(changed) {
10177
+ if (changed.has("checked") || changed.has("value")) {
10178
+ this._internals.setFormValue(this.checked ? this.value : null);
10179
+ }
10180
+ }
10181
+ formResetCallback() {
10182
+ this.checked = this._initialChecked;
10183
+ }
10184
+ formDisabledCallback(disabled) {
10185
+ this.disabled = disabled;
10186
+ }
10187
+ formStateRestoreCallback(state2) {
10188
+ this.checked = state2 !== null;
10189
+ }
9667
10190
  select() {
9668
10191
  if (this.disabled || this.checked) return;
9669
10192
  const input = this.shadowRoot?.querySelector("input");
@@ -9684,6 +10207,7 @@ let NLDDRadioButton = class extends LitElement {
9684
10207
  return radioButtonTemplate(this);
9685
10208
  }
9686
10209
  };
10210
+ NLDDRadioButton.formAssociated = true;
9687
10211
  NLDDRadioButton.styles = radioButtonStyles;
9688
10212
  __decorateClass$L([
9689
10213
  property({ type: Boolean, reflect: true })
@@ -9695,7 +10219,7 @@ __decorateClass$L([
9695
10219
  property({ type: Boolean, reflect: true })
9696
10220
  ], NLDDRadioButton.prototype, "required", 2);
9697
10221
  __decorateClass$L([
9698
- property({ type: String })
10222
+ property({ type: String, reflect: true })
9699
10223
  ], NLDDRadioButton.prototype, "name", 2);
9700
10224
  __decorateClass$L([
9701
10225
  property({ type: String })
@@ -10179,15 +10703,33 @@ var __decorateClass$I = (decorators, target, key, kind) => {
10179
10703
  let NLDDSwitch = class extends LitElement {
10180
10704
  constructor() {
10181
10705
  super(...arguments);
10706
+ this._internals = this.attachInternals();
10707
+ this.name = "";
10182
10708
  this.checked = false;
10183
10709
  this.disabled = false;
10184
10710
  this.size = "sm";
10185
10711
  this.accessibleLabel = "";
10186
10712
  this.value = "on";
10713
+ this._initialChecked = false;
10187
10714
  this._pointerStartX = null;
10188
10715
  this._swiped = false;
10189
10716
  }
10190
10717
  firstUpdated() {
10718
+ this._initialChecked = this.checked;
10719
+ }
10720
+ updated(changed) {
10721
+ if (changed.has("checked") || changed.has("value")) {
10722
+ this._internals.setFormValue(this.checked ? this.value : null);
10723
+ }
10724
+ }
10725
+ formResetCallback() {
10726
+ this.checked = this._initialChecked;
10727
+ }
10728
+ formDisabledCallback(disabled) {
10729
+ this.disabled = disabled;
10730
+ }
10731
+ formStateRestoreCallback(state2) {
10732
+ this.checked = state2 !== null;
10191
10733
  }
10192
10734
  _handlePointerDown(e) {
10193
10735
  this._pointerStartX = e.clientX;
@@ -10250,8 +10792,12 @@ let NLDDSwitch = class extends LitElement {
10250
10792
  return switchTemplate(this);
10251
10793
  }
10252
10794
  };
10795
+ NLDDSwitch.formAssociated = true;
10253
10796
  NLDDSwitch.styles = switchStyles;
10254
10797
  NLDDSwitch.SWIPE_THRESHOLD = 10;
10798
+ __decorateClass$I([
10799
+ property({ type: String, reflect: true })
10800
+ ], NLDDSwitch.prototype, "name", 2);
10255
10801
  __decorateClass$I([
10256
10802
  property({ type: Boolean, reflect: true })
10257
10803
  ], NLDDSwitch.prototype, "checked", 2);
@@ -10716,6 +11262,9 @@ NLDDSegmentedControlItem = __decorateClass$G([
10716
11262
  let NLDDSegmentedControl = class extends LitElement {
10717
11263
  constructor() {
10718
11264
  super(...arguments);
11265
+ this._internals = this.attachInternals();
11266
+ this._initialValue = "";
11267
+ this._initialValues = [];
10719
11268
  this.value = "";
10720
11269
  this.values = [];
10721
11270
  this.size = "md";
@@ -10807,11 +11356,44 @@ let NLDDSegmentedControl = class extends LitElement {
10807
11356
  }
10808
11357
  firstUpdated() {
10809
11358
  this._syncItems();
11359
+ this._initialValue = this.value;
11360
+ this._initialValues = [...this.values];
11361
+ }
11362
+ _syncFormValue() {
11363
+ if (this.type === "checkbox") {
11364
+ if (this.values.length === 0 || !this.name) {
11365
+ this._internals.setFormValue(null);
11366
+ return;
11367
+ }
11368
+ const data = new FormData();
11369
+ for (const v of this.values) data.append(this.name, v);
11370
+ this._internals.setFormValue(data);
11371
+ } else {
11372
+ this._internals.setFormValue(this.value || null);
11373
+ }
11374
+ }
11375
+ formResetCallback() {
11376
+ this.value = this._initialValue;
11377
+ this.values = [...this._initialValues];
11378
+ }
11379
+ formDisabledCallback(disabled) {
11380
+ this.disabled = disabled;
11381
+ }
11382
+ formStateRestoreCallback(state2) {
11383
+ if (state2 === null) return;
11384
+ if (this.type === "checkbox" && state2 instanceof FormData && this.name) {
11385
+ this.values = state2.getAll(this.name).map(String);
11386
+ } else if (typeof state2 === "string") {
11387
+ this.value = state2;
11388
+ }
10810
11389
  }
10811
11390
  updated(changedProperties) {
10812
11391
  if (changedProperties.has("value") || changedProperties.has("values") || changedProperties.has("size") || changedProperties.has("disabled") || changedProperties.has("type") || changedProperties.has("variant") || changedProperties.has("name")) {
10813
11392
  this._syncItems();
10814
11393
  }
11394
+ if (changedProperties.has("value") || changedProperties.has("values") || changedProperties.has("type") || changedProperties.has("name")) {
11395
+ this._syncFormValue();
11396
+ }
10815
11397
  if (changedProperties.has("type")) {
10816
11398
  this.setAttribute("role", this.type === "checkbox" ? "group" : "radiogroup");
10817
11399
  }
@@ -10880,6 +11462,7 @@ let NLDDSegmentedControl = class extends LitElement {
10880
11462
  return segmentedControlTemplate(this);
10881
11463
  }
10882
11464
  };
11465
+ NLDDSegmentedControl.formAssociated = true;
10883
11466
  NLDDSegmentedControl.styles = segmentedControlStyles;
10884
11467
  NLDDSegmentedControl._idCounter = 0;
10885
11468
  __decorateClass$G([
@@ -10904,7 +11487,7 @@ __decorateClass$G([
10904
11487
  property({ type: Boolean, reflect: true, attribute: "full-width" })
10905
11488
  ], NLDDSegmentedControl.prototype, "fullWidth", 2);
10906
11489
  __decorateClass$G([
10907
- property({ type: String })
11490
+ property({ type: String, reflect: true })
10908
11491
  ], NLDDSegmentedControl.prototype, "name", 2);
10909
11492
  __decorateClass$G([
10910
11493
  property({ type: String, attribute: "accessible-label" })
@@ -11138,6 +11721,8 @@ var __decorateClass$F = (decorators, target, key, kind) => {
11138
11721
  let NLDDToggleButton = class extends LitElement {
11139
11722
  constructor() {
11140
11723
  super(...arguments);
11724
+ this._internals = this.attachInternals();
11725
+ this._initialSelected = false;
11141
11726
  this.type = "button";
11142
11727
  this.size = "md";
11143
11728
  this.selected = false;
@@ -11155,13 +11740,29 @@ let NLDDToggleButton = class extends LitElement {
11155
11740
  const slot = this.shadowRoot?.querySelector('slot[name="icon"]');
11156
11741
  return (slot?.assignedElements().length ?? 0) > 0;
11157
11742
  }
11158
- updated() {
11743
+ firstUpdated() {
11744
+ this._initialSelected = this.selected;
11745
+ }
11746
+ updated(changed) {
11159
11747
  const iconOnly = this._hasIcon && !this.text;
11160
11748
  this.toggleAttribute("icon-only", iconOnly);
11161
11749
  const inaccessible = iconOnly && !this.accessibleLabel;
11162
11750
  if (!inaccessible) {
11163
11751
  this._warnedA11y = false;
11164
11752
  }
11753
+ if (changed.has("selected") || changed.has("value") || changed.has("type")) {
11754
+ const submits = this.type === "checkbox" || this.type === "radio";
11755
+ this._internals.setFormValue(submits && this.selected ? this.value : null);
11756
+ }
11757
+ }
11758
+ formResetCallback() {
11759
+ this.selected = this._initialSelected;
11760
+ }
11761
+ formDisabledCallback(disabled) {
11762
+ this.disabled = disabled;
11763
+ }
11764
+ formStateRestoreCallback(state2) {
11765
+ this.selected = state2 !== null;
11165
11766
  }
11166
11767
  _handleButtonClick() {
11167
11768
  if (this.disabled) return;
@@ -11196,6 +11797,7 @@ let NLDDToggleButton = class extends LitElement {
11196
11797
  return toggleButtonTemplate(this);
11197
11798
  }
11198
11799
  };
11800
+ NLDDToggleButton.formAssociated = true;
11199
11801
  NLDDToggleButton.styles = toggleButtonStyles;
11200
11802
  __decorateClass$F([
11201
11803
  property({ type: String, reflect: true })
@@ -11213,7 +11815,7 @@ __decorateClass$F([
11213
11815
  property({ type: String })
11214
11816
  ], NLDDToggleButton.prototype, "value", 2);
11215
11817
  __decorateClass$F([
11216
- property({ type: String })
11818
+ property({ type: String, reflect: true })
11217
11819
  ], NLDDToggleButton.prototype, "name", 2);
11218
11820
  __decorateClass$F([
11219
11821
  property({ type: String })
@@ -23853,7 +24455,10 @@ let NLDDModalDialog = class extends LitElement {
23853
24455
  });
23854
24456
  }
23855
24457
  _handleBackdropClick(e) {
23856
- if (e.target === this._dialog) this.hide();
24458
+ if (e.target !== this._dialog) return;
24459
+ const rect = this._dialog.getBoundingClientRect();
24460
+ const insideDialog = e.clientX >= rect.left && e.clientX <= rect.right && e.clientY >= rect.top && e.clientY <= rect.bottom;
24461
+ if (!insideDialog) this.hide();
23857
24462
  }
23858
24463
  _handleCancel(e) {
23859
24464
  e.preventDefault();
@@ -24146,6 +24751,7 @@ export {
24146
24751
  NLDDMenuBar,
24147
24752
  NLDDMenuBarItem,
24148
24753
  NLDDModalDialog,
24754
+ NLDDMultiLineTextField,
24149
24755
  NLDDNavigationSplitView,
24150
24756
  NLDDNumberField,
24151
24757
  NLDDOneHalfOneHalfSection,