@sebgroup/green-core 1.44.0 → 1.44.1

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 (100) hide show
  1. package/chunks/{chunk.BCS4PASD.js → chunk.2ZIUCG7G.js} +1 -1
  2. package/chunks/{chunk.HLHUB6TZ.js → chunk.46I62XV6.js} +2 -2
  3. package/chunks/{chunk.XR3X7F2A.js → chunk.4VNPUJEC.js} +1 -1
  4. package/chunks/{chunk.CT45ZXYV.js → chunk.6TNAAW6Y.js} +2 -2
  5. package/chunks/{chunk.ZBBHPNRF.js → chunk.7MN3FGMW.js} +1 -5
  6. package/chunks/{chunk.GLPRMXEM.js → chunk.7MP4ANZI.js} +3 -11
  7. package/chunks/{chunk.TTPOSCXC.js → chunk.AYV44PLU.js} +2 -2
  8. package/chunks/{chunk.QADYK4E2.js → chunk.BTTEXCWB.js} +1 -1
  9. package/chunks/{chunk.BEVY3RBV.js → chunk.D3W2U27U.js} +2 -2
  10. package/chunks/{chunk.4WBWVSFH.js → chunk.EN5Y2AK7.js} +1 -1
  11. package/chunks/{chunk.T23MQZTC.js → chunk.ESK54MCQ.js} +1 -1
  12. package/chunks/{chunk.ZQ2JAV5I.js → chunk.FRLQ4Z7W.js} +1 -5
  13. package/chunks/{chunk.EYQDUQM6.js → chunk.GCALFQNZ.js} +1 -1
  14. package/chunks/{chunk.6CJQHXBU.js → chunk.GDCYH5VR.js} +8 -8
  15. package/chunks/{chunk.UWHC377I.js → chunk.IOTM5YAE.js} +1 -1
  16. package/chunks/{chunk.GY2CTMKO.js → chunk.IV5PKSGW.js} +21 -20
  17. package/chunks/{chunk.KQ3TNYWD.js → chunk.JKZA62AZ.js} +1 -1
  18. package/chunks/{chunk.4HWYIRC5.js → chunk.KJEYCVZD.js} +1 -1
  19. package/chunks/{chunk.WGM6OBWS.js → chunk.LMCHWL4J.js} +1 -1
  20. package/chunks/{chunk.YWNTFJ5U.js → chunk.M6S7DFXL.js} +1 -1
  21. package/chunks/{chunk.VWGN42IH.js → chunk.MEBGGZS3.js} +1 -2
  22. package/chunks/{chunk.LM6O3IHE.js → chunk.NNI5R7KD.js} +0 -1
  23. package/chunks/chunk.PBRH3UPJ.js +1 -1
  24. package/chunks/{chunk.NEDHKTV3.js → chunk.PUV6DKD5.js} +1 -1
  25. package/chunks/{chunk.WTJ3JXMT.js → chunk.Q55XDI63.js} +1 -5
  26. package/chunks/{chunk.5ISYIA2D.js → chunk.QGFXIMF2.js} +3 -11
  27. package/chunks/{chunk.YATFLBMP.js → chunk.RO5N2AXO.js} +1 -1
  28. package/chunks/{chunk.BJTGUBXP.js → chunk.SPS6STAC.js} +1 -1
  29. package/chunks/{chunk.KLQWNYTK.js → chunk.UF3FIUDC.js} +1 -5
  30. package/chunks/{chunk.PPDJS5U3.js → chunk.WWOUM4K7.js} +1 -1
  31. package/components/badge/badge.js +2 -2
  32. package/components/badge/index.js +2 -2
  33. package/components/button/button.js +3 -4
  34. package/components/button/fab/fab.js +4 -5
  35. package/components/button/fab/index.js +4 -5
  36. package/components/button/index.js +3 -4
  37. package/components/calendar/calendar.js +2 -2
  38. package/components/calendar/index.js +2 -2
  39. package/components/content/divider/divider.js +2 -2
  40. package/components/content/divider/index.js +2 -2
  41. package/components/content/spacer/index.js +2 -2
  42. package/components/content/spacer/spacer.js +2 -2
  43. package/components/content/text/index.js +2 -2
  44. package/components/content/text/text.js +2 -2
  45. package/components/context-menu/context-menu.js +1 -3
  46. package/components/context-menu/index.js +1 -3
  47. package/components/datepicker/datepicker.js +7 -8
  48. package/components/datepicker/index.js +7 -8
  49. package/components/dropdown/dropdown.js +5 -6
  50. package/components/dropdown/index.js +5 -6
  51. package/components/filter-chips/filter-chip/filter-chip.js +3 -4
  52. package/components/filter-chips/filter-chip/index.js +3 -4
  53. package/components/filter-chips/filter-chips.js +4 -5
  54. package/components/filter-chips/index.js +4 -5
  55. package/components/form/index.js +4 -4
  56. package/components/form/summary/index.js +4 -4
  57. package/components/form/summary/summary.js +4 -4
  58. package/components/grouped-list/grouped-list.js +1 -3
  59. package/components/grouped-list/index.js +1 -3
  60. package/components/index.js +27 -29
  61. package/components/input/index.js +9 -11
  62. package/components/input/input.js +9 -11
  63. package/components/layout/card/card.js +3 -3
  64. package/components/layout/card/index.js +3 -3
  65. package/components/layout/container/container.js +2 -2
  66. package/components/layout/container/index.js +2 -2
  67. package/components/layout/flex/flex.js +3 -3
  68. package/components/layout/flex/index.js +3 -3
  69. package/components/layout/grid/grid.js +3 -3
  70. package/components/layout/grid/index.js +3 -3
  71. package/components/layout/mask/index.js +4 -4
  72. package/components/layout/mask/mask.js +4 -4
  73. package/components/media/img/img.js +2 -2
  74. package/components/media/img/index.js +2 -2
  75. package/components/media/video/index.js +2 -2
  76. package/components/media/video/video.js +2 -2
  77. package/components/menu-button/index.js +2 -4
  78. package/components/menu-button/menu-button.js +2 -4
  79. package/components/radio/radio-group.js +0 -5
  80. package/components/segmented-control/index.js +3 -3
  81. package/components/segmented-control/segment/index.js +2 -2
  82. package/components/segmented-control/segment/segment.js +2 -2
  83. package/components/segmented-control/segmented-control.js +3 -3
  84. package/components/textarea/index.js +9 -11
  85. package/components/textarea/textarea.js +9 -11
  86. package/components/theme/index.js +2 -2
  87. package/components/theme/theme.js +2 -2
  88. package/index.js +27 -29
  89. package/package.json +1 -1
  90. package/primitives/listbox/index.js +2 -2
  91. package/primitives/listbox/listbox.js +2 -2
  92. package/primitives/listbox/option.js +2 -2
  93. package/primitives/ripple/index.js +2 -2
  94. package/primitives/ripple/ripple.js +2 -2
  95. package/primitives/signal/index.js +2 -2
  96. package/primitives/signal/signal.js +2 -2
  97. package/utils/helpers/index.d.ts +0 -1
  98. package/chunks/chunk.7TCXY7BP.js +0 -0
  99. package/chunks/chunk.KBYQYDL3.js +0 -34
  100. package/utils/helpers/constrain-slots.d.ts +0 -17
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.TYGMNHNO.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.6CJQHXBU.js";
12
+ } from "./chunk.GDCYH5VR.js";
13
13
  import {
14
14
  GdsElement
15
15
  } from "./chunk.WIZDAKJ5.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsFlex
3
- } from "./chunk.TTPOSCXC.js";
3
+ } from "./chunk.AYV44PLU.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.6UWYSL2J.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
10
10
  import {
11
11
  gdsCustomElement
12
12
  } from "./chunk.PBRH3UPJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.6CJQHXBU.js";
3
+ } from "./chunk.GDCYH5VR.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.PBRH3UPJ.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsContainer
3
- } from "./chunk.4WBWVSFH.js";
3
+ } from "./chunk.EN5Y2AK7.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.6UWYSL2J.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -1,6 +1,3 @@
1
- import {
2
- constrainSlots
3
- } from "./chunk.KBYQYDL3.js";
4
1
  import {
5
2
  TransitionalStyles
6
3
  } from "./chunk.JYYUHYTN.js";
@@ -25,7 +22,6 @@ var GdsGroupedList = class extends GdsElement {
25
22
  }
26
23
  connectedCallback() {
27
24
  super.connectedCallback();
28
- constrainSlots(this);
29
25
  TransitionalStyles.instance.apply(this, "gds-grouped-list");
30
26
  }
31
27
  render() {
@@ -36,7 +32,7 @@ var GdsGroupedList = class extends GdsElement {
36
32
  </div>`
37
33
  )}
38
34
  <div role="list" aria-labelledby="label">
39
- <slot gds-allow="gds-list-item"></slot>
35
+ <slot></slot>
40
36
  </div>`;
41
37
  }
42
38
  };
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  forwardAttributes
3
- } from "./chunk.WTJ3JXMT.js";
3
+ } from "./chunk.Q55XDI63.js";
4
4
  import {
5
5
  GdsFormControlElement
6
6
  } from "./chunk.X7GD7UEM.js";
7
- import {
8
- constrainSlots
9
- } from "./chunk.KBYQYDL3.js";
10
7
  import {
11
8
  tokens
12
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
13
10
  import {
14
11
  gdsCustomElement,
15
12
  html
@@ -218,7 +215,6 @@ var GdsInput = class extends GdsFormControlElement {
218
215
  })
219
216
  );
220
217
  });
221
- constrainSlots(this);
222
218
  }
223
219
  connectedCallback() {
224
220
  super.connectedCallback();
@@ -355,11 +351,7 @@ renderSlotLead_fn = function() {
355
351
  _renderSlotTrail = new WeakSet();
356
352
  renderSlotTrail_fn = function() {
357
353
  return html`
358
- <slot
359
- name="trail"
360
- gds-allow="gds-badge"
361
- @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}
362
- ></slot>
354
+ <slot name="trail" @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}></slot>
363
355
  `;
364
356
  };
365
357
  _handleSlotChange = new WeakSet();
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsContainer
3
- } from "./chunk.4WBWVSFH.js";
3
+ } from "./chunk.EN5Y2AK7.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.6UWYSL2J.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsContainer
3
- } from "./chunk.4WBWVSFH.js";
3
+ } from "./chunk.EN5Y2AK7.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.6UWYSL2J.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  GdsButton
6
- } from "./chunk.WTJ3JXMT.js";
6
+ } from "./chunk.Q55XDI63.js";
7
7
  import {
8
8
  gdsCustomElement
9
9
  } from "./chunk.PBRH3UPJ.js";
@@ -1,9 +1,6 @@
1
- import {
2
- constrainSlots
3
- } from "./chunk.KBYQYDL3.js";
4
1
  import {
5
2
  tokens
6
- } from "./chunk.6CJQHXBU.js";
3
+ } from "./chunk.GDCYH5VR.js";
7
4
  import {
8
5
  GdsElement
9
6
  } from "./chunk.WIZDAKJ5.js";
@@ -159,7 +156,6 @@ var GdsMenuButton = class extends GdsElement {
159
156
  this.href = "";
160
157
  this.compact = false;
161
158
  this.selected = false;
162
- constrainSlots(this);
163
159
  }
164
160
  render() {
165
161
  const classes = {
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk.TYGMNHNO.js";
14
14
  import {
15
15
  tokens
16
- } from "./chunk.6CJQHXBU.js";
16
+ } from "./chunk.GDCYH5VR.js";
17
17
  import {
18
18
  gdsCustomElement,
19
19
  html
@@ -1,7 +1,7 @@
1
1
  // dist/libs/tokens/internal/light.css?inline
2
2
  var light_default = `/**
3
3
  * Do not edit directly
4
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
4
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
5
5
  */
6
6
 
7
7
  color-scheme: light;
@@ -115,7 +115,7 @@ color-scheme: light;
115
115
  // dist/libs/tokens/internal/dark.css?inline
116
116
  var dark_default = `/**
117
117
  * Do not edit directly
118
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
118
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
119
119
  */
120
120
 
121
121
  color-scheme: dark;
@@ -232,7 +232,7 @@ import { unsafeCSS } from "lit";
232
232
  // dist/libs/tokens/internal/pallet.css?inline
233
233
  var pallet_default = `/**
234
234
  * Do not edit directly
235
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
235
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
236
236
  */
237
237
 
238
238
  :host {
@@ -393,7 +393,7 @@ var pallet_default = `/**
393
393
  // dist/libs/tokens/internal/theme/light.css?inline
394
394
  var light_default2 = `/**
395
395
  * Do not edit directly
396
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
396
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
397
397
  */
398
398
 
399
399
  :host {
@@ -619,7 +619,7 @@ var light_default2 = `/**
619
619
  // dist/libs/tokens/internal/size.css?inline
620
620
  var size_default = `/**
621
621
  * Do not edit directly
622
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
622
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
623
623
  */
624
624
 
625
625
  :host {
@@ -646,7 +646,7 @@ var size_default = `/**
646
646
  // dist/libs/tokens/internal/text.css?inline
647
647
  var text_default = `/**
648
648
  * Do not edit directly
649
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
649
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
650
650
  */
651
651
 
652
652
  :host {
@@ -707,7 +707,7 @@ var text_default = `/**
707
707
  // dist/libs/tokens/internal/motion.css?inline
708
708
  var motion_default = `/**
709
709
  * Do not edit directly
710
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
710
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
711
711
  */
712
712
 
713
713
  :host {
@@ -725,7 +725,7 @@ var motion_default = `/**
725
725
  // dist/libs/tokens/internal/shadow.css?inline
726
726
  var shadow_default = `/**
727
727
  * Do not edit directly
728
- * Generated on Fri, 11 Oct 2024 08:50:18 GMT
728
+ * Generated on Mon, 14 Oct 2024 15:40:17 GMT
729
729
  */
730
730
 
731
731
  :host {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  GdsFormControlElement
3
3
  } from "./chunk.X7GD7UEM.js";
4
- import {
5
- constrainSlots
6
- } from "./chunk.KBYQYDL3.js";
7
4
  import {
8
5
  observeLightDOM
9
6
  } from "./chunk.WM7HBMMV.js";
@@ -15,10 +12,9 @@ import {
15
12
  } from "./chunk.TYGMNHNO.js";
16
13
  import {
17
14
  tokens
18
- } from "./chunk.6CJQHXBU.js";
15
+ } from "./chunk.GDCYH5VR.js";
19
16
  import {
20
17
  gdsCustomElement,
21
- getScopedTagName,
22
18
  html
23
19
  } from "./chunk.PBRH3UPJ.js";
24
20
  import {
@@ -147,7 +143,7 @@ var style = css`
147
143
  var dropdown_styles_default = style;
148
144
 
149
145
  // libs/core/src/components/dropdown/dropdown.ts
150
- var _optionElements, _calcMaxHeight, _handleSearchFieldKeyUp, _handleSearchFieldKeyDown, _handleListboxKeyDown, _handleOptionFocusChange, _handleSelectionChange, handleSelectionChange_fn, _registerAutoCloseListener, registerAutoCloseListener_fn, _unregisterAutoCloseListener, unregisterAutoCloseListener_fn, _blurCloseListener, _tabCloseListener;
146
+ var _optionElements, _calcMaxHeight, _handleSearchFieldInput, _handleSearchFieldKeyDown, _handleListboxKeyDown, _handleOptionFocusChange, _handleSelectionChange, handleSelectionChange_fn, _registerAutoCloseListener, registerAutoCloseListener_fn, _unregisterAutoCloseListener, unregisterAutoCloseListener_fn, _blurCloseListener, _tabCloseListener;
151
147
  var GdsDropdown = class extends GdsFormControlElement {
152
148
  constructor() {
153
149
  super();
@@ -184,15 +180,16 @@ var GdsDropdown = class extends GdsFormControlElement {
184
180
  /**
185
181
  * Event handler for filtering the options in the dropdown.
186
182
  *
187
- * @param e The keyboard event.
183
+ * @param e The input event.
188
184
  */
189
- __privateAdd(this, _handleSearchFieldKeyUp, (e) => {
190
- const input = this._elSearchInput;
191
- const options = Array.from(__privateGet(this, _optionElements));
192
- options.forEach((o) => o.hidden = false);
185
+ __privateAdd(this, _handleSearchFieldInput, (e) => {
186
+ if (!e.currentTarget)
187
+ return;
188
+ const input = e.currentTarget;
189
+ this.options.forEach((o) => o.hidden = false);
193
190
  if (!input.value)
194
191
  return;
195
- const filteredOptions = options.filter(
192
+ const filteredOptions = this.options.filter(
196
193
  (o) => !this.searchFilter(input.value, o)
197
194
  );
198
195
  filteredOptions.forEach((o) => o.hidden = true);
@@ -244,11 +241,7 @@ var GdsDropdown = class extends GdsFormControlElement {
244
241
  (_a = this._elTriggerBtn) == null ? void 0 : _a.focus();
245
242
  }
246
243
  });
247
- constrainSlots(this);
248
244
  updateWhenLocaleChanges(this);
249
- __privateSet(this, _optionElements, this.getElementsByTagName(
250
- getScopedTagName("gds-option")
251
- ));
252
245
  }
253
246
  get type() {
254
247
  return "gds-dropdown";
@@ -257,6 +250,8 @@ var GdsDropdown = class extends GdsFormControlElement {
257
250
  * Get the options of the dropdown.
258
251
  */
259
252
  get options() {
253
+ if (!__privateGet(this, _optionElements))
254
+ return [];
260
255
  return Array.from(__privateGet(this, _optionElements)).filter(
261
256
  (o) => !o.hasAttribute("isplaceholder")
262
257
  );
@@ -266,6 +261,8 @@ var GdsDropdown = class extends GdsFormControlElement {
266
261
  * If no placeholder is found, this will be undefined.
267
262
  */
268
263
  get placeholder() {
264
+ if (!__privateGet(this, _optionElements))
265
+ return;
269
266
  return Array.from(__privateGet(this, _optionElements)).find(
270
267
  (o) => o.hasAttribute("isplaceholder")
271
268
  );
@@ -343,7 +340,7 @@ var GdsDropdown = class extends GdsFormControlElement {
343
340
  aria-label="${msg("Filter available options")}"
344
341
  placeholder="${msg("Search")}"
345
342
  @keydown=${__privateGet(this, _handleSearchFieldKeyDown)}
346
- @keyup=${__privateGet(this, _handleSearchFieldKeyUp)}
343
+ @input=${__privateGet(this, _handleSearchFieldInput)}
347
344
  />`
348
345
  )}
349
346
  <gds-listbox
@@ -354,7 +351,7 @@ var GdsDropdown = class extends GdsFormControlElement {
354
351
  @gds-focus="${__privateGet(this, _handleOptionFocusChange)}"
355
352
  @keydown=${__privateGet(this, _handleListboxKeyDown)}
356
353
  >
357
- <slot gds-allow="gds-option gds-menu-heading"></slot>
354
+ <slot></slot>
358
355
  </gds-listbox>
359
356
  </gds-popover>
360
357
 
@@ -369,6 +366,7 @@ var GdsDropdown = class extends GdsFormControlElement {
369
366
  _handleLightDOMChange() {
370
367
  var _a, _b;
371
368
  this.requestUpdate();
369
+ __privateSet(this, _optionElements, this.querySelectorAll("[gds-element=gds-option]"));
372
370
  if (this.multiple) {
373
371
  this._handleValueChange();
374
372
  return;
@@ -396,14 +394,17 @@ var GdsDropdown = class extends GdsFormControlElement {
396
394
  });
397
395
  }
398
396
  _onOpenChange() {
397
+ var _a;
399
398
  const open = this.open;
400
- Array.from(__privateGet(this, _optionElements)).forEach((o) => o.hidden = !open);
399
+ (_a = __privateGet(this, _optionElements)) == null ? void 0 : _a.forEach((o) => o.hidden = !open);
401
400
  if (open)
402
401
  __privateMethod(this, _registerAutoCloseListener, registerAutoCloseListener_fn).call(this);
403
402
  else {
404
403
  __privateMethod(this, _unregisterAutoCloseListener, unregisterAutoCloseListener_fn).call(this);
405
404
  this._elSearchInput && (this._elSearchInput.value = "");
406
405
  }
406
+ const selectedOption = this.options.find((option) => option.selected);
407
+ this.updateComplete.then(() => selectedOption == null ? void 0 : selectedOption.scrollIntoView());
407
408
  this.dispatchEvent(
408
409
  new CustomEvent("gds-ui-state", {
409
410
  detail: { open },
@@ -415,7 +416,7 @@ var GdsDropdown = class extends GdsFormControlElement {
415
416
  };
416
417
  _optionElements = new WeakMap();
417
418
  _calcMaxHeight = new WeakMap();
418
- _handleSearchFieldKeyUp = new WeakMap();
419
+ _handleSearchFieldInput = new WeakMap();
419
420
  _handleSearchFieldKeyDown = new WeakMap();
420
421
  _handleListboxKeyDown = new WeakMap();
421
422
  _handleOptionFocusChange = new WeakMap();
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.JYYUHYTN.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.WIZDAKJ5.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  dark_default,
9
9
  light_default
10
- } from "./chunk.6CJQHXBU.js";
10
+ } from "./chunk.GDCYH5VR.js";
11
11
  import {
12
12
  GdsElement
13
13
  } from "./chunk.WIZDAKJ5.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.6CJQHXBU.js";
3
+ } from "./chunk.GDCYH5VR.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.WIZDAKJ5.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.TYGMNHNO.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.6CJQHXBU.js";
12
+ } from "./chunk.GDCYH5VR.js";
13
13
  import {
14
14
  GdsElement
15
15
  } from "./chunk.WIZDAKJ5.js";
@@ -261,7 +261,6 @@ var GdsSegmentedControl = class extends GdsElement {
261
261
  </button>
262
262
  <div id="track" role="list">
263
263
  <slot
264
- gds-allow="gds-segment"
265
264
  @click=${__privateGet(this, _handleSegmentClick)}
266
265
  @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}
267
266
  role="none"
@@ -114,7 +114,6 @@ var GdsFilterChips = class extends GdsFormControlElement {
114
114
  aria-multiselectable=${this.multiple}
115
115
  >
116
116
  <slot
117
- gds-allow="gds-filter-chip"
118
117
  @click=${__privateGet(this, _handleChipClick)}
119
118
  @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}
120
119
  role="none"
@@ -1,7 +1,7 @@
1
1
  // libs/core/src/utils/helpers/custom-element-scoping.ts
2
2
  import { html as litHtml } from "lit";
3
3
  import { customElement } from "lit/decorators.js";
4
- var VER_SUFFIX = "-f5a997";
4
+ var VER_SUFFIX = "-a864b3";
5
5
  var elementLookupTable = /* @__PURE__ */ new Map();
6
6
  function scopedCustomElement(tagName) {
7
7
  const versionedTagName = tagName + VER_SUFFIX;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  GdsFormControlElement
3
3
  } from "./chunk.X7GD7UEM.js";
4
- import {
5
- constrainSlots
6
- } from "./chunk.KBYQYDL3.js";
7
4
  import {
8
5
  TransitionalStyles
9
6
  } from "./chunk.JYYUHYTN.js";
10
7
  import {
11
8
  tokens
12
- } from "./chunk.6CJQHXBU.js";
9
+ } from "./chunk.GDCYH5VR.js";
13
10
  import {
14
11
  gdsCustomElement,
15
12
  html
@@ -395,7 +392,6 @@ var GdsButton = class extends GdsFormControlElement {
395
392
  }
396
393
  }
397
394
  });
398
- constrainSlots(this);
399
395
  }
400
396
  connectedCallback() {
401
397
  super.connectedCallback();
@@ -3,19 +3,16 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  forwardAttributes
6
- } from "./chunk.WTJ3JXMT.js";
6
+ } from "./chunk.Q55XDI63.js";
7
7
  import {
8
8
  GdsFormControlElement
9
9
  } from "./chunk.X7GD7UEM.js";
10
- import {
11
- constrainSlots
12
- } from "./chunk.KBYQYDL3.js";
13
10
  import {
14
11
  watch
15
12
  } from "./chunk.TYGMNHNO.js";
16
13
  import {
17
14
  tokens
18
- } from "./chunk.6CJQHXBU.js";
15
+ } from "./chunk.GDCYH5VR.js";
19
16
  import {
20
17
  gdsCustomElement,
21
18
  html
@@ -258,7 +255,6 @@ var GdsTextarea = class extends GdsFormControlElement {
258
255
  })
259
256
  );
260
257
  });
261
- constrainSlots(this);
262
258
  this.lines = 0;
263
259
  this.resize = "auto";
264
260
  }
@@ -399,11 +395,7 @@ renderSlotLead_fn = function() {
399
395
  _renderSlotTrail = new WeakSet();
400
396
  renderSlotTrail_fn = function() {
401
397
  return html`
402
- <slot
403
- name="trail"
404
- gds-allow="gds-badge"
405
- @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}
406
- ></slot>
398
+ <slot name="trail" @slotchange=${__privateMethod(this, _handleSlotChange, handleSlotChange_fn)}></slot>
407
399
  `;
408
400
  };
409
401
  _addResizeHandleListener = new WeakSet();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.TYGMNHNO.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.6CJQHXBU.js";
13
+ } from "./chunk.GDCYH5VR.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.WIZDAKJ5.js";
@@ -1,6 +1,3 @@
1
- import {
2
- constrainSlots
3
- } from "./chunk.KBYQYDL3.js";
4
1
  import {
5
2
  TransitionalStyles
6
3
  } from "./chunk.JYYUHYTN.js";
@@ -58,7 +55,6 @@ var GdsContextMenu = class extends GdsElement {
58
55
  this.showLabel = false;
59
56
  this.label = "";
60
57
  this.placement = "bottom-start";
61
- constrainSlots(this);
62
58
  }
63
59
  connectedCallback() {
64
60
  super.connectedCallback();
@@ -104,7 +100,7 @@ var GdsContextMenu = class extends GdsElement {
104
100
  aria-label=${(_c = this.label) != null ? _c : this.buttonLabel}
105
101
  @gds-menu-item-click=${__privateMethod(this, _handleItemClick, handleItemClick_fn)}
106
102
  >
107
- <slot allow="gds-menu-item gds-menu-heading"></slot>
103
+ <slot></slot>
108
104
  </gds-menu>
109
105
  </gds-popover>`;
110
106
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6UWYSL2J.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.6CJQHXBU.js";
6
+ } from "./chunk.GDCYH5VR.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.WIZDAKJ5.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  GdsBadge
3
- } from "../../chunks/chunk.WGM6OBWS.js";
3
+ } from "../../chunks/chunk.LMCHWL4J.js";
4
4
  import "../../chunks/chunk.YO24ZYAD.js";
5
- import "../../chunks/chunk.6CJQHXBU.js";
5
+ import "../../chunks/chunk.GDCYH5VR.js";
6
6
  import "../../chunks/chunk.WIZDAKJ5.js";
7
7
  import "../../chunks/chunk.JY3EKAVI.js";
8
8
  import "../../chunks/chunk.PBRH3UPJ.js";
@@ -1,9 +1,9 @@
1
1
  import "../../chunks/chunk.CK2UGCPG.js";
2
2
  import {
3
3
  GdsBadge
4
- } from "../../chunks/chunk.WGM6OBWS.js";
4
+ } from "../../chunks/chunk.LMCHWL4J.js";
5
5
  import "../../chunks/chunk.YO24ZYAD.js";
6
- import "../../chunks/chunk.6CJQHXBU.js";
6
+ import "../../chunks/chunk.GDCYH5VR.js";
7
7
  import "../../chunks/chunk.WIZDAKJ5.js";
8
8
  import "../../chunks/chunk.JY3EKAVI.js";
9
9
  import "../../chunks/chunk.PBRH3UPJ.js";