@sbb-esta/lyne-elements-experimental-dev 4.9.0-dev.1775049540 → 4.9.0-dev.1775050922
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-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-cell.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row.js +1 -1
- package/{autocomplete-grid-cell.component-DnCfVJ2l.js → autocomplete-grid-cell.component-DkD9aFKc.js} +5 -5
- package/autocomplete-grid-option.component-CtATJy7n.js +37 -0
- package/autocomplete-grid-row.component-6nJv5PMj.js +27 -0
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.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-cell.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-option.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/autocomplete-grid-row.js +1 -1
- package/development/autocomplete-grid-cell.component-BxkWGaX0.js +34 -0
- package/development/autocomplete-grid-option.component-5mPGswUO.js +61 -0
- package/development/autocomplete-grid-row.component-DEm6zyHZ.js +39 -0
- 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-BZwgD4im.js +340 -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-B2_BI6E_.js +319 -0
- 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-DcmH13Vb.js +133 -0
- 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-CpcNFl-x.js +31 -0
- package/development/pearl-chain-vertical.js +1 -1
- package/development/pearl-chain-vertical.pure.js +1 -1
- package/development/pearl-chain.component-oQZUzsyW.js +316 -0
- package/development/pearl-chain.js +1 -1
- package/development/pearl-chain.pure.js +1 -1
- 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-area.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.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-graphic.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-coach.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-navigation-services.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-place-control.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/seat-reservation-scoped.js +1 -1
- package/development/seat-reservation/seat-reservation.js +1 -1
- package/development/seat-reservation-area.component-DbeuTnXT.js +96 -0
- package/development/seat-reservation-graphic.component-DlrHtlia.js +129 -0
- package/development/seat-reservation-navigation-coach.component-CjoDkcVU.js +428 -0
- package/development/seat-reservation-navigation-services.component-CGel7__P.js +159 -0
- package/development/seat-reservation-place-control.component-CM9efId7.js +429 -0
- package/development/seat-reservation-scoped.component-CFA_bJ3o.js +25 -0
- package/development/seat-reservation.component-DFJVFmrI.js +510 -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-BhFlqYbV.js +100 -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-Dko8laRT.js +729 -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-DcpXXucp.js → journey-summary.component-DC7-qPHY.js} +38 -38
- 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-v6zRg_3j.js → pearl-chain-time.component-CkKsrbgQ.js} +28 -28
- 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-BUqZ-3Ay.js +108 -0
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-BvJwcGpS.js → pearl-chain-vertical.component-Df9CvRxo.js} +5 -5
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/pearl-chain.component-CpISVoAu.js +194 -0
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- 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-area.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-services.js +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/seat-reservation/seat-reservation-place-control.js +1 -1
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +1 -1
- package/seat-reservation/seat-reservation-scoped.js +1 -1
- package/seat-reservation/seat-reservation.js +1 -1
- package/seat-reservation-area.component-CtYawDjE.js +75 -0
- package/seat-reservation-graphic.component-Cm_pVxaB.js +102 -0
- package/seat-reservation-navigation-coach.component-sug9IBTH.js +333 -0
- package/{seat-reservation-navigation-services.component-ViyU_adt.js → seat-reservation-navigation-services.component-C9dDYD_M.js} +19 -19
- package/seat-reservation-place-control.component-CE7d9M2b.js +322 -0
- package/seat-reservation-scoped.component-DVyP2JGE.js +17 -0
- package/{seat-reservation.component-Dl6bnC7-.js → seat-reservation.component-DajC6fqU.js} +51 -51
- 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-Puonwsnr.js → timetable-duration.component-BnJA8wSb.js} +12 -12
- 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-DMCZaOPM.js → timetable-row.component-DbzBCpKR.js} +59 -59
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/autocomplete-grid-option.component-BlMPM6eh.js +0 -37
- package/autocomplete-grid-row.component-Bo2ZbXVX.js +0 -27
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +0 -42
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +0 -123
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +0 -104
- package/development/journey-summary.component-DN0Vwoeb.js +0 -385
- package/development/pearl-chain-time.component-zUAj_1eD.js +0 -415
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +0 -435
- package/development/pearl-chain-vertical.component-CswE7b3M.js +0 -39
- package/development/pearl-chain.component-F9jtc5UO.js +0 -704
- package/development/seat-reservation-area.component-ORuli_DC.js +0 -138
- package/development/seat-reservation-graphic.component-D0xEXmP9.js +0 -203
- package/development/seat-reservation-navigation-coach.component-D2QXTMJJ.js +0 -828
- package/development/seat-reservation-navigation-services.component-Bg1adRlU.js +0 -179
- package/development/seat-reservation-place-control.component-CwUX-QYO.js +0 -726
- package/development/seat-reservation-scoped.component-uLT33P9y.js +0 -31
- package/development/seat-reservation.component-BS53sZR3.js +0 -824
- package/development/timetable-duration.component-D21SXsQq.js +0 -125
- package/development/timetable-row.component-zDOmmuJR.js +0 -932
- package/pearl-chain-vertical-item.component-M2KRK6Xv.js +0 -108
- package/pearl-chain.component-B-XTTo6h.js +0 -194
- package/seat-reservation-area.component-CY56r75x.js +0 -75
- package/seat-reservation-graphic.component-DCMFf9uY.js +0 -102
- package/seat-reservation-navigation-coach.component-CXUv1pZM.js +0 -333
- package/seat-reservation-place-control.component-Dj5Tm0Oa.js +0 -322
- package/seat-reservation-scoped.component-CuACI8ST.js +0 -17
|
@@ -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-Dko8laRT.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-Dko8laRT.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-DC7-qPHY.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
|
@@ -5,7 +5,7 @@ import { SbbElement as i } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
|
5
5
|
import { SbbLanguageController as a } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
6
6
|
import { forceType as o } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
7
7
|
import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
8
|
-
import {
|
|
8
|
+
import { html as c, nothing as l, unsafeCSS as u } from "lit";
|
|
9
9
|
import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
10
10
|
import { i18nTripDuration as f } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
11
11
|
import { property as p } from "lit/decorators.js";
|
|
@@ -14,28 +14,28 @@ import "@sbb-esta/lyne-elements/divider.js";
|
|
|
14
14
|
import "@sbb-esta/lyne-elements/screen-reader-only.js";
|
|
15
15
|
import "@sbb-esta/lyne-elements/journey-header.js";
|
|
16
16
|
import "./pearl-chain-time.js";
|
|
17
|
-
//#region src/elements-experimental/journey-summary/journey-summary.scss?
|
|
18
|
-
var g =
|
|
19
|
-
let
|
|
20
|
-
return class extends
|
|
17
|
+
//#region src/elements-experimental/journey-summary/journey-summary.scss?inline
|
|
18
|
+
var g = ":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}", _ = (() => {
|
|
19
|
+
let _ = i, v = [], y, b = [], x = [], S, C = [], w = [], T, E = [], D = [], O, k = [], A = [], j, M = [], N = [], P, F = [], I = [], L;
|
|
20
|
+
return class extends _ {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this.#e = (r(this,
|
|
22
|
+
super(...arguments), this.#e = (r(this, v), r(this, b, null)), this.#t = (r(this, x), r(this, C, null)), this.#n = (r(this, w), r(this, E, !1)), this.#r = (r(this, D), r(this, k, "3")), this.#i = (r(this, A), r(this, M, !1)), this.#a = (r(this, N), r(this, F, !1)), this._now = (r(this, I), null), this._hasContentSlot = !1, this._language = new a(this);
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
26
|
-
|
|
25
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
26
|
+
y = [p({ type: Object })], S = [p({
|
|
27
27
|
attribute: "trip-back",
|
|
28
28
|
type: Object
|
|
29
|
-
})],
|
|
29
|
+
})], T = [o(), p({
|
|
30
30
|
attribute: "round-trip",
|
|
31
31
|
type: Boolean
|
|
32
|
-
})],
|
|
32
|
+
})], O = [p({ attribute: "header-level" })], j = [o(), p({
|
|
33
33
|
attribute: "disable-animation",
|
|
34
34
|
type: Boolean
|
|
35
|
-
})],
|
|
35
|
+
})], P = [o(), p({
|
|
36
36
|
attribute: "a11y-footpath",
|
|
37
37
|
type: Boolean
|
|
38
|
-
})],
|
|
38
|
+
})], L = [p()], n(this, null, y, {
|
|
39
39
|
kind: "accessor",
|
|
40
40
|
name: "trip",
|
|
41
41
|
static: !1,
|
|
@@ -48,7 +48,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
metadata: e
|
|
51
|
-
},
|
|
51
|
+
}, b, x), n(this, null, S, {
|
|
52
52
|
kind: "accessor",
|
|
53
53
|
name: "tripBack",
|
|
54
54
|
static: !1,
|
|
@@ -61,7 +61,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
metadata: e
|
|
64
|
-
},
|
|
64
|
+
}, C, w), n(this, null, T, {
|
|
65
65
|
kind: "accessor",
|
|
66
66
|
name: "roundTrip",
|
|
67
67
|
static: !1,
|
|
@@ -74,7 +74,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
metadata: e
|
|
77
|
-
},
|
|
77
|
+
}, E, D), n(this, null, O, {
|
|
78
78
|
kind: "accessor",
|
|
79
79
|
name: "headerLevel",
|
|
80
80
|
static: !1,
|
|
@@ -87,7 +87,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
metadata: e
|
|
90
|
-
},
|
|
90
|
+
}, k, A), n(this, null, j, {
|
|
91
91
|
kind: "accessor",
|
|
92
92
|
name: "disableAnimation",
|
|
93
93
|
static: !1,
|
|
@@ -100,7 +100,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
metadata: e
|
|
103
|
-
},
|
|
103
|
+
}, M, N), n(this, null, P, {
|
|
104
104
|
kind: "accessor",
|
|
105
105
|
name: "a11yFootpath",
|
|
106
106
|
static: !1,
|
|
@@ -113,7 +113,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
metadata: e
|
|
116
|
-
},
|
|
116
|
+
}, F, I), n(this, null, L, {
|
|
117
117
|
kind: "setter",
|
|
118
118
|
name: "now",
|
|
119
119
|
static: !1,
|
|
@@ -125,7 +125,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
metadata: e
|
|
128
|
-
}, null,
|
|
128
|
+
}, null, v), e && Object.defineProperty(this, Symbol.metadata, {
|
|
129
129
|
enumerable: !0,
|
|
130
130
|
configurable: !0,
|
|
131
131
|
writable: !0,
|
|
@@ -136,7 +136,7 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
136
136
|
this.elementName = "sbb-journey-summary";
|
|
137
137
|
}
|
|
138
138
|
static {
|
|
139
|
-
this.styles = [s, g];
|
|
139
|
+
this.styles = [s, u(g)];
|
|
140
140
|
}
|
|
141
141
|
#e;
|
|
142
142
|
get trip() {
|
|
@@ -191,25 +191,25 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
191
191
|
}
|
|
192
192
|
_renderJourneyStart(n, r) {
|
|
193
193
|
let i = d, a = r ? m(r, this._language.current) : null;
|
|
194
|
-
if (t(n)) return
|
|
194
|
+
if (t(n)) return c`
|
|
195
195
|
<time datetime=${e(n, "d") + " " + e(n, "M")}>
|
|
196
196
|
${i.format(n).replace(",", ".")}</time
|
|
197
|
-
>${r && r > 0 ?
|
|
197
|
+
>${r && r > 0 ? c`,<time>
|
|
198
198
|
<sbb-screen-reader-only>
|
|
199
199
|
${f[this._language.current]} ${a.long}
|
|
200
200
|
</sbb-screen-reader-only>
|
|
201
201
|
<span aria-hidden="true">${a.short}</span>
|
|
202
|
-
</time>` :
|
|
202
|
+
</time>` : l}
|
|
203
203
|
`;
|
|
204
204
|
}
|
|
205
205
|
_renderJourneyVias(e) {
|
|
206
206
|
let t = e.slice(0, 5);
|
|
207
|
-
return
|
|
207
|
+
return c`
|
|
208
208
|
<div class="sbb-journey-summary__via-block">
|
|
209
209
|
<span class="sbb-journey-summary__via-text">Via</span>
|
|
210
|
-
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" :
|
|
211
|
-
${t.map((e, n) =>
|
|
212
|
-
${e}${n !== t.length - 1 && n < 4 ?
|
|
210
|
+
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" : l}>
|
|
211
|
+
${t.map((e, n) => c`<li class="sbb-journey-summary__via">
|
|
212
|
+
${e}${n !== t.length - 1 && n < 4 ? c`<span>,</span>` : l}
|
|
213
213
|
</li>`)}
|
|
214
214
|
</ul>
|
|
215
215
|
</div>
|
|
@@ -217,9 +217,9 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
217
217
|
}
|
|
218
218
|
_renderJourneyInformation(e) {
|
|
219
219
|
let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
|
|
220
|
-
return
|
|
220
|
+
return c`
|
|
221
221
|
<div>
|
|
222
|
-
${t && t.length > 0 ? this._renderJourneyVias(t) :
|
|
222
|
+
${t && t.length > 0 ? this._renderJourneyVias(t) : l}
|
|
223
223
|
<div class="sbb-journey-summary__date">
|
|
224
224
|
${this._renderJourneyStart(h(i), n)}
|
|
225
225
|
</div>
|
|
@@ -238,23 +238,23 @@ var g = c`:host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--s
|
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
240
|
let { origin: e, destination: t } = this.trip || {};
|
|
241
|
-
return
|
|
241
|
+
return c`
|
|
242
242
|
<div class="sbb-journey-summary">
|
|
243
|
-
${e ?
|
|
243
|
+
${e ? c`<sbb-journey-header
|
|
244
244
|
size="l"
|
|
245
|
-
.level=${this.headerLevel ||
|
|
245
|
+
.level=${this.headerLevel || l}
|
|
246
246
|
.origin=${e}
|
|
247
247
|
.destination=${t}
|
|
248
|
-
.roundTrip=${this.roundTrip ??
|
|
249
|
-
></sbb-journey-header>` :
|
|
248
|
+
.roundTrip=${this.roundTrip ?? l}
|
|
249
|
+
></sbb-journey-header>` : l}
|
|
250
250
|
${this._renderJourneyInformation(this.trip)}
|
|
251
|
-
${this.tripBack ?
|
|
251
|
+
${this.tripBack ? c`<div>
|
|
252
252
|
<sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
|
|
253
253
|
${this._renderJourneyInformation(this.tripBack)}
|
|
254
|
-
</div>` :
|
|
255
|
-
${this._hasContentSlot ?
|
|
254
|
+
</div>` : l}
|
|
255
|
+
${this._hasContentSlot ? c` <div class="sbb-journey-summary__slot">
|
|
256
256
|
<slot name="content"></slot>
|
|
257
|
-
</div>` :
|
|
257
|
+
</div>` : l}
|
|
258
258
|
</div>
|
|
259
259
|
`;
|
|
260
260
|
}
|
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-DC7-qPHY.js";
|
|
2
2
|
export { e as SbbJourneySummaryElement };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental-dev",
|
|
3
|
-
"version": "4.9.0-dev.
|
|
3
|
+
"version": "4.9.0-dev.1775050922",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
9
|
"storybook",
|
|
10
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
10
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/696910861a305c66d884261a5a1ac9fb6836a058"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../pearl-chain.component-
|
|
1
|
+
import { t as e } from "../pearl-chain.component-CpISVoAu.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-CkKsrbgQ.js";
|
|
2
2
|
export { e as SbbPearlChainTimeElement };
|
|
@@ -4,35 +4,35 @@ import { SbbElement as r } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
|
4
4
|
import { SbbLanguageController as i } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
5
5
|
import { forceType as a } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
6
6
|
import { boxSizingStyles as o } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
7
|
-
import {
|
|
7
|
+
import { html as s, nothing as c, unsafeCSS as l } from "lit";
|
|
8
8
|
import { defaultDateAdapter as u } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
9
9
|
import { i18nArrival as d, i18nDeparture as f, i18nTransferProcedures as p } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
10
10
|
import { property as m } from "lit/decorators.js";
|
|
11
11
|
import { removeTimezoneFromISOTimeString as h } from "./core/datetime.js";
|
|
12
12
|
import { getDepartureArrivalTimeAttribute as g, isRideLeg as _ } from "./core/timetable.js";
|
|
13
13
|
import "./pearl-chain.js";
|
|
14
|
-
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?
|
|
15
|
-
var v =
|
|
16
|
-
let
|
|
17
|
-
return class extends
|
|
14
|
+
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
|
|
15
|
+
var v = ":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)}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}", y = (() => {
|
|
16
|
+
let y = r, b = [], x, S = [], C = [], w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H;
|
|
17
|
+
return class extends y {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this.#e = (n(this,
|
|
19
|
+
super(...arguments), this.#e = (n(this, b), n(this, S, [])), this.#t = (n(this, C), n(this, T, "")), this.#n = (n(this, E), n(this, O, "")), this.#r = (n(this, k), n(this, j, NaN)), this.#i = (n(this, M), n(this, P, NaN)), this.#a = (n(this, F), n(this, L, !1)), this.#o = (n(this, R), n(this, B, !1)), this._now = (n(this, V), null), this._language = new i(this);
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
23
|
-
|
|
22
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
|
|
23
|
+
x = [m({ type: Array })], w = [a(), m({ attribute: "departure-time" })], D = [a(), m({ attribute: "arrival-time" })], A = [a(), m({
|
|
24
24
|
attribute: "departure-walk",
|
|
25
25
|
type: Number
|
|
26
|
-
})],
|
|
26
|
+
})], N = [a(), m({
|
|
27
27
|
attribute: "arrival-walk",
|
|
28
28
|
type: Number
|
|
29
|
-
})],
|
|
29
|
+
})], I = [a(), m({
|
|
30
30
|
attribute: "disable-animation",
|
|
31
31
|
type: Boolean
|
|
32
|
-
})],
|
|
32
|
+
})], z = [a(), m({
|
|
33
33
|
attribute: "a11y-footpath",
|
|
34
34
|
type: Boolean
|
|
35
|
-
})],
|
|
35
|
+
})], H = [m()], t(this, null, x, {
|
|
36
36
|
kind: "accessor",
|
|
37
37
|
name: "legs",
|
|
38
38
|
static: !1,
|
|
@@ -45,7 +45,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
metadata: e
|
|
48
|
-
},
|
|
48
|
+
}, S, C), t(this, null, w, {
|
|
49
49
|
kind: "accessor",
|
|
50
50
|
name: "departureTime",
|
|
51
51
|
static: !1,
|
|
@@ -58,7 +58,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
metadata: e
|
|
61
|
-
},
|
|
61
|
+
}, T, E), t(this, null, D, {
|
|
62
62
|
kind: "accessor",
|
|
63
63
|
name: "arrivalTime",
|
|
64
64
|
static: !1,
|
|
@@ -71,7 +71,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
metadata: e
|
|
74
|
-
},
|
|
74
|
+
}, O, k), t(this, null, A, {
|
|
75
75
|
kind: "accessor",
|
|
76
76
|
name: "departureWalk",
|
|
77
77
|
static: !1,
|
|
@@ -84,7 +84,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
metadata: e
|
|
87
|
-
},
|
|
87
|
+
}, j, M), t(this, null, N, {
|
|
88
88
|
kind: "accessor",
|
|
89
89
|
name: "arrivalWalk",
|
|
90
90
|
static: !1,
|
|
@@ -97,7 +97,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
metadata: e
|
|
100
|
-
},
|
|
100
|
+
}, P, F), t(this, null, I, {
|
|
101
101
|
kind: "accessor",
|
|
102
102
|
name: "disableAnimation",
|
|
103
103
|
static: !1,
|
|
@@ -110,7 +110,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
metadata: e
|
|
113
|
-
},
|
|
113
|
+
}, L, R), t(this, null, z, {
|
|
114
114
|
kind: "accessor",
|
|
115
115
|
name: "a11yFootpath",
|
|
116
116
|
static: !1,
|
|
@@ -123,7 +123,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
metadata: e
|
|
126
|
-
},
|
|
126
|
+
}, B, V), t(this, null, H, {
|
|
127
127
|
kind: "setter",
|
|
128
128
|
name: "now",
|
|
129
129
|
static: !1,
|
|
@@ -135,7 +135,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
metadata: e
|
|
138
|
-
}, null,
|
|
138
|
+
}, null, b), e && Object.defineProperty(this, Symbol.metadata, {
|
|
139
139
|
enumerable: !0,
|
|
140
140
|
configurable: !0,
|
|
141
141
|
writable: !0,
|
|
@@ -146,7 +146,7 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
146
146
|
this.elementName = "sbb-pearl-chain-time";
|
|
147
147
|
}
|
|
148
148
|
static {
|
|
149
|
-
this.styles = [o, v];
|
|
149
|
+
this.styles = [o, l(v)];
|
|
150
150
|
}
|
|
151
151
|
#e;
|
|
152
152
|
get legs() {
|
|
@@ -205,30 +205,30 @@ var v = s`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-wid
|
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
207
|
let t = this.departureTime ? h(this.departureTime) : void 0, n = this.arrivalTime ? h(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: r, renderArrivalTimeAttribute: i } = g(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), a = this.legs?.filter((e) => _(e));
|
|
208
|
-
return
|
|
208
|
+
return s`
|
|
209
209
|
<div class="sbb-pearl-chain__time">
|
|
210
210
|
${r()}
|
|
211
|
-
${t ?
|
|
211
|
+
${t ? s`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
212
212
|
<span class="sbb-screen-reader-only"
|
|
213
213
|
>${f[this._language.current]}: </span
|
|
214
214
|
>
|
|
215
215
|
${e(t, "HH:mm")}
|
|
216
|
-
</time>` :
|
|
217
|
-
${a?.length > 1 ?
|
|
216
|
+
</time>` : c}
|
|
217
|
+
${a?.length > 1 ? s`<span class="sbb-screen-reader-only" role="paragraph">
|
|
218
218
|
${a?.length - 1} ${p[this._language.current]}
|
|
219
|
-
</span>` :
|
|
219
|
+
</span>` : c}
|
|
220
220
|
<sbb-pearl-chain
|
|
221
221
|
class="sbb-pearl-chain__time-chain"
|
|
222
222
|
.legs=${this.legs}
|
|
223
223
|
.disableAnimation=${this.disableAnimation}
|
|
224
224
|
.now=${this.now}
|
|
225
225
|
></sbb-pearl-chain>
|
|
226
|
-
${n ?
|
|
226
|
+
${n ? s`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
227
227
|
<span class="sbb-screen-reader-only"
|
|
228
228
|
>${d[this._language.current]}: </span
|
|
229
229
|
>
|
|
230
230
|
${e(n, "HH:mm")}
|
|
231
|
-
</time>` :
|
|
231
|
+
</time>` : c}
|
|
232
232
|
${i()}
|
|
233
233
|
</div>
|
|
234
234
|
`;
|
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-CkKsrbgQ.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-Df9CvRxo.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-BUqZ-3Ay.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { SbbElement as n } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
3
|
+
import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
4
|
+
import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
5
|
+
import { html as a, nothing as o, unsafeCSS as s } from "lit";
|
|
6
|
+
import { property as c } from "lit/decorators.js";
|
|
7
|
+
import { styleMap as l } from "lit/directives/style-map.js";
|
|
8
|
+
//#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.scss?inline
|
|
9
|
+
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%;transform:translate(-50%);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 = (() => {
|
|
10
|
+
let d = n, f, p = [], m = [], h, g = [], _ = [];
|
|
11
|
+
return class extends d {
|
|
12
|
+
static {
|
|
13
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
|
|
14
|
+
f = [c({
|
|
15
|
+
attribute: "pearl-chain-vertical-item-attributes",
|
|
16
|
+
type: Object
|
|
17
|
+
})], h = [r(), c({
|
|
18
|
+
attribute: "disable-animation",
|
|
19
|
+
reflect: !0,
|
|
20
|
+
type: Boolean
|
|
21
|
+
})], e(this, null, f, {
|
|
22
|
+
kind: "accessor",
|
|
23
|
+
name: "pearlChainVerticalItemAttributes",
|
|
24
|
+
static: !1,
|
|
25
|
+
private: !1,
|
|
26
|
+
access: {
|
|
27
|
+
has: (e) => "pearlChainVerticalItemAttributes" in e,
|
|
28
|
+
get: (e) => e.pearlChainVerticalItemAttributes,
|
|
29
|
+
set: (e, t) => {
|
|
30
|
+
e.pearlChainVerticalItemAttributes = t;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
metadata: t
|
|
34
|
+
}, p, m), e(this, null, h, {
|
|
35
|
+
kind: "accessor",
|
|
36
|
+
name: "disableAnimation",
|
|
37
|
+
static: !1,
|
|
38
|
+
private: !1,
|
|
39
|
+
access: {
|
|
40
|
+
has: (e) => "disableAnimation" in e,
|
|
41
|
+
get: (e) => e.disableAnimation,
|
|
42
|
+
set: (e, t) => {
|
|
43
|
+
e.disableAnimation = t;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
metadata: t
|
|
47
|
+
}, g, _), t && Object.defineProperty(this, Symbol.metadata, {
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
value: t
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
static {
|
|
55
|
+
this.elementName = "sbb-pearl-chain-vertical-item";
|
|
56
|
+
}
|
|
57
|
+
static {
|
|
58
|
+
this.styles = [i, s(u)];
|
|
59
|
+
}
|
|
60
|
+
#e = t(this, p, null);
|
|
61
|
+
get pearlChainVerticalItemAttributes() {
|
|
62
|
+
return this.#e;
|
|
63
|
+
}
|
|
64
|
+
set pearlChainVerticalItemAttributes(e) {
|
|
65
|
+
this.#e = e;
|
|
66
|
+
}
|
|
67
|
+
#t = (t(this, m), t(this, g, !1));
|
|
68
|
+
get disableAnimation() {
|
|
69
|
+
return this.#t;
|
|
70
|
+
}
|
|
71
|
+
set disableAnimation(e) {
|
|
72
|
+
this.#t = e;
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
let { bulletType: e, lineType: t, lineColor: n, hideLine: r, minHeight: i, bulletSize: s, position: c } = this.pearlChainVerticalItemAttributes || {}, u = c && c > 0 && c <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${e}`;
|
|
76
|
+
return a`
|
|
77
|
+
<div
|
|
78
|
+
class="sbb-pearl-chain-vertical-item__column"
|
|
79
|
+
style=${l({ height: `${i}px` })}
|
|
80
|
+
>
|
|
81
|
+
<slot name="left"></slot>
|
|
82
|
+
</div>
|
|
83
|
+
<div
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
|
|
86
|
+
>
|
|
87
|
+
${r ? o : a`<div
|
|
88
|
+
style=${l({ "--sbb-pearl-chain-vertical-item-leg-status": `${c}%` })}
|
|
89
|
+
class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${t} sbb-pearl-chain-vertical-item__line--${n}"
|
|
90
|
+
></div>`}
|
|
91
|
+
${e ? a`<div
|
|
92
|
+
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${s} ${u}"
|
|
93
|
+
></div>` : o}
|
|
94
|
+
${c && c > 0 ? a`<div
|
|
95
|
+
style=${l({ "--sbb-pearl-chain-vertical-item-position": `${c}%` })}
|
|
96
|
+
class="sbb-pearl-chain-vertical-item__bullet--position"
|
|
97
|
+
></div>` : o}
|
|
98
|
+
</div>
|
|
99
|
+
<slot name="right"></slot>
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
constructor() {
|
|
103
|
+
super(...arguments), t(this, _);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
})();
|
|
107
|
+
//#endregion
|
|
108
|
+
export { d 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-BUqZ-3Ay.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-BUqZ-3Ay.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|
package/{pearl-chain-vertical.component-BvJwcGpS.js → pearl-chain-vertical.component-Df9CvRxo.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SbbElement as e } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
2
2
|
import { boxSizingStyles as t } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
3
|
-
import {
|
|
4
|
-
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?
|
|
5
|
-
var i =
|
|
3
|
+
import { html as n, unsafeCSS as r } from "lit";
|
|
4
|
+
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?inline
|
|
5
|
+
var i = ":host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}", a = class extends e {
|
|
6
6
|
static {
|
|
7
7
|
this.elementName = "sbb-pearl-chain-vertical";
|
|
8
8
|
}
|
|
9
9
|
static {
|
|
10
|
-
this.styles = [t, i];
|
|
10
|
+
this.styles = [t, r(i)];
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return
|
|
13
|
+
return n`
|
|
14
14
|
<div class="sbb-pearl-chain-vertical">
|
|
15
15
|
<slot></slot>
|
|
16
16
|
</div>
|
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-Df9CvRxo.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|