@sbb-esta/lyne-elements 4.0.0-next.1 → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/alert/alert.component.js +5 -5
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +6 -6
- package/badge.css +3 -3
- package/breadcrumb/breadcrumb/breadcrumb.component.js +4 -4
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +4 -4
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.js +1 -1
- package/card/card-badge/card-badge.component.js +7 -7
- package/card/card-button/card-button.component.d.ts +1 -1
- package/card/card-link/card-link.component.d.ts +1 -1
- package/carousel/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/carousel/carousel/carousel.component.js +33 -28
- package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/carousel/carousel-list/carousel-list.component.js +17 -22
- package/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/common.js +1 -1
- package/checkbox-common-CrwfdL9V.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip/chip.component.js +3 -3
- package/chip-label/chip-label.component.js +8 -8
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +27 -27
- package/core/dom/breakpoint.d.ts +1 -0
- package/core/dom/breakpoint.d.ts.map +1 -1
- package/core/styles/core.scss +46 -47
- package/core/styles/mixins/chip.scss +4 -4
- package/core/styles/mixins/lists.scss +3 -3
- package/core/styles/mixins/panel.scss +2 -2
- package/core/styles/mixins/typo.scss +42 -40
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +166 -38
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +4 -4
- package/core/styles/typography.scss +6 -6
- package/core.css +83 -84
- package/custom-elements.json +1494 -1515
- package/development/alert/alert/alert.component.js +7 -5
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +3 -3
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +3 -3
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +2 -2
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.js +15 -15
- package/development/card/card-badge/card-badge.component.js +3 -3
- package/development/card/card-button/card-button.component.d.ts +1 -1
- package/development/card/card-link/card-link.component.d.ts +1 -1
- package/development/carousel/carousel/carousel.component.d.ts +2 -1
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/development/carousel/carousel/carousel.component.js +19 -8
- package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +7 -14
- package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-BZFJgZd7.js → checkbox-common-BKjxH3Rp.js} +12 -12
- package/development/checkbox.js +1 -1
- package/development/chip/chip/chip.component.js +3 -3
- package/development/chip-label/chip-label.component.js +6 -6
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +5 -6
- package/development/core/dom/breakpoint.d.ts +1 -0
- package/development/core/dom/breakpoint.d.ts.map +1 -1
- package/development/core/dom/breakpoint.js +1 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
- package/development/file-selector/common.js +1 -1
- package/development/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +8 -8
- package/development/{file-selector-common-CsFa5XJ-.js → file-selector-common-B-9Eiig3.js} +4 -4
- package/development/file-selector.js +1 -1
- package/development/footer/footer.component.js +3 -3
- package/development/form-error/form-error.component.js +5 -5
- package/development/form-field/form-field/form-field.component.js +14 -14
- package/development/header/common/header-action-common.js +3 -3
- package/development/header/header-button/header-button.component.d.ts +1 -1
- package/development/header/header-environment/header-environment.component.js +3 -3
- package/development/header/header-link/header-link.component.d.ts +1 -1
- package/development/image/image.component.d.ts +0 -1
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +11 -16
- package/development/link/common/block-link-common.js +10 -10
- package/development/menu/common/menu-action-common.js +3 -3
- package/development/message/message.component.js +6 -6
- package/development/{mini-button-common-Di32bSJj.js → mini-button-common-D1dU4MgN.js} +4 -4
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +3 -3
- package/development/navigation/common/navigation-action-common.js +11 -11
- package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/development/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +3 -3
- package/development/navigation/navigation-marker/navigation-marker.component.js +9 -9
- package/development/navigation/navigation-section/navigation-section.component.js +5 -5
- package/development/notification/notification.component.js +7 -7
- package/development/option/optgroup/optgroup-base-element.js +3 -3
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +14 -4
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +8 -5
- package/development/option/option-hint/option-hint.component.js +3 -3
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -3
- package/development/paginator/paginator/paginator.component.d.ts +1 -1
- package/development/paginator/paginator/paginator.component.js +12 -12
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/development/{radio-button-common-5uawgCpB.js → radio-button-common-BPrInmpg.js} +11 -11
- package/development/radio-button.js +1 -1
- package/development/sbb-tokens-DZrHvErO.js +19 -0
- package/development/select/select.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/status/status.component.js +4 -4
- package/development/stepper/step/step.component.js +3 -3
- package/development/stepper/step-label/step-label.component.js +15 -15
- package/development/tabs/tab-label/tab-label.component.js +18 -18
- package/development/tag/tag/tag.component.js +7 -7
- package/development/teaser/teaser.component.js +3 -3
- package/development/teaser-hero/teaser-hero.component.js +2 -2
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/development/{teaser-product-common-B1KK4iNu.js → teaser-product-common-v3BvyFdH.js} +5 -5
- package/development/teaser-product.js +1 -1
- package/development/timetable-occupancy/timetable-occupancy.component.js +3 -3
- package/development/title/title-base.js +10 -10
- package/development/title/title.component.d.ts +1 -2
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +25 -13
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.js +3 -3
- package/development/toggle/toggle-option/toggle-option.component.js +3 -3
- package/development/toggle-check/toggle-check.component.js +11 -11
- package/development/tooltip/tooltip.component.js +3 -3
- package/development/train/train/train.component.js +4 -4
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +3 -3
- package/development/train/train-wagon/train-wagon.component.js +9 -9
- package/dialog/dialog-close-button/dialog-close-button.component.js +4 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
- package/file-selector/common.js +1 -1
- package/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +9 -9
- package/{file-selector-common-CUp299VH.js → file-selector-common-DbYkpr-x.js} +1 -1
- package/file-selector.js +1 -1
- package/footer/footer.component.js +1 -1
- package/form-error/form-error.component.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/header/header-button/header-button.component.d.ts +1 -1
- package/header/header-environment/header-environment.component.js +4 -4
- package/header/header-link/header-link.component.d.ts +1 -1
- package/image/image.component.d.ts +0 -1
- package/image/image.component.d.ts.map +1 -1
- package/image/image.component.js +93 -97
- package/link/common/block-link-common.js +14 -14
- package/lists.css +9 -9
- package/menu/common/menu-action-common.js +1 -1
- package/message/message.component.js +6 -6
- package/mini-button-common-DSGLaplg.js +10 -0
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/navigation/common/navigation-action-common.js +17 -17
- package/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/navigation/navigation-list/navigation-list.component.js +3 -3
- package/navigation/navigation-marker/navigation-marker.component.js +12 -12
- package/navigation/navigation-section/navigation-section.component.js +5 -5
- package/notification/notification.component.js +1 -1
- package/off-brand-theme.css +136 -137
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +30 -20
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +8 -8
- package/option/option-hint/option-hint.component.js +10 -10
- package/package.json +1 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/paginator/paginator/paginator.component.d.ts +1 -1
- package/paginator/paginator/paginator.component.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/radio-button-common-chJrmIBn.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +140 -141
- package/sbb-tokens-BNWpZrLn.js +11 -0
- package/select/select.component.js +1 -1
- package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +5 -5
- package/standard-theme.css +136 -137
- package/status/status.component.js +4 -4
- package/stepper/step/step.component.js +3 -3
- package/stepper/step-label/step-label.component.js +1 -1
- package/table.css +27 -27
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/teaser-product-common-a4NenpSA.js +5 -0
- package/teaser-product.js +1 -1
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/title/title-base.js +19 -19
- package/title/title.component.d.ts +1 -2
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +17 -17
- package/toast/toast.component.js +1 -1
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +7 -7
- package/toggle-check/toggle-check.component.js +15 -15
- package/tooltip/tooltip.component.js +5 -5
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/typography.css +11 -11
- package/checkbox-common-BGA_q9nc.js +0 -5
- package/development/sbb-tokens-DXgmy_b-.js +0 -21
- package/mini-button-common-DBnJfrBZ.js +0 -10
- package/radio-button-common-BT3VkZLM.js +0 -5
- package/sbb-tokens-CB1Hgctn.js +0 -12
- package/teaser-product-common-BwqWqRrK.js +0 -5
package/image/image.component.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var be = (o) => {
|
|
2
|
+
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var d = (
|
|
4
|
+
var _e = (o, r, l) => r.has(o) || be("Cannot " + l);
|
|
5
|
+
var d = (o, r, l) => (_e(o, r, "read from private field"), l ? l.call(o) : r.get(o)), h = (o, r, l) => r.has(o) ? be("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(o) : r.set(o, l), s = (o, r, l, m) => (_e(o, r, "write to private field"), m ? m.call(o, l) : r.set(o, l), l);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as a } from "tslib";
|
|
7
|
-
import {
|
|
8
|
-
import { css as
|
|
9
|
-
import { customElement as
|
|
10
|
-
import { forceType as
|
|
11
|
-
import { boxSizingStyles as
|
|
12
|
-
const
|
|
13
|
-
if (!
|
|
7
|
+
import { c as Pe, d as ye, a as Se, S as ze, b as ve, e as xe, f as $e, g as we } from "../sbb-tokens-BNWpZrLn.js";
|
|
8
|
+
import { css as Me, LitElement as Le, nothing as C, html as q } from "lit";
|
|
9
|
+
import { customElement as Ie, property as g, eventOptions as Ce } from "lit/decorators.js";
|
|
10
|
+
import { forceType as u } from "../core/decorators.js";
|
|
11
|
+
import { boxSizingStyles as Fe } from "../core/styles.js";
|
|
12
|
+
const De = Me`:host{--sbb-image-aspect-ratio: 16 / 9;--sbb-image-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-image-object-fit: cover;display:block;border-radius:var(--sbb-border-radius-4x)}.sbb-image__img{opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host(:not([skip-lqip])) .sbb-image__img{position:absolute;inset:0}:host([data-loaded]) .sbb-image__blurred{opacity:0}picture{display:contents}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:var(--sbb-image-object-fit);object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:inherit;overflow:hidden}`, Ee = (o) => {
|
|
13
|
+
if (!o || o.length === 0)
|
|
14
14
|
return [];
|
|
15
|
-
let
|
|
15
|
+
let r;
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
r = JSON.parse(o);
|
|
18
18
|
} catch {
|
|
19
19
|
return [];
|
|
20
20
|
}
|
|
21
|
-
if (!
|
|
21
|
+
if (!r.breakpoints || r.breakpoints.length === 0)
|
|
22
22
|
return [];
|
|
23
|
-
if (!Array.isArray(
|
|
23
|
+
if (!Array.isArray(r.breakpoints))
|
|
24
24
|
return [];
|
|
25
25
|
let l = !1, m = !1;
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
|
|
26
|
+
const F = ["image", "mediaQueries"];
|
|
27
|
+
return r.breakpoints.forEach((E) => {
|
|
28
|
+
const D = Object.keys(E);
|
|
29
|
+
D.forEach((b) => {
|
|
30
|
+
F.includes(b) || (l = !0);
|
|
31
|
+
}), F.forEach((b) => {
|
|
32
|
+
D.includes(b) || (m = !0);
|
|
33
33
|
});
|
|
34
|
-
}), l || m ? [] :
|
|
35
|
-
},
|
|
34
|
+
}), l || m ? [] : r.breakpoints;
|
|
35
|
+
}, qe = {
|
|
36
36
|
once: !0,
|
|
37
37
|
passive: !0
|
|
38
|
-
},
|
|
39
|
-
"sbb-breakpoint-zero-min":
|
|
40
|
-
"sbb-breakpoint-zero-max":
|
|
41
|
-
"sbb-breakpoint-small-min":
|
|
42
|
-
"sbb-breakpoint-small-max":
|
|
43
|
-
"sbb-breakpoint-large-min":
|
|
44
|
-
"sbb-breakpoint-large-max":
|
|
45
|
-
"sbb-breakpoint-ultra-min":
|
|
46
|
-
"sbb-breakpoint-ultra-max":
|
|
38
|
+
}, Qe = {
|
|
39
|
+
"sbb-breakpoint-zero-min": we,
|
|
40
|
+
"sbb-breakpoint-zero-max": $e,
|
|
41
|
+
"sbb-breakpoint-small-min": xe,
|
|
42
|
+
"sbb-breakpoint-small-max": ve,
|
|
43
|
+
"sbb-breakpoint-large-min": ze,
|
|
44
|
+
"sbb-breakpoint-large-max": Se,
|
|
45
|
+
"sbb-breakpoint-ultra-min": ye,
|
|
46
|
+
"sbb-breakpoint-ultra-max": Pe
|
|
47
47
|
};
|
|
48
|
-
let
|
|
49
|
-
var k, P, y, S, z, v, x, $, w, M, L,
|
|
50
|
-
let
|
|
51
|
-
return n = class extends
|
|
48
|
+
let Ve = (() => {
|
|
49
|
+
var _, k, P, y, S, z, v, x, $, w, M, L, n;
|
|
50
|
+
let o = [Ie("sbb-image")], r, l = [], m, F = Le, E = [], D, b = [], Q = [], O, B = [], X = [], Y, j = [], U = [], A, T = [], V = [], R, K = [], N = [], H, W = [], Z = [], G, J = [], ee = [], te, ie = [], ae = [], se, re = [], oe = [], ne, ce = [], le = [], pe, me = [], de = [], he, ge = [], ue = [], fe;
|
|
51
|
+
return n = class extends F {
|
|
52
52
|
constructor() {
|
|
53
53
|
super(...arguments);
|
|
54
|
+
h(this, _);
|
|
54
55
|
h(this, k);
|
|
55
56
|
h(this, P);
|
|
56
57
|
h(this, y);
|
|
@@ -62,11 +63,10 @@ let Ke = (() => {
|
|
|
62
63
|
h(this, w);
|
|
63
64
|
h(this, M);
|
|
64
65
|
h(this, L);
|
|
65
|
-
|
|
66
|
-
this._captionElement = a(this, Q), this._config = {
|
|
66
|
+
this._captionElement = a(this, E), this._config = {
|
|
67
67
|
nonRetinaQuality: "45",
|
|
68
68
|
retinaQuality: "20"
|
|
69
|
-
}, s(this,
|
|
69
|
+
}, s(this, _, a(this, b, "")), s(this, k, (a(this, Q), a(this, B, !1))), s(this, P, (a(this, X), a(this, j, !1))), s(this, y, (a(this, U), a(this, T, "auto"))), s(this, S, (a(this, V), a(this, K, !1))), s(this, z, (a(this, N), a(this, W, 1))), s(this, v, (a(this, Z), a(this, J, 1))), s(this, x, (a(this, ee), a(this, ie, ""))), s(this, $, (a(this, ae), a(this, re, "high"))), s(this, w, (a(this, oe), a(this, ce, "eager"))), s(this, M, (a(this, le), a(this, me, ""))), s(this, L, (a(this, de), a(this, ge, ""))), a(this, ue);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* An alt text is not always necessary (e.g. in teaser cards when
|
|
@@ -76,10 +76,10 @@ let Ke = (() => {
|
|
|
76
76
|
* technology, that they can skip the image.
|
|
77
77
|
*/
|
|
78
78
|
get alt() {
|
|
79
|
-
return d(this,
|
|
79
|
+
return d(this, _);
|
|
80
80
|
}
|
|
81
81
|
set alt(t) {
|
|
82
|
-
s(this,
|
|
82
|
+
s(this, _, t);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* If set to false, we show a blurred version of the image as
|
|
@@ -89,10 +89,10 @@ let Ke = (() => {
|
|
|
89
89
|
* https://medium.com/@imgix/lqip-your-images-for-fast-loading-2523d9ee4a62
|
|
90
90
|
*/
|
|
91
91
|
get skipLqip() {
|
|
92
|
-
return d(this,
|
|
92
|
+
return d(this, k);
|
|
93
93
|
}
|
|
94
94
|
set skipLqip(t) {
|
|
95
|
-
s(this,
|
|
95
|
+
s(this, k, t);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Set this to true, if you want to pass a custom focal point
|
|
@@ -100,10 +100,10 @@ let Ke = (() => {
|
|
|
100
100
|
* https://docs.imgix.com/apis/rendering/focalpoint-crop
|
|
101
101
|
*/
|
|
102
102
|
get customFocalPoint() {
|
|
103
|
-
return d(this,
|
|
103
|
+
return d(this, P);
|
|
104
104
|
}
|
|
105
105
|
set customFocalPoint(t) {
|
|
106
|
-
s(this,
|
|
106
|
+
s(this, P, t);
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
109
|
* If the lazy property is set to true, the module will automatically
|
|
@@ -113,38 +113,38 @@ let Ke = (() => {
|
|
|
113
113
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding
|
|
114
114
|
*/
|
|
115
115
|
get decoding() {
|
|
116
|
-
return d(this,
|
|
116
|
+
return d(this, y);
|
|
117
117
|
}
|
|
118
118
|
set decoding(t) {
|
|
119
|
-
s(this,
|
|
119
|
+
s(this, y, t);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Set this to true, to receive visual guidance where the custom focal
|
|
123
123
|
* point is currently set.
|
|
124
124
|
*/
|
|
125
125
|
get focalPointDebug() {
|
|
126
|
-
return d(this,
|
|
126
|
+
return d(this, S);
|
|
127
127
|
}
|
|
128
128
|
set focalPointDebug(t) {
|
|
129
|
-
s(this,
|
|
129
|
+
s(this, S, t);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* Pass in a floating number between 0 (left) and 1 (right).
|
|
133
133
|
*/
|
|
134
134
|
get focalPointX() {
|
|
135
|
-
return d(this,
|
|
135
|
+
return d(this, z);
|
|
136
136
|
}
|
|
137
137
|
set focalPointX(t) {
|
|
138
|
-
s(this,
|
|
138
|
+
s(this, z, t);
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Pass in a floating number between 0 (top) and 1 (bottom).
|
|
142
142
|
*/
|
|
143
143
|
get focalPointY() {
|
|
144
|
-
return d(this,
|
|
144
|
+
return d(this, v);
|
|
145
145
|
}
|
|
146
146
|
set focalPointY(t) {
|
|
147
|
-
s(this,
|
|
147
|
+
s(this, v, t);
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* Right now the module is heavily coupled with the image delivery
|
|
@@ -157,10 +157,10 @@ let Ke = (() => {
|
|
|
157
157
|
* LYNE Core Team.
|
|
158
158
|
*/
|
|
159
159
|
get imageSrc() {
|
|
160
|
-
return d(this,
|
|
160
|
+
return d(this, x);
|
|
161
161
|
}
|
|
162
162
|
set imageSrc(t) {
|
|
163
|
-
s(this,
|
|
163
|
+
s(this, x, t);
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* The importance attribute is fairly new attribute which should
|
|
@@ -172,10 +172,10 @@ let Ke = (() => {
|
|
|
172
172
|
* the fold, will set the attribute value to 'low'.
|
|
173
173
|
*/
|
|
174
174
|
get importance() {
|
|
175
|
-
return d(this,
|
|
175
|
+
return d(this, $);
|
|
176
176
|
}
|
|
177
177
|
set importance(t) {
|
|
178
|
-
s(this,
|
|
178
|
+
s(this, $, t);
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* With the support of native image lazy loading, we can now
|
|
@@ -188,10 +188,10 @@ let Ke = (() => {
|
|
|
188
188
|
* of the initial viewport.
|
|
189
189
|
*/
|
|
190
190
|
get loading() {
|
|
191
|
-
return d(this,
|
|
191
|
+
return d(this, w);
|
|
192
192
|
}
|
|
193
193
|
set loading(t) {
|
|
194
|
-
s(this,
|
|
194
|
+
s(this, w, t);
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
197
|
* With performance.mark you can log a timestamp associated with
|
|
@@ -207,10 +207,10 @@ let Ke = (() => {
|
|
|
207
207
|
* here, separate words with underscores or dashes.
|
|
208
208
|
*/
|
|
209
209
|
get performanceMark() {
|
|
210
|
-
return d(this,
|
|
210
|
+
return d(this, M);
|
|
211
211
|
}
|
|
212
212
|
set performanceMark(t) {
|
|
213
|
-
s(this,
|
|
213
|
+
s(this, M, t);
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* With the pictureSizesConfig object, you can pass in information
|
|
@@ -281,10 +281,10 @@ let Ke = (() => {
|
|
|
281
281
|
* }
|
|
282
282
|
*/
|
|
283
283
|
get pictureSizesConfig() {
|
|
284
|
-
return d(this,
|
|
284
|
+
return d(this, L);
|
|
285
285
|
}
|
|
286
286
|
set pictureSizesConfig(t) {
|
|
287
|
-
s(this,
|
|
287
|
+
s(this, L, t);
|
|
288
288
|
}
|
|
289
289
|
/** Whether the image is finished loading or failed to load. */
|
|
290
290
|
get complete() {
|
|
@@ -301,10 +301,6 @@ let Ke = (() => {
|
|
|
301
301
|
_logPerformanceMarks() {
|
|
302
302
|
this.performanceMark && (performance.clearMarks(this.performanceMark), performance.mark(this.performanceMark));
|
|
303
303
|
}
|
|
304
|
-
_matchMediaQueryDesignToken(t) {
|
|
305
|
-
const e = Be[t];
|
|
306
|
-
return e ? `${e}rem` : "";
|
|
307
|
-
}
|
|
308
304
|
_addFocusAbilityToLinksInCaption() {
|
|
309
305
|
this._linksInCaption?.forEach((t) => {
|
|
310
306
|
t.removeAttribute("tabindex");
|
|
@@ -369,16 +365,16 @@ let Ke = (() => {
|
|
|
369
365
|
]
|
|
370
366
|
}
|
|
371
367
|
]
|
|
372
|
-
}`,
|
|
368
|
+
}`, Ee(t);
|
|
373
369
|
}
|
|
374
370
|
_createMediaQueryString(t) {
|
|
375
371
|
let e = "";
|
|
376
372
|
return t.forEach((i) => {
|
|
377
373
|
const c = i.conditionFeature;
|
|
378
|
-
let
|
|
379
|
-
i.conditionFeatureValue.lyneDesignToken ?
|
|
374
|
+
let I;
|
|
375
|
+
i.conditionFeatureValue.lyneDesignToken ? I = Qe[i.conditionFeatureValue.value] ?? "" : I = i.conditionFeatureValue.value;
|
|
380
376
|
const f = i.conditionOperator ? ` ${i.conditionOperator} ` : "";
|
|
381
|
-
e += `(${c}: ${
|
|
377
|
+
e += `(${c}: ${I})${f}`;
|
|
382
378
|
}), e;
|
|
383
379
|
}
|
|
384
380
|
_imageLoaded() {
|
|
@@ -390,25 +386,25 @@ let Ke = (() => {
|
|
|
390
386
|
const i = this._preparePictureSizeConfigs();
|
|
391
387
|
return q`
|
|
392
388
|
<div class="sbb-image__wrapper">
|
|
393
|
-
${this.skipLqip ?
|
|
389
|
+
${this.skipLqip ? C : q`<img
|
|
394
390
|
alt=""
|
|
395
391
|
class="sbb-image__blurred"
|
|
396
392
|
src=${t}
|
|
397
393
|
width="1000"
|
|
398
394
|
height="562"
|
|
399
|
-
loading=${this.loading ??
|
|
400
|
-
decoding=${this.decoding ??
|
|
395
|
+
loading=${this.loading ?? C}
|
|
396
|
+
decoding=${this.decoding ?? C}
|
|
401
397
|
/>`}
|
|
402
398
|
|
|
403
399
|
<picture>
|
|
404
400
|
<!-- render picture element sources -->
|
|
405
401
|
${i.map((c) => {
|
|
406
|
-
const
|
|
402
|
+
const I = c.image.height, f = c.image.width, ke = this._createMediaQueryString(c.mediaQueries);
|
|
407
403
|
return q`
|
|
408
404
|
<source
|
|
409
|
-
media=${`${
|
|
405
|
+
media=${`${ke}`}
|
|
410
406
|
sizes=${`${f}px`}
|
|
411
|
-
srcset=${`${e}&w=${f}&h=${
|
|
407
|
+
srcset=${`${e}&w=${f}&h=${I}&q=${this._config.nonRetinaQuality} ${f}w, ${e}&w=${f * 2}&h=${I * 2}&q=${this._config.retinaQuality} ${f * 2}w`}
|
|
412
408
|
></source>`;
|
|
413
409
|
})}
|
|
414
410
|
<img
|
|
@@ -419,46 +415,46 @@ let Ke = (() => {
|
|
|
419
415
|
src=${this.imageSrc}
|
|
420
416
|
width="1000"
|
|
421
417
|
height="562"
|
|
422
|
-
loading=${this.loading ??
|
|
423
|
-
decoding=${this.decoding ??
|
|
424
|
-
.fetchPriority=${this.importance ??
|
|
418
|
+
loading=${this.loading ?? C}
|
|
419
|
+
decoding=${this.decoding ?? C}
|
|
420
|
+
.fetchPriority=${this.importance ?? C}
|
|
425
421
|
/>
|
|
426
422
|
</picture>
|
|
427
423
|
</div>
|
|
428
424
|
`;
|
|
429
425
|
}
|
|
430
|
-
}, k = new WeakMap(), P = new WeakMap(), y = new WeakMap(), S = new WeakMap(), z = new WeakMap(), v = new WeakMap(), x = new WeakMap(), $ = new WeakMap(), w = new WeakMap(), M = new WeakMap(), L = new WeakMap(),
|
|
431
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
432
|
-
|
|
426
|
+
}, _ = new WeakMap(), k = new WeakMap(), P = new WeakMap(), y = new WeakMap(), S = new WeakMap(), z = new WeakMap(), v = new WeakMap(), x = new WeakMap(), $ = new WeakMap(), w = new WeakMap(), M = new WeakMap(), L = new WeakMap(), m = n, (() => {
|
|
427
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(F[Symbol.metadata] ?? null) : void 0;
|
|
428
|
+
D = [u(), g()], O = [u(), g({ attribute: "skip-lqip", type: Boolean, reflect: !0 })], Y = [u(), g({ attribute: "custom-focal-point", type: Boolean })], A = [g()], R = [u(), g({ attribute: "focal-point-debug", type: Boolean })], H = [u(), g({ attribute: "focal-point-x", type: Number })], G = [u(), g({ attribute: "focal-point-y", type: Number })], te = [u(), g({ attribute: "image-src" })], se = [g()], ne = [g()], pe = [u(), g({ attribute: "performance-mark" })], he = [u(), g({ attribute: "picture-sizes-config" })], fe = [Ce(qe)], p(n, null, D, { kind: "accessor", name: "alt", static: !1, private: !1, access: { has: (e) => "alt" in e, get: (e) => e.alt, set: (e, i) => {
|
|
433
429
|
e.alt = i;
|
|
434
|
-
} }, metadata: t },
|
|
430
|
+
} }, metadata: t }, b, Q), p(n, null, O, { kind: "accessor", name: "skipLqip", static: !1, private: !1, access: { has: (e) => "skipLqip" in e, get: (e) => e.skipLqip, set: (e, i) => {
|
|
435
431
|
e.skipLqip = i;
|
|
436
|
-
} }, metadata: t },
|
|
432
|
+
} }, metadata: t }, B, X), p(n, null, Y, { kind: "accessor", name: "customFocalPoint", static: !1, private: !1, access: { has: (e) => "customFocalPoint" in e, get: (e) => e.customFocalPoint, set: (e, i) => {
|
|
437
433
|
e.customFocalPoint = i;
|
|
438
434
|
} }, metadata: t }, j, U), p(n, null, A, { kind: "accessor", name: "decoding", static: !1, private: !1, access: { has: (e) => "decoding" in e, get: (e) => e.decoding, set: (e, i) => {
|
|
439
435
|
e.decoding = i;
|
|
440
|
-
} }, metadata: t },
|
|
436
|
+
} }, metadata: t }, T, V), p(n, null, R, { kind: "accessor", name: "focalPointDebug", static: !1, private: !1, access: { has: (e) => "focalPointDebug" in e, get: (e) => e.focalPointDebug, set: (e, i) => {
|
|
441
437
|
e.focalPointDebug = i;
|
|
442
|
-
} }, metadata: t },
|
|
438
|
+
} }, metadata: t }, K, N), p(n, null, H, { kind: "accessor", name: "focalPointX", static: !1, private: !1, access: { has: (e) => "focalPointX" in e, get: (e) => e.focalPointX, set: (e, i) => {
|
|
443
439
|
e.focalPointX = i;
|
|
444
|
-
} }, metadata: t },
|
|
440
|
+
} }, metadata: t }, W, Z), p(n, null, G, { kind: "accessor", name: "focalPointY", static: !1, private: !1, access: { has: (e) => "focalPointY" in e, get: (e) => e.focalPointY, set: (e, i) => {
|
|
445
441
|
e.focalPointY = i;
|
|
446
|
-
} }, metadata: t },
|
|
442
|
+
} }, metadata: t }, J, ee), p(n, null, te, { kind: "accessor", name: "imageSrc", static: !1, private: !1, access: { has: (e) => "imageSrc" in e, get: (e) => e.imageSrc, set: (e, i) => {
|
|
447
443
|
e.imageSrc = i;
|
|
448
|
-
} }, metadata: t },
|
|
444
|
+
} }, metadata: t }, ie, ae), p(n, null, se, { kind: "accessor", name: "importance", static: !1, private: !1, access: { has: (e) => "importance" in e, get: (e) => e.importance, set: (e, i) => {
|
|
449
445
|
e.importance = i;
|
|
450
|
-
} }, metadata: t },
|
|
446
|
+
} }, metadata: t }, re, oe), p(n, null, ne, { kind: "accessor", name: "loading", static: !1, private: !1, access: { has: (e) => "loading" in e, get: (e) => e.loading, set: (e, i) => {
|
|
451
447
|
e.loading = i;
|
|
452
|
-
} }, metadata: t },
|
|
448
|
+
} }, metadata: t }, ce, le), p(n, null, pe, { kind: "accessor", name: "performanceMark", static: !1, private: !1, access: { has: (e) => "performanceMark" in e, get: (e) => e.performanceMark, set: (e, i) => {
|
|
453
449
|
e.performanceMark = i;
|
|
454
|
-
} }, metadata: t },
|
|
450
|
+
} }, metadata: t }, me, de), p(n, null, he, { kind: "accessor", name: "pictureSizesConfig", static: !1, private: !1, access: { has: (e) => "pictureSizesConfig" in e, get: (e) => e.pictureSizesConfig, set: (e, i) => {
|
|
455
451
|
e.pictureSizesConfig = i;
|
|
456
|
-
} }, metadata: t }, ge,
|
|
457
|
-
})(), n.styles = [
|
|
452
|
+
} }, metadata: t }, ge, ue), p(n, null, fe, { kind: "method", name: "_imageLoaded", static: !1, private: !1, access: { has: (e) => "_imageLoaded" in e, get: (e) => e._imageLoaded }, metadata: t }, null, E), p(null, r = { value: m }, o, { kind: "class", name: m.name, metadata: t }, null, l), m = r.value, t && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
453
|
+
})(), n.styles = [Fe, De], n.events = {
|
|
458
454
|
error: "error",
|
|
459
455
|
load: "load"
|
|
460
456
|
}, a(m, l), m;
|
|
461
457
|
})();
|
|
462
458
|
export {
|
|
463
|
-
|
|
459
|
+
Ve as SbbImageElement
|
|
464
460
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var c = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var m = (t,
|
|
5
|
-
var v = (t,
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { property as
|
|
8
|
-
import { html as
|
|
4
|
+
var m = (t, e, o) => e.has(t) || c("Cannot " + o);
|
|
5
|
+
var v = (t, e, o) => (m(t, e, "read from private field"), o ? o.call(t) : e.get(t)), p = (t, e, o) => e.has(t) ? c("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), h = (t, e, o, s) => (m(t, e, "write to private field"), s ? s.call(t, o) : e.set(t, o), o);
|
|
6
|
+
import { __esDecorate as k, __runInitializers as f } from "tslib";
|
|
7
|
+
import { property as y } from "lit/decorators.js";
|
|
8
|
+
import { html as d } from "lit/static-html.js";
|
|
9
9
|
import { boxSizingStyles as u } from "../../core/styles.js";
|
|
10
10
|
import { SbbIconNameMixin as x } from "../../icon.js";
|
|
11
11
|
import { S as _, s as z } from "../../link-common-CdQBSga7.js";
|
|
12
12
|
import { css as S } from "lit";
|
|
13
|
-
const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-graphite));--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-metal));--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-normal: light-dark(var(--sbb-color-granite), var(--sbb-color-white));--sbb-link-color-hover: var(--sbb-color-primary125);--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-cloud));--sbb-link-color-active: var(--sbb-color-primary150);--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-silver));--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-color-normal: var(--sbb-color-1-negative);--sbb-link-color-hover: var(--sbb-color-4-negative);--sbb-link-color-active: var(--sbb-color-silver)}:host(.sbb-active){--sbb-link-color-normal: var(--sbb-color-black);--sbb-link-color-normal: light-dark(var(--sbb-color-black), var(--sbb-color-cement));--sbb-link-text-decoration-line: underline}:host(.sbb-active[negative]){--sbb-link-color-normal: var(--sbb-color-cement);--sbb-link-text-decoration-line: underline}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-
|
|
13
|
+
const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-graphite));--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-metal));--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-normal: light-dark(var(--sbb-color-granite), var(--sbb-color-white));--sbb-link-color-hover: var(--sbb-color-primary125);--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-cloud));--sbb-link-color-active: var(--sbb-color-primary150);--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-silver));--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-color-normal: var(--sbb-color-1-negative);--sbb-link-color-hover: var(--sbb-color-4-negative);--sbb-link-color-active: var(--sbb-color-silver)}:host(.sbb-active){--sbb-link-color-normal: var(--sbb-color-black);--sbb-link-color-normal: light-dark(var(--sbb-color-black), var(--sbb-color-cement));--sbb-link-text-decoration-line: underline}:host(.sbb-active[negative]){--sbb-link-color-normal: var(--sbb-color-cement);--sbb-link-text-decoration-line: underline}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}:host([size=s]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-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%)}`, D = (t) => (() => {
|
|
14
14
|
var r, i;
|
|
15
|
-
let
|
|
16
|
-
return i = class extends
|
|
15
|
+
let o = _(x(t)), s, b = [], l = [];
|
|
16
|
+
return i = class extends o {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
p(this, r, f(this,
|
|
19
|
+
p(this, r, f(this, b, "start"));
|
|
20
20
|
f(this, l);
|
|
21
21
|
}
|
|
22
22
|
/** Moves the icon to the end of the component if set to true. */
|
|
@@ -27,16 +27,16 @@ const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125)
|
|
|
27
27
|
h(this, r, a);
|
|
28
28
|
}
|
|
29
29
|
renderTemplate() {
|
|
30
|
-
return
|
|
30
|
+
return d`
|
|
31
31
|
<span class="sbb-link__icon"> ${super.renderIconSlot()} </span>
|
|
32
32
|
<slot></slot>
|
|
33
33
|
`;
|
|
34
34
|
}
|
|
35
35
|
}, r = new WeakMap(), (() => {
|
|
36
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
37
|
-
s = [
|
|
38
|
-
|
|
39
|
-
} }, metadata: a },
|
|
36
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
37
|
+
s = [y({ attribute: "icon-placement", reflect: !0 })], k(i, null, s, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (n) => "iconPlacement" in n, get: (n) => n.iconPlacement, set: (n, g) => {
|
|
38
|
+
n.iconPlacement = g;
|
|
39
|
+
} }, metadata: a }, b, l), a && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
40
40
|
})(), i.styles = [u, z, P], i;
|
|
41
41
|
})();
|
|
42
42
|
export {
|
package/lists.css
CHANGED
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
width: 1em;
|
|
42
42
|
align-items: center;
|
|
43
43
|
justify-content: center;
|
|
44
|
-
inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-
|
|
44
|
+
inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-text) * 1em - 1em));
|
|
45
45
|
inset-inline-start: calc(-1 * (0.5 * var(--sbb-list-padding-inline-start) + 0.5em));
|
|
46
46
|
transform: scale(1.3);
|
|
47
47
|
}
|
|
48
48
|
.sbb-list:where(dl) {
|
|
49
|
-
--sbb-text-font-size: var(--sbb-font-size-
|
|
49
|
+
--sbb-text-font-size: var(--sbb-text-font-size-s);
|
|
50
50
|
font-family: var(--sbb-typo-font-family);
|
|
51
51
|
font-weight: normal;
|
|
52
|
-
line-height: var(--sbb-typo-line-height-
|
|
53
|
-
letter-spacing: var(--sbb-typo-letter-spacing-
|
|
52
|
+
line-height: var(--sbb-typo-line-height-text);
|
|
53
|
+
letter-spacing: var(--sbb-typo-letter-spacing-text);
|
|
54
54
|
font-size: var(--sbb-text-font-size);
|
|
55
55
|
margin: 0;
|
|
56
56
|
padding: 0;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
--sbb-step-list-text-to-marker-block-offset: calc(
|
|
75
75
|
0.5 *
|
|
76
76
|
(
|
|
77
|
-
var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-
|
|
77
|
+
var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-text) *
|
|
78
78
|
var(--sbb-text-font-size)
|
|
79
79
|
)
|
|
80
80
|
);
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
min-height: calc(var(--sbb-step-list-dimensions) + 2 * var(--sbb-step-list-padding-block));
|
|
105
105
|
}
|
|
106
106
|
.sbb-step-list > li::before {
|
|
107
|
-
--sbb-text-font-size: var(--sbb-font-size-
|
|
107
|
+
--sbb-text-font-size: var(--sbb-text-font-size-xxs);
|
|
108
108
|
font-family: var(--sbb-typo-font-family);
|
|
109
109
|
font-weight: normal;
|
|
110
|
-
line-height: var(--sbb-typo-line-height-
|
|
111
|
-
letter-spacing: var(--sbb-typo-letter-spacing-
|
|
110
|
+
line-height: var(--sbb-typo-line-height-text);
|
|
111
|
+
letter-spacing: var(--sbb-typo-letter-spacing-text);
|
|
112
112
|
font-size: var(--sbb-text-font-size);
|
|
113
113
|
font-weight: bold;
|
|
114
114
|
content: counter(steps);
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
--sbb-icon-list-text-to-marker-block-offset: calc(
|
|
153
153
|
0.5 *
|
|
154
154
|
(
|
|
155
|
-
var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-
|
|
155
|
+
var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-text) *
|
|
156
156
|
var(--sbb-text-font-size)
|
|
157
157
|
)
|
|
158
158
|
);
|
|
@@ -3,7 +3,7 @@ import { html as a } from "lit/static-html.js";
|
|
|
3
3
|
import { SbbDisabledMixin as s } from "../../core/mixins.js";
|
|
4
4
|
import { boxSizingStyles as i } from "../../core/styles.js";
|
|
5
5
|
import { SbbIconNameMixin as b } from "../../icon.js";
|
|
6
|
-
const r = t`: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-outer-vertical-padding: var(--sbb-spacing-fixed-1x);--sbb-menu-action-gap: var(--sbb-spacing-fixed-2x);--sbb-menu-action-cursor: var(--sbb-cursor-pointer);--sbb-menu-action-color: var(--sbb-color-2-inverted);--sbb-menu-action-forced-color-border-color: CanvasText;--sbb-menu-action-content-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-menu-action-content-padding-block: var(--sbb-spacing-fixed-1x);display:block}@media(any-hover:hover){:host(:is(:hover:not([disabled],:disabled,[disabled-interactive]),[aria-expanded=true])){--sbb-menu-background-color: var(--sbb-color-iron);--sbb-menu-background-color: light-dark(var(--sbb-color-iron), var(--sbb-color-milk));--sbb-menu-action-forced-color-border-color: Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor: var(--sbb-cursor-default);--sbb-menu-action-color: var(--sbb-color-graphite);--sbb-menu-action-color: light-dark(var(--sbb-color-graphite), var(--sbb-color-granite));--sbb-menu-action-forced-color-border-color: GrayText;pointer-events:none;cursor:var(--sbb-cursor-default)}@media(forced-colors:active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color: GrayText}}:host([data-sbb-menu-trigger]){--sbb-menu-action-cursor: var(--sbb-cursor-default)}@media(forced-colors:active){:host([data-button]){--sbb-menu-action-color: ButtonText}}:host([sbb-badge]:not(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:50% calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - .5 * var(--sbb-size-icon-ui-small)) auto auto!important;translate:50% -50%}:host([sbb-badge]:is(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:calc(var(--sbb-menu-action-outer-vertical-padding) + var(--sbb-menu-action-content-padding-block) + var(--sbb-badge-position-offset)) calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - var(--sbb-size-icon-ui-small) + var(--sbb-badge-position-offset)) auto auto!important}:host([aria-controls*=sbb-menu]){--sbb-menu-action-submenu-icon-display: flex}:is(.sbb-menu-button,.sbb-menu-link){text-decoration:none;display:block;width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-menu-action-outer-vertical-padding) 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-
|
|
6
|
+
const r = t`: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-outer-vertical-padding: var(--sbb-spacing-fixed-1x);--sbb-menu-action-gap: var(--sbb-spacing-fixed-2x);--sbb-menu-action-cursor: var(--sbb-cursor-pointer);--sbb-menu-action-color: var(--sbb-color-2-inverted);--sbb-menu-action-forced-color-border-color: CanvasText;--sbb-menu-action-content-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-menu-action-content-padding-block: var(--sbb-spacing-fixed-1x);display:block}@media(any-hover:hover){:host(:is(:hover:not([disabled],:disabled,[disabled-interactive]),[aria-expanded=true])){--sbb-menu-background-color: var(--sbb-color-iron);--sbb-menu-background-color: light-dark(var(--sbb-color-iron), var(--sbb-color-milk));--sbb-menu-action-forced-color-border-color: Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor: var(--sbb-cursor-default);--sbb-menu-action-color: var(--sbb-color-graphite);--sbb-menu-action-color: light-dark(var(--sbb-color-graphite), var(--sbb-color-granite));--sbb-menu-action-forced-color-border-color: GrayText;pointer-events:none;cursor:var(--sbb-cursor-default)}@media(forced-colors:active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color: GrayText}}:host([data-sbb-menu-trigger]){--sbb-menu-action-cursor: var(--sbb-cursor-default)}@media(forced-colors:active){:host([data-button]){--sbb-menu-action-color: ButtonText}}:host([sbb-badge]:not(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:50% calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - .5 * var(--sbb-size-icon-ui-small)) auto auto!important;translate:50% -50%}:host([sbb-badge]:is(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:calc(var(--sbb-menu-action-outer-vertical-padding) + var(--sbb-menu-action-content-padding-block) + var(--sbb-badge-position-offset)) calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - var(--sbb-size-icon-ui-small) + var(--sbb-badge-position-offset)) auto auto!important}:host([aria-controls*=sbb-menu]){--sbb-menu-action-submenu-icon-display: flex}:is(.sbb-menu-button,.sbb-menu-link){text-decoration:none;display:block;width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-menu-action-outer-vertical-padding) 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-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;gap:var(--sbb-menu-action-gap);padding:var(--sbb-menu-action-content-padding-block) var(--sbb-menu-action-content-padding-inline);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) .sbb-menu-action__content,:focus-visible .sbb-menu-action__content{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, 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,.sbb-menu-submenu__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small)}.sbb-menu-submenu__icon{display:var(--sbb-menu-action-submenu-icon-display, none);margin-inline-start:auto}.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}`, v = (e) => {
|
|
7
7
|
const n = class n extends b(s(e)) {
|
|
8
8
|
renderTemplate() {
|
|
9
9
|
return a`
|
|
@@ -2,11 +2,11 @@ import { __esDecorate as n, __runInitializers as m } from "tslib";
|
|
|
2
2
|
import { css as c, LitElement as g, html as d } from "lit";
|
|
3
3
|
import { customElement as v } from "lit/decorators.js";
|
|
4
4
|
import { boxSizingStyles as p } from "../core/styles.js";
|
|
5
|
-
const f = c`:host{--sbb-message-subtitle-color: var(--sbb-color-granite);--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);--sbb-message-image-border-radius: var(--sbb-border-radius-4x);--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;display:block}.sbb-message__container{text-align:center}::slotted(sbb-title[slot=title]){margin:0}::slotted([slot=image]){display:block;margin-inline:auto!important;margin-block:var(--sbb-message-image-margin-block)!important;width:100%}::slotted([slot=subtitle]){--sbb-text-font-size: var(--sbb-font-size-
|
|
5
|
+
const f = c`:host{--sbb-message-subtitle-color: var(--sbb-color-granite);--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);--sbb-message-image-border-radius: var(--sbb-border-radius-4x);--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;display:block}.sbb-message__container{text-align:center}::slotted(sbb-title[slot=title]){margin:0}::slotted([slot=image]){display:block;margin-inline:auto!important;margin-block:var(--sbb-message-image-margin-block)!important;width:100%}::slotted([slot=subtitle]){--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-message-subtitle-color);margin:0}::slotted([slot=legend]){--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);padding:0;color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-cement));margin-block:var(--sbb-message-legend-margin-block)}::slotted([slot=action]){margin-block:var(--sbb-message-action-margin-block)}`;
|
|
6
6
|
let _ = (() => {
|
|
7
7
|
var e;
|
|
8
|
-
let r = [v("sbb-message")],
|
|
9
|
-
return e = class extends
|
|
8
|
+
let r = [v("sbb-message")], l, i = [], t, o = g;
|
|
9
|
+
return e = class extends o {
|
|
10
10
|
_configureTitle(s) {
|
|
11
11
|
const a = s.target.assignedElements().find((b) => b.localName === "sbb-title");
|
|
12
12
|
a && (customElements.upgrade(a), a.visualLevel = "5");
|
|
@@ -23,9 +23,9 @@ let _ = (() => {
|
|
|
23
23
|
`;
|
|
24
24
|
}
|
|
25
25
|
}, t = e, (() => {
|
|
26
|
-
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
27
|
-
n(null,
|
|
28
|
-
})(), e.styles = [p, f], m(t,
|
|
26
|
+
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
27
|
+
n(null, l = { value: t }, r, { kind: "class", name: t.name, metadata: s }, null, i), t = l.value, s && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
|
|
28
|
+
})(), e.styles = [p, f], m(t, i), t;
|
|
29
29
|
})();
|
|
30
30
|
export {
|
|
31
31
|
_ as SbbMessageElement
|