@sbb-esta/lyne-elements 1.10.0 → 1.11.1
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/autocomplete/autocomplete.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +0 -3
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +32 -28
- package/autocomplete-grid/autocomplete-grid.js +16 -17
- package/autocomplete.js +23 -24
- package/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts +0 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group.js +25 -24
- package/button/button/button.d.ts +1 -1
- package/button/button-link/button-link.d.ts +1 -1
- package/button/button-link.js +14 -14
- package/button/button.js +9 -9
- package/button/mini-button/mini-button.d.ts +1 -1
- package/button/mini-button/mini-button.d.ts.map +1 -1
- package/button/mini-button.js +15 -17
- package/button/secondary-button/secondary-button.d.ts +1 -1
- package/button/secondary-button-link/secondary-button-link.d.ts +1 -1
- package/button/secondary-button-link.js +15 -15
- package/button/secondary-button.js +6 -6
- package/button/tertiary-button/tertiary-button.d.ts +1 -1
- package/button/tertiary-button-link/tertiary-button-link.d.ts +1 -1
- package/button/tertiary-button-link.js +12 -12
- package/button/tertiary-button.js +13 -13
- package/button/transparent-button/transparent-button.d.ts +1 -1
- package/button/transparent-button-link/transparent-button-link.d.ts +1 -1
- package/button/transparent-button-link.js +15 -15
- package/button/transparent-button.js +8 -8
- package/card/card-badge/card-badge.d.ts.map +1 -1
- package/card/card-badge.js +7 -9
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common.js +24 -25
- package/container/sticky-bar/sticky-bar.d.ts +0 -1
- package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/container/sticky-bar.js +20 -20
- package/core/a11y/arrow-navigation.d.ts.map +1 -1
- package/core/a11y.js +46 -47
- package/core/base-elements/action-base-element.d.ts +1 -0
- package/core/base-elements/action-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements.js +52 -49
- package/core/controllers/language-controller.d.ts.map +1 -1
- package/core/controllers.js +22 -23
- package/core/dom/get-document-writing-mode.d.ts +3 -0
- package/core/dom/get-document-writing-mode.d.ts.map +1 -1
- package/core/mixins/disabled-mixin.d.ts +9 -4
- package/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/core/mixins.js +68 -58
- package/core/observers/intersection-observer.d.ts +6 -0
- package/core/observers/intersection-observer.d.ts.map +1 -1
- package/core/observers/mutation-observer.d.ts +6 -0
- package/core/observers/mutation-observer.d.ts.map +1 -1
- package/core/observers/resize-observer.d.ts +6 -0
- package/core/observers/resize-observer.d.ts.map +1 -1
- package/core/styles/core.scss +23 -0
- package/core/styles/mixins/overlay.scss +2 -2
- package/core.css +23 -0
- package/custom-elements.json +1268 -159
- package/datepicker/datepicker/datepicker.d.ts +1 -1
- package/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -2
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/datepicker/datepicker-toggle.js +36 -45
- package/datepicker/datepicker.js +34 -35
- package/development/autocomplete/autocomplete.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +17 -15
- package/development/autocomplete-grid/autocomplete-grid.js +2 -3
- package/development/autocomplete.js +4 -5
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts +0 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group.js +9 -8
- package/development/button/button/button.d.ts +1 -1
- package/development/button/button-link/button-link.d.ts +1 -1
- package/development/button/button-link.js +3 -3
- package/development/button/button.js +3 -3
- package/development/button/mini-button/mini-button.d.ts +1 -1
- package/development/button/mini-button/mini-button.d.ts.map +1 -1
- package/development/button/mini-button.js +3 -5
- package/development/button/secondary-button/secondary-button.d.ts +1 -1
- package/development/button/secondary-button-link/secondary-button-link.d.ts +1 -1
- package/development/button/secondary-button-link.js +3 -3
- package/development/button/secondary-button.js +3 -3
- package/development/button/tertiary-button/tertiary-button.d.ts +1 -1
- package/development/button/tertiary-button-link/tertiary-button-link.d.ts +1 -1
- package/development/button/tertiary-button-link.js +3 -3
- package/development/button/tertiary-button.js +3 -3
- package/development/button/transparent-button/transparent-button.d.ts +1 -1
- package/development/button/transparent-button-link/transparent-button-link.d.ts +1 -1
- package/development/button/transparent-button-link.js +3 -3
- package/development/button/transparent-button.js +3 -3
- package/development/card/card-badge/card-badge.d.ts.map +1 -1
- package/development/card/card-badge.js +3 -5
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common.js +8 -10
- package/development/container/sticky-bar/sticky-bar.d.ts +0 -1
- package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/development/container/sticky-bar.js +8 -9
- package/development/core/a11y/arrow-navigation.d.ts.map +1 -1
- package/development/core/a11y.js +2 -3
- package/development/core/base-elements/action-base-element.d.ts +1 -0
- package/development/core/base-elements/action-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements.js +7 -4
- package/development/core/controllers/language-controller.d.ts.map +1 -1
- package/development/core/controllers.js +9 -4
- package/development/core/dom/get-document-writing-mode.d.ts +3 -0
- package/development/core/dom/get-document-writing-mode.d.ts.map +1 -1
- package/development/core/dom.js +1 -1
- package/development/core/mixins/disabled-mixin.d.ts +9 -4
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/development/core/mixins.js +25 -9
- package/development/core/observers/intersection-observer.d.ts +6 -0
- package/development/core/observers/intersection-observer.d.ts.map +1 -1
- package/development/core/observers/mutation-observer.d.ts +6 -0
- package/development/core/observers/mutation-observer.d.ts.map +1 -1
- package/development/core/observers/resize-observer.d.ts +6 -0
- package/development/core/observers/resize-observer.d.ts.map +1 -1
- package/development/core/observers.js +1 -1
- package/development/datepicker/datepicker/datepicker.d.ts +1 -1
- package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -2
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +2 -12
- package/development/datepicker/datepicker.js +6 -7
- package/development/dialog/dialog/dialog.d.ts +0 -1
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog.js +10 -10
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts +1 -1
- package/development/expansion-panel/expansion-panel-header.js +3 -3
- package/development/flip-card/flip-card-details/flip-card-details.d.ts +2 -5
- package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
- package/development/flip-card/flip-card-details.js +10 -22
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +11 -12
- package/development/header/common.js +42 -21
- package/development/header/header/header.d.ts +2 -0
- package/development/header/header/header.d.ts.map +1 -1
- package/development/header/header.js +12 -1
- package/development/journey-header/journey-header.d.ts.map +1 -1
- package/development/journey-header.js +3 -4
- package/development/link/block-link-button/block-link-button.d.ts +1 -1
- package/development/link/block-link-button.js +3 -3
- package/development/link/link-button/link-button.d.ts +1 -1
- package/development/link/link-button.js +3 -3
- package/development/logo.js +2 -4
- package/development/map-container/map-container.d.ts +8 -5
- package/development/map-container/map-container.d.ts.map +1 -1
- package/development/map-container.js +31 -34
- package/development/menu/common/menu-action-common.d.ts +1 -2
- package/development/menu/common/menu-action-common.d.ts.map +1 -1
- package/development/menu/common.js +1 -1
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.d.ts +1 -1
- package/development/menu/menu-button.js +3 -3
- package/development/menu/menu-link/menu-link.d.ts +1 -1
- package/development/menu/menu-link/menu-link.d.ts.map +1 -1
- package/development/menu/menu-link.js +5 -2
- package/development/menu/menu.js +4 -2
- package/development/navigation/navigation/navigation.d.ts +1 -1
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation-marker/navigation-marker.d.ts +1 -2
- package/development/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
- package/development/navigation/navigation-marker.js +8 -15
- package/development/navigation/navigation.js +13 -10
- package/development/notification/notification.d.ts +0 -1
- package/development/notification/notification.d.ts.map +1 -1
- package/development/notification.js +11 -13
- package/development/option/optgroup/optgroup-base-element.d.ts +0 -2
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup.js +9 -14
- package/development/option/option/option-base-element.d.ts +0 -3
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option.js +6 -10
- package/development/popover/popover-trigger/popover-trigger.d.ts +1 -1
- package/development/popover/popover-trigger.js +3 -3
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +4 -5
- package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +10 -9
- package/development/signet/signet.d.ts +4 -1
- package/development/signet/signet.d.ts.map +1 -1
- package/development/signet.js +37 -8
- package/development/slider/slider.d.ts.map +1 -1
- package/development/slider.js +12 -10
- package/development/stepper/step/step.d.ts +1 -2
- package/development/stepper/step/step.d.ts.map +1 -1
- package/development/stepper/step.js +9 -14
- package/development/table/table-wrapper/table-wrapper.d.ts +0 -1
- package/development/table/table-wrapper/table-wrapper.d.ts.map +1 -1
- package/development/table/table-wrapper.js +7 -7
- package/development/tabs/tab-group/tab-group.d.ts +0 -1
- package/development/tabs/tab-group/tab-group.d.ts.map +1 -1
- package/development/tabs/tab-group.js +19 -18
- package/development/tag/tag/tag.d.ts +1 -1
- package/development/tag/tag.js +3 -3
- package/development/toggle/toggle/toggle.d.ts +0 -1
- package/development/toggle/toggle/toggle.d.ts.map +1 -1
- package/development/toggle/toggle-option.js +2 -2
- package/development/toggle/toggle.js +7 -7
- package/development/train/train-formation/train-formation.d.ts +1 -2
- package/development/train/train-formation/train-formation.d.ts.map +1 -1
- package/development/train/train-formation.js +10 -8
- package/dialog/dialog/dialog.d.ts +0 -1
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog.js +16 -17
- package/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts +1 -1
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/flip-card/flip-card-details/flip-card-details.d.ts +2 -5
- package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
- package/flip-card/flip-card-details.js +20 -28
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +26 -27
- package/header/common.js +3 -3
- package/header/header/header.d.ts +2 -0
- package/header/header/header.d.ts.map +1 -1
- package/header/header.js +21 -18
- package/journey-header/journey-header.d.ts.map +1 -1
- package/journey-header.js +14 -15
- package/link/block-link-button/block-link-button.d.ts +1 -1
- package/link/block-link-button.js +10 -10
- package/link/link-button/link-button.d.ts +1 -1
- package/link/link-button.js +4 -4
- package/logo.js +1 -1
- package/map-container/map-container.d.ts +8 -5
- package/map-container/map-container.d.ts.map +1 -1
- package/map-container.js +35 -37
- package/menu/common/menu-action-common.d.ts +1 -2
- package/menu/common/menu-action-common.d.ts.map +1 -1
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu-button/menu-button.d.ts +1 -1
- package/menu/menu-button.js +13 -13
- package/menu/menu-link/menu-link.d.ts +1 -1
- package/menu/menu-link/menu-link.d.ts.map +1 -1
- package/menu/menu-link.js +15 -12
- package/menu/menu.js +9 -7
- package/navigation/navigation/navigation.d.ts +1 -1
- package/navigation/navigation/navigation.d.ts.map +1 -1
- package/navigation/navigation-marker/navigation-marker.d.ts +1 -2
- package/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
- package/navigation/navigation-marker.js +17 -22
- package/navigation/navigation.js +40 -34
- package/notification/notification.d.ts +0 -1
- package/notification/notification.d.ts.map +1 -1
- package/notification.js +17 -18
- package/option/optgroup/optgroup-base-element.d.ts +0 -2
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup.js +31 -33
- package/option/option/option-base-element.d.ts +0 -3
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option.js +16 -18
- package/package.json +3 -2
- package/popover/popover-trigger/popover-trigger.d.ts +1 -1
- package/popover/popover-trigger.js +1 -1
- package/select/select.d.ts.map +1 -1
- package/select.js +14 -15
- package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
- package/selection-expansion-panel.js +25 -24
- package/signet/signet.d.ts +4 -1
- package/signet/signet.d.ts.map +1 -1
- package/signet.js +34 -23
- package/slider/slider.d.ts.map +1 -1
- package/slider.js +5 -5
- package/standard-theme.css +23 -0
- package/stepper/step/step.d.ts +1 -2
- package/stepper/step/step.d.ts.map +1 -1
- package/stepper/step.js +19 -24
- package/table/table-wrapper/table-wrapper.d.ts +0 -1
- package/table/table-wrapper/table-wrapper.d.ts.map +1 -1
- package/table/table-wrapper.js +19 -18
- package/tabs/tab-group/tab-group.d.ts +0 -1
- package/tabs/tab-group/tab-group.d.ts.map +1 -1
- package/tabs/tab-group.js +37 -33
- package/tag/tag/tag.d.ts +1 -1
- package/tag/tag.js +19 -19
- package/toggle/toggle/toggle.d.ts +0 -1
- package/toggle/toggle/toggle.d.ts.map +1 -1
- package/toggle/toggle-option.js +1 -1
- package/toggle/toggle.js +32 -31
- package/train/train-formation/train-formation.d.ts +1 -2
- package/train/train-formation/train-formation.d.ts.map +1 -1
- package/train/train-formation.js +23 -22
package/core/mixins.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { property as
|
|
2
|
-
import { defaultConverter as v, html as b, nothing as c, css as
|
|
3
|
-
import { hostAttributes as
|
|
4
|
-
import { preventScrollOnSpacebarPress as f, EventEmitter as
|
|
1
|
+
import { property as l, state as x } from "lit/decorators.js";
|
|
2
|
+
import { defaultConverter as v, html as b, nothing as c, css as k } from "lit";
|
|
3
|
+
import { hostAttributes as w } from "./decorators.js";
|
|
4
|
+
import { preventScrollOnSpacebarPress as f, EventEmitter as S } from "./eventing.js";
|
|
5
5
|
import { getLocalName as m } from "./dom.js";
|
|
6
6
|
import "../screen-reader-only.js";
|
|
7
|
-
var
|
|
8
|
-
for (var e =
|
|
9
|
-
(a = n[i]) && (e = a(s, r, e) || e);
|
|
10
|
-
return e &&
|
|
7
|
+
var E = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, C = (n, s, r, t) => {
|
|
8
|
+
for (var e = t > 1 ? void 0 : t ? $(s, r) : s, i = n.length - 1, a; i >= 0; i--)
|
|
9
|
+
(a = n[i]) && (e = (t ? a(s, r, e) : a(e)) || e);
|
|
10
|
+
return t && e && E(s, r, e), e;
|
|
11
11
|
};
|
|
12
12
|
const p = (n) => {
|
|
13
13
|
class s extends n {
|
|
@@ -28,17 +28,26 @@ const p = (n) => {
|
|
|
28
28
|
return !1;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
], s.prototype, "disabled"), s;
|
|
34
|
-
},
|
|
35
|
-
class s extends
|
|
31
|
+
return C([
|
|
32
|
+
l({ reflect: !0, type: Boolean })
|
|
33
|
+
], s.prototype, "disabled", 1), s;
|
|
34
|
+
}, P = (n) => {
|
|
35
|
+
class s extends n {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments), this.disabledInteractive = !1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return C([
|
|
41
|
+
l({ attribute: "disabled-interactive", type: Boolean })
|
|
42
|
+
], s.prototype, "disabledInteractive", 2), s;
|
|
43
|
+
}, Q = (n) => {
|
|
44
|
+
class s extends P(p(n)) {
|
|
36
45
|
willUpdate(t) {
|
|
37
|
-
super.willUpdate(t), t.has("disabled") && (this.disabled ?
|
|
46
|
+
super.willUpdate(t), !(!t.has("disabled") && !t.has("disabledInteractive")) && (!this.disabled || this.disabledInteractive ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex"), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled"));
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
49
|
return s;
|
|
41
|
-
},
|
|
50
|
+
}, W = (n) => {
|
|
42
51
|
class s extends p(n) {
|
|
43
52
|
willUpdate(t) {
|
|
44
53
|
super.willUpdate(t), t.has("disabled") && (this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled"));
|
|
@@ -46,12 +55,12 @@ const p = (n) => {
|
|
|
46
55
|
}
|
|
47
56
|
return s;
|
|
48
57
|
};
|
|
49
|
-
var
|
|
50
|
-
for (var e = t > 1 ? void 0 : t ?
|
|
58
|
+
var O = Object.defineProperty, R = Object.getOwnPropertyDescriptor, h = (n, s, r, t) => {
|
|
59
|
+
for (var e = t > 1 ? void 0 : t ? R(s, r) : s, i = n.length - 1, a; i >= 0; i--)
|
|
51
60
|
(a = n[i]) && (e = (t ? a(s, r, e) : a(e)) || e);
|
|
52
|
-
return t && e &&
|
|
61
|
+
return t && e && O(s, r, e), e;
|
|
53
62
|
};
|
|
54
|
-
const
|
|
63
|
+
const A = (n) => {
|
|
55
64
|
const r = class r extends n {
|
|
56
65
|
constructor() {
|
|
57
66
|
super(...arguments), this._value = null, this.internals = this.attachInternals(), this.formDisabled = !1;
|
|
@@ -145,17 +154,17 @@ const R = (n) => {
|
|
|
145
154
|
r.formAssociated = !0;
|
|
146
155
|
let s = r;
|
|
147
156
|
return h([
|
|
148
|
-
|
|
157
|
+
l()
|
|
149
158
|
], s.prototype, "name", 1), h([
|
|
150
|
-
|
|
159
|
+
l()
|
|
151
160
|
], s.prototype, "value", 1), h([
|
|
152
161
|
x()
|
|
153
162
|
], s.prototype, "formDisabled", 2), s;
|
|
154
163
|
};
|
|
155
|
-
var
|
|
164
|
+
var D = Object.defineProperty, q = Object.getOwnPropertyDescriptor, M = (n, s, r, t) => {
|
|
156
165
|
for (var e = q(s, r), i = n.length - 1, a; i >= 0; i--)
|
|
157
166
|
(a = n[i]) && (e = a(s, r, e) || e);
|
|
158
|
-
return e &&
|
|
167
|
+
return e && D(s, r, e), e;
|
|
159
168
|
};
|
|
160
169
|
const L = (n) => {
|
|
161
170
|
class s extends n {
|
|
@@ -179,17 +188,17 @@ const L = (n) => {
|
|
|
179
188
|
return !1;
|
|
180
189
|
}
|
|
181
190
|
}
|
|
182
|
-
return
|
|
183
|
-
|
|
191
|
+
return M([
|
|
192
|
+
l({ reflect: !0, type: Boolean })
|
|
184
193
|
], s.prototype, "required"), s;
|
|
185
194
|
};
|
|
186
|
-
var
|
|
187
|
-
for (var e = t > 1 ? void 0 : t ?
|
|
195
|
+
var U = Object.defineProperty, I = Object.getOwnPropertyDescriptor, _ = (n, s, r, t) => {
|
|
196
|
+
for (var e = t > 1 ? void 0 : t ? I(s, r) : s, i = n.length - 1, a; i >= 0; i--)
|
|
188
197
|
(a = n[i]) && (e = (t ? a(s, r, e) : a(e)) || e);
|
|
189
|
-
return t && e &&
|
|
198
|
+
return t && e && U(s, r, e), e;
|
|
190
199
|
};
|
|
191
|
-
const
|
|
192
|
-
let s = class extends p(L(
|
|
200
|
+
const Y = (n) => {
|
|
201
|
+
let s = class extends p(L(A(n))) {
|
|
193
202
|
constructor() {
|
|
194
203
|
super(), this._attributeMutationBlocked = !1, this._checked = !1, this._handleKeyboardInteraction = (r) => {
|
|
195
204
|
r.key === " " && this._handleUserInteraction();
|
|
@@ -239,7 +248,7 @@ const W = (n) => {
|
|
|
239
248
|
}
|
|
240
249
|
};
|
|
241
250
|
return _([
|
|
242
|
-
|
|
251
|
+
l({
|
|
243
252
|
type: Boolean,
|
|
244
253
|
converter: {
|
|
245
254
|
...v,
|
|
@@ -251,7 +260,7 @@ const W = (n) => {
|
|
|
251
260
|
}
|
|
252
261
|
})
|
|
253
262
|
], s.prototype, "checked", 1), s = _([
|
|
254
|
-
|
|
263
|
+
w({
|
|
255
264
|
tabindex: "0"
|
|
256
265
|
})
|
|
257
266
|
], s), s;
|
|
@@ -266,11 +275,11 @@ const W = (n) => {
|
|
|
266
275
|
else {
|
|
267
276
|
const i = (d) => {
|
|
268
277
|
this._hydrationRequired && d.stopImmediatePropagation();
|
|
269
|
-
}, a = { capture: !0 },
|
|
270
|
-
|
|
278
|
+
}, a = { capture: !0 }, o = (e = this.shadowRoot) == null ? void 0 : e.querySelectorAll("slot");
|
|
279
|
+
o != null && o.length && (o.forEach(
|
|
271
280
|
(d) => d.addEventListener("slotchange", i, a)
|
|
272
281
|
), this.hydrationComplete.then(
|
|
273
|
-
() =>
|
|
282
|
+
() => o.forEach((d) => {
|
|
274
283
|
d.removeEventListener("slotchange", i, a), d.assignedNodes().length && d.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
|
|
275
284
|
})
|
|
276
285
|
));
|
|
@@ -302,7 +311,7 @@ var B = Object.defineProperty, V = (n, s, r, t) => {
|
|
|
302
311
|
(a = n[i]) && (e = a(s, r, e) || e);
|
|
303
312
|
return e && B(s, r, e), e;
|
|
304
313
|
};
|
|
305
|
-
const g = "data-ssr-child-count", y = "li",
|
|
314
|
+
const g = "data-ssr-child-count", y = "li", Z = (n) => {
|
|
306
315
|
class s extends N(n) {
|
|
307
316
|
constructor() {
|
|
308
317
|
super(...arguments), this.listChildren = [], this._handleSlotchange = () => {
|
|
@@ -365,10 +374,10 @@ const g = "data-ssr-child-count", y = "li", Y = (n) => {
|
|
|
365
374
|
*/
|
|
366
375
|
listSlotEntries(t) {
|
|
367
376
|
return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(g) ?? 0) })).map((i, a) => {
|
|
368
|
-
var
|
|
377
|
+
var o;
|
|
369
378
|
return {
|
|
370
379
|
name: `${y}-${a}`,
|
|
371
|
-
ariaHidden: ((
|
|
380
|
+
ariaHidden: ((o = t == null ? void 0 : t.localNameVisualOnly) == null ? void 0 : o.includes(i.localName)) ?? !1
|
|
372
381
|
};
|
|
373
382
|
});
|
|
374
383
|
}
|
|
@@ -390,26 +399,26 @@ var j = Object.defineProperty, H = (n, s, r, t) => {
|
|
|
390
399
|
(a = n[i]) && (e = a(s, r, e) || e);
|
|
391
400
|
return e && j(s, r, e), e;
|
|
392
401
|
};
|
|
393
|
-
const
|
|
402
|
+
const ee = (n) => {
|
|
394
403
|
class s extends n {
|
|
395
404
|
constructor() {
|
|
396
405
|
super(...arguments), this.negative = !1;
|
|
397
406
|
}
|
|
398
407
|
}
|
|
399
408
|
return H([
|
|
400
|
-
|
|
409
|
+
l({ reflect: !0, type: Boolean })
|
|
401
410
|
], s.prototype, "negative"), s;
|
|
402
411
|
};
|
|
403
|
-
var
|
|
412
|
+
var F = Object.defineProperty, u = (n, s, r, t) => {
|
|
404
413
|
for (var e = void 0, i = n.length - 1, a; i >= 0; i--)
|
|
405
414
|
(a = n[i]) && (e = a(s, r, e) || e);
|
|
406
|
-
return e &&
|
|
415
|
+
return e && F(s, r, e), e;
|
|
407
416
|
};
|
|
408
|
-
const
|
|
417
|
+
const te = (n) => {
|
|
409
418
|
var t;
|
|
410
419
|
const s = (t = class extends n {
|
|
411
420
|
constructor() {
|
|
412
|
-
super(...arguments), this.color = "white", this.borderless = !1, this._panelConnected = new
|
|
421
|
+
super(...arguments), this.color = "white", this.borderless = !1, this._panelConnected = new S(
|
|
413
422
|
this,
|
|
414
423
|
t.events.panelConnected,
|
|
415
424
|
{ bubbles: !0 }
|
|
@@ -422,13 +431,13 @@ const ee = (n) => {
|
|
|
422
431
|
panelConnected: "panelConnected"
|
|
423
432
|
}, t);
|
|
424
433
|
return u([
|
|
425
|
-
|
|
434
|
+
l()
|
|
426
435
|
], s.prototype, "color"), u([
|
|
427
|
-
|
|
436
|
+
l({ reflect: !0, type: Boolean })
|
|
428
437
|
], s.prototype, "borderless"), u([
|
|
429
|
-
|
|
438
|
+
l()
|
|
430
439
|
], s.prototype, "expansionState"), s;
|
|
431
|
-
},
|
|
440
|
+
}, se = (n) => {
|
|
432
441
|
class s extends n {
|
|
433
442
|
constructor() {
|
|
434
443
|
super(...arguments), this._updatePromise = Promise.resolve(), this._updateResolve = () => {
|
|
@@ -446,18 +455,19 @@ const ee = (n) => {
|
|
|
446
455
|
}
|
|
447
456
|
}
|
|
448
457
|
return s;
|
|
449
|
-
},
|
|
458
|
+
}, re = k`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
|
|
450
459
|
export {
|
|
460
|
+
P as SbbDisabledInteractiveMixin,
|
|
451
461
|
p as SbbDisabledMixin,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
462
|
+
Q as SbbDisabledTabIndexActionMixin,
|
|
463
|
+
W as SbbFocusableDisabledActionMixin,
|
|
464
|
+
Y as SbbFormAssociatedCheckboxMixin,
|
|
465
|
+
A as SbbFormAssociatedMixin,
|
|
456
466
|
N as SbbHydrationMixin,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
467
|
+
Z as SbbNamedSlotListMixin,
|
|
468
|
+
ee as SbbNegativeMixin,
|
|
469
|
+
te as SbbPanelMixin,
|
|
460
470
|
L as SbbRequiredMixin,
|
|
461
|
-
|
|
462
|
-
|
|
471
|
+
se as SbbUpdateSchedulerMixin,
|
|
472
|
+
re as panelCommonStyle
|
|
463
473
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
3
|
+
*/
|
|
1
4
|
export declare class NodeIntersectionObserver implements IntersectionObserver {
|
|
2
5
|
root: Element | Document | null;
|
|
3
6
|
rootMargin: string;
|
|
@@ -7,6 +10,9 @@ export declare class NodeIntersectionObserver implements IntersectionObserver {
|
|
|
7
10
|
takeRecords(): any;
|
|
8
11
|
unobserve(): void;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
15
|
+
*/
|
|
10
16
|
export declare const AgnosticIntersectionObserver: typeof NodeIntersectionObserver | {
|
|
11
17
|
new (callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
|
|
12
18
|
prototype: IntersectionObserver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/intersection-observer.ts"],"names":[],"mappings":"AAAA,qBAAa,wBAAyB,YAAW,oBAAoB;IAC5D,IAAI,EAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC;IACjC,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,MAAM,EAAE,CAAC;IAEtB,UAAU,IAAI,IAAI;IAIlB,OAAO,IAAI,IAAI;IAIf,WAAW,IAAI,GAAG;IAIlB,SAAS,IAAI,IAAI;CAGzB;
|
|
1
|
+
{"version":3,"file":"intersection-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/intersection-observer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,YAAW,oBAAoB;IAC5D,IAAI,EAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC;IACjC,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,MAAM,EAAE,CAAC;IAEtB,UAAU,IAAI,IAAI;IAIlB,OAAO,IAAI,IAAI;IAIf,WAAW,IAAI,GAAG;IAIlB,SAAS,IAAI,IAAI;CAGzB;AAED;;GAEG;AAEH,eAAO,MAAM,4BAA4B;;;CACsD,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
3
|
+
*/
|
|
1
4
|
export declare class NodeMutationObserver implements MutationObserver {
|
|
2
5
|
disconnect(): void;
|
|
3
6
|
observe(_target: Node, _options?: MutationObserverInit): void;
|
|
4
7
|
takeRecords(): MutationRecord[];
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
11
|
+
*/
|
|
6
12
|
export declare const AgnosticMutationObserver: typeof MutationObserver;
|
|
7
13
|
//# sourceMappingURL=mutation-observer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/mutation-observer.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAqB,YAAW,gBAAgB;IACpD,UAAU,IAAI,IAAI;IAIlB,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAI7D,WAAW,IAAI,cAAc,EAAE;CAGvC;
|
|
1
|
+
{"version":3,"file":"mutation-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/mutation-observer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IACpD,UAAU,IAAI,IAAI;IAIlB,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAI7D,WAAW,IAAI,cAAc,EAAE;CAGvC;AAED;;GAEG;AAEH,eAAO,MAAM,wBAAwB,EAAE,OAAO,gBACqC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
3
|
+
*/
|
|
1
4
|
export declare class NodeResizeObserver implements ResizeObserver {
|
|
2
5
|
disconnect(): any;
|
|
3
6
|
observe(): any;
|
|
4
7
|
unobserve(): any;
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use lit observers, will be removed with next major version
|
|
11
|
+
*/
|
|
6
12
|
export declare const AgnosticResizeObserver: {
|
|
7
13
|
new (callback: ResizeObserverCallback): ResizeObserver;
|
|
8
14
|
prototype: ResizeObserver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/resize-observer.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,YAAW,cAAc;IAChD,UAAU,IAAI,GAAG;IAIjB,OAAO,IAAI,GAAG;IAId,SAAS,IAAI,GAAG;CAGxB;
|
|
1
|
+
{"version":3,"file":"resize-observer.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/observers/resize-observer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,kBAAmB,YAAW,cAAc;IAChD,UAAU,IAAI,GAAG;IAIjB,OAAO,IAAI,GAAG;IAId,SAAS,IAAI,GAAG;CAGxB;AAED;;GAEG;AAEH,eAAO,MAAM,sBAAsB;;;CAC0C,CAAC"}
|
package/core/styles/core.scss
CHANGED
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
// TODO: Check if infinity is supported by all browsers (e.g. Firefox) -> calc(1em * infinity);
|
|
37
37
|
--sbb-border-radius-infinity: 10000000em;
|
|
38
38
|
|
|
39
|
+
&:has(sbb-header[size='s']) {
|
|
40
|
+
--sbb-header-height: #{functions.px-to-rem-build(52)};
|
|
41
|
+
}
|
|
42
|
+
|
|
39
43
|
@include mediaqueries.mq($from: medium) {
|
|
40
44
|
// Header
|
|
41
45
|
--sbb-header-height: var(--sbb-spacing-fixed-24x);
|
|
@@ -43,6 +47,10 @@
|
|
|
43
47
|
// Time Input
|
|
44
48
|
--sbb-time-input-max-width: #{functions.px-to-rem-build(65)};
|
|
45
49
|
--sbb-time-input-s-max-width: #{functions.px-to-rem-build(58)};
|
|
50
|
+
|
|
51
|
+
&:has(sbb-header[size='s']) {
|
|
52
|
+
--sbb-header-height: var(--sbb-spacing-fixed-14x);
|
|
53
|
+
}
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
}
|
|
@@ -116,6 +124,21 @@ sbb-breadcrumb-group:not(:defined) {
|
|
|
116
124
|
pointer-events: all;
|
|
117
125
|
}
|
|
118
126
|
|
|
127
|
+
// Helper class for the application name and version in sbb-header.
|
|
128
|
+
.sbb-header-info {
|
|
129
|
+
@include typo.text-xs--regular;
|
|
130
|
+
|
|
131
|
+
display: flex;
|
|
132
|
+
padding-inline: var(--sbb-spacing-fixed-4x);
|
|
133
|
+
gap: var(--sbb-spacing-fixed-1x);
|
|
134
|
+
align-items: baseline;
|
|
135
|
+
|
|
136
|
+
strong + * {
|
|
137
|
+
font-size: var(--sbb-font-size-text-xxs);
|
|
138
|
+
color: var(--sbb-color-granite);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
119
142
|
// In smaller title font-sizes, the space after the title is smaller than the default paragraph space before.
|
|
120
143
|
// Due to margin collapsing, the wrong paragraph space wins.
|
|
121
144
|
// To prevent the mistakenly large gap, we reset the paragraph space.
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
.sbb-gap-fix-corner#left {
|
|
138
138
|
left: calc(($radius / 2) * -1);
|
|
139
139
|
|
|
140
|
-
:host(
|
|
140
|
+
:host(:dir(rtl)) & {
|
|
141
141
|
right: calc(($radius / 2) * -1);
|
|
142
142
|
left: unset;
|
|
143
143
|
}
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
.sbb-gap-fix-corner#right {
|
|
147
147
|
right: calc(($radius / 2) * -1);
|
|
148
148
|
|
|
149
|
-
:host(
|
|
149
|
+
:host(:dir(rtl)) & {
|
|
150
150
|
left: calc(($radius / 2) * -1);
|
|
151
151
|
right: unset;
|
|
152
152
|
}
|
package/core.css
CHANGED
|
@@ -1109,12 +1109,18 @@
|
|
|
1109
1109
|
--sbb-overlay-default-z-index: 1000;
|
|
1110
1110
|
--sbb-border-radius-infinity: 10000000em;
|
|
1111
1111
|
}
|
|
1112
|
+
:root:has(sbb-header[size=s]) {
|
|
1113
|
+
--sbb-header-height: 3.25rem;
|
|
1114
|
+
}
|
|
1112
1115
|
@media (min-width: calc(52.5rem)) {
|
|
1113
1116
|
:root {
|
|
1114
1117
|
--sbb-header-height: var(--sbb-spacing-fixed-24x);
|
|
1115
1118
|
--sbb-time-input-max-width: 4.0625rem;
|
|
1116
1119
|
--sbb-time-input-s-max-width: 3.625rem;
|
|
1117
1120
|
}
|
|
1121
|
+
:root:has(sbb-header[size=s]) {
|
|
1122
|
+
--sbb-header-height: var(--sbb-spacing-fixed-14x);
|
|
1123
|
+
}
|
|
1118
1124
|
}
|
|
1119
1125
|
|
|
1120
1126
|
@font-face {
|
|
@@ -1265,6 +1271,23 @@ sbb-breadcrumb-group:not(:defined) {
|
|
|
1265
1271
|
pointer-events: all;
|
|
1266
1272
|
}
|
|
1267
1273
|
|
|
1274
|
+
.sbb-header-info {
|
|
1275
|
+
--sbb-text-font-size: var(--sbb-font-size-text-xs);
|
|
1276
|
+
font-family: var(--sbb-typo-font-family);
|
|
1277
|
+
font-weight: normal;
|
|
1278
|
+
line-height: var(--sbb-typo-line-height-body-text);
|
|
1279
|
+
letter-spacing: var(--sbb-typo-letter-spacing-body-text);
|
|
1280
|
+
font-size: var(--sbb-text-font-size);
|
|
1281
|
+
display: flex;
|
|
1282
|
+
padding-inline: var(--sbb-spacing-fixed-4x);
|
|
1283
|
+
gap: var(--sbb-spacing-fixed-1x);
|
|
1284
|
+
align-items: baseline;
|
|
1285
|
+
}
|
|
1286
|
+
.sbb-header-info strong + * {
|
|
1287
|
+
font-size: var(--sbb-font-size-text-xxs);
|
|
1288
|
+
color: var(--sbb-color-granite);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1268
1291
|
sbb-title + p {
|
|
1269
1292
|
margin-block-start: 0;
|
|
1270
1293
|
}
|