@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773149682 → 4.7.0-dev.1773159924
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/autocomplete-grid.component.js +74 -82
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +9 -10
- package/autocomplete-grid/autocomplete-grid-button.js +5 -2
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +11 -19
- package/autocomplete-grid/autocomplete-grid-cell.js +5 -2
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -27
- package/autocomplete-grid/autocomplete-grid-optgroup.js +5 -2
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +30 -38
- package/autocomplete-grid/autocomplete-grid-option.js +5 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +16 -22
- package/autocomplete-grid/autocomplete-grid-row.js +5 -2
- package/autocomplete-grid/autocomplete-grid.js +5 -2
- package/autocomplete-grid.js +20 -13
- package/autocomplete-grid.pure.js +15 -0
- package/custom-elements.json +486 -261
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +2 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +109 -122
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +3 -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 -4
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +4 -4
- 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 +12 -24
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +3 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +21 -36
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -0
- 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 +32 -44
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +6 -2
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +4 -4
- 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 +16 -28
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -3
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid.js +4 -1
- package/development/autocomplete-grid.d.ts +1 -9
- package/development/autocomplete-grid.d.ts.map +1 -1
- package/development/autocomplete-grid.js +10 -3
- package/development/autocomplete-grid.pure.d.ts +8 -0
- package/development/autocomplete-grid.pure.d.ts.map +1 -0
- package/development/autocomplete-grid.pure.js +16 -0
- package/development/core/datetime.d.ts +1 -3
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/timetable/timetable-properties.d.ts +30 -30
- package/development/core/timetable/timetable-properties.d.ts.map +1 -1
- package/development/core/timetable.d.ts +1 -3
- package/development/core/timetable.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.d.ts +4 -2
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +9 -15
- package/development/journey-summary.d.ts +1 -4
- package/development/journey-summary.d.ts.map +1 -1
- package/development/journey-summary.js +2 -1
- package/development/journey-summary.pure.d.ts +3 -0
- package/development/journey-summary.pure.d.ts.map +1 -0
- package/development/journey-summary.pure.js +5 -0
- package/development/pearl-chain/pearl-chain.component.d.ts +4 -2
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +9 -15
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +4 -2
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +9 -15
- package/development/pearl-chain-time.d.ts +1 -4
- package/development/pearl-chain-time.d.ts.map +1 -1
- package/development/pearl-chain-time.js +2 -1
- package/development/pearl-chain-time.pure.d.ts +3 -0
- package/development/pearl-chain-time.pure.d.ts.map +1 -0
- package/development/pearl-chain-time.pure.js +5 -0
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +4 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +11 -23
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +4 -2
- 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 +9 -15
- package/development/pearl-chain-vertical-item.d.ts +1 -4
- package/development/pearl-chain-vertical-item.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item.js +2 -1
- package/development/pearl-chain-vertical-item.pure.d.ts +3 -0
- package/development/pearl-chain-vertical-item.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical-item.pure.js +5 -0
- package/development/pearl-chain-vertical.d.ts +1 -4
- package/development/pearl-chain-vertical.d.ts.map +1 -1
- package/development/pearl-chain-vertical.js +2 -1
- package/development/pearl-chain-vertical.pure.d.ts +3 -0
- package/development/pearl-chain-vertical.pure.d.ts.map +1 -0
- package/development/pearl-chain-vertical.pure.js +5 -0
- package/development/pearl-chain.d.ts +1 -4
- package/development/pearl-chain.d.ts.map +1 -1
- package/development/pearl-chain.js +2 -1
- package/development/pearl-chain.pure.d.ts +3 -0
- package/development/pearl-chain.pure.d.ts.map +1 -0
- package/development/pearl-chain.pure.js +5 -0
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +2 -2
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/types.d.ts +22 -22
- package/development/seat-reservation/common/types.d.ts.map +1 -1
- package/development/seat-reservation/common.d.ts +1 -3
- package/development/seat-reservation/common.d.ts.map +1 -1
- package/development/seat-reservation/common.js +3 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +4 -3
- 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 +4 -3
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +1 -0
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +344 -352
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +4 -2
- 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 +9 -15
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-area.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-area.js +4 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +6 -4
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +4 -2
- 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 +11 -16
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-graphic.js +4 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +5 -3
- 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 +12 -17
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +4 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +4 -2
- 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 +12 -17
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +4 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -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 +10 -16
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control.js +4 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +4 -2
- 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 +11 -23
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -3
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-scoped.js +4 -1
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation.js +4 -1
- package/development/seat-reservation.d.ts +1 -11
- package/development/seat-reservation.d.ts.map +1 -1
- package/development/seat-reservation.js +13 -3
- package/development/seat-reservation.pure.d.ts +15 -0
- package/development/seat-reservation.pure.d.ts.map +1 -0
- package/development/seat-reservation.pure.js +33 -0
- package/development/timetable-duration/timetable-duration.component.d.ts +4 -2
- package/development/timetable-duration/timetable-duration.component.d.ts.map +1 -1
- package/development/timetable-duration/timetable-duration.component.js +9 -15
- package/development/timetable-duration.d.ts +1 -4
- package/development/timetable-duration.d.ts.map +1 -1
- package/development/timetable-duration.js +2 -1
- package/development/timetable-duration.pure.d.ts +3 -0
- package/development/timetable-duration.pure.d.ts.map +1 -0
- package/development/timetable-duration.pure.js +5 -0
- package/development/timetable-row/timetable-row.component.d.ts +4 -2
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +9 -15
- package/development/timetable-row.d.ts +1 -4
- package/development/timetable-row.d.ts.map +1 -1
- package/development/timetable-row.js +4 -2
- package/development/timetable-row.pure.d.ts +3 -0
- package/development/timetable-row.pure.d.ts.map +1 -0
- package/development/timetable-row.pure.js +12 -0
- package/index.d.ts +9 -20
- package/index.js +9 -20
- package/journey-summary/journey-summary.component.js +88 -87
- package/journey-summary.js +3 -2
- package/journey-summary.pure.js +4 -0
- package/package.json +47 -2
- package/pearl-chain/pearl-chain.component.js +74 -73
- package/pearl-chain-time/pearl-chain-time.component.js +64 -63
- package/pearl-chain-time.js +3 -2
- package/pearl-chain-time.pure.js +4 -0
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +11 -18
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +39 -38
- package/pearl-chain-vertical-item.js +3 -2
- package/pearl-chain-vertical-item.pure.js +4 -0
- package/pearl-chain-vertical.js +3 -2
- package/pearl-chain-vertical.pure.js +4 -0
- package/pearl-chain.js +3 -2
- package/pearl-chain.pure.js +4 -0
- package/seat-reservation/common.js +10 -8
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +4 -3
- package/seat-reservation/seat-reservation/seat-reservation.component.js +261 -263
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +32 -31
- package/seat-reservation/seat-reservation-area.js +5 -2
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +18 -16
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +42 -40
- package/seat-reservation/seat-reservation-graphic.js +5 -2
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +117 -115
- package/seat-reservation/seat-reservation-navigation-coach.js +5 -2
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +53 -51
- package/seat-reservation/seat-reservation-navigation-services.js +5 -2
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +79 -78
- package/seat-reservation/seat-reservation-place-control.js +5 -2
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +11 -18
- package/seat-reservation/seat-reservation-scoped.js +5 -2
- package/seat-reservation/seat-reservation.js +5 -2
- package/seat-reservation.js +37 -27
- package/seat-reservation.pure.js +32 -0
- package/timetable-duration/timetable-duration.component.js +29 -28
- package/timetable-duration.js +3 -2
- package/timetable-duration.pure.js +4 -0
- package/timetable-row/timetable-row.component.js +152 -151
- package/timetable-row.js +11 -9
- package/timetable-row.pure.js +11 -0
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
var
|
|
1
|
+
var j = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
var M = (t, i, o) => i.has(t) || j("Cannot " + o);
|
|
5
|
+
var N = (t, i, o) => (M(t, i, "read from private field"), o ? o.call(t) : i.get(t)), I = (t, i, o) => i.has(t) ? j("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, o), v = (t, i, o, _) => (M(t, i, "write to private field"), _ ? _.call(t, o) : i.set(t, o), o);
|
|
6
|
+
import { __runInitializers as m, __esDecorate as P } from "tslib";
|
|
7
|
+
import { SbbElement as oe } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
8
|
+
import { defaultDateAdapter as Y } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
9
|
+
import { forceType as ne } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
10
|
+
import { boxSizingStyles as be } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
11
|
+
import { css as ce, html as f, nothing as F } from "lit";
|
|
12
|
+
import { property as E } from "lit/decorators.js";
|
|
13
|
+
import { styleMap as X } from "lit/directives/style-map.js";
|
|
14
|
+
import { removeTimezoneFromISOTimeString as n } from "../core/datetime.js";
|
|
15
|
+
import { isRideLeg as pe } from "../core/timetable.js";
|
|
16
|
+
import { d as w, a as z } from "../differenceInMinutes-COvvdYsJ.js";
|
|
17
|
+
import { t as x } from "../toDate-Bw2KTWeq.js";
|
|
18
|
+
function he(t, i) {
|
|
19
|
+
return +x(t) > +x(i);
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
return +
|
|
21
|
+
function q(t, i) {
|
|
22
|
+
return +x(t) < +x(i);
|
|
22
23
|
}
|
|
23
|
-
const me = de`:host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small: .125rem;--sbb-pearl-chain-color: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width: 100%;display:block;--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}.sbb-pearl-chain{position:relative;display:flex;justify-content:space-between;flex-wrap:nowrap;color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain__bullet{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__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__bullet{content:"";position:absolute;background-color:currentcolor;inset-block-start:0;z-index:3}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{flex-shrink:0;flex-grow:0;position:relative;height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;background-color:currentcolor;width:var(--sbb-pearl-chain-leg-width);display:flex;align-items:center}@media(forced-colors:active){.sbb-pearl-chain__leg{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{position:relative;z-index:2;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__stop{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__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__bullet--future{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__bullet--future{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{background-color:GrayText!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color: Highlight}}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:Highlight;background:Highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{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__stop--departure-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__stop--departure-skipped:before{background:Highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{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);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-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--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:Highlight}}.sbb-pearl-chain__leg:after{content:"";position:absolute;inset-block:0;inset-inline-start:0;background-color:currentcolor;border-radius:var(--sbb-pearl-chain-height);z-index:1}@media(forced-colors:active){.sbb-pearl-chain__leg:after{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{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__position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain__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__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;position:absolute;inset-block-start:-200%;z-index:4;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}.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}`;
|
|
24
|
-
let
|
|
25
|
-
var
|
|
26
|
-
let t =
|
|
27
|
-
return
|
|
24
|
+
const de = ce`:host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small: .125rem;--sbb-pearl-chain-color: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width: 100%;display:block;--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}.sbb-pearl-chain{position:relative;display:flex;justify-content:space-between;flex-wrap:nowrap;color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain__bullet{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__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__bullet{content:"";position:absolute;background-color:currentcolor;inset-block-start:0;z-index:3}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{flex-shrink:0;flex-grow:0;position:relative;height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;background-color:currentcolor;width:var(--sbb-pearl-chain-leg-width);display:flex;align-items:center}@media(forced-colors:active){.sbb-pearl-chain__leg{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{position:relative;z-index:2;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__stop{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__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__bullet--future{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__bullet--future{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{background-color:GrayText!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color: Highlight}}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:Highlight;background:Highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{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__stop--departure-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__stop--departure-skipped:before{background:Highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{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);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-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--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:Highlight}}.sbb-pearl-chain__leg:after{content:"";position:absolute;inset-block:0;inset-inline-start:0;background-color:currentcolor;border-radius:var(--sbb-pearl-chain-height);z-index:1}@media(forced-colors:active){.sbb-pearl-chain__leg:after{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{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__position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain__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__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;position:absolute;inset-block-start:-200%;z-index:4;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}.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}`;
|
|
25
|
+
let Ce = (() => {
|
|
26
|
+
var u, g, b;
|
|
27
|
+
let t = oe, i = [], o, _ = [], H = [], O, J = [], R = [], W;
|
|
28
|
+
return b = class extends t {
|
|
28
29
|
constructor() {
|
|
29
30
|
super(...arguments);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
I(this, u);
|
|
32
|
+
I(this, g);
|
|
33
|
+
v(this, u, (m(this, i), m(this, _, []))), v(this, g, (m(this, H), m(this, J, !1))), this._now = (m(this, R), null);
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Define the legs of the pearl-chain.
|
|
@@ -40,82 +41,82 @@ let Pe = (() => {
|
|
|
40
41
|
* arrival at 17:00. So the change should have a duration of 33.33%.
|
|
41
42
|
*/
|
|
42
43
|
get legs() {
|
|
43
|
-
return
|
|
44
|
+
return N(this, u);
|
|
44
45
|
}
|
|
45
46
|
set legs(a) {
|
|
46
|
-
|
|
47
|
+
v(this, u, a);
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* Per default, the current location has a pulsating animation. You can
|
|
50
51
|
* disable the animation with this property.
|
|
51
52
|
*/
|
|
52
53
|
get disableAnimation() {
|
|
53
|
-
return
|
|
54
|
+
return N(this, g);
|
|
54
55
|
}
|
|
55
56
|
set disableAnimation(a) {
|
|
56
|
-
|
|
57
|
+
v(this, g, a);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* A configured date which acts as the current date instead of the real current date.
|
|
60
61
|
* Only recommended for testing purposes.
|
|
61
62
|
*/
|
|
62
63
|
set now(a) {
|
|
63
|
-
this._now =
|
|
64
|
+
this._now = Y.getValidDateOrNull(Y.deserialize(a));
|
|
64
65
|
}
|
|
65
66
|
get now() {
|
|
66
67
|
return this._now;
|
|
67
68
|
}
|
|
68
69
|
_getAllDuration(a) {
|
|
69
70
|
return a?.reduce((e, r) => {
|
|
70
|
-
const
|
|
71
|
-
return
|
|
71
|
+
const l = n(r.arrival?.time), s = n(r.departure?.time);
|
|
72
|
+
return l && s ? e + w(n(r.arrival.time), n(r.departure.time)) : e;
|
|
72
73
|
}, 0);
|
|
73
74
|
}
|
|
74
75
|
_isAllCancelled(a) {
|
|
75
76
|
return a?.every((e) => e?.serviceJourney?.serviceAlteration?.cancelled);
|
|
76
77
|
}
|
|
77
78
|
_getRelativeDuration(a, e) {
|
|
78
|
-
const r =
|
|
79
|
-
if (r &&
|
|
80
|
-
const s =
|
|
81
|
-
return
|
|
79
|
+
const r = n(e.arrival?.time), l = n(e.departure?.time);
|
|
80
|
+
if (r && l) {
|
|
81
|
+
const s = w(n(e.arrival.time), n(e.departure.time)), c = this._getAllDuration(a);
|
|
82
|
+
return c === 0 ? 100 : s / c * 100;
|
|
82
83
|
}
|
|
83
84
|
return 0;
|
|
84
85
|
}
|
|
85
86
|
_getProgress(a, e, r) {
|
|
86
87
|
if (!e?.time || !r?.time)
|
|
87
88
|
return 0;
|
|
88
|
-
const
|
|
89
|
-
return
|
|
89
|
+
const l = z(e.time, e.delay ?? 0), s = z(r.time, r.delay ?? 0), c = w(s, l), S = w(a, l);
|
|
90
|
+
return c && S / c * 100;
|
|
90
91
|
}
|
|
91
92
|
_getStatus(a, e, r) {
|
|
92
|
-
const
|
|
93
|
-
return
|
|
93
|
+
const l = e && e.time && z(e.time, e.delay ?? 0), s = r && r.time && z(r.time, r.delay ?? 0);
|
|
94
|
+
return l && q(l, a) && s && he(s, a) ? "progress" : s && q(s, a) ? "past" : "future";
|
|
94
95
|
}
|
|
95
96
|
_renderPosition(a, e, r) {
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
97
|
+
const l = this._getProgress(a, e, r);
|
|
98
|
+
if (l < 0 && l > 100)
|
|
98
99
|
return;
|
|
99
100
|
const s = () => ({
|
|
100
|
-
"--sbb-pearl-chain-status-position": `${
|
|
101
|
-
...
|
|
102
|
-
}),
|
|
101
|
+
"--sbb-pearl-chain-status-position": `${l}%`,
|
|
102
|
+
...l >= 50 ? { transform: "translateX(-100%)" } : {}
|
|
103
|
+
}), c = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
|
|
103
104
|
return f`<span
|
|
104
|
-
style=${
|
|
105
|
-
class="sbb-pearl-chain__position ${
|
|
105
|
+
style=${X(s())}
|
|
106
|
+
class="sbb-pearl-chain__position ${c}"
|
|
106
107
|
></span>`;
|
|
107
108
|
}
|
|
108
109
|
render() {
|
|
109
|
-
const a = this.now ?? /* @__PURE__ */ new Date(), e = this.legs?.filter((
|
|
110
|
+
const a = this.now ?? /* @__PURE__ */ new Date(), e = this.legs?.filter((p) => pe(p)), r = e?.length && n(e[0]?.departure?.time), l = r && {
|
|
110
111
|
time: r,
|
|
111
112
|
delay: e[0].departure.delay ?? 0
|
|
112
|
-
}, s = e?.length &&
|
|
113
|
+
}, s = e?.length && n(e[e.length - 1].arrival?.time), c = s && {
|
|
113
114
|
time: s,
|
|
114
115
|
delay: e[e.length - 1]?.arrival.delay ?? 0
|
|
115
|
-
},
|
|
116
|
-
const
|
|
117
|
-
return
|
|
118
|
-
})(),
|
|
116
|
+
}, S = e && e[0]?.serviceJourney?.stopPoints && e[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", K = (() => {
|
|
117
|
+
const p = e && e[e.length - 1], h = p && p.serviceJourney?.stopPoints;
|
|
118
|
+
return h && h[h.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
|
|
119
|
+
})(), G = e && e[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", L = e && e[e.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", A = l && c && this._getStatus(a, l, c), Q = e && A && !G ? "sbb-pearl-chain__bullet--" + A : "", U = e && A && !L ? "sbb-pearl-chain__bullet--" + this._getStatus(a, void 0, c) : "";
|
|
119
120
|
return this._isAllCancelled(e) ? f`
|
|
120
121
|
<div class="sbb-pearl-chain">
|
|
121
122
|
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
@@ -125,40 +126,40 @@ let Pe = (() => {
|
|
|
125
126
|
` : f`
|
|
126
127
|
<div class="sbb-pearl-chain">
|
|
127
128
|
<span
|
|
128
|
-
class="sbb-pearl-chain__bullet ${
|
|
129
|
+
class="sbb-pearl-chain__bullet ${Q} ${S} ${G}"
|
|
129
130
|
></span>
|
|
130
|
-
${e?.map((
|
|
131
|
-
const { stopPoints:
|
|
131
|
+
${e?.map((p, h) => {
|
|
132
|
+
const { stopPoints: d, serviceAlteration: V } = p?.serviceJourney || {}, Z = this._getRelativeDuration(e, p), ee = n(p.departure?.time), ae = n(p.arrival?.time), re = d && d[d.length - 1]?.stopStatus === "NOT_SERVICED", te = d && d[d.length - 1]?.stopStatus === "PLANNED", B = d && d[0]?.stopStatus === "NOT_SERVICED", D = h > 0 && e[h - 1].serviceJourney.stopPoints, ie = D && D[D.length - 1]?.stopStatus === "NOT_SERVICED", k = re || B && te ? "sbb-pearl-chain__leg--skipped" : "", le = B || ie ? "sbb-pearl-chain__stop--departure-skipped" : "", y = V?.cancelled || V?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", T = { time: ee, delay: p.departure?.delay ?? 0 }, C = { time: ae, delay: p.arrival?.delay ?? 0 }, $ = this._getStatus(a, T, C), se = !y && !k && "sbb-pearl-chain__leg--" + $;
|
|
132
133
|
return f` <div
|
|
133
|
-
class="sbb-pearl-chain__leg ${
|
|
134
|
-
style=${
|
|
135
|
-
"--sbb-pearl-chain-leg-width": `${
|
|
136
|
-
|
|
137
|
-
"--sbb-pearl-chain-leg-status": `${this._getProgress(a,
|
|
134
|
+
class="sbb-pearl-chain__leg ${se || ""} ${y} ${k}"
|
|
135
|
+
style=${X({
|
|
136
|
+
"--sbb-pearl-chain-leg-width": `${Z}%`,
|
|
137
|
+
...$ === "progress" && !y && !k ? {
|
|
138
|
+
"--sbb-pearl-chain-leg-status": `${this._getProgress(a, T, C)}%`
|
|
138
139
|
} : {}
|
|
139
140
|
})}
|
|
140
141
|
>
|
|
141
|
-
${
|
|
142
|
-
${
|
|
142
|
+
${h > 0 && h < e.length ? f`<span class="sbb-pearl-chain__stop ${le}"></span>` : F}
|
|
143
|
+
${$ === "progress" && !y && !k ? this._renderPosition(a, T, C) : F}
|
|
143
144
|
</div>`;
|
|
144
145
|
})}
|
|
145
146
|
<span
|
|
146
|
-
class="sbb-pearl-chain__bullet ${
|
|
147
|
+
class="sbb-pearl-chain__bullet ${U} ${K} ${L}"
|
|
147
148
|
></span>
|
|
148
149
|
</div>
|
|
149
150
|
`;
|
|
150
151
|
}
|
|
151
|
-
},
|
|
152
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
153
|
-
|
|
152
|
+
}, u = new WeakMap(), g = new WeakMap(), (() => {
|
|
153
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
|
|
154
|
+
o = [E({ type: Array })], O = [ne(), E({ attribute: "disable-animation", type: Boolean })], W = [E()], P(b, null, o, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, r) => {
|
|
154
155
|
e.legs = r;
|
|
155
|
-
} }, metadata: a },
|
|
156
|
+
} }, metadata: a }, _, H), P(b, null, O, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, r) => {
|
|
156
157
|
e.disableAnimation = r;
|
|
157
|
-
} }, metadata: a },
|
|
158
|
+
} }, metadata: a }, J, R), P(b, null, W, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, r) => {
|
|
158
159
|
e.now = r;
|
|
159
|
-
} }, metadata: a }, null,
|
|
160
|
-
})(),
|
|
160
|
+
} }, metadata: a }, null, i), a && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
161
|
+
})(), b.elementName = "sbb-pearl-chain", b.styles = [be, de], b;
|
|
161
162
|
})();
|
|
162
163
|
export {
|
|
163
|
-
|
|
164
|
+
Ce as SbbPearlChainElement
|
|
164
165
|
};
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
var
|
|
1
|
+
var M = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
4
|
+
var Q = (a, s, o) => s.has(a) || M("Cannot " + o);
|
|
5
|
+
var m = (a, s, o) => (Q(a, s, "read from private field"), o ? o.call(a) : s.get(a)), c = (a, s, o) => s.has(a) ? M("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, o), l = (a, s, o, x) => (Q(a, s, "write to private field"), x ? x.call(a, o) : s.set(a, o), o);
|
|
6
|
+
import { __runInitializers as n, __esDecorate as h } from "tslib";
|
|
7
|
+
import { SbbElement as P } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
8
|
+
import { SbbLanguageController as C } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
9
|
+
import { defaultDateAdapter as U } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
10
|
+
import { forceType as y } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
11
|
+
import { i18nDeparture as ee, i18nTransferProcedures as te, i18nArrival as ae } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
12
|
+
import { boxSizingStyles as ie } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
13
|
+
import { css as re, nothing as w, html as k } from "lit";
|
|
14
|
+
import { property as p } from "lit/decorators.js";
|
|
15
|
+
import { removeTimezoneFromISOTimeString as X } from "../core/datetime.js";
|
|
16
|
+
import { getDepartureArrivalTimeAttribute as se, isRideLeg as le } from "../core/timetable.js";
|
|
16
17
|
import "../pearl-chain.js";
|
|
17
|
-
import { f as
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
var
|
|
21
|
-
let a =
|
|
22
|
-
return
|
|
18
|
+
import { f as Y } from "../format-CmKROkbc.js";
|
|
19
|
+
const ne = re`: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}`;
|
|
20
|
+
let we = (() => {
|
|
21
|
+
var b, d, g, _, u, f, v, r;
|
|
22
|
+
let a = P, s = [], o, x = [], z = [], T, W = [], A = [], $, F = [], I = [], N, D = [], H = [], O, j = [], L = [], B, S = [], R = [], V, q = [], G = [], J;
|
|
23
|
+
return r = class extends a {
|
|
23
24
|
constructor() {
|
|
24
25
|
super(...arguments);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
c(this, b);
|
|
27
|
+
c(this, d);
|
|
28
|
+
c(this, g);
|
|
29
|
+
c(this, _);
|
|
30
|
+
c(this, u);
|
|
31
|
+
c(this, f);
|
|
32
|
+
c(this, v);
|
|
33
|
+
l(this, b, (n(this, s), n(this, x, []))), l(this, d, (n(this, z), n(this, W, ""))), l(this, g, (n(this, A), n(this, F, ""))), l(this, _, (n(this, I), n(this, D, NaN))), l(this, u, (n(this, H), n(this, j, NaN))), l(this, f, (n(this, L), n(this, S, !1))), l(this, v, (n(this, R), n(this, q, !1))), this._now = (n(this, G), null), this._language = new C(this);
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* define the legs of the pearl-chain.
|
|
@@ -40,79 +41,79 @@ let Ae = (() => {
|
|
|
40
41
|
* arrival at 17:00. So the change should have a duration of 33.33%.
|
|
41
42
|
*/
|
|
42
43
|
get legs() {
|
|
43
|
-
return
|
|
44
|
+
return m(this, b);
|
|
44
45
|
}
|
|
45
46
|
set legs(t) {
|
|
46
|
-
|
|
47
|
+
l(this, b, t);
|
|
47
48
|
}
|
|
48
49
|
/** Prop to render the departure time - will be formatted as "H:mm" */
|
|
49
50
|
get departureTime() {
|
|
50
|
-
return
|
|
51
|
+
return m(this, d);
|
|
51
52
|
}
|
|
52
53
|
set departureTime(t) {
|
|
53
|
-
|
|
54
|
+
l(this, d, t);
|
|
54
55
|
}
|
|
55
56
|
/** Prop to render the arrival time - will be formatted as "H:mm" */
|
|
56
57
|
get arrivalTime() {
|
|
57
|
-
return
|
|
58
|
+
return m(this, g);
|
|
58
59
|
}
|
|
59
60
|
set arrivalTime(t) {
|
|
60
|
-
|
|
61
|
+
l(this, g, t);
|
|
61
62
|
}
|
|
62
63
|
/** Optional prop to render the walk time (in minutes) before departure */
|
|
63
64
|
get departureWalk() {
|
|
64
|
-
return
|
|
65
|
+
return m(this, _);
|
|
65
66
|
}
|
|
66
67
|
set departureWalk(t) {
|
|
67
|
-
|
|
68
|
+
l(this, _, t);
|
|
68
69
|
}
|
|
69
70
|
/** Optional prop to render the walk time (in minutes) after arrival */
|
|
70
71
|
get arrivalWalk() {
|
|
71
|
-
return
|
|
72
|
+
return m(this, u);
|
|
72
73
|
}
|
|
73
74
|
set arrivalWalk(t) {
|
|
74
|
-
|
|
75
|
+
l(this, u, t);
|
|
75
76
|
}
|
|
76
77
|
/**
|
|
77
78
|
* Per default, the current location has a pulsating animation. You can
|
|
78
79
|
* disable the animation with this property.
|
|
79
80
|
*/
|
|
80
81
|
get disableAnimation() {
|
|
81
|
-
return
|
|
82
|
+
return m(this, f);
|
|
82
83
|
}
|
|
83
84
|
set disableAnimation(t) {
|
|
84
|
-
|
|
85
|
+
l(this, f, t);
|
|
85
86
|
}
|
|
86
87
|
/** Optional prop to render wheelchair-small instead of walk-small */
|
|
87
88
|
get a11yFootpath() {
|
|
88
|
-
return
|
|
89
|
+
return m(this, v);
|
|
89
90
|
}
|
|
90
91
|
set a11yFootpath(t) {
|
|
91
|
-
|
|
92
|
+
l(this, v, t);
|
|
92
93
|
}
|
|
93
94
|
/**
|
|
94
95
|
* A configured date which acts as the current date instead of the real current date.
|
|
95
96
|
* Only recommended for testing purposes.
|
|
96
97
|
*/
|
|
97
98
|
set now(t) {
|
|
98
|
-
this._now =
|
|
99
|
+
this._now = U.getValidDateOrNull(U.deserialize(t));
|
|
99
100
|
}
|
|
100
101
|
get now() {
|
|
101
102
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
102
103
|
}
|
|
103
104
|
render() {
|
|
104
|
-
const t = this.departureTime ?
|
|
105
|
+
const t = this.departureTime ? X(this.departureTime) : void 0, e = this.arrivalTime ? X(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: i, renderArrivalTimeAttribute: Z } = se(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), K = this.legs?.filter((E) => le(E));
|
|
105
106
|
return k`
|
|
106
107
|
<div class="sbb-pearl-chain__time">
|
|
107
108
|
${i()}
|
|
108
109
|
${t ? k`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
|
|
109
110
|
<span class="sbb-screen-reader-only"
|
|
110
|
-
>${
|
|
111
|
+
>${ee[this._language.current]}: </span
|
|
111
112
|
>
|
|
112
|
-
${
|
|
113
|
+
${Y(t, "HH:mm")}
|
|
113
114
|
</time>` : w}
|
|
114
|
-
${
|
|
115
|
-
${
|
|
115
|
+
${K?.length > 1 ? k`<span class="sbb-screen-reader-only" role="paragraph">
|
|
116
|
+
${K?.length - 1} ${te[this._language.current]}
|
|
116
117
|
</span>` : w}
|
|
117
118
|
<sbb-pearl-chain
|
|
118
119
|
class="sbb-pearl-chain__time-chain"
|
|
@@ -122,35 +123,35 @@ let Ae = (() => {
|
|
|
122
123
|
></sbb-pearl-chain>
|
|
123
124
|
${e ? k`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
|
|
124
125
|
<span class="sbb-screen-reader-only"
|
|
125
|
-
>${
|
|
126
|
+
>${ae[this._language.current]}: </span
|
|
126
127
|
>
|
|
127
|
-
${
|
|
128
|
+
${Y(e, "HH:mm")}
|
|
128
129
|
</time>` : w}
|
|
129
|
-
${
|
|
130
|
+
${Z()}
|
|
130
131
|
</div>
|
|
131
132
|
`;
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
135
|
-
|
|
134
|
+
}, b = new WeakMap(), d = new WeakMap(), g = new WeakMap(), _ = new WeakMap(), u = new WeakMap(), f = new WeakMap(), v = new WeakMap(), (() => {
|
|
135
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
|
|
136
|
+
o = [p({ type: Array })], T = [y(), p({ attribute: "departure-time" })], $ = [y(), p({ attribute: "arrival-time" })], N = [y(), p({ attribute: "departure-walk", type: Number })], O = [y(), p({ attribute: "arrival-walk", type: Number })], B = [y(), p({ attribute: "disable-animation", type: Boolean })], V = [y(), p({ attribute: "a11y-footpath", type: Boolean })], J = [p()], h(r, null, o, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, i) => {
|
|
136
137
|
e.legs = i;
|
|
137
|
-
} }, metadata: t },
|
|
138
|
+
} }, metadata: t }, x, z), h(r, null, T, { kind: "accessor", name: "departureTime", static: !1, private: !1, access: { has: (e) => "departureTime" in e, get: (e) => e.departureTime, set: (e, i) => {
|
|
138
139
|
e.departureTime = i;
|
|
139
|
-
} }, metadata: t },
|
|
140
|
+
} }, metadata: t }, W, A), h(r, null, $, { kind: "accessor", name: "arrivalTime", static: !1, private: !1, access: { has: (e) => "arrivalTime" in e, get: (e) => e.arrivalTime, set: (e, i) => {
|
|
140
141
|
e.arrivalTime = i;
|
|
141
|
-
} }, metadata: t },
|
|
142
|
+
} }, metadata: t }, F, I), h(r, null, N, { kind: "accessor", name: "departureWalk", static: !1, private: !1, access: { has: (e) => "departureWalk" in e, get: (e) => e.departureWalk, set: (e, i) => {
|
|
142
143
|
e.departureWalk = i;
|
|
143
|
-
} }, metadata: t },
|
|
144
|
+
} }, metadata: t }, D, H), h(r, null, O, { kind: "accessor", name: "arrivalWalk", static: !1, private: !1, access: { has: (e) => "arrivalWalk" in e, get: (e) => e.arrivalWalk, set: (e, i) => {
|
|
144
145
|
e.arrivalWalk = i;
|
|
145
|
-
} }, metadata: t },
|
|
146
|
+
} }, metadata: t }, j, L), h(r, null, B, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, i) => {
|
|
146
147
|
e.disableAnimation = i;
|
|
147
|
-
} }, metadata: t },
|
|
148
|
+
} }, metadata: t }, S, R), h(r, null, V, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (e) => "a11yFootpath" in e, get: (e) => e.a11yFootpath, set: (e, i) => {
|
|
148
149
|
e.a11yFootpath = i;
|
|
149
|
-
} }, metadata: t },
|
|
150
|
+
} }, metadata: t }, q, G), h(r, null, J, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, i) => {
|
|
150
151
|
e.now = i;
|
|
151
|
-
} }, metadata: t }, null,
|
|
152
|
-
})(),
|
|
152
|
+
} }, metadata: t }, null, s), t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
153
|
+
})(), r.elementName = "sbb-pearl-chain-time", r.styles = [ie, ne], r;
|
|
153
154
|
})();
|
|
154
155
|
export {
|
|
155
|
-
|
|
156
|
+
we as SbbPearlChainTimeElement
|
|
156
157
|
};
|
package/pearl-chain-time.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { SbbPearlChainTimeElement as
|
|
1
|
+
import { SbbPearlChainTimeElement as e } from "./pearl-chain-time/pearl-chain-time.component.js";
|
|
2
|
+
e.define();
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
e as SbbPearlChainTimeElement
|
|
4
5
|
};
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { boxSizingStyles as
|
|
3
|
-
import { css as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var e;
|
|
8
|
-
let r = [u("sbb-pearl-chain-vertical")], l, s = [], t, i = b;
|
|
9
|
-
return e = class extends i {
|
|
10
|
-
render() {
|
|
11
|
-
return d`
|
|
1
|
+
import { SbbElement as i } from "@sbb-esta/lyne-elements/core/base-elements.js";
|
|
2
|
+
import { boxSizingStyles as r } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
3
|
+
import { css as a, html as l } from "lit";
|
|
4
|
+
const c = a`:host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}`, s = class s extends i {
|
|
5
|
+
render() {
|
|
6
|
+
return l`
|
|
12
7
|
<div class="sbb-pearl-chain-vertical">
|
|
13
8
|
<slot></slot>
|
|
14
9
|
</div>
|
|
15
10
|
`;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})(), e.styles = [o, p], n(t, s), t;
|
|
21
|
-
})();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
s.elementName = "sbb-pearl-chain-vertical", s.styles = [r, c];
|
|
14
|
+
let t = s;
|
|
22
15
|
export {
|
|
23
|
-
|
|
16
|
+
t as SbbPearlChainVerticalElement
|
|
24
17
|
};
|