@sbb-esta/lyne-elements-experimental 3.5.0 → 3.7.0
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/custom-elements.json +72 -0
- package/development/pearl-chain/pearl-chain.component.js +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +8 -4
- package/development/seat-reservation/common/translations/i18n.js +36 -36
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +13 -0
- 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 +43 -23
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +7 -3
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +11 -14
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-row/timetable-row.component.js +1 -1
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +30 -26
- package/seat-reservation/common/translations/i18n.js +38 -38
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +13 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +59 -45
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +6 -2
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +1 -1
- package/timetable-duration/timetable-duration.component.js +8 -8
- package/timetable-row/timetable-row.component.js +27 -27
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var d = (e, a, t) => (
|
|
4
|
+
var I = (e, a, t) => a.has(e) || A("Cannot " + t);
|
|
5
|
+
var d = (e, a, t) => (I(e, a, "read from private field"), t ? t.call(e) : a.get(e)), m = (e, a, t) => a.has(e) ? A("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, t), v = (e, a, t, r) => (I(e, a, "write to private field"), r ? r.call(e, t) : a.set(e, t), t);
|
|
6
6
|
import { __esDecorate as u, __runInitializers as h } from "tslib";
|
|
7
|
-
import { forceType as
|
|
8
|
-
import { css as
|
|
9
|
-
import { customElement as
|
|
10
|
-
const G = E`*,:before,:after{box-sizing:border-box}:host{--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-color-charcoal);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-red);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem;display:table-row;position:relative;--sbb-pearl-chain-vertical-right-item-width: 100%;--sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);--sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);--sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);--sbb-pearl-chain-vertical-item-spacing-medium: var(--sbb-spacing-fixed-4x);--sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);--sbb-pearl-chain-vertical-item-inline-start: 50%;--sbb-pearl-chain-vertical-item-transform: translateX(-50%)}slot[name=right],.sbb-pearl-chain-vertical-item__column{display:table-cell;position:relative;vertical-align:top}slot[name=right]{width:var(--sbb-pearl-chain-vertical-right-item-width)}.sbb-pearl-chain-vertical-item__column--middle{min-width:var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width)}slot[name=left]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-left-item-block-start);padding-inline-end:var(--sbb-pearl-chain-vertical-left-item-inline-end)}slot[name=right]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-right-item-block-start);padding-inline-start:var(--sbb-pearl-chain-vertical-right-item-inline-start)}.sbb-pearl-chain-vertical-item__middle{vertical-align:top;border-spacing:0}.sbb-pearl-chain-vertical-item__line{position:absolute;bottom:0;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);width:var(--sbb-border-width-2x);inset-block-start:calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2)}.sbb-pearl-chain-vertical-item__line:after{content:"";position:absolute;inset-inline-start:0;inset-block-start:0;height:var(--sbb-pearl-chain-vertical-item-leg-status);width:var(--sbb-pearl-chain-vertical-item-border-width);background-color:var(--sbb-pearl-chain-vertical-item-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line:after{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset;border-color:unset;background-image:linear-gradient(to bottom,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-y;background-size:calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset!important;border-inline-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain-vertical-item__line--thin{width:var(--sbb-pearl-chain-vertical-item-border-width-thin)}.sbb-pearl-chain-vertical-item__line--default{background-color:var(--sbb-pearl-chain-vertical-item-color-default);border-color:var(--sbb-pearl-chain-vertical-item-color-default);color:var(--sbb-pearl-chain-vertical-item-color-default)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--default{--sbb-pearl-chain-vertical-item-color-default: CanvasText}}.sbb-pearl-chain-vertical-item__line--disruption{border-color:var(--sbb-pearl-chain-vertical-item-color-disruption);background-color:var(--sbb-pearl-chain-vertical-item-color-disruption);color:var(--sbb-pearl-chain-vertical-item-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--disruption{--sbb-pearl-chain-vertical-item-color-disruption: Highlight}}.sbb-pearl-chain-vertical-item__line--past{border-color:var(--sbb-pearl-chain-vertical-item-color-past);background-color:var(--sbb-pearl-chain-vertical-item-color-past);color:var(--sbb-pearl-chain-vertical-item-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--past{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--walk{border-color:var(--sbb-pearl-chain-vertical-item-color-walk);background-color:var(--sbb-pearl-chain-vertical-item-color-walk);color:var(--sbb-pearl-chain-vertical-item-color-walk)}.sbb-pearl-chain-vertical-item__bullet{position:relative;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--start-end{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain-vertical-item__bullet--stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant{--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped{border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped{--sbb-pearl-chain-bullet-crossed-width: .706875rem;--sbb-pearl-chain-bullet-crossed-height: .1875rem;min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--position{inset-block-start:var(--sbb-pearl-chain-vertical-item-position);position:absolute;left:50%;transform:translate(-50%);min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}50%{box-shadow:0 0 0 .1875rem var(--sbb-color-red-alpha-20)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}}.sbb-pearl-chain-vertical-item__bullet--position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite}:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position{animation:unset!important}`;
|
|
11
|
-
let q = (() => {
|
|
7
|
+
import { forceType as E } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
8
|
+
import { css as j, LitElement as D, nothing as _, html as p } from "lit";
|
|
9
|
+
import { customElement as G, property as $ } from "lit/decorators.js";
|
|
10
|
+
import { styleMap as g } from "lit/directives/style-map.js";
|
|
11
|
+
const O = j`*,:before,:after{box-sizing:border-box}:host{--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-color-charcoal);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-red);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem;display:table-row;position:relative;--sbb-pearl-chain-vertical-right-item-width: 100%;--sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);--sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);--sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);--sbb-pearl-chain-vertical-item-spacing-medium: var(--sbb-spacing-fixed-4x);--sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);--sbb-pearl-chain-vertical-item-inline-start: 50%;--sbb-pearl-chain-vertical-item-transform: translateX(-50%)}slot[name=right],.sbb-pearl-chain-vertical-item__column{display:table-cell;position:relative;vertical-align:top}slot[name=right]{width:var(--sbb-pearl-chain-vertical-right-item-width)}.sbb-pearl-chain-vertical-item__column--middle{min-width:var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width)}slot[name=left]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-left-item-block-start);padding-inline-end:var(--sbb-pearl-chain-vertical-left-item-inline-end)}slot[name=right]::slotted(*){margin-block-start:var(--sbb-pearl-chain-vertical-right-item-block-start);padding-inline-start:var(--sbb-pearl-chain-vertical-right-item-inline-start)}.sbb-pearl-chain-vertical-item__middle{vertical-align:top;border-spacing:0}.sbb-pearl-chain-vertical-item__line{position:absolute;bottom:0;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);width:var(--sbb-border-width-2x);inset-block-start:calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2)}.sbb-pearl-chain-vertical-item__line:after{content:"";position:absolute;inset-inline-start:0;inset-block-start:0;height:var(--sbb-pearl-chain-vertical-item-leg-status);width:var(--sbb-pearl-chain-vertical-item-border-width);background-color:var(--sbb-pearl-chain-vertical-item-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line:after{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset;border-color:unset;background-image:linear-gradient(to bottom,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-y;background-size:calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--dotted{background-color:unset!important;border-inline-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain-vertical-item__line--thin{width:var(--sbb-pearl-chain-vertical-item-border-width-thin)}.sbb-pearl-chain-vertical-item__line--default{background-color:var(--sbb-pearl-chain-vertical-item-color-default);border-color:var(--sbb-pearl-chain-vertical-item-color-default);color:var(--sbb-pearl-chain-vertical-item-color-default)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--default{--sbb-pearl-chain-vertical-item-color-default: CanvasText}}.sbb-pearl-chain-vertical-item__line--disruption{border-color:var(--sbb-pearl-chain-vertical-item-color-disruption);background-color:var(--sbb-pearl-chain-vertical-item-color-disruption);color:var(--sbb-pearl-chain-vertical-item-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--disruption{--sbb-pearl-chain-vertical-item-color-disruption: Highlight}}.sbb-pearl-chain-vertical-item__line--past{border-color:var(--sbb-pearl-chain-vertical-item-color-past);background-color:var(--sbb-pearl-chain-vertical-item-color-past);color:var(--sbb-pearl-chain-vertical-item-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__line--past{--sbb-pearl-chain-vertical-item-color-past: GrayText}}.sbb-pearl-chain-vertical-item__line--walk{border-color:var(--sbb-pearl-chain-vertical-item-color-walk);background-color:var(--sbb-pearl-chain-vertical-item-color-walk);color:var(--sbb-pearl-chain-vertical-item-color-walk)}.sbb-pearl-chain-vertical-item__bullet{position:relative;inset-inline-start:var(--sbb-pearl-chain-vertical-item-inline-start);transform:var(--sbb-pearl-chain-vertical-item-transform);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--start-end{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain-vertical-item__bullet--stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--disruption{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--irrelevant,.sbb-pearl-chain-vertical-item__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant{--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped{border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped{--sbb-pearl-chain-bullet-crossed-width: .706875rem;--sbb-pearl-chain-bullet-crossed-height: .1875rem;min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped:before{background:Highlight}}.sbb-pearl-chain-vertical-item__bullet--position{inset-block-start:var(--sbb-pearl-chain-vertical-item-position);position:absolute;left:50%;transform:translate(-50%);min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media (forced-colors: active){.sbb-pearl-chain-vertical-item__bullet--position{--sbb-pearl-chain-bullet-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}50%{box-shadow:0 0 0 .1875rem var(--sbb-color-red-alpha-20)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption)}}.sbb-pearl-chain-vertical-item__bullet--position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite}:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position{animation:unset!important}`;
|
|
12
|
+
let F = (() => {
|
|
12
13
|
var c, n, b;
|
|
13
|
-
let e = [
|
|
14
|
-
return b = class extends
|
|
14
|
+
let e = [G("sbb-pearl-chain-vertical-item")], a, t = [], r, f = D, w, k = [], z = [], x, y = [], C = [];
|
|
15
|
+
return b = class extends f {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
h(this,
|
|
18
|
+
m(this, c, h(this, k, null));
|
|
19
|
+
m(this, n, (h(this, z), h(this, y, !1)));
|
|
20
|
+
h(this, C);
|
|
20
21
|
}
|
|
21
22
|
/** The pearlChainVerticalItemAttributes Prop for styling the bullets and line.*/
|
|
22
23
|
get pearlChainVerticalItemAttributes() {
|
|
23
24
|
return d(this, c);
|
|
24
25
|
}
|
|
25
26
|
set pearlChainVerticalItemAttributes(l) {
|
|
26
|
-
|
|
27
|
+
v(this, c, l);
|
|
27
28
|
}
|
|
28
29
|
/** If true, the position won't be animated. */
|
|
29
30
|
get disableAnimation() {
|
|
30
31
|
return d(this, n);
|
|
31
32
|
}
|
|
32
33
|
set disableAnimation(l) {
|
|
33
|
-
|
|
34
|
+
v(this, n, l);
|
|
34
35
|
}
|
|
35
36
|
render() {
|
|
36
|
-
const { bulletType: l, lineType: i, lineColor: o, hideLine: V, minHeight: T, bulletSize:
|
|
37
|
+
const { bulletType: l, lineType: i, lineColor: o, hideLine: V, minHeight: T, bulletSize: H, position: s } = this.pearlChainVerticalItemAttributes || {}, S = s && s > 0 && s <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${l}`;
|
|
37
38
|
return p`
|
|
38
|
-
<div
|
|
39
|
+
<div
|
|
40
|
+
class="sbb-pearl-chain-vertical-item__column"
|
|
41
|
+
style=${g({ height: `${T}px` })}
|
|
42
|
+
>
|
|
39
43
|
<slot name="left"></slot>
|
|
40
44
|
</div>
|
|
41
45
|
<div
|
|
@@ -43,14 +47,14 @@ let q = (() => {
|
|
|
43
47
|
class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
|
|
44
48
|
>
|
|
45
49
|
${V ? _ : p`<div
|
|
46
|
-
style
|
|
50
|
+
style=${g({ "--sbb-pearl-chain-vertical-item-leg-status": `${s}%` })}
|
|
47
51
|
class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${i} sbb-pearl-chain-vertical-item__line--${o}"
|
|
48
52
|
></div>`}
|
|
49
53
|
${l ? p`<div
|
|
50
|
-
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${
|
|
54
|
+
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${H} ${S}"
|
|
51
55
|
></div>` : _}
|
|
52
56
|
${s && s > 0 ? p`<div
|
|
53
|
-
style
|
|
57
|
+
style=${g({ "--sbb-pearl-chain-vertical-item-position": `${s}%` })}
|
|
54
58
|
class="sbb-pearl-chain-vertical-item__bullet--position"
|
|
55
59
|
></div>` : _}
|
|
56
60
|
</div>
|
|
@@ -58,14 +62,14 @@ let q = (() => {
|
|
|
58
62
|
`;
|
|
59
63
|
}
|
|
60
64
|
}, c = new WeakMap(), n = new WeakMap(), r = b, (() => {
|
|
61
|
-
const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
62
|
-
|
|
65
|
+
const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
66
|
+
w = [$({ attribute: "pearl-chain-vertical-item-attributes", type: Object })], x = [E(), $({ attribute: "disable-animation", reflect: !0, type: Boolean })], u(b, null, w, { kind: "accessor", name: "pearlChainVerticalItemAttributes", static: !1, private: !1, access: { has: (i) => "pearlChainVerticalItemAttributes" in i, get: (i) => i.pearlChainVerticalItemAttributes, set: (i, o) => {
|
|
63
67
|
i.pearlChainVerticalItemAttributes = o;
|
|
64
|
-
} }, metadata: l },
|
|
68
|
+
} }, metadata: l }, k, z), u(b, null, x, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (i) => "disableAnimation" in i, get: (i) => i.disableAnimation, set: (i, o) => {
|
|
65
69
|
i.disableAnimation = o;
|
|
66
|
-
} }, metadata: l },
|
|
67
|
-
})(), b.styles =
|
|
70
|
+
} }, metadata: l }, y, C), u(null, a = { value: r }, e, { kind: "class", name: r.name, metadata: l }, null, t), r = a.value, l && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
|
|
71
|
+
})(), b.styles = O, h(r, t), r;
|
|
68
72
|
})();
|
|
69
73
|
export {
|
|
70
|
-
|
|
74
|
+
F as SbbPearlChainVerticalItemElement
|
|
71
75
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
// BASICS
|
|
3
3
|
// COACH DECK LABEL DESCRIPTIONS
|
|
4
4
|
SINGLE_DECK: {
|
|
@@ -52,10 +52,10 @@ const s = {
|
|
|
52
52
|
},
|
|
53
53
|
// NAVIGATION
|
|
54
54
|
NAVIGATE_TO_COACH: {
|
|
55
|
-
de: "Navigiere zu
|
|
56
|
-
en: "Navigate to
|
|
57
|
-
fr: "Aller
|
|
58
|
-
it: "Naviga verso
|
|
55
|
+
de: "Navigiere zu Wagen _param0_",
|
|
56
|
+
en: "Navigate to coach _param0_",
|
|
57
|
+
fr: "Aller à la voiture _param0_",
|
|
58
|
+
it: "Naviga verso la carrozza _param0_"
|
|
59
59
|
},
|
|
60
60
|
NAVIGATE_TO_COACH_SERVICE_CLASS_SUB: {
|
|
61
61
|
de: " mit _param0_ Abteil",
|
|
@@ -415,52 +415,52 @@ const s = {
|
|
|
415
415
|
},
|
|
416
416
|
//PLACE CONTROL ARIA LABEL
|
|
417
417
|
PLACE_CONTROL_SEAT_FREE: {
|
|
418
|
-
de: "Sitzplatz
|
|
419
|
-
en: "Seat
|
|
420
|
-
fr: "
|
|
421
|
-
it: "
|
|
418
|
+
de: "Sitzplatz _param0_ ist frei",
|
|
419
|
+
en: "Seat _param0_ is available",
|
|
420
|
+
fr: "Place _param0_ est libre",
|
|
421
|
+
it: "Posto a sedere _param0_ è libero"
|
|
422
422
|
},
|
|
423
423
|
PLACE_CONTROL_SEAT_SELECTED: {
|
|
424
|
-
de: "Sitzplatz
|
|
425
|
-
en: "Seat
|
|
426
|
-
fr: "
|
|
427
|
-
it: "
|
|
424
|
+
de: "Sitzplatz _param0_ ist ausgewählt",
|
|
425
|
+
en: "Seat _param0_ has been selected",
|
|
426
|
+
fr: "Place _param0_ est sélectionnée",
|
|
427
|
+
it: "Posto a sedere _param0_ è selezionato"
|
|
428
428
|
},
|
|
429
429
|
PLACE_CONTROL_BICYCLE_FREE: {
|
|
430
|
-
de: "
|
|
431
|
-
en: "
|
|
432
|
-
fr: "
|
|
433
|
-
it: "
|
|
430
|
+
de: "Veloplatz _param0_ ist frei",
|
|
431
|
+
en: "Bike space _param0_ is available",
|
|
432
|
+
fr: "Place pour vélo _param0_ est libre",
|
|
433
|
+
it: "Posto bici _param0_ è libero"
|
|
434
434
|
},
|
|
435
435
|
PLACE_CONTROL_BICYCLE_SELECTED: {
|
|
436
|
-
de: "
|
|
437
|
-
en: "
|
|
438
|
-
fr: "
|
|
439
|
-
it: "
|
|
436
|
+
de: "Veloplatz _param0_ ist ausgewählt",
|
|
437
|
+
en: "Bike space _param0_ has been selected",
|
|
438
|
+
fr: "Place pour vélo _param0_ est sélectionnée",
|
|
439
|
+
it: "Posto bici _param0_ è selezionato"
|
|
440
440
|
},
|
|
441
441
|
PLACE_CONTROL_SEAT_RESTRICTED: {
|
|
442
|
-
de: "Sitzplatz nicht
|
|
443
|
-
en: "Seat
|
|
444
|
-
fr: "Place
|
|
445
|
-
it: "Posto a sedere non
|
|
442
|
+
de: "Sitzplatz ist nicht buchbar",
|
|
443
|
+
en: "Seat cannot be reserved",
|
|
444
|
+
fr: "Place ne peut pas être réservée",
|
|
445
|
+
it: "Posto a sedere non è prenotabile"
|
|
446
446
|
},
|
|
447
447
|
PLACE_CONTROL_BICYCLE_RESTRICTED: {
|
|
448
|
-
de: "
|
|
449
|
-
en: "
|
|
448
|
+
de: "Veloplatz ist nicht buchbar",
|
|
449
|
+
en: "Bike space cannot be reserved",
|
|
450
450
|
fr: "Place pour vélo indisponible",
|
|
451
|
-
it: "Posto
|
|
451
|
+
it: "Posto bici non è prenotabile"
|
|
452
452
|
},
|
|
453
453
|
PLACE_CONTROL_SEAT_ALLOCATED: {
|
|
454
|
-
de: "Sitzplatz _param0_
|
|
455
|
-
en: "Seat _param0_
|
|
456
|
-
fr: "Place _param0_
|
|
457
|
-
it: "Posto a sedere _param0_
|
|
454
|
+
de: "Sitzplatz _param0_ ist besetzt",
|
|
455
|
+
en: "Seat _param0_ is occupied",
|
|
456
|
+
fr: "Place _param0_ est occupée",
|
|
457
|
+
it: "Posto a sedere _param0_ è occupato"
|
|
458
458
|
},
|
|
459
459
|
PLACE_CONTROL_BICYCLE_ALLOCATED: {
|
|
460
|
-
de: "
|
|
461
|
-
en: "
|
|
462
|
-
fr: "Place pour vélo _param0_
|
|
463
|
-
it: "Posto
|
|
460
|
+
de: "Veloplatz _param0_ ist besetzt",
|
|
461
|
+
en: "Bike space _param0_ is occupied",
|
|
462
|
+
fr: "Place pour vélo _param0_ est occupée",
|
|
463
|
+
it: "Posto bici _param0_ è occupato"
|
|
464
464
|
},
|
|
465
465
|
PLACE_PROPERTY: {
|
|
466
466
|
de: "Platzeigenschaften",
|
|
@@ -482,8 +482,8 @@ const s = {
|
|
|
482
482
|
it: "Test con parametri: _param0_ e _param1_"
|
|
483
483
|
}
|
|
484
484
|
}, l = (i, r, e) => {
|
|
485
|
-
const a =
|
|
486
|
-
return e ? e.reduce((t, n,
|
|
485
|
+
const a = o[i]?.[r] || "";
|
|
486
|
+
return e ? e.reduce((t, n, s) => t.replace(`_param${s}_`, n), a) : a;
|
|
487
487
|
};
|
|
488
488
|
export {
|
|
489
489
|
l as getI18nSeatReservation
|
|
@@ -67,6 +67,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
67
67
|
readonly Tab: "Tab";
|
|
68
68
|
readonly Enter: "Enter";
|
|
69
69
|
};
|
|
70
|
+
private _scrollTimeout;
|
|
70
71
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
71
72
|
protected navigateByDirectionBtn(btnDirection: string): void;
|
|
72
73
|
/**
|
|
@@ -75,6 +76,13 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
75
76
|
*/
|
|
76
77
|
protected initPrepairSeatReservationData(): void;
|
|
77
78
|
protected initNavigationSelectionByScrollEvent(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Scroll event handler managed the end of scrolling inside the coach scroll area.
|
|
81
|
+
* Timeout event handling to check if the scrolling has been completed.
|
|
82
|
+
* It is required because the Safari browser does not handle scrollend event
|
|
83
|
+
* and we therefore imitate this event -> scrollend.
|
|
84
|
+
*/
|
|
85
|
+
protected coachAreaScrollend(): void;
|
|
78
86
|
/**
|
|
79
87
|
* If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,
|
|
80
88
|
* the first place in the coach must be automatically preselected to control the place navigation via keyboard
|
|
@@ -104,6 +112,11 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
104
112
|
* @returns An Object with count of free seats and free bicycle places
|
|
105
113
|
*/
|
|
106
114
|
protected getAvailableFreePlacesNumFromCoach(coachIndex: number): CoachNumberOfFreePlaces;
|
|
115
|
+
/**
|
|
116
|
+
* At the end of a scroll Event from the coach scrollable area,
|
|
117
|
+
* the reached coach is marked as selected
|
|
118
|
+
*/
|
|
119
|
+
private _handleCoachAreaScrollEvent;
|
|
107
120
|
/**
|
|
108
121
|
* Performs an automatic main navigation scroll to the specified selectedNavCoachIndex.
|
|
109
122
|
* Calculates the central scroll offset of the nav coach to be selected.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAY,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQhE,OAAO,KAAK,EAEV,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,cAAc,EACd,eAAe,EAEf,6BAA6B,EAE9B,MAAM,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,CAAC,uBAAuB,EAAE,MAAM,CAAK;IAC9C,SAAS,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,CAAM;IAC1E,SAAS,CAAC,eAAe,EAAE,WAAW,CAAS;IAC/C,SAAS,CAAC,cAAc,EAAE,WAAW,CAAS;IAC9C,SAAS,CAAC,oBAAoB,EAAE,WAAW,CAAS;IACpD,SAAS,CAAC,eAAe,EAAE,WAAW,CAAS;IAC/C,SAAS,CAAC,iBAAiB,EAAE,KAAK,GAAG,IAAI,CAAQ;IACjD,SAAS,CAAC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC3D,SAAS,CAAC,sBAAsB,EAAE,MAAM,CAAM;IAC9C,SAAS,CAAC,qBAAqB,EAAE,MAAM,CAAK;IAC5C,SAAS,CAAC,8BAA8B,EAAE,OAAO,CAAS;IAC1D,SAAS,CAAC,6BAA6B,EAAE,6BAA6B,CAGpE;IACF,SAAS,CAAC,wCAAwC,UAAS;IAC3D,SAAS,CAAC,oBAAoB,UAAS;IACvC,SAAS,CAAC,eAAe,UAAS;IAClC,SAAS,CAAC,oBAAoB,UAAS;IACvC,SAAS,CAAC,gBAAgB,UAAS;IACnC,SAAS,CAAC,wBAAwB;;;;;;;MAOvB;
|
|
1
|
+
{"version":3,"file":"seat-reservation-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAY,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQhE,OAAO,KAAK,EAEV,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,cAAc,EACd,eAAe,EAEf,6BAA6B,EAE9B,MAAM,cAAc,CAAC;AAGtB,aAAK,eAAe;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ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Ac,EAAE,cAAc,GAAG,IAAI;IAgBjF,SAAS,CAAC,0BAA0B,IAAI,IAAI;IAmB5C;;;OAGG;IACH,OAAO,CAAC,kCAAkC;IAwB1C;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAwBhC,OAAO,CAAC,iCAAiC;IAiBzC,OAAO,CAAC,gCAAgC;IAUxC,OAAO,CAAC,8BAA8B;IActC;;;SAGK;IACL,OAAO,CAAC,sBAAsB;IAS9B;;SAEK;IACL,OAAO,CAAC,uBAAuB;IAyB/B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;CAK7B"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ve = (h) => {
|
|
2
2
|
throw TypeError(h);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var g = (h, d, u) => (
|
|
4
|
+
var fe = (h, d, u) => d.has(h) || ve("Cannot " + u);
|
|
5
|
+
var g = (h, d, u) => (fe(h, d, "read from private field"), u ? u.call(h) : d.get(h)), v = (h, d, u) => d.has(h) ? ve("Cannot add the same private member more than once") : d instanceof WeakSet ? d.add(h) : d.set(h, u), o = (h, d, u, w) => (fe(h, d, "write to private field"), w ? w.call(h, u) : d.set(h, u), u);
|
|
6
6
|
import { __runInitializers as r, __esDecorate as f } from "tslib";
|
|
7
|
-
import { isArrowKeyOrPageKeysPressed as
|
|
7
|
+
import { isArrowKeyOrPageKeysPressed as Se } from "@sbb-esta/lyne-elements/core/a11y.js";
|
|
8
8
|
import { forceType as C } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { property as S, state as
|
|
11
|
-
import { mapPlaceInfosToPlaceSelection as
|
|
9
|
+
import { LitElement as Ce, isServer as xe } from "lit";
|
|
10
|
+
import { property as S, state as T, eventOptions as Ie } from "lit/decorators.js";
|
|
11
|
+
import { mapPlaceInfosToPlaceSelection as pe, mapPlaceAndCoachToSeatReservationPlaceSelection as me, mapCoachInfosToCoachSelection as be } from "../common/mapper.js";
|
|
12
12
|
var x;
|
|
13
13
|
(function(h) {
|
|
14
14
|
h.right = "right", h.left = "left";
|
|
15
15
|
})(x || (x = {}));
|
|
16
|
-
let
|
|
17
|
-
var I, p, b,
|
|
18
|
-
let h =
|
|
16
|
+
let we = (() => {
|
|
17
|
+
var I, p, m, b, _, y, P, A, R, k, E, N, n;
|
|
18
|
+
let h = Ce, d = [], u, w = [], B = [], D, z = [], F = [], G, V = [], O = [], L, W = [], X = [], H, K = [], U = [], q, M = [], $ = [], j, J = [], Q = [], Y, Z = [], ee = [], te, ie = [], se = [], ae, ce = [], oe = [], re, le = [], he = [], ne, de = [], ue = [], ge;
|
|
19
19
|
return n = class extends h {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
v(this, I);
|
|
23
23
|
v(this, p);
|
|
24
|
-
v(this, b);
|
|
25
24
|
v(this, m);
|
|
26
|
-
v(this,
|
|
25
|
+
v(this, b);
|
|
27
26
|
v(this, _);
|
|
27
|
+
v(this, y);
|
|
28
28
|
v(this, P);
|
|
29
29
|
v(this, A);
|
|
30
30
|
v(this, R);
|
|
31
31
|
v(this, k);
|
|
32
32
|
v(this, E);
|
|
33
33
|
v(this, N);
|
|
34
|
-
o(this, I, r(this,
|
|
34
|
+
o(this, I, (r(this, d), r(this, w, null))), o(this, p, (r(this, B), r(this, z, !0))), o(this, m, (r(this, F), r(this, V, !1))), o(this, b, (r(this, O), r(this, W, 16))), o(this, _, (r(this, X), r(this, K, null))), o(this, y, (r(this, U), r(this, M, -1))), o(this, P, (r(this, $), r(this, J, -1))), o(this, A, (r(this, Q), r(this, Z, !1))), o(this, R, (r(this, ee), r(this, ie, -1))), o(this, k, (r(this, se), r(this, ce, -1))), o(this, E, (r(this, oe), r(this, le, -1))), o(this, N, (r(this, he), r(this, de, -1))), this.coachBorderPadding = (r(this, ue), 6), this.gapBetweenCoaches = 4, this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize, this.gapBetweenCoachDecks = 48, this.coachNavButtonDim = 0, this.currScrollDirection = x.right, this.maxCalcCoachsWidth = 0, this.scrollCoachsAreaWidth = 0, this.scrollNavigationAreaDim = 0, this.triggerCoachPositionsCollection = [], this.firstTabElement = null, this.lastTabElement = null, this.navigationScrollArea = null, this.coachScrollArea = null, this.currSelectedPlace = null, this.currSelectedPlaceElementId = null, this.currSelectedCoachIndex = -1, this.currSelectedDeckIndex = 0, this.preventCoachScrollByPlaceClick = !1, this.selectedSeatReservationPlaces = {
|
|
35
35
|
seats: [],
|
|
36
36
|
bicycles: []
|
|
37
37
|
}, this.seatReservationWithoutNavigationHasFocus = !1, this.isCoachGridFocusable = !1, this.isAutoScrolling = !1, this.isKeyboardNavigation = !1, this.hasMultipleDecks = !1, this.keyboardNavigationEvents = {
|
|
@@ -59,31 +59,31 @@ let ke = (() => {
|
|
|
59
59
|
}
|
|
60
60
|
/** The seat reservation area is aligned vertically */
|
|
61
61
|
get alignVertical() {
|
|
62
|
-
return g(this,
|
|
62
|
+
return g(this, m);
|
|
63
63
|
}
|
|
64
64
|
set alignVertical(e) {
|
|
65
|
-
o(this,
|
|
65
|
+
o(this, m, e);
|
|
66
66
|
}
|
|
67
67
|
/** The seat reservation area's base grid size */
|
|
68
68
|
get baseGridSize() {
|
|
69
|
-
return g(this,
|
|
69
|
+
return g(this, b);
|
|
70
70
|
}
|
|
71
71
|
set baseGridSize(e) {
|
|
72
|
-
o(this,
|
|
72
|
+
o(this, b, e);
|
|
73
73
|
}
|
|
74
74
|
/** The seat reservation area's width */
|
|
75
75
|
get height() {
|
|
76
|
-
return g(this,
|
|
76
|
+
return g(this, _);
|
|
77
77
|
}
|
|
78
78
|
set height(e) {
|
|
79
|
-
o(this,
|
|
79
|
+
o(this, _, e);
|
|
80
80
|
}
|
|
81
81
|
/** Maximal number of possible clickable seats */
|
|
82
82
|
get maxSeatReservations() {
|
|
83
|
-
return g(this,
|
|
83
|
+
return g(this, y);
|
|
84
84
|
}
|
|
85
85
|
set maxSeatReservations(e) {
|
|
86
|
-
o(this,
|
|
86
|
+
o(this, y, e);
|
|
87
87
|
}
|
|
88
88
|
/** Maximal number of possible clickable bicycle places */
|
|
89
89
|
get maxBicycleReservations() {
|
|
@@ -168,12 +168,18 @@ let ke = (() => {
|
|
|
168
168
|
end: t,
|
|
169
169
|
width: c
|
|
170
170
|
};
|
|
171
|
-
}), this.maxCalcCoachsWidth = t
|
|
172
|
-
const i = this.isAutoScrolling ? this.currSelectedCoachIndex : this._getCoachIndexByScrollTriggerPosition();
|
|
173
|
-
this.currSelectedCoachIndex === -1 && (this.currSelectedCoachIndex = i), this._isScrollableToSelectedCoach() ? this.currSelectedCoachIndex = i : this.currSelectedCoachIndex = i < this.currSelectedCoachIndex ? this.currSelectedCoachIndex : i, this.isAutoScrolling || this._scrollToSelectedNavigationButton(i), this.preventCoachScrollByPlaceClick = !1, this.updateCurrentSelectedCoach(), this.hasNavigation || (this.preselectPlaceInCoach(), this.isAutoScrolling = !1);
|
|
174
|
-
});
|
|
171
|
+
}), this.maxCalcCoachsWidth = t;
|
|
175
172
|
}
|
|
176
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Scroll event handler managed the end of scrolling inside the coach scroll area.
|
|
176
|
+
* Timeout event handling to check if the scrolling has been completed.
|
|
177
|
+
* It is required because the Safari browser does not handle scrollend event
|
|
178
|
+
* and we therefore imitate this event -> scrollend.
|
|
179
|
+
*/
|
|
180
|
+
coachAreaScrollend() {
|
|
181
|
+
this._scrollTimeout && clearTimeout(this._scrollTimeout), this._scrollTimeout = setTimeout(() => this._handleCoachAreaScrollEvent(), 150);
|
|
182
|
+
}
|
|
177
183
|
/**
|
|
178
184
|
* If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,
|
|
179
185
|
* the first place in the coach must be automatically preselected to control the place navigation via keyboard
|
|
@@ -199,7 +205,7 @@ let ke = (() => {
|
|
|
199
205
|
return;
|
|
200
206
|
}
|
|
201
207
|
}
|
|
202
|
-
if (this.currSelectedCoachIndex !== -1 &&
|
|
208
|
+
if (this.currSelectedCoachIndex !== -1 && Se(e))
|
|
203
209
|
switch (e.preventDefault(), t) {
|
|
204
210
|
case this.keyboardNavigationEvents.ArrowLeft:
|
|
205
211
|
{
|
|
@@ -284,6 +290,14 @@ let ke = (() => {
|
|
|
284
290
|
const t = { seats: 0, bicycles: 0 }, i = this.seatReservations[this.currSelectedDeckIndex].coachItems[e].places?.reduce((s, c) => (c.state !== "FREE" || (c.type === "SEAT" ? s.seats++ : s.bicycles++), s), t);
|
|
285
291
|
return i || t;
|
|
286
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* At the end of a scroll Event from the coach scrollable area,
|
|
295
|
+
* the reached coach is marked as selected
|
|
296
|
+
*/
|
|
297
|
+
_handleCoachAreaScrollEvent() {
|
|
298
|
+
const e = this.isAutoScrolling ? this.currSelectedCoachIndex : this._getCoachIndexByScrollTriggerPosition();
|
|
299
|
+
this.currSelectedCoachIndex === -1 && (this.currSelectedCoachIndex = e), this._isScrollableToSelectedCoach() ? this.currSelectedCoachIndex = e : this.currSelectedCoachIndex = e < this.currSelectedCoachIndex ? this.currSelectedCoachIndex : e, this.isAutoScrolling || this._scrollToSelectedNavigationButton(e), this.preventCoachScrollByPlaceClick = !1, this.updateCurrentSelectedCoach(), this.hasNavigation || (this.preselectPlaceInCoach(), this.isAutoScrolling = !1);
|
|
300
|
+
}
|
|
287
301
|
/**
|
|
288
302
|
* Performs an automatic main navigation scroll to the specified selectedNavCoachIndex.
|
|
289
303
|
* Calculates the central scroll offset of the nav coach to be selected.
|
|
@@ -457,7 +471,7 @@ let ke = (() => {
|
|
|
457
471
|
_initSeatReservationPlaceSelection() {
|
|
458
472
|
this.seatReservations?.forEach((e) => e.coachItems.map((t, i) => {
|
|
459
473
|
t.places?.filter((s) => s.state === "SELECTED")?.forEach((s) => {
|
|
460
|
-
const c =
|
|
474
|
+
const c = pe(s, e.deckCoachIndex, i), l = this._getSeatReservationPlaceSelection(c);
|
|
461
475
|
l && (l.placeType === "SEAT" ? this.selectedSeatReservationPlaces.seats.push(l) : this.selectedSeatReservationPlaces.bicycles.push(l));
|
|
462
476
|
});
|
|
463
477
|
}));
|
|
@@ -477,13 +491,13 @@ let ke = (() => {
|
|
|
477
491
|
}
|
|
478
492
|
_getSeatReservationPlaceSelection(e) {
|
|
479
493
|
const t = this.seatReservations[this.currSelectedDeckIndex].coachItems[e.coachIndex], i = t.places?.find((s) => s.number === e.number);
|
|
480
|
-
return i ?
|
|
494
|
+
return i ? me(i, t, e.deckIndex, e.coachIndex) : null;
|
|
481
495
|
}
|
|
482
496
|
_getSeatReservationSelectedCoach(e) {
|
|
483
497
|
if (!this.seatReservations[this.currSelectedDeckIndex].coachItems[e])
|
|
484
498
|
return null;
|
|
485
499
|
const t = this.seatReservations[this.currSelectedDeckIndex].coachItems[e], i = this.getAvailableFreePlacesNumFromCoach(e);
|
|
486
|
-
return
|
|
500
|
+
return be(e, t, i);
|
|
487
501
|
}
|
|
488
502
|
_setCurrSelectedPlaceElementId(e) {
|
|
489
503
|
e ? this.currSelectedPlaceElementId = "seat-reservation__place-button-" + this.currSelectedDeckIndex + "-" + this.currSelectedCoachIndex + "-" + e.number : this.currSelectedPlaceElementId = null;
|
|
@@ -493,7 +507,7 @@ let ke = (() => {
|
|
|
493
507
|
* to be determined in order to correctly calculate css values with rem
|
|
494
508
|
* */
|
|
495
509
|
_determineBaseFontSize() {
|
|
496
|
-
if (!
|
|
510
|
+
if (!xe) {
|
|
497
511
|
const t = 1 / parseInt(window.getComputedStyle(document.body).fontSize, 10);
|
|
498
512
|
this.style?.setProperty("--sbb-seat-reservation-one-px-rem", `${t + "rem"}`);
|
|
499
513
|
}
|
|
@@ -523,38 +537,38 @@ let ke = (() => {
|
|
|
523
537
|
_getPlaceHtmlElement() {
|
|
524
538
|
return this.currSelectedPlaceElementId && this.shadowRoot?.getElementById(this.currSelectedPlaceElementId) || null;
|
|
525
539
|
}
|
|
526
|
-
}, I = new WeakMap(), p = new WeakMap(),
|
|
540
|
+
}, I = new WeakMap(), p = new WeakMap(), m = new WeakMap(), b = new WeakMap(), _ = new WeakMap(), y = new WeakMap(), P = new WeakMap(), A = new WeakMap(), R = new WeakMap(), k = new WeakMap(), E = new WeakMap(), N = new WeakMap(), (() => {
|
|
527
541
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
528
|
-
|
|
542
|
+
u = [S({ attribute: "seat-reservations", type: Array })], D = [C(), S({ attribute: "has-navigation", type: Boolean })], G = [C(), S({ attribute: "align-vertical", type: Boolean, reflect: !0, useDefault: !0 })], L = [C(), S({ attribute: "base-grid-size", type: Number })], H = [C(), S({ attribute: "height", type: Number })], q = [C(), S({ attribute: "max-seat-reservations", type: Number })], j = [C(), S({ attribute: "max-bicycle-reservations", type: Number })], Y = [C(), S({ attribute: "prevent-place-click", type: Boolean })], te = [C(), S({ attribute: "preselect-coach-index", type: Number })], ae = [T()], re = [T()], ne = [T()], ge = [Ie({ passive: !0 })], f(n, null, u, { kind: "accessor", name: "seatReservations", static: !1, private: !1, access: { has: (t) => "seatReservations" in t, get: (t) => t.seatReservations, set: (t, i) => {
|
|
529
543
|
t.seatReservations = i;
|
|
530
|
-
} }, metadata: e },
|
|
544
|
+
} }, metadata: e }, w, B), f(n, null, D, { kind: "accessor", name: "hasNavigation", static: !1, private: !1, access: { has: (t) => "hasNavigation" in t, get: (t) => t.hasNavigation, set: (t, i) => {
|
|
531
545
|
t.hasNavigation = i;
|
|
532
|
-
} }, metadata: e },
|
|
546
|
+
} }, metadata: e }, z, F), f(n, null, G, { kind: "accessor", name: "alignVertical", static: !1, private: !1, access: { has: (t) => "alignVertical" in t, get: (t) => t.alignVertical, set: (t, i) => {
|
|
533
547
|
t.alignVertical = i;
|
|
534
|
-
} }, metadata: e },
|
|
548
|
+
} }, metadata: e }, V, O), f(n, null, L, { kind: "accessor", name: "baseGridSize", static: !1, private: !1, access: { has: (t) => "baseGridSize" in t, get: (t) => t.baseGridSize, set: (t, i) => {
|
|
535
549
|
t.baseGridSize = i;
|
|
536
|
-
} }, metadata: e },
|
|
550
|
+
} }, metadata: e }, W, X), f(n, null, H, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (t) => "height" in t, get: (t) => t.height, set: (t, i) => {
|
|
537
551
|
t.height = i;
|
|
538
|
-
} }, metadata: e },
|
|
552
|
+
} }, metadata: e }, K, U), f(n, null, q, { kind: "accessor", name: "maxSeatReservations", static: !1, private: !1, access: { has: (t) => "maxSeatReservations" in t, get: (t) => t.maxSeatReservations, set: (t, i) => {
|
|
539
553
|
t.maxSeatReservations = i;
|
|
540
|
-
} }, metadata: e },
|
|
554
|
+
} }, metadata: e }, M, $), f(n, null, j, { kind: "accessor", name: "maxBicycleReservations", static: !1, private: !1, access: { has: (t) => "maxBicycleReservations" in t, get: (t) => t.maxBicycleReservations, set: (t, i) => {
|
|
541
555
|
t.maxBicycleReservations = i;
|
|
542
|
-
} }, metadata: e },
|
|
556
|
+
} }, metadata: e }, J, Q), f(n, null, Y, { kind: "accessor", name: "preventPlaceClick", static: !1, private: !1, access: { has: (t) => "preventPlaceClick" in t, get: (t) => t.preventPlaceClick, set: (t, i) => {
|
|
543
557
|
t.preventPlaceClick = i;
|
|
544
|
-
} }, metadata: e },
|
|
558
|
+
} }, metadata: e }, Z, ee), f(n, null, te, { kind: "accessor", name: "preselectCoachIndex", static: !1, private: !1, access: { has: (t) => "preselectCoachIndex" in t, get: (t) => t.preselectCoachIndex, set: (t, i) => {
|
|
545
559
|
t.preselectCoachIndex = i;
|
|
546
|
-
} }, metadata: e },
|
|
560
|
+
} }, metadata: e }, ie, se), f(n, null, ae, { kind: "accessor", name: "selectedCoachIndex", static: !1, private: !1, access: { has: (t) => "selectedCoachIndex" in t, get: (t) => t.selectedCoachIndex, set: (t, i) => {
|
|
547
561
|
t.selectedCoachIndex = i;
|
|
548
|
-
} }, metadata: e },
|
|
562
|
+
} }, metadata: e }, ce, oe), f(n, null, re, { kind: "accessor", name: "focusedCoachIndex", static: !1, private: !1, access: { has: (t) => "focusedCoachIndex" in t, get: (t) => t.focusedCoachIndex, set: (t, i) => {
|
|
549
563
|
t.focusedCoachIndex = i;
|
|
550
|
-
} }, metadata: e },
|
|
564
|
+
} }, metadata: e }, le, he), f(n, null, ne, { kind: "accessor", name: "hoveredScrollCoachIndex", static: !1, private: !1, access: { has: (t) => "hoveredScrollCoachIndex" in t, get: (t) => t.hoveredScrollCoachIndex, set: (t, i) => {
|
|
551
565
|
t.hoveredScrollCoachIndex = i;
|
|
552
|
-
} }, metadata: e },
|
|
566
|
+
} }, metadata: e }, de, ue), f(n, null, ge, { kind: "method", name: "coachAreaScrollend", static: !1, private: !1, access: { has: (t) => "coachAreaScrollend" in t, get: (t) => t.coachAreaScrollend }, metadata: e }, null, d), e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
553
567
|
})(), n.events = {
|
|
554
568
|
selectedplaces: "selectedplaces",
|
|
555
569
|
selectedcoach: "selectedcoach"
|
|
556
570
|
}, n;
|
|
557
571
|
})();
|
|
558
572
|
export {
|
|
559
|
-
|
|
573
|
+
we as SeatReservationBaseElement
|
|
560
574
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAe1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+CAA+C,CAAC;AACvD,OAAO,6BAA6B,CAAC;AACrC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AACvC,OAAO,4CAA4C,CAAC;AAEpD;;;GAGG;AACH,qBAEM,yBAA0B,SAAQ,0BAA0B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,oBAAoB,CAAC,CAAiB;IAE9C,OAAO,CAAC,gBAAgB,CAQtB;IAGF,OAAO,CAAC,2BAA2B,CAAkB;cAElC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAgBzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAc3D,MAAM,IAAI,cAAc,GAAG,IAAI;IAKlD,OAAO,CAAC,uCAAuC;
|
|
1
|
+
{"version":3,"file":"seat-reservation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAe1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+CAA+C,CAAC;AACvD,OAAO,6BAA6B,CAAC;AACrC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AACvC,OAAO,4CAA4C,CAAC;AAEpD;;;GAGG;AACH,qBAEM,yBAA0B,SAAQ,0BAA0B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,oBAAoB,CAAC,CAAiB;IAE9C,OAAO,CAAC,gBAAgB,CAQtB;IAGF,OAAO,CAAC,2BAA2B,CAAkB;cAElC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAgBzD,YAAY,CAA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