@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776636016 → 5.0.0-next-dev.1776664264

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 (31) hide show
  1. package/autocomplete/autocomplete.component.js +2 -1
  2. package/calendar/calendar/calendar.component.js +1 -1
  3. package/{calendar.component-D6mdi1Q3.js → calendar.component-ZyfTrKs_.js} +2 -2
  4. package/calendar.js +1 -1
  5. package/calendar.pure.js +1 -1
  6. package/core/controllers/overlay-position-controller.js +4 -1
  7. package/custom-elements.json +714 -714
  8. package/development/autocomplete/autocomplete.component.js +3 -2
  9. package/development/calendar/calendar/calendar.component.js +1 -1
  10. package/development/{calendar.component-CByyksy8.js → calendar.component-C2WJuFrr.js} +3 -2
  11. package/development/calendar.js +1 -1
  12. package/development/calendar.pure.js +1 -1
  13. package/development/clock.component-EqFTxYod.js +1 -1
  14. package/development/core/controllers/overlay-position-controller.js +3 -2
  15. package/development/form-field/form-field/form-field.component.js +1 -1
  16. package/development/{form-field.component-DGOrnYkc.js → form-field.component-BHMh3V6s.js} +3 -2
  17. package/development/form-field.js +1 -1
  18. package/development/form-field.pure.js +1 -1
  19. package/development/toast/toast.component.js +1 -1
  20. package/development/{toast.component-Cy13egVy.js → toast.component-lPPTFudM.js} +3 -2
  21. package/development/toast.js +1 -1
  22. package/development/toast.pure.js +1 -1
  23. package/form-field/form-field/form-field.component.js +1 -1
  24. package/{form-field.component-Do5eratI.js → form-field.component-D8qiPCgJ.js} +2 -1
  25. package/form-field.js +1 -1
  26. package/form-field.pure.js +1 -1
  27. package/package.json +2 -2
  28. package/toast/toast.component.js +1 -1
  29. package/{toast.component-BY72fOXh.js → toast.component-ccBpQmCC.js} +2 -2
  30. package/toast.js +1 -1
  31. package/toast.pure.js +1 -1
@@ -37,7 +37,8 @@ var i = 0, a = n, o = class extends e {
37
37
  this.activeOption = null;
38
38
  return;
39
39
  }
40
- this.activeOption = n[t(e, this.activeOption ? n.indexOf(this.activeOption) : -1, n.length)], this.activeOption.setActive(!0), this.triggerElement?.setAttribute("aria-activedescendant", this.activeOption.id), this.activeOption.scrollIntoView({ block: "nearest" }), e && e.preventDefault(), this.autoSelectActiveOption && e && this.setPendingSelection(this.activeOption);
40
+ let r = t(e, this.activeOption ? n.indexOf(this.activeOption) : -1, n.length);
41
+ this.activeOption = n[r], this.activeOption.setActive(!0), this.triggerElement?.setAttribute("aria-activedescendant", this.activeOption.id), this.activeOption.scrollIntoView({ block: "nearest" }), e && e.preventDefault(), this.autoSelectActiveOption && e && this.setPendingSelection(this.activeOption);
41
42
  }
42
43
  resetActiveElement() {
43
44
  this.activeOption?.setActive(!1), this.triggerElement?.removeAttribute("aria-activedescendant"), this.activeOption = null;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../calendar.component-D6mdi1Q3.js";
1
+ import { n as e, t } from "../../calendar.component-ZyfTrKs_.js";
2
2
  export { t as SbbCalendarElement, e as SbbMonthChangeEvent };
@@ -495,8 +495,8 @@ var De = ":host{display:block;width:max-content;--sbb-calendar-cell-size: 2.75re
495
495
  } else (!this._selected || this._dateAdapter.compareDate(this._selected, e) !== 0) && (this._selected = e, this._emitDateSelectedEvent(this._dateAdapter.deserialize(e)));
496
496
  }
497
497
  _selectMultipleDates(e) {
498
- let t = this._cells.filter((e) => !e.disabled).map((e) => this._mapValueToISODate(e.value)), n = e.map((e) => e.value).filter((e) => t.includes(e)), r = new Set(n), i = new Set(this._selected.map((e) => this._dateAdapter.toIso8601(e)));
499
- this._selected = this._updateSelectedWithMultipleDates(n, r, i).map((e) => this._dateAdapter.deserialize(e)), this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
498
+ let t = this._cells.filter((e) => !e.disabled).map((e) => this._mapValueToISODate(e.value)), n = e.map((e) => e.value).filter((e) => t.includes(e)), r = new Set(n), i = new Set(this._selected.map((e) => this._dateAdapter.toIso8601(e))), a = this._updateSelectedWithMultipleDates(n, r, i);
499
+ this._selected = a.map((e) => this._dateAdapter.deserialize(e)), this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
500
500
  }
501
501
  _emitDateSelectedEvent(e) {
502
502
  this.dispatchEvent(new CustomEvent("dateselected", {
package/calendar.js CHANGED
@@ -3,7 +3,7 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
3
3
  import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
4
4
  import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
5
5
  import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
6
- import { n as a, t as o } from "./calendar.component-D6mdi1Q3.js";
6
+ import { n as a, t as o } from "./calendar.component-ZyfTrKs_.js";
7
7
  import { n as s, t as c } from "./calendar-cell-base-element-Bip0m9Wr.js";
8
8
  import "./calendar.pure.js";
9
9
  o.define(), e.define(), t.define(), n.define(), r.define(), i.define();
package/calendar.pure.js CHANGED
@@ -3,6 +3,6 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
3
3
  import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
4
4
  import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
5
5
  import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
6
- import { n as a, t as o } from "./calendar.component-D6mdi1Q3.js";
6
+ import { n as a, t as o } from "./calendar.component-ZyfTrKs_.js";
7
7
  import { n as s, t as c } from "./calendar-cell-base-element-Bip0m9Wr.js";
8
8
  export { c as SbbCalendarCellBaseElement, e as SbbCalendarDayElement, o as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbMonthChangeEvent, s as calendarCellBaseStyle };
@@ -210,7 +210,10 @@ var a = 0, o = class {
210
210
  this._lastPosition = e, this._overlay.style.left = `${t}px`, this._overlay.style.top = `${n}px`;
211
211
  }
212
212
  _readPositionsFromCss() {
213
- this._usePolyfill && (this._overlayStyles ??= getComputedStyle(this._overlay), this._positions = [this._overlayStyles.getPropertyValue("--sbb-overlay-position-area") || "block-end", ...this._overlayStyles.getPropertyValue("--sbb-overlay-position-try-fallbacks").split(",").map((e) => e.trim()).filter((e) => !!e)], this._lastPosition && !this._positions.includes(this._lastPosition) && (this._lastPosition = void 0));
213
+ if (!this._usePolyfill) return;
214
+ this._overlayStyles ??= getComputedStyle(this._overlay);
215
+ let e = [this._overlayStyles.getPropertyValue("--sbb-overlay-position-area") || "block-end", ...this._overlayStyles.getPropertyValue("--sbb-overlay-position-try-fallbacks").split(",").map((e) => e.trim()).filter((e) => !!e)];
216
+ this._positions = e, this._lastPosition && !this._positions.includes(this._lastPosition) && (this._lastPosition = void 0);
214
217
  }
215
218
  };
216
219
  //#endregion