@sbb-esta/lyne-elements 2.0.2 → 2.0.3

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 (26) hide show
  1. package/core/mixins/form-associated-mixin.d.ts +2 -4
  2. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  3. package/core/mixins/form-associated-radio-button-mixin.d.ts +3 -3
  4. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  5. package/core/mixins.js +276 -276
  6. package/custom-elements.json +164 -126
  7. package/development/core/mixins/form-associated-mixin.d.ts +2 -4
  8. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  9. package/development/core/mixins/form-associated-radio-button-mixin.d.ts +3 -3
  10. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  11. package/development/core/mixins.js +45 -49
  12. package/development/radio-button/common/radio-button-common.d.ts +0 -2
  13. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  14. package/development/radio-button/common.js +2 -18
  15. package/development/radio-button/radio-button-group.js +2 -2
  16. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +9 -1
  17. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  18. package/development/radio-button/radio-button-panel.js +17 -7
  19. package/package.json +1 -1
  20. package/radio-button/common/radio-button-common.d.ts +0 -2
  21. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  22. package/radio-button/common.js +13 -18
  23. package/radio-button/radio-button-group.js +1 -1
  24. package/radio-button/radio-button-panel/radio-button-panel.d.ts +9 -1
  25. package/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  26. package/radio-button/radio-button-panel.js +40 -38
package/core/mixins.js CHANGED
@@ -1,31 +1,31 @@
1
- var D = (o) => {
2
- throw TypeError(o);
1
+ var D = (l) => {
2
+ throw TypeError(l);
3
3
  };
4
- var M = (o, b, d) => b.has(o) || D("Cannot " + d);
5
- var x = (o, b, d) => (M(o, b, "read from private field"), d ? d.call(o) : b.get(o)), S = (o, b, d) => b.has(o) ? D("Cannot add the same private member more than once") : b instanceof WeakSet ? b.add(o) : b.set(o, d), _ = (o, b, d, n) => (M(o, b, "write to private field"), n ? n.call(o, d) : b.set(o, d), d);
6
- import { __esDecorate as g, __runInitializers as m } from "tslib";
7
- import { property as k, state as q } from "lit/decorators.js";
8
- import { forceType as C, getOverride as N, hostAttributes as j } from "./decorators.js";
9
- import { defaultConverter as O, html as R, nothing as E, css as V } from "lit";
10
- import { preventScrollOnSpacebarPress as $, EventEmitter as G } from "./eventing.js";
11
- import { interactivityChecker as P, isArrowKeyPressed as T, getNextElementIndex as H } from "./a11y.js";
12
- import { SbbConnectedAbortController as K } from "./controllers.js";
4
+ var M = (l, p, o) => p.has(l) || D("Cannot " + o);
5
+ var k = (l, p, o) => (M(l, p, "read from private field"), o ? o.call(l) : p.get(l)), x = (l, p, o) => p.has(l) ? D("Cannot add the same private member more than once") : p instanceof WeakSet ? p.add(l) : p.set(l, o), _ = (l, p, o, r) => (M(l, p, "write to private field"), r ? r.call(l, o) : p.set(l, o), o);
6
+ import { __esDecorate as y, __runInitializers as f } from "tslib";
7
+ import { property as S, state as F } from "lit/decorators.js";
8
+ import { forceType as w, getOverride as N, hostAttributes as j } from "./decorators.js";
9
+ import { defaultConverter as A, isServer as G, html as R, nothing as E, css as V } from "lit";
10
+ import { preventScrollOnSpacebarPress as $, EventEmitter as P } from "./eventing.js";
11
+ import { interactivityChecker as T, isArrowKeyPressed as H, getNextElementIndex as K } from "./a11y.js";
12
+ import { SbbConnectedAbortController as W } from "./controllers.js";
13
13
  import "../screen-reader-only.js";
14
- const I = (o) => (() => {
15
- var r, s;
16
- let d = o, n, u = [], l = [];
17
- return s = class extends d {
14
+ const I = (l) => (() => {
15
+ var u, e;
16
+ let o = l, r, h = [], a = [];
17
+ return e = class extends o {
18
18
  constructor() {
19
19
  super(...arguments);
20
- S(this, r, m(this, u, !1));
21
- m(this, l);
20
+ x(this, u, f(this, h, !1));
21
+ f(this, a);
22
22
  }
23
23
  /** Whether the component is disabled. */
24
24
  get disabled() {
25
- return x(this, r);
25
+ return k(this, u);
26
26
  }
27
- set disabled(e) {
28
- _(this, r, e);
27
+ set disabled(t) {
28
+ _(this, u, t);
29
29
  }
30
30
  /**
31
31
  * Will be used as 'or' check to the current disabled state.
@@ -34,49 +34,49 @@ const I = (o) => (() => {
34
34
  isDisabledExternally() {
35
35
  return !1;
36
36
  }
37
- }, r = new WeakMap(), (() => {
38
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
39
- n = [C(), k({ reflect: !0, type: Boolean }), N((t, a) => a || t.isDisabledExternally())], g(s, null, n, { kind: "accessor", name: "disabled", static: !1, private: !1, access: { has: (t) => "disabled" in t, get: (t) => t.disabled, set: (t, a) => {
40
- t.disabled = a;
41
- } }, metadata: e }, u, l), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
42
- })(), s;
43
- })(), W = (o) => (() => {
44
- var r, s;
45
- let d = o, n, u = [], l = [];
46
- return s = class extends d {
37
+ }, u = new WeakMap(), (() => {
38
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
39
+ r = [w(), S({ reflect: !0, type: Boolean }), N((s, i) => i || s.isDisabledExternally())], y(e, null, r, { kind: "accessor", name: "disabled", static: !1, private: !1, access: { has: (s) => "disabled" in s, get: (s) => s.disabled, set: (s, i) => {
40
+ s.disabled = i;
41
+ } }, metadata: t }, h, a), t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
42
+ })(), e;
43
+ })(), X = (l) => (() => {
44
+ var u, e;
45
+ let o = l, r, h = [], a = [];
46
+ return e = class extends o {
47
47
  constructor() {
48
48
  super(...arguments);
49
- S(this, r, m(this, u, !1));
50
- m(this, l);
49
+ x(this, u, f(this, h, !1));
50
+ f(this, a);
51
51
  }
52
52
  /** Whether the button should be aria-disabled but stay interactive. */
53
53
  get disabledInteractive() {
54
- return x(this, r);
55
- }
56
- set disabledInteractive(e) {
57
- _(this, r, e);
58
- }
59
- }, r = new WeakMap(), (() => {
60
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
61
- n = [C(), k({ attribute: "disabled-interactive", type: Boolean, reflect: !0 })], g(s, null, n, { kind: "accessor", name: "disabledInteractive", static: !1, private: !1, access: { has: (t) => "disabledInteractive" in t, get: (t) => t.disabledInteractive, set: (t, a) => {
62
- t.disabledInteractive = a;
63
- } }, metadata: e }, u, l), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
64
- })(), s;
65
- })(), ne = (o) => {
66
- class b extends W(I(o)) {
67
- willUpdate(n) {
68
- super.willUpdate(n), n.has("disabledInteractive") && (this.internals.ariaDisabled = this.disabledInteractive ? "true" : null), n.has("disabled") && (this.disabled ? this.removeAttribute("tabindex") : this.setAttribute("tabindex", "0"));
54
+ return k(this, u);
55
+ }
56
+ set disabledInteractive(t) {
57
+ _(this, u, t);
58
+ }
59
+ }, u = new WeakMap(), (() => {
60
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
61
+ r = [w(), S({ attribute: "disabled-interactive", type: Boolean, reflect: !0 })], y(e, null, r, { kind: "accessor", name: "disabledInteractive", static: !1, private: !1, access: { has: (s) => "disabledInteractive" in s, get: (s) => s.disabledInteractive, set: (s, i) => {
62
+ s.disabledInteractive = i;
63
+ } }, metadata: t }, h, a), t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
64
+ })(), e;
65
+ })(), le = (l) => {
66
+ class p extends X(I(l)) {
67
+ willUpdate(r) {
68
+ super.willUpdate(r), r.has("disabledInteractive") && (this.internals.ariaDisabled = this.disabledInteractive ? "true" : null), r.has("disabled") && (this.disabled ? this.removeAttribute("tabindex") : this.setAttribute("tabindex", "0"));
69
69
  }
70
70
  }
71
- return b;
72
- }, L = (o) => (() => {
73
- var h, e;
74
- let d = o, n = [], u, l, r, s = [], f = [];
75
- return e = class extends d {
71
+ return p;
72
+ }, L = (l) => (() => {
73
+ var d, t;
74
+ let o = l, r = [], h, a, u, e = [], n = [];
75
+ return t = class extends o {
76
76
  constructor() {
77
77
  super(...arguments);
78
- S(this, h);
79
- this._value = (m(this, n), null), this.internals = this.attachInternals(), _(this, h, m(this, s, !1)), m(this, f);
78
+ x(this, d);
79
+ this._value = (f(this, r), null), this.internals = this.attachInternals(), _(this, d, f(this, e, !1)), f(this, n);
80
80
  }
81
81
  /**
82
82
  * Returns the form owner of the internals of the target element.
@@ -90,8 +90,8 @@ const I = (o) => (() => {
90
90
  * @description Developer note: In this case updating the attribute must be synchronous.
91
91
  * Due to this it is implemented as a getter/setter and the attributeChangedCallback() handles the diff check.
92
92
  */
93
- set name(i) {
94
- this.setAttribute("name", `${i}`), this.updateFormValue();
93
+ set name(c) {
94
+ this.setAttribute("name", `${c}`), this.updateFormValue();
95
95
  }
96
96
  get name() {
97
97
  return this.getAttribute("name") ?? "";
@@ -101,8 +101,8 @@ const I = (o) => (() => {
101
101
  return this.localName;
102
102
  }
103
103
  /** Value of the form element. */
104
- set value(i) {
105
- this._value = i, this.updateFormValue();
104
+ set value(c) {
105
+ this._value = c, this.updateFormValue();
106
106
  }
107
107
  get value() {
108
108
  return this._value;
@@ -135,13 +135,13 @@ const I = (o) => (() => {
135
135
  }
136
136
  /** Whenever a surrounding form or fieldset is changing its disabled state. */
137
137
  get formDisabled() {
138
- return x(this, h);
138
+ return k(this, d);
139
139
  }
140
- set formDisabled(i) {
141
- _(this, h, i);
140
+ set formDisabled(c) {
141
+ _(this, d, c);
142
142
  }
143
- attributeChangedCallback(i, c, p) {
144
- (i !== "name" || c !== p) && super.attributeChangedCallback(i, c, p);
143
+ attributeChangedCallback(c, b, m) {
144
+ (c !== "name" || b !== m) && super.attributeChangedCallback(c, b, m);
145
145
  }
146
146
  /**
147
147
  * Returns true if internals target element has no validity problems; false otherwise.
@@ -168,37 +168,37 @@ const I = (o) => (() => {
168
168
  *
169
169
  * @internal
170
170
  */
171
- formDisabledCallback(i) {
171
+ formDisabledCallback(c) {
172
172
  Promise.resolve().then(() => {
173
- this.formDisabled = i;
173
+ this.formDisabled = c;
174
174
  });
175
175
  }
176
- }, h = new WeakMap(), (() => {
177
- const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
178
- u = [k()], l = [k()], r = [q()], g(e, null, u, { kind: "setter", name: "name", static: !1, private: !1, access: { has: (c) => "name" in c, set: (c, p) => {
179
- c.name = p;
180
- } }, metadata: i }, null, n), g(e, null, l, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (c) => "value" in c, set: (c, p) => {
181
- c.value = p;
182
- } }, metadata: i }, null, n), g(e, null, r, { kind: "accessor", name: "formDisabled", static: !1, private: !1, access: { has: (c) => "formDisabled" in c, get: (c) => c.formDisabled, set: (c, p) => {
183
- c.formDisabled = p;
184
- } }, metadata: i }, s, f), i && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
185
- })(), e.formAssociated = !0, e;
186
- })(), U = (o) => (() => {
187
- var l;
188
- let d = o, n = [], u;
189
- return l = class extends d {
176
+ }, d = new WeakMap(), (() => {
177
+ const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
178
+ h = [S()], a = [S()], u = [F()], y(t, null, h, { kind: "setter", name: "name", static: !1, private: !1, access: { has: (b) => "name" in b, set: (b, m) => {
179
+ b.name = m;
180
+ } }, metadata: c }, null, r), y(t, null, a, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (b) => "value" in b, set: (b, m) => {
181
+ b.value = m;
182
+ } }, metadata: c }, null, r), y(t, null, u, { kind: "accessor", name: "formDisabled", static: !1, private: !1, access: { has: (b) => "formDisabled" in b, get: (b) => b.formDisabled, set: (b, m) => {
183
+ b.formDisabled = m;
184
+ } }, metadata: c }, e, n), c && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: c });
185
+ })(), t.formAssociated = !0, t;
186
+ })(), U = (l) => (() => {
187
+ var a;
188
+ let o = l, r = [], h;
189
+ return a = class extends o {
190
190
  constructor() {
191
- super(...arguments), this._required = (m(this, n), !1);
191
+ super(...arguments), this._required = (f(this, r), !1);
192
192
  }
193
193
  /** Whether the component is required. */
194
- set required(s) {
195
- this._required = !!s;
194
+ set required(e) {
195
+ this._required = !!e;
196
196
  }
197
197
  get required() {
198
198
  return this._required || this.isRequiredExternally();
199
199
  }
200
- willUpdate(s) {
201
- super.willUpdate(s), s.has("required") && (this.internals.ariaRequired = `${this.required}`);
200
+ willUpdate(e) {
201
+ super.willUpdate(e), e.has("required") && (this.internals.ariaRequired = `${this.required}`);
202
202
  }
203
203
  /**
204
204
  * Will be used as 'or' check to the current required state.
@@ -208,21 +208,21 @@ const I = (o) => (() => {
208
208
  return !1;
209
209
  }
210
210
  }, (() => {
211
- const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
212
- u = [k({ reflect: !0, type: Boolean })], g(l, null, u, { kind: "setter", name: "required", static: !1, private: !1, access: { has: (f) => "required" in f, set: (f, h) => {
213
- f.required = h;
214
- } }, metadata: s }, null, n), s && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
215
- })(), l;
216
- })(), le = (o) => (() => {
217
- var h;
218
- let d = [j({
211
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
212
+ h = [S({ reflect: !0, type: Boolean })], y(a, null, h, { kind: "setter", name: "required", static: !1, private: !1, access: { has: (n) => "required" in n, set: (n, d) => {
213
+ n.required = d;
214
+ } }, metadata: e }, null, r), e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
215
+ })(), a;
216
+ })(), oe = (l) => (() => {
217
+ var d;
218
+ let o = [j({
219
219
  tabindex: "0"
220
- })], n, u = [], l, r = I(U(L(o))), s = [], f;
221
- return h = class extends r {
220
+ })], r, h = [], a, u = I(U(L(l))), e = [], n;
221
+ return d = class extends u {
222
222
  /** Whether the checkbox is checked. */
223
- set checked(t) {
224
- const a = typeof t == "object" ? t.attribute : !1;
225
- a && (t = t.value), this.hasUpdated && !a && (this._attributeMutationBlocked = !0), this._checked = !!t, this.updateFormValue();
223
+ set checked(s) {
224
+ const i = typeof s == "object" ? s.attribute : !1;
225
+ i && (s = s.value), this.hasUpdated && !i && (this._attributeMutationBlocked = !0), this._checked = !!s, this.updateFormValue();
226
226
  }
227
227
  get checked() {
228
228
  return this._checked;
@@ -235,16 +235,16 @@ const I = (o) => (() => {
235
235
  return "checkbox";
236
236
  }
237
237
  constructor() {
238
- var t, a, i;
239
- super(), this._attributeMutationBlocked = (m(this, s), !1), this._checked = !1, this._handleKeyboardInteraction = (c) => {
240
- c.key === " " && this._handleUserInteraction();
238
+ var s, i, c;
239
+ super(), this._attributeMutationBlocked = (f(this, e), !1), this._checked = !1, this._handleKeyboardInteraction = (b) => {
240
+ b.key === " " && this._handleUserInteraction();
241
241
  }, this._handleUserInteraction = () => {
242
- var c;
243
- this.disabled || ((c = this.withUserInteraction) == null || c.call(this), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", { composed: !0, bubbles: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })));
244
- }, this.internals.role = "checkbox", (t = this.addEventListener) == null || t.call(this, "click", this._handleUserInteraction), (a = this.addEventListener) == null || a.call(this, "keydown", $), (i = this.addEventListener) == null || i.call(this, "keyup", this._handleKeyboardInteraction);
242
+ var b;
243
+ this.disabled || ((b = this.withUserInteraction) == null || b.call(this), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", { composed: !0, bubbles: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })));
244
+ }, this.internals.role = "checkbox", (s = this.addEventListener) == null || s.call(this, "click", this._handleUserInteraction), (i = this.addEventListener) == null || i.call(this, "keydown", $), (c = this.addEventListener) == null || c.call(this, "keyup", this._handleKeyboardInteraction);
245
245
  }
246
- attributeChangedCallback(t, a, i) {
247
- (t !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(t, a, i);
246
+ attributeChangedCallback(s, i, c) {
247
+ (s !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(s, i, c);
248
248
  }
249
249
  /**
250
250
  * Is called whenever the form is being reset.
@@ -263,46 +263,46 @@ const I = (o) => (() => {
263
263
  *
264
264
  * @internal
265
265
  */
266
- formStateRestoreCallback(t, a) {
267
- t && (this.checked = t === "true");
266
+ formStateRestoreCallback(s, i) {
267
+ s && (this.checked = s === "true");
268
268
  }
269
269
  updateFormValue() {
270
270
  this.checked ? this.internals.setFormValue(this.value, `${this.checked}`) : this.internals.setFormValue(null);
271
271
  }
272
- }, l = h, (() => {
273
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
274
- f = [k({
272
+ }, a = d, (() => {
273
+ const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
274
+ n = [S({
275
275
  type: Boolean,
276
276
  converter: {
277
- ...O,
277
+ ...A,
278
278
  // We need to pass information to the setter so that we know it was called by attribute change.
279
- fromAttribute: (a, i) => {
280
- var p, B;
281
- return { value: (B = (p = O).fromAttribute) == null ? void 0 : B.call(p, a, i), attribute: !0 };
279
+ fromAttribute: (i, c) => {
280
+ var m, B;
281
+ return { value: (B = (m = A).fromAttribute) == null ? void 0 : B.call(m, i, c), attribute: !0 };
282
282
  }
283
283
  }
284
- })], g(h, null, f, { kind: "setter", name: "checked", static: !1, private: !1, access: { has: (a) => "checked" in a, set: (a, i) => {
285
- a.checked = i;
286
- } }, metadata: t }, null, s), g(null, n = { value: l }, d, { kind: "class", name: l.name, metadata: t }, null, u), l = n.value, t && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t }), m(l, u);
287
- })(), l;
288
- })(), A = /* @__PURE__ */ new WeakMap(), oe = (o) => (() => {
289
- var r, s;
290
- let d = I(U(L(o))), n, u = [], l = [];
291
- return s = class extends d {
292
- constructor() {
293
- var e;
294
- super();
295
- S(this, r);
296
- _(this, r, m(this, u, !1)), this.abort = (m(this, l), new K(this)), this._didLoad = !1, this.internals.role = "radio", (e = this.addEventListener) == null || e.call(this, "keydown", (t) => this._handleArrowKeyDown(t));
297
- }
284
+ })], y(d, null, n, { kind: "setter", name: "checked", static: !1, private: !1, access: { has: (i) => "checked" in i, set: (i, c) => {
285
+ i.checked = c;
286
+ } }, metadata: s }, null, e), y(null, r = { value: a }, o, { kind: "class", name: a.name, metadata: s }, null, h), a = r.value, s && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), f(a, h);
287
+ })(), a;
288
+ })(), O = /* @__PURE__ */ new WeakMap(), de = (l) => (() => {
289
+ var a;
290
+ let o = I(U(L(l))), r = [], h;
291
+ return a = class extends o {
298
292
  /**
299
293
  * Whether the radio button is checked.
300
294
  */
295
+ set checked(e) {
296
+ this._checked = !!e, this.toggleAttribute("data-checked", this.checked), this.internals.ariaChecked = this.checked.toString(), this.updateFormValue(), this._synchronizeGroupState();
297
+ }
301
298
  get checked() {
302
- return x(this, r);
299
+ return this._checked;
303
300
  }
304
- set checked(e) {
305
- _(this, r, e);
301
+ set name(e) {
302
+ super.name = e, this._disconnectFromRegistry(), this._connectToRegistry(), this._synchronizeGroupState();
303
+ }
304
+ get name() {
305
+ return super.name;
306
306
  }
307
307
  /**
308
308
  * Form type of element.
@@ -311,8 +311,12 @@ const I = (o) => (() => {
311
311
  get type() {
312
312
  return "radio";
313
313
  }
314
+ constructor() {
315
+ var e;
316
+ super(), this._checked = (f(this, r), !1), this.abort = new W(this), this._didLoad = !1, this.internals.role = "radio", (e = this.addEventListener) == null || e.call(this, "keydown", (n) => this._handleArrowKeyDown(n));
317
+ }
314
318
  connectedCallback() {
315
- super.connectedCallback(), this._connectToRegistry();
319
+ super.connectedCallback(), this._connectToRegistry(), this._synchronizeGroupState();
316
320
  }
317
321
  disconnectedCallback() {
318
322
  super.disconnectedCallback(), this._disconnectFromRegistry();
@@ -330,11 +334,11 @@ const I = (o) => (() => {
330
334
  * user in which case reason is “autocomplete”.
331
335
  * @internal
332
336
  */
333
- formStateRestoreCallback(e, t) {
337
+ formStateRestoreCallback(e, n) {
334
338
  e && (this.checked = e === this.value);
335
339
  }
336
340
  willUpdate(e) {
337
- super.willUpdate(e), e.has("name") && (this._disconnectFromRegistry(), this._connectToRegistry(), this.checked && this._deselectGroupedRadios(), this.updateFocusableRadios()), e.has("checked") && (this.toggleAttribute("data-checked", this.checked), this.internals.ariaChecked = this.checked.toString(), this.updateFormValueOnCheckedChange(), this.checked && this._deselectGroupedRadios(), this.updateFocusableRadios()), e.has("disabled") && this.updateFocusableRadios();
341
+ super.willUpdate(e), e.has("disabled") && this.updateFocusableRadios();
338
342
  }
339
343
  firstUpdated(e) {
340
344
  super.firstUpdated(e), this._didLoad = !0, this.updateFocusableRadios();
@@ -344,14 +348,7 @@ const I = (o) => (() => {
344
348
  * If 'checked', update the value. Otherwise, do nothing.
345
349
  */
346
350
  updateFormValue() {
347
- this.checked && this.internals.setFormValue(this.value);
348
- }
349
- /**
350
- * Called on `checked` change
351
- * If 'checked', update the value. Otherwise, reset it.
352
- */
353
- updateFormValueOnCheckedChange() {
354
- this.internals.setFormValue(this.checked ? this.value : null);
351
+ this.checked ? this.internals.setFormValue(this.value, this.value) : this.internals.setFormValue(null);
355
352
  }
356
353
  /**
357
354
  * Only a single radio should be focusable in the group. Defined as:
@@ -361,8 +358,8 @@ const I = (o) => (() => {
361
358
  updateFocusableRadios() {
362
359
  if (!this._didLoad)
363
360
  return;
364
- const e = this._interactableGroupedRadios(), t = e.findIndex((i) => i.checked && !i.disabled && !i.formDisabled), a = t !== -1 ? t : e.findIndex((i) => !i.disabled && !i.formDisabled);
365
- a !== -1 && (e[a].tabIndex = 0, e.splice(a, 1)), e.forEach((i) => i.removeAttribute("tabindex"));
361
+ const e = this._interactableGroupedRadios(), n = e.findIndex((t) => t.checked && !t.disabled && !t.formDisabled), d = n !== -1 ? n : e.findIndex((t) => !t.disabled && !t.formDisabled);
362
+ d !== -1 && (e[d].tabIndex = 0, e.splice(d, 1)), e.forEach((t) => t.removeAttribute("tabindex"));
366
363
  }
367
364
  async navigateByKeyboard(e) {
368
365
  e.checked = !0, this.emitChangeEvents(), await e.updateComplete, e.focus();
@@ -370,31 +367,34 @@ const I = (o) => (() => {
370
367
  emitChangeEvents() {
371
368
  this.dispatchEvent(new InputEvent("input", { bubbles: !0, cancelable: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 }));
372
369
  }
370
+ _synchronizeGroupState() {
371
+ this.checked && this._deselectGroupedRadios(), this.updateFocusableRadios();
372
+ }
373
373
  /**
374
374
  * Add `this` to the radioButton registry
375
375
  */
376
376
  _connectToRegistry() {
377
- if (!this.name)
377
+ if (!this.name || G)
378
378
  return;
379
379
  const e = this.form ?? this.getRootNode();
380
- this._radioButtonGroupsMap = A.get(e), this._radioButtonGroupsMap || (this._radioButtonGroupsMap = /* @__PURE__ */ new Map(), A.set(e, this._radioButtonGroupsMap)), this.associatedRadioButtons = this._radioButtonGroupsMap.get(this.name), this.associatedRadioButtons || (this.associatedRadioButtons = /* @__PURE__ */ new Set(), this._radioButtonGroupsMap.set(this.name, this.associatedRadioButtons));
381
- const t = Array.from(this.associatedRadioButtons);
380
+ this._radioButtonGroupsMap = O.get(e), this._radioButtonGroupsMap || (this._radioButtonGroupsMap = /* @__PURE__ */ new Map(), O.set(e, this._radioButtonGroupsMap)), this.associatedRadioButtons = this._radioButtonGroupsMap.get(this.name), this.associatedRadioButtons || (this.associatedRadioButtons = /* @__PURE__ */ new Set(), this._radioButtonGroupsMap.set(this.name, this.associatedRadioButtons));
381
+ const n = Array.from(this.associatedRadioButtons);
382
382
  this.associatedRadioButtons.clear();
383
- const a = t.findIndex((i) => this.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_FOLLOWING);
384
- a !== -1 ? t.splice(a, 0, this) : t.push(this), t.forEach((i) => this.associatedRadioButtons.add(i));
383
+ const d = n.findIndex((t) => this.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING);
384
+ d !== -1 ? n.splice(d, 0, this) : n.push(this), n.forEach((t) => this.associatedRadioButtons.add(t));
385
385
  }
386
386
  /**
387
387
  * Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map
388
388
  */
389
389
  _disconnectFromRegistry() {
390
- var e, t, a;
391
- (e = this.associatedRadioButtons) == null || e.delete(this), ((t = this.associatedRadioButtons) == null ? void 0 : t.size) === 0 && ((a = this._radioButtonGroupsMap) == null || a.delete(this.name)), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
390
+ var e, n, d;
391
+ (e = this.associatedRadioButtons) == null || e.delete(this), ((n = this.associatedRadioButtons) == null ? void 0 : n.size) === 0 && ((d = this._radioButtonGroupsMap) == null || d.delete(this.name)), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
392
392
  }
393
393
  /**
394
394
  * Return a list of 'interactable' grouped radios, ordered in DOM order
395
395
  */
396
396
  _interactableGroupedRadios() {
397
- return Array.from(this.associatedRadioButtons ?? []).filter((e) => P.isVisible(e));
397
+ return Array.from(this.associatedRadioButtons ?? []).filter((e) => T.isVisible(e));
398
398
  }
399
399
  /**
400
400
  * Deselect other radio of the same group
@@ -403,20 +403,20 @@ const I = (o) => (() => {
403
403
  Array.from(this.associatedRadioButtons ?? []).filter((e) => e !== this).forEach((e) => e.checked = !1);
404
404
  }
405
405
  async _handleArrowKeyDown(e) {
406
- if (!T(e))
406
+ if (!H(e))
407
407
  return;
408
408
  e.preventDefault();
409
- const t = this._interactableGroupedRadios().filter((c) => !c.disabled && !c.formDisabled), a = t.indexOf(this), i = H(e, a, t.length);
410
- await this.navigateByKeyboard(t[i]);
411
- }
412
- }, r = new WeakMap(), (() => {
413
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
414
- n = [C(), k({ type: Boolean })], g(s, null, n, { kind: "accessor", name: "checked", static: !1, private: !1, access: { has: (t) => "checked" in t, get: (t) => t.checked, set: (t, a) => {
415
- t.checked = a;
416
- } }, metadata: e }, u, l), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
417
- })(), s;
418
- })(), X = (o) => {
419
- class b extends o {
409
+ const n = this._interactableGroupedRadios().filter((s) => !s.disabled && !s.formDisabled), d = n.indexOf(this), t = K(e, d, n.length);
410
+ await this.navigateByKeyboard(n[t]);
411
+ }
412
+ }, (() => {
413
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
414
+ h = [S({ type: Boolean })], y(a, null, h, { kind: "setter", name: "checked", static: !1, private: !1, access: { has: (n) => "checked" in n, set: (n, d) => {
415
+ n.checked = d;
416
+ } }, metadata: e }, null, r), e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
417
+ })(), a;
418
+ })(), J = (l) => {
419
+ class p extends l {
420
420
  /**
421
421
  * Returns a Promise that resolves when the element has completed hydration.
422
422
  * The Promise value is a boolean that is `true` if the element required hydration
@@ -432,34 +432,34 @@ const I = (o) => (() => {
432
432
  get hydrationRequired() {
433
433
  return this._hydrationRequired;
434
434
  }
435
- constructor(...n) {
436
- var u;
437
- if (super(...n), this._hydrationComplete = new Promise((l) => this._resolveHydration = l), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
435
+ constructor(...r) {
436
+ var h;
437
+ if (super(...r), this._hydrationComplete = new Promise((a) => this._resolveHydration = a), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
438
438
  this._resolveHydration(!1);
439
439
  else {
440
- const l = (f) => {
441
- this._hydrationRequired && f.stopImmediatePropagation();
442
- }, r = { capture: !0 }, s = (u = this.shadowRoot) == null ? void 0 : u.querySelectorAll("slot");
443
- s != null && s.length && (s.forEach((f) => f.addEventListener("slotchange", l, r)), this.hydrationComplete.then(() => s.forEach((f) => {
444
- f.removeEventListener("slotchange", l, r), f.assignedNodes().length && f.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
440
+ const a = (n) => {
441
+ this._hydrationRequired && n.stopImmediatePropagation();
442
+ }, u = { capture: !0 }, e = (h = this.shadowRoot) == null ? void 0 : h.querySelectorAll("slot");
443
+ e != null && e.length && (e.forEach((n) => n.addEventListener("slotchange", a, u)), this.hydrationComplete.then(() => e.forEach((n) => {
444
+ n.removeEventListener("slotchange", a, u), n.assignedNodes().length && n.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
445
445
  })));
446
446
  }
447
447
  }
448
- update(n) {
449
- super.update(n), this._hydrationRequired && (this._hydrationRequired = !1, this._resolveHydration(!0));
448
+ update(r) {
449
+ super.update(r), this._hydrationRequired && (this._hydrationRequired = !1, this._resolveHydration(!0));
450
450
  }
451
451
  }
452
- return b;
453
- }, z = "data-ssr-child-count", F = "li", de = (o) => (() => {
454
- var r, s;
455
- let d = X(o), n, u = [], l = [];
456
- return s = class extends d {
452
+ return p;
453
+ }, z = "data-ssr-child-count", q = "li", ce = (l) => (() => {
454
+ var u, e;
455
+ let o = J(l), r, h = [], a = [];
456
+ return e = class extends o {
457
457
  constructor() {
458
458
  super(...arguments);
459
- S(this, r);
460
- _(this, r, m(this, u, [])), this._handleSlotchange = (m(this, l), () => {
461
- const e = Array.from(this.children ?? []).filter((t) => this.listChildLocalNames.includes(t.localName));
462
- e.length === this.listChildren.length && this.listChildren.every((t, a) => e[a] === t) || (this.listChildren.filter((t) => !e.includes(t)).forEach((t) => t.removeAttribute("slot")), this.listChildren = e, this.listChildren.forEach((t, a) => t.setAttribute("slot", `${F}-${a}`)), this.removeAttribute(z));
459
+ x(this, u);
460
+ _(this, u, f(this, h, [])), this._handleSlotchange = (f(this, a), () => {
461
+ const t = Array.from(this.children ?? []).filter((s) => this.listChildLocalNames.includes(s.localName));
462
+ t.length === this.listChildren.length && this.listChildren.every((s, i) => t[i] === s) || (this.listChildren.filter((s) => !t.includes(s)).forEach((s) => s.removeAttribute("slot")), this.listChildren = t, this.listChildren.forEach((s, i) => s.setAttribute("slot", `${q}-${i}`)), this.removeAttribute(z));
463
463
  });
464
464
  }
465
465
  /**
@@ -468,18 +468,18 @@ const I = (o) => (() => {
468
468
  * to the child elements.
469
469
  */
470
470
  get listChildren() {
471
- return x(this, r);
471
+ return k(this, u);
472
472
  }
473
- set listChildren(e) {
474
- _(this, r, e);
473
+ set listChildren(t) {
474
+ _(this, u, t);
475
475
  }
476
476
  connectedCallback() {
477
- var e;
478
- super.connectedCallback(), (e = this.shadowRoot) == null || e.addEventListener("slotchange", this._handleSlotchange, { passive: !0 });
477
+ var t;
478
+ super.connectedCallback(), (t = this.shadowRoot) == null || t.addEventListener("slotchange", this._handleSlotchange, { passive: !0 });
479
479
  }
480
480
  disconnectedCallback() {
481
- var e;
482
- super.disconnectedCallback(), (e = this.shadowRoot) == null || e.removeEventListener("slotchange", this._handleSlotchange);
481
+ var t;
482
+ super.disconnectedCallback(), (t = this.shadowRoot) == null || t.removeEventListener("slotchange", this._handleSlotchange);
483
483
  }
484
484
  /**
485
485
  * Renders list and list slots for slotted children or a number of list slots
@@ -490,24 +490,24 @@ const I = (o) => (() => {
490
490
  * framework wrapper (like e.g. React). This allows to provide the number of
491
491
  * children to be passed via the `data-ssr-child-count` attribute value.
492
492
  */
493
- renderList(e = {}, t = {}) {
494
- const a = this.listSlotEntries(t);
495
- return a.length >= 2 ? R`
493
+ renderList(t = {}, s = {}) {
494
+ const i = this.listSlotEntries(s);
495
+ return i.length >= 2 ? R`
496
496
  <ul
497
- class=${e.class || this.localName}
498
- aria-label=${e.ariaLabel || E}
499
- aria-labelledby=${e.ariaLabelledby || E}
497
+ class=${t.class || this.localName}
498
+ aria-label=${t.ariaLabel || E}
499
+ aria-labelledby=${t.ariaLabelledby || E}
500
500
  >
501
- ${a.map((i) => R`
502
- <li aria-hidden=${i.ariaHidden || E}>
503
- <slot name=${i.name}></slot>
501
+ ${i.map((c) => R`
502
+ <li aria-hidden=${c.ariaHidden || E}>
503
+ <slot name=${c.name}></slot>
504
504
  </li>
505
505
  `)}
506
506
  </ul>
507
507
  ${this.renderHiddenSlot()}
508
- ` : a.length === 1 ? R`<sbb-screen-reader-only>${e.ariaLabel}</sbb-screen-reader-only>
509
- <span class=${e.class || this.localName}>
510
- <span><slot name=${a[0].name}></slot></span>
508
+ ` : i.length === 1 ? R`<sbb-screen-reader-only>${t.ariaLabel}</sbb-screen-reader-only>
509
+ <span class=${t.class || this.localName}>
510
+ <span><slot name=${i[0].name}></slot></span>
511
511
  </span>
512
512
  ${this.renderHiddenSlot()} ` : this.renderHiddenSlot();
513
513
  }
@@ -520,12 +520,12 @@ const I = (o) => (() => {
520
520
  * framework wrapper (like e.g. React). This allows to provide the number of
521
521
  * children to be passed via the `data-ssr-child-count` attribute value.
522
522
  */
523
- listSlotEntries(e) {
524
- return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(z) ?? 0) })).map((a, i) => {
525
- var c;
523
+ listSlotEntries(t) {
524
+ return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(z) ?? 0) })).map((i, c) => {
525
+ var b;
526
526
  return {
527
- name: `${F}-${i}`,
528
- ariaHidden: ((c = e == null ? void 0 : e.localNameVisualOnly) == null ? void 0 : c.includes(a.localName)) ?? !1
527
+ name: `${q}-${c}`,
528
+ ariaHidden: ((b = t == null ? void 0 : t.localNameVisualOnly) == null ? void 0 : b.includes(i.localName)) ?? !1
529
529
  };
530
530
  });
531
531
  }
@@ -537,113 +537,113 @@ const I = (o) => (() => {
537
537
  renderHiddenSlot() {
538
538
  return R`<span hidden><slot></slot></span>`;
539
539
  }
540
- }, r = new WeakMap(), (() => {
541
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
542
- n = [q()], g(s, null, n, { kind: "accessor", name: "listChildren", static: !1, private: !1, access: { has: (t) => "listChildren" in t, get: (t) => t.listChildren, set: (t, a) => {
543
- t.listChildren = a;
544
- } }, metadata: e }, u, l), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
545
- })(), s;
546
- })(), ce = (o) => (() => {
547
- var r, s;
548
- let d = o, n, u = [], l = [];
549
- return s = class extends d {
540
+ }, u = new WeakMap(), (() => {
541
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
542
+ r = [F()], y(e, null, r, { kind: "accessor", name: "listChildren", static: !1, private: !1, access: { has: (s) => "listChildren" in s, get: (s) => s.listChildren, set: (s, i) => {
543
+ s.listChildren = i;
544
+ } }, metadata: t }, h, a), t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
545
+ })(), e;
546
+ })(), ue = (l) => (() => {
547
+ var u, e;
548
+ let o = l, r, h = [], a = [];
549
+ return e = class extends o {
550
550
  constructor() {
551
551
  super(...arguments);
552
- S(this, r, m(this, u, !1));
553
- m(this, l);
552
+ x(this, u, f(this, h, !1));
553
+ f(this, a);
554
554
  }
555
555
  /** Negative coloring variant flag. */
556
556
  get negative() {
557
- return x(this, r);
558
- }
559
- set negative(e) {
560
- _(this, r, e);
561
- }
562
- }, r = new WeakMap(), (() => {
563
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
564
- n = [C(), k({ reflect: !0, type: Boolean })], g(s, null, n, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (t) => "negative" in t, get: (t) => t.negative, set: (t, a) => {
565
- t.negative = a;
566
- } }, metadata: e }, u, l), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
567
- })(), s;
568
- })(), ue = (o) => (() => {
569
- var a, i, c, p;
570
- let d = o, n, u = [], l = [], r, s = [], f = [], h, e = [], t = [];
571
- return p = class extends d {
557
+ return k(this, u);
558
+ }
559
+ set negative(t) {
560
+ _(this, u, t);
561
+ }
562
+ }, u = new WeakMap(), (() => {
563
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
564
+ r = [w(), S({ reflect: !0, type: Boolean })], y(e, null, r, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (s) => "negative" in s, get: (s) => s.negative, set: (s, i) => {
565
+ s.negative = i;
566
+ } }, metadata: t }, h, a), t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
567
+ })(), e;
568
+ })(), be = (l) => (() => {
569
+ var i, c, b, m;
570
+ let o = l, r, h = [], a = [], u, e = [], n = [], d, t = [], s = [];
571
+ return m = class extends o {
572
572
  constructor() {
573
573
  super(...arguments);
574
- S(this, a);
575
- S(this, i);
576
- S(this, c);
577
- _(this, a, m(this, u, "white")), _(this, i, (m(this, l), m(this, s, !1))), _(this, c, (m(this, f), m(this, e, ""))), this._panelConnected = (m(this, t), new G(this, p.events.panelConnected, { bubbles: !0 }));
574
+ x(this, i);
575
+ x(this, c);
576
+ x(this, b);
577
+ _(this, i, f(this, h, "white")), _(this, c, (f(this, a), f(this, e, !1))), _(this, b, (f(this, n), f(this, t, ""))), this._panelConnected = (f(this, s), new P(this, m.events.panelConnected, { bubbles: !0 }));
578
578
  }
579
579
  /** The background color of the panel. */
580
580
  get color() {
581
- return x(this, a);
581
+ return k(this, i);
582
582
  }
583
- set color(y) {
584
- _(this, a, y);
583
+ set color(g) {
584
+ _(this, i, g);
585
585
  }
586
586
  /** Whether the unselected panel has a border. */
587
587
  get borderless() {
588
- return x(this, i);
588
+ return k(this, c);
589
589
  }
590
- set borderless(y) {
591
- _(this, i, y);
590
+ set borderless(g) {
591
+ _(this, c, g);
592
592
  }
593
593
  /** @internal used for accessibility label when in expansion panel */
594
594
  get expansionState() {
595
- return x(this, c);
595
+ return k(this, b);
596
596
  }
597
- set expansionState(y) {
598
- _(this, c, y);
597
+ set expansionState(g) {
598
+ _(this, b, g);
599
599
  }
600
600
  connectedCallback() {
601
601
  super.connectedCallback(), this._panelConnected.emit();
602
602
  }
603
- }, a = new WeakMap(), i = new WeakMap(), c = new WeakMap(), (() => {
604
- const y = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
605
- n = [k()], r = [C(), k({ reflect: !0, type: Boolean })], h = [C(), k()], g(p, null, n, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (v) => "color" in v, get: (v) => v.color, set: (v, w) => {
606
- v.color = w;
607
- } }, metadata: y }, u, l), g(p, null, r, { kind: "accessor", name: "borderless", static: !1, private: !1, access: { has: (v) => "borderless" in v, get: (v) => v.borderless, set: (v, w) => {
608
- v.borderless = w;
609
- } }, metadata: y }, s, f), g(p, null, h, { kind: "accessor", name: "expansionState", static: !1, private: !1, access: { has: (v) => "expansionState" in v, get: (v) => v.expansionState, set: (v, w) => {
610
- v.expansionState = w;
611
- } }, metadata: y }, e, t), y && Object.defineProperty(p, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: y });
612
- })(), p.events = {
603
+ }, i = new WeakMap(), c = new WeakMap(), b = new WeakMap(), (() => {
604
+ const g = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
605
+ r = [S()], u = [w(), S({ reflect: !0, type: Boolean })], d = [w(), S()], y(m, null, r, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (v) => "color" in v, get: (v) => v.color, set: (v, C) => {
606
+ v.color = C;
607
+ } }, metadata: g }, h, a), y(m, null, u, { kind: "accessor", name: "borderless", static: !1, private: !1, access: { has: (v) => "borderless" in v, get: (v) => v.borderless, set: (v, C) => {
608
+ v.borderless = C;
609
+ } }, metadata: g }, e, n), y(m, null, d, { kind: "accessor", name: "expansionState", static: !1, private: !1, access: { has: (v) => "expansionState" in v, get: (v) => v.expansionState, set: (v, C) => {
610
+ v.expansionState = C;
611
+ } }, metadata: g }, t, s), g && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: g });
612
+ })(), m.events = {
613
613
  panelConnected: "panelConnected"
614
- }, p;
615
- })(), be = (o) => {
616
- class b extends o {
614
+ }, m;
615
+ })(), he = (l) => {
616
+ class p extends l {
617
617
  constructor() {
618
618
  super(...arguments), this._updatePromise = Promise.resolve(), this._updateResolve = () => {
619
619
  };
620
620
  }
621
621
  startUpdate() {
622
- this._updatePromise = new Promise((n) => this._updateResolve = n);
622
+ this._updatePromise = new Promise((r) => this._updateResolve = r);
623
623
  }
624
624
  completeUpdate() {
625
625
  this._updateResolve();
626
626
  }
627
627
  async getUpdateComplete() {
628
- const n = await super.getUpdateComplete();
629
- return await this._updatePromise, n;
628
+ const r = await super.getUpdateComplete();
629
+ return await this._updatePromise, r;
630
630
  }
631
631
  }
632
- return b;
633
- }, he = V`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
632
+ return p;
633
+ }, pe = V`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
634
634
  export {
635
- W as SbbDisabledInteractiveMixin,
635
+ X as SbbDisabledInteractiveMixin,
636
636
  I as SbbDisabledMixin,
637
- ne as SbbDisabledTabIndexActionMixin,
638
- le as SbbFormAssociatedCheckboxMixin,
637
+ le as SbbDisabledTabIndexActionMixin,
638
+ oe as SbbFormAssociatedCheckboxMixin,
639
639
  L as SbbFormAssociatedMixin,
640
- oe as SbbFormAssociatedRadioButtonMixin,
641
- X as SbbHydrationMixin,
642
- de as SbbNamedSlotListMixin,
643
- ce as SbbNegativeMixin,
644
- ue as SbbPanelMixin,
640
+ de as SbbFormAssociatedRadioButtonMixin,
641
+ J as SbbHydrationMixin,
642
+ ce as SbbNamedSlotListMixin,
643
+ ue as SbbNegativeMixin,
644
+ be as SbbPanelMixin,
645
645
  U as SbbRequiredMixin,
646
- be as SbbUpdateSchedulerMixin,
647
- he as panelCommonStyle,
648
- A as radioButtonRegistry
646
+ he as SbbUpdateSchedulerMixin,
647
+ pe as panelCommonStyle,
648
+ O as radioButtonRegistry
649
649
  };