@sbb-esta/lyne-elements 0.52.1 → 0.52.2

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 (71) hide show
  1. package/accordion.js +54 -54
  2. package/action-group.js +3 -3
  3. package/alert/alert-group.js +22 -22
  4. package/alert/alert.js +22 -22
  5. package/autocomplete.js +126 -126
  6. package/breadcrumb/breadcrumb-group.js +60 -60
  7. package/breadcrumb/breadcrumb.js +17 -17
  8. package/calendar.js +423 -423
  9. package/card/card-badge.js +17 -17
  10. package/card/card.js +2 -2
  11. package/card/common.js +30 -30
  12. package/checkbox/checkbox-group.js +17 -17
  13. package/checkbox/checkbox.js +34 -34
  14. package/clock.js +83 -83
  15. package/container/sticky-bar.js +16 -16
  16. package/core/a11y.js +91 -91
  17. package/core/base-elements.js +86 -86
  18. package/core/controllers.js +40 -40
  19. package/core/datetime.js +32 -32
  20. package/core/dom.js +26 -26
  21. package/core/eventing.js +33 -33
  22. package/core/mixins.js +122 -122
  23. package/core/testing.js +29 -29
  24. package/datepicker/common.js +55 -55
  25. package/datepicker/datepicker-toggle.js +94 -94
  26. package/datepicker/datepicker.js +144 -144
  27. package/dialog/dialog-title.js +20 -20
  28. package/dialog/dialog.js +66 -66
  29. package/expansion-panel/expansion-panel-header.js +20 -20
  30. package/expansion-panel/expansion-panel.js +60 -60
  31. package/file-selector.js +91 -91
  32. package/form-field/form-field-clear.js +12 -12
  33. package/form-field/form-field.js +111 -111
  34. package/header/header.js +53 -53
  35. package/icon.js +107 -107
  36. package/image.js +87 -87
  37. package/journey-header.js +29 -29
  38. package/map-container.js +23 -23
  39. package/menu/menu.js +91 -91
  40. package/navigation/common.js +16 -16
  41. package/navigation/navigation-marker.js +34 -34
  42. package/navigation/navigation-section.js +83 -83
  43. package/navigation/navigation.js +87 -87
  44. package/notification.js +52 -52
  45. package/option/optgroup.js +45 -45
  46. package/option/option.js +108 -108
  47. package/overlay.js +5 -5
  48. package/package.json +1 -1
  49. package/popover/popover.js +110 -110
  50. package/radio-button/radio-button-group.js +93 -93
  51. package/radio-button/radio-button.js +84 -84
  52. package/select.js +178 -178
  53. package/selection-panel.js +44 -44
  54. package/slider.js +58 -58
  55. package/status.js +6 -6
  56. package/stepper/step-label.js +19 -19
  57. package/stepper/step.js +31 -31
  58. package/stepper/stepper.js +46 -46
  59. package/tabs/tab-group.js +67 -67
  60. package/tag/tag-group.js +8 -8
  61. package/tag/tag.js +27 -27
  62. package/teaser-paid.js +12 -12
  63. package/time-input.js +73 -73
  64. package/timetable-occupancy-icon.js +26 -26
  65. package/timetable-occupancy.js +9 -9
  66. package/toast.js +38 -38
  67. package/toggle/toggle-option.js +33 -33
  68. package/toggle/toggle.js +46 -46
  69. package/train/train-formation.js +36 -36
  70. package/train/train-wagon.js +30 -30
  71. package/train/train.js +13 -13
@@ -1,122 +1,122 @@
1
- import { html as d } from "lit";
2
- import { property as o, state as b } from "lit/decorators.js";
3
- import { SbbButtonBaseElement as c } from "../core/base-elements.js";
4
- import { SbbConnectedAbortController as u, SbbLanguageController as m } from "../core/controllers.js";
5
- import { defaultDateAdapter as f } from "../core/datetime.js";
6
- import { i18nToday as g } from "../core/i18n.js";
7
- import { SbbNegativeMixin as p } from "../core/mixins.js";
8
- import { getDatePicker as E, datepickerControlRegisteredEventFactory as D } from "./datepicker.js";
1
+ import { html as o } from "lit";
2
+ import { property as h, state as b } from "lit/decorators.js";
3
+ import { SbbButtonBaseElement as u } from "../core/base-elements.js";
4
+ import { SbbConnectedAbortController as c, SbbLanguageController as _ } from "../core/controllers.js";
5
+ import { defaultDateAdapter as m } from "../core/datetime.js";
6
+ import { i18nToday as p } from "../core/i18n.js";
7
+ import { SbbNegativeMixin as A } from "../core/mixins.js";
8
+ import { getDatePicker as g, datepickerControlRegisteredEventFactory as f } from "./datepicker.js";
9
9
  import "../icon.js";
10
- var A = Object.defineProperty, l = (r, t, i, s) => {
11
- for (var e = void 0, a = r.length - 1, n; a >= 0; a--)
12
- (n = r[a]) && (e = n(t, i, e) || e);
13
- return e && A(t, i, e), e;
10
+ var D = Object.defineProperty, l = (r, t, i, a) => {
11
+ for (var e = void 0, s = r.length - 1, n; s >= 0; s--)
12
+ (n = r[s]) && (e = n(t, i, e) || e);
13
+ return e && D(t, i, e), e;
14
14
  };
15
- class h extends p(c) {
15
+ class d extends A(u) {
16
16
  constructor() {
17
- super(...arguments), this.boundary = null, this.e = !1, this.f = !1, this.datePickerElement = null, this.b = f, this.i = new u(this), this.g = new m(this).withHandler(() => this.c());
17
+ super(...arguments), this.boundary = null, this._disabled = !1, this._inputDisabled = !1, this.datePickerElement = null, this._dateAdapter = m, this._abort = new c(this), this._language = new _(this).withHandler(() => this._setAriaLabel());
18
18
  }
19
19
  connectedCallback() {
20
- super.connectedCallback(), this.addEventListener("click", () => this.j(), { signal: this.i.signal }), this.k(), this.datePicker || this.h();
20
+ super.connectedCallback(), this.addEventListener("click", () => this._handleClick(), { signal: this._abort.signal }), this._syncUpstreamProperties(), this.datePicker || this._init();
21
21
  }
22
22
  willUpdate(t) {
23
- super.willUpdate(t), t.has("datePicker") && this.h(this.datePicker);
23
+ super.willUpdate(t), t.has("datePicker") && this._init(this.datePicker);
24
24
  }
25
25
  disconnectedCallback() {
26
26
  var t;
27
- super.disconnectedCallback(), (t = this.a) == null || t.abort();
27
+ super.disconnectedCallback(), (t = this._datePickerController) == null || t.abort();
28
28
  }
29
29
  setDisabledState(t) {
30
30
  var e;
31
31
  const i = (e = t == null ? void 0 : t.getValueAsDate) == null ? void 0 : e.call(t);
32
32
  if (!i) {
33
- this.e = !0, this.d(!0);
33
+ this._disabled = !0, this._setDisabledRenderAttributes(!0);
34
34
  return;
35
35
  }
36
- const s = this.findAvailableDate(
36
+ const a = this.findAvailableDate(
37
37
  i,
38
38
  (t == null ? void 0 : t.dateFilter) || null,
39
- this.b,
39
+ this._dateAdapter,
40
40
  this.boundary
41
41
  );
42
- this.e = this.b.compareDate(s, i) === 0, this.d();
42
+ this._disabled = this._dateAdapter.compareDate(a, i) === 0, this._setDisabledRenderAttributes();
43
43
  }
44
- j() {
44
+ _handleClick() {
45
45
  if (!this.datePickerElement || this.hasAttribute("data-disabled"))
46
46
  return;
47
47
  const t = this.datePickerElement.getValueAsDate() ?? this.datePickerElement.now, i = this.findAvailableDate(
48
48
  t,
49
49
  this.datePickerElement.dateFilter,
50
- this.b,
50
+ this._dateAdapter,
51
51
  this.boundary
52
52
  );
53
- this.b.compareDate(i, t) !== 0 && this.datePickerElement.setValueAsDate(i);
53
+ this._dateAdapter.compareDate(i, t) !== 0 && this.datePickerElement.setValueAsDate(i);
54
54
  }
55
- k() {
56
- var i, s;
57
- const t = ((i = this.closest) == null ? void 0 : i.call(this, "sbb-form-field")) ?? ((s = this.closest) == null ? void 0 : s.call(this, "[data-form-field]"));
55
+ _syncUpstreamProperties() {
56
+ var i, a;
57
+ const t = ((i = this.closest) == null ? void 0 : i.call(this, "sbb-form-field")) ?? ((a = this.closest) == null ? void 0 : a.call(this, "[data-form-field]"));
58
58
  if (t) {
59
59
  this.negative = t.hasAttribute("negative");
60
60
  const e = t.querySelector("input");
61
- e && (this.f = e.hasAttribute("disabled") || e.hasAttribute("readonly"), this.d());
61
+ e && (this._inputDisabled = e.hasAttribute("disabled") || e.hasAttribute("readonly"), this._setDisabledRenderAttributes());
62
62
  }
63
63
  }
64
- h(t) {
65
- var i, s;
66
- if ((i = this.a) == null || i.abort(), this.a = new AbortController(), this.datePickerElement = E(this, t), this.setDisabledState(this.datePickerElement), !this.datePickerElement) {
67
- (s = this.parentElement) == null || s.addEventListener(
64
+ _init(t) {
65
+ var i, a;
66
+ if ((i = this._datePickerController) == null || i.abort(), this._datePickerController = new AbortController(), this.datePickerElement = g(this, t), this.setDisabledState(this.datePickerElement), !this.datePickerElement) {
67
+ (a = this.parentElement) == null || a.addEventListener(
68
68
  "inputUpdated",
69
- (e) => this.h(e.target),
70
- { once: !0, signal: this.a.signal }
69
+ (e) => this._init(e.target),
70
+ { once: !0, signal: this._datePickerController.signal }
71
71
  );
72
72
  return;
73
73
  }
74
- this.c(), this.datePickerElement.addEventListener(
74
+ this._setAriaLabel(), this.datePickerElement.addEventListener(
75
75
  "change",
76
76
  (e) => {
77
- this.setDisabledState(e.target), this.c();
77
+ this.setDisabledState(e.target), this._setAriaLabel();
78
78
  },
79
- { signal: this.a.signal }
79
+ { signal: this._datePickerController.signal }
80
80
  ), this.datePickerElement.addEventListener(
81
81
  "datePickerUpdated",
82
82
  (e) => {
83
- this.setDisabledState(e.target), this.c();
83
+ this.setDisabledState(e.target), this._setAriaLabel();
84
84
  },
85
- { signal: this.a.signal }
85
+ { signal: this._datePickerController.signal }
86
86
  ), this.datePickerElement.addEventListener(
87
87
  "inputUpdated",
88
88
  (e) => {
89
- this.f = !!(e.detail.disabled || e.detail.readonly), this.d(), this.c(), this.onInputUpdated(e);
89
+ this._inputDisabled = !!(e.detail.disabled || e.detail.readonly), this._setDisabledRenderAttributes(), this._setAriaLabel(), this.onInputUpdated(e);
90
90
  },
91
- { signal: this.a.signal }
92
- ), this.datePickerElement.dispatchEvent(D());
91
+ { signal: this._datePickerController.signal }
92
+ ), this.datePickerElement.dispatchEvent(f());
93
93
  }
94
- c() {
95
- var s, e, a;
96
- const t = (e = (s = this.datePickerElement) == null ? void 0 : s.getValueAsDate) == null ? void 0 : e.call(s);
97
- if (!t || !this.b.isValid(t)) {
98
- this.setAttribute("aria-label", this.i18nOffBoundaryDay[this.g.current]);
94
+ _setAriaLabel() {
95
+ var a, e, s;
96
+ const t = (e = (a = this.datePickerElement) == null ? void 0 : a.getValueAsDate) == null ? void 0 : e.call(a);
97
+ if (!t || !this._dateAdapter.isValid(t)) {
98
+ this.setAttribute("aria-label", this.i18nOffBoundaryDay[this._language.current]);
99
99
  return;
100
100
  }
101
- const i = ((a = this.datePickerElement) == null ? void 0 : a.now.toDateString()) === t.toDateString() ? g[this.g.current].toLowerCase() : this.b.getAccessibilityFormatDate(t);
101
+ const i = ((s = this.datePickerElement) == null ? void 0 : s.now.toDateString()) === t.toDateString() ? p[this._language.current].toLowerCase() : this._dateAdapter.getAccessibilityFormatDate(t);
102
102
  this.setAttribute(
103
103
  "aria-label",
104
- this.i18nSelectOffBoundaryDay(i)[this.g.current]
104
+ this.i18nSelectOffBoundaryDay(i)[this._language.current]
105
105
  );
106
106
  }
107
- d(t = this.e || this.f) {
107
+ _setDisabledRenderAttributes(t = this._disabled || this._inputDisabled) {
108
108
  this.toggleAttribute("data-disabled", t), t ? (this.setAttribute("aria-disabled", "true"), this.removeAttribute("tabindex")) : (this.removeAttribute("aria-disabled"), this.setAttribute("tabindex", "0"));
109
109
  }
110
110
  renderTemplate() {
111
- return d` <sbb-icon name=${this.iconName}></sbb-icon> `;
111
+ return o` <sbb-icon name=${this.iconName}></sbb-icon> `;
112
112
  }
113
113
  }
114
114
  l([
115
- o({ attribute: "date-picker" })
116
- ], h.prototype, "datePicker");
115
+ h({ attribute: "date-picker" })
116
+ ], d.prototype, "datePicker");
117
117
  l([
118
118
  b()
119
- ], h.prototype, "boundary");
119
+ ], d.prototype, "boundary");
120
120
  export {
121
- h as SbbDatepickerButton
121
+ d as SbbDatepickerButton
122
122
  };
@@ -1,147 +1,147 @@
1
- import { css as c, LitElement as g, isServer as b, html as p, nothing as f } from "lit";
2
- import { property as m, state as n, customElement as u } from "lit/decorators.js";
3
- import { ref as d } from "lit/directives/ref.js";
4
- import { sbbInputModalityDetector as v } from "../core/a11y.js";
5
- import { SbbLanguageController as w } from "../core/controllers.js";
6
- import { hostAttributes as y } from "../core/decorators.js";
7
- import { i18nShowCalendar as k } from "../core/i18n.js";
8
- import { SbbNegativeMixin as $, SbbHydrationMixin as x } from "../core/mixins.js";
9
- import { getDatePicker as P, datepickerControlRegisteredEventFactory as C } from "./datepicker.js";
1
+ import { css as _, LitElement as b, isServer as h, html as m, nothing as p } from "lit";
2
+ import { property as g, state as d, customElement as E } from "lit/decorators.js";
3
+ import { ref as c } from "lit/directives/ref.js";
4
+ import { sbbInputModalityDetector as u } from "../core/a11y.js";
5
+ import { SbbLanguageController as f } from "../core/controllers.js";
6
+ import { hostAttributes as k } from "../core/decorators.js";
7
+ import { i18nShowCalendar as P } from "../core/i18n.js";
8
+ import { SbbNegativeMixin as C, SbbHydrationMixin as v } from "../core/mixins.js";
9
+ import { getDatePicker as w, datepickerControlRegisteredEventFactory as y } from "./datepicker.js";
10
10
  import "../calendar.js";
11
11
  import "../popover.js";
12
- const D = c`*,:before,:after{box-sizing:border-box}:host{--sbb-datepicker-control-radius: var(--sbb-border-radius-4x);--sbb-datepicker-control-color: var(--sbb-color-black);display:inline-flex}sbb-popover-trigger{--sbb-button-display: flex;color:var(--sbb-datepicker-control-color);height:unset}sbb-icon{color:var(--sbb-color-graphite)}`;
13
- var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, h = (t, e, i, o) => {
14
- for (var r = o > 1 ? void 0 : o ? S(e, i) : e, l = t.length - 1, s; l >= 0; l--)
15
- (s = t[l]) && (r = (o ? s(e, i, r) : s(r)) || r);
16
- return o && r && E(e, i, r), r;
12
+ const x = _`*,:before,:after{box-sizing:border-box}:host{--sbb-datepicker-control-radius: var(--sbb-border-radius-4x);--sbb-datepicker-control-color: var(--sbb-color-black);display:inline-flex}sbb-popover-trigger{--sbb-button-display: flex;color:var(--sbb-datepicker-control-color);height:unset}sbb-icon{color:var(--sbb-color-graphite)}`;
13
+ var $ = Object.defineProperty, D = Object.getOwnPropertyDescriptor, o = (e, t, i, n) => {
14
+ for (var a = n > 1 ? void 0 : n ? D(t, i) : t, l = e.length - 1, r; l >= 0; l--)
15
+ (r = e[l]) && (a = (n ? r(t, i, a) : r(a)) || a);
16
+ return n && a && $(t, i, a), a;
17
17
  };
18
- let a = class extends $(x(g)) {
18
+ let s = class extends C(v(b)) {
19
19
  constructor() {
20
- super(), this.f = !1, this.g = null, this.h = null, this.i = !1, this.m = new w(this), b || this.hydrationComplete.then(() => this.i = !0);
20
+ super(), this._disabled = !1, this._min = null, this._max = null, this._renderCalendar = !1, this._language = new f(this), h || this.hydrationComplete.then(() => this._renderCalendar = !0);
21
21
  }
22
22
  /**
23
23
  * Opens the calendar.
24
24
  */
25
25
  open() {
26
- this.d || (this.d = this.shadowRoot.querySelector("sbb-popover-trigger")), this.d.click();
26
+ this._triggerElement || (this._triggerElement = this.shadowRoot.querySelector("sbb-popover-trigger")), this._triggerElement.click();
27
27
  }
28
28
  connectedCallback() {
29
- var e, i;
30
- super.connectedCallback(), this.datePicker || this.e();
31
- const t = ((e = this.closest) == null ? void 0 : e.call(this, "sbb-form-field")) ?? ((i = this.closest) == null ? void 0 : i.call(this, "[data-form-field]"));
32
- t && (this.negative = t.hasAttribute("negative"));
29
+ var t, i;
30
+ super.connectedCallback(), this.datePicker || this._init();
31
+ const e = ((t = this.closest) == null ? void 0 : t.call(this, "sbb-form-field")) ?? ((i = this.closest) == null ? void 0 : i.call(this, "[data-form-field]"));
32
+ e && (this.negative = e.hasAttribute("negative"));
33
33
  }
34
- willUpdate(t) {
35
- super.willUpdate(t), t.has("datePicker") && this.e(this.datePicker);
34
+ willUpdate(e) {
35
+ super.willUpdate(e), e.has("datePicker") && this._init(this.datePicker);
36
36
  }
37
37
  disconnectedCallback() {
38
- var t;
39
- super.disconnectedCallback(), (t = this.c) == null || t.abort();
38
+ var e;
39
+ super.disconnectedCallback(), (e = this._datePickerController) == null || e.abort();
40
40
  }
41
- e(t) {
42
- var e, i, o, r, l;
43
- if ((e = this.c) == null || e.abort(), this.c = new AbortController(), this.a = P(this, t), !this.a) {
41
+ _init(e) {
42
+ var t, i, n, a, l;
43
+ if ((t = this._datePickerController) == null || t.abort(), this._datePickerController = new AbortController(), this._datePickerElement = w(this, e), !this._datePickerElement) {
44
44
  (i = this.parentElement) == null || i.addEventListener(
45
45
  "inputUpdated",
46
- (s) => this.e(s.target),
47
- { once: !0, signal: this.c.signal }
46
+ (r) => this._init(r.target),
47
+ { once: !0, signal: this._datePickerController.signal }
48
48
  );
49
49
  return;
50
50
  }
51
- (o = this.a) == null || o.addEventListener(
51
+ (n = this._datePickerElement) == null || n.addEventListener(
52
52
  "inputUpdated",
53
- (s) => {
54
- this.a = s.target, this.f = !!(s.detail.disabled || s.detail.readonly), this.g = s.detail.min, this.h = s.detail.max;
53
+ (r) => {
54
+ this._datePickerElement = r.target, this._disabled = !!(r.detail.disabled || r.detail.readonly), this._min = r.detail.min, this._max = r.detail.max;
55
55
  },
56
- { signal: this.c.signal }
57
- ), (r = this.a) == null || r.addEventListener(
56
+ { signal: this._datePickerController.signal }
57
+ ), (a = this._datePickerElement) == null || a.addEventListener(
58
58
  "change",
59
- (s) => this.n(s),
59
+ (r) => this._datePickerChanged(r),
60
60
  {
61
- signal: this.c.signal
61
+ signal: this._datePickerController.signal
62
62
  }
63
- ), (l = this.a) == null || l.addEventListener(
63
+ ), (l = this._datePickerElement) == null || l.addEventListener(
64
64
  "datePickerUpdated",
65
- (s) => this.k(this.b, s.target),
66
- { signal: this.c.signal }
67
- ), this.a.dispatchEvent(C());
65
+ (r) => this._configureCalendar(this._calendarElement, r.target),
66
+ { signal: this._datePickerController.signal }
67
+ ), this._datePickerElement.dispatchEvent(y());
68
68
  }
69
- k(t, e) {
70
- !t || !e || (t.wide = e.wide, t.now = this.l(), t.dateFilter = e.dateFilter);
69
+ _configureCalendar(e, t) {
70
+ !e || !t || (e.wide = t.wide, e.now = this._nowOrUndefined(), e.dateFilter = t.dateFilter);
71
71
  }
72
- n(t) {
73
- this.a = t.target, this.b.selected = this.a.getValueAsDate();
72
+ _datePickerChanged(e) {
73
+ this._datePickerElement = e.target, this._calendarElement.selected = this._datePickerElement.getValueAsDate();
74
74
  }
75
- o(t) {
76
- var e;
77
- this.b && this.b === t || (this.b = t, !(!this.a || !this.a.getValueAsDate || !((e = this.b) != null && e.resetPosition)) && (this.b.selected = this.a.getValueAsDate(), this.k(this.b, this.a), this.b.resetPosition()));
75
+ _assignCalendar(e) {
76
+ var t;
77
+ this._calendarElement && this._calendarElement === e || (this._calendarElement = e, !(!this._datePickerElement || !this._datePickerElement.getValueAsDate || !((t = this._calendarElement) != null && t.resetPosition)) && (this._calendarElement.selected = this._datePickerElement.getValueAsDate(), this._configureCalendar(this._calendarElement, this._datePickerElement), this._calendarElement.resetPosition()));
78
78
  }
79
- updated(t) {
80
- super.updated(t), this.j.trigger = this.d;
79
+ updated(e) {
80
+ super.updated(e), this._popoverElement.trigger = this._triggerElement;
81
81
  }
82
- l() {
83
- var t;
84
- return (t = this.a) != null && t.hasCustomNow() ? this.a.now : void 0;
82
+ _nowOrUndefined() {
83
+ var e;
84
+ return (e = this._datePickerElement) != null && e.hasCustomNow() ? this._datePickerElement.now : void 0;
85
85
  }
86
86
  render() {
87
- var t, e;
88
- return p`
87
+ var e, t;
88
+ return m`
89
89
  <sbb-popover-trigger
90
90
  icon-name="calendar-small"
91
- aria-label=${k[this.m.current]}
92
- ?disabled=${!b && (!this.a || this.f)}
91
+ aria-label=${P[this._language.current]}
92
+ ?disabled=${!h && (!this._datePickerElement || this._disabled)}
93
93
  ?negative=${this.negative}
94
94
  data-icon-small
95
- ${d((i) => this.d = i)}
95
+ ${c((i) => this._triggerElement = i)}
96
96
  ></sbb-popover-trigger>
97
97
  <sbb-popover
98
- @willOpen=${() => this.b.resetPosition()}
98
+ @willOpen=${() => this._calendarElement.resetPosition()}
99
99
  @didOpen=${() => {
100
- v.mostRecentModality === "keyboard" && this.b.focus();
100
+ u.mostRecentModality === "keyboard" && this._calendarElement.focus();
101
101
  }}
102
- .trigger=${this.d}
102
+ .trigger=${this._triggerElement}
103
103
  hide-close-button
104
- ${d((i) => this.j = i)}
104
+ ${c((i) => this._popoverElement = i)}
105
105
  >
106
- ${this.i ? p`<sbb-calendar
107
- .min=${this.g}
108
- .max=${this.h}
109
- .now=${this.l()}
110
- ?wide=${(t = this.a) == null ? void 0 : t.wide}
111
- .dateFilter=${(e = this.a) == null ? void 0 : e.dateFilter}
106
+ ${this._renderCalendar ? m`<sbb-calendar
107
+ .min=${this._min}
108
+ .max=${this._max}
109
+ .now=${this._nowOrUndefined()}
110
+ ?wide=${(e = this._datePickerElement) == null ? void 0 : e.wide}
111
+ .dateFilter=${(t = this._datePickerElement) == null ? void 0 : t.dateFilter}
112
112
  @dateSelected=${(i) => {
113
- var r;
114
- const o = new Date(i.detail);
115
- this.b.selected = o, (r = this.a) == null || r.setValueAsDate(o);
113
+ var a;
114
+ const n = new Date(i.detail);
115
+ this._calendarElement.selected = n, (a = this._datePickerElement) == null || a.setValueAsDate(n);
116
116
  }}
117
- ${d((i) => this.o(i))}
118
- ></sbb-calendar>` : f}
117
+ ${c((i) => this._assignCalendar(i))}
118
+ ></sbb-calendar>` : p}
119
119
  </sbb-popover>
120
120
  `;
121
121
  }
122
122
  };
123
- a.styles = D;
124
- h([
125
- m({ attribute: "date-picker" })
126
- ], a.prototype, "datePicker", 2);
127
- h([
128
- n()
129
- ], a.prototype, "f", 2);
130
- h([
131
- n()
132
- ], a.prototype, "g", 2);
133
- h([
134
- n()
135
- ], a.prototype, "h", 2);
136
- h([
137
- n()
138
- ], a.prototype, "i", 2);
139
- a = h([
140
- u("sbb-datepicker-toggle"),
141
- y({
123
+ s.styles = x;
124
+ o([
125
+ g({ attribute: "date-picker" })
126
+ ], s.prototype, "datePicker", 2);
127
+ o([
128
+ d()
129
+ ], s.prototype, "_disabled", 2);
130
+ o([
131
+ d()
132
+ ], s.prototype, "_min", 2);
133
+ o([
134
+ d()
135
+ ], s.prototype, "_max", 2);
136
+ o([
137
+ d()
138
+ ], s.prototype, "_renderCalendar", 2);
139
+ s = o([
140
+ E("sbb-datepicker-toggle"),
141
+ k({
142
142
  slot: "prefix"
143
143
  })
144
- ], a);
144
+ ], s);
145
145
  export {
146
- a as SbbDatepickerToggleElement
146
+ s as SbbDatepickerToggleElement
147
147
  };