@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779298726 → 5.0.0-next.3-dev.1779349365

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 (36) hide show
  1. package/autocomplete/autocomplete-base-element.js +1 -1
  2. package/autocomplete/autocomplete.component.js +4 -4
  3. package/{autocomplete-base-element-DjfmUS0W.js → autocomplete-base-element-k9uIbFBu.js} +1 -1
  4. package/autocomplete.js +1 -1
  5. package/autocomplete.pure.js +1 -1
  6. package/custom-elements.json +0 -21
  7. package/development/autocomplete/autocomplete-base-element.js +1 -1
  8. package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
  9. package/development/autocomplete/autocomplete.component.js +5 -5
  10. package/development/{autocomplete-base-element-CTZEg--s.js → autocomplete-base-element-D1b0RA_u.js} +2 -2
  11. package/development/autocomplete.js +1 -1
  12. package/development/autocomplete.pure.js +1 -1
  13. package/development/option/option/option-base-element.d.ts +0 -2
  14. package/development/option/option/option-base-element.d.ts.map +1 -1
  15. package/development/option/option/option-base-element.js +1 -6
  16. package/development/option/option/option.component.d.ts +0 -1
  17. package/development/option/option/option.component.d.ts.map +1 -1
  18. package/development/option/option/option.component.js +1 -1
  19. package/development/{option.component-BrTjDq6X.js → option.component-ImZLdB0V.js} +1 -2
  20. package/development/option.js +1 -1
  21. package/development/option.pure.js +1 -1
  22. package/development/select/select.component.d.ts.map +1 -1
  23. package/development/select/select.component.js +1 -1
  24. package/development/{select.component-BE7ZMrAc.js → select.component-o-3HlzOK.js} +3 -3
  25. package/development/select.js +1 -1
  26. package/development/select.pure.js +1 -1
  27. package/option/option/option-base-element.js +16 -19
  28. package/option/option/option.component.js +1 -1
  29. package/{option.component-DiH8AMlV.js → option.component-BgcpoHWM.js} +1 -1
  30. package/option.js +1 -1
  31. package/option.pure.js +1 -1
  32. package/package.json +2 -2
  33. package/select/select.component.js +1 -1
  34. package/{select.component-UcWSndDu.js → select.component-CDv5tSW6.js} +2 -2
  35. package/select.js +1 -1
  36. package/select.pure.js +1 -1
@@ -5,16 +5,16 @@ import { SbbDisabledMixin as o, SbbElement as s, SbbPropertyWatcherController as
5
5
  import { SbbIconNameMixin as m } from "../../icon.pure.js";
6
6
  import { MutationController as h } from "@lit-labs/observers/mutation-controller.js";
7
7
  //#region src/elements/option/option/option-base-element.ts
8
- var g = 0, _ = d, v = {
8
+ var g = d, _ = {
9
9
  childList: !0,
10
10
  subtree: !0,
11
11
  characterData: !0
12
- }, y = (() => {
13
- let d = o(m(s)), y = [], b, x, S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L, R = [], z = [];
12
+ }, v = (() => {
13
+ let d = o(m(s)), v = [], y, b, x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [];
14
14
  return class extends d {
15
15
  static {
16
16
  let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
17
- b = [i()], x = [i({ type: Boolean })], S = [a()], T = [a()], O = [a()], j = [a()], P = [a()], L = [a()], e(this, null, b, {
17
+ y = [i()], b = [i({ type: Boolean })], x = [a()], w = [a()], D = [a()], A = [a()], N = [a()], I = [a()], e(this, null, y, {
18
18
  kind: "setter",
19
19
  name: "value",
20
20
  static: !1,
@@ -26,7 +26,7 @@ var g = 0, _ = d, v = {
26
26
  }
27
27
  },
28
28
  metadata: t
29
- }, null, y), e(this, null, x, {
29
+ }, null, v), e(this, null, b, {
30
30
  kind: "setter",
31
31
  name: "selected",
32
32
  static: !1,
@@ -38,7 +38,7 @@ var g = 0, _ = d, v = {
38
38
  }
39
39
  },
40
40
  metadata: t
41
- }, null, y), e(this, null, S, {
41
+ }, null, v), e(this, null, x, {
42
42
  kind: "accessor",
43
43
  name: "disabledFromGroup",
44
44
  static: !1,
@@ -51,7 +51,7 @@ var g = 0, _ = d, v = {
51
51
  }
52
52
  },
53
53
  metadata: t
54
- }, C, w), e(this, null, T, {
54
+ }, S, C), e(this, null, w, {
55
55
  kind: "accessor",
56
56
  name: "groupLabel",
57
57
  static: !1,
@@ -64,7 +64,7 @@ var g = 0, _ = d, v = {
64
64
  }
65
65
  },
66
66
  metadata: t
67
- }, E, D), e(this, null, O, {
67
+ }, T, E), e(this, null, D, {
68
68
  kind: "accessor",
69
69
  name: "label",
70
70
  static: !1,
@@ -77,7 +77,7 @@ var g = 0, _ = d, v = {
77
77
  }
78
78
  },
79
79
  metadata: t
80
- }, k, A), e(this, null, j, {
80
+ }, O, k), e(this, null, A, {
81
81
  kind: "accessor",
82
82
  name: "disableLabelHighlight",
83
83
  static: !1,
@@ -90,7 +90,7 @@ var g = 0, _ = d, v = {
90
90
  }
91
91
  },
92
92
  metadata: t
93
- }, M, N), e(this, null, P, {
93
+ }, j, M), e(this, null, N, {
94
94
  kind: "accessor",
95
95
  name: "_highlightString",
96
96
  static: !1,
@@ -103,7 +103,7 @@ var g = 0, _ = d, v = {
103
103
  }
104
104
  },
105
105
  metadata: t
106
- }, F, I), e(this, null, L, {
106
+ }, P, F), e(this, null, I, {
107
107
  kind: "accessor",
108
108
  name: "_inertAriaGroups",
109
109
  static: !1,
@@ -116,7 +116,7 @@ var g = 0, _ = d, v = {
116
116
  }
117
117
  },
118
118
  metadata: t
119
- }, R, z), t && Object.defineProperty(this, Symbol.metadata, {
119
+ }, L, R), t && Object.defineProperty(this, Symbol.metadata, {
120
120
  enumerable: !0,
121
121
  configurable: !0,
122
122
  writable: !0,
@@ -184,14 +184,14 @@ var g = 0, _ = d, v = {
184
184
  this.#a = e;
185
185
  }
186
186
  constructor() {
187
- super(), this._value = (t(this, y), null), this.#e = t(this, C, !1), this.#t = (t(this, w), t(this, E, "")), this.#n = (t(this, D), t(this, k, void 0)), this.#r = (t(this, A), t(this, M, !1)), this.#i = (t(this, N), t(this, F, null)), this.#a = (t(this, I), t(this, R, !1)), this._previousSize = (t(this, z), null), this.addEventListener?.("click", (e) => this.selectByClick(e), { passive: !0 }), this.addController(new h(this, {
188
- config: v,
187
+ super(), this._value = (t(this, v), null), this.#e = t(this, S, !1), this.#t = (t(this, C), t(this, T, "")), this.#n = (t(this, E), t(this, O, void 0)), this.#r = (t(this, k), t(this, j, !1)), this.#i = (t(this, M), t(this, P, null)), this.#a = (t(this, F), t(this, L, !1)), this._previousSize = (t(this, R), null), this.addEventListener?.("click", (e) => this.selectByClick(e), { passive: !0 }), this.addController(new h(this, {
188
+ config: _,
189
189
  callback: () => {
190
190
  this.handleHighlightState(), this.dispatchEvent(new Event("optionLabelChanged", { bubbles: !0 }));
191
191
  }
192
192
  })), this.addController(new c(this, () => this.closest("sbb-autocomplete, sbb-autocomplete-grid"), { negative: (e) => this.toggleState("negative", e.negative) })), this.addController(new c(this, () => this.closest("sbb-autocomplete, sbb-autocomplete-grid, sbb-select"), { size: (e) => {
193
193
  this._previousSize && this.internals.states.delete(`size-${this._previousSize}`), this._previousSize = e.size, this._previousSize && this.internals.states.add(`size-${this._previousSize}`);
194
- } })), _ && (this.hydrationRequired ? this.hydrationComplete.then(() => this._inertAriaGroups = _) : this._inertAriaGroups = _);
194
+ } })), g && (this.hydrationRequired ? this.hydrationComplete.then(() => this._inertAriaGroups = g) : this._inertAriaGroups = g);
195
195
  }
196
196
  attributeChangedCallback(e, t, n) {
197
197
  (e !== "value" || t !== n) && super.attributeChangedCallback(e, t, n);
@@ -205,9 +205,6 @@ var g = 0, _ = d, v = {
205
205
  composed: !0
206
206
  }));
207
207
  }
208
- connectedCallback() {
209
- super.connectedCallback(), this.id ||= `${this.optionId}-${g++}`;
210
- }
211
208
  requestUpdate(e, t, n) {
212
209
  super.requestUpdate(e, t, n), (e === "disabled" || e === "disabledFromGroup") && (this.toggleState("disabled", this.disabled || this.disabledFromGroup), p(this, "tabindex", l && !this.disabled && !this.disabledFromGroup ? 0 : null), this.updateAriaDisabled());
213
210
  }
@@ -271,4 +268,4 @@ var g = 0, _ = d, v = {
271
268
  };
272
269
  })();
273
270
  //#endregion
274
- export { y as SbbOptionBaseElement };
271
+ export { v as SbbOptionBaseElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../option.component-DiH8AMlV.js";
1
+ import { t as e } from "../../option.component-BgcpoHWM.js";
2
2
  export { e as SbbOptionElement };
@@ -29,7 +29,7 @@ var o = ":host{--sbb-focus-outline-offset: var(--sbb-option-focus-outline-offset
29
29
  return this._variantInternal ?? null;
30
30
  }
31
31
  constructor() {
32
- super(), this.optionId = "sbb-option", this.addController(new i(this, () => this.closest("sbb-optgroup"), {
32
+ super(), this.addController(new i(this, () => this.closest("sbb-optgroup"), {
33
33
  disabled: (e) => this.disabledFromGroup = e.disabled,
34
34
  label: (e) => this.groupLabel = e.label
35
35
  })), this.addController(new i(this, () => this.closest("sbb-select"), {
package/option.js CHANGED
@@ -3,7 +3,7 @@ import { SbbOptGroupElement as t } from "./option/optgroup/optgroup.component.js
3
3
  import { t as n } from "./option-hint.component-NSxCKXEy.js";
4
4
  import { t as r } from "./option-styles-DcD5grSB.js";
5
5
  import { SbbOptionBaseElement as i } from "./option/option/option-base-element.js";
6
- import { t as a } from "./option.component-DiH8AMlV.js";
6
+ import { t as a } from "./option.component-BgcpoHWM.js";
7
7
  import "./option.pure.js";
8
8
  t.define(), a.define(), n.define();
9
9
  //#endregion
package/option.pure.js CHANGED
@@ -3,5 +3,5 @@ import { SbbOptGroupElement as t } from "./option/optgroup/optgroup.component.js
3
3
  import { t as n } from "./option-hint.component-NSxCKXEy.js";
4
4
  import { t as r } from "./option-styles-DcD5grSB.js";
5
5
  import { SbbOptionBaseElement as i } from "./option/option/option-base-element.js";
6
- import { t as a } from "./option.component-DiH8AMlV.js";
6
+ import { t as a } from "./option.component-BgcpoHWM.js";
7
7
  export { t as SbbOptGroupElement, e as SbbOptgroupBaseElement, i as SbbOptionBaseElement, a as SbbOptionElement, n as SbbOptionHintElement, r as optionPanelStyles };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-dev",
3
- "version": "5.0.0-next.3-dev.1779298726",
3
+ "version": "5.0.0-next.3-dev.1779349365",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
- "https://github.com/sbb-design-systems/lyne-components/commit/b400de9b7b5bfe14268d0e98e921a24df81ae479"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/23b896527679e297aaa67aaf5193766c5cb521a0"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../select.component-UcWSndDu.js";
1
+ import { t as e } from "../select.component-CDv5tSW6.js";
2
2
  export { e as SbbSelectElement };
@@ -438,14 +438,14 @@ var ie = ":host{--sbb-select-placeholder-fallback-color: var(--sbb-color-metal);
438
438
  this._setActiveElement(i, a), this.multiple ? e?.shiftKey && i.selectViaUserInteraction(!i.selected) : this._setSelectedElement(i, a), this._activeItemIndex = r;
439
439
  }
440
440
  _setActiveElement(e, t = null, n = !0) {
441
- e.setActive(!0), e.scrollIntoView({ block: "nearest" }), n && this._triggerElement?.setAttribute("aria-activedescendant", e.id), t && !this.compareWith(t.value, e.value) && t.setActive(!1);
441
+ e.setActive(!0), e.scrollIntoView({ block: "nearest" }), n && (this._triggerElement.ariaActiveDescendantElement = e), t && !this.compareWith(t.value, e.value) && t.setActive(!1);
442
442
  }
443
443
  _setSelectedElement(e, t) {
444
444
  e.selectViaUserInteraction(!0), t && !this.compareWith(t.value, e.value) && t.selectViaUserInteraction(!1);
445
445
  }
446
446
  _resetActiveElement() {
447
447
  let e = this._selectableOptions()[this._activeItemIndex];
448
- e && e.setActive(!1), this._activeItemIndex = -1, this._triggerElement?.removeAttribute("aria-activedescendant");
448
+ e && e.setActive(!1), this._activeItemIndex = -1, this._triggerElement && (this._triggerElement.ariaActiveDescendantElement = null);
449
449
  }
450
450
  _updateOptionsFromValue() {
451
451
  let e = Array.isArray(this.value) ? this.value : [this.value], t = [];
package/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./select.component-UcWSndDu.js";
1
+ import { t as e } from "./select.component-CDv5tSW6.js";
2
2
  import "./select.pure.js";
3
3
  //#region src/elements/select.ts
4
4
  e.define();
package/select.pure.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./select.component-UcWSndDu.js";
1
+ import { t as e } from "./select.component-CDv5tSW6.js";
2
2
  export { e as SbbSelectElement };