@sbb-esta/lyne-elements 2.2.0 → 2.3.0
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 +6 -6
- package/alert/alert-group.js +4 -4
- package/alert/alert.js +9 -9
- package/autocomplete-grid/autocomplete-grid-button.js +4 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
- package/autocomplete-grid/autocomplete-grid-row.js +4 -4
- package/autocomplete.js +1 -1
- package/badge.css +31 -0
- package/breadcrumb/breadcrumb-group.js +4 -4
- package/breadcrumb/breadcrumb.js +19 -19
- package/button/accent-button-link.js +9 -9
- package/button/accent-button-static.js +6 -6
- package/button/accent-button.js +6 -6
- package/button/button-link.js +7 -7
- package/button/button-static.js +7 -7
- package/button/button.js +8 -8
- package/button/common.js +1 -1
- package/button/mini-button-group.js +8 -8
- package/button/secondary-button-link.js +7 -7
- package/button/secondary-button-static.js +7 -7
- package/button/secondary-button.js +3 -3
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static.js +5 -5
- package/button/transparent-button.js +6 -6
- package/calendar.js +1 -1
- package/card/card-badge.js +9 -9
- package/card/card-button.js +5 -5
- package/card/card-link.js +7 -7
- package/card/card.js +1 -1
- package/checkbox/checkbox-panel.js +16 -16
- package/checkbox/checkbox.js +15 -15
- package/checkbox/common.js +3 -3
- package/clock.js +8 -8
- package/container/container.js +4 -4
- package/core/base-elements.js +10 -10
- package/core/controllers.js +4 -4
- package/core/datetime.js +6 -6
- package/core/eventing.js +4 -4
- package/core/i18n/i18n.d.ts +2 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +43 -31
- package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-mixin.d.ts +3 -0
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/core/mixins.js +342 -248
- package/core/styles/badge.scss +3 -0
- package/core/styles/mixins/badge.scss +26 -1
- package/core/styles/mixins/font-face.scss +12 -12
- package/core/styles/mixins/link.scss +32 -8
- package/core/styles/standard-theme.scss +1 -0
- package/core/testing.js +14 -14
- package/core.css +3 -3
- package/custom-elements.json +7323 -169
- package/datepicker/datepicker-toggle.js +14 -14
- package/development/alert/alert-group.js +1 -1
- package/development/alert/alert.js +1 -1
- package/development/autocomplete.js +1 -1
- package/development/breadcrumb/breadcrumb.js +5 -2
- package/development/button/common.js +18 -14
- package/development/calendar.js +1 -1
- package/development/card/card.js +1 -1
- package/development/checkbox/checkbox-panel.js +1 -1
- package/development/core/i18n/i18n.d.ts +2 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +15 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts +3 -0
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins.js +159 -22
- package/development/datepicker/datepicker-toggle.js +1 -1
- package/development/dialog/dialog-title.js +1 -1
- package/development/expansion-panel/expansion-panel-header.js +1 -1
- package/development/expansion-panel/expansion-panel.js +1 -1
- package/development/file-selector/common.js +1 -1
- package/development/footer.js +1 -1
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +5 -2
- package/development/image.js +1 -1
- package/development/journey-header.js +1 -1
- package/development/link/common.js +19 -7
- package/development/link-list/common.js +1 -1
- package/development/map-container.js +1 -1
- package/development/menu/common/menu-action-common.d.ts +3 -0
- package/development/menu/common/menu-action-common.d.ts.map +1 -1
- package/development/menu/common.js +35 -12
- package/development/navigation/navigation-section.js +1 -1
- package/development/notification.js +1 -1
- package/development/overlay.js +1 -1
- package/development/radio-button/radio-button-panel.js +1 -1
- package/development/select/select.d.ts +4 -1
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +22 -4
- package/development/skiplink-list.js +1 -1
- package/development/slider.js +1 -1
- package/development/tabs/tab-label.js +1 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/toast.js +1 -1
- package/development/toggle/toggle/toggle.d.ts +25 -6
- package/development/toggle/toggle/toggle.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/development/toggle/toggle-option.js +21 -39
- package/development/toggle/toggle.js +57 -39
- package/development/train/train-formation.js +1 -1
- package/development/train/train.js +1 -1
- package/development/visual-checkbox.js +1 -1
- package/dialog/dialog-content.js +3 -3
- package/dialog/dialog-title.js +8 -8
- package/divider.js +12 -12
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/expansion-panel/expansion-panel.js +1 -1
- package/file-selector/common.js +9 -9
- package/file-selector/file-selector-dropzone.js +5 -5
- package/file-selector/file-selector.js +6 -6
- package/flip-card/flip-card-details.js +4 -4
- package/flip-card/flip-card-summary.js +9 -9
- package/font-characters-extension.css +3 -3
- package/footer.js +4 -4
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +7 -5
- package/header/header-button.js +5 -5
- package/header/header-link.js +5 -5
- package/icon.js +36 -36
- package/image.js +1 -1
- package/journey-header.js +5 -5
- package/link/block-link-button.js +4 -4
- package/link/block-link-static.js +9 -9
- package/link/block-link.js +4 -4
- package/link/common.js +28 -28
- package/link/link-button.js +7 -7
- package/link/link-static.js +7 -7
- package/link/link.js +4 -4
- package/link-list/common.js +15 -15
- package/loading-indicator-circle.js +11 -11
- package/map-container.js +5 -5
- package/menu/common/menu-action-common.d.ts +3 -0
- package/menu/common/menu-action-common.d.ts.map +1 -1
- package/menu/common.js +34 -30
- package/menu/menu-button.js +8 -8
- package/menu/menu-link.js +6 -6
- package/menu/menu.js +7 -7
- package/navigation/navigation-button.js +4 -4
- package/navigation/navigation-link.js +7 -7
- package/navigation/navigation-list.js +4 -4
- package/navigation/navigation-marker.js +3 -3
- package/navigation/navigation-section.js +1 -1
- package/notification.js +18 -18
- package/option/optgroup.js +11 -11
- package/overlay.js +14 -14
- package/package.json +6 -2
- package/paginator/common.js +6 -6
- package/popover/popover.js +13 -13
- package/radio-button/radio-button-panel.js +6 -6
- package/screen-reader-only.js +5 -5
- package/select/select.d.ts +4 -1
- package/select/select.d.ts.map +1 -1
- package/select.js +35 -28
- package/skiplink-list.js +3 -3
- package/slider.js +13 -13
- package/standard-theme.css +35 -3
- package/status.js +3 -3
- package/stepper/step-label.js +4 -4
- package/table/table-wrapper.js +4 -4
- package/tabs/tab-group.js +24 -24
- package/tabs/tab-label.js +1 -1
- package/tabs/tab.js +4 -4
- package/tag/tag-group.js +7 -7
- package/teaser-product/common.js +5 -5
- package/teaser-product/teaser-product-static.js +2 -2
- package/timetable-occupancy-icon.js +3 -3
- package/timetable-occupancy.js +6 -6
- package/toast.js +5 -5
- package/toggle/toggle/toggle.d.ts +25 -6
- package/toggle/toggle/toggle.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/toggle/toggle-option.js +44 -52
- package/toggle/toggle.js +103 -83
- package/toggle-check.js +5 -5
- package/train/train-formation.js +1 -1
- package/train/train.js +29 -29
- package/visual-checkbox.js +1 -1
package/menu/menu.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var y = (
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var y = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var k = (
|
|
5
|
-
var E = (
|
|
4
|
+
var k = (s, n, r) => n.has(s) || y("Cannot " + r);
|
|
5
|
+
var E = (s, n, r) => (k(s, n, "read from private field"), r ? r.call(s) : n.get(s)), x = (s, n, r) => n.has(s) ? y("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, r), h = (s, n, r, a) => (k(s, n, "write to private field"), a ? a.call(s, r) : n.set(s, r), r);
|
|
6
6
|
import { __esDecorate as m, __runInitializers as d } from "tslib";
|
|
7
7
|
import { css as O, html as C } from "lit";
|
|
8
8
|
import { customElement as N, property as A } from "lit/decorators.js";
|
|
@@ -27,9 +27,9 @@ const W = O`*,:before,:after{box-sizing:border-box}:host{display:contents;--sbb-
|
|
|
27
27
|
];
|
|
28
28
|
let X = 0, ue = (() => {
|
|
29
29
|
var c, l;
|
|
30
|
-
let
|
|
30
|
+
let s = [N("sbb-menu"), z({
|
|
31
31
|
popover: "manual"
|
|
32
|
-
})],
|
|
32
|
+
})], n, r = [], a, g = Z(H), _ = [], p, v, f = [], w = [];
|
|
33
33
|
return l = class extends g {
|
|
34
34
|
constructor() {
|
|
35
35
|
var e, t;
|
|
@@ -233,7 +233,7 @@ let X = 0, ue = (() => {
|
|
|
233
233
|
t.trigger = i;
|
|
234
234
|
} }, metadata: e }, null, _), m(l, null, v, { kind: "accessor", name: "listAccessibilityLabel", static: !1, private: !1, access: { has: (t) => "listAccessibilityLabel" in t, get: (t) => t.listAccessibilityLabel, set: (t, i) => {
|
|
235
235
|
t.listAccessibilityLabel = i;
|
|
236
|
-
} }, metadata: e }, f, w), m(null,
|
|
236
|
+
} }, metadata: e }, f, w), m(null, n = { value: a }, s, { kind: "class", name: a.name, metadata: e }, null, r), a = n.value, e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
237
237
|
})(), l.styles = W, d(a, r), a;
|
|
238
238
|
})();
|
|
239
239
|
export {
|
|
@@ -4,11 +4,11 @@ import { SbbButtonBaseElement as c } from "../core/base-elements.js";
|
|
|
4
4
|
import { SbbNavigationActionCommonElementMixin as u } from "./common.js";
|
|
5
5
|
let p = (() => {
|
|
6
6
|
var e;
|
|
7
|
-
let
|
|
8
|
-
return e = class extends
|
|
7
|
+
let n = [m("sbb-navigation-button")], l, o = [], t, i = u(c);
|
|
8
|
+
return e = class extends i {
|
|
9
9
|
}, t = e, (() => {
|
|
10
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
11
|
-
r(null, l = { value: t },
|
|
10
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
11
|
+
r(null, l = { value: t }, n, { kind: "class", name: t.name, metadata: a }, null, o), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(t, o);
|
|
12
12
|
})(), t;
|
|
13
13
|
})();
|
|
14
14
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as r, __runInitializers as s } from "tslib";
|
|
2
2
|
import { customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { SbbLinkBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbNavigationActionCommonElementMixin as b } from "./common.js";
|
|
5
5
|
let p = (() => {
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
return
|
|
9
|
-
},
|
|
6
|
+
var e;
|
|
7
|
+
let o = [m("sbb-navigation-link")], l, i = [], t, n = b(c);
|
|
8
|
+
return e = class extends n {
|
|
9
|
+
}, t = e, (() => {
|
|
10
10
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
11
|
-
|
|
12
|
-
})(),
|
|
11
|
+
r(null, l = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null, i), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(t, i);
|
|
12
|
+
})(), t;
|
|
13
13
|
})();
|
|
14
14
|
export {
|
|
15
15
|
p as SbbNavigationLinkElement
|
|
@@ -3,7 +3,7 @@ var p = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var g = (t, e, a) => e.has(t) || p("Cannot " + a);
|
|
5
5
|
var h = (t, e, a) => (g(t, e, "read from private field"), a ? a.call(t) : e.get(t)), _ = (t, e, a) => e.has(t) ? p("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), r = (t, e, a, i) => (g(t, e, "write to private field"), i ? i.call(t, a) : e.set(t, a), a);
|
|
6
|
-
import { __esDecorate as
|
|
6
|
+
import { __esDecorate as v, __runInitializers as b } from "tslib";
|
|
7
7
|
import { css as y, LitElement as x, html as z } from "lit";
|
|
8
8
|
import { customElement as k, property as S } from "lit/decorators.js";
|
|
9
9
|
import { slotState as L, forceType as E, omitEmptyConverter as w } from "../core/decorators.js";
|
|
@@ -47,9 +47,9 @@ let A = (() => {
|
|
|
47
47
|
}
|
|
48
48
|
}, o = new WeakMap(), i = s, (() => {
|
|
49
49
|
const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
50
|
-
m = [E(), S({ reflect: !0, converter: w })],
|
|
51
|
-
n.label =
|
|
52
|
-
} }, metadata: l }, d, f),
|
|
50
|
+
m = [E(), S({ reflect: !0, converter: w })], v(s, null, m, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (n) => "label" in n, get: (n) => n.label, set: (n, u) => {
|
|
51
|
+
n.label = u;
|
|
52
|
+
} }, metadata: l }, d, f), v(null, e = { value: i }, t, { kind: "class", name: i.name, metadata: l }, null, a), i = e.value, l && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
|
|
53
53
|
})(), s.styles = I, b(i, a), i;
|
|
54
54
|
})();
|
|
55
55
|
export {
|
|
@@ -12,7 +12,7 @@ import { SbbNamedSlotListMixin as C } from "../core/mixins.js";
|
|
|
12
12
|
const M = _`*,:before,:after{box-sizing:border-box}:host{--sbb-navigation-action-gap: var(--sbb-spacing-responsive-xs);--sbb-navigation-marker-position-x: var(--sbb-spacing-fixed-1x);--sbb-navigation-marker-position-y: unset;--sbb-navigation-marker-width: 1.0625rem;--sbb-navigation-marker-border: var(--sbb-border-width-1x);--sbb-navigation-marker-padding-inline-start: var(--sbb-spacing-fixed-6x);--sbb-navigation-marker-typo-line-height: var(--sbb-typo-line-height-titles);--sbb-navigation-margin-inline-start: var(--sbb-spacing-fixed-3x);--sbb-navigation-marker-margin-block: calc( 1em * var(--sbb-navigation-marker-typo-line-height) / 2 - var(--sbb-navigation-marker-border) / 2 );display:block}:host([size=s]){--sbb-navigation-action-gap: var(--sbb-spacing-fixed-2x);--sbb-navigation-marker-width: .5rem;--sbb-navigation-marker-typo-line-height: var(--sbb-typo-line-height-body-text);--sbb-navigation-margin-inline-start: var(--sbb-spacing-fixed-2x);--sbb-navigation-marker-position-x: calc( var(--sbb-navigation-marker-padding-inline-start) - var(--sbb-spacing-fixed-2x) );--sbb-navigation-marker-padding-inline-start: calc( var(--sbb-spacing-fixed-6x) + var(--sbb-spacing-fixed-1x) )}.sbb-navigation-marker{list-style:none;padding:0;font-size:inherit;--sbb-title-line-height: var(--sbb-typo-line-height-titles);--sbb-title-margin-block-start: 0;--sbb-title-margin-block-end: 0;margin:0;margin-block:var(--sbb-title-margin-block-start) var(--sbb-title-margin-block-end);font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height);letter-spacing:var(--sbb-typo-letter-spacing-titles);font-size:var(--sbb-title-font-size);--sbb-title-font-size: var(--sbb-font-size-title-4);position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:var(--sbb-navigation-action-gap);padding-inline-start:var(--sbb-navigation-marker-padding-inline-start)}.sbb-navigation-marker:before{content:"";position:absolute;opacity:0;inset-inline-start:var(--sbb-navigation-marker-position-x);inset-block-start:var(--sbb-navigation-marker-position-y);width:var(--sbb-navigation-marker-width);border-block-start:var(--sbb-navigation-marker-border) solid var(--sbb-color-storm);margin-block:var(--sbb-navigation-marker-margin-block);transition-duration:var(--sbb-disable-animation-duration, var(--sbb-animation-duration-6x));transition-timing-function:ease;transition-property:opacity,inset-block-start}:host([data-has-active-action]) .sbb-navigation-marker:before{opacity:1}@media (forced-colors: active){.sbb-navigation-marker:before{border-color:CanvasText}}:host([size=s]) .sbb-navigation-marker{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);font-weight:700}::slotted(:is(sbb-navigation-button,sbb-navigation-link)){margin-inline-start:var(--sbb-navigation-margin-inline-start)}`;
|
|
13
13
|
let O = (() => {
|
|
14
14
|
var o, n;
|
|
15
|
-
let i = [z("sbb-navigation-marker")], e, a = [], s, v = C(A), g,
|
|
15
|
+
let i = [z("sbb-navigation-marker")], e, a = [], s, v = C(A), g, m = [], d = [];
|
|
16
16
|
return n = class extends v {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
@@ -20,7 +20,7 @@ let O = (() => {
|
|
|
20
20
|
this.listChildLocalNames = [
|
|
21
21
|
"sbb-navigation-button",
|
|
22
22
|
"sbb-navigation-link"
|
|
23
|
-
], l(this, o, c(this,
|
|
23
|
+
], l(this, o, c(this, m, S() ? "s" : "l")), this._currentActiveAction = c(this, d), new y(this, {
|
|
24
24
|
skipInitial: !0,
|
|
25
25
|
callback: () => this._setMarkerPosition()
|
|
26
26
|
});
|
|
@@ -74,7 +74,7 @@ let O = (() => {
|
|
|
74
74
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
75
75
|
g = [w({ reflect: !0 })], x(n, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (r) => "size" in r, get: (r) => r.size, set: (r, b) => {
|
|
76
76
|
r.size = b;
|
|
77
|
-
} }, metadata: t },
|
|
77
|
+
} }, metadata: t }, m, d), x(null, e = { value: s }, i, { kind: "class", name: s.name, metadata: t }, null, a), s = e.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
78
78
|
})(), n.styles = M, c(s, a), s;
|
|
79
79
|
})();
|
|
80
80
|
export {
|
|
@@ -4,7 +4,7 @@ var D = (e) => {
|
|
|
4
4
|
var R = (e, a, s) => a.has(e) || D("Cannot " + s);
|
|
5
5
|
var m = (e, a, s) => (R(e, a, "read from private field"), s ? s.call(e) : a.get(e)), _ = (e, a, s) => a.has(e) ? D("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, s), c = (e, a, s, r) => (R(e, a, "write to private field"), r ? r.call(e, s) : a.set(e, s), s);
|
|
6
6
|
import { __esDecorate as h, __runInitializers as b } from "tslib";
|
|
7
|
-
import { css as K, LitElement as M,
|
|
7
|
+
import { css as K, LitElement as M, nothing as Z, html as j } from "lit";
|
|
8
8
|
import { customElement as G, property as p } from "lit/decorators.js";
|
|
9
9
|
import { ref as $ } from "lit/directives/ref.js";
|
|
10
10
|
import { setModalityOnNextFocus as P, getFirstFocusableElement as H, getFocusableElements as U } from "../core/a11y.js";
|
package/notification.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var B = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var M = (e, a,
|
|
5
|
-
var c = (e, a,
|
|
4
|
+
var M = (e, a, n) => a.has(e) || B("Cannot " + n);
|
|
5
|
+
var c = (e, a, n) => (M(e, a, "read from private field"), n ? n.call(e) : a.get(e)), d = (e, a, n) => a.has(e) ? B("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, n), s = (e, a, n, l) => (M(e, a, "write to private field"), l ? l.call(e, n) : a.set(e, n), n);
|
|
6
6
|
import { __runInitializers as r, __esDecorate as f } from "tslib";
|
|
7
7
|
import { ResizeController as F } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
-
import { css as G, LitElement as J,
|
|
8
|
+
import { css as G, LitElement as J, nothing as K, html as P } from "lit";
|
|
9
9
|
import { customElement as Q, property as y } from "lit/decorators.js";
|
|
10
10
|
import { SbbLanguageController as V } from "./core/controllers.js";
|
|
11
11
|
import { slotState as W, forceType as q, omitEmptyConverter as X } from "./core/decorators.js";
|
|
@@ -21,11 +21,11 @@ const ei = G`*,:before,:after{box-sizing:border-box}:host{--sbb-notification-mar
|
|
|
21
21
|
["success", "circle-tick-small"],
|
|
22
22
|
["warn", "circle-exclamation-point-small"],
|
|
23
23
|
["error", "circle-cross-small"]
|
|
24
|
-
]),
|
|
24
|
+
]), oi = 150;
|
|
25
25
|
let yi = (() => {
|
|
26
|
-
var m, p, v, _, g, u,
|
|
27
|
-
let e = [Q("sbb-notification"), W()], a,
|
|
28
|
-
var h = (
|
|
26
|
+
var m, p, v, _, g, u, o;
|
|
27
|
+
let e = [Q("sbb-notification"), W()], a, n = [], l, w = J, z, k = [], C = [], O, E = [], L = [], N, T = [], A = [], I, S = [], $ = [], D, R = [], H = [], Z, U = [], j = [];
|
|
28
|
+
var h = (o = class extends w {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
d(this, m);
|
|
@@ -119,7 +119,7 @@ let yi = (() => {
|
|
|
119
119
|
this.style.setProperty("--sbb-notification-height", t);
|
|
120
120
|
}
|
|
121
121
|
_onNotificationResize() {
|
|
122
|
-
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"),
|
|
122
|
+
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"), oi), setTimeout(() => this._setNotificationHeight()));
|
|
123
123
|
}
|
|
124
124
|
_onNotificationAnimationEnd(t) {
|
|
125
125
|
this._state === "opening" && t.animationName === "open" && this._handleOpening(), this._state === "closing" && t.animationName === "close-height" && this._handleClosing();
|
|
@@ -164,27 +164,27 @@ let yi = (() => {
|
|
|
164
164
|
</div>
|
|
165
165
|
`;
|
|
166
166
|
}
|
|
167
|
-
}, m = new WeakMap(), p = new WeakMap(), v = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), u = new WeakMap(), l =
|
|
167
|
+
}, m = new WeakMap(), p = new WeakMap(), v = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), u = new WeakMap(), l = o, (() => {
|
|
168
168
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(w[Symbol.metadata] ?? null) : void 0;
|
|
169
|
-
z = [y({ reflect: !0 })], O = [q(), y({ attribute: "title-content", reflect: !0, converter: X })], N = [y({ attribute: "title-level" })], I = [q(), y({ reflect: !0, type: Boolean })], D = [y({ reflect: !0 })], Z = [y({ reflect: !0 })], f(
|
|
169
|
+
z = [y({ reflect: !0 })], O = [q(), y({ attribute: "title-content", reflect: !0, converter: X })], N = [y({ attribute: "title-level" })], I = [q(), y({ reflect: !0, type: Boolean })], D = [y({ reflect: !0 })], Z = [y({ reflect: !0 })], f(o, null, z, { kind: "accessor", name: "type", static: !1, private: !1, access: { has: (i) => "type" in i, get: (i) => i.type, set: (i, b) => {
|
|
170
170
|
i.type = b;
|
|
171
|
-
} }, metadata: t }, k, C), f(
|
|
171
|
+
} }, metadata: t }, k, C), f(o, null, O, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (i) => "titleContent" in i, get: (i) => i.titleContent, set: (i, b) => {
|
|
172
172
|
i.titleContent = b;
|
|
173
|
-
} }, metadata: t }, E, L), f(
|
|
173
|
+
} }, metadata: t }, E, L), f(o, null, N, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (i) => "titleLevel" in i, get: (i) => i.titleLevel, set: (i, b) => {
|
|
174
174
|
i.titleLevel = b;
|
|
175
|
-
} }, metadata: t }, T, A), f(
|
|
175
|
+
} }, metadata: t }, T, A), f(o, null, I, { kind: "accessor", name: "readonly", static: !1, private: !1, access: { has: (i) => "readonly" in i, get: (i) => i.readonly, set: (i, b) => {
|
|
176
176
|
i.readonly = b;
|
|
177
|
-
} }, metadata: t }, S, $), f(
|
|
177
|
+
} }, metadata: t }, S, $), f(o, null, D, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (i) => "size" in i, get: (i) => i.size, set: (i, b) => {
|
|
178
178
|
i.size = b;
|
|
179
|
-
} }, metadata: t }, R, H), f(
|
|
179
|
+
} }, metadata: t }, R, H), f(o, null, Z, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (i) => "animation" in i, get: (i) => i.animation, set: (i, b) => {
|
|
180
180
|
i.animation = b;
|
|
181
|
-
} }, metadata: t }, U, j), f(null, a = { value: l }, e, { kind: "class", name: l.name, metadata: t }, null,
|
|
182
|
-
})(),
|
|
181
|
+
} }, metadata: t }, U, j), f(null, a = { value: l }, e, { kind: "class", name: l.name, metadata: t }, null, n), h = l = a.value, t && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
182
|
+
})(), o.styles = ei, o.events = {
|
|
183
183
|
willOpen: "willOpen",
|
|
184
184
|
didOpen: "didOpen",
|
|
185
185
|
willClose: "willClose",
|
|
186
186
|
didClose: "didClose"
|
|
187
|
-
}, r(l,
|
|
187
|
+
}, r(l, n), o);
|
|
188
188
|
return h = l;
|
|
189
189
|
})();
|
|
190
190
|
export {
|
package/option/optgroup.js
CHANGED
|
@@ -13,9 +13,9 @@ import { SbbDisabledMixin as M, SbbHydrationMixin as $ } from "../core/mixins.js
|
|
|
13
13
|
import "../divider.js";
|
|
14
14
|
const N = L`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-divider-spacing: 0;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-2x)}:host([data-variant=select]){--sbb-optgroup-divider-spacing: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-padding-start: 0;--sbb-optgroup-label-font-size: inherit}:host([data-variant=select]:first-child){--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x)}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block:var(--sbb-optgroup-label-padding-start) var(--sbb-spacing-fixed-2x)}:host([data-variant=select][data-multiple]) .sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);padding-inline-start:calc(var(--sbb-spacing-responsive-xxxs) + var(--sbb-spacing-fixed-8x))}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-optgroup-divider-spacing)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}`, x = B;
|
|
15
15
|
let R = (() => {
|
|
16
|
-
var u, g, h,
|
|
17
|
-
let i = [P({ role: x ? null : "group" })], a, l = [], s, c = M($(j)),
|
|
18
|
-
return
|
|
16
|
+
var u, g, h, b;
|
|
17
|
+
let i = [P({ role: x ? null : "group" })], a, l = [], s, c = M($(j)), n, y = [], r = [], d, A = [], z = [], G, S = [], k = [];
|
|
18
|
+
return b = class extends c {
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
21
|
m(this, u, p(this, y, ""));
|
|
@@ -99,20 +99,20 @@ let R = (() => {
|
|
|
99
99
|
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
100
100
|
`;
|
|
101
101
|
}
|
|
102
|
-
}, u = new WeakMap(), g = new WeakMap(), h = new WeakMap(), s =
|
|
102
|
+
}, u = new WeakMap(), g = new WeakMap(), h = new WeakMap(), s = b, (() => {
|
|
103
103
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
104
|
-
|
|
104
|
+
n = [U(), D()], d = [T()], G = [T()], v(b, null, n, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, o) => {
|
|
105
105
|
e.label = o;
|
|
106
|
-
} }, metadata: t }, y, r), v(
|
|
106
|
+
} }, metadata: t }, y, r), v(b, null, d, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, o) => {
|
|
107
107
|
e.negative = o;
|
|
108
|
-
} }, metadata: t }, A, z), v(
|
|
108
|
+
} }, metadata: t }, A, z), v(b, null, G, { kind: "accessor", name: "_inertAriaGroups", static: !1, private: !1, access: { has: (e) => "_inertAriaGroups" in e, get: (e) => e._inertAriaGroups, set: (e, o) => {
|
|
109
109
|
e._inertAriaGroups = o;
|
|
110
110
|
} }, metadata: t }, S, k), v(null, a = { value: s }, i, { kind: "class", name: s.name, metadata: t }, null, l), s = a.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
111
|
-
})(),
|
|
111
|
+
})(), b.styles = N, p(s, l), s;
|
|
112
112
|
})(), et = (() => {
|
|
113
|
-
var
|
|
113
|
+
var n;
|
|
114
114
|
let i = [E("sbb-optgroup")], a, l = [], s, c = R;
|
|
115
|
-
return
|
|
115
|
+
return n = class extends c {
|
|
116
116
|
get options() {
|
|
117
117
|
var r;
|
|
118
118
|
return Array.from(((r = this.querySelectorAll) == null ? void 0 : r.call(this, "sbb-option")) ?? []);
|
|
@@ -132,7 +132,7 @@ let R = (() => {
|
|
|
132
132
|
var r, d;
|
|
133
133
|
(r = this.closest) != null && r.call(this, "sbb-autocomplete") ? this.setAttribute("data-variant", "autocomplete") : (d = this.closest) != null && d.call(this, "sbb-select") && this.setAttribute("data-variant", "select");
|
|
134
134
|
}
|
|
135
|
-
}, s =
|
|
135
|
+
}, s = n, (() => {
|
|
136
136
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
137
137
|
v(null, a = { value: s }, i, { kind: "class", name: s.name, metadata: r }, null, l), s = a.value, r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r }), p(s, l);
|
|
138
138
|
})(), s;
|
package/overlay.js
CHANGED
|
@@ -6,7 +6,7 @@ var x = (s, i, r) => (I(s, i, "read from private field"), r ? r.call(s) : i.get(
|
|
|
6
6
|
import { __runInitializers as b, __esDecorate as p } from "tslib";
|
|
7
7
|
import { css as M, nothing as N } from "lit";
|
|
8
8
|
import { property as A, customElement as P } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { unsafeStatic as $, html as D } from "lit/static-html.js";
|
|
10
10
|
import { SbbFocusHandler as V, setModalityOnNextFocus as j, getFirstFocusableElement as Y } from "./core/a11y.js";
|
|
11
11
|
import { hostAttributes as Z, forceType as z } from "./core/decorators.js";
|
|
12
12
|
import { SbbScrollHandler as q, isZeroAnimationDuration as K } from "./core/dom.js";
|
|
@@ -25,11 +25,11 @@ let se = (() => {
|
|
|
25
25
|
let s = [Z({
|
|
26
26
|
popover: "manual"
|
|
27
27
|
})], i, r = [], o, O = ae(X), E, B = [], S = [];
|
|
28
|
-
var
|
|
28
|
+
var _ = (h = class extends O {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
L(this, v);
|
|
32
|
-
d(this, v, b(this, B, "")), this.didClose = (b(this, S), new G(this,
|
|
32
|
+
d(this, v, b(this, B, "")), this.didClose = (b(this, S), new G(this, _.events.didClose, { cancelable: !0 })), this.focusHandler = new V(), this.scrollHandler = new q(), this.ariaLiveRefToggle = !1, this.language = new ee(this), this.inertController = new te(this);
|
|
33
33
|
}
|
|
34
34
|
/** This will be forwarded as aria-label to the relevant nested element to describe the purpose of the overlay. */
|
|
35
35
|
get accessibilityLabel() {
|
|
@@ -96,32 +96,32 @@ let se = (() => {
|
|
|
96
96
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(O[Symbol.metadata] ?? null) : void 0;
|
|
97
97
|
E = [z(), A({ attribute: "accessibility-label" })], p(h, null, E, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (l) => "accessibilityLabel" in l, get: (l) => l.accessibilityLabel, set: (l, u) => {
|
|
98
98
|
l.accessibilityLabel = u;
|
|
99
|
-
} }, metadata: a }, B, S), p(null, i = { value: o }, s, { kind: "class", name: o.name, metadata: a }, null, r),
|
|
99
|
+
} }, metadata: a }, B, S), p(null, i = { value: o }, s, { kind: "class", name: o.name, metadata: a }, null, r), _ = o = i.value, a && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), b(o, r);
|
|
100
100
|
})(), h);
|
|
101
|
-
return
|
|
101
|
+
return _ = o;
|
|
102
102
|
})();
|
|
103
103
|
const ie = M`*,:before,:after{box-sizing:border-box}:host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: var(--sbb-color-black-alpha-30);--sbb-scrollbar-color-hover: var(--sbb-color-black-alpha-60);--sbb-scrollbar-track-color: transparent;--sbb-overlay-background-color: var(--sbb-color-milk);--sbb-overlay-height: 100%;--sbb-overlay-inset: 0 auto auto 0;--sbb-overlay-padding-block: calc(var(--sbb-spacing-fixed-14x) + var(--sbb-spacing-responsive-l));--sbb-overlay-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-overlay-animation-easing: ease;--sbb-overlay-pointer-events: none;display:none;position:fixed;inset:var(--sbb-overlay-inset);z-index:var(--sbb-overlay-z-index, var(--sbb-overlay-default-z-index))}:host([data-state]:not([data-state=closed])){display:block}:host(:is([data-state=opening],[data-state=opened])){--sbb-overlay-pointer-events: all}:host([negative]){--sbb-scrollbar-color: var(--sbb-color-white-alpha-30);--sbb-scrollbar-color-hover: var(--sbb-color-white-alpha-60);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-overlay-color: var(--sbb-color-white);--sbb-overlay-background-color: var(--sbb-color-midnight)}:host(:not([data-state=closed])){--sbb-overlay-inset: 0}.sbb-overlay__container{background-color:var(--sbb-overlay-background-color);pointer-events:var(--sbb-overlay-pointer-events);display:none;align-items:center;position:fixed;inset:var(--sbb-overlay-inset)}:host([data-state]:not([data-state=closed])) .sbb-overlay__container{display:flex;animation-name:open;animation-duration:var(--sbb-overlay-animation-duration);animation-timing-function:var(--sbb-overlay-animation-easing)}:host([data-state][data-state=closing]) .sbb-overlay__container{pointer-events:none;animation-name:close}.sbb-overlay{position:absolute;inset-inline:0;margin:auto;padding:0;border:none;height:var(--sbb-overlay-height);overflow:auto;color:var(--sbb-overlay-color)}:host([data-state]:not([data-state=closed])) .sbb-overlay{animation-name:open-move-in;animation-duration:var(--sbb-overlay-animation-duration);animation-timing-function:var(--sbb-overlay-animation-easing)}:host([data-state][data-state=closing]) .sbb-overlay{animation-name:close-move-out}.sbb-overlay__wrapper{display:flex;flex-direction:column;width:100%;height:var(--sbb-overlay-height);outline:none;position:fixed}@media (min-width: 52.5rem){.sbb-overlay__wrapper{position:sticky;inset-block-start:0;height:auto}}.sbb-overlay__header{position:absolute;inset-inline-start:0;display:flex;pointer-events:none;align-items:start;justify-content:space-between;width:100%;padding:var(--sbb-spacing-responsive-xs);padding-block-end:0;z-index:1}.sbb-overlay__header *{pointer-events:all}.sbb-overlay__close{margin-inline-start:auto}.sbb-overlay__content{--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-overlay__content::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-overlay__content::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-overlay__content::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-overlay__content::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-overlay__content::-webkit-scrollbar-button,.sbb-overlay__content::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-overlay__content{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-overlay__content{height:100vh;overflow:auto;-webkit-overflow-scrolling:touch}.sbb-overlay__content-container{padding-block:var(--sbb-overlay-padding-block)}@keyframes open{0%{opacity:0}to{opacity:1}}@keyframes open-move-in{0%{transform:translateY(var(--sbb-spacing-fixed-4x))}to{transform:translateY(0)}}@keyframes close{0%{opacity:1}to{opacity:0}}@keyframes close-move-out{0%{transform:translateY(0)}to{transform:translateY(var(--sbb-spacing-fixed-4x))}}`;
|
|
104
104
|
let we = (() => {
|
|
105
|
-
var
|
|
106
|
-
let s = [P("sbb-overlay")], i, r = [], o, O = se, E, B = [], S = [],
|
|
105
|
+
var f, g, k, C, n;
|
|
106
|
+
let s = [P("sbb-overlay")], i, r = [], o, O = se, E, B = [], S = [], _, v = [], h = [], R, F = [], a = [], l, u = [], y = [];
|
|
107
107
|
var T = (n = class extends O {
|
|
108
108
|
constructor() {
|
|
109
109
|
super(...arguments);
|
|
110
|
-
L(this,
|
|
110
|
+
L(this, f);
|
|
111
111
|
L(this, g);
|
|
112
112
|
L(this, k);
|
|
113
113
|
L(this, C);
|
|
114
|
-
d(this,
|
|
114
|
+
d(this, f, b(this, B, !1)), d(this, g, (b(this, S), b(this, v, !1))), d(this, k, (b(this, h), b(this, F, ""))), d(this, C, (b(this, a), b(this, u, ""))), this.closeAttribute = (b(this, y), "sbb-overlay-close"), this._backClick = new G(this, T.events.backClick), this._overlayContentElement = null;
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Whether to allow the overlay content to stretch to full width.
|
|
118
118
|
* By default, the content has the appropriate page size.
|
|
119
119
|
*/
|
|
120
120
|
get expanded() {
|
|
121
|
-
return x(this,
|
|
121
|
+
return x(this, f);
|
|
122
122
|
}
|
|
123
123
|
set expanded(e) {
|
|
124
|
-
d(this,
|
|
124
|
+
d(this, f, e);
|
|
125
125
|
}
|
|
126
126
|
/** Whether a back button is displayed next to the title. */
|
|
127
127
|
get backButton() {
|
|
@@ -220,11 +220,11 @@ let we = (() => {
|
|
|
220
220
|
<sbb-screen-reader-only aria-live="polite"></sbb-screen-reader-only>
|
|
221
221
|
`;
|
|
222
222
|
}
|
|
223
|
-
},
|
|
223
|
+
}, f = new WeakMap(), g = new WeakMap(), k = new WeakMap(), C = new WeakMap(), o = n, (() => {
|
|
224
224
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(O[Symbol.metadata] ?? null) : void 0;
|
|
225
|
-
E = [z(), A({ reflect: !0, type: Boolean })],
|
|
225
|
+
E = [z(), A({ reflect: !0, type: Boolean })], _ = [z(), A({ attribute: "back-button", type: Boolean })], R = [z(), A({ attribute: "accessibility-close-label" })], l = [z(), A({ attribute: "accessibility-back-label" })], p(n, null, E, { kind: "accessor", name: "expanded", static: !1, private: !1, access: { has: (t) => "expanded" in t, get: (t) => t.expanded, set: (t, c) => {
|
|
226
226
|
t.expanded = c;
|
|
227
|
-
} }, metadata: e }, B, S), p(n, null,
|
|
227
|
+
} }, metadata: e }, B, S), p(n, null, _, { kind: "accessor", name: "backButton", static: !1, private: !1, access: { has: (t) => "backButton" in t, get: (t) => t.backButton, set: (t, c) => {
|
|
228
228
|
t.backButton = c;
|
|
229
229
|
} }, metadata: e }, v, h), p(n, null, R, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (t) => "accessibilityCloseLabel" in t, get: (t) => t.accessibilityCloseLabel, set: (t, c) => {
|
|
230
230
|
t.accessibilityCloseLabel = c;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"customElements": "custom-elements.json",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lit-labs/observers": "^2.0.
|
|
14
|
+
"@lit-labs/observers": "^2.0.5",
|
|
15
15
|
"lit": "^3.2.1",
|
|
16
16
|
"tslib": "^2.8.1"
|
|
17
17
|
},
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"style": "./animation.css",
|
|
46
46
|
"default": "./animation.css"
|
|
47
47
|
},
|
|
48
|
+
"./badge.css": {
|
|
49
|
+
"style": "./badge.css",
|
|
50
|
+
"default": "./badge.css"
|
|
51
|
+
},
|
|
48
52
|
"./core.css": {
|
|
49
53
|
"style": "./core.css",
|
|
50
54
|
"default": "./core.css"
|
package/paginator/common.js
CHANGED
|
@@ -2,7 +2,7 @@ var $ = (a) => {
|
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
4
|
var k = (a, i, s) => i.has(a) || $("Cannot " + s);
|
|
5
|
-
var _ = (a, i, s) => (k(a, i, "read from private field"), s ? s.call(a) : i.get(a)), x = (a, i, s) => i.has(a) ? $("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(a) : i.set(a, s),
|
|
5
|
+
var _ = (a, i, s) => (k(a, i, "read from private field"), s ? s.call(a) : i.get(a)), x = (a, i, s) => i.has(a) ? $("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(a) : i.set(a, s), d = (a, i, s, m) => (k(a, i, "write to private field"), m ? m.call(a, s) : i.set(a, s), s);
|
|
6
6
|
import { __runInitializers as h, __esDecorate as p } from "tslib";
|
|
7
7
|
import { html as O } from "lit";
|
|
8
8
|
import { property as c } from "lit/decorators.js";
|
|
@@ -19,13 +19,13 @@ const ae = (a) => (() => {
|
|
|
19
19
|
var l, g, n;
|
|
20
20
|
let s = [D({
|
|
21
21
|
role: "group"
|
|
22
|
-
})],
|
|
22
|
+
})], m, z = [], o, I = B(T(a)), u = [], f, P, S, v, y = [], E = [], N, C = [], M = [];
|
|
23
23
|
var b = (n = class extends I {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
x(this, l);
|
|
27
27
|
x(this, g);
|
|
28
|
-
this._length = (h(this, u), 0), this._pageSize = 10, this._pageIndex = 0,
|
|
28
|
+
this._length = (h(this, u), 0), this._pageSize = 10, this._pageIndex = 0, d(this, l, h(this, y, "start")), d(this, g, (h(this, E), h(this, C, L() ? "s" : "m"))), this._page = (h(this, M), new R(this, b.events.page, { composed: !0, bubbles: !0 })), this.language = new w(this);
|
|
29
29
|
}
|
|
30
30
|
/** Total number of items. */
|
|
31
31
|
set length(e) {
|
|
@@ -54,7 +54,7 @@ const ae = (a) => (() => {
|
|
|
54
54
|
return _(this, l);
|
|
55
55
|
}
|
|
56
56
|
set pagerPosition(e) {
|
|
57
|
-
|
|
57
|
+
d(this, l, e);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Size variant, either m or s.
|
|
@@ -64,7 +64,7 @@ const ae = (a) => (() => {
|
|
|
64
64
|
return _(this, g);
|
|
65
65
|
}
|
|
66
66
|
set size(e) {
|
|
67
|
-
|
|
67
|
+
d(this, g, e);
|
|
68
68
|
}
|
|
69
69
|
updated(e) {
|
|
70
70
|
super.updated(e), this.shadowRoot.querySelector("sbb-screen-reader-only").textContent = this._currentPageLabel();
|
|
@@ -138,7 +138,7 @@ const ae = (a) => (() => {
|
|
|
138
138
|
t.pagerPosition = r;
|
|
139
139
|
} }, metadata: e }, y, E), p(n, null, N, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, r) => {
|
|
140
140
|
t.size = r;
|
|
141
|
-
} }, metadata: e }, C, M), p(null,
|
|
141
|
+
} }, metadata: e }, C, M), p(null, m = { value: o }, s, { kind: "class", name: o.name, metadata: e }, null, z), b = o = m.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
142
142
|
})(), n.events = {
|
|
143
143
|
page: "page"
|
|
144
144
|
}, h(o, z), n);
|
package/popover/popover.js
CHANGED
|
@@ -17,11 +17,11 @@ import { i18nClosePopover as ce } from "../core/i18n.js";
|
|
|
17
17
|
import { SbbHydrationMixin as de } from "../core/mixins.js";
|
|
18
18
|
import { isEventOnElement as V, removeAriaOverlayTriggerAttributes as ve, setAriaOverlayTriggerAttributes as ue, getElementPosition as ge } from "../core/overlay.js";
|
|
19
19
|
import "../button/secondary-button.js";
|
|
20
|
-
const _e = G`*,:before,:after{box-sizing:border-box}:host{--sbb-popover-position: absolute;--sbb-popover-position-x: 0;--sbb-popover-position-y: 0;--sbb-popover-arrow-size: var(--sbb-spacing-fixed-4x);--sbb-popover-arrow-position-x: 0;--sbb-popover-max-width: calc(100% - var(--sbb-spacing-fixed-2x));--sbb-popover-inset: 0 auto auto 0;--sbb-popover-border-radius: var(--sbb-border-radius-8x);--sbb-popover-padding: var(--sbb-spacing-fixed-4x);--sbb-popover-background: var(--sbb-color-white);--sbb-popover-color: var(--sbb-color-charcoal);--sbb-popover-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-popover-animation-easing: ease-out;--sbb-popover-transform: translateY(var(--sbb-spacing-fixed-2x));--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:none}:host([data-state]:not([data-state=closed])){display:block;--sbb-popover-inset: 0}:host([data-position=above]){--sbb-popover-transform: translateY(calc(var(--sbb-spacing-fixed-2x) * -1))}.sbb-popover:after,.sbb-popover__content:before{content:"";position:absolute;display:block;width:var(--sbb-popover-arrow-size);height:var(--sbb-popover-arrow-size);left:var(--sbb-popover-arrow-position-x);bottom:calc(100% - var(--sbb-popover-arrow-size) / 2);background-color:var(--sbb-popover-background);border-radius:var(--sbb-border-radius-2x) 0;transform:rotate(45deg)}.sbb-popover__container{position:fixed;inset:var(--sbb-popover-inset);pointer-events:none;z-index:var(--sbb-popover-z-index, var(--sbb-overlay-default-z-index));color:var(--sbb-popover-color)}.sbb-popover{box-shadow:var(--sbb-shadow-elevation-level-5-shadow-2-offset-x) var(--sbb-shadow-elevation-level-5-shadow-2-offset-y) var(--sbb-shadow-elevation-level-5-shadow-2-blur) var(--sbb-shadow-elevation-level-5-shadow-2-spread) var(--sbb-shadow-elevation-level-5-hard-2-color),var(--sbb-shadow-elevation-level-5-shadow-1-offset-x) var(--sbb-shadow-elevation-level-5-shadow-1-offset-y) var(--sbb-shadow-elevation-level-5-shadow-1-blur) var(--sbb-shadow-elevation-level-5-shadow-1-spread) var(--sbb-shadow-elevation-level-5-hard-1-color);display:none;position:var(--sbb-popover-position);pointer-events:all;top:var(--sbb-popover-position-y);bottom:unset;left:var(--sbb-popover-position-x);right:unset;border:none;border-radius:var(--sbb-popover-border-radius);padding:0;max-width:var(--sbb-popover-max-width);width:max-content;background-color:var(--sbb-popover-background);outline:none}.sbb-popover:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch]){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}:host([data-state]:not([data-state=closed])) .sbb-popover{display:block;animation-name:open;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}:host([data-state][data-state=closing]) .sbb-popover{pointer-events:none;animation-name:close;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}.sbb-popover:after{z-index:-1;box-shadow:var(--sbb-shadow-elevation-level-5-shadow-2-offset-x) var(--sbb-shadow-elevation-level-5-shadow-2-offset-y) var(--sbb-shadow-elevation-level-5-shadow-2-blur) var(--sbb-shadow-elevation-level-5-shadow-2-spread) var(--sbb-shadow-elevation-level-5-hard-2-color),var(--sbb-shadow-elevation-level-5-shadow-1-offset-x) var(--sbb-shadow-elevation-level-5-shadow-1-offset-y) var(--sbb-shadow-elevation-level-5-shadow-1-blur) var(--sbb-shadow-elevation-level-5-shadow-1-spread) var(--sbb-shadow-elevation-level-5-hard-1-color)}@media (forced-colors: active){.sbb-popover:after{outline:var(--sbb-border-width-1x) solid CanvasText}}:host([data-position=above]) .sbb-popover:after{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@media (forced-colors: active){.sbb-popover{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-popover:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background-color:transparent}:host([data-position=below]) .sbb-popover:before{inset-block-start:calc(-1 * var(--sbb-spacing-fixed-6x))}:host([data-position=above]) .sbb-popover:before{inset-block-end:calc(-1 * var(--sbb-spacing-fixed-6x))}.sbb-popover__content{display:flex;gap:var(--sbb-spacing-fixed-4x);border-radius:var(--sbb-popover-border-radius);padding:var(--sbb-popover-padding);outline:none;background-color:var(--sbb-popover-background);overflow:hidden;flex-direction:row-reverse}:host([data-position=above]) .sbb-popover__content:before{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@keyframes open{0%{opacity:0;transform:var(--sbb-popover-transform)}to{opacity:1;transform:translateY(0)}}@keyframes close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:var(--sbb-popover-transform)}}`,
|
|
20
|
+
const _e = G`*,:before,:after{box-sizing:border-box}:host{--sbb-popover-position: absolute;--sbb-popover-position-x: 0;--sbb-popover-position-y: 0;--sbb-popover-arrow-size: var(--sbb-spacing-fixed-4x);--sbb-popover-arrow-position-x: 0;--sbb-popover-max-width: calc(100% - var(--sbb-spacing-fixed-2x));--sbb-popover-inset: 0 auto auto 0;--sbb-popover-border-radius: var(--sbb-border-radius-8x);--sbb-popover-padding: var(--sbb-spacing-fixed-4x);--sbb-popover-background: var(--sbb-color-white);--sbb-popover-color: var(--sbb-color-charcoal);--sbb-popover-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-popover-animation-easing: ease-out;--sbb-popover-transform: translateY(var(--sbb-spacing-fixed-2x));--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:none}:host([data-state]:not([data-state=closed])){display:block;--sbb-popover-inset: 0}:host([data-position=above]){--sbb-popover-transform: translateY(calc(var(--sbb-spacing-fixed-2x) * -1))}.sbb-popover:after,.sbb-popover__content:before{content:"";position:absolute;display:block;width:var(--sbb-popover-arrow-size);height:var(--sbb-popover-arrow-size);left:var(--sbb-popover-arrow-position-x);bottom:calc(100% - var(--sbb-popover-arrow-size) / 2);background-color:var(--sbb-popover-background);border-radius:var(--sbb-border-radius-2x) 0;transform:rotate(45deg)}.sbb-popover__container{position:fixed;inset:var(--sbb-popover-inset);pointer-events:none;z-index:var(--sbb-popover-z-index, var(--sbb-overlay-default-z-index));color:var(--sbb-popover-color)}.sbb-popover{box-shadow:var(--sbb-shadow-elevation-level-5-shadow-2-offset-x) var(--sbb-shadow-elevation-level-5-shadow-2-offset-y) var(--sbb-shadow-elevation-level-5-shadow-2-blur) var(--sbb-shadow-elevation-level-5-shadow-2-spread) var(--sbb-shadow-elevation-level-5-hard-2-color),var(--sbb-shadow-elevation-level-5-shadow-1-offset-x) var(--sbb-shadow-elevation-level-5-shadow-1-offset-y) var(--sbb-shadow-elevation-level-5-shadow-1-blur) var(--sbb-shadow-elevation-level-5-shadow-1-spread) var(--sbb-shadow-elevation-level-5-hard-1-color);display:none;position:var(--sbb-popover-position);pointer-events:all;top:var(--sbb-popover-position-y);bottom:unset;left:var(--sbb-popover-position-x);right:unset;border:none;border-radius:var(--sbb-popover-border-radius);padding:0;max-width:var(--sbb-popover-max-width);width:max-content;background-color:var(--sbb-popover-background);outline:none}.sbb-popover:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch]){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}:host([data-state]:not([data-state=closed])) .sbb-popover{display:block;animation-name:open;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}:host([data-state][data-state=closing]) .sbb-popover{pointer-events:none;animation-name:close;animation-duration:var(--sbb-popover-animation-duration);animation-timing-function:var(--sbb-popover-animation-easing)}.sbb-popover:after{z-index:-1;box-shadow:var(--sbb-shadow-elevation-level-5-shadow-2-offset-x) var(--sbb-shadow-elevation-level-5-shadow-2-offset-y) var(--sbb-shadow-elevation-level-5-shadow-2-blur) var(--sbb-shadow-elevation-level-5-shadow-2-spread) var(--sbb-shadow-elevation-level-5-hard-2-color),var(--sbb-shadow-elevation-level-5-shadow-1-offset-x) var(--sbb-shadow-elevation-level-5-shadow-1-offset-y) var(--sbb-shadow-elevation-level-5-shadow-1-blur) var(--sbb-shadow-elevation-level-5-shadow-1-spread) var(--sbb-shadow-elevation-level-5-hard-1-color)}@media (forced-colors: active){.sbb-popover:after{outline:var(--sbb-border-width-1x) solid CanvasText}}:host([data-position=above]) .sbb-popover:after{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@media (forced-colors: active){.sbb-popover{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-popover:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background-color:transparent}:host([data-position=below]) .sbb-popover:before{inset-block-start:calc(-1 * var(--sbb-spacing-fixed-6x))}:host([data-position=above]) .sbb-popover:before{inset-block-end:calc(-1 * var(--sbb-spacing-fixed-6x))}.sbb-popover__content{display:flex;gap:var(--sbb-spacing-fixed-4x);border-radius:var(--sbb-popover-border-radius);padding:var(--sbb-popover-padding);outline:none;background-color:var(--sbb-popover-background);overflow:hidden;flex-direction:row-reverse}:host([data-position=above]) .sbb-popover__content:before{top:calc(100% - var(--sbb-popover-arrow-size) / 2)}@keyframes open{0%{opacity:0;transform:var(--sbb-popover-transform)}to{opacity:1;transform:translateY(0)}}@keyframes close{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:var(--sbb-popover-transform)}}`, me = 16, fe = 32;
|
|
21
21
|
let ye = 0;
|
|
22
22
|
const T = /* @__PURE__ */ new Set(), we = X ? !1 : matchMedia(ae).matches;
|
|
23
23
|
let He = (() => {
|
|
24
|
-
var d, v, u, g, _,
|
|
24
|
+
var d, v, u, g, _, m, a;
|
|
25
25
|
let s = [ee("sbb-popover"), le({ popover: "manual" })], i, r = [], b, k = de(re), L, D = [], S = [], P, z = [], O = [], A, B = [], F = [], M, I = [], H = [], R, $ = [], N = [], U, Y = [], Z = [];
|
|
26
26
|
var C = (a = class extends k {
|
|
27
27
|
constructor() {
|
|
@@ -31,8 +31,8 @@ let He = (() => {
|
|
|
31
31
|
h(this, u);
|
|
32
32
|
h(this, g);
|
|
33
33
|
h(this, _);
|
|
34
|
-
h(this,
|
|
35
|
-
n(this, d, l(this, D, null)), n(this, v, (l(this, S), l(this, z, !1))), n(this, u, (l(this, O), l(this, B, !1))), n(this, g, (l(this, F), l(this, I, 0))), n(this, _, (l(this, H), l(this, $, 0))), n(this,
|
|
34
|
+
h(this, m);
|
|
35
|
+
n(this, d, l(this, D, null)), n(this, v, (l(this, S), l(this, z, !1))), n(this, u, (l(this, O), l(this, B, !1))), n(this, g, (l(this, F), l(this, I, 0))), n(this, _, (l(this, H), l(this, $, 0))), n(this, m, (l(this, N), l(this, Y, ""))), this.willClose = (l(this, Z), new Q(this, C.events.willClose, { cancelable: !0 })), this.didClose = new Q(this, C.events.didClose, { cancelable: !0 }), this._skipCloseFocus = !1, this._focusHandler = new oe(), this._hoverTrigger = !1, this._language = new ne(this), this._pointerDownListener = (e) => {
|
|
36
36
|
this._isPointerDownEventOnPopover = V(this._overlay, e);
|
|
37
37
|
}, this._closeOnBackdropClick = (e) => {
|
|
38
38
|
!this._isPointerDownEventOnPopover && !V(this._overlay, e) && (this._nextFocusedElement = e.composedPath().filter((t) => t instanceof window.HTMLElement).find((t) => t.matches(se)), clearTimeout(this._closeTimeout), this.close());
|
|
@@ -86,18 +86,18 @@ let He = (() => {
|
|
|
86
86
|
}
|
|
87
87
|
/** This will be forwarded as aria-label to the close button element. */
|
|
88
88
|
get accessibilityCloseLabel() {
|
|
89
|
-
return p(this,
|
|
89
|
+
return p(this, m);
|
|
90
90
|
}
|
|
91
91
|
set accessibilityCloseLabel(e) {
|
|
92
|
-
n(this,
|
|
92
|
+
n(this, m, e);
|
|
93
93
|
}
|
|
94
94
|
/** Opens the popover on trigger click. */
|
|
95
95
|
open() {
|
|
96
96
|
var e, t;
|
|
97
97
|
if (!(this.state !== "closed" && this.state !== "closing" || !this._overlay) && this.willOpen.emit()) {
|
|
98
98
|
for (const o of Array.from(T)) {
|
|
99
|
-
const
|
|
100
|
-
|
|
99
|
+
const f = o.getAttribute("data-state");
|
|
100
|
+
f && (f === "opened" || f === "opening") && o.close();
|
|
101
101
|
}
|
|
102
102
|
(e = this.showPopover) == null || e.call(this), this.state = "opening", this.inert = !0, this._setPopoverPosition(), (t = this._triggerElement) == null || t.setAttribute("aria-expanded", "true"), this._nextFocusedElement = void 0, this._skipCloseFocus = !1, this._isZeroAnimationDuration() && this._handleOpening();
|
|
103
103
|
}
|
|
@@ -111,8 +111,8 @@ let He = (() => {
|
|
|
111
111
|
return be(this, "--sbb-popover-animation-duration");
|
|
112
112
|
}
|
|
113
113
|
_handleClosing() {
|
|
114
|
-
var e, t, o,
|
|
115
|
-
if (this.state = "closed", (e = this.hidePopover) == null || e.call(this), (o = (t = this._overlay) == null ? void 0 : t.firstElementChild) == null || o.scrollTo(0, 0), (
|
|
114
|
+
var e, t, o, f, q;
|
|
115
|
+
if (this.state = "closed", (e = this.hidePopover) == null || e.call(this), (o = (t = this._overlay) == null ? void 0 : t.firstElementChild) == null || o.scrollTo(0, 0), (f = this._overlay) == null || f.removeAttribute("tabindex"), !this._skipCloseFocus) {
|
|
116
116
|
const x = this._nextFocusedElement || this._triggerElement;
|
|
117
117
|
E(x), x == null || x.focus();
|
|
118
118
|
}
|
|
@@ -209,8 +209,8 @@ let He = (() => {
|
|
|
209
209
|
if (!this._overlay || !this._triggerElement)
|
|
210
210
|
return;
|
|
211
211
|
const e = ge(this._overlay, this._triggerElement, this.shadowRoot.querySelector(".sbb-popover__container"), {
|
|
212
|
-
verticalOffset:
|
|
213
|
-
horizontalOffset:
|
|
212
|
+
verticalOffset: me,
|
|
213
|
+
horizontalOffset: fe,
|
|
214
214
|
centered: !0,
|
|
215
215
|
responsiveHeight: !0
|
|
216
216
|
});
|
|
@@ -251,7 +251,7 @@ let He = (() => {
|
|
|
251
251
|
</div>
|
|
252
252
|
`;
|
|
253
253
|
}
|
|
254
|
-
}, d = new WeakMap(), v = new WeakMap(), u = new WeakMap(), g = new WeakMap(), _ = new WeakMap(),
|
|
254
|
+
}, d = new WeakMap(), v = new WeakMap(), u = new WeakMap(), g = new WeakMap(), _ = new WeakMap(), m = new WeakMap(), b = a, (() => {
|
|
255
255
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(k[Symbol.metadata] ?? null) : void 0;
|
|
256
256
|
L = [y()], P = [w(), y({ attribute: "hide-close-button", type: Boolean })], A = [w(), y({ attribute: "hover-trigger", type: Boolean })], M = [w(), y({ attribute: "open-delay", type: Number })], R = [w(), y({ attribute: "close-delay", type: Number })], U = [w(), y({ attribute: "accessibility-close-label" })], c(a, null, L, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (t) => "trigger" in t, get: (t) => t.trigger, set: (t, o) => {
|
|
257
257
|
t.trigger = o;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var g = (t, s, i) => s.has(t) ||
|
|
5
|
-
var y = (t, s, i) => (g(t, s, "read from private field"), i ? i.call(t) : s.get(t)), S = (t, s, i) => s.has(t) ?
|
|
4
|
+
var g = (t, s, i) => s.has(t) || f("Cannot " + i);
|
|
5
|
+
var y = (t, s, i) => (g(t, s, "read from private field"), i ? i.call(t) : s.get(t)), S = (t, s, i) => s.has(t) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, i), d = (t, s, i, n) => (g(t, s, "write to private field"), n ? n.call(t, i) : s.set(t, i), i);
|
|
6
6
|
import { __runInitializers as b, __esDecorate as x } from "tslib";
|
|
7
|
-
import { LitElement as E,
|
|
7
|
+
import { LitElement as E, nothing as v, html as z } from "lit";
|
|
8
8
|
import { customElement as C, property as k } from "lit/decorators.js";
|
|
9
9
|
import { slotState as B, getOverride as R } from "../core/decorators.js";
|
|
10
10
|
import { isLean as w } from "../core/dom.js";
|
|
@@ -70,8 +70,8 @@ let N = (() => {
|
|
|
70
70
|
}, o = new WeakMap(), n = l, (() => {
|
|
71
71
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
|
|
72
72
|
u = [k({ reflect: !0 }), R((a, c) => {
|
|
73
|
-
var
|
|
74
|
-
return (
|
|
73
|
+
var _;
|
|
74
|
+
return (_ = a.group) != null && _.size ? a.group.size === "xs" ? "s" : a.group.size : c;
|
|
75
75
|
})], x(l, null, u, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (a) => "size" in a, get: (a) => a.size, set: (a, c) => {
|
|
76
76
|
a.size = c;
|
|
77
77
|
} }, metadata: e }, h, p), x(null, s = { value: n }, t, { kind: "class", name: n.name, metadata: e }, null, i), r = n = s.value, e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
package/screen-reader-only.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as o, __runInitializers as n } from "tslib";
|
|
2
2
|
import { css as c, LitElement as m, html as d } from "lit";
|
|
3
3
|
import { customElement as u } from "lit/decorators.js";
|
|
4
4
|
const p = c`:host{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
|
|
5
|
-
let
|
|
5
|
+
let _ = (() => {
|
|
6
6
|
var t;
|
|
7
7
|
let i = [u("sbb-screen-reader-only")], l, r = [], e, s = m;
|
|
8
8
|
return t = class extends s {
|
|
@@ -11,9 +11,9 @@ let y = (() => {
|
|
|
11
11
|
}
|
|
12
12
|
}, e = t, (() => {
|
|
13
13
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
14
|
-
|
|
15
|
-
})(), t.styles = p,
|
|
14
|
+
o(null, l = { value: e }, i, { kind: "class", name: e.name, metadata: a }, null, r), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
15
|
+
})(), t.styles = p, n(e, r), e;
|
|
16
16
|
})();
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
_ as SbbScreenReaderOnlyElement
|
|
19
19
|
};
|