@sbb-esta/lyne-elements-dev 4.9.0-dev.1774871546 → 4.9.0-dev.1774887348

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-Dk8Xun-b.js";
1
+ import { n as e, t } from "../../calendar.component-BRIW9HVu.js";
2
2
  export { t as SbbCalendarElement, e as SbbMonthChangeEvent };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../calendar.component-Dk8Xun-b.js";
1
+ import { n as e, t } from "../calendar.component-BRIW9HVu.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 };
@@ -2,124 +2,25 @@ import { __esDecorate as e, __runInitializers as t } from "tslib";
2
2
  import { css as n, html as r, isServer as i, nothing as a } from "lit";
3
3
  import { property as o, state as s } from "lit/decorators.js";
4
4
  import { SbbElement as c } from "./core/base-elements.js";
5
- import { forceType as l, handleDistinctChange as u, plainDate as d } from "./core/decorators.js";
6
- import { boxSizingStyles as ee } from "./core/styles.js";
7
- import { SbbSecondaryButtonElement as f } from "./button.pure.js";
8
- import { SbbLanguageController as te, SbbMediaMatcherController as ne, SbbMediaQueryBreakpointLargeAndAbove as p } from "./core/controllers.js";
9
- import { i18nCalendarDateSelection as m, i18nCalendarWeekNumber as h, i18nNextMonth as re, i18nNextYear as ie, i18nNextYearRange as ae, i18nPreviousMonth as oe, i18nPreviousYear as se, i18nPreviousYearRange as ce, i18nYearMonthSelection as le } from "./core/i18n.js";
5
+ import { forceType as l, handleDistinctChange as ee, plainDate as u } from "./core/decorators.js";
6
+ import { boxSizingStyles as te } from "./core/styles.js";
7
+ import { SbbSecondaryButtonElement as d } from "./button.pure.js";
8
+ import { SbbLanguageController as ne, SbbMediaMatcherController as re, SbbMediaQueryBreakpointLargeAndAbove as f } from "./core/controllers.js";
9
+ import { i18nCalendarDateSelection as p, i18nCalendarWeekNumber as m, i18nNextMonth as ie, i18nNextYear as ae, i18nNextYearRange as oe, i18nPreviousMonth as se, i18nPreviousYear as ce, i18nPreviousYearRange as le, i18nYearMonthSelection as ue } from "./core/i18n.js";
10
10
  import "./icon.js";
11
- import { isArrowKeyOrPageKeysPressed as ue } from "./core/a11y.js";
12
- import { readConfig as de } from "./core/config.js";
13
- import { DAYS_PER_ROW as g, MONTHS_PER_PAGE as fe, MONTHS_PER_ROW as _, YEARS_PER_PAGE as v, YEARS_PER_ROW as y, defaultDateAdapter as pe } from "./core/datetime.js";
14
- import { SbbCalendarDayElement as b } from "./calendar/calendar-day/calendar-day.component.js";
15
- import { SbbCalendarMonthElement as x } from "./calendar/calendar-month/calendar-month.component.js";
16
- import { SbbCalendarWeekdayElement as S } from "./calendar/calendar-weekday/calendar-weekday.component.js";
17
- import { SbbCalendarWeeknumberElement as C } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
18
- import { SbbCalendarYearElement as w } from "./calendar/calendar-year/calendar-year.component.js";
11
+ import { isArrowKeyOrPageKeysPressed as de } from "./core/a11y.js";
12
+ import { readConfig as fe } from "./core/config.js";
13
+ import { DAYS_PER_ROW as h, MONDAY as pe, MONTHS_PER_PAGE as me, MONTHS_PER_ROW as g, THURSDAY as he, TUESDAY as ge, WEDNESDAY as _e, YEARS_PER_PAGE as _, YEARS_PER_ROW as v, defaultDateAdapter as ve } from "./core/datetime.js";
14
+ import { SbbCalendarDayElement as y } from "./calendar/calendar-day/calendar-day.component.js";
15
+ import { SbbCalendarMonthElement as b } from "./calendar/calendar-month/calendar-month.component.js";
16
+ import { SbbCalendarWeekdayElement as x } from "./calendar/calendar-weekday/calendar-weekday.component.js";
17
+ import { SbbCalendarWeeknumberElement as S } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
18
+ import { SbbCalendarYearElement as C } from "./calendar/calendar-year/calendar-year.component.js";
19
19
  import "./screen-reader-only.js";
20
- //#region node_modules/date-fns/constants.js
21
- var T = 365.2425, E = 6048e5, D = 3600 * 24;
22
- D * 7, D * T / 12 * 3;
23
- var O = Symbol.for("constructDateFrom");
24
- //#endregion
25
- //#region node_modules/date-fns/constructFrom.js
26
- function k(e, t) {
27
- return typeof e == "function" ? e(t) : e && typeof e == "object" && O in e ? e[O](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
28
- }
29
- //#endregion
30
- //#region node_modules/date-fns/toDate.js
31
- function A(e, t) {
32
- return k(t || e, e);
33
- }
34
- //#endregion
35
- //#region node_modules/date-fns/addDays.js
36
- function j(e, t, n) {
37
- let r = A(e, n?.in);
38
- return isNaN(t) ? k(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
39
- }
40
- //#endregion
41
- //#region node_modules/date-fns/_lib/defaultOptions.js
42
- var M = {};
43
- function N() {
44
- return M;
45
- }
46
- //#endregion
47
- //#region node_modules/date-fns/startOfWeek.js
48
- function P(e, t) {
49
- let n = N(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = A(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
50
- return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
51
- }
52
- //#endregion
53
- //#region node_modules/date-fns/_lib/normalizeDates.js
54
- function F(e, ...t) {
55
- let n = k.bind(null, e || t.find((e) => typeof e == "object"));
56
- return t.map(n);
57
- }
58
- //#endregion
59
- //#region node_modules/date-fns/addWeeks.js
60
- function I(e, t, n) {
61
- return j(e, t * 7, n);
62
- }
63
- //#endregion
64
- //#region node_modules/date-fns/endOfMonth.js
65
- function me(e, t) {
66
- let n = A(e, t?.in), r = n.getMonth();
67
- return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
68
- }
69
- //#endregion
70
- //#region node_modules/date-fns/_lib/normalizeInterval.js
71
- function L(e, t) {
72
- let [n, r] = F(e, t.start, t.end);
73
- return {
74
- start: n,
75
- end: r
76
- };
77
- }
78
- //#endregion
79
- //#region node_modules/date-fns/eachWeekOfInterval.js
80
- function he(e, t) {
81
- let { start: n, end: r } = L(t?.in, e), i = +n > +r, a = P(i ? r : n, t), o = P(i ? n : r, t);
82
- a.setHours(15), o.setHours(15);
83
- let s = +o.getTime(), c = a, l = t?.step ?? 1;
84
- if (!l) return [];
85
- l < 0 && (l = -l, i = !i);
86
- let u = [];
87
- for (; +c <= s;) c.setHours(0), u.push(k(n, c)), c = I(c, l), c.setHours(15);
88
- return i ? u.reverse() : u;
89
- }
90
- //#endregion
91
- //#region node_modules/date-fns/startOfMonth.js
92
- function ge(e, t) {
93
- let n = A(e, t?.in);
94
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
95
- }
96
- //#endregion
97
- //#region node_modules/date-fns/getWeekYear.js
98
- function R(e, t) {
99
- let n = A(e, t?.in), r = n.getFullYear(), i = N(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = k(t?.in || e, 0);
100
- o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
101
- let s = P(o, t), c = k(t?.in || e, 0);
102
- c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
103
- let l = P(c, t);
104
- return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
105
- }
106
- //#endregion
107
- //#region node_modules/date-fns/startOfWeekYear.js
108
- function z(e, t) {
109
- let n = N(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = R(e, t), a = k(t?.in || e, 0);
110
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), P(a, t);
111
- }
112
- //#endregion
113
- //#region node_modules/date-fns/getWeek.js
114
- function B(e, t) {
115
- let n = A(e, t?.in), r = P(n, t) - +z(n, t);
116
- return Math.round(r / E) + 1;
117
- }
118
- //#endregion
119
20
  //#region src/elements/calendar/calendar/calendar.scss?lit&inline
120
- var _e = n`:host{display:block;width:max-content;--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-calendar-control-view-change-padding-inline);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-cell-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-cell-justify-content: center;--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg)}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}`;
121
- f.define(), b.define(), x.define(), w.define(), S.define(), C.define();
122
- var V = class extends Event {
21
+ var ye = n`:host{display:block;width:max-content;--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-calendar-control-view-change-padding-inline);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-cell-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-cell-justify-content: center;--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg)}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}`;
22
+ d.define(), y.define(), b.define(), C.define(), x.define(), S.define();
23
+ var w = class extends Event {
123
24
  get range() {
124
25
  return this._range;
125
26
  }
@@ -129,19 +30,19 @@ var V = class extends Event {
129
30
  composed: !0
130
31
  }), this._range = Object.freeze(e || []);
131
32
  }
132
- }, H = (() => {
133
- let n = c, f = [], b, x = [], S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I, L = [], R = [], z, H = [], U = [], W, G = [], K = [], q, J = [], Y = [], X, Z = [], Q = [], ve, ye, be = [], xe = [], Se, Ce = [], $ = [];
33
+ }, T = (() => {
34
+ let n = c, d = [], y, b = [], x = [], S, C = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I, be = [], L = [], R, z = [], B = [], V, H = [], U = [], W, G = [], K = [], q, J = [], Y = [], X, Z, Q = [], xe = [], Se, Ce = [], $ = [];
134
35
  return class extends n {
135
36
  static {
136
37
  let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
137
- b = [l(), o({ type: Boolean })], C = [o()], E = [d(), o()], k = [d(), o()], M = [
38
+ y = [l(), o({ type: Boolean })], S = [o()], E = [u(), o()], k = [u(), o()], M = [
138
39
  l(),
139
- u((e, t) => e._onMultipleChanged(t)),
40
+ ee((e, t) => e._onMultipleChanged(t)),
140
41
  o({ type: Boolean })
141
- ], F = [o()], I = [s()], z = [o({ attribute: "date-filter" })], W = [o({ reflect: !0 })], q = [l(), o({
42
+ ], F = [o()], I = [s()], R = [o({ attribute: "date-filter" })], V = [o({ reflect: !0 })], W = [l(), o({
142
43
  attribute: "week-numbers",
143
44
  type: Boolean
144
- })], X = [s()], ve = [s()], ye = [s()], Se = [s()], e(this, null, b, {
45
+ })], q = [s()], X = [s()], Z = [s()], Se = [s()], e(this, null, y, {
145
46
  kind: "accessor",
146
47
  name: "wide",
147
48
  static: !1,
@@ -154,7 +55,7 @@ var V = class extends Event {
154
55
  }
155
56
  },
156
57
  metadata: t
157
- }, x, S), e(this, null, C, {
58
+ }, b, x), e(this, null, S, {
158
59
  kind: "accessor",
159
60
  name: "view",
160
61
  static: !1,
@@ -167,7 +68,7 @@ var V = class extends Event {
167
68
  }
168
69
  },
169
70
  metadata: t
170
- }, w, T), e(this, null, E, {
71
+ }, C, T), e(this, null, E, {
171
72
  kind: "accessor",
172
73
  name: "min",
173
74
  static: !1,
@@ -218,7 +119,7 @@ var V = class extends Event {
218
119
  }
219
120
  },
220
121
  metadata: t
221
- }, null, f), e(this, null, I, {
122
+ }, null, d), e(this, null, I, {
222
123
  kind: "accessor",
223
124
  name: "_selected",
224
125
  static: !1,
@@ -231,7 +132,7 @@ var V = class extends Event {
231
132
  }
232
133
  },
233
134
  metadata: t
234
- }, L, R), e(this, null, z, {
135
+ }, be, L), e(this, null, R, {
235
136
  kind: "accessor",
236
137
  name: "dateFilter",
237
138
  static: !1,
@@ -244,7 +145,7 @@ var V = class extends Event {
244
145
  }
245
146
  },
246
147
  metadata: t
247
- }, H, U), e(this, null, W, {
148
+ }, z, B), e(this, null, V, {
248
149
  kind: "accessor",
249
150
  name: "orientation",
250
151
  static: !1,
@@ -257,7 +158,7 @@ var V = class extends Event {
257
158
  }
258
159
  },
259
160
  metadata: t
260
- }, G, K), e(this, null, q, {
161
+ }, H, U), e(this, null, W, {
261
162
  kind: "accessor",
262
163
  name: "weekNumbers",
263
164
  static: !1,
@@ -270,7 +171,7 @@ var V = class extends Event {
270
171
  }
271
172
  },
272
173
  metadata: t
273
- }, J, Y), e(this, null, X, {
174
+ }, G, K), e(this, null, q, {
274
175
  kind: "accessor",
275
176
  name: "_activeDate",
276
177
  static: !1,
@@ -283,7 +184,7 @@ var V = class extends Event {
283
184
  }
284
185
  },
285
186
  metadata: t
286
- }, Z, Q), e(this, null, ve, {
187
+ }, J, Y), e(this, null, X, {
287
188
  kind: "setter",
288
189
  name: "_wide",
289
190
  static: !1,
@@ -295,7 +196,7 @@ var V = class extends Event {
295
196
  }
296
197
  },
297
198
  metadata: t
298
- }, null, f), e(this, null, ye, {
199
+ }, null, d), e(this, null, Z, {
299
200
  kind: "accessor",
300
201
  name: "_calendarView",
301
202
  static: !1,
@@ -308,7 +209,7 @@ var V = class extends Event {
308
209
  }
309
210
  },
310
211
  metadata: t
311
- }, be, xe), e(this, null, Se, {
212
+ }, Q, xe), e(this, null, Se, {
312
213
  kind: "accessor",
313
214
  name: "_initialized",
314
215
  static: !1,
@@ -332,7 +233,7 @@ var V = class extends Event {
332
233
  this.elementName = "sbb-calendar";
333
234
  }
334
235
  static {
335
- this.styles = [ee, _e];
236
+ this.styles = [te, ye];
336
237
  }
337
238
  static {
338
239
  this.events = {
@@ -444,15 +345,15 @@ var V = class extends Event {
444
345
  this.#d = e;
445
346
  }
446
347
  constructor() {
447
- super(), this.#e = (t(this, f), t(this, x, !1)), this.#t = (t(this, S), t(this, w, "day")), this.#n = (t(this, T), t(this, D, null)), this.#r = (t(this, O), t(this, A, null)), this.#i = (t(this, j), t(this, N, !1)), this.#a = (t(this, P), t(this, L, null)), this.#o = (t(this, R), t(this, H, null)), this.#s = (t(this, U), t(this, G, "horizontal")), this.#c = (t(this, K), t(this, J, !1)), this._dateAdapter = (t(this, Y), de().datetime?.dateAdapter ?? pe), this.#l = t(this, Z, this._dateAdapter.today()), this._wideInternal = (t(this, Q), !1), this.#u = t(this, be, "day"), this._nextCalendarView = (t(this, xe), "day"), this._keyboardNavigationDayViewParameters = {
348
+ super(), this.#e = (t(this, d), t(this, b, !1)), this.#t = (t(this, x), t(this, C, "day")), this.#n = (t(this, T), t(this, D, null)), this.#r = (t(this, O), t(this, A, null)), this.#i = (t(this, j), t(this, N, !1)), this.#a = (t(this, P), t(this, be, null)), this.#o = (t(this, L), t(this, z, null)), this.#s = (t(this, B), t(this, H, "horizontal")), this.#c = (t(this, U), t(this, G, !1)), this._dateAdapter = (t(this, K), fe().datetime?.dateAdapter ?? ve), this.#l = t(this, J, this._dateAdapter.today()), this._wideInternal = (t(this, Y), !1), this.#u = t(this, Q, "day"), this._nextCalendarView = (t(this, xe), "day"), this._keyboardNavigationDayViewParameters = {
448
349
  firstDayInView: null,
449
350
  lastDayInView: null,
450
351
  firstMonthOffset: 0,
451
352
  firstMonthLength: 0,
452
353
  secondMonthOffset: 0
453
- }, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this.#d = t(this, Ce, !1), this._language = (t(this, $), new te(this).withHandler(() => {
354
+ }, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this.#d = t(this, Ce, !1), this._language = (t(this, $), new ne(this).withHandler(() => {
454
355
  this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
455
- })), this._mediaMatcher = new ne(this, { [p]: () => this._init() }), this._onSlotChange = () => {
356
+ })), this._mediaMatcher = new re(this, { [f]: () => this._init() }), this._onSlotChange = () => {
456
357
  this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
457
358
  }, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1), this.addEventListener("click", (e) => {
458
359
  let t = e.target.closest("sbb-calendar-day");
@@ -491,9 +392,9 @@ var V = class extends Event {
491
392
  this.hydrationComplete.then(() => this._init());
492
393
  return;
493
394
  }
494
- if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(p) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._weekNumbers = this._createWeekNumbers(this._activeDate), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
395
+ if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(f) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._weekNumbers = this._weeks.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
495
396
  let e = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
496
- this._nextMonthWeeks = this._createWeekRows(e, !0), this._nextMonthYears = this._createYearRows(v), this._nextMonthWeekNumbers = this._createWeekNumbers(e);
397
+ this._nextMonthWeeks = this._createWeekRows(e, !0), this._nextMonthYears = this._createYearRows(_), this._nextMonthWeekNumbers = this._nextMonthWeeks.flat().sort((e, t) => e.value.localeCompare(t.value)).map((e) => e.weekValue).filter((e, t, n) => n.indexOf(e) === t);
497
398
  }
498
399
  this._initialized = !0;
499
400
  }
@@ -508,15 +409,6 @@ var V = class extends Event {
508
409
  })), n = this._dateAdapter.getFirstDayOfWeek();
509
410
  this._weekdays = t.slice(n).concat(t.slice(0, n));
510
411
  }
511
- _createWeekNumbers(e) {
512
- return he({
513
- start: ge(e),
514
- end: me(e)
515
- }, { weekStartsOn: 1 }).map((e) => B(e, {
516
- weekStartsOn: 1,
517
- firstWeekContainsDate: 4
518
- }));
519
- }
520
412
  _createWeekRows(e, t = !1) {
521
413
  let n = this._dateAdapter.getNumDaysInMonth(e), r = this._dateAdapter.getFirstWeekOffset(e);
522
414
  return t ? (this._keyboardNavigationDayViewParameters.secondMonthOffset = r, this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), n))) : (this._keyboardNavigationDayViewParameters.firstMonthLength = n, this._keyboardNavigationDayViewParameters.firstMonthOffset = r, this._keyboardNavigationDayViewParameters.firstDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1)), this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), n))), this.orientation === "horizontal" ? this._createWeekRowsHorizontal(e, n, r) : this._createWeekRowsVertical(e, n, r);
@@ -524,36 +416,46 @@ var V = class extends Event {
524
416
  _createWeekRowsHorizontal(e, t, n) {
525
417
  let r = [[]];
526
418
  for (let i = 0, a = n; i < t; i++, a++) {
527
- a === g && (r.push([]), a = 0);
419
+ a === h && (r.push([]), a = 0);
528
420
  let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
529
421
  r[r.length - 1].push(this._mapDateToDay(t));
530
422
  }
531
423
  return r;
532
424
  }
533
425
  _createWeekRowsVertical(e, t, n) {
534
- let r = Array.from({ length: g }, () => []);
426
+ let r = Array.from({ length: h }, () => []);
535
427
  for (let i = 0, a = n; i < t; i++, a++) {
536
- a === g && (a = 0);
428
+ a === h && (a = 0);
537
429
  let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), i + 1);
538
430
  r[a].push(this._mapDateToDay(t));
539
431
  }
540
432
  return r;
541
433
  }
542
434
  _mapDateToDay(e) {
543
- let t = this._dateAdapter.toIso8601(e);
544
435
  return {
545
- value: t,
436
+ value: this._dateAdapter.toIso8601(e),
546
437
  dateValue: e,
547
438
  dayValue: String(this._dateAdapter.getDate(e)),
548
439
  monthValue: String(this._dateAdapter.getMonth(e)),
549
440
  yearValue: String(this._dateAdapter.getYear(e)),
550
- weekValue: B(t, {
551
- weekStartsOn: 1,
552
- firstWeekContainsDate: 4
553
- }),
441
+ weekValue: this._getWeek(e),
554
442
  weekDayValue: this._dateAdapter.getDayOfWeek(e)
555
443
  };
556
444
  }
445
+ _getWeek(e) {
446
+ let t = this._dateAdapter.createDate(this._dateAdapter.getYear(e), 1, 1), n = this._dateAdapter.getDayOfWeek(t), r = [
447
+ pe,
448
+ ge,
449
+ _e,
450
+ he
451
+ ].includes(n) ? 1 : 0, i = this._dateAdapter.addCalendarDays(t, this._dateAdapter.getFirstWeekOffset(t) * -1);
452
+ for (; this._dateAdapter.compareDate(i, e) <= 0;) {
453
+ let n = this._dateAdapter.addCalendarDays(i, 6);
454
+ if (this._dateAdapter.compareDate(e, n) <= 0) return r > 0 ? r : this._getWeek(this._dateAdapter.addCalendarDays(t, -1));
455
+ i = this._dateAdapter.addCalendarDays(i, h), r++;
456
+ }
457
+ throw Error("The provided date is invalid");
458
+ }
557
459
  _mapValueToISODate(e) {
558
460
  return typeof e == "string" ? e : this._dateAdapter.toIso8601(e);
559
461
  }
@@ -561,20 +463,20 @@ var V = class extends Event {
561
463
  let e = Array(12).fill(null).map((e, t) => ({
562
464
  value: String(t + 1).padStart(2, "0"),
563
465
  monthValue: t + 1
564
- })), t = 12 / _, n = [];
565
- for (let r = 0; r < t; r++) n.push(e.slice(_ * r, _ * (r + 1)));
466
+ })), t = 12 / g, n = [];
467
+ for (let r = 0; r < t; r++) n.push(e.slice(g * r, g * (r + 1)));
566
468
  this._months = n;
567
469
  }
568
470
  _createYearRows(e = 0) {
569
- let t = this._getStartValueYearView(), n = Array(v).fill(0).map((n, r) => t + e + r), r = v / y, i = [];
570
- for (let e = 0; e < r; e++) i.push(n.slice(y * e, y * (e + 1)));
471
+ let t = this._getStartValueYearView(), n = Array(_).fill(0).map((n, r) => t + e + r), r = _ / v, i = [];
472
+ for (let e = 0; e < r; e++) i.push(n.slice(v * e, v * (e + 1)));
571
473
  return i;
572
474
  }
573
475
  _getStartValueYearView() {
574
476
  let e = 0;
575
- this.max ? e = this._dateAdapter.getYear(this.max) - v + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
477
+ this.max ? e = this._dateAdapter.getYear(this.max) - _ + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
576
478
  let t = this._dateAdapter.getYear(this._activeDate);
577
- return t - ((t - e) % v + v) % v;
479
+ return t - ((t - e) % _ + _) % _;
578
480
  }
579
481
  _isDayInRange(e) {
580
482
  if (!this.min && !this.max) return !0;
@@ -603,7 +505,7 @@ var V = class extends Event {
603
505
  }
604
506
  _emitMonthChange() {
605
507
  let e = (this.wide ? [...this._weeks, ...this._nextMonthWeeks] : this._weeks).flat().sort((e, t) => e.value.localeCompare(t.value));
606
- this.dispatchEvent(new V(e));
508
+ this.dispatchEvent(new w(e));
607
509
  }
608
510
  _updateSelectedWithMultipleDates(e, t, n) {
609
511
  return e.every((e) => n.has(e)) ? t.forEach((e) => n.delete(e)) : t.forEach((e) => n.add(e)), Array.from(n);
@@ -690,7 +592,7 @@ var V = class extends Event {
690
592
  }
691
593
  }
692
594
  _handleKeyboardEvent(e, t) {
693
- ue(e) && e.preventDefault();
595
+ de(e) && e.preventDefault();
694
596
  let n = this._cells, r = n.findIndex((t) => t === e.target), i;
695
597
  i = t ? this._navigateByKeyboardDayView(e, r, n, t) : this._navigateByKeyboard(e, r, n);
696
598
  let a = (this._enhancedVariant ? document : this.shadowRoot).activeElement;
@@ -699,9 +601,9 @@ var V = class extends Event {
699
601
  _navigateByKeyboardDayView(e, t, n, r) {
700
602
  let i = this.orientation === "horizontal" ? {
701
603
  leftRight: 1,
702
- upDown: g
604
+ upDown: h
703
605
  } : {
704
- leftRight: g,
606
+ leftRight: h,
705
607
  upDown: 1
706
608
  }, a = t < this._keyboardNavigationDayViewParameters.firstMonthLength ? this._keyboardNavigationDayViewParameters.firstMonthOffset : this._keyboardNavigationDayViewParameters.secondMonthOffset;
707
609
  switch (e.key) {
@@ -710,17 +612,17 @@ var V = class extends Event {
710
612
  case "ArrowLeft": return this._findDayArrows(n, t, r.dateValue, -i.leftRight);
711
613
  case "ArrowRight": return this._findDayArrows(n, t, r.dateValue, i.leftRight);
712
614
  case "PageUp": if (this.orientation === "horizontal") {
713
- let e = (+r.dayValue % g || g) - +r.dayValue;
615
+ let e = (+r.dayValue % h || h) - +r.dayValue;
714
616
  return this._findDayPageUpDown(n, t, r, e, i.upDown);
715
617
  } else {
716
- let e = (Math.ceil((+r.dayValue + a) / g) - 1) * g - a + 1 - r.dayValue;
618
+ let e = (Math.ceil((+r.dayValue + a) / h) - 1) * h - a + 1 - r.dayValue;
717
619
  return this._findDayPageUpDown(n, t, r, e, i.upDown);
718
620
  }
719
621
  case "PageDown": if (this.orientation === "horizontal") {
720
- let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, a = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, o = this._dateAdapter.createDate(a, e, 1), s = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(o, -1)), c = Math.trunc((s - +r.dayValue) / g) * g;
622
+ let e = +r.monthValue + 1 > 12 ? 1 : +r.monthValue + 1, a = +r.monthValue + 1 > 12 ? +r.yearValue + 1 : +r.yearValue, o = this._dateAdapter.createDate(a, e, 1), s = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(o, -1)), c = Math.trunc((s - +r.dayValue) / h) * h;
721
623
  return this._findDayPageUpDown(n, t, r, c, -i.upDown);
722
624
  } else {
723
- let e = Math.ceil((+r.dayValue + a) / g) * g - a - +r.dayValue;
625
+ let e = Math.ceil((+r.dayValue + a) / h) * h - a - +r.dayValue;
724
626
  return this._findDayPageUpDown(n, t, r, e, -i.upDown);
725
627
  }
726
628
  case "Home": return this._findDayFirst(n, t, r, 1);
@@ -773,9 +675,9 @@ var V = class extends Event {
773
675
  }
774
676
  }
775
677
  _calculateParametersForKeyboardNavigation(e, t) {
776
- let n = t ? v : fe, r = Math.trunc(e / n) * n, i = r === 0 ? e : e - n;
678
+ let n = t ? _ : me, r = Math.trunc(e / n) * n, i = r === 0 ? e : e - n;
777
679
  return {
778
- verticalOffset: t ? y : _,
680
+ verticalOffset: t ? v : g,
779
681
  elementIndexForWideMode: i,
780
682
  offsetForWideMode: e - i,
781
683
  lastElementIndexForWideMode: r === 0 ? n : n * 2
@@ -810,7 +712,7 @@ var V = class extends Event {
810
712
  let e = this._wide ? this._dateAdapter.addCalendarMonths(this._activeDate, 1) : void 0;
811
713
  return r`
812
714
  <div class="sbb-calendar__controls">
813
- ${this._getArrow("left", () => this._goToDifferentMonth(-1), oe[this._language.current], this._previousMonthDisabled())}
715
+ ${this._getArrow("left", () => this._goToDifferentMonth(-1), se[this._language.current], this._previousMonthDisabled())}
814
716
  <div class="sbb-calendar__controls-month">
815
717
  ${this._createLabelForDayView(this._activeDate)}
816
718
  ${this._wide ? this._createLabelForDayView(e) : a}
@@ -818,7 +720,7 @@ var V = class extends Event {
818
720
  ${this._createAriaLabelForDayView(this._activeDate, e)}
819
721
  </sbb-screen-reader-only>
820
722
  </div>
821
- ${this._getArrow("right", () => this._goToDifferentMonth(1), re[this._language.current], this._nextMonthDisabled())}
723
+ ${this._getArrow("right", () => this._goToDifferentMonth(1), ie[this._language.current], this._nextMonthDisabled())}
822
724
  </div>
823
725
  <div class="sbb-calendar__table-overflow-break">
824
726
  <div class="sbb-calendar__table-container sbb-calendar__table-day-view">
@@ -839,7 +741,7 @@ var V = class extends Event {
839
741
  <button
840
742
  type="button"
841
743
  class="sbb-calendar__date-selection sbb-calendar__controls-change-date"
842
- aria-label="${le[this._language.current]} ${t}"
744
+ aria-label="${ue[this._language.current]} ${t}"
843
745
  @click=${() => {
844
746
  this._resetFocus = !0, this._nextCalendarView = "year", this._startTableTransition();
845
747
  }}
@@ -885,7 +787,7 @@ var V = class extends Event {
885
787
  </thead>
886
788
  <tbody class="sbb-calendar__table-body">
887
789
  ${e.map((e, n) => {
888
- let o = g - e.length;
790
+ let o = h - e.length;
889
791
  return n === 0 && o ? r`
890
792
  <tr>
891
793
  ${this.weekNumbers ? r`
@@ -900,7 +802,7 @@ var V = class extends Event {
900
802
  ></sbb-calendar-weeknumber>
901
803
  ` : r`
902
804
  <sbb-screen-reader-only
903
- >${`${h[this._language.current]} ${t[0]}`}</sbb-screen-reader-only
805
+ >${`${m[this._language.current]} ${t[0]}`}</sbb-screen-reader-only
904
806
  >
905
807
  <span aria-hidden="true">${t[0]}</span>
906
808
  `}
@@ -923,7 +825,7 @@ var V = class extends Event {
923
825
  ></sbb-calendar-weeknumber>
924
826
  ` : r`
925
827
  <sbb-screen-reader-only
926
- >${`${h[this._language.current]} ${t[n]}`}</sbb-screen-reader-only
828
+ >${`${m[this._language.current]} ${t[n]}`}</sbb-screen-reader-only
927
829
  >
928
830
  <span aria-hidden="true">${t[n]}</span>
929
831
  `}
@@ -961,7 +863,7 @@ var V = class extends Event {
961
863
  ></sbb-calendar-weeknumber>
962
864
  ` : r`
963
865
  <sbb-screen-reader-only
964
- >${`${h[this._language.current]} ${e}`}</sbb-screen-reader-only
866
+ >${`${m[this._language.current]} ${e}`}</sbb-screen-reader-only
965
867
  >
966
868
  <span aria-hidden="true">${e}</span>
967
869
  `}
@@ -1015,9 +917,9 @@ var V = class extends Event {
1015
917
  _renderMonthView() {
1016
918
  return r`
1017
919
  <div class="sbb-calendar__controls">
1018
- ${this._getArrow("left", () => this._goToDifferentYear(-1), se[this._language.current], this._previousYearDisabled())}
920
+ ${this._getArrow("left", () => this._goToDifferentYear(-1), ce[this._language.current], this._previousYearDisabled())}
1019
921
  <div class="sbb-calendar__controls-month">${this._createLabelForMonthView()}</div>
1020
- ${this._getArrow("right", () => this._goToDifferentYear(1), ie[this._language.current], this._nextYearDisabled())}
922
+ ${this._getArrow("right", () => this._goToDifferentYear(1), ae[this._language.current], this._nextYearDisabled())}
1021
923
  </div>
1022
924
  <div class="sbb-calendar__table-overflow-break">
1023
925
  <div class="sbb-calendar__table-container sbb-calendar__table-month-view">
@@ -1032,7 +934,7 @@ var V = class extends Event {
1032
934
  type="button"
1033
935
  id="sbb-calendar__month-selection"
1034
936
  class="sbb-calendar__controls-change-date"
1035
- aria-label=${`${m[this._language.current]} ${this._chosenYear}`}
937
+ aria-label=${`${p[this._language.current]} ${this._chosenYear}`}
1036
938
  @click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
1037
939
  >
1038
940
  ${this._chosenYear} ${this._wide ? ` - ${this._chosenYear + 1}` : a}
@@ -1048,7 +950,7 @@ var V = class extends Event {
1048
950
  >
1049
951
  ${this._wide ? r`<thead class="sbb-calendar__table-header" aria-hidden="true">
1050
952
  <tr>
1051
- <th class="sbb-calendar__table-header-cell" colspan=${_}>${t}</th>
953
+ <th class="sbb-calendar__table-header-cell" colspan=${g}>${t}</th>
1052
954
  </tr>
1053
955
  </thead>` : a}
1054
956
  <tbody class="sbb-calendar__table-body">
@@ -1076,9 +978,9 @@ var V = class extends Event {
1076
978
  _renderYearView() {
1077
979
  return r`
1078
980
  <div class="sbb-calendar__controls">
1079
- ${this._getArrow("left", () => this._goToDifferentYearRange(-v), ce(v)[this._language.current], this._previousYearRangeDisabled())}
981
+ ${this._getArrow("left", () => this._goToDifferentYearRange(-_), le(_)[this._language.current], this._previousYearRangeDisabled())}
1080
982
  <div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
1081
- ${this._getArrow("right", () => this._goToDifferentYearRange(v), ae(v)[this._language.current], this._nextYearRangeDisabled())}
983
+ ${this._getArrow("right", () => this._goToDifferentYearRange(_), oe(_)[this._language.current], this._nextYearRangeDisabled())}
1082
984
  </div>
1083
985
  <div class="sbb-calendar__table-overflow-break">
1084
986
  <div class="sbb-calendar__table-container sbb-calendar__table-year-view">
@@ -1105,7 +1007,7 @@ var V = class extends Event {
1105
1007
  type="button"
1106
1008
  id="sbb-calendar__year-selection"
1107
1009
  class="sbb-calendar__controls-change-date"
1108
- aria-label="${m[this._language.current]} ${n}"
1010
+ aria-label="${p[this._language.current]} ${n}"
1109
1011
  @click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
1110
1012
  >
1111
1013
  ${n}
@@ -1159,4 +1061,4 @@ var V = class extends Event {
1159
1061
  };
1160
1062
  })();
1161
1063
  //#endregion
1162
- export { V as n, H as t };
1064
+ export { w as n, T as t };
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-Dk8Xun-b.js";
6
+ import { n as a, t as o } from "./calendar.component-BRIW9HVu.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-Dk8Xun-b.js";
6
+ import { n as a, t as o } from "./calendar.component-BRIW9HVu.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 };