@sbb-esta/lyne-elements-experimental 5.0.0-next.1 → 5.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/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +18 -18
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-BFzREPWp.js → autocomplete-grid-cell.component-DAsWZlTn.js} +6 -6
- package/{autocomplete-grid-option.component-DhmoLeEw.js → autocomplete-grid-option.component-iEj9qreq.js} +9 -9
- package/{autocomplete-grid-row.component-BQxCxOI6.js → autocomplete-grid-row.component-VbyYP0U-.js} +7 -7
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/custom-elements.json +225 -104
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -3
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/development/autocomplete-grid-cell.component-BF8i4388.js +33 -0
- package/development/{autocomplete-grid-option.component-B4SXR9_v.js → autocomplete-grid-option.component-BQwwanAf.js} +3 -3
- package/development/{autocomplete-grid-row.component-CY4UDuuj.js → autocomplete-grid-row.component-CBHh50jC.js} +3 -3
- package/development/autocomplete-grid.js +3 -3
- package/development/autocomplete-grid.pure.js +3 -3
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/journey-summary.component-De1ioDRq.js +341 -0
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/{pearl-chain-time.component-DDnGnI77.js → pearl-chain-time.component-BxVQ1z-Z.js} +4 -4
- package/development/pearl-chain-time.js +1 -1
- package/development/pearl-chain-time.pure.js +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/{pearl-chain-vertical-item.component-DHsk3J8I.js → pearl-chain-vertical-item.component-DJioJtxP.js} +3 -3
- package/development/pearl-chain-vertical-item.js +1 -1
- package/development/pearl-chain-vertical-item.pure.js +1 -1
- package/development/pearl-chain-vertical.component-zSOeIkhh.js +30 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/{pearl-chain.component-CngXp3rK.js → pearl-chain.component-B83OsEx8.js} +4 -4
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- package/development/seat-reservation/common/types.d.ts +3 -4
- package/development/seat-reservation/common/types.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +38 -7
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +143 -32
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -13
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/development/seat-reservation-area.component-CMqjbUtV.js +94 -0
- package/development/seat-reservation-graphic.component-C2r57590.js +129 -0
- package/development/{seat-reservation-navigation-coach.component-DRCcI2ss.js → seat-reservation-navigation-coach.component-BwLbiHCG.js} +8 -8
- package/development/{seat-reservation-navigation-services.component-ZNm77ZG-.js → seat-reservation-navigation-services.component-Do8JLJh3.js} +8 -6
- package/development/{seat-reservation-place-control.component-BQ7fOSHM.js → seat-reservation-place-control.component-BfuOGZYq.js} +6 -6
- package/development/{seat-reservation-scoped.component-X-Kq0-w5.js → seat-reservation-scoped.component-D-Mvw-Q3.js} +3 -3
- package/development/seat-reservation.component-B2nJ13F1.js +472 -0
- package/development/seat-reservation.js +7 -7
- package/development/seat-reservation.pure.js +7 -7
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-duration.component-fBla8Kue.js +96 -0
- package/development/timetable-duration.js +1 -1
- package/development/timetable-duration.pure.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/development/timetable-row.component-C9Y9Rev1.js +732 -0
- package/development/timetable-row.js +1 -1
- package/development/timetable-row.pure.js +1 -1
- package/journey-summary/journey-summary.component.js +1 -1
- package/{journey-summary.component-C7WPKx8k.js → journey-summary.component-CkDRawn9.js} +53 -54
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/{pearl-chain-time.component-awU4lFdO.js → pearl-chain-time.component-D5OCEBJ_.js} +11 -11
- package/pearl-chain-time.js +1 -1
- package/pearl-chain-time.pure.js +1 -1
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/{pearl-chain-vertical-item.component-CO6HUZFL.js → pearl-chain-vertical-item.component-IdquCJMy.js} +28 -28
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-Lx47SlJU.js → pearl-chain-vertical.component-CDOWaup3.js} +6 -6
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-BAtmfmpA.js → pearl-chain.component-C6lcD7Xl.js} +5 -5
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +130 -77
- package/seat-reservation/seat-reservation/seat-reservation.component.js +1 -1
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/seat-reservation-area.component-BcmwKJSK.js +73 -0
- package/seat-reservation-graphic.component-C3wc4DKr.js +102 -0
- package/{seat-reservation-navigation-coach.component-CGfmiQJq.js → seat-reservation-navigation-coach.component-D1SgS8BU.js} +51 -51
- package/{seat-reservation-navigation-services.component-DQviLWvy.js → seat-reservation-navigation-services.component-CfAQa7pa.js} +29 -27
- package/{seat-reservation-place-control.component-BYJi6aYS.js → seat-reservation-place-control.component-DrzEDW8Z.js} +42 -42
- package/{seat-reservation-scoped.component-CdB7HYzl.js → seat-reservation-scoped.component-BohQUGVW.js} +6 -6
- package/{seat-reservation.component-uWai3ks6.js → seat-reservation.component-CB2IWgM9.js} +84 -88
- package/seat-reservation.js +7 -7
- package/seat-reservation.pure.js +7 -7
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-PmvoOKVw.js → timetable-duration.component-DPRcG1LP.js} +7 -7
- package/timetable-duration.js +1 -1
- package/timetable-duration.pure.js +1 -1
- package/timetable-row/timetable-row.component.js +1 -1
- package/{timetable-row.component-BnmrhD2d.js → timetable-row.component-BqIVlISS.js} +34 -34
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/development/autocomplete-grid-cell.component-Buvsof-Y.js +0 -33
- package/development/journey-summary.component-B9P1PAJv.js +0 -342
- package/development/pearl-chain-vertical.component-Cmc3QXgd.js +0 -30
- package/development/seat-reservation-area.component-BQEtJhk0.js +0 -94
- package/development/seat-reservation-graphic.component-XpqxL5nq.js +0 -129
- package/development/seat-reservation.component-wkvc3Frp.js +0 -515
- package/development/timetable-duration.component-2JBYobDt.js +0 -96
- package/development/timetable-row.component-B884Zj89.js +0 -732
- package/seat-reservation-area.component-CVc6uuMG.js +0 -73
- package/seat-reservation-graphic.component-Dzkv9tyR.js +0 -102
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-
|
|
1
|
+
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-C9Y9Rev1.js";
|
|
2
2
|
import "./timetable-row.pure.js";
|
|
3
3
|
//#region src/elements-experimental/timetable-row.ts
|
|
4
4
|
/** @entrypoint */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-
|
|
1
|
+
import { a as handleNotices, c as sortSituation, i as getHimIcon, n as filterNotices, o as renderIconProduct, r as getCus, s as renderStringProduct, t as SbbTimetableRowElement } from "./timetable-row.component-C9Y9Rev1.js";
|
|
2
2
|
export { SbbTimetableRowElement, filterNotices, getCus, getHimIcon, handleNotices, renderIconProduct, renderStringProduct, sortSituation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../journey-summary.component-
|
|
1
|
+
import { t as e } from "../journey-summary.component-CkDRawn9.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./format-DbUuNYFU.js";
|
|
2
2
|
import { t } from "./isValid-B9oVW3lA.js";
|
|
3
3
|
import { __esDecorate as n, __runInitializers as r } from "tslib";
|
|
4
|
-
import { SbbElement as i, SbbLanguageController as a,
|
|
5
|
-
import { html as
|
|
6
|
-
import { SbbDividerElement as
|
|
7
|
-
import { SbbJourneyHeaderElement as
|
|
8
|
-
import { property as
|
|
9
|
-
import { durationToTime as
|
|
10
|
-
import { SbbPearlChainTimeElement as
|
|
4
|
+
import { SbbElement as i, SbbLanguageController as a, defaultDateAdapter as o, forceType as s, i18nTripDuration as c, screenReaderOnlyStyles as l } from "@sbb-esta/lyne-elements/core.js";
|
|
5
|
+
import { html as u, nothing as d, unsafeCSS as f } from "lit";
|
|
6
|
+
import { SbbDividerElement as p } from "@sbb-esta/lyne-elements/divider.pure.js";
|
|
7
|
+
import { SbbJourneyHeaderElement as m } from "@sbb-esta/lyne-elements/journey-header.pure.js";
|
|
8
|
+
import { property as h } from "lit/decorators.js";
|
|
9
|
+
import { durationToTime as g, removeTimezoneFromISOTimeString as _ } from "./core.js";
|
|
10
|
+
import { SbbPearlChainTimeElement as v } from "./pearl-chain-time.pure.js";
|
|
11
11
|
//#region src/elements-experimental/journey-summary/journey-summary.scss?inline
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
return class extends
|
|
12
|
+
var y = ":host{display:block}.sbb-journey-summary{--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-color-4);display:flex;flex-direction:column}.sbb-journey-summary__via-block{display:flex}.sbb-journey-summary__vias{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-block:0;padding-inline-start:var(--sbb-spacing-fixed-1x)}.sbb-journey-summary__date{margin-block-end:var(--sbb-spacing-fixed-2x)}.sbb-journey-summary__via{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbb-journey-summary__divider{margin-block:var(--sbb-spacing-fixed-6x)}ul li{list-style:none;display:inline}", b = (() => {
|
|
13
|
+
let b = i, x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L, R = [], z = [], B;
|
|
14
|
+
return class extends b {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), this.#e = (r(this,
|
|
16
|
+
super(...arguments), this.#e = (r(this, x), r(this, C, null)), this.#t = (r(this, w), r(this, E, null)), this.#n = (r(this, D), r(this, k, !1)), this.#r = (r(this, A), r(this, M, "3")), this.#i = (r(this, N), r(this, F, !1)), this.#a = (r(this, I), r(this, R, !1)), this._now = (r(this, z), null), this._hasContentSlot = !1, this._language = new a(this);
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
20
|
-
|
|
19
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
20
|
+
S = [h({ type: Object })], T = [h({
|
|
21
21
|
attribute: "trip-back",
|
|
22
22
|
type: Object
|
|
23
|
-
})],
|
|
23
|
+
})], O = [s(), h({
|
|
24
24
|
attribute: "round-trip",
|
|
25
25
|
type: Boolean
|
|
26
|
-
})],
|
|
26
|
+
})], j = [h({ attribute: "header-level" })], P = [s(), h({
|
|
27
27
|
attribute: "disable-animation",
|
|
28
28
|
type: Boolean
|
|
29
|
-
})],
|
|
29
|
+
})], L = [s(), h({
|
|
30
30
|
attribute: "a11y-footpath",
|
|
31
31
|
type: Boolean
|
|
32
|
-
})],
|
|
32
|
+
})], B = [h()], n(this, null, S, {
|
|
33
33
|
kind: "accessor",
|
|
34
34
|
name: "trip",
|
|
35
35
|
static: !1,
|
|
@@ -42,7 +42,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
metadata: e
|
|
45
|
-
},
|
|
45
|
+
}, C, w), n(this, null, T, {
|
|
46
46
|
kind: "accessor",
|
|
47
47
|
name: "tripBack",
|
|
48
48
|
static: !1,
|
|
@@ -55,7 +55,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
metadata: e
|
|
58
|
-
},
|
|
58
|
+
}, E, D), n(this, null, O, {
|
|
59
59
|
kind: "accessor",
|
|
60
60
|
name: "roundTrip",
|
|
61
61
|
static: !1,
|
|
@@ -68,7 +68,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
metadata: e
|
|
71
|
-
},
|
|
71
|
+
}, k, A), n(this, null, j, {
|
|
72
72
|
kind: "accessor",
|
|
73
73
|
name: "headerLevel",
|
|
74
74
|
static: !1,
|
|
@@ -81,7 +81,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
metadata: e
|
|
84
|
-
},
|
|
84
|
+
}, M, N), n(this, null, P, {
|
|
85
85
|
kind: "accessor",
|
|
86
86
|
name: "disableAnimation",
|
|
87
87
|
static: !1,
|
|
@@ -94,7 +94,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
metadata: e
|
|
97
|
-
},
|
|
97
|
+
}, F, I), n(this, null, L, {
|
|
98
98
|
kind: "accessor",
|
|
99
99
|
name: "a11yFootpath",
|
|
100
100
|
static: !1,
|
|
@@ -107,7 +107,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
metadata: e
|
|
110
|
-
},
|
|
110
|
+
}, R, z), n(this, null, B, {
|
|
111
111
|
kind: "setter",
|
|
112
112
|
name: "now",
|
|
113
113
|
static: !1,
|
|
@@ -119,7 +119,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
metadata: e
|
|
122
|
-
}, null,
|
|
122
|
+
}, null, x), e && Object.defineProperty(this, Symbol.metadata, {
|
|
123
123
|
enumerable: !0,
|
|
124
124
|
configurable: !0,
|
|
125
125
|
writable: !0,
|
|
@@ -131,14 +131,13 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
131
131
|
}
|
|
132
132
|
static {
|
|
133
133
|
this.elementDependencies = [
|
|
134
|
+
p,
|
|
134
135
|
m,
|
|
135
|
-
|
|
136
|
-
y,
|
|
137
|
-
o
|
|
136
|
+
v
|
|
138
137
|
];
|
|
139
138
|
}
|
|
140
139
|
static {
|
|
141
|
-
this.styles = [
|
|
140
|
+
this.styles = [l, f(y)];
|
|
142
141
|
}
|
|
143
142
|
#e;
|
|
144
143
|
get trip() {
|
|
@@ -183,7 +182,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
183
182
|
this.#a = e;
|
|
184
183
|
}
|
|
185
184
|
set now(e) {
|
|
186
|
-
this._now =
|
|
185
|
+
this._now = o.getValidDateOrNull(o.deserialize(e));
|
|
187
186
|
}
|
|
188
187
|
get now() {
|
|
189
188
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
@@ -192,26 +191,26 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
192
191
|
super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
|
|
193
192
|
}
|
|
194
193
|
_renderJourneyStart(n, r) {
|
|
195
|
-
let i =
|
|
196
|
-
if (t(n)) return
|
|
194
|
+
let i = o, a = r ? g(r, this._language.current) : null;
|
|
195
|
+
if (t(n)) return u`
|
|
197
196
|
<time datetime=${e(n, "d") + " " + e(n, "M")}>
|
|
198
197
|
${i.format(n).replace(",", ".")}</time
|
|
199
|
-
>${r && r > 0 ?
|
|
200
|
-
<sbb-screen-reader-only>
|
|
201
|
-
${
|
|
202
|
-
</
|
|
198
|
+
>${r && r > 0 ? u`,<time>
|
|
199
|
+
<span class="sbb-screen-reader-only">
|
|
200
|
+
${c[this._language.current]} ${a.long}
|
|
201
|
+
</span>
|
|
203
202
|
<span aria-hidden="true">${a.short}</span>
|
|
204
|
-
</time>` :
|
|
203
|
+
</time>` : d}
|
|
205
204
|
`;
|
|
206
205
|
}
|
|
207
206
|
_renderJourneyVias(e) {
|
|
208
207
|
let t = e.slice(0, 5);
|
|
209
|
-
return
|
|
208
|
+
return u`
|
|
210
209
|
<div class="sbb-journey-summary__via-block">
|
|
211
210
|
<span class="sbb-journey-summary__via-text">Via</span>
|
|
212
|
-
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" :
|
|
213
|
-
${t.map((e, n) =>
|
|
214
|
-
${e}${n !== t.length - 1 && n < 4 ?
|
|
211
|
+
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : d}>
|
|
212
|
+
${t.map((e, n) => u`<li class="sbb-journey-summary__via">
|
|
213
|
+
${e}${n !== t.length - 1 && n < 4 ? u`<span>,</span>` : d}
|
|
215
214
|
</li>`)}
|
|
216
215
|
</ul>
|
|
217
216
|
</div>
|
|
@@ -219,11 +218,11 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
219
218
|
}
|
|
220
219
|
_renderJourneyInformation(e) {
|
|
221
220
|
let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
|
|
222
|
-
return
|
|
221
|
+
return u`
|
|
223
222
|
<div>
|
|
224
|
-
${t && t.length > 0 ? this._renderJourneyVias(t) :
|
|
223
|
+
${t && t.length > 0 ? this._renderJourneyVias(t) : d}
|
|
225
224
|
<div class="sbb-journey-summary__date">
|
|
226
|
-
${this._renderJourneyStart(
|
|
225
|
+
${this._renderJourneyStart(_(i), n)}
|
|
227
226
|
</div>
|
|
228
227
|
<sbb-pearl-chain-time
|
|
229
228
|
.arrivalTime=${o}
|
|
@@ -240,27 +239,27 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
240
239
|
}
|
|
241
240
|
render() {
|
|
242
241
|
let { origin: e, destination: t } = this.trip || {};
|
|
243
|
-
return
|
|
242
|
+
return u`
|
|
244
243
|
<div class="sbb-journey-summary">
|
|
245
|
-
${e ?
|
|
246
|
-
|
|
247
|
-
.level=${this.headerLevel ||
|
|
244
|
+
${e ? u`<sbb-journey-header
|
|
245
|
+
visual-level="4"
|
|
246
|
+
.level=${this.headerLevel || d}
|
|
248
247
|
.origin=${e}
|
|
249
248
|
.destination=${t}
|
|
250
|
-
.roundTrip=${this.roundTrip ??
|
|
251
|
-
></sbb-journey-header>` :
|
|
249
|
+
.roundTrip=${this.roundTrip ?? d}
|
|
250
|
+
></sbb-journey-header>` : d}
|
|
252
251
|
${this._renderJourneyInformation(this.trip)}
|
|
253
|
-
${this.tripBack ?
|
|
252
|
+
${this.tripBack ? u`<div>
|
|
254
253
|
<sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
|
|
255
254
|
${this._renderJourneyInformation(this.tripBack)}
|
|
256
|
-
</div>` :
|
|
257
|
-
${this._hasContentSlot ?
|
|
255
|
+
</div>` : d}
|
|
256
|
+
${this._hasContentSlot ? u` <div class="sbb-journey-summary__slot">
|
|
258
257
|
<slot name="content"></slot>
|
|
259
|
-
</div>` :
|
|
258
|
+
</div>` : d}
|
|
260
259
|
</div>
|
|
261
260
|
`;
|
|
262
261
|
}
|
|
263
262
|
};
|
|
264
263
|
})();
|
|
265
264
|
//#endregion
|
|
266
|
-
export {
|
|
265
|
+
export { b as t };
|
package/journey-summary.js
CHANGED
package/journey-summary.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./journey-summary.component-
|
|
1
|
+
import { t as e } from "./journey-summary.component-CkDRawn9.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.2",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
},
|
|
132
132
|
"customElements": "custom-elements.json",
|
|
133
133
|
"peerDependencies": {
|
|
134
|
-
"@sbb-esta/lyne-elements": "5.0.0-next.
|
|
134
|
+
"@sbb-esta/lyne-elements": "5.0.0-next.2"
|
|
135
135
|
},
|
|
136
136
|
"dependencies": {
|
|
137
137
|
"lit": "^3.3.2",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain.component-
|
|
1
|
+
import { t as e } from "../pearl-chain.component-C6lcD7Xl.js";
|
|
2
2
|
export { e as SbbPearlChainElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-time.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-time.component-D5OCEBJ_.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./format-DbUuNYFU.js";
|
|
2
2
|
import { __esDecorate as t, __runInitializers as n } from "tslib";
|
|
3
|
-
import { SbbElement as r, SbbLanguageController as i,
|
|
3
|
+
import { SbbElement as r, SbbLanguageController as i, defaultDateAdapter as a, forceType as o, i18nArrival as s, i18nDeparture as c, i18nTransferProcedures as l, screenReaderOnlyStyles as u } from "@sbb-esta/lyne-elements/core.js";
|
|
4
4
|
import { SbbIconElement as d } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
5
5
|
import { html as f, nothing as p, unsafeCSS as m } from "lit";
|
|
6
6
|
import { property as h } from "lit/decorators.js";
|
|
7
7
|
import { getDepartureArrivalTimeAttribute as g, isRideLeg as _, removeTimezoneFromISOTimeString as v } from "./core.js";
|
|
8
8
|
import { SbbPearlChainElement as y } from "./pearl-chain.pure.js";
|
|
9
9
|
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
|
|
10
|
-
var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-time{--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);font-weight:700;color:var(--sbb-color-2)}
|
|
10
|
+
var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-time{--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);font-weight:700;color:var(--sbb-color-2)}", x = (() => {
|
|
11
11
|
let x = r, S = [], C, w = [], T = [], E, D = [], O = [], k, A = [], j = [], M, N = [], P = [], F, I = [], L = [], R, z = [], B = [], V, H = [], U = [], W;
|
|
12
12
|
return class extends x {
|
|
13
13
|
constructor() {
|
|
@@ -15,16 +15,16 @@ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
18
|
-
C = [h({ type: Array })], E = [
|
|
18
|
+
C = [h({ type: Array })], E = [o(), h({ attribute: "departure-time" })], k = [o(), h({ attribute: "arrival-time" })], M = [o(), h({
|
|
19
19
|
attribute: "departure-walk",
|
|
20
20
|
type: Number
|
|
21
|
-
})], F = [
|
|
21
|
+
})], F = [o(), h({
|
|
22
22
|
attribute: "arrival-walk",
|
|
23
23
|
type: Number
|
|
24
|
-
})], R = [
|
|
24
|
+
})], R = [o(), h({
|
|
25
25
|
attribute: "disable-animation",
|
|
26
26
|
type: Boolean
|
|
27
|
-
})], V = [
|
|
27
|
+
})], V = [o(), h({
|
|
28
28
|
attribute: "a11y-footpath",
|
|
29
29
|
type: Boolean
|
|
30
30
|
})], W = [h()], t(this, null, C, {
|
|
@@ -144,7 +144,7 @@ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
144
144
|
this.elementDependencies = [d, y];
|
|
145
145
|
}
|
|
146
146
|
static {
|
|
147
|
-
this.styles = [
|
|
147
|
+
this.styles = [u, m(b)];
|
|
148
148
|
}
|
|
149
149
|
#e;
|
|
150
150
|
get legs() {
|
|
@@ -196,7 +196,7 @@ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
196
196
|
this.#o = e;
|
|
197
197
|
}
|
|
198
198
|
set now(e) {
|
|
199
|
-
this._now =
|
|
199
|
+
this._now = a.getValidDateOrNull(a.deserialize(e));
|
|
200
200
|
}
|
|
201
201
|
get now() {
|
|
202
202
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
@@ -208,12 +208,12 @@ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
208
208
|
${r()}
|
|
209
209
|
${t ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
210
210
|
<span class="sbb-screen-reader-only"
|
|
211
|
-
>${
|
|
211
|
+
>${c[this._language.current]}: </span
|
|
212
212
|
>
|
|
213
213
|
${e(t, "HH:mm")}
|
|
214
214
|
</time>` : p}
|
|
215
215
|
${a?.length > 1 ? f`<span class="sbb-screen-reader-only" role="paragraph">
|
|
216
|
-
${a?.length - 1} ${
|
|
216
|
+
${a?.length - 1} ${l[this._language.current]}
|
|
217
217
|
</span>` : p}
|
|
218
218
|
<sbb-pearl-chain
|
|
219
219
|
class="sbb-pearl-chain__time-chain"
|
|
@@ -223,7 +223,7 @@ var b = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
223
223
|
></sbb-pearl-chain>
|
|
224
224
|
${n ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
225
225
|
<span class="sbb-screen-reader-only"
|
|
226
|
-
>${
|
|
226
|
+
>${s[this._language.current]}: </span
|
|
227
227
|
>
|
|
228
228
|
${e(n, "HH:mm")}
|
|
229
229
|
</time>` : p}
|
package/pearl-chain-time.js
CHANGED
package/pearl-chain-time.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-time.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-time.component-D5OCEBJ_.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-vertical.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-vertical.component-CDOWaup3.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "../pearl-chain-vertical-item.component-IdquCJMy.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n,
|
|
3
|
-
import { html as
|
|
4
|
-
import { property as
|
|
5
|
-
import { styleMap as
|
|
2
|
+
import { SbbElement as n, forceType as r } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
4
|
+
import { property as s } from "lit/decorators.js";
|
|
5
|
+
import { styleMap as c } from "lit/directives/style-map.js";
|
|
6
6
|
//#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.scss?inline
|
|
7
|
-
var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: light-dark( var(--sbb-color-metal), var(--sbb-color-granite) );--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem;display:table-row;position:relative;--sbb-pearl-chain-vertical-right-item-width: 100%;--sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);--sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);--sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);--sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);--sbb-pearl-chain-vertical-item-inline-start: 50%;--sbb-pearl-chain-vertical-item-transform: translateX(-50%)}slot[name=right],.sbb-pearl-chain-vertical-item__column{display:table-cell;position:relative;vertical-align:top}slot[name=right]{width:var(--sbb-pearl-chain-vertical-right-item-width)}.sbb-pearl-chain-vertical-item__column--middle{min-width:var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width)}slot[name=left]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-left-item-block-start);padding-inline-end:var(--sbb-pearl-chain-vertical-left-item-inline-end)}slot[name=right]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-right-item-block-start);padding-inline-start:var(--sbb-pearl-chain-vertical-right-item-inline-start)}.sbb-pearl-chain-vertical-item__middle{vertical-align:top;border-spacing:0}.sbb-pearl-chain-vertical-item__line{position:absolute;bottom:0;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);width:var(--sbb-border-width-2x);inset-block-start:calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2)}.sbb-pearl-chain-vertical-item__line:after{content:\"\";position:absolute;inset-inline-start:0;inset-block-start:0;height:var(--sbb-pearl-chain-vertical-item-leg-status);width:var(--sbb-pearl-chain-vertical-item-border-width);background-color:var(--sbb-pearl-chain-vertical-item-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line:after{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset;border-color:unset;background-image:linear-gradient(to bottom,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-y;background-size:calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset!important;border-inline-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain-vertical-item__line--thin{width:var(--sbb-pearl-chain-vertical-item-border-width-thin)}.sbb-pearl-chain-vertical-item__line--default{background-color:var(--sbb-pearl-chain-vertical-item-color-default);border-color:var(--sbb-pearl-chain-vertical-item-color-default);color:var(--sbb-pearl-chain-vertical-item-color-default)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--default{--sbb-pearl-chain-vertical-item-color-default: CanvasText}}.sbb-pearl-chain-vertical-item__line--disruption{border-color:var(--sbb-pearl-chain-vertical-item-color-disruption);background-color:var(--sbb-pearl-chain-vertical-item-color-disruption);color:var(--sbb-pearl-chain-vertical-item-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--disruption{--sbb-pearl-chain-vertical-item-color-disruption: Highlight}}.sbb-pearl-chain-vertical-item__line--past{border-color:var(--sbb-pearl-chain-vertical-item-color-past);background-color:var(--sbb-pearl-chain-vertical-item-color-past);color:var(--sbb-pearl-chain-vertical-item-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--past{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--walk{border-color:var(--sbb-pearl-chain-vertical-item-color-walk);background-color:var(--sbb-pearl-chain-vertical-item-color-walk);color:var(--sbb-pearl-chain-vertical-item-color-walk)}.sbb-pearl-chain-vertical-item__bullet{position:relative;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--start-end{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain-vertical-item__bullet--stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant{--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped{border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped{--sbb-pearl-chain-bullet-crossed-width: .706875rem;--sbb-pearl-chain-bullet-crossed-height: .1875rem;min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--position{inset-block-start:var(--sbb-pearl-chain-vertical-item-position);position:absolute;left:50%;translate:-50% 0;min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-position-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb,var(--sbb-pearl-chain-position-color) 20%,transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain-vertical-item__bullet--position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite}:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position{animation:unset!important}", d = (() => {
|
|
8
|
-
let
|
|
9
|
-
return class extends
|
|
7
|
+
var l = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: light-dark( var(--sbb-color-metal), var(--sbb-color-granite) );--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem;display:table-row;position:relative;--sbb-pearl-chain-vertical-right-item-width: 100%;--sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);--sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);--sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);--sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);--sbb-pearl-chain-vertical-item-inline-start: 50%;--sbb-pearl-chain-vertical-item-transform: translateX(-50%)}slot[name=right],.sbb-pearl-chain-vertical-item__column{display:table-cell;position:relative;vertical-align:top}slot[name=right]{width:var(--sbb-pearl-chain-vertical-right-item-width)}.sbb-pearl-chain-vertical-item__column--middle{min-width:var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width)}slot[name=left]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-left-item-block-start);padding-inline-end:var(--sbb-pearl-chain-vertical-left-item-inline-end)}slot[name=right]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-right-item-block-start);padding-inline-start:var(--sbb-pearl-chain-vertical-right-item-inline-start)}.sbb-pearl-chain-vertical-item__middle{vertical-align:top;border-spacing:0}.sbb-pearl-chain-vertical-item__line{position:absolute;bottom:0;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);width:var(--sbb-border-width-2x);inset-block-start:calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2)}.sbb-pearl-chain-vertical-item__line:after{content:\"\";position:absolute;inset-inline-start:0;inset-block-start:0;height:var(--sbb-pearl-chain-vertical-item-leg-status);width:var(--sbb-pearl-chain-vertical-item-border-width);background-color:var(--sbb-pearl-chain-vertical-item-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line:after{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset;border-color:unset;background-image:linear-gradient(to bottom,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-y;background-size:calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset!important;border-inline-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain-vertical-item__line--thin{width:var(--sbb-pearl-chain-vertical-item-border-width-thin)}.sbb-pearl-chain-vertical-item__line--default{background-color:var(--sbb-pearl-chain-vertical-item-color-default);border-color:var(--sbb-pearl-chain-vertical-item-color-default);color:var(--sbb-pearl-chain-vertical-item-color-default)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--default{--sbb-pearl-chain-vertical-item-color-default: CanvasText}}.sbb-pearl-chain-vertical-item__line--disruption{border-color:var(--sbb-pearl-chain-vertical-item-color-disruption);background-color:var(--sbb-pearl-chain-vertical-item-color-disruption);color:var(--sbb-pearl-chain-vertical-item-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--disruption{--sbb-pearl-chain-vertical-item-color-disruption: Highlight}}.sbb-pearl-chain-vertical-item__line--past{border-color:var(--sbb-pearl-chain-vertical-item-color-past);background-color:var(--sbb-pearl-chain-vertical-item-color-past);color:var(--sbb-pearl-chain-vertical-item-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__line--past{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--walk{border-color:var(--sbb-pearl-chain-vertical-item-color-walk);background-color:var(--sbb-pearl-chain-vertical-item-color-walk);color:var(--sbb-pearl-chain-vertical-item-color-walk)}.sbb-pearl-chain-vertical-item__bullet{position:relative;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--start-end{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain-vertical-item__bullet--stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant{--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped{border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped{--sbb-pearl-chain-bullet-crossed-width: .706875rem;--sbb-pearl-chain-bullet-crossed-height: .1875rem;min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:\"\";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--position{inset-block-start:var(--sbb-pearl-chain-vertical-item-position);position:absolute;left:50%;translate:-50% 0;min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-position-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb,var(--sbb-pearl-chain-position-color) 20%,transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain-vertical-item__bullet--position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite}:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position{animation:unset!important}", u = (() => {
|
|
8
|
+
let u = n, d, f = [], p = [], m, h = [], g = [];
|
|
9
|
+
return class extends u {
|
|
10
10
|
static {
|
|
11
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
12
|
-
|
|
11
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
12
|
+
d = [s({
|
|
13
13
|
attribute: "pearl-chain-vertical-item-attributes",
|
|
14
14
|
type: Object
|
|
15
|
-
})],
|
|
15
|
+
})], m = [r(), s({
|
|
16
16
|
attribute: "disable-animation",
|
|
17
17
|
reflect: !0,
|
|
18
18
|
type: Boolean
|
|
19
|
-
})], e(this, null,
|
|
19
|
+
})], e(this, null, d, {
|
|
20
20
|
kind: "accessor",
|
|
21
21
|
name: "pearlChainVerticalItemAttributes",
|
|
22
22
|
static: !1,
|
|
@@ -29,7 +29,7 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
metadata: t
|
|
32
|
-
},
|
|
32
|
+
}, f, p), e(this, null, m, {
|
|
33
33
|
kind: "accessor",
|
|
34
34
|
name: "disableAnimation",
|
|
35
35
|
static: !1,
|
|
@@ -42,7 +42,7 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
metadata: t
|
|
45
|
-
},
|
|
45
|
+
}, h, g), t && Object.defineProperty(this, Symbol.metadata, {
|
|
46
46
|
enumerable: !0,
|
|
47
47
|
configurable: !0,
|
|
48
48
|
writable: !0,
|
|
@@ -53,16 +53,16 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
53
53
|
this.elementName = "sbb-pearl-chain-vertical-item";
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
|
-
this.styles = [
|
|
56
|
+
this.styles = [o(l)];
|
|
57
57
|
}
|
|
58
|
-
#e = t(this,
|
|
58
|
+
#e = t(this, f, null);
|
|
59
59
|
get pearlChainVerticalItemAttributes() {
|
|
60
60
|
return this.#e;
|
|
61
61
|
}
|
|
62
62
|
set pearlChainVerticalItemAttributes(e) {
|
|
63
63
|
this.#e = e;
|
|
64
64
|
}
|
|
65
|
-
#t = (t(this,
|
|
65
|
+
#t = (t(this, p), t(this, h, !1));
|
|
66
66
|
get disableAnimation() {
|
|
67
67
|
return this.#t;
|
|
68
68
|
}
|
|
@@ -70,11 +70,11 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
70
70
|
this.#t = e;
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
let { bulletType: e, lineType: t, lineColor: n, hideLine: r, minHeight:
|
|
74
|
-
return
|
|
73
|
+
let { bulletType: e, lineType: t, lineColor: n, hideLine: r, minHeight: o, bulletSize: s, position: l } = this.pearlChainVerticalItemAttributes || {}, u = l && l > 0 && l <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${e}`;
|
|
74
|
+
return i`
|
|
75
75
|
<div
|
|
76
76
|
class="sbb-pearl-chain-vertical-item__column"
|
|
77
|
-
style=${
|
|
77
|
+
style=${c({ height: `${o}px` })}
|
|
78
78
|
>
|
|
79
79
|
<slot name="left"></slot>
|
|
80
80
|
</div>
|
|
@@ -82,25 +82,25 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
82
82
|
aria-hidden="true"
|
|
83
83
|
class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
|
|
84
84
|
>
|
|
85
|
-
${r ?
|
|
86
|
-
style=${
|
|
85
|
+
${r ? a : i`<div
|
|
86
|
+
style=${c({ "--sbb-pearl-chain-vertical-item-leg-status": `${l}%` })}
|
|
87
87
|
class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${t} sbb-pearl-chain-vertical-item__line--${n}"
|
|
88
88
|
></div>`}
|
|
89
|
-
${e ?
|
|
89
|
+
${e ? i`<div
|
|
90
90
|
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${s} ${u}"
|
|
91
|
-
></div>` :
|
|
92
|
-
${
|
|
93
|
-
style=${
|
|
91
|
+
></div>` : a}
|
|
92
|
+
${l && l > 0 ? i`<div
|
|
93
|
+
style=${c({ "--sbb-pearl-chain-vertical-item-position": `${l}%` })}
|
|
94
94
|
class="sbb-pearl-chain-vertical-item__bullet--position"
|
|
95
|
-
></div>` :
|
|
95
|
+
></div>` : a}
|
|
96
96
|
</div>
|
|
97
97
|
<slot name="right"></slot>
|
|
98
98
|
`;
|
|
99
99
|
}
|
|
100
100
|
constructor() {
|
|
101
|
-
super(...arguments), t(this,
|
|
101
|
+
super(...arguments), t(this, g);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
})();
|
|
105
105
|
//#endregion
|
|
106
|
-
export {
|
|
106
|
+
export { u as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical-item.component-IdquCJMy.js";
|
|
2
2
|
import "./pearl-chain-vertical-item.pure.js";
|
|
3
3
|
//#region src/elements-experimental/pearl-chain-vertical-item.ts
|
|
4
4
|
e.define();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical-item.component-IdquCJMy.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|
package/{pearl-chain-vertical.component-Lx47SlJU.js → pearl-chain-vertical.component-CDOWaup3.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { SbbElement as e
|
|
2
|
-
import { html as
|
|
1
|
+
import { SbbElement as e } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html as t, unsafeCSS as n } from "lit";
|
|
3
3
|
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?inline
|
|
4
|
-
var
|
|
4
|
+
var r = ":host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}", i = class extends e {
|
|
5
5
|
static {
|
|
6
6
|
this.elementName = "sbb-pearl-chain-vertical";
|
|
7
7
|
}
|
|
8
8
|
static {
|
|
9
|
-
this.styles = [
|
|
9
|
+
this.styles = [n(r)];
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return
|
|
12
|
+
return t`
|
|
13
13
|
<div class="sbb-pearl-chain-vertical">
|
|
14
14
|
<slot></slot>
|
|
15
15
|
</div>
|
|
@@ -17,4 +17,4 @@ var i = ":host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-c
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { i as t };
|
package/pearl-chain-vertical.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical.component-CDOWaup3.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|