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