@sbb-esta/lyne-elements-dev 4.10.0-dev.1775571887 → 4.10.0-dev.1775575188

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.
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../calendar.component-DhmaJt2k.js";
1
+ import { n as e, t } from "../../calendar.component-DjQOyRGl.js";
2
2
  export { t as SbbCalendarElement, e as SbbMonthChangeEvent };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../calendar.component-DhmaJt2k.js";
1
+ import { n as e, t } from "../calendar.component-DjQOyRGl.js";
2
2
  t.define(), console.warn("The entrypoint '@sbb-esta/elements/calendar/calendar.js' has been deprecated.\nUse either '@sbb-esta/elements/calendar.js' or '@sbb-esta/elements/calendar.pure.js' instead.");
3
3
  //#endregion
4
4
  export { t as SbbCalendarElement, e as SbbMonthChangeEvent };
@@ -443,12 +443,12 @@ var w = class extends Event {
443
443
  };
444
444
  }
445
445
  _getWeek(e) {
446
- let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), 1, 1), n = this._dateAdapter.getDayOfWeek(t), r = [
446
+ let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), 1, 1), n = this._dateAdapter.getDayOfWeek(t), r = +!![
447
447
  pe,
448
448
  ge,
449
449
  _e,
450
450
  he
451
- ].includes(n) ? 1 : 0, i = this._dateAdapter.addCalendarDays(t, this._dateAdapter.getFirstWeekOffset(t) * -1);
451
+ ].includes(n), i = this._dateAdapter.addCalendarDays(t, this._dateAdapter.getFirstWeekOffset(t) * -1);
452
452
  for (; this._dateAdapter.compareDate(i, e) <= 0;) {
453
453
  let n = this._dateAdapter.addCalendarDays(i, 6);
454
454
  if (this._dateAdapter.compareDate(e, n) <= 0) return r > 0 ? r : this._getWeek(this._dateAdapter.addCalendarDays(t, -1));
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-DhmaJt2k.js";
6
+ import { n as a, t as o } from "./calendar.component-DjQOyRGl.js";
7
7
  import "./calendar.pure.js";
8
8
  o.define(), e.define(), t.define(), n.define(), r.define(), i.define();
9
9
  //#endregion
package/calendar.pure.js CHANGED
@@ -3,5 +3,5 @@ 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-DhmaJt2k.js";
6
+ import { n as a, t as o } from "./calendar.component-DjQOyRGl.js";
7
7
  export { e as SbbCalendarDayElement, o as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbMonthChangeEvent };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-dev",
3
- "version": "4.10.0-dev.1775571887",
3
+ "version": "4.10.0-dev.1775575188",
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/bd5a2678a3732e02dbdbcfe646dda7223075d9cc"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/5458859d6eef8deaa4c2e3902d9247516aad6ae1"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {