@sbb-esta/lyne-elements-experimental 4.11.0 → 5.0.0-next
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 +15 -18
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +6 -11
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +1 -1
- package/{autocomplete-grid-cell.component-DkD9aFKc.js → autocomplete-grid-cell.component-BFzREPWp.js} +1 -2
- package/{autocomplete-grid-option.component-CtATJy7n.js → autocomplete-grid-option.component-DhmoLeEw.js} +5 -7
- package/{autocomplete-grid-row.component-6nJv5PMj.js → autocomplete-grid-row.component-BQxCxOI6.js} +1 -2
- package/autocomplete-grid.js +3 -3
- package/autocomplete-grid.pure.js +3 -3
- package/core/datetime/date-helper.js +1 -1
- package/core/timetable/access-leg-helper.js +27 -27
- package/core.js +5 -0
- package/custom-elements.json +226 -453
- package/{date-helper-CGproP5d.js → date-helper-CuMnZCsr.js} +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +1 -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 +3 -6
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +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 -8
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -1
- 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-optgroup/autocomplete-grid-optgroup.component.d.ts +1 -1
- 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 +2 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +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-Buvsof-Y.js +33 -0
- package/development/{autocomplete-grid-option.component-5mPGswUO.js → autocomplete-grid-option.component-B4SXR9_v.js} +3 -5
- package/development/{autocomplete-grid-row.component-DEm6zyHZ.js → autocomplete-grid-row.component-CY4UDuuj.js} +2 -3
- package/development/autocomplete-grid.js +3 -3
- package/development/autocomplete-grid.pure.js +3 -3
- package/development/core/datetime/date-helper.js +1 -1
- package/development/core/timetable/access-leg-helper.d.ts.map +1 -1
- package/development/core/timetable/access-leg-helper.js +3 -3
- package/development/core.d.ts +6 -0
- package/development/core.d.ts.map +1 -0
- package/development/core.js +5 -0
- package/development/{date-helper-qNdwgC9O.js → date-helper-DGz-ztQM.js} +2 -2
- package/development/journey-summary/journey-summary.component.d.ts +4 -3
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +1 -1
- package/development/{journey-summary.component-BZwgD4im.js → journey-summary.component-B9P1PAJv.js} +14 -12
- package/development/journey-summary.js +1 -1
- package/development/journey-summary.pure.js +1 -1
- package/development/pearl-chain/pearl-chain.component.d.ts +2 -2
- 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 +3 -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 +1 -1
- package/development/{pearl-chain-time.component-B2_BI6E_.js → pearl-chain-time.component-DDnGnI77.js} +8 -10
- 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 +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 +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/{pearl-chain-vertical-item.component-DcmH13Vb.js → pearl-chain-vertical-item.component-CRh0l20F.js} +2 -4
- 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-Cmc3QXgd.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-oQZUzsyW.js → pearl-chain.component-Dl2RvtJo.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-base-element.d.ts +1 -1
- 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 +2 -4
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -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 +1 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +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 +2 -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 +2 -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 +2 -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 +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 +1 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +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-DbeuTnXT.js → seat-reservation-area.component-BQEtJhk0.js} +2 -4
- package/development/{seat-reservation-graphic.component-DlrHtlia.js → seat-reservation-graphic.component-XpqxL5nq.js} +7 -7
- package/development/{seat-reservation-navigation-coach.component-CjoDkcVU.js → seat-reservation-navigation-coach.component-DRCcI2ss.js} +5 -7
- package/development/{seat-reservation-navigation-services.component-CGel7__P.js → seat-reservation-navigation-services.component-ZNm77ZG-.js} +5 -7
- package/development/{seat-reservation-place-control.component-CM9efId7.js → seat-reservation-place-control.component-QF_px_in.js} +5 -6
- package/development/{seat-reservation-scoped.component-CFA_bJ3o.js → seat-reservation-scoped.component-X-Kq0-w5.js} +2 -3
- package/development/seat-reservation.component-C-ttTPW5.js +515 -0
- package/development/seat-reservation.js +9 -10
- package/development/seat-reservation.pure.d.ts +0 -1
- package/development/seat-reservation.pure.d.ts.map +1 -1
- package/development/seat-reservation.pure.js +8 -9
- package/development/timetable-duration/timetable-duration.component.d.ts +1 -1
- 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-2JBYobDt.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 +3 -2
- 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-Binmks-o.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-OFYXlkzg.js → journey-summary.component-C7WPKx8k.js} +56 -54
- package/journey-summary.js +1 -1
- package/journey-summary.pure.js +1 -1
- package/package.json +6 -81
- 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-CNKsGfIp.js → pearl-chain-time.component-awU4lFdO.js} +41 -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-BUqZ-3Ay.js → pearl-chain-vertical-item.component-BynmUBXa.js} +3 -5
- package/pearl-chain-vertical-item.js +1 -1
- package/pearl-chain-vertical-item.pure.js +1 -1
- package/{pearl-chain-vertical.component-Df9CvRxo.js → pearl-chain-vertical.component-Lx47SlJU.js} +1 -2
- package/pearl-chain-vertical.js +1 -1
- package/pearl-chain-vertical.pure.js +1 -1
- package/{pearl-chain.component-CpISVoAu.js → pearl-chain.component-BAtmfmpA.js} +22 -26
- package/pearl-chain.js +1 -1
- package/pearl-chain.pure.js +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +5 -7
- 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-CtYawDjE.js → seat-reservation-area.component-CVc6uuMG.js} +3 -5
- package/{seat-reservation-graphic.component-Cm_pVxaB.js → seat-reservation-graphic.component-Dzkv9tyR.js} +26 -26
- package/{seat-reservation-navigation-coach.component-sug9IBTH.js → seat-reservation-navigation-coach.component-CGfmiQJq.js} +51 -56
- package/{seat-reservation-navigation-services.component-C9dDYD_M.js → seat-reservation-navigation-services.component-DQviLWvy.js} +28 -33
- package/{seat-reservation-place-control.component-CE7d9M2b.js → seat-reservation-place-control.component-BYJi6aYS.js} +43 -47
- package/{seat-reservation-scoped.component-DVyP2JGE.js → seat-reservation-scoped.component-CdB7HYzl.js} +1 -2
- package/{seat-reservation.component-DajC6fqU.js → seat-reservation.component-DBtJhrR_.js} +115 -107
- package/seat-reservation.js +10 -11
- package/seat-reservation.pure.js +9 -10
- package/timetable-duration/timetable-duration.component.js +1 -1
- package/{timetable-duration.component-BnJA8wSb.js → timetable-duration.component-PmvoOKVw.js} +6 -10
- 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-Cd_7Pu_E.js → timetable-row.component-BnmrhD2d.js} +119 -116
- package/timetable-row.js +1 -1
- package/timetable-row.pure.js +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +0 -4
- package/autocomplete-grid/autocomplete-grid-cell.js +0 -4
- package/autocomplete-grid/autocomplete-grid-optgroup.js +0 -4
- package/autocomplete-grid/autocomplete-grid-option.js +0 -4
- package/autocomplete-grid/autocomplete-grid-row.js +0 -4
- package/autocomplete-grid/autocomplete-grid.js +0 -4
- package/core/datetime.js +0 -2
- package/core/timetable.js +0 -4
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-cell.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid-row.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +0 -10
- package/development/autocomplete-grid/autocomplete-grid.d.ts +0 -2
- package/development/autocomplete-grid/autocomplete-grid.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid.js +0 -10
- package/development/autocomplete-grid-cell.component-BxkWGaX0.js +0 -34
- package/development/core/datetime.d.ts +0 -3
- package/development/core/datetime.d.ts.map +0 -1
- package/development/core/datetime.js +0 -2
- package/development/core/timetable.d.ts +0 -5
- package/development/core/timetable.d.ts.map +0 -1
- package/development/core/timetable.js +0 -4
- package/development/pearl-chain-vertical.component-CpcNFl-x.js +0 -31
- package/development/seat-reservation/common.d.ts +0 -6
- package/development/seat-reservation/common.d.ts.map +0 -1
- package/development/seat-reservation/common.js +0 -12
- package/development/seat-reservation/seat-reservation-area.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-area.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-area.js +0 -10
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts +0 -9
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -306
- package/development/seat-reservation/seat-reservation-graphic.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-graphic.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-coach.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-coach.js +0 -10
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-navigation-services.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-services.js +0 -10
- package/development/seat-reservation/seat-reservation-place-control.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-place-control.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-place-control.js +0 -10
- package/development/seat-reservation/seat-reservation-scoped.d.ts +0 -2
- package/development/seat-reservation/seat-reservation-scoped.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-scoped.js +0 -10
- package/development/seat-reservation/seat-reservation.d.ts +0 -3
- package/development/seat-reservation/seat-reservation.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation.js +0 -11
- package/development/seat-reservation.component-DFJVFmrI.js +0 -510
- package/development/timetable-duration.component-BhFlqYbV.js +0 -100
- package/development/timetable-row.component-Dko8laRT.js +0 -729
- package/seat-reservation/common.js +0 -9
- package/seat-reservation/seat-reservation-area.js +0 -4
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -291
- package/seat-reservation/seat-reservation-graphic.js +0 -4
- package/seat-reservation/seat-reservation-navigation-coach.js +0 -4
- package/seat-reservation/seat-reservation-navigation-services.js +0 -4
- package/seat-reservation/seat-reservation-place-control.js +0 -4
- package/seat-reservation/seat-reservation-scoped.js +0 -4
- package/seat-reservation/seat-reservation.js +0 -5
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n } from "@sbb-esta/lyne-elements/core
|
|
3
|
-
import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
4
|
-
import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
2
|
+
import { SbbElement as n, boxSizingStyles as r, forceType as i } from "@sbb-esta/lyne-elements/core.js";
|
|
5
3
|
import { html as a, nothing as o, unsafeCSS as s } from "lit";
|
|
6
4
|
import { property as c } from "lit/decorators.js";
|
|
7
5
|
import { styleMap as l } from "lit/directives/style-map.js";
|
|
@@ -14,7 +12,7 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
14
12
|
f = [c({
|
|
15
13
|
attribute: "pearl-chain-vertical-item-attributes",
|
|
16
14
|
type: Object
|
|
17
|
-
})], h = [
|
|
15
|
+
})], h = [i(), c({
|
|
18
16
|
attribute: "disable-animation",
|
|
19
17
|
reflect: !0,
|
|
20
18
|
type: Boolean
|
|
@@ -55,7 +53,7 @@ var u = ":host{--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-
|
|
|
55
53
|
this.elementName = "sbb-pearl-chain-vertical-item";
|
|
56
54
|
}
|
|
57
55
|
static {
|
|
58
|
-
this.styles = [
|
|
56
|
+
this.styles = [r, s(u)];
|
|
59
57
|
}
|
|
60
58
|
#e = t(this, p, null);
|
|
61
59
|
get pearlChainVerticalItemAttributes() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical-item.component-BynmUBXa.js";
|
|
2
2
|
import "./pearl-chain-vertical-item.pure.js";
|
|
3
3
|
//#region src/elements-experimental/pearl-chain-vertical-item.ts
|
|
4
4
|
e.define();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical-item.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical-item.component-BynmUBXa.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalItemElement };
|
package/{pearl-chain-vertical.component-Df9CvRxo.js → pearl-chain-vertical.component-Lx47SlJU.js}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SbbElement as e } from "@sbb-esta/lyne-elements/core
|
|
2
|
-
import { boxSizingStyles as t } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
1
|
+
import { SbbElement as e, boxSizingStyles as t } from "@sbb-esta/lyne-elements/core.js";
|
|
3
2
|
import { html as n, unsafeCSS as r } from "lit";
|
|
4
3
|
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?inline
|
|
5
4
|
var i = ":host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}", a = class extends e {
|
package/pearl-chain-vertical.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain-vertical.component-
|
|
1
|
+
import { t as e } from "./pearl-chain-vertical.component-Lx47SlJU.js";
|
|
2
2
|
export { e as SbbPearlChainVerticalElement };
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./toDate-p-Tpkb7t.js";
|
|
2
2
|
import { r as t, t as n } from "./differenceInMinutes-Dr9gRqtu.js";
|
|
3
3
|
import { __esDecorate as r, __runInitializers as i } from "tslib";
|
|
4
|
-
import { SbbElement as a } from "@sbb-esta/lyne-elements/core
|
|
5
|
-
import {
|
|
6
|
-
import { boxSizingStyles as s } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
7
|
-
import { html as c, nothing as l, unsafeCSS as u } from "lit";
|
|
8
|
-
import { defaultDateAdapter as d } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
4
|
+
import { SbbElement as a, boxSizingStyles as o, defaultDateAdapter as s, forceType as c } from "@sbb-esta/lyne-elements/core.js";
|
|
5
|
+
import { html as l, nothing as u, unsafeCSS as d } from "lit";
|
|
9
6
|
import { property as f } from "lit/decorators.js";
|
|
10
|
-
import {
|
|
11
|
-
import { isRideLeg as m } from "./core/timetable.js";
|
|
7
|
+
import { isRideLeg as p, removeTimezoneFromISOTimeString as m } from "./core.js";
|
|
12
8
|
import { styleMap as h } from "lit/directives/style-map.js";
|
|
13
9
|
//#region node_modules/date-fns/isAfter.js
|
|
14
10
|
function g(t, n) {
|
|
@@ -29,7 +25,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
29
25
|
}
|
|
30
26
|
static {
|
|
31
27
|
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
32
|
-
b = [f({ type: Array })], C = [
|
|
28
|
+
b = [f({ type: Array })], C = [c(), f({
|
|
33
29
|
attribute: "disable-animation",
|
|
34
30
|
type: Boolean
|
|
35
31
|
})], E = [f()], r(this, null, b, {
|
|
@@ -81,7 +77,7 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
81
77
|
this.elementName = "sbb-pearl-chain";
|
|
82
78
|
}
|
|
83
79
|
static {
|
|
84
|
-
this.styles = [
|
|
80
|
+
this.styles = [o, d(v)];
|
|
85
81
|
}
|
|
86
82
|
#e;
|
|
87
83
|
get legs() {
|
|
@@ -98,24 +94,24 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
98
94
|
this.#t = e;
|
|
99
95
|
}
|
|
100
96
|
set now(e) {
|
|
101
|
-
this._now =
|
|
97
|
+
this._now = s.getValidDateOrNull(s.deserialize(e));
|
|
102
98
|
}
|
|
103
99
|
get now() {
|
|
104
100
|
return this._now;
|
|
105
101
|
}
|
|
106
102
|
_getAllDuration(e) {
|
|
107
103
|
return e?.reduce((e, t) => {
|
|
108
|
-
let r =
|
|
109
|
-
return r && i ? e + n(
|
|
104
|
+
let r = m(t.arrival?.time), i = m(t.departure?.time);
|
|
105
|
+
return r && i ? e + n(m(t.arrival.time), m(t.departure.time)) : e;
|
|
110
106
|
}, 0);
|
|
111
107
|
}
|
|
112
108
|
_isAllCancelled(e) {
|
|
113
109
|
return e?.every((e) => e?.serviceJourney?.serviceAlteration?.cancelled);
|
|
114
110
|
}
|
|
115
111
|
_getRelativeDuration(e, t) {
|
|
116
|
-
let r =
|
|
112
|
+
let r = m(t.arrival?.time), i = m(t.departure?.time);
|
|
117
113
|
if (r && i) {
|
|
118
|
-
let r = n(
|
|
114
|
+
let r = n(m(t.arrival.time), m(t.departure.time)), i = this._getAllDuration(e);
|
|
119
115
|
return i === 0 ? 100 : r / i * 100;
|
|
120
116
|
}
|
|
121
117
|
return 0;
|
|
@@ -136,50 +132,50 @@ var v = ":host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-
|
|
|
136
132
|
"--sbb-pearl-chain-status-position": `${r}%`,
|
|
137
133
|
...r >= 50 ? { transform: "translateX(-100%)" } : {}
|
|
138
134
|
}), a = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
|
|
139
|
-
return
|
|
135
|
+
return l`<span
|
|
140
136
|
style=${h(i())}
|
|
141
137
|
class="sbb-pearl-chain__position ${a}"
|
|
142
138
|
></span>`;
|
|
143
139
|
}
|
|
144
140
|
render() {
|
|
145
|
-
let e = this.now ?? /* @__PURE__ */ new Date(), t = this.legs?.filter((e) =>
|
|
141
|
+
let e = this.now ?? /* @__PURE__ */ new Date(), t = this.legs?.filter((e) => p(e)), n = t?.length && m(t[0]?.departure?.time), r = n && {
|
|
146
142
|
time: n,
|
|
147
143
|
delay: t[0].departure.delay ?? 0
|
|
148
|
-
}, i = t?.length &&
|
|
144
|
+
}, i = t?.length && m(t[t.length - 1].arrival?.time), a = i && {
|
|
149
145
|
time: i,
|
|
150
146
|
delay: t[t.length - 1]?.arrival.delay ?? 0
|
|
151
147
|
}, o = t && t[0]?.serviceJourney?.stopPoints && t[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", s = (() => {
|
|
152
148
|
let e = t && t[t.length - 1], n = e && e.serviceJourney?.stopPoints;
|
|
153
149
|
return n && n[n.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
|
|
154
|
-
})(),
|
|
155
|
-
return this._isAllCancelled(t) ?
|
|
150
|
+
})(), c = t && t[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", d = t && t[t.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", f = r && a && this._getStatus(e, r, a), g = t && f && !c ? "sbb-pearl-chain__bullet--" + f : "", _ = t && f && !d ? "sbb-pearl-chain__bullet--" + this._getStatus(e, void 0, a) : "";
|
|
151
|
+
return this._isAllCancelled(t) ? l`
|
|
156
152
|
<div class="sbb-pearl-chain">
|
|
157
153
|
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
158
154
|
<div class="sbb-pearl-chain__leg sbb-pearl-chain__leg--disruption"></div>
|
|
159
155
|
<span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
|
|
160
156
|
</div>
|
|
161
|
-
` :
|
|
157
|
+
` : l`
|
|
162
158
|
<div class="sbb-pearl-chain">
|
|
163
159
|
<span
|
|
164
|
-
class="sbb-pearl-chain__bullet ${g} ${o} ${
|
|
160
|
+
class="sbb-pearl-chain__bullet ${g} ${o} ${c}"
|
|
165
161
|
></span>
|
|
166
162
|
${t?.map((n, r) => {
|
|
167
|
-
let { stopPoints: i, serviceAlteration: a } = n?.serviceJourney || {}, o = this._getRelativeDuration(t, n), s =
|
|
163
|
+
let { stopPoints: i, serviceAlteration: a } = n?.serviceJourney || {}, o = this._getRelativeDuration(t, n), s = m(n.departure?.time), c = m(n.arrival?.time), d = i && i[i.length - 1]?.stopStatus === "NOT_SERVICED", f = i && i[i.length - 1]?.stopStatus === "PLANNED", p = i && i[0]?.stopStatus === "NOT_SERVICED", g = r > 0 && t[r - 1].serviceJourney.stopPoints, _ = g && g[g.length - 1]?.stopStatus === "NOT_SERVICED", v = d || p && f ? "sbb-pearl-chain__leg--skipped" : "", y = p || _ ? "sbb-pearl-chain__stop--departure-skipped" : "", b = a?.cancelled || a?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", x = {
|
|
168
164
|
time: s,
|
|
169
165
|
delay: n.departure?.delay ?? 0
|
|
170
166
|
}, S = {
|
|
171
|
-
time:
|
|
167
|
+
time: c,
|
|
172
168
|
delay: n.arrival?.delay ?? 0
|
|
173
169
|
}, C = this._getStatus(e, x, S);
|
|
174
|
-
return
|
|
170
|
+
return l` <div
|
|
175
171
|
class="sbb-pearl-chain__leg ${!b && !v && "sbb-pearl-chain__leg--" + C || ""} ${b} ${v}"
|
|
176
172
|
style=${h({
|
|
177
173
|
"--sbb-pearl-chain-leg-width": `${o}%`,
|
|
178
174
|
...C === "progress" && !b && !v ? { "--sbb-pearl-chain-leg-status": `${this._getProgress(e, x, S)}%` } : {}
|
|
179
175
|
})}
|
|
180
176
|
>
|
|
181
|
-
${r > 0 && r < t.length ?
|
|
182
|
-
${C === "progress" && !b && !v ? this._renderPosition(e, x, S) :
|
|
177
|
+
${r > 0 && r < t.length ? l`<span class="sbb-pearl-chain__stop ${y}"></span>` : u}
|
|
178
|
+
${C === "progress" && !b && !v ? this._renderPosition(e, x, S) : u}
|
|
183
179
|
</div>`;
|
|
184
180
|
})}
|
|
185
181
|
<span
|
package/pearl-chain.js
CHANGED
package/pearl-chain.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./pearl-chain.component-
|
|
1
|
+
import { t as e } from "./pearl-chain.component-BAtmfmpA.js";
|
|
2
2
|
export { e as SbbPearlChainElement };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n } from "@sbb-esta/lyne-elements/core
|
|
3
|
-
import {
|
|
4
|
-
import { isServer as i } from "lit";
|
|
5
|
-
import { isArrowKeyOrPageKeysPressed as a } from "@sbb-esta/lyne-elements/core/a11y.js";
|
|
2
|
+
import { SbbElement as n, forceType as r, isArrowKeyOrPageKeysPressed as i } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { isServer as a } from "lit";
|
|
6
4
|
import { eventOptions as ee, property as o, state as s } from "lit/decorators.js";
|
|
7
5
|
import { mapCoachInfosToCoachSelection as te, mapIconToSvg as c, mapPlaceAndCoachToSeatReservationPlaceSelection as ne, mapPlaceInfosToPlaceSelection as re } from "../common/mapper.js";
|
|
8
6
|
//#region src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts
|
|
@@ -448,7 +446,7 @@ var ie = 3, ae = [
|
|
|
448
446
|
this._handleTabKeyNavigation(e, "navigation", t);
|
|
449
447
|
return;
|
|
450
448
|
}
|
|
451
|
-
|
|
449
|
+
i(e) && this.keyboardSeatmapEventHandling(e);
|
|
452
450
|
}
|
|
453
451
|
_handleTabKeyNavigation(e, t, n) {
|
|
454
452
|
let r = e.key, i = e.shiftKey;
|
|
@@ -462,7 +460,7 @@ var ie = 3, ae = [
|
|
|
462
460
|
this._handleTabKeyNavigation(e, "seatmap");
|
|
463
461
|
return;
|
|
464
462
|
}
|
|
465
|
-
if (this.currSelectedCoachIndex !== -1 &&
|
|
463
|
+
if (this.currSelectedCoachIndex !== -1 && i(e)) switch (e.preventDefault(), r) {
|
|
466
464
|
case this.keyboardNavigationEvents.ArrowLeft:
|
|
467
465
|
{
|
|
468
466
|
let e = this.alignVertical ? this.keyboardNavigationEvents.ArrowDown : r;
|
|
@@ -747,7 +745,7 @@ var ie = 3, ae = [
|
|
|
747
745
|
this.currSelectedPlaceElementId = e ? this.getPlaceElementId(this.currSelectedDeckIndex, this.currSelectedCoachIndex, e.number) : null;
|
|
748
746
|
}
|
|
749
747
|
_determineBaseFontSize() {
|
|
750
|
-
if (!
|
|
748
|
+
if (!a) {
|
|
751
749
|
let e = 1 / parseInt(window.getComputedStyle(document.body).fontSize, 10);
|
|
752
750
|
this.style?.setProperty("--sbb-seat-reservation-one-px-rem", `${e + "rem"}`);
|
|
753
751
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation.component-DBtJhrR_.js";
|
|
2
2
|
export { e as SbbSeatReservationElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-area.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-area.component-CVc6uuMG.js";
|
|
2
2
|
export { e as SbbSeatReservationAreaElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-graphic.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-graphic.component-Dzkv9tyR.js";
|
|
2
2
|
export { e as SbbSeatReservationGraphicElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-navigation-coach.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-navigation-coach.component-CGfmiQJq.js";
|
|
2
2
|
export { e as SbbSeatReservationNavigationCoachElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-navigation-services.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-navigation-services.component-DQviLWvy.js";
|
|
2
2
|
export { e as SbbSeatReservationNavigationServicesElement };
|
package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-place-control.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-place-control.component-BYJi6aYS.js";
|
|
2
2
|
export { e as SbbSeatReservationPlaceControlElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../seat-reservation-scoped.component-
|
|
1
|
+
import { t as e } from "../../seat-reservation-scoped.component-CdB7HYzl.js";
|
|
2
2
|
export { e as SbbSeatReservationScopedElement };
|
package/{seat-reservation-area.component-CtYawDjE.js → seat-reservation-area.component-CVc6uuMG.js}
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n } from "@sbb-esta/lyne-elements/core
|
|
3
|
-
import { forceType as r } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
4
|
-
import { boxSizingStyles as i } from "@sbb-esta/lyne-elements/core/styles.js";
|
|
2
|
+
import { SbbElement as n, boxSizingStyles as r, forceType as i } from "@sbb-esta/lyne-elements/core.js";
|
|
5
3
|
import { html as a, unsafeCSS as o } from "lit";
|
|
6
4
|
import { property as s } from "lit/decorators.js";
|
|
7
5
|
//#region src/elements-experimental/seat-reservation/seat-reservation-area/seat-reservation-area.scss?inline
|
|
@@ -10,7 +8,7 @@ var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
|
|
|
10
8
|
return class extends l {
|
|
11
9
|
static {
|
|
12
10
|
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
13
|
-
u = [
|
|
11
|
+
u = [i(), s({ reflect: !0 })], p = [i(), s({ reflect: !0 })], e(this, null, u, {
|
|
14
12
|
kind: "accessor",
|
|
15
13
|
name: "mounting",
|
|
16
14
|
static: !1,
|
|
@@ -47,7 +45,7 @@ var c = ":host{--sbb-seat-reservation-area-border-radius: var(--sbb-border-width
|
|
|
47
45
|
this.elementName = "sbb-seat-reservation-area";
|
|
48
46
|
}
|
|
49
47
|
static {
|
|
50
|
-
this.styles = [
|
|
48
|
+
this.styles = [r, o(c)];
|
|
51
49
|
}
|
|
52
50
|
#e = t(this, d, "free");
|
|
53
51
|
get mounting() {
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
-
import { SbbElement as n } from "@sbb-esta/lyne-elements/core
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "@sbb-esta/lyne-elements/icon.js";
|
|
7
|
-
import { html as o, isServer as s, unsafeCSS as c } from "lit";
|
|
8
|
-
import { property as l } from "lit/decorators.js";
|
|
9
|
-
import { mapIconToSvg as u } from "./seat-reservation/common/mapper.js";
|
|
2
|
+
import { SbbElement as n, SbbLanguageController as r, boxSizingStyles as i, forceType as a } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { SbbIconElement as o } from "@sbb-esta/lyne-elements/icon.pure.js";
|
|
4
|
+
import { html as s, isServer as c, unsafeCSS as l } from "lit";
|
|
5
|
+
import { property as u } from "lit/decorators.js";
|
|
10
6
|
import { classMap as d } from "lit/directives/class-map.js";
|
|
11
|
-
import {
|
|
7
|
+
import { mapIconToSvg as f } from "./seat-reservation/common/mapper.js";
|
|
8
|
+
import { getI18nSeatReservation as p } from "./seat-reservation/common/translations.js";
|
|
12
9
|
//#region src/elements-experimental/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.scss?inline
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
return class extends
|
|
10
|
+
var m = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reservation-graphic-max-height: auto;--sbb-seat-reservation-graphic-width: 16;--sbb-seat-reservation-graphic-height: 16;--sbb-seat-reservation-graphic-rotation: 0;--sbb-seat-reservation-graphic-inverse-rotation: 0;--sbb-seat-reservation-graphic-padding-percent: 1;--sbb-seat-reservation-graphic-position: initial;--sbb-seat-reservation-graphic-left: 0;--sbb-seat-reservation-graphic-top: 0;--sbb-icon-svg-width: calc( var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );--sbb-icon-svg-height: calc( var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:var(--sbb-seat-reservation-graphic-position);inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host(.auto-width){--sbb-icon-svg-width: auto;max-width:calc(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:auto}:host(.sbb-sr-graphic__dimension--square-dim){--sbb-icon-svg-width: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));--sbb-icon-svg-height: min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));width:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)));height:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent),min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem),var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem)))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:var(--sbb-cursor-pointer)}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-graphite))}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media(forced-colors:active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}", h = (() => {
|
|
11
|
+
let h = n, g, _ = [], v = [], y, b = [], x = [];
|
|
12
|
+
return class extends h {
|
|
16
13
|
constructor() {
|
|
17
|
-
super(...arguments), this.#e = t(this,
|
|
14
|
+
super(...arguments), this.#e = t(this, _, ""), this.#t = (t(this, v), t(this, b, !1)), this._language = (t(this, x), new r(this));
|
|
18
15
|
}
|
|
19
16
|
static {
|
|
20
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
21
|
-
|
|
17
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
18
|
+
g = [a(), u({ attribute: "name" })], y = [a(), u({
|
|
22
19
|
attribute: "stretch",
|
|
23
20
|
type: Boolean
|
|
24
|
-
})], e(this, null,
|
|
21
|
+
})], e(this, null, g, {
|
|
25
22
|
kind: "accessor",
|
|
26
23
|
name: "name",
|
|
27
24
|
static: !1,
|
|
@@ -34,7 +31,7 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
34
31
|
}
|
|
35
32
|
},
|
|
36
33
|
metadata: t
|
|
37
|
-
},
|
|
34
|
+
}, _, v), e(this, null, y, {
|
|
38
35
|
kind: "accessor",
|
|
39
36
|
name: "stretch",
|
|
40
37
|
static: !1,
|
|
@@ -47,7 +44,7 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
47
44
|
}
|
|
48
45
|
},
|
|
49
46
|
metadata: t
|
|
50
|
-
},
|
|
47
|
+
}, b, x), t && Object.defineProperty(this, Symbol.metadata, {
|
|
51
48
|
enumerable: !0,
|
|
52
49
|
configurable: !0,
|
|
53
50
|
writable: !0,
|
|
@@ -58,7 +55,10 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
58
55
|
this.elementName = "sbb-seat-reservation-graphic";
|
|
59
56
|
}
|
|
60
57
|
static {
|
|
61
|
-
this.
|
|
58
|
+
this.elementDependencies = [o];
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.styles = [i, l(m)];
|
|
62
62
|
}
|
|
63
63
|
#e;
|
|
64
64
|
get name() {
|
|
@@ -75,22 +75,22 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
75
75
|
this.#t = e;
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
let e =
|
|
79
|
-
return !e?.svg && !e?.svgName ? null :
|
|
78
|
+
let e = f[this.name];
|
|
79
|
+
return !e?.svg && !e?.svgName ? null : s`<span
|
|
80
80
|
class="${d({
|
|
81
81
|
"sbb-sr-icon": !!e.svgName,
|
|
82
82
|
"sbb-sr-graphic": !!e.svg
|
|
83
83
|
})}"
|
|
84
84
|
>
|
|
85
|
-
${e.svgName ?
|
|
85
|
+
${e.svgName ? s` <sbb-icon
|
|
86
86
|
name="${e.svgName || ""}"
|
|
87
87
|
aria-hidden="false"
|
|
88
|
-
aria-label="${
|
|
89
|
-
></sbb-icon>` :
|
|
88
|
+
aria-label="${p(e.svgName, this._language.current)}"
|
|
89
|
+
></sbb-icon>` : s`${this._getSvgElement(e.svg)}`}
|
|
90
90
|
</span>`;
|
|
91
91
|
}
|
|
92
92
|
_getSvgElement(e) {
|
|
93
|
-
if (!
|
|
93
|
+
if (!c) {
|
|
94
94
|
let t = new DOMParser(), n = e || "<svg></svg>", r = t.parseFromString(n, "image/svg+xml").firstElementChild;
|
|
95
95
|
return this.stretch && r?.nodeName.toLowerCase() === "svg" && r.setAttribute("preserveAspectRatio", "none"), r;
|
|
96
96
|
}
|
|
@@ -99,4 +99,4 @@ var p = ":host{--sbb-seat-reservation-graphic-max-width: auto;--sbb-seat-reserva
|
|
|
99
99
|
};
|
|
100
100
|
})();
|
|
101
101
|
//#endregion
|
|
102
|
-
export {
|
|
102
|
+
export { h as t };
|