@sbb-esta/lyne-elements-experimental-dev 5.0.0-next.1-dev.1777896783 → 5.0.0-next.1-dev.1777898769
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-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-row.component-BQxCxOI6.js → autocomplete-grid-row.component-VbyYP0U-.js} +7 -7
- package/autocomplete-grid.js +2 -2
- package/autocomplete-grid.pure.js +2 -2
- 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-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-row.component-CY4UDuuj.js → autocomplete-grid-row.component-CBHh50jC.js} +3 -3
- package/development/autocomplete-grid.js +2 -2
- package/development/autocomplete-grid.pure.js +2 -2
- 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-f2y8Jebp.js → pearl-chain-time.component-BxVQ1z-Z.js} +3 -7
- 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-bTvnaUEj.js → pearl-chain.component-B83OsEx8.js} +3 -7
- 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-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-DlH14rY-.js → seat-reservation-area.component-CMqjbUtV.js} +3 -3
- package/development/{seat-reservation-graphic.component-B771YtOf.js → seat-reservation-graphic.component-C2r57590.js} +3 -3
- package/development/{seat-reservation-navigation-coach.component-CnA9MEBr.js → seat-reservation-navigation-coach.component-BwLbiHCG.js} +3 -7
- package/development/{seat-reservation-navigation-services.component-CLho6RnU.js → seat-reservation-navigation-services.component-Do8JLJh3.js} +3 -7
- package/development/{seat-reservation-place-control.component-BEeaDOS6.js → seat-reservation-place-control.component-BfuOGZYq.js} +3 -7
- 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-DZ9M06Nt.js → journey-summary.component-CkDRawn9.js} +50 -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-DGilJDFx.js → pearl-chain-time.component-D5OCEBJ_.js} +39 -43
- 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-D7Dz_ruc.js → pearl-chain.component-C6lcD7Xl.js} +37 -41
- 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-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-B_T7k-dq.js → seat-reservation-area.component-BcmwKJSK.js} +16 -16
- package/{seat-reservation-graphic.component-BNtFgIVM.js → seat-reservation-graphic.component-C3wc4DKr.js} +26 -26
- package/{seat-reservation-navigation-coach.component-BF2dTeIb.js → seat-reservation-navigation-coach.component-D1SgS8BU.js} +49 -53
- package/{seat-reservation-navigation-services.component-BSeCIGnn.js → seat-reservation-navigation-services.component-CfAQa7pa.js} +26 -30
- package/{seat-reservation-place-control.component-DOEKL6FP.js → seat-reservation-place-control.component-DrzEDW8Z.js} +41 -45
- package/{seat-reservation-scoped.component-CdB7HYzl.js → seat-reservation-scoped.component-BohQUGVW.js} +6 -6
- package/{seat-reservation.component-SoXTIEnc.js → seat-reservation.component-CB2IWgM9.js} +76 -77
- 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-B2Wq8dP0.js → timetable-duration.component-DPRcG1LP.js} +14 -18
- 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-BPH5pFQO.js → timetable-row.component-BqIVlISS.js} +113 -117
- 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-Ch38LiQx.js +0 -345
- package/development/pearl-chain-vertical.component-Cmc3QXgd.js +0 -30
- package/development/seat-reservation.component-BtAwrvVE.js +0 -473
- package/development/timetable-duration.component-BhIBA6le.js +0 -100
- package/development/timetable-row.component-BjaJFKLW.js +0 -736
|
@@ -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,17 +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
|
|
136
|
+
v
|
|
137
137
|
];
|
|
138
138
|
}
|
|
139
139
|
static {
|
|
140
|
-
this.styles = [
|
|
141
|
-
o,
|
|
142
|
-
u,
|
|
143
|
-
p(b)
|
|
144
|
-
];
|
|
140
|
+
this.styles = [l, f(y)];
|
|
145
141
|
}
|
|
146
142
|
#e;
|
|
147
143
|
get trip() {
|
|
@@ -186,7 +182,7 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
186
182
|
this.#a = e;
|
|
187
183
|
}
|
|
188
184
|
set now(e) {
|
|
189
|
-
this._now =
|
|
185
|
+
this._now = o.getValidDateOrNull(o.deserialize(e));
|
|
190
186
|
}
|
|
191
187
|
get now() {
|
|
192
188
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
@@ -195,26 +191,26 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
195
191
|
super.connectedCallback(), this._hasContentSlot = !!this.querySelector?.("[slot=\"content\"]");
|
|
196
192
|
}
|
|
197
193
|
_renderJourneyStart(n, r) {
|
|
198
|
-
let i =
|
|
199
|
-
if (t(n)) return
|
|
194
|
+
let i = o, a = r ? g(r, this._language.current) : null;
|
|
195
|
+
if (t(n)) return u`
|
|
200
196
|
<time datetime=${e(n, "d") + " " + e(n, "M")}>
|
|
201
197
|
${i.format(n).replace(",", ".")}</time
|
|
202
|
-
>${r && r > 0 ?
|
|
198
|
+
>${r && r > 0 ? u`,<time>
|
|
203
199
|
<span class="sbb-screen-reader-only">
|
|
204
|
-
${
|
|
200
|
+
${c[this._language.current]} ${a.long}
|
|
205
201
|
</span>
|
|
206
202
|
<span aria-hidden="true">${a.short}</span>
|
|
207
|
-
</time>` :
|
|
203
|
+
</time>` : d}
|
|
208
204
|
`;
|
|
209
205
|
}
|
|
210
206
|
_renderJourneyVias(e) {
|
|
211
207
|
let t = e.slice(0, 5);
|
|
212
|
-
return
|
|
208
|
+
return u`
|
|
213
209
|
<div class="sbb-journey-summary__via-block">
|
|
214
210
|
<span class="sbb-journey-summary__via-text">Via</span>
|
|
215
|
-
<ul class="sbb-journey-summary__vias" role=${e.length <= 1 ? "presentation" :
|
|
216
|
-
${t.map((e, n) =>
|
|
217
|
-
${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}
|
|
218
214
|
</li>`)}
|
|
219
215
|
</ul>
|
|
220
216
|
</div>
|
|
@@ -222,11 +218,11 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
222
218
|
}
|
|
223
219
|
_renderJourneyInformation(e) {
|
|
224
220
|
let { vias: t, duration: n, departureWalk: r, departure: i, arrivalWalk: a, arrival: o, legs: s } = e || {};
|
|
225
|
-
return
|
|
221
|
+
return u`
|
|
226
222
|
<div>
|
|
227
|
-
${t && t.length > 0 ? this._renderJourneyVias(t) :
|
|
223
|
+
${t && t.length > 0 ? this._renderJourneyVias(t) : d}
|
|
228
224
|
<div class="sbb-journey-summary__date">
|
|
229
|
-
${this._renderJourneyStart(
|
|
225
|
+
${this._renderJourneyStart(_(i), n)}
|
|
230
226
|
</div>
|
|
231
227
|
<sbb-pearl-chain-time
|
|
232
228
|
.arrivalTime=${o}
|
|
@@ -243,27 +239,27 @@ var b = ":host{display:block}.sbb-journey-summary{--sbb-text-font-size: var(--sb
|
|
|
243
239
|
}
|
|
244
240
|
render() {
|
|
245
241
|
let { origin: e, destination: t } = this.trip || {};
|
|
246
|
-
return
|
|
242
|
+
return u`
|
|
247
243
|
<div class="sbb-journey-summary">
|
|
248
|
-
${e ?
|
|
244
|
+
${e ? u`<sbb-journey-header
|
|
249
245
|
visual-level="4"
|
|
250
|
-
.level=${this.headerLevel ||
|
|
246
|
+
.level=${this.headerLevel || d}
|
|
251
247
|
.origin=${e}
|
|
252
248
|
.destination=${t}
|
|
253
|
-
.roundTrip=${this.roundTrip ??
|
|
254
|
-
></sbb-journey-header>` :
|
|
249
|
+
.roundTrip=${this.roundTrip ?? d}
|
|
250
|
+
></sbb-journey-header>` : d}
|
|
255
251
|
${this._renderJourneyInformation(this.trip)}
|
|
256
|
-
${this.tripBack ?
|
|
252
|
+
${this.tripBack ? u`<div>
|
|
257
253
|
<sbb-divider class="sbb-journey-summary__divider"></sbb-divider>
|
|
258
254
|
${this._renderJourneyInformation(this.tripBack)}
|
|
259
|
-
</div>` :
|
|
260
|
-
${this._hasContentSlot ?
|
|
255
|
+
</div>` : d}
|
|
256
|
+
${this._hasContentSlot ? u` <div class="sbb-journey-summary__slot">
|
|
261
257
|
<slot name="content"></slot>
|
|
262
|
-
</div>` :
|
|
258
|
+
</div>` : d}
|
|
263
259
|
</div>
|
|
264
260
|
`;
|
|
265
261
|
}
|
|
266
262
|
};
|
|
267
263
|
})();
|
|
268
264
|
//#endregion
|
|
269
|
-
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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental-dev",
|
|
3
|
-
"version": "5.0.0-next.1-dev.
|
|
3
|
+
"version": "5.0.0-next.1-dev.1777898769",
|
|
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/599a638a45558cbdc9a36af31f704d771f7c1931"
|
|
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-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,33 +1,33 @@
|
|
|
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,
|
|
4
|
-
import { SbbIconElement as
|
|
5
|
-
import { html as
|
|
6
|
-
import { property as
|
|
7
|
-
import { getDepartureArrivalTimeAttribute as
|
|
8
|
-
import { SbbPearlChainElement as
|
|
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
|
+
import { SbbIconElement as d } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
5
|
+
import { html as f, nothing as p, unsafeCSS as m } from "lit";
|
|
6
|
+
import { property as h } from "lit/decorators.js";
|
|
7
|
+
import { getDepartureArrivalTimeAttribute as g, isRideLeg as _, removeTimezoneFromISOTimeString as v } from "./core.js";
|
|
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
|
|
11
|
-
let
|
|
12
|
-
return class extends
|
|
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
|
+
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
|
+
return class extends x {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.#e = (n(this,
|
|
14
|
+
super(...arguments), this.#e = (n(this, S), n(this, w, [])), this.#t = (n(this, T), n(this, D, "")), this.#n = (n(this, O), n(this, A, "")), this.#r = (n(this, j), n(this, N, NaN)), this.#i = (n(this, P), n(this, I, NaN)), this.#a = (n(this, L), n(this, z, !1)), this.#o = (n(this, B), n(this, H, !1)), this._now = (n(this, U), null), this._language = new i(this);
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
18
|
-
|
|
17
|
+
let e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
|
|
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
|
-
})],
|
|
21
|
+
})], F = [o(), h({
|
|
22
22
|
attribute: "arrival-walk",
|
|
23
23
|
type: Number
|
|
24
|
-
})],
|
|
24
|
+
})], R = [o(), h({
|
|
25
25
|
attribute: "disable-animation",
|
|
26
26
|
type: Boolean
|
|
27
|
-
})],
|
|
27
|
+
})], V = [o(), h({
|
|
28
28
|
attribute: "a11y-footpath",
|
|
29
29
|
type: Boolean
|
|
30
|
-
})],
|
|
30
|
+
})], W = [h()], t(this, null, C, {
|
|
31
31
|
kind: "accessor",
|
|
32
32
|
name: "legs",
|
|
33
33
|
static: !1,
|
|
@@ -40,7 +40,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
metadata: e
|
|
43
|
-
},
|
|
43
|
+
}, w, T), t(this, null, E, {
|
|
44
44
|
kind: "accessor",
|
|
45
45
|
name: "departureTime",
|
|
46
46
|
static: !1,
|
|
@@ -53,7 +53,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
metadata: e
|
|
56
|
-
},
|
|
56
|
+
}, D, O), t(this, null, k, {
|
|
57
57
|
kind: "accessor",
|
|
58
58
|
name: "arrivalTime",
|
|
59
59
|
static: !1,
|
|
@@ -66,7 +66,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
metadata: e
|
|
69
|
-
},
|
|
69
|
+
}, A, j), t(this, null, M, {
|
|
70
70
|
kind: "accessor",
|
|
71
71
|
name: "departureWalk",
|
|
72
72
|
static: !1,
|
|
@@ -79,7 +79,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
metadata: e
|
|
82
|
-
},
|
|
82
|
+
}, N, P), t(this, null, F, {
|
|
83
83
|
kind: "accessor",
|
|
84
84
|
name: "arrivalWalk",
|
|
85
85
|
static: !1,
|
|
@@ -92,7 +92,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
metadata: e
|
|
95
|
-
},
|
|
95
|
+
}, I, L), t(this, null, R, {
|
|
96
96
|
kind: "accessor",
|
|
97
97
|
name: "disableAnimation",
|
|
98
98
|
static: !1,
|
|
@@ -105,7 +105,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
metadata: e
|
|
108
|
-
},
|
|
108
|
+
}, z, B), t(this, null, V, {
|
|
109
109
|
kind: "accessor",
|
|
110
110
|
name: "a11yFootpath",
|
|
111
111
|
static: !1,
|
|
@@ -118,7 +118,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
metadata: e
|
|
121
|
-
},
|
|
121
|
+
}, H, U), t(this, null, W, {
|
|
122
122
|
kind: "setter",
|
|
123
123
|
name: "now",
|
|
124
124
|
static: !1,
|
|
@@ -130,7 +130,7 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
metadata: e
|
|
133
|
-
}, null,
|
|
133
|
+
}, null, S), e && Object.defineProperty(this, Symbol.metadata, {
|
|
134
134
|
enumerable: !0,
|
|
135
135
|
configurable: !0,
|
|
136
136
|
writable: !0,
|
|
@@ -141,14 +141,10 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
141
141
|
this.elementName = "sbb-pearl-chain-time";
|
|
142
142
|
}
|
|
143
143
|
static {
|
|
144
|
-
this.elementDependencies = [
|
|
144
|
+
this.elementDependencies = [d, y];
|
|
145
145
|
}
|
|
146
146
|
static {
|
|
147
|
-
this.styles = [
|
|
148
|
-
a,
|
|
149
|
-
d,
|
|
150
|
-
h(x)
|
|
151
|
-
];
|
|
147
|
+
this.styles = [u, m(b)];
|
|
152
148
|
}
|
|
153
149
|
#e;
|
|
154
150
|
get legs() {
|
|
@@ -200,37 +196,37 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
200
196
|
this.#o = e;
|
|
201
197
|
}
|
|
202
198
|
set now(e) {
|
|
203
|
-
this._now =
|
|
199
|
+
this._now = a.getValidDateOrNull(a.deserialize(e));
|
|
204
200
|
}
|
|
205
201
|
get now() {
|
|
206
202
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
207
203
|
}
|
|
208
204
|
render() {
|
|
209
|
-
let t = this.departureTime ?
|
|
210
|
-
return
|
|
205
|
+
let t = this.departureTime ? v(this.departureTime) : void 0, n = this.arrivalTime ? v(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));
|
|
206
|
+
return f`
|
|
211
207
|
<div class="sbb-pearl-chain__time">
|
|
212
208
|
${r()}
|
|
213
|
-
${t ?
|
|
209
|
+
${t ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
214
210
|
<span class="sbb-screen-reader-only"
|
|
215
|
-
>${
|
|
211
|
+
>${c[this._language.current]}: </span
|
|
216
212
|
>
|
|
217
213
|
${e(t, "HH:mm")}
|
|
218
|
-
</time>` :
|
|
219
|
-
${a?.length > 1 ?
|
|
220
|
-
${a?.length - 1} ${
|
|
221
|
-
</span>` :
|
|
214
|
+
</time>` : p}
|
|
215
|
+
${a?.length > 1 ? f`<span class="sbb-screen-reader-only" role="paragraph">
|
|
216
|
+
${a?.length - 1} ${l[this._language.current]}
|
|
217
|
+
</span>` : p}
|
|
222
218
|
<sbb-pearl-chain
|
|
223
219
|
class="sbb-pearl-chain__time-chain"
|
|
224
220
|
.legs=${this.legs}
|
|
225
221
|
.disableAnimation=${this.disableAnimation}
|
|
226
222
|
.now=${this.now}
|
|
227
223
|
></sbb-pearl-chain>
|
|
228
|
-
${n ?
|
|
224
|
+
${n ? f`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
229
225
|
<span class="sbb-screen-reader-only"
|
|
230
|
-
>${
|
|
226
|
+
>${s[this._language.current]}: </span
|
|
231
227
|
>
|
|
232
228
|
${e(n, "HH:mm")}
|
|
233
|
-
</time>` :
|
|
229
|
+
</time>` : p}
|
|
234
230
|
${i()}
|
|
235
231
|
</div>
|
|
236
232
|
`;
|
|
@@ -238,4 +234,4 @@ var x = ":host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-widt
|
|
|
238
234
|
};
|
|
239
235
|
})();
|
|
240
236
|
//#endregion
|
|
241
|
-
export {
|
|
237
|
+
export { x as t };
|
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 };
|