@sbb-esta/lyne-elements 4.0.0-next → 4.0.0-next.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 (101) hide show
  1. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  2. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  3. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  4. package/calendar/calendar.component.d.ts +1 -0
  5. package/calendar/calendar.component.d.ts.map +1 -1
  6. package/calendar/calendar.component.js +1 -1
  7. package/card/common/card-action-common.d.ts.map +1 -1
  8. package/card/common/card-action-common.js +5 -10
  9. package/core/a11y/interactivity-checker.js +0 -7
  10. package/core/a11y/live-announcer.js +0 -7
  11. package/core/config/config.d.ts +5 -0
  12. package/core/config/config.d.ts.map +1 -1
  13. package/core/datetime/native-date-adapter.d.ts +1 -0
  14. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  15. package/core/datetime/native-date-adapter.js +1 -1
  16. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  17. package/core/styles/core.scss +21 -22
  18. package/core.css +9 -16
  19. package/custom-elements.json +46 -199
  20. package/date-input/date-input.component.d.ts +1 -0
  21. package/date-input/date-input.component.d.ts.map +1 -1
  22. package/date-input/date-input.component.js +1 -0
  23. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  24. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  25. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -2
  26. package/development/calendar/calendar.component.d.ts +1 -0
  27. package/development/calendar/calendar.component.d.ts.map +1 -1
  28. package/development/calendar/calendar.component.js +2 -2
  29. package/development/card/common/card-action-common.d.ts.map +1 -1
  30. package/development/card/common/card-action-common.js +14 -7
  31. package/development/core/a11y/interactivity-checker.js +1 -8
  32. package/development/core/a11y/live-announcer.js +1 -8
  33. package/development/core/config/config.d.ts +5 -0
  34. package/development/core/config/config.d.ts.map +1 -1
  35. package/development/core/config/config.js +1 -1
  36. package/development/core/datetime/native-date-adapter.d.ts +1 -0
  37. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  38. package/development/core/datetime/native-date-adapter.js +2 -2
  39. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  40. package/development/core/mixins/form-associated-input-mixin.js +1 -1
  41. package/development/date-input/date-input.component.d.ts +1 -0
  42. package/development/date-input/date-input.component.d.ts.map +1 -1
  43. package/development/date-input/date-input.component.js +2 -1
  44. package/development/dialog/dialog/dialog.component.d.ts +3 -4
  45. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  46. package/development/dialog/dialog/dialog.component.js +47 -112
  47. package/development/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
  48. package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  49. package/development/dialog/dialog-actions/dialog-actions.component.js +3 -7
  50. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
  51. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
  52. package/development/dialog/dialog-close-button/dialog-close-button.component.js +5 -5
  53. package/development/dialog/dialog-content/dialog-content.component.d.ts +1 -0
  54. package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  55. package/development/dialog/dialog-content/dialog-content.component.js +14 -2
  56. package/development/dialog/dialog-title/dialog-title.component.d.ts +0 -1
  57. package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  58. package/development/dialog/dialog-title/dialog-title.component.js +14 -7
  59. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  60. package/development/paginator/common/paginator-common.js +7 -24
  61. package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  62. package/development/paginator/compact-paginator/compact-paginator.component.js +2 -3
  63. package/development/paginator/paginator/paginator.component.d.ts +0 -6
  64. package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
  65. package/development/paginator/paginator/paginator.component.js +4 -19
  66. package/development/popover/popover/popover.component.d.ts.map +1 -1
  67. package/development/popover/popover/popover.component.js +63 -13
  68. package/development/select/select.component.d.ts +1 -1
  69. package/development/select/select.component.d.ts.map +1 -1
  70. package/development/select/select.component.js +7 -4
  71. package/dialog/dialog/dialog.component.d.ts +3 -4
  72. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  73. package/dialog/dialog/dialog.component.js +61 -58
  74. package/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
  75. package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  76. package/dialog/dialog-actions/dialog-actions.component.js +4 -7
  77. package/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
  78. package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
  79. package/dialog/dialog-close-button/dialog-close-button.component.js +16 -19
  80. package/dialog/dialog-content/dialog-content.component.d.ts +1 -0
  81. package/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  82. package/dialog/dialog-content/dialog-content.component.js +14 -11
  83. package/dialog/dialog-title/dialog-title.component.d.ts +0 -1
  84. package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  85. package/dialog/dialog-title/dialog-title.component.js +11 -14
  86. package/off-brand-theme.css +9 -16
  87. package/package.json +1 -1
  88. package/paginator/common/paginator-common.d.ts.map +1 -1
  89. package/paginator/common/paginator-common.js +30 -46
  90. package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  91. package/paginator/compact-paginator/compact-paginator.component.js +1 -2
  92. package/paginator/paginator/paginator.component.d.ts +0 -6
  93. package/paginator/paginator/paginator.component.d.ts.map +1 -1
  94. package/paginator/paginator/paginator.component.js +42 -54
  95. package/popover/popover/popover.component.d.ts.map +1 -1
  96. package/popover/popover/popover.component.js +70 -72
  97. package/safety-theme.css +9 -16
  98. package/select/select.component.d.ts +1 -1
  99. package/select/select.component.d.ts.map +1 -1
  100. package/select/select.component.js +22 -20
  101. package/standard-theme.css +9 -16
@@ -1,38 +1,38 @@
1
- var B = (i) => {
2
- throw TypeError(i);
1
+ var B = (s) => {
2
+ throw TypeError(s);
3
3
  };
4
- var F = (i, r, a) => r.has(i) || B("Cannot " + a);
5
- var y = (i, r, a) => (F(i, r, "read from private field"), a ? a.call(i) : r.get(i)), C = (i, r, a) => r.has(i) ? B("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, a), d = (i, r, a, n) => (F(i, r, "write to private field"), n ? n.call(i, a) : r.set(i, a), a);
6
- import { __runInitializers as c, __esDecorate as g } from "tslib";
7
- import { css as U, isServer as w, html as k, nothing as $ } from "lit";
8
- import { property as _, customElement as R } from "lit/decorators.js";
9
- import { ref as N } from "lit/directives/ref.js";
10
- import { SbbFocusTrapController as H, IS_FOCUSABLE_QUERY as Y, sbbInputModalityDetector as Z, isFakeMousedownFromScreenReader as j } from "../../core/a11y.js";
4
+ var F = (s, i, a) => i.has(s) || B("Cannot " + a);
5
+ var y = (s, i, a) => (F(s, i, "read from private field"), a ? a.call(s) : i.get(s)), C = (s, i, a) => i.has(s) ? B("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, a), d = (s, i, a, n) => (F(s, i, "write to private field"), n ? n.call(s, a) : i.set(s, a), a);
6
+ import { __runInitializers as c, __esDecorate as v } from "tslib";
7
+ import { css as U, isServer as E, html as k, nothing as $ } from "lit";
8
+ import { property as f, customElement as R } from "lit/decorators.js";
9
+ import { ref as H } from "lit/directives/ref.js";
10
+ import { SbbFocusTrapController as N, IS_FOCUSABLE_QUERY as Y, sbbInputModalityDetector as Z, isFakeMousedownFromScreenReader as j } from "../../core/a11y.js";
11
11
  import { SbbOpenCloseBaseElement as q } from "../../core/base-elements.js";
12
12
  import { readConfig as M } from "../../core/config.js";
13
13
  import { SbbMediaQueryPointerCoarse as W, SbbEscapableOverlayController as Q, SbbLanguageController as V } from "../../core/controllers.js";
14
- import { idReference as X, forceType as E } from "../../core/decorators.js";
14
+ import { idReference as X, forceType as T } from "../../core/decorators.js";
15
15
  import { isZeroAnimationDuration as G } from "../../core/dom.js";
16
16
  import { composedPathHasAttribute as J } from "../../core/eventing.js";
17
17
  import { i18nClosePopover as K } from "../../core/i18n.js";
18
18
  import { SbbHydrationMixin as ee } from "../../core/mixins.js";
19
- import { isEventOnElement as I, removeAriaOverlayTriggerAttributes as te, setAriaOverlayTriggerAttributes as oe, getElementPosition as se } from "../../core/overlay.js";
20
- import { boxSizingStyles as ie } from "../../core/styles.js";
19
+ import { isEventOnElement as I, removeAriaOverlayTriggerAttributes as te, setAriaOverlayTriggerAttributes as oe, getElementPosition as re } from "../../core/overlay.js";
20
+ import { boxSizingStyles as se } from "../../core/styles.js";
21
21
  import "../../button/secondary-button.js";
22
- const re = U`:host{--sbb-popover-position: absolute;--sbb-popover-position-x: 0;--sbb-popover-position-y: 0;--sbb-popover-arrow-size: var(--sbb-spacing-fixed-4x);--sbb-popover-arrow-position-x: 0;--sbb-popover-max-width: calc(100% - var(--sbb-spacing-fixed-2x));--sbb-popover-inset: 0 auto auto 0;--sbb-popover-border-radius: var(--sbb-border-radius-8x);--sbb-popover-padding: var(--sbb-spacing-fixed-4x);--sbb-popover-background: var(--sbb-background-color-1);--sbb-popover-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-popover-animation-easing: ease-out;--sbb-popover-transform: translateY(var(--sbb-spacing-fixed-2x));--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);--sbb-focus-outline-color: light-dark( var(--sbb-focus-outline-color-default), var(--sbb-focus-outline-color-dark) );outline:none!important;display:none}:host([data-state]:not([data-state=closed])){display:block;--sbb-popover-inset: 0}:host([data-position=above]){--sbb-popover-transform: translateY(calc(var(--sbb-spacing-fixed-2x) * -1))}.sbb-popover:after,.sbb-popover__content:before{content:"";position:absolute;display:block;width:var(--sbb-popover-arrow-size);height:var(--sbb-popover-arrow-size);left:var(--sbb-popover-arrow-position-x);bottom:calc(100% - var(--sbb-popover-arrow-size) / 2);background-color:var(--sbb-popover-background);border-radius:var(--sbb-border-radius-2x) 0;transform:rotate(45deg)}.sbb-popover__container{position:fixed;inset:var(--sbb-popover-inset);pointer-events:none;z-index:var(--sbb-popover-z-index, var(--sbb-overlay-default-z-index))}.sbb-popover{box-shadow:var(--sbb-box-shadow-level-5-hard);display:none;position:var(--sbb-popover-position);pointer-events:all;top:var(--sbb-popover-position-y);bottom:unset;left:var(--sbb-popover-position-x);right:unset;border:none;border-radius:var(--sbb-popover-border-radius);padding:0;max-width:var(--sbb-popover-max-width);width:max-content;background-color:var(--sbb-popover-background);outline:none}:host(:focus-visible) .sbb-popover{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-state]:not([data-state=closed])) .sbb-popover{display:block;animation-name:open;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}:host([data-state][data-state=closing]) .sbb-popover{pointer-events:none;animation-name:close;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}.sbb-popover:after{z-index:-1;box-shadow:var(--sbb-box-shadow-level-5-hard)}@media(forced-colors:active){.sbb-popover:after{outline:var(--sbb-border-width-1x) solid CanvasText}}:host([data-position=above]) .sbb-popover:after{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@media(forced-colors:active){.sbb-popover{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-popover:before{content:"";display:block;position:absolute;inset:0;z-index:-1;background-color:transparent}:host([data-position=below]) .sbb-popover:before{inset-block-start:calc(-1 * var(--sbb-spacing-fixed-6x))}:host([data-position=above]) .sbb-popover:before{inset-block-end:calc(-1 * var(--sbb-spacing-fixed-6x))}.sbb-popover__content{display:flex;gap:var(--sbb-spacing-fixed-4x);border-radius:var(--sbb-popover-border-radius);padding:var(--sbb-popover-padding);outline:none;background-color:var(--sbb-popover-background);overflow:hidden;flex-direction:row-reverse}:host([data-position=above]) .sbb-popover__content:before{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@keyframes open{0%{opacity:0;transform:var(--sbb-popover-transform)}to{opacity:1;transform:translateY(0)}}@keyframes close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:var(--sbb-popover-transform)}}`, ae = 16, ne = 32;
22
+ const ie = U`:host{--sbb-popover-position: absolute;--sbb-popover-position-x: 0;--sbb-popover-position-y: 0;--sbb-popover-arrow-size: var(--sbb-spacing-fixed-4x);--sbb-popover-arrow-position-x: 0;--sbb-popover-max-width: calc(100% - var(--sbb-spacing-fixed-2x));--sbb-popover-inset: 0 auto auto 0;--sbb-popover-border-radius: var(--sbb-border-radius-8x);--sbb-popover-padding: var(--sbb-spacing-fixed-4x);--sbb-popover-background: var(--sbb-background-color-1);--sbb-popover-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-popover-animation-easing: ease-out;--sbb-popover-transform: translateY(var(--sbb-spacing-fixed-2x));--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);--sbb-focus-outline-color: light-dark( var(--sbb-focus-outline-color-default), var(--sbb-focus-outline-color-dark) );outline:none!important;display:none}:host([data-state]:not([data-state=closed])){display:block;--sbb-popover-inset: 0}:host([data-position=above]){--sbb-popover-transform: translateY(calc(var(--sbb-spacing-fixed-2x) * -1))}.sbb-popover:after,.sbb-popover__content:before{content:"";position:absolute;display:block;width:var(--sbb-popover-arrow-size);height:var(--sbb-popover-arrow-size);left:var(--sbb-popover-arrow-position-x);bottom:calc(100% - var(--sbb-popover-arrow-size) / 2);background-color:var(--sbb-popover-background);border-radius:var(--sbb-border-radius-2x) 0;transform:rotate(45deg)}.sbb-popover__container{position:fixed;inset:var(--sbb-popover-inset);pointer-events:none;z-index:var(--sbb-popover-z-index, var(--sbb-overlay-default-z-index))}.sbb-popover{box-shadow:var(--sbb-box-shadow-level-5-hard);display:none;position:var(--sbb-popover-position);pointer-events:all;top:var(--sbb-popover-position-y);bottom:unset;left:var(--sbb-popover-position-x);right:unset;border:none;border-radius:var(--sbb-popover-border-radius);padding:0;max-width:var(--sbb-popover-max-width);width:max-content;background-color:var(--sbb-popover-background);outline:none}:host(:focus-visible) .sbb-popover{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-state]:not([data-state=closed])) .sbb-popover{display:block;animation-name:open;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}:host([data-state][data-state=closing]) .sbb-popover{pointer-events:none;animation-name:close;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}.sbb-popover:after{z-index:-1;box-shadow:var(--sbb-box-shadow-level-5-hard)}@media(forced-colors:active){.sbb-popover:after{outline:var(--sbb-border-width-1x) solid CanvasText}}:host([data-position=above]) .sbb-popover:after{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@media(forced-colors:active){.sbb-popover{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-popover:before{content:"";display:block;position:absolute;inset:0;z-index:-1;background-color:transparent}:host([data-position=below]) .sbb-popover:before{inset-block-start:calc(-1 * var(--sbb-spacing-fixed-6x))}:host([data-position=above]) .sbb-popover:before{inset-block-end:calc(-1 * var(--sbb-spacing-fixed-6x))}.sbb-popover__content{display:flex;gap:var(--sbb-spacing-fixed-4x);border-radius:var(--sbb-popover-border-radius);padding-block:var(--sbb-popover-padding) 0;padding-inline:var(--sbb-popover-padding);outline:none;background-color:var(--sbb-popover-background);flex-direction:row-reverse}:host([data-position=above]) .sbb-popover__content:before{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}.sbb-popover__scrollable-content{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-popover__scrollable-content::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-popover__scrollable-content::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-popover__scrollable-content::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-popover__scrollable-content::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-popover__scrollable-content::-webkit-scrollbar-button,.sbb-popover__scrollable-content::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-popover__scrollable-content{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-popover__scrollable-content{display:block;padding-block-end:var(--sbb-popover-padding);max-height:calc(var(--sbb-popover-max-height));overflow:auto}@keyframes open{0%{opacity:0;transform:var(--sbb-popover-transform)}to{opacity:1;transform:translateY(0)}}@keyframes close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:var(--sbb-popover-transform)}}`, ae = 16, ne = 32;
23
23
  let le = 0;
24
- const x = /* @__PURE__ */ new Set(), pe = w ? !1 : matchMedia(W).matches;
24
+ const w = /* @__PURE__ */ new Set(), be = E ? !1 : matchMedia(W).matches;
25
25
  let ce = (() => {
26
- var b, l;
27
- let i = ee(q), r, a = [], n = [];
28
- return l = class extends i {
26
+ var p, l;
27
+ let s = ee(q), i, a = [], n = [];
28
+ return l = class extends s {
29
29
  constructor() {
30
30
  super(...arguments);
31
- C(this, b);
32
- d(this, b, c(this, a, null)), this._nextFocusedElement = c(this, n), this._skipCloseFocus = !1, this._escapableOverlayController = new Q(this), this._focusTrapController = new H(this), this._blurTimeout = null, this._pointerDownListener = (e) => {
31
+ C(this, p);
32
+ d(this, p, c(this, a, null)), this._nextFocusedElement = c(this, n), this._skipCloseFocus = !1, this._escapableOverlayController = new Q(this), this._focusTrapController = new N(this), this._blurTimeout = null, this._pointerDownListener = (e) => {
33
33
  this._isPointerDownEventOnPopover = I(this.overlay, e);
34
34
  }, this._closeOnBackdropClick = (e) => {
35
- !this._isPointerDownEventOnPopover && !I(this.overlay, e) && (this._nextFocusedElement = e.composedPath().filter((s) => s instanceof window.HTMLElement).find((s) => s.matches(Y)), clearTimeout(this.closeTimeout), this.close());
35
+ !this._isPointerDownEventOnPopover && !I(this.overlay, e) && (this._nextFocusedElement = e.composedPath().filter((r) => r instanceof window.HTMLElement).find((r) => r.matches(Y)), clearTimeout(this.closeTimeout), this.close());
36
36
  };
37
37
  }
38
38
  /**
@@ -41,17 +41,17 @@ let ce = (() => {
41
41
  * For attribute usage, provide an id reference.
42
42
  */
43
43
  get trigger() {
44
- return y(this, b);
44
+ return y(this, p);
45
45
  }
46
46
  set trigger(e) {
47
- d(this, b, e);
47
+ d(this, p, e);
48
48
  }
49
49
  /** Opens the popover on trigger click. */
50
50
  open() {
51
51
  if (!(this.state !== "closed" && this.state !== "closing" || !this.overlay || !this.dispatchBeforeOpenEvent())) {
52
- for (const e of x) {
53
- const s = e.getAttribute("data-state");
54
- s && (s === "opened" || s === "opening") && e.close();
52
+ for (const e of w) {
53
+ const r = e.getAttribute("data-state");
54
+ r && (r === "opened" || r === "opening") && e.close();
55
55
  }
56
56
  this.showPopover?.(), this.state = "opening", this.inert = !0, this._setPopoverPosition(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._nextFocusedElement = void 0, this._skipCloseFocus = !1, this._isZeroAnimationDuration() && this._handleOpening();
57
57
  }
@@ -70,20 +70,20 @@ let ce = (() => {
70
70
  this.state = "opened", this.inert = !1, this._attachWindowEvents(), this._escapableOverlayController.connect(), this._setPopoverFocus(), this._focusTrapController.enabled = !0, this.dispatchOpenEvent();
71
71
  }
72
72
  connectedCallback() {
73
- this.popover = "manual", super.connectedCallback(), this.id ||= `sbb-popover-${++le}`, this.state = "closed", x.add(this), this.hasUpdated && this._configureTrigger();
73
+ this.popover = "manual", super.connectedCallback(), this.id ||= `sbb-popover-${++le}`, this.state = "closed", w.add(this), this.hasUpdated && this._configureTrigger();
74
74
  }
75
- requestUpdate(e, s, u) {
76
- super.requestUpdate(e, s, u), !w && (!e || e === "trigger" || e === "hoverTrigger") && this.hasUpdated && this._configureTrigger();
75
+ requestUpdate(e, r, g) {
76
+ super.requestUpdate(e, r, g), !E && (!e || e === "trigger" || e === "hoverTrigger") && this.hasUpdated && this._configureTrigger();
77
77
  }
78
78
  firstUpdated(e) {
79
79
  super.firstUpdated(e), this._configureTrigger();
80
80
  }
81
81
  disconnectedCallback() {
82
- super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._openStateController?.abort(), x.delete(this), this._blurTimeout && clearTimeout(this._blurTimeout);
82
+ super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._openStateController?.abort(), w.delete(this), this._blurTimeout && clearTimeout(this._blurTimeout);
83
83
  }
84
84
  // Check if the trigger is valid and attach click event listeners.
85
85
  _configureTrigger() {
86
- if (!w) {
86
+ if (!E) {
87
87
  if (this.hydrationRequired) {
88
88
  this.hydrationComplete.then(() => this._configureTrigger());
89
89
  return;
@@ -115,8 +115,8 @@ let ce = (() => {
115
115
  }
116
116
  // Close the popover on click of any element that has the 'sbb-popover-close' attribute.
117
117
  _closeOnSbbPopoverCloseClick(e) {
118
- const s = J(e, "sbb-popover-close", this);
119
- s && !s.hasAttribute("disabled") && (clearTimeout(this.closeTimeout), this.close(s));
118
+ const r = J(e, "sbb-popover-close", this);
119
+ r && !r.hasAttribute("disabled") && (clearTimeout(this.closeTimeout), this.close(r));
120
120
  }
121
121
  // Set popover position (x, y) to '0' once the popover is closed and the transition ended to prevent the
122
122
  // viewport from overflowing. And set the focus to the first focusable element once the popover is open.
@@ -127,10 +127,10 @@ let ce = (() => {
127
127
  }
128
128
  // Set focus on the first focusable element.
129
129
  _setPopoverFocus() {
130
- this._focusTrapController.focusInitialElement() || (this.setAttribute("tabindex", "0"), this.focus(), this.addEventListener("blur", (s) => {
130
+ this._focusTrapController.focusInitialElement() || (this.setAttribute("tabindex", "0"), this.focus(), this.addEventListener("blur", (r) => {
131
131
  this._blurTimeout = setTimeout(() => {
132
132
  if (document.visibilityState !== "hidden") {
133
- if (this.removeAttribute("tabindex"), this.contains(s.relatedTarget))
133
+ if (this.removeAttribute("tabindex"), this.contains(r.relatedTarget))
134
134
  return;
135
135
  (this.state === "opened" || this.state === "opening") && (this._skipCloseFocus = !0), this.close();
136
136
  }
@@ -142,15 +142,15 @@ let ce = (() => {
142
142
  _setPopoverPosition() {
143
143
  if (!this.overlay || !this._triggerElement)
144
144
  return;
145
- const e = se(this.overlay, this._triggerElement, this.shadowRoot.querySelector(".sbb-popover__container"), {
145
+ const e = re(this.overlay, this._triggerElement, this.shadowRoot.querySelector(".sbb-popover__container"), {
146
146
  verticalOffset: ae,
147
147
  horizontalOffset: ne,
148
148
  centered: !0,
149
149
  responsiveHeight: !0
150
150
  });
151
151
  this.setAttribute("data-position", e.alignment.vertical);
152
- const s = this._triggerElement.getBoundingClientRect().left - e.left + this._triggerElement.clientWidth / 2 - 8;
153
- this.style.setProperty("--sbb-popover-position-x", `${e.left}px`), this.style.setProperty("--sbb-popover-position-y", `${e.top}px`), this.style.setProperty("--sbb-popover-arrow-position-x", `${s}px`);
152
+ const r = this._triggerElement.getBoundingClientRect().left - e.left + this._triggerElement.clientWidth / 2 - 8;
153
+ this.style.setProperty("--sbb-popover-position-x", `${e.left}px`), this.style.setProperty("--sbb-popover-position-y", `${e.top}px`), this.style.setProperty("--sbb-popover-arrow-position-x", `${r}px`), this.style.setProperty("--sbb-popover-max-height", e.maxHeight);
154
154
  }
155
155
  dispatchBeforeCloseEvent(e) {
156
156
  return this.dispatchEvent(new CustomEvent("beforeclose", {
@@ -168,7 +168,7 @@ let ce = (() => {
168
168
  @animationend=${this._onPopoverAnimationEnd}
169
169
  class="sbb-popover"
170
170
  role="tooltip"
171
- ${N((e) => this.overlay = e)}
171
+ ${H((e) => this.overlay = e)}
172
172
  >
173
173
  <div
174
174
  @click=${(e) => this._closeOnSbbPopoverCloseClick(e)}
@@ -180,22 +180,22 @@ let ce = (() => {
180
180
  </div>
181
181
  `;
182
182
  }
183
- }, b = new WeakMap(), (() => {
184
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
185
- r = [X(), _()], g(l, null, r, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (s) => "trigger" in s, get: (s) => s.trigger, set: (s, u) => {
186
- s.trigger = u;
183
+ }, p = new WeakMap(), (() => {
184
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
185
+ i = [X(), f()], v(l, null, i, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (r) => "trigger" in r, get: (r) => r.trigger, set: (r, g) => {
186
+ r.trigger = g;
187
187
  } }, metadata: e }, a, n), e && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
188
- })(), l.styles = [ie, re], l;
188
+ })(), l.styles = [se, ie], l;
189
189
  })(), Oe = (() => {
190
- var v, m, f, p;
191
- let i = [R("sbb-popover")], r, a = [], n, b = ce, l = [], S, T = [], e = [], s, u = [], L = [], O, A, D, P = [], z = [];
192
- return p = class extends b {
190
+ var u, m, _, b;
191
+ let s = [R("sbb-popover")], i, a = [], n, p = ce, l = [], S, x = [], e = [], r, g = [], L = [], O, A, D, P = [], z = [];
192
+ return b = class extends p {
193
193
  constructor() {
194
194
  super(...arguments);
195
- C(this, v);
195
+ C(this, u);
196
196
  C(this, m);
197
- C(this, f);
198
- d(this, v, (c(this, l), c(this, T, !1))), d(this, m, (c(this, e), c(this, u, !1))), this._openDelay = c(this, L), d(this, f, c(this, P, "")), this._hoverTrigger = (c(this, z), !1), this._language = new V(this), this._overlayAbortController = null, this._onTriggerMouseEnter = () => {
197
+ C(this, _);
198
+ d(this, u, (c(this, l), c(this, x, !1))), d(this, m, (c(this, e), c(this, g, !1))), this._openDelay = c(this, L), d(this, _, c(this, P, "")), this._hoverTrigger = (c(this, z), !1), this._language = new V(this), this._overlayAbortController = null, this._onTriggerMouseEnter = () => {
199
199
  this.state === "closed" || this.state === "closing" ? this._openTimeout = setTimeout(() => {
200
200
  Z.reset(), this.open();
201
201
  }, this.openDelay) : clearTimeout(this.closeTimeout);
@@ -209,10 +209,10 @@ let ce = (() => {
209
209
  }
210
210
  /** Whether the close button should be hidden. */
211
211
  get hideCloseButton() {
212
- return y(this, v);
212
+ return y(this, u);
213
213
  }
214
214
  set hideCloseButton(t) {
215
- d(this, v, t);
215
+ d(this, u, t);
216
216
  }
217
217
  /** Whether the popover should be triggered on hover. */
218
218
  get hoverTrigger() {
@@ -247,13 +247,13 @@ let ce = (() => {
247
247
  }
248
248
  /** This will be forwarded as aria-label to the close button element. */
249
249
  get accessibilityCloseLabel() {
250
- return y(this, f);
250
+ return y(this, _);
251
251
  }
252
252
  set accessibilityCloseLabel(t) {
253
- d(this, f, t);
253
+ d(this, _, t);
254
254
  }
255
255
  configureTrigger(t) {
256
- const o = this.hoverTrigger && !pe;
256
+ const o = this.hoverTrigger && !be;
257
257
  this.trigger === t && o === this._hoverTrigger || (this._hoverTrigger !== o && (this._hoverTrigger = o, this._registerOverlayListeners()), super.configureTrigger(t));
258
258
  }
259
259
  _registerOverlayListeners() {
@@ -285,36 +285,34 @@ let ce = (() => {
285
285
  }
286
286
  renderContent() {
287
287
  const t = k`
288
- <span class="sbb-popover__close">
289
- <sbb-secondary-button
290
- aria-label=${this.accessibilityCloseLabel || K[this._language.current]}
291
- size="s"
292
- type="button"
293
- icon-name="cross-small"
294
- sbb-popover-close
295
- ></sbb-secondary-button>
296
- </span>
288
+ <sbb-secondary-button
289
+ aria-label=${this.accessibilityCloseLabel || K[this._language.current]}
290
+ size="s"
291
+ type="button"
292
+ icon-name="cross-small"
293
+ sbb-popover-close
294
+ ></sbb-secondary-button>
297
295
  `;
298
296
  return k`
299
297
  ${!this.hideCloseButton && !this._hoverTrigger ? t : $}
300
- <span>
298
+ <span class="sbb-popover__scrollable-content">
301
299
  <slot>No content</slot>
302
300
  </span>
303
301
  `;
304
302
  }
305
- }, v = new WeakMap(), m = new WeakMap(), f = new WeakMap(), n = p, (() => {
306
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
307
- S = [E(), _({ attribute: "hide-close-button", type: Boolean })], s = [E(), _({ attribute: "hover-trigger", type: Boolean })], O = [_({ attribute: "open-delay", type: Number })], A = [_({ attribute: "close-delay", type: Number })], D = [E(), _({ attribute: "accessibility-close-label" })], g(p, null, S, { kind: "accessor", name: "hideCloseButton", static: !1, private: !1, access: { has: (o) => "hideCloseButton" in o, get: (o) => o.hideCloseButton, set: (o, h) => {
303
+ }, u = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), n = b, (() => {
304
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
305
+ S = [T(), f({ attribute: "hide-close-button", type: Boolean })], r = [T(), f({ attribute: "hover-trigger", type: Boolean })], O = [f({ attribute: "open-delay", type: Number })], A = [f({ attribute: "close-delay", type: Number })], D = [T(), f({ attribute: "accessibility-close-label" })], v(b, null, S, { kind: "accessor", name: "hideCloseButton", static: !1, private: !1, access: { has: (o) => "hideCloseButton" in o, get: (o) => o.hideCloseButton, set: (o, h) => {
308
306
  o.hideCloseButton = h;
309
- } }, metadata: t }, T, e), g(p, null, s, { kind: "accessor", name: "hoverTrigger", static: !1, private: !1, access: { has: (o) => "hoverTrigger" in o, get: (o) => o.hoverTrigger, set: (o, h) => {
307
+ } }, metadata: t }, x, e), v(b, null, r, { kind: "accessor", name: "hoverTrigger", static: !1, private: !1, access: { has: (o) => "hoverTrigger" in o, get: (o) => o.hoverTrigger, set: (o, h) => {
310
308
  o.hoverTrigger = h;
311
- } }, metadata: t }, u, L), g(p, null, O, { kind: "setter", name: "openDelay", static: !1, private: !1, access: { has: (o) => "openDelay" in o, set: (o, h) => {
309
+ } }, metadata: t }, g, L), v(b, null, O, { kind: "setter", name: "openDelay", static: !1, private: !1, access: { has: (o) => "openDelay" in o, set: (o, h) => {
312
310
  o.openDelay = h;
313
- } }, metadata: t }, null, l), g(p, null, A, { kind: "setter", name: "closeDelay", static: !1, private: !1, access: { has: (o) => "closeDelay" in o, set: (o, h) => {
311
+ } }, metadata: t }, null, l), v(b, null, A, { kind: "setter", name: "closeDelay", static: !1, private: !1, access: { has: (o) => "closeDelay" in o, set: (o, h) => {
314
312
  o.closeDelay = h;
315
- } }, metadata: t }, null, l), g(p, null, D, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (o) => "accessibilityCloseLabel" in o, get: (o) => o.accessibilityCloseLabel, set: (o, h) => {
313
+ } }, metadata: t }, null, l), v(b, null, D, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (o) => "accessibilityCloseLabel" in o, get: (o) => o.accessibilityCloseLabel, set: (o, h) => {
316
314
  o.accessibilityCloseLabel = h;
317
- } }, metadata: t }, P, z), g(null, r = { value: n }, i, { kind: "class", name: n.name, metadata: t }, null, a), n = r.value, t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t }), c(n, a);
315
+ } }, metadata: t }, P, z), v(null, i = { value: n }, s, { kind: "class", name: n.name, metadata: t }, null, a), n = i.value, t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t }), c(n, a);
318
316
  })(), n;
319
317
  })();
320
318
  export {
package/safety-theme.css CHANGED
@@ -1649,33 +1649,26 @@ sbb-toggle:has(:focus-visible) {
1649
1649
  --sbb-option-hint-padding-block-end: var(--sbb-spacing-fixed-1x);
1650
1650
  }
1651
1651
 
1652
- sbb-dialog[negative] sbb-dialog-actions {
1653
- --sbb-dialog-actions-border-color: var(--sbb-background-color-4-negative);
1654
- }
1655
- sbb-dialog:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
1656
- --sbb-dialog-actions-border-color: transparent;
1657
- box-shadow: var(--sbb-box-shadow-level-9-soft);
1658
- }
1659
- sbb-dialog[negative]:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
1660
- box-shadow: var(--sbb-box-shadow-level-9-soft-negative);
1652
+ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-close-button) > * > sbb-dialog-title {
1653
+ padding-inline-end: 0;
1661
1654
  }
1662
1655
 
1663
- sbb-dialog:has(> sbb-dialog-title) > sbb-dialog-content {
1656
+ sbb-dialog:has(> sbb-dialog-title) > sbb-dialog-content, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title) > * > sbb-dialog-content {
1664
1657
  padding-block-start: 0;
1665
1658
  }
1666
-
1667
- sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title {
1668
- margin-inline-end: 0;
1659
+ sbb-dialog[negative] > sbb-dialog-content, sbb-dialog[negative]:is(:state(has-intermediate-element),[state--has-intermediate-element]) > * > sbb-dialog-content {
1660
+ --sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);
1661
+ --sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);
1669
1662
  }
1670
1663
 
1671
- sbb-dialog:not(:has(> sbb-dialog-title)) > sbb-dialog-close-button {
1664
+ sbb-dialog:not(:has(> sbb-dialog-title)) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):not(:has(> * > sbb-dialog-title)) > * > sbb-dialog-close-button {
1672
1665
  position: absolute;
1673
1666
  z-index: 1;
1674
1667
  }
1675
- sbb-dialog:has(> sbb-dialog-title[visual-level="3"]) > sbb-dialog-close-button {
1668
+ sbb-dialog:has(> sbb-dialog-title[visual-level="3"]) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title[visual-level="3"]) > * > sbb-dialog-close-button {
1676
1669
  --_sbb-dialog-title-size: var(--sbb-font-size-title-3);
1677
1670
  }
1678
- sbb-dialog:has(> sbb-dialog-title[visual-level="5"]) > sbb-dialog-close-button {
1671
+ sbb-dialog:has(> sbb-dialog-title[visual-level="5"]) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title[visual-level="5"]) > * > sbb-dialog-close-button {
1679
1672
  --_sbb-dialog-title-size: var(--sbb-font-size-title-5);
1680
1673
  }
1681
1674
 
@@ -153,7 +153,7 @@ export declare class SbbSelectElement<T = string> extends SbbSelectElement_base
153
153
  private _closeOnBackdropClick;
154
154
  private _updateOptionsFromValue;
155
155
  private _updateValueFromOptions;
156
- private _onSlotChange;
156
+ private _updateValueOptionState;
157
157
  private _getSelected;
158
158
  private _toggleOpening;
159
159
  private _spreadDeferredDisplayValue;
@@ -1 +1 @@
1
- {"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/elements/select/select.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EA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C,2BAA2B;YAMrB,qBAAqB;cAOhB,MAAM,IAAI,cAAc;CAoD5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
@@ -6,9 +6,9 @@ var f = (i, a, r) => (Z(i, a, "read from private field"), r ? r.call(i) : a.get(
6
6
  import { __esDecorate as h, __runInitializers as l } from "tslib";
7
7
  import { MutationController as X } from "@lit-labs/observers/mutation-controller.js";
8
8
  import { ResizeController as ee } from "@lit-labs/observers/resize-controller.js";
9
- import { css as te, isServer as se, html as w, nothing as E } from "lit";
9
+ import { css as te, isServer as se, html as w, nothing as O } from "lit";
10
10
  import { customElement as ie, property as x, state as ae } from "lit/decorators.js";
11
- import { ref as O } from "lit/directives/ref.js";
11
+ import { ref as E } from "lit/directives/ref.js";
12
12
  import { until as H } from "lit/directives/until.js";
13
13
  import { getNextElementIndex as oe } from "../core/a11y.js";
14
14
  import { SbbOpenCloseBaseElement as re } from "../core/base-elements.js";
@@ -19,10 +19,10 @@ import { i18nSelectionRequired as he } from "../core/i18n.js";
19
19
  import { SbbUpdateSchedulerMixin as ue, SbbDisabledMixin as _e, SbbNegativeMixin as ge, SbbHydrationMixin as ve, SbbRequiredMixin as me, SbbReadonlyMixin as fe, SbbFormAssociatedMixin as ye } from "../core/mixins.js";
20
20
  import { isEventOnElement as Q, setOverlayPosition as xe, overlayGapFixCorners as we } from "../core/overlay.js";
21
21
  import { boxSizingStyles as ke } from "../core/styles.js";
22
- const Ee = te`.sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-options-panel-border-radius);height:var(--sbb-options-panel-border-radius);background-color:transparent}.sbb-gap-fix-corner{position:absolute;border-radius:50%;border:calc(var(--sbb-options-panel-border-radius) / 2) solid var(--sbb-options-panel-background-color);width:calc(var(--sbb-options-panel-border-radius) * 3);height:calc(var(--sbb-options-panel-border-radius) * 3);bottom:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}.sbb-gap-fix-corner#left{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#left{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1);left:unset}.sbb-gap-fix-corner#right{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#right{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1);right:unset}:host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-options-panel-position-x: 0;--sbb-options-panel-position-y: 0;--sbb-options-panel-active-option-y: 0;--sbb-options-panel-max-height: calc(85vh - var(--sbb-spacing-fixed-8x));--sbb-options-panel-min-height: var(--sbb-options-panel-origin-height);--sbb-options-panel-visibility: visible;--sbb-options-panel-width: fit-content;--sbb-options-panel-border-radius: var(--sbb-border-radius-4x);--sbb-options-panel-options-border-radius: 0 0 var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius);--sbb-options-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-options-panel-animation-timing-function: ease;--sbb-options-panel-gap-fix-opacity: 0;--sbb-options-panel-gap-fix-transform: none;--sbb-options-panel-gap-fix-top: calc( var(--sbb-options-panel-position-y) - var(--sbb-options-panel-border-radius) );--sbb-options-panel-background-color: var(--sbb-background-color-1);--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-2x);--sbb-options-panel-divider-margin-block: var(--sbb-spacing-fixed-3x);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);--sbb-focus-outline-color: light-dark( var(--sbb-focus-outline-color-default), var(--sbb-focus-outline-color-dark) );--sbb-options-panel-internal-z-index: var( --sbb-select-z-index, var(--sbb-overlay-default-z-index) );--sbb-select-placeholder-fallback-color: var(--sbb-color-metal);--sbb-select-placeholder-fallback-color: light-dark( var(--sbb-color-metal), var(--sbb-color-smoke) );display:block}:host([size=s]){--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-1x)}:host([negative]){--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-options-panel-background-color: var(--sbb-background-color-1-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-select-placeholder-fallback-color: var(--sbb-color-5)}:host(:not([data-state])),:host([data-state=closed]){--sbb-options-panel-visibility: hidden}:host([data-state=opening]){--sbb-options-panel-animation-name: open}:host([data-state=closing]){--sbb-options-panel-animation-name: close}:host([data-state=opened]),:host([data-state=opening]){--sbb-options-panel-gap-fix-opacity: 1}:host([data-options-panel-position=below]){--sbb-options-panel-animation-transform: translateY( calc((var(--sbb-options-panel-origin-height) / 2) * -1) )}:host([data-options-panel-position=above]){--sbb-options-panel-options-border-radius: var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius) 0 0;--sbb-options-panel-gap-fix-top: var(--sbb-options-panel-max-height);--sbb-options-panel-gap-fix-transform: rotate(180deg);--sbb-options-panel-animation-transform: translateY( calc(var(--sbb-options-panel-origin-height) / 2) )}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}:host([preserve-icon-space]){--sbb-option-icon-container-display: block}.sbb-select__trigger{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:var(--sbb-cursor-default);height:calc(1em * var(--sbb-typo-line-height-body-text))}.sbb-select__trigger--placeholder{color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color));-webkit-text-fill-color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color))}.sbb-select__container{position:fixed;pointer-events:none;inset:0;z-index:var(--sbb-options-panel-internal-z-index)}.sbb-select__container[popover]{margin:0;padding:0;border:none;width:auto;height:auto;background-color:transparent}.sbb-select__gap-fix{display:flex;justify-content:space-between;position:fixed;visibility:var(--sbb-options-panel-visibility);opacity:var(--sbb-options-panel-gap-fix-opacity);background-color:transparent;width:var(--sbb-options-panel-width);height:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-gap-fix-top);left:var(--sbb-options-panel-position-x);transform:var(--sbb-options-panel-gap-fix-transform);transition:opacity var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel{display:block;position:absolute;visibility:var(--sbb-options-panel-visibility);overflow:hidden;background-color:transparent;border:none;border-radius:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-position-y);left:var(--sbb-options-panel-position-x);width:var(--sbb-options-panel-width);transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel:before,.sbb-select__panel:after{content:"";display:none;position:relative;width:100%;height:var(--sbb-options-panel-origin-height);background-color:transparent;border-radius:var(--sbb-options-panel-border-radius);pointer-events:none;transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function);z-index:1}:host([data-options-panel-position=below]) .sbb-select__panel{inset-block-start:calc(var(--sbb-options-panel-position-y) - var(--sbb-options-panel-origin-height))}:host(:is([data-state=opened],[data-state=opening])) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[negative]) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}:host([data-options-panel-position=below]) .sbb-select__panel:before{display:block}:host([data-options-panel-position=above]) .sbb-select__panel:after{display:block}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}.sbb-select__wrapper{overflow:hidden}.sbb-select__options{background-color:var(--sbb-options-panel-background-color);padding-block:var(--sbb-options-panel-padding-block);padding-inline:0;border-radius:var(--sbb-options-panel-options-border-radius);max-height:var(--sbb-options-panel-max-height);min-height:var(--sbb-options-panel-min-height);pointer-events:all;overflow-y:auto;animation-name:var(--sbb-options-panel-animation-name);animation-duration:var(--sbb-options-panel-animation-duration);animation-timing-function:var(--sbb-options-panel-animation-timing-function);--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-select__options::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-select__options::-webkit-scrollbar-button,.sbb-select__options::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-select__options{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}@media(forced-colors:active){.sbb-select__options{border:var(--sbb-border-width-1x) solid CanvasText;border-block-start:none}}@keyframes open{0%{transform:var(--sbb-options-panel-animation-transform);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes close{0%{transform:translateY(0);opacity:1}to{transform:var(--sbb-options-panel-animation-transform);opacity:0}}`, k = de;
23
- let Oe = 0, Ke = (() => {
22
+ const Oe = te`.sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-options-panel-border-radius);height:var(--sbb-options-panel-border-radius);background-color:transparent}.sbb-gap-fix-corner{position:absolute;border-radius:50%;border:calc(var(--sbb-options-panel-border-radius) / 2) solid var(--sbb-options-panel-background-color);width:calc(var(--sbb-options-panel-border-radius) * 3);height:calc(var(--sbb-options-panel-border-radius) * 3);bottom:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}.sbb-gap-fix-corner#left{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#left{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1);left:unset}.sbb-gap-fix-corner#right{right:calc(var(--sbb-options-panel-border-radius) / 2 * -1)}:host(:dir(rtl)) .sbb-gap-fix-corner#right{left:calc(var(--sbb-options-panel-border-radius) / 2 * -1);right:unset}:host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-options-panel-position-x: 0;--sbb-options-panel-position-y: 0;--sbb-options-panel-active-option-y: 0;--sbb-options-panel-max-height: calc(85vh - var(--sbb-spacing-fixed-8x));--sbb-options-panel-min-height: var(--sbb-options-panel-origin-height);--sbb-options-panel-visibility: visible;--sbb-options-panel-width: fit-content;--sbb-options-panel-border-radius: var(--sbb-border-radius-4x);--sbb-options-panel-options-border-radius: 0 0 var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius);--sbb-options-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-options-panel-animation-timing-function: ease;--sbb-options-panel-gap-fix-opacity: 0;--sbb-options-panel-gap-fix-transform: none;--sbb-options-panel-gap-fix-top: calc( var(--sbb-options-panel-position-y) - var(--sbb-options-panel-border-radius) );--sbb-options-panel-background-color: var(--sbb-background-color-1);--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-2x);--sbb-options-panel-divider-margin-block: var(--sbb-spacing-fixed-3x);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);--sbb-focus-outline-color: light-dark( var(--sbb-focus-outline-color-default), var(--sbb-focus-outline-color-dark) );--sbb-options-panel-internal-z-index: var( --sbb-select-z-index, var(--sbb-overlay-default-z-index) );--sbb-select-placeholder-fallback-color: var(--sbb-color-metal);--sbb-select-placeholder-fallback-color: light-dark( var(--sbb-color-metal), var(--sbb-color-smoke) );display:block}:host([size=s]){--sbb-options-panel-padding-block: var(--sbb-spacing-fixed-1x)}:host([negative]){--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-options-panel-background-color: var(--sbb-background-color-1-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-select-placeholder-fallback-color: var(--sbb-color-5)}:host(:not([data-state])),:host([data-state=closed]){--sbb-options-panel-visibility: hidden}:host([data-state=opening]){--sbb-options-panel-animation-name: open}:host([data-state=closing]){--sbb-options-panel-animation-name: close}:host([data-state=opened]),:host([data-state=opening]){--sbb-options-panel-gap-fix-opacity: 1}:host([data-options-panel-position=below]){--sbb-options-panel-animation-transform: translateY( calc((var(--sbb-options-panel-origin-height) / 2) * -1) )}:host([data-options-panel-position=above]){--sbb-options-panel-options-border-radius: var(--sbb-options-panel-border-radius) var(--sbb-options-panel-border-radius) 0 0;--sbb-options-panel-gap-fix-top: var(--sbb-options-panel-max-height);--sbb-options-panel-gap-fix-transform: rotate(180deg);--sbb-options-panel-animation-transform: translateY( calc(var(--sbb-options-panel-origin-height) / 2) )}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}:host([preserve-icon-space]){--sbb-option-icon-container-display: block}.sbb-select__trigger{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:var(--sbb-cursor-default);height:calc(1em * var(--sbb-typo-line-height-body-text))}.sbb-select__trigger--placeholder{color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color));-webkit-text-fill-color:var(--sbb-select-placeholder-color, var(--sbb-select-placeholder-fallback-color))}.sbb-select__container{position:fixed;pointer-events:none;inset:0;z-index:var(--sbb-options-panel-internal-z-index)}.sbb-select__container[popover]{margin:0;padding:0;border:none;width:auto;height:auto;background-color:transparent}.sbb-select__gap-fix{display:flex;justify-content:space-between;position:fixed;visibility:var(--sbb-options-panel-visibility);opacity:var(--sbb-options-panel-gap-fix-opacity);background-color:transparent;width:var(--sbb-options-panel-width);height:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-gap-fix-top);left:var(--sbb-options-panel-position-x);transform:var(--sbb-options-panel-gap-fix-transform);transition:opacity var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel{display:block;position:absolute;visibility:var(--sbb-options-panel-visibility);overflow:hidden;background-color:transparent;border:none;border-radius:var(--sbb-options-panel-border-radius);top:var(--sbb-options-panel-position-y);left:var(--sbb-options-panel-position-x);width:var(--sbb-options-panel-width);transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function)}.sbb-select__panel:before,.sbb-select__panel:after{content:"";display:none;position:relative;width:100%;height:var(--sbb-options-panel-origin-height);background-color:transparent;border-radius:var(--sbb-options-panel-border-radius);pointer-events:none;transition:box-shadow var(--sbb-options-panel-animation-duration) var(--sbb-options-panel-animation-timing-function);z-index:1}:host([data-options-panel-position=below]) .sbb-select__panel{inset-block-start:calc(var(--sbb-options-panel-position-y) - var(--sbb-options-panel-origin-height))}:host(:is([data-state=opened],[data-state=opening])) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[negative]) .sbb-select__panel{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}:host([data-options-panel-position=below]) .sbb-select__panel:before{display:block}:host([data-options-panel-position=above]) .sbb-select__panel:after{display:block}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard)}:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:before,:host(:is([data-state=opened],[data-state=opening])[data-option-panel-origin-borderless][negative]) .sbb-select__panel:after{box-shadow:var(--sbb-box-shadow-level-5-hard-negative)}.sbb-select__wrapper{overflow:hidden}.sbb-select__options{background-color:var(--sbb-options-panel-background-color);padding-block:var(--sbb-options-panel-padding-block);padding-inline:0;border-radius:var(--sbb-options-panel-options-border-radius);max-height:var(--sbb-options-panel-max-height);min-height:var(--sbb-options-panel-min-height);pointer-events:all;overflow-y:auto;animation-name:var(--sbb-options-panel-animation-name);animation-duration:var(--sbb-options-panel-animation-duration);animation-timing-function:var(--sbb-options-panel-animation-timing-function);--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-select__options::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-select__options::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-select__options::-webkit-scrollbar-button,.sbb-select__options::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-select__options{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}@media(forced-colors:active){.sbb-select__options{border:var(--sbb-border-width-1x) solid CanvasText;border-block-start:none}}@keyframes open{0%{transform:var(--sbb-options-panel-animation-transform);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes close{0%{transform:translateY(0);opacity:1}to{transform:var(--sbb-options-panel-animation-transform);opacity:0}}`, k = de;
23
+ let Ee = 0, Ke = (() => {
24
24
  var u, _, g, v, m, o;
25
- let i = [ie("sbb-select")], a, r = [], b, C = ue(_e(ge(ve(me(fe(ye(re))))))), I = [], V, D = [], z = [], L, P = [], $ = [], M, R = [], T = [], F, U, q = [], N = [], B, K = [], j = [];
25
+ let i = [ie("sbb-select")], a, r = [], b, C = ue(_e(ge(ve(me(fe(ye(re))))))), V = [], I, D = [], z = [], L, P = [], $ = [], M, R = [], T = [], F, U, q = [], N = [], B, K = [], j = [];
26
26
  return o = class extends C {
27
27
  constructor() {
28
28
  super();
@@ -31,17 +31,19 @@ let Oe = 0, Ke = (() => {
31
31
  y(this, g);
32
32
  y(this, v);
33
33
  y(this, m);
34
- n(this, u, (l(this, I), l(this, D, ""))), n(this, _, (l(this, z), l(this, P, !1))), n(this, g, (l(this, $), l(this, R, !1))), this._value = (l(this, T), null), n(this, v, l(this, q, ce() ? "s" : "m")), n(this, m, (l(this, N), l(this, K, null))), this._originResizeObserver = (l(this, j), new ee(this, {
34
+ n(this, u, (l(this, V), l(this, D, ""))), n(this, _, (l(this, z), l(this, P, !1))), n(this, g, (l(this, $), l(this, R, !1))), this._value = (l(this, T), null), n(this, v, l(this, q, ce() ? "s" : "m")), n(this, m, (l(this, N), l(this, K, null))), this._originResizeObserver = (l(this, j), new ee(this, {
35
35
  target: null,
36
36
  skipInitial: !0,
37
37
  callback: () => {
38
38
  this.isOpen && this._setOverlayPosition();
39
39
  }
40
- })), this._escapableOverlayController = new le(this), this._overlayId = `sbb-select-${++Oe}`, this._activeItemIndex = -1, this._searchString = "", this._didLoad = !1, this._isPointerDownEventOnMenu = !1, this._languageController = new ne(this), this._isValueManuallyAssigned = !1, this._pointerDownListener = (e) => {
40
+ })), this._escapableOverlayController = new le(this), this._overlayId = `sbb-select-${++Ee}`, this._activeItemIndex = -1, this._searchString = "", this._didLoad = !1, this._isPointerDownEventOnMenu = !1, this._languageController = new ne(this), this._isValueManuallyAssigned = !1, this._pointerDownListener = (e) => {
41
41
  this._isPointerDownEventOnMenu = Q(this._overlay, e);
42
42
  }, this._closeOnBackdropClick = (e) => {
43
43
  !this._isPointerDownEventOnMenu && !Q(this._overlay, e) && this.close();
44
- }, this.addEventListener?.("optionselectionchange", (e) => this._onOptionChanged(e)), this.addEventListener?.("optionLabelChanged", (e) => this._onOptionLabelChanged(e)), this.addEventListener?.("ɵoptgroupslotchange", () => this._onSlotChange(), { capture: !0 }), this.addEventListener?.("click", (e) => {
44
+ }, this.addEventListener?.("optionselectionchange", (e) => this._onOptionChanged(e)), this.addEventListener?.("optionLabelChanged", (e) => this._onOptionLabelChanged(e)), this.addEventListener?.("ɵoptgroupslotchange", () => this._updateValueOptionState(), {
45
+ capture: !0
46
+ }), this.addEventListener?.("click", (e) => {
45
47
  const t = e.target;
46
48
  t.localName === "sbb-option" ? !this.multiple && !t.disabled && (this.close(), this.focus()) : this._toggleOpening();
47
49
  }), this.addController(new X(this, {
@@ -164,7 +166,7 @@ let Oe = 0, Ke = (() => {
164
166
  this.isOpen && e && this.close();
165
167
  }
166
168
  firstUpdated(e) {
167
- super.firstUpdated(e), G() || (this.startUpdate(), this._setupSelect());
169
+ super.firstUpdated(e), this._updateValueOptionState(), G() || (this.startUpdate(), this._setupSelect());
168
170
  }
169
171
  /** @internal */
170
172
  focus() {
@@ -390,7 +392,7 @@ let Oe = 0, Ke = (() => {
390
392
  } else e && (this._activeItemIndex = this._selectableOptions().findIndex((t) => t === e), this._value = e.value);
391
393
  this._updateDisplayValue();
392
394
  }
393
- _onSlotChange() {
395
+ _updateValueOptionState() {
394
396
  this._isValueManuallyAssigned ? this._updateOptionsFromValue() : this._updateValueFromOptions();
395
397
  }
396
398
  _getSelected() {
@@ -421,7 +423,7 @@ let Oe = 0, Ke = (() => {
421
423
  readers to work properly -->
422
424
  <div
423
425
  class="sbb-screen-reader-only sbb-select-trigger"
424
- tabindex=${this.disabled || this.formDisabled ? E : "0"}
426
+ tabindex=${this.disabled || this.formDisabled ? O : "0"}
425
427
  role="combobox"
426
428
  aria-haspopup="listbox"
427
429
  aria-expanded="false"
@@ -430,7 +432,7 @@ let Oe = 0, Ke = (() => {
430
432
  aria-owns=${this._overlayId}
431
433
  @keydown=${this._onKeyDown}
432
434
  @click=${this._toggleOpening}
433
- ${O((e) => this._triggerElement = e)}
435
+ ${E((e) => this._triggerElement = e)}
434
436
  >
435
437
  ${H(...this._spreadDeferredDisplayValue(w`<span>${this.placeholder}</span>`))}
436
438
  </div>
@@ -446,17 +448,17 @@ let Oe = 0, Ke = (() => {
446
448
  <div
447
449
  @animationend=${this._onAnimationEnd}
448
450
  class="sbb-select__panel"
449
- ${O((e) => this._overlay = e)}
451
+ ${E((e) => this._overlay = e)}
450
452
  >
451
453
  <div class="sbb-select__wrapper">
452
454
  <div
453
- id=${k ? E : this._overlayId}
455
+ id=${k ? O : this._overlayId}
454
456
  class="sbb-select__options"
455
- role=${k ? E : "listbox"}
457
+ role=${k ? O : "listbox"}
456
458
  ?aria-multiselectable=${this.multiple}
457
- ${O((e) => this._optionContainer = e)}
459
+ ${E((e) => this._optionContainer = e)}
458
460
  >
459
- <slot @slotchange=${this._onSlotChange}></slot>
461
+ <slot @slotchange=${this._updateValueOptionState}></slot>
460
462
  </div>
461
463
  </div>
462
464
  </div>
@@ -465,7 +467,7 @@ let Oe = 0, Ke = (() => {
465
467
  }
466
468
  }, u = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), v = new WeakMap(), m = new WeakMap(), b = o, (() => {
467
469
  const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(C[Symbol.metadata] ?? null) : void 0;
468
- V = [A(), x()], L = [A(), J((t, s) => t._onMultipleChanged(s)), x({ reflect: !0, type: Boolean })], M = [A(), J((t, s) => t._closeOnDisabledReadonlyChanged(s)), x({ reflect: !0, type: Boolean }), be((t, s) => s || t.isDisabledExternally())], F = [x()], U = [x({ reflect: !0 })], B = [ae()], h(o, null, V, { kind: "accessor", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, get: (t) => t.placeholder, set: (t, s) => {
470
+ I = [A(), x()], L = [A(), J((t, s) => t._onMultipleChanged(s)), x({ reflect: !0, type: Boolean })], M = [A(), J((t, s) => t._closeOnDisabledReadonlyChanged(s)), x({ reflect: !0, type: Boolean }), be((t, s) => s || t.isDisabledExternally())], F = [x()], U = [x({ reflect: !0 })], B = [ae()], h(o, null, I, { kind: "accessor", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, get: (t) => t.placeholder, set: (t, s) => {
469
471
  t.placeholder = s;
470
472
  } }, metadata: e }, D, z), h(o, null, L, { kind: "accessor", name: "multiple", static: !1, private: !1, access: { has: (t) => "multiple" in t, get: (t) => t.multiple, set: (t, s) => {
471
473
  t.multiple = s;
@@ -473,12 +475,12 @@ let Oe = 0, Ke = (() => {
473
475
  t.disabled = s;
474
476
  } }, metadata: e }, R, T), h(o, null, F, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (t) => "value" in t, set: (t, s) => {
475
477
  t.value = s;
476
- } }, metadata: e }, null, I), h(o, null, U, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, s) => {
478
+ } }, metadata: e }, null, V), h(o, null, U, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, s) => {
477
479
  t.size = s;
478
480
  } }, metadata: e }, q, N), h(o, null, B, { kind: "accessor", name: "_displayValue", static: !1, private: !1, access: { has: (t) => "_displayValue" in t, get: (t) => t._displayValue, set: (t, s) => {
479
481
  t._displayValue = s;
480
482
  } }, metadata: e }, K, j), h(null, a = { value: b }, i, { kind: "class", name: b.name, metadata: e }, null, r), b = a.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
481
- })(), o.role = k ? "listbox" : null, o.styles = [ke, Ee], o.events = {
483
+ })(), o.role = k ? "listbox" : null, o.styles = [ke, Oe], o.events = {
482
484
  change: "change",
483
485
  input: "input",
484
486
  displayvaluechange: "displayvaluechange",
@@ -1649,33 +1649,26 @@ sbb-toggle:has(:focus-visible) {
1649
1649
  --sbb-option-hint-padding-block-end: var(--sbb-spacing-fixed-1x);
1650
1650
  }
1651
1651
 
1652
- sbb-dialog[negative] sbb-dialog-actions {
1653
- --sbb-dialog-actions-border-color: var(--sbb-background-color-4-negative);
1654
- }
1655
- sbb-dialog:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
1656
- --sbb-dialog-actions-border-color: transparent;
1657
- box-shadow: var(--sbb-box-shadow-level-9-soft);
1658
- }
1659
- sbb-dialog[negative]:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
1660
- box-shadow: var(--sbb-box-shadow-level-9-soft-negative);
1652
+ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-close-button) > * > sbb-dialog-title {
1653
+ padding-inline-end: 0;
1661
1654
  }
1662
1655
 
1663
- sbb-dialog:has(> sbb-dialog-title) > sbb-dialog-content {
1656
+ sbb-dialog:has(> sbb-dialog-title) > sbb-dialog-content, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title) > * > sbb-dialog-content {
1664
1657
  padding-block-start: 0;
1665
1658
  }
1666
-
1667
- sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title {
1668
- margin-inline-end: 0;
1659
+ sbb-dialog[negative] > sbb-dialog-content, sbb-dialog[negative]:is(:state(has-intermediate-element),[state--has-intermediate-element]) > * > sbb-dialog-content {
1660
+ --sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);
1661
+ --sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);
1669
1662
  }
1670
1663
 
1671
- sbb-dialog:not(:has(> sbb-dialog-title)) > sbb-dialog-close-button {
1664
+ sbb-dialog:not(:has(> sbb-dialog-title)) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):not(:has(> * > sbb-dialog-title)) > * > sbb-dialog-close-button {
1672
1665
  position: absolute;
1673
1666
  z-index: 1;
1674
1667
  }
1675
- sbb-dialog:has(> sbb-dialog-title[visual-level="3"]) > sbb-dialog-close-button {
1668
+ sbb-dialog:has(> sbb-dialog-title[visual-level="3"]) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title[visual-level="3"]) > * > sbb-dialog-close-button {
1676
1669
  --_sbb-dialog-title-size: var(--sbb-font-size-title-3);
1677
1670
  }
1678
- sbb-dialog:has(> sbb-dialog-title[visual-level="5"]) > sbb-dialog-close-button {
1671
+ sbb-dialog:has(> sbb-dialog-title[visual-level="5"]) > sbb-dialog-close-button, sbb-dialog:is(:state(has-intermediate-element),[state--has-intermediate-element]):has(> * > sbb-dialog-title[visual-level="5"]) > * > sbb-dialog-close-button {
1679
1672
  --_sbb-dialog-title-size: var(--sbb-font-size-title-5);
1680
1673
  }
1681
1674