@sbb-esta/lyne-elements 2.0.2 → 2.1.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/accordion.d.ts.map +1 -1
- package/accordion.js +6 -6
- package/alert/alert.js +8 -8
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +4 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-option.js +10 -10
- package/autocomplete-grid/autocomplete-grid-row.js +4 -4
- package/autocomplete.js +92 -89
- package/breadcrumb/breadcrumb-group.js +4 -4
- 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/card/card-badge.js +9 -9
- package/card/card-button.js +5 -5
- package/card/card-link.js +7 -7
- 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/container.d.ts +1 -1
- package/container/container/container.d.ts.map +1 -1
- package/container/container.js +21 -21
- package/container/sticky-bar/sticky-bar.d.ts +1 -1
- package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/container/sticky-bar.js +4 -4
- package/core/base-elements.js +8 -8
- package/core/controllers.js +4 -4
- package/core/datetime/date-adapter.d.ts +1 -1
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -1
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime.js +6 -6
- package/core/dom/scroll.d.ts +1 -1
- package/core/dom/scroll.d.ts.map +1 -1
- package/core/dom.js +39 -39
- package/core/eventing.js +4 -4
- package/core/mixins/form-associated-mixin.d.ts +2 -4
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts +3 -3
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/core/mixins.js +276 -276
- package/core/styles/core.scss +21 -2
- package/core/testing.js +14 -14
- package/core.css +18 -2
- package/custom-elements.json +528 -554
- package/datepicker/common/datepicker-association-controllers.d.ts +21 -0
- package/datepicker/common/datepicker-association-controllers.d.ts.map +1 -0
- package/datepicker/common/datepicker-button.d.ts +17 -9
- package/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/datepicker/common.d.ts +1 -0
- package/datepicker/common.d.ts.map +1 -1
- package/datepicker/common.js +130 -92
- package/datepicker/datepicker/datepicker.d.ts +19 -4
- package/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +14 -8
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/datepicker/datepicker-toggle.js +108 -112
- package/datepicker/datepicker.js +95 -80
- package/development/accordion/accordion.d.ts.map +1 -1
- package/development/accordion.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +3 -3
- package/development/autocomplete.js +24 -8
- package/development/button/common.js +4 -2
- package/development/calendar.js +1 -1
- package/development/container/container/container.d.ts +1 -1
- package/development/container/container/container.d.ts.map +1 -1
- package/development/container/container.js +17 -1
- package/development/container/sticky-bar/sticky-bar.d.ts +1 -1
- package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
- package/development/container/sticky-bar.js +9 -1
- package/development/core/datetime/date-adapter.d.ts +1 -1
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -1
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime.js +1 -1
- package/development/core/dom/scroll.d.ts +1 -1
- package/development/core/dom/scroll.d.ts.map +1 -1
- package/development/core/dom.js +4 -4
- package/development/core/mixins/form-associated-mixin.d.ts +2 -4
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts +3 -3
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins.js +45 -49
- package/development/datepicker/common/datepicker-association-controllers.d.ts +21 -0
- package/development/datepicker/common/datepicker-association-controllers.d.ts.map +1 -0
- package/development/datepicker/common/datepicker-button.d.ts +17 -9
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common.d.ts +1 -0
- package/development/datepicker/common.d.ts.map +1 -1
- package/development/datepicker/common.js +139 -90
- package/development/datepicker/datepicker/datepicker.d.ts +19 -4
- package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +14 -8
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +65 -69
- package/development/datepicker/datepicker.js +54 -36
- package/development/dialog/dialog/dialog.d.ts +2 -0
- package/development/dialog/dialog/dialog.d.ts.map +1 -1
- package/development/dialog/dialog.js +37 -11
- package/development/menu/menu/menu.d.ts.map +1 -1
- package/development/menu/menu.js +35 -12
- package/development/navigation/navigation/navigation.d.ts.map +1 -1
- package/development/navigation/navigation.js +15 -8
- package/development/option/option/option-base-element.d.ts +3 -2
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option.js +15 -8
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay.d.ts.map +1 -1
- package/development/overlay.js +29 -13
- package/development/popover/popover/popover.d.ts.map +1 -1
- package/development/popover/popover.js +16 -13
- package/development/radio-button/common/radio-button-common.d.ts +0 -2
- package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/development/radio-button/common.js +2 -18
- package/development/radio-button/radio-button-group.js +2 -2
- package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +9 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel.js +17 -7
- package/development/select/select.d.ts +11 -0
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +60 -9
- package/development/toast/toast.d.ts.map +1 -1
- package/development/toast.js +14 -8
- package/development/toggle/toggle.js +1 -1
- package/development/train/train-wagon.js +1 -1
- package/dialog/dialog/dialog.d.ts +2 -0
- package/dialog/dialog/dialog.d.ts.map +1 -1
- package/dialog/dialog-content.js +3 -3
- package/dialog/dialog-title.js +8 -8
- package/dialog/dialog.js +59 -49
- package/divider.js +12 -12
- 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/header/header-button.js +5 -5
- package/header/header-link.js +5 -5
- package/icon.js +36 -36
- 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 +16 -16
- 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 +12 -12
- package/loading-indicator-circle.js +11 -11
- package/map-container.js +4 -4
- package/menu/common.js +7 -7
- package/menu/menu/menu.d.ts.map +1 -1
- package/menu/menu-button.js +8 -8
- package/menu/menu-link.js +6 -6
- package/menu/menu.js +64 -42
- package/navigation/navigation/navigation.d.ts.map +1 -1
- 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.js +21 -20
- package/notification.js +17 -17
- package/option/optgroup.js +11 -11
- package/option/option/option-base-element.d.ts +3 -2
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option.js +113 -101
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay.d.ts.map +1 -1
- package/overlay.js +87 -84
- package/package.json +1 -1
- package/paginator/common.js +6 -6
- package/popover/popover/popover.d.ts.map +1 -1
- package/popover/popover.js +73 -73
- package/radio-button/common/radio-button-common.d.ts +0 -2
- package/radio-button/common/radio-button-common.d.ts.map +1 -1
- package/radio-button/common.js +13 -18
- package/radio-button/radio-button-group.js +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.d.ts +9 -1
- package/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
- package/radio-button/radio-button-panel.js +40 -38
- package/screen-reader-only.js +5 -5
- package/select/select.d.ts +11 -0
- package/select/select.d.ts.map +1 -1
- package/select.js +111 -83
- package/slider.js +8 -8
- package/standard-theme.css +18 -2
- 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.js +3 -3
- 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/toast.d.ts.map +1 -1
- package/toast.js +58 -54
- package/toggle/toggle-option.js +11 -11
- package/toggle-check.js +5 -5
- package/train/train.js +28 -28
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import { customElement as
|
|
1
|
+
import { __esDecorate as n, __runInitializers as s } from "tslib";
|
|
2
|
+
import { customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { SbbActionBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbDisabledMixin as b } from "../core/mixins.js";
|
|
5
5
|
import { SbbBlockLinkCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let k = (() => {
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
},
|
|
11
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
12
|
-
|
|
13
|
-
})(),
|
|
7
|
+
var t;
|
|
8
|
+
let o = [m("sbb-block-link-static")], l, i = [], e, r = u(b(c));
|
|
9
|
+
return t = class extends r {
|
|
10
|
+
}, e = t, (() => {
|
|
11
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
12
|
+
n(null, l = { value: e }, o, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
|
|
13
|
+
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
|
16
16
|
k as SbbBlockLinkStaticElement
|
package/link/block-link.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import { customElement as
|
|
1
|
+
import { __esDecorate as o, __runInitializers as m } from "tslib";
|
|
2
|
+
import { customElement as s } from "lit/decorators.js";
|
|
3
3
|
import { SbbLinkBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbDisabledMixin as b } from "../core/mixins.js";
|
|
5
5
|
import { SbbBlockLinkCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let k = (() => {
|
|
7
7
|
var t;
|
|
8
|
-
let
|
|
8
|
+
let n = [s("sbb-block-link")], l, i = [], e, r = u(b(c));
|
|
9
9
|
return t = class extends r {
|
|
10
10
|
}, e = t, (() => {
|
|
11
11
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
12
|
-
|
|
12
|
+
o(null, l = { value: e }, n, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, i);
|
|
13
13
|
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
package/link/common.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _ = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var z = (t,
|
|
5
|
-
var
|
|
4
|
+
var z = (t, i, e) => i.has(t) || _("Cannot " + e);
|
|
5
|
+
var h = (t, i, e) => (z(t, i, "read from private field"), e ? e.call(t) : i.get(t)), f = (t, i, e) => i.has(t) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), v = (t, i, e, r) => (z(t, i, "write to private field"), r ? r.call(t, e) : i.set(t, e), e);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as m } from "tslib";
|
|
7
7
|
import { property as S } from "lit/decorators.js";
|
|
8
8
|
import { html as w } from "lit/static-html.js";
|
|
@@ -12,13 +12,13 @@ import { isLean as B } from "../core/dom.js";
|
|
|
12
12
|
import { SbbNegativeMixin as E } from "../core/mixins.js";
|
|
13
13
|
import { css as g } from "lit";
|
|
14
14
|
const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}@media (forced-colors: active){:host([data-button]){--sbb-link-color-normal: ButtonText;--sbb-link-color-hover: ButtonText;--sbb-link-color-active: ButtonText}}.sbb-action-base{color:var(--sbb-link-color-normal);text-decoration:var(--sbb-link-text-decoration, underline);-webkit-user-select:none;user-select:none}@media (forced-colors: active){.sbb-action-base{text-decoration:underline}}.sbb-action-base{display:flex;align-items:center;width:100%;cursor:pointer;padding:var(--sbb-link-padding, 0);outline:none}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{pointer-events:none;cursor:default}@media (forced-colors: active){:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:GrayText}}:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base,:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-action-base:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}@media (any-hover: hover){:host(:hover:not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-hover);text-decoration:var(--sbb-link-hover-text-decoration, underline)}}:host(:is(:active,[data-active]):not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{color:var(--sbb-link-color-active)}`, P = (t) => (() => {
|
|
15
|
-
var a,
|
|
16
|
-
let e = [M({ "data-sbb-link": "" }), j()], r, c = [], n, l = E(t), s, x = [],
|
|
17
|
-
return
|
|
15
|
+
var a, o;
|
|
16
|
+
let e = [M({ "data-sbb-link": "" }), j()], r, c = [], n, l = E(t), s, x = [], u = [];
|
|
17
|
+
return o = class extends l {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
f(this, a, m(this, x, B() ? "xs" : "s"));
|
|
21
|
-
m(this,
|
|
21
|
+
m(this, u);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Text size, the link should get in the non-button variation.
|
|
@@ -26,7 +26,7 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
|
|
|
26
26
|
* @default 's' / 'xs' (lean)
|
|
27
27
|
*/
|
|
28
28
|
get size() {
|
|
29
|
-
return
|
|
29
|
+
return h(this, a);
|
|
30
30
|
}
|
|
31
31
|
set size(b) {
|
|
32
32
|
v(this, a, b);
|
|
@@ -34,12 +34,12 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
|
|
|
34
34
|
renderTemplate() {
|
|
35
35
|
return w`<slot></slot>`;
|
|
36
36
|
}
|
|
37
|
-
}, a = new WeakMap(), n =
|
|
37
|
+
}, a = new WeakMap(), n = o, (() => {
|
|
38
38
|
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
39
|
-
s = [S({ reflect: !0 })], p(
|
|
39
|
+
s = [S({ reflect: !0 })], p(o, null, s, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (d) => "size" in d, get: (d) => d.size, set: (d, T) => {
|
|
40
40
|
d.size = T;
|
|
41
|
-
} }, metadata: b }, x,
|
|
42
|
-
})(),
|
|
41
|
+
} }, metadata: b }, x, u), p(null, r = { value: n }, e, { kind: "class", name: n.name, metadata: b }, null, c), n = r.value, b && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
|
|
42
|
+
})(), o.styles = y, m(n, c), n;
|
|
43
43
|
})(), L = g`:host{--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-link-color-normal: var(--sbb-color-white);--sbb-link-color-hover: var(--sbb-color-cloud);--sbb-link-color-active: var(--sbb-color-silver);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--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)}:host([size=s]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-s);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)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-m);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)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-body-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-link__icon{display:none}:host([icon-placement=end]) .sbb-link__icon{order:2}.sbb-link__icon ::slotted([slot=icon]),.sbb-link__icon sbb-icon{position:absolute;top:50%;transform:translateY(-50%)}`, H = (t) => (() => {
|
|
44
44
|
var l, s;
|
|
45
45
|
let e = P(I(t)), r, c = [], n = [];
|
|
@@ -51,7 +51,7 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
|
|
|
51
51
|
}
|
|
52
52
|
/** Moves the icon to the end of the component if set to true. */
|
|
53
53
|
get iconPlacement() {
|
|
54
|
-
return
|
|
54
|
+
return h(this, l);
|
|
55
55
|
}
|
|
56
56
|
set iconPlacement(a) {
|
|
57
57
|
v(this, l, a);
|
|
@@ -64,16 +64,16 @@ const y = g`*,:before,:after{box-sizing:border-box}:host{outline:none!important}
|
|
|
64
64
|
}
|
|
65
65
|
}, l = new WeakMap(), (() => {
|
|
66
66
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
67
|
-
r = [S({ attribute: "icon-placement", reflect: !0 })], p(s, null, r, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (
|
|
68
|
-
|
|
67
|
+
r = [S({ attribute: "icon-placement", reflect: !0 })], p(s, null, r, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (o) => "iconPlacement" in o, get: (o) => o.iconPlacement, set: (o, k) => {
|
|
68
|
+
o.iconPlacement = k;
|
|
69
69
|
} }, metadata: a }, c, n), a && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
70
70
|
})(), s.styles = [y, L], s;
|
|
71
71
|
})(), O = g`:host{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit;--sbb-link-color-normal: inherit;--sbb-link-color-hover: var(--sbb-color-red125);--sbb-link-color-active: var(--sbb-color-red150);color:inherit;display:inline-block}:host([negative]){--sbb-link-color-hover: var(--sbb-color-graphite);--sbb-link-color-active: var(--sbb-color-metal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-action-base{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-size:inherit;text-align:inherit}`, J = (t) => {
|
|
72
72
|
const e = class e extends P(t) {
|
|
73
73
|
};
|
|
74
74
|
e.styles = [y, O];
|
|
75
|
-
let
|
|
76
|
-
return
|
|
75
|
+
let i = e;
|
|
76
|
+
return i;
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
79
|
H as SbbBlockLinkCommonElementMixin,
|
package/link/link-button.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as o, __runInitializers as m } from "tslib";
|
|
2
2
|
import { customElement as s } from "lit/decorators.js";
|
|
3
3
|
import { SbbButtonBaseElement as b } from "../core/base-elements.js";
|
|
4
4
|
import { SbbDisabledTabIndexActionMixin as c } from "../core/mixins.js";
|
|
5
5
|
import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let x = (() => {
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
},
|
|
7
|
+
var t;
|
|
8
|
+
let r = [s("sbb-link-button")], l, n = [], e, i = u(c(b));
|
|
9
|
+
return t = class extends i {
|
|
10
|
+
}, e = t, (() => {
|
|
11
11
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
12
|
-
|
|
13
|
-
})(),
|
|
12
|
+
o(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, n), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, n);
|
|
13
|
+
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
|
16
16
|
x as SbbLinkButtonElement
|
package/link/link-static.js
CHANGED
|
@@ -4,13 +4,13 @@ import { SbbActionBaseElement as c } from "../core/base-elements.js";
|
|
|
4
4
|
import { SbbDisabledMixin as b } from "../core/mixins.js";
|
|
5
5
|
import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let y = (() => {
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
},
|
|
11
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
12
|
-
s(null, l = { value:
|
|
13
|
-
})(),
|
|
7
|
+
var t;
|
|
8
|
+
let r = [o("sbb-link-static")], l, i = [], e, n = u(b(c));
|
|
9
|
+
return t = class extends n {
|
|
10
|
+
}, e = t, (() => {
|
|
11
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
12
|
+
s(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, i);
|
|
13
|
+
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
|
16
16
|
y as SbbLinkStaticElement
|
package/link/link.js
CHANGED
|
@@ -5,11 +5,11 @@ import { SbbDisabledMixin as c } from "../core/mixins.js";
|
|
|
5
5
|
import { SbbInlineLinkCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let y = (() => {
|
|
7
7
|
var t;
|
|
8
|
-
let
|
|
9
|
-
return t = class extends
|
|
8
|
+
let r = [o("sbb-link")], l, i = [], e, n = u(c(b));
|
|
9
|
+
return t = class extends n {
|
|
10
10
|
}, e = t, (() => {
|
|
11
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
12
|
-
m(null, l = { value: e },
|
|
11
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
12
|
+
m(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, i), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, i);
|
|
13
13
|
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
package/link-list/common.js
CHANGED
|
@@ -2,8 +2,8 @@ var w = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var I = (e, s, l) => s.has(e) || w("Cannot " + l);
|
|
5
|
-
var d = (e, s, l) => (I(e, s, "read from private field"), l ? l.call(e) : s.get(e)),
|
|
6
|
-
import { __esDecorate as
|
|
5
|
+
var d = (e, s, l) => (I(e, s, "read from private field"), l ? l.call(e) : s.get(e)), u = (e, s, l) => s.has(e) ? w("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, l), r = (e, s, l, a) => (I(e, s, "write to private field"), a ? a.call(e, l) : s.set(e, l), l);
|
|
6
|
+
import { __esDecorate as _, __runInitializers as o } from "tslib";
|
|
7
7
|
import { LitElement as E, html as $, nothing as B, css as D } from "lit";
|
|
8
8
|
import { property as v } from "lit/decorators.js";
|
|
9
9
|
import { slotState as N, forceType as j, omitEmptyConverter as M } from "../core/decorators.js";
|
|
@@ -12,13 +12,13 @@ import { SbbNegativeMixin as T, SbbNamedSlotListMixin as U } from "../core/mixin
|
|
|
12
12
|
import "../title.js";
|
|
13
13
|
let V = (() => {
|
|
14
14
|
var c, b, m, n;
|
|
15
|
-
let e = [N()], s, l = [], a,
|
|
16
|
-
return n = class extends
|
|
15
|
+
let e = [N()], s, l = [], a, f = T(U(E)), p, k = [], z = [], L, g = [], x = [], C, y = [], S = [];
|
|
16
|
+
return n = class extends f {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
u(this, c);
|
|
20
|
+
u(this, b);
|
|
21
|
+
u(this, m);
|
|
22
22
|
this.listChildLocalNames = [
|
|
23
23
|
"sbb-block-link",
|
|
24
24
|
"sbb-block-link-button",
|
|
@@ -72,14 +72,14 @@ let V = (() => {
|
|
|
72
72
|
`;
|
|
73
73
|
}
|
|
74
74
|
}, c = new WeakMap(), b = new WeakMap(), m = new WeakMap(), a = n, (() => {
|
|
75
|
-
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
76
|
-
|
|
75
|
+
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
76
|
+
p = [j(), v({ attribute: "title-content", reflect: !0, converter: M })], L = [v({ attribute: "title-level" })], C = [v({ reflect: !0 })], _(n, null, p, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (t) => "titleContent" in t, get: (t) => t.titleContent, set: (t, h) => {
|
|
77
77
|
t.titleContent = h;
|
|
78
|
-
} }, metadata: i }, k, z),
|
|
78
|
+
} }, metadata: i }, k, z), _(n, null, L, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (t) => "titleLevel" in t, get: (t) => t.titleLevel, set: (t, h) => {
|
|
79
79
|
t.titleLevel = h;
|
|
80
|
-
} }, metadata: i }, g, x),
|
|
80
|
+
} }, metadata: i }, g, x), _(n, null, C, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, h) => {
|
|
81
81
|
t.size = h;
|
|
82
|
-
} }, metadata: i }, y, S),
|
|
82
|
+
} }, metadata: i }, y, S), _(null, s = { value: a }, e, { kind: "class", name: a.name, metadata: i }, null, l), a = s.value, i && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i }), o(a, l);
|
|
83
83
|
})(), a;
|
|
84
84
|
})();
|
|
85
85
|
const W = D`*,:before,:after{box-sizing:border-box}:host{display:block}.sbb-link-list-wrapper{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-3x)}.sbb-link-list-title{margin:0}:host(:not([data-slot-names~=title],[title-content])) .sbb-link-list-title{display:none}`;
|
|
@@ -3,18 +3,18 @@ var m = (i) => {
|
|
|
3
3
|
};
|
|
4
4
|
var u = (i, a, r) => a.has(i) || m("Cannot " + r);
|
|
5
5
|
var h = (i, a, r) => (u(i, a, "read from private field"), r ? r.call(i) : a.get(i)), p = (i, a, r) => a.has(i) ? m("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, r), v = (i, a, r, o) => (u(i, a, "write to private field"), o ? o.call(i, r) : a.set(i, r), r);
|
|
6
|
-
import { __esDecorate as
|
|
6
|
+
import { __esDecorate as f, __runInitializers as l } from "tslib";
|
|
7
7
|
import { css as k, html as y, LitElement as w } from "lit";
|
|
8
8
|
import { customElement as x, property as S } from "lit/decorators.js";
|
|
9
9
|
import { hostAttributes as z } from "./core/decorators.js";
|
|
10
10
|
const E = k`*,:before,:after{box-sizing:border-box}:host{display:inline-block;line-height:0;--sbb-loading-indicator-circle-color: var(--sbb-color-red);--sbb-loading-indicator-circle-padding: .125rem;--sbb-loading-indicator-circle-duration: var(--sbb-disable-animation-duration, 1.5s);--sbb-loading-indicator-circle-background-color: var(--sbb-color-white);--sbb-loading-indicator-circle-background: conic-gradient( from 90deg, var(--sbb-loading-indicator-circle-background-color), var(--sbb-loading-indicator-circle-color) );--sbb-loading-indicator-circle-animated-width: .1875em;--sbb-loading-indicator-circle-animated-height: .1875em;--sbb-loading-indicator-circle-animated-border-radius: 50%}@media (forced-colors: active){:host{--sbb-loading-indicator-circle-color: CanvasText !important;--sbb-loading-indicator-circle-animated-width: 50%;--sbb-loading-indicator-circle-animated-height: 100%;--sbb-loading-indicator-circle-animated-border-radius: 0;--sbb-loading-indicator-circle-background: transparent}}:host([color=smoke]){--sbb-loading-indicator-circle-color: var(--sbb-color-smoke)}:host([color=white]){--sbb-loading-indicator-circle-color: var(--sbb-color-white)}:host([color=white]){--sbb-loading-indicator-circle-background-color: var(--sbb-color-iron)}.sbb-loading-indicator{display:inline-flex;padding:var(--sbb-loading-indicator-circle-padding);vertical-align:middle;line-height:1}.sbb-loading-indicator__animated-element{width:1.25em;height:1.25em;display:inline-block;color:transparent;position:relative;margin:0 auto;overflow:hidden;border-radius:50%;background:var(--sbb-loading-indicator-circle-background);mask:radial-gradient(circle .4375em,rgba(0,0,0,0) 98%,var(--sbb-loading-indicator-circle-background-color));animation:rotation var(--sbb-loading-indicator-circle-duration) infinite linear}.sbb-loading-indicator__animated-element:after{content:"";width:var(--sbb-loading-indicator-circle-animated-width);height:var(--sbb-loading-indicator-circle-animated-height);background:var(--sbb-loading-indicator-circle-color);border-radius:var(--sbb-loading-indicator-circle-animated-border-radius);position:absolute;top:50%;right:0;translate:0 -50%;overflow:hidden;margin:auto}@keyframes rotation{0%{rotate:0deg}to{rotate:359deg}}`;
|
|
11
11
|
let T = (() => {
|
|
12
|
-
var c,
|
|
12
|
+
var c, e;
|
|
13
13
|
let i = [x("sbb-loading-indicator-circle"), z({
|
|
14
14
|
role: "progressbar",
|
|
15
15
|
"aria-busy": "true"
|
|
16
16
|
})], a, r = [], o, d = w, s, b = [], g = [];
|
|
17
|
-
return
|
|
17
|
+
return e = class extends d {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
p(this, c, l(this, b, "default"));
|
|
@@ -24,8 +24,8 @@ let T = (() => {
|
|
|
24
24
|
get color() {
|
|
25
25
|
return h(this, c);
|
|
26
26
|
}
|
|
27
|
-
set color(
|
|
28
|
-
v(this, c,
|
|
27
|
+
set color(t) {
|
|
28
|
+
v(this, c, t);
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return y`
|
|
@@ -34,12 +34,12 @@ let T = (() => {
|
|
|
34
34
|
</span>
|
|
35
35
|
`;
|
|
36
36
|
}
|
|
37
|
-
}, c = new WeakMap(), o =
|
|
38
|
-
const
|
|
39
|
-
s = [S({ reflect: !0 })],
|
|
40
|
-
n.color =
|
|
41
|
-
} }, metadata:
|
|
42
|
-
})(),
|
|
37
|
+
}, c = new WeakMap(), o = e, (() => {
|
|
38
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
|
|
39
|
+
s = [S({ reflect: !0 })], f(e, null, s, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (n) => "color" in n, get: (n) => n.color, set: (n, _) => {
|
|
40
|
+
n.color = _;
|
|
41
|
+
} }, metadata: t }, b, g), f(null, a = { value: o }, i, { kind: "class", name: o.name, metadata: t }, null, r), o = a.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
42
|
+
})(), e.styles = E, l(o, r), o;
|
|
43
43
|
})();
|
|
44
44
|
export {
|
|
45
45
|
T as SbbLoadingIndicatorCircleElement
|
package/map-container.js
CHANGED
|
@@ -15,13 +15,13 @@ import "./button/accent-button.js";
|
|
|
15
15
|
const j = S`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-map-container-map-height-zero: 18.4375rem;--sbb-map-container-map-height-small: 20rem;--sbb-map-container-sidebar-width: 25rem;--sbb-map-container-sidebar-background-color: var(--sbb-color-white);--sbb-map-container-border-radius: var(--sbb-border-radius-4x);--sbb-map-container-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-map-container-map-height: calc( var(--sbb-map-container-map-height-zero) + var(--sbb-map-container-border-radius) );--sbb-map-container-mobile-sticky-block-start: 0}@media (min-width: 37.5rem){:host{--sbb-map-container-map-height: calc( var(--sbb-map-container-map-height-small) + var(--sbb-map-container-border-radius) )}}@media (min-width: 80rem){:host{--sbb-map-container-sidebar-width: 30rem}}.sbb-map-container{display:grid;grid-template-rows:auto auto}@media (min-width: 52.5rem){.sbb-map-container{grid-template-columns:max(var(--sbb-map-container-sidebar-width)) calc(100% - var(--sbb-map-container-sidebar-width));position:fixed;inset:var(--sbb-map-container-margin-start, var(--sbb-header-height)) 0 0 0}}.sbb-map-container__sidebar-button{position:fixed;left:50%;inset-block-end:var(--sbb-spacing-fixed-5x);visibility:hidden;opacity:0;transform:translate(-50%) translateY(calc(100% + var(--sbb-spacing-fixed-5x)));transition:opacity var(--sbb-map-container-animation-duration) var(--sbb-animation-easing),visibility var(--sbb-map-container-animation-duration) var(--sbb-animation-easing) var(--sbb-map-container-animation-duration),transform var(--sbb-map-container-animation-duration) var(--sbb-animation-easing)}:host([data-scroll-up-button-visible]) .sbb-map-container__sidebar-button{transition:visibility var(--sbb-map-container-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-map-container-animation-duration) var(--sbb-animation-easing),transform var(--sbb-map-container-animation-duration) ease-out;visibility:visible;opacity:1;transform:translate(-50%) translateY(0)}@media (min-width: 52.5rem){.sbb-map-container__sidebar-button{display:none}}.sbb-map-container__sidebar{--sbb-scrollbar-thumb-width: .5rem;--sbb-scrollbar-thumb-width-hover: var(--sbb-scrollbar-thumb-width);--sbb-scrollbar-width-firefox: auto;--sbb-scrollbar-color: var(--sbb-color-black-alpha-30);--sbb-scrollbar-color-hover: var(--sbb-color-black-alpha-60);--sbb-scrollbar-track-color: var(--sbb-color-cloud);--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-map-container__sidebar::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-map-container__sidebar::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-map-container__sidebar::-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-map-container__sidebar::-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-map-container__sidebar::-webkit-scrollbar-button,.sbb-map-container__sidebar::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-map-container__sidebar{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-map-container__sidebar{grid-column:1/3;grid-row:2/3;width:100%;overflow:hidden auto;position:relative;border-start-end-radius:var(--sbb-map-container-border-radius);border-start-start-radius:var(--sbb-map-container-border-radius);margin-block-start:calc(var(--sbb-map-container-border-radius) * -1);background-color:var(--sbb-map-container-sidebar-background-color)}@media (min-width: 52.5rem){.sbb-map-container__sidebar{grid-column:1/2;grid-row:1/3;border-radius:0;margin-block-start:0;border-block-start:var(--sbb-border-width-1x) solid var(--sbb-color-cloud)}}.sbb-map-container__map{position:sticky;inset-block-start:0;inset-inline:0;grid-row:1/2;grid-column:1/3}@media (max-width: 52.4375rem){.sbb-map-container__map{inset-block-start:var(--sbb-map-container-mobile-sticky-block-start);height:var(--sbb-map-container-map-height)}}@media (min-width: 52.5rem){.sbb-map-container__map{grid-row:1/3;grid-column:2/3;position:relative}}`;
|
|
16
16
|
let N = (() => {
|
|
17
17
|
var n, b, e;
|
|
18
|
-
let a = [I("sbb-map-container")], i, o = [], s, h = z,
|
|
18
|
+
let a = [I("sbb-map-container")], i, o = [], s, h = z, _, v = [], g = [], w, f = [], k = [];
|
|
19
19
|
return e = class extends h {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
p(this, n);
|
|
23
23
|
p(this, b);
|
|
24
|
-
c(this, n, d(this,
|
|
24
|
+
c(this, n, d(this, v, !1)), c(this, b, (d(this, g), d(this, f, !1))), this._language = (d(this, k), new $(this)), this._observer = new x(this, {
|
|
25
25
|
target: null,
|
|
26
26
|
callback: (r) => this._toggleButtonVisibilityOnIntersect(r)
|
|
27
27
|
});
|
|
@@ -97,9 +97,9 @@ let N = (() => {
|
|
|
97
97
|
}
|
|
98
98
|
}, n = new WeakMap(), b = new WeakMap(), s = e, (() => {
|
|
99
99
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
100
|
-
|
|
100
|
+
_ = [O(), E({ attribute: "hide-scroll-up-button", reflect: !0, type: Boolean })], w = [C()], u(e, null, _, { kind: "accessor", name: "hideScrollUpButton", static: !1, private: !1, access: { has: (t) => "hideScrollUpButton" in t, get: (t) => t.hideScrollUpButton, set: (t, l) => {
|
|
101
101
|
t.hideScrollUpButton = l;
|
|
102
|
-
} }, metadata: r },
|
|
102
|
+
} }, metadata: r }, v, g), u(e, null, w, { kind: "accessor", name: "_scrollUpButtonVisible", static: !1, private: !1, access: { has: (t) => "_scrollUpButtonVisible" in t, get: (t) => t._scrollUpButtonVisible, set: (t, l) => {
|
|
103
103
|
t._scrollUpButtonVisible = l;
|
|
104
104
|
} }, metadata: r }, f, k), u(null, i = { value: s }, a, { kind: "class", name: s.name, metadata: r }, null, o), s = i.value, r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
105
105
|
})(), e.styles = j, d(s, o), s;
|
package/menu/common.js
CHANGED
|
@@ -2,7 +2,7 @@ var l = (o) => {
|
|
|
2
2
|
throw TypeError(o);
|
|
3
3
|
};
|
|
4
4
|
var u = (o, t, e) => t.has(o) || l("Cannot " + e);
|
|
5
|
-
var d = (o, t, e) => (u(o, t, "read from private field"), e ? e.call(o) : t.get(o)), m = (o, t, e) => t.has(o) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), f = (o, t, e,
|
|
5
|
+
var d = (o, t, e) => (u(o, t, "read from private field"), e ? e.call(o) : t.get(o)), m = (o, t, e) => t.has(o) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), f = (o, t, e, i) => (u(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e);
|
|
6
6
|
import { __esDecorate as g, __runInitializers as p } from "tslib";
|
|
7
7
|
import { css as x, nothing as _ } from "lit";
|
|
8
8
|
import { property as y } from "lit/decorators.js";
|
|
@@ -11,9 +11,9 @@ import { forceType as w } from "../core/decorators.js";
|
|
|
11
11
|
import { SbbDisabledMixin as z } from "../core/mixins.js";
|
|
12
12
|
import { SbbIconNameMixin as k } from "../icon.js";
|
|
13
13
|
const S = x`*,:before,:after{box-sizing:border-box}:host{outline:none!important;--sbb-menu-action-border-radius: var(--sbb-border-radius-infinity);--sbb-menu-action-outer-horizontal-padding: var(--sbb-spacing-fixed-3x);--sbb-menu-action-gap: var(--sbb-spacing-fixed-2x);--sbb-menu-action-cursor: pointer;--sbb-menu-action-color: var(--sbb-color-white);--sbb-menu-action-forced-color-border-color: CanvasText;display:block}@media (any-hover: hover){:host(:hover:not([disabled],:disabled,[disabled-interactive])){--sbb-menu-background-color: var(--sbb-color-iron);--sbb-menu-action-forced-color-border-color: Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor: default;--sbb-menu-action-color: var(--sbb-color-graphite);--sbb-menu-action-forced-color-border-color: GrayText;pointer-events:none;cursor:default}@media (forced-colors: active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color: GrayText}}@media (forced-colors: active){:host([data-button]){--sbb-menu-action-color: ButtonText}}:is(.sbb-menu-button,.sbb-menu-link){text-decoration:none;display:block;width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-spacing-fixed-1x) var(--sbb-menu-action-outer-horizontal-padding);cursor:var(--sbb-menu-action-cursor);outline:none}.sbb-menu-action__content{--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);display:flex;align-items:center;gap:var(--sbb-menu-action-gap);padding:var(--sbb-spacing-fixed-1x) var(--sbb-spacing-fixed-2x);border-radius:var(--sbb-menu-action-border-radius);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background-color:var(--sbb-menu-background-color)}:host(:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-menu-action__content,:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) :focus-visible .sbb-menu-action__content{--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}@media (forced-colors: active){.sbb-menu-action__content{border:var(--sbb-border-width-2x) solid var(--sbb-menu-action-forced-color-border-color)}}.sbb-menu-action__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small)}.sbb-menu-action__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-menu-action__label{text-decoration:line-through}.sbb-menu-action__amount{--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;display:flex;align-items:center;justify-content:center;padding-inline:var(--sbb-spacing-fixed-1x);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-color-red);color:var(--sbb-color-white);min-width:fit-content;margin-inline-start:auto;width:var(--sbb-spacing-fixed-4x);max-height:var(--sbb-spacing-fixed-4x)}@media (forced-colors: active){.sbb-menu-action__amount{color:var(--sbb-menu-action-color)}}`, A = (o) => (() => {
|
|
14
|
-
var a,
|
|
15
|
-
let e = k(z(o)),
|
|
16
|
-
return
|
|
14
|
+
var a, n;
|
|
15
|
+
let e = k(z(o)), i, b = [], c = [];
|
|
16
|
+
return n = class extends e {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
m(this, a, p(this, b, ""));
|
|
@@ -39,10 +39,10 @@ const S = x`*,:before,:after{box-sizing:border-box}:host{outline:none!important;
|
|
|
39
39
|
}
|
|
40
40
|
}, a = new WeakMap(), (() => {
|
|
41
41
|
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
42
|
-
|
|
42
|
+
i = [w(), y()], g(n, null, i, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (r) => "amount" in r, get: (r) => r.amount, set: (r, v) => {
|
|
43
43
|
r.amount = v;
|
|
44
|
-
} }, metadata: s }, b, c), s && Object.defineProperty(
|
|
45
|
-
})(),
|
|
44
|
+
} }, metadata: s }, b, c), s && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
|
|
45
|
+
})(), n.styles = S, n;
|
|
46
46
|
})();
|
|
47
47
|
export {
|
|
48
48
|
A as SbbMenuActionCommonElementMixin
|
package/menu/menu/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAYrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAoBtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAkB1D;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAYrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAoBtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAkB1D;;;;;;;;;;;GAWG;AACH,qBAKM,cAAe,SAAQ,mBAGH;IACxB,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,mBAA4B,mBAAmB,WAAwC;IAEvF;;;OAGG;IACH,IACW,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,EAIpD;IACD,IAAW,OAAO,IAAI,MAAM,GAAG,WAAW,GAAG,IAAI,CAEhD;IACD,OAAO,CAAC,QAAQ,CAAqC;IAErD;;;OAGG;IACH,SAEgB,sBAAsB,EAAE,MAAM,CAAM;IAEpD,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,yBAAyB,CAAkB;IACnD,OAAO,CAAC,eAAe,CAAmB;IAC1C,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,aAAa,CAQlB;;IAQH;;OAEG;IACI,IAAI,IAAI,IAAI;IA0BnB;;OAEG;IACI,KAAK,IAAI,IAAI;IAmBpB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,cAAc;IAsBtB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,cAAc;YA2CR,eAAe;IAY7B,OAAO,CAAC,2BAA2B;cAWhB,gBAAgB,IAAI,WAAW,GAAG,gBAAgB;IAWrD,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAQ5C,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,UAAU;IAsBlB,OAAO,CAAC,mBAAmB;IA2B3B,OAAO,CAAC,+BAA+B;IAQvC,OAAO,CAAC,oBAAoB,CAE1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAMF,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,gBAAgB;cAyBL,MAAM,IAAI,cAAc;CAsB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
|
package/menu/menu-button.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __esDecorate as i, __runInitializers as m } from "tslib";
|
|
2
2
|
import { customElement as s } from "lit/decorators.js";
|
|
3
|
-
import { SbbButtonBaseElement as
|
|
4
|
-
import { SbbDisabledTabIndexActionMixin as
|
|
3
|
+
import { SbbButtonBaseElement as u } from "../core/base-elements.js";
|
|
4
|
+
import { SbbDisabledTabIndexActionMixin as b } from "../core/mixins.js";
|
|
5
5
|
import { SbbMenuActionCommonElementMixin as c } from "./common.js";
|
|
6
6
|
let x = (() => {
|
|
7
|
-
var
|
|
8
|
-
let r = [s("sbb-menu-button")], l, n = [],
|
|
9
|
-
return
|
|
10
|
-
},
|
|
7
|
+
var t;
|
|
8
|
+
let r = [s("sbb-menu-button")], l, n = [], e, o = b(c(u));
|
|
9
|
+
return t = class extends o {
|
|
10
|
+
}, e = t, (() => {
|
|
11
11
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
12
|
-
i(null, l = { value:
|
|
13
|
-
})(),
|
|
12
|
+
i(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, n), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), m(e, n);
|
|
13
|
+
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|
|
16
16
|
x as SbbMenuButtonElement
|
package/menu/menu-link.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { __esDecorate as m, __runInitializers as
|
|
2
|
-
import { customElement as
|
|
1
|
+
import { __esDecorate as m, __runInitializers as s } from "tslib";
|
|
2
|
+
import { customElement as o } from "lit/decorators.js";
|
|
3
3
|
import { SbbLinkBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbDisabledInteractiveMixin as b } from "../core/mixins.js";
|
|
5
5
|
import { SbbMenuActionCommonElementMixin as u } from "./common.js";
|
|
6
6
|
let y = (() => {
|
|
7
7
|
var t;
|
|
8
|
-
let
|
|
9
|
-
return t = class extends
|
|
8
|
+
let r = [o("sbb-menu-link")], l, n = [], e, i = b(u(c));
|
|
9
|
+
return t = class extends i {
|
|
10
10
|
}, e = t, (() => {
|
|
11
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
12
|
-
m(null, l = { value: e },
|
|
11
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
12
|
+
m(null, l = { value: e }, r, { kind: "class", name: e.name, metadata: a }, null, n), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), s(e, n);
|
|
13
13
|
})(), e;
|
|
14
14
|
})();
|
|
15
15
|
export {
|