@sbb-esta/lyne-elements-experimental 5.0.2 → 5.2.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/autocomplete-grid.js +1 -10
- package/autocomplete-grid.pure.js +12 -7
- package/core.js +31 -5
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +4 -5
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +1 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts +2 -3
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -2
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +1 -2
- package/development/autocomplete-grid.d.ts +0 -1
- package/development/autocomplete-grid.js +5 -10
- package/development/autocomplete-grid.pure.d.ts +0 -1
- package/development/autocomplete-grid.pure.js +328 -7
- package/development/core/datetime/date-helper.d.ts +0 -1
- package/development/core/timetable/access-leg-helper.d.ts +3 -3
- package/development/core/timetable/timetable-helper.d.ts +1 -2
- package/development/core/timetable/timetable-properties.d.ts +2 -1
- package/development/core.d.ts +0 -1
- package/development/core.js +1195 -5
- package/development/journey-summary/journey-summary.component.d.ts +3 -4
- package/development/journey-summary.d.ts +0 -1
- package/development/journey-summary.js +5 -5
- package/development/journey-summary.pure.d.ts +0 -1
- package/development/journey-summary.pure.js +2605 -2
- package/development/pearl-chain/pearl-chain.component.d.ts +2 -3
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +3 -4
- package/development/pearl-chain-time.d.ts +0 -1
- package/development/pearl-chain-time.js +5 -5
- package/development/pearl-chain-time.pure.d.ts +0 -1
- package/development/pearl-chain-time.pure.js +2582 -2
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts +1 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts +1 -2
- package/development/pearl-chain-vertical-item.d.ts +0 -1
- package/development/pearl-chain-vertical-item.js +5 -5
- package/development/pearl-chain-vertical-item.pure.d.ts +0 -1
- package/development/pearl-chain-vertical-item.pure.js +132 -2
- package/development/pearl-chain-vertical.d.ts +0 -1
- package/development/pearl-chain-vertical.js +5 -5
- package/development/pearl-chain-vertical.pure.d.ts +0 -1
- package/development/pearl-chain-vertical.pure.js +31 -2
- package/development/pearl-chain.d.ts +0 -1
- package/development/pearl-chain.js +5 -5
- package/development/pearl-chain.pure.d.ts +0 -1
- package/development/pearl-chain.pure.js +619 -2
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts +0 -1
- package/development/seat-reservation/common/mapper/mapper.d.ts +1 -2
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.private.d.ts +68 -0
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.private.d.ts +122 -0
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.private.d.ts +68 -0
- package/development/seat-reservation/common/mapper.d.ts +0 -1
- package/development/seat-reservation/common/svgs.d.ts +20 -21
- package/development/seat-reservation/common/translations/i18n.d.ts +0 -1
- package/development/seat-reservation/common/translations.d.ts +0 -1
- package/development/seat-reservation/common/types.d.ts +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +2 -3
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +2 -3
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts +1 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +2 -3
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +3 -4
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts +2 -3
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +3 -4
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -2
- package/development/seat-reservation.d.ts +0 -1
- package/development/seat-reservation.js +5 -16
- package/development/seat-reservation.pure.d.ts +0 -1
- package/development/seat-reservation.pure.js +16019 -14
- package/development/timetable-duration/timetable-duration.component.d.ts +1 -2
- package/development/timetable-duration.d.ts +0 -1
- package/development/timetable-duration.js +5 -5
- package/development/timetable-duration.pure.d.ts +0 -1
- package/development/timetable-duration.pure.js +97 -2
- package/development/timetable-row/timetable-row.component.d.ts +3 -4
- package/development/timetable-row.d.ts +0 -1
- package/development/timetable-row.js +5 -5
- package/development/timetable-row.pure.d.ts +0 -1
- package/development/timetable-row.pure.js +3005 -2
- package/journey-summary.js +1 -6
- package/journey-summary.pure.js +55 -2
- package/package.json +3 -4
- package/pearl-chain-time.js +1 -6
- package/pearl-chain-time.pure.js +28 -2
- package/pearl-chain-vertical-item.js +1 -6
- package/pearl-chain-vertical-item.pure.js +26 -2
- package/pearl-chain-vertical.js +1 -6
- package/pearl-chain-vertical.pure.js +6 -2
- package/pearl-chain.js +1 -6
- package/pearl-chain.pure.js +27 -2
- package/seat-reservation.js +1 -16
- package/seat-reservation.pure.js +468 -14
- package/timetable-duration.js +1 -6
- package/timetable-duration.pure.js +9 -2
- package/timetable-row.js +1 -6
- package/timetable-row.pure.js +113 -2
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +0 -65
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +0 -44
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +0 -2
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +0 -21
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +0 -2
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +0 -2
- package/autocomplete-grid-cell.component-79IjA__I.js +0 -23
- package/autocomplete-grid-option.component-DUFBhQwI.js +0 -35
- package/autocomplete-grid-row.component-B3U15Rwa.js +0 -26
- package/core/datetime/date-helper.js +0 -2
- package/core/timetable/access-leg-helper.js +0 -96
- package/core/timetable/timetable-helper.js +0 -10
- package/core/timetable/timetable-properties.js +0 -0
- package/date-helper-DNzMLcyb.js +0 -185
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +0 -118
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +0 -69
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +0 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +0 -30
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +0 -2
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +0 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +0 -2
- package/development/autocomplete-grid-cell.component-BbdELDro.js +0 -33
- package/development/autocomplete-grid-option.component-C7WuqRit.js +0 -57
- package/development/autocomplete-grid-row.component-DoXbOsQM.js +0 -38
- package/development/autocomplete-grid.d.ts.map +0 -1
- package/development/autocomplete-grid.pure.d.ts.map +0 -1
- package/development/core/datetime/date-helper.d.ts.map +0 -1
- package/development/core/datetime/date-helper.js +0 -2
- package/development/core/timetable/access-leg-helper.d.ts.map +0 -1
- package/development/core/timetable/access-leg-helper.js +0 -147
- package/development/core/timetable/timetable-helper.d.ts.map +0 -1
- package/development/core/timetable/timetable-helper.js +0 -19
- package/development/core/timetable/timetable-properties.d.ts.map +0 -1
- package/development/core/timetable/timetable-properties.js +0 -0
- package/development/core.d.ts.map +0 -1
- package/development/date-helper-BcTDWVeP.js +0 -539
- package/development/differenceInMinutes-CxAbGYQ3.js +0 -110
- package/development/format-Cx3zmmaF.js +0 -1848
- package/development/isValid-40Olgzo1.js +0 -178
- package/development/journey-summary/journey-summary.component.d.ts.map +0 -1
- package/development/journey-summary/journey-summary.component.js +0 -2
- package/development/journey-summary.component-BsC7wBIn.js +0 -341
- package/development/journey-summary.d.ts.map +0 -1
- package/development/journey-summary.pure.d.ts.map +0 -1
- package/development/mapper-BrZOqqfe.js +0 -11454
- package/development/pearl-chain/pearl-chain.component.d.ts.map +0 -1
- package/development/pearl-chain/pearl-chain.component.js +0 -2
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +0 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +0 -2
- package/development/pearl-chain-time.component-C-CuC1ke.js +0 -317
- package/development/pearl-chain-time.d.ts.map +0 -1
- package/development/pearl-chain-time.pure.d.ts.map +0 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.d.ts.map +0 -1
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +0 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +0 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +0 -2
- package/development/pearl-chain-vertical-item.component-CLu9QrqJ.js +0 -131
- package/development/pearl-chain-vertical-item.d.ts.map +0 -1
- package/development/pearl-chain-vertical-item.pure.d.ts.map +0 -1
- package/development/pearl-chain-vertical.component-DbPz5k_R.js +0 -30
- package/development/pearl-chain-vertical.d.ts.map +0 -1
- package/development/pearl-chain-vertical.pure.d.ts.map +0 -1
- package/development/pearl-chain.component-10OsJZIX.js +0 -318
- package/development/pearl-chain.d.ts.map +0 -1
- package/development/pearl-chain.pure.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +0 -170
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper/mapper.js +0 -2
- package/development/seat-reservation/common/mapper.d.ts.map +0 -1
- package/development/seat-reservation/common/mapper.js +0 -3
- package/development/seat-reservation/common/svgs.d.ts.map +0 -1
- package/development/seat-reservation/common/svgs.js +0 -2
- package/development/seat-reservation/common/translations/i18n.d.ts.map +0 -1
- package/development/seat-reservation/common/translations/i18n.js +0 -1120
- package/development/seat-reservation/common/translations.d.ts.map +0 -1
- package/development/seat-reservation/common/translations.js +0 -2
- package/development/seat-reservation/common/types.d.ts.map +0 -1
- package/development/seat-reservation/common/types.js +0 -0
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +0 -1476
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +0 -2
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +0 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +0 -2
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +0 -2
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +0 -2
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +0 -2
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +0 -1
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +0 -2
- package/development/seat-reservation-area.component-DPhQJFid.js +0 -94
- package/development/seat-reservation-graphic.component-0LYsmerm.js +0 -129
- package/development/seat-reservation-navigation-coach.component-B97jKD7Y.js +0 -438
- package/development/seat-reservation-navigation-services.component-Cx0Is97w.js +0 -159
- package/development/seat-reservation-place-control.component-DaL1g8WH.js +0 -431
- package/development/seat-reservation-scoped.component-BHbORVsR.js +0 -24
- package/development/seat-reservation.component-DI9pSlzt.js +0 -473
- package/development/seat-reservation.d.ts.map +0 -1
- package/development/seat-reservation.pure.d.ts.map +0 -1
- package/development/svgs-Dj-RKmRs.js +0 -28
- package/development/timetable-duration/timetable-duration.component.d.ts.map +0 -1
- package/development/timetable-duration/timetable-duration.component.js +0 -2
- package/development/timetable-duration.component-Chk5D4Is.js +0 -96
- package/development/timetable-duration.d.ts.map +0 -1
- package/development/timetable-duration.pure.d.ts.map +0 -1
- package/development/timetable-row/timetable-row.component.d.ts.map +0 -1
- package/development/timetable-row/timetable-row.component.js +0 -2
- package/development/timetable-row.component-nzrQzxL6.js +0 -736
- package/development/timetable-row.d.ts.map +0 -1
- package/development/timetable-row.pure.d.ts.map +0 -1
- package/development/toDate-CDWut5fS.js +0 -150
- package/differenceInMinutes-BAZ-Fham.js +0 -27
- package/format-DjgG1QPc.js +0 -1103
- package/isValid-CXnsFZVu.js +0 -36
- package/journey-summary/journey-summary.component.js +0 -2
- package/journey-summary.component-DNoO3OCf.js +0 -265
- package/mapper-Dcou8VEf.js +0 -11382
- package/pearl-chain/pearl-chain.component.js +0 -2
- package/pearl-chain-time/pearl-chain-time.component.js +0 -2
- package/pearl-chain-time.component-BuvA6IE1.js +0 -237
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +0 -2
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +0 -2
- package/pearl-chain-vertical-item.component-QZ4s8Jbv.js +0 -106
- package/pearl-chain-vertical.component-Dc3vaHsQ.js +0 -20
- package/pearl-chain.component-DtGXXkY6.js +0 -190
- package/seat-reservation/common/mapper/icon-mapper.js +0 -72
- package/seat-reservation/common/mapper/mapper.js +0 -2
- package/seat-reservation/common/mapper.js +0 -3
- package/seat-reservation/common/svgs.js +0 -2
- package/seat-reservation/common/translations/i18n.js +0 -1085
- package/seat-reservation/common/translations.js +0 -2
- package/seat-reservation/common/types.js +0 -0
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +0 -926
- package/seat-reservation/seat-reservation/seat-reservation.component.js +0 -2
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +0 -2
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +0 -2
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +0 -2
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +0 -2
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +0 -2
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +0 -2
- package/seat-reservation-area.component-G9lHb7S8.js +0 -73
- package/seat-reservation-graphic.component-BXFcQDxY.js +0 -102
- package/seat-reservation-navigation-coach.component-BXy8EkJe.js +0 -338
- package/seat-reservation-navigation-services.component-49XmV9rv.js +0 -124
- package/seat-reservation-place-control.component-DToIW328.js +0 -317
- package/seat-reservation-scoped.component-D8dAmrP7.js +0 -16
- package/seat-reservation.component--0XnrCkk.js +0 -372
- package/svgs-D4fuYTHV.js +0 -26
- package/timetable-duration/timetable-duration.component.js +0 -2
- package/timetable-duration.component-iMCvh1zr.js +0 -61
- package/timetable-row/timetable-row.component.js +0 -2
- package/timetable-row.component-mNKmhRmP.js +0 -566
- package/toDate-BhNUyM4s.js +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbElement } from '@sbb-esta/lyne-elements/core.js';
|
|
2
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
|
+
import { type CSSResultGroup, type TemplateResult } from 'lit';
|
|
3
3
|
/**
|
|
4
4
|
* It can be used as a container for the `sbb-pearl-chain-vertical-item` component.
|
|
5
5
|
*
|
|
@@ -15,4 +15,3 @@ declare global {
|
|
|
15
15
|
'sbb-pearl-chain-vertical': SbbPearlChainVerticalElement;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=pearl-chain-vertical.component.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbElement } from '@sbb-esta/lyne-elements/core.js';
|
|
2
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
|
+
import { type CSSResultGroup, type TemplateResult } from 'lit';
|
|
3
3
|
export type LineType = 'dotted' | 'standard' | 'thin';
|
|
4
4
|
export type BulletType = 'default' | 'past' | 'irrelevant' | 'skipped' | 'disruption';
|
|
5
5
|
export type LineColor = 'default' | 'past' | 'disruption' | 'walk';
|
|
@@ -33,4 +33,3 @@ declare global {
|
|
|
33
33
|
'sbb-pearl-chain-vertical-item': SbbPearlChainVerticalItemElement;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
//# sourceMappingURL=pearl-chain-vertical-item.component.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SbbPearlChainVerticalItemElement } from "./pearl-chain-vertical-item.pure.js";
|
|
2
|
+
|
|
3
|
+
export * from "./pearl-chain-vertical-item.pure.js"
|
|
4
|
+
|
|
3
5
|
//#region src/elements-experimental/pearl-chain-vertical-item.ts
|
|
4
6
|
/** @entrypoint */
|
|
5
7
|
SbbPearlChainVerticalItemElement.define();
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SbbPearlChainVerticalItemElement };
|
|
8
8
|
|
|
9
|
-
//#
|
|
9
|
+
//#endregion
|
|
@@ -1,2 +1,132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { SbbElement, forceType } from "@sbb-esta/lyne-elements/core.js";
|
|
3
|
+
import { html, nothing, unsafeCSS } from "lit";
|
|
4
|
+
import { property } from "lit/decorators.js";
|
|
5
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
6
|
+
|
|
7
|
+
//#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.scss?inline
|
|
8
|
+
var pearl_chain_vertical_item_default = ":host {\n --sbb-pearl-chain-position-color: var(--sbb-color-primary);\n --sbb-pearl-chain-bullet-size-start-end: 0.625rem;\n --sbb-pearl-chain-bullet-size-stop: 0.5rem;\n --sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);\n --sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);\n --sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));\n --sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);\n --sbb-pearl-chain-bullet-color-irrelevant: light-dark(\n var(--sbb-color-metal),\n var(--sbb-color-granite)\n );\n --sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);\n --sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);\n --sbb-pearl-chain-bullet-animation-duration: 1920ms;\n --sbb-pearl-chain-bullet-animation-easing: ease-out;\n --sbb-pearl-chain-bullet-crossed-width: 0.88375rem;\n --sbb-pearl-chain-bullet-crossed-height: 0.21875rem;\n --sbb-pearl-chain-bullet-crossed-border-width: 0.09375rem;\n display: table-row;\n position: relative;\n --sbb-pearl-chain-vertical-right-item-width: 100%;\n --sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n --sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);\n --sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);\n --sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);\n --sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);\n --sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);\n --sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);\n --sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);\n --sbb-pearl-chain-vertical-item-inline-start: 50%;\n --sbb-pearl-chain-vertical-item-transform: translateX(-50%);\n}\n\nslot[name=right],\n.sbb-pearl-chain-vertical-item__column {\n display: table-cell;\n position: relative;\n vertical-align: top;\n}\n\nslot[name=right] {\n width: var(--sbb-pearl-chain-vertical-right-item-width);\n}\n\n.sbb-pearl-chain-vertical-item__column--middle {\n min-width: var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width);\n}\n\nslot[name=left]::slotted(*) {\n margin-block-start: var(--sbb-pearl-chain-vertical-left-item-block-start);\n padding-inline-end: var(--sbb-pearl-chain-vertical-left-item-inline-end);\n}\n\nslot[name=right]::slotted(*) {\n margin-block-start: var(--sbb-pearl-chain-vertical-right-item-block-start);\n padding-inline-start: var(--sbb-pearl-chain-vertical-right-item-inline-start);\n}\n\n.sbb-pearl-chain-vertical-item__middle {\n vertical-align: top;\n border-spacing: 0;\n}\n\n.sbb-pearl-chain-vertical-item__line {\n position: absolute;\n bottom: 0;\n inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);\n transform: var(--sbb-pearl-chain-vertical-item-transform);\n width: var(--sbb-border-width-2x);\n inset-block-start: calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2);\n}\n.sbb-pearl-chain-vertical-item__line::after {\n content: \"\";\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n height: var(--sbb-pearl-chain-vertical-item-leg-status);\n width: var(--sbb-pearl-chain-vertical-item-border-width);\n background-color: var(--sbb-pearl-chain-vertical-item-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line::after {\n --sbb-pearl-chain-vertical-item-color-past: GrayText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--dotted {\n background-color: unset;\n border-color: unset;\n background-image: linear-gradient(to bottom, currentcolor 0%, currentcolor 50%, Canvas 50%);\n background-repeat: repeat-y;\n background-size: calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--dotted {\n background-color: unset !important;\n border-inline-start: 0.0625rem dashed Highlight;\n transform: translateY(0.0625rem);\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--thin {\n width: var(--sbb-pearl-chain-vertical-item-border-width-thin);\n}\n\n.sbb-pearl-chain-vertical-item__line--default {\n background-color: var(--sbb-pearl-chain-vertical-item-color-default);\n border-color: var(--sbb-pearl-chain-vertical-item-color-default);\n color: var(--sbb-pearl-chain-vertical-item-color-default);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--default {\n --sbb-pearl-chain-vertical-item-color-default: CanvasText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--disruption {\n border-color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n background-color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--disruption {\n --sbb-pearl-chain-vertical-item-color-disruption: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--past {\n border-color: var(--sbb-pearl-chain-vertical-item-color-past);\n background-color: var(--sbb-pearl-chain-vertical-item-color-past);\n color: var(--sbb-pearl-chain-vertical-item-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--past {\n --sbb-pearl-chain-vertical-item-color-past: GrayText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--walk {\n border-color: var(--sbb-pearl-chain-vertical-item-color-walk);\n background-color: var(--sbb-pearl-chain-vertical-item-color-walk);\n color: var(--sbb-pearl-chain-vertical-item-color-walk);\n}\n\n.sbb-pearl-chain-vertical-item__bullet {\n position: relative;\n inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);\n transform: var(--sbb-pearl-chain-vertical-item-transform);\n background: var(--sbb-pearl-chain-bullet-color);\n color: var(--sbb-pearl-chain-bullet-color);\n border-color: var(--sbb-pearl-chain-bullet-color);\n border-radius: 100%;\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet {\n --sbb-pearl-chain-bullet-color: CanvasText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--start-end {\n min-height: var(--sbb-pearl-chain-bullet-size-start-end);\n min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n height: var(--sbb-pearl-chain-bullet-size-start-end);\n width: var(--sbb-pearl-chain-bullet-size-start-end);\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop {\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n\n.sbb-pearl-chain-vertical-item__bullet--disruption {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--disruption {\n --sbb-pearl-chain-bullet-color: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--irrelevant,\n.sbb-pearl-chain-vertical-item__bullet--past {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--irrelevant,\n .sbb-pearl-chain-vertical-item__bullet--past {\n --sbb-pearl-chain-bullet-color: GrayText !important;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant {\n --sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n\n.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped {\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n content: \"\";\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;\n background: var(--sbb-pearl-chain-bullet-color-disruption);\n height: var(--sbb-pearl-chain-bullet-crossed-height);\n width: var(--sbb-pearl-chain-bullet-crossed-width);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n background: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped {\n --sbb-pearl-chain-bullet-crossed-width: 0.706875rem;\n --sbb-pearl-chain-bullet-crossed-height: 0.1875rem;\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n content: \"\";\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;\n background: var(--sbb-pearl-chain-bullet-color-disruption);\n height: var(--sbb-pearl-chain-bullet-crossed-height);\n width: var(--sbb-pearl-chain-bullet-crossed-width);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n background: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--position {\n inset-block-start: var(--sbb-pearl-chain-vertical-item-position);\n position: absolute;\n left: 50%;\n translate: -50% 0;\n min-height: var(--sbb-pearl-chain-bullet-size-start-end);\n min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n height: var(--sbb-pearl-chain-bullet-size-start-end);\n width: var(--sbb-pearl-chain-bullet-size-start-end);\n background: var(--sbb-pearl-chain-bullet-color);\n color: var(--sbb-pearl-chain-bullet-color);\n border-color: var(--sbb-pearl-chain-bullet-color);\n border-radius: 100%;\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-bullet-color: CanvasText;\n }\n}\n.sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-position-color: Highlight;\n }\n}\n@keyframes pearl-chain-bullet-position-pulse {\n 0% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n 25% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n 50% {\n box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--sbb-pearl-chain-position-color) 20%, transparent);\n }\n 100% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n}\n.sbb-pearl-chain-vertical-item__bullet--position {\n animation: pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;\n}\n:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position {\n animation: unset !important;\n}\n";
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.component.ts
|
|
12
|
+
/**
|
|
13
|
+
* It displays details about connection between stations.
|
|
14
|
+
*
|
|
15
|
+
* @slot left - Content of the left side of the item
|
|
16
|
+
* @slot right - Content of the right side of the item
|
|
17
|
+
*/
|
|
18
|
+
let SbbPearlChainVerticalItemElement = (() => {
|
|
19
|
+
let _classSuper = SbbElement;
|
|
20
|
+
let _pearlChainVerticalItemAttributes_decorators;
|
|
21
|
+
let _pearlChainVerticalItemAttributes_initializers = [];
|
|
22
|
+
let _pearlChainVerticalItemAttributes_extraInitializers = [];
|
|
23
|
+
let _disableAnimation_decorators;
|
|
24
|
+
let _disableAnimation_initializers = [];
|
|
25
|
+
let _disableAnimation_extraInitializers = [];
|
|
26
|
+
return class SbbPearlChainVerticalItemElement extends _classSuper {
|
|
27
|
+
static {
|
|
28
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
29
|
+
_pearlChainVerticalItemAttributes_decorators = [property({
|
|
30
|
+
attribute: "pearl-chain-vertical-item-attributes",
|
|
31
|
+
type: Object
|
|
32
|
+
})];
|
|
33
|
+
_disableAnimation_decorators = [forceType(), property({
|
|
34
|
+
attribute: "disable-animation",
|
|
35
|
+
reflect: true,
|
|
36
|
+
type: Boolean
|
|
37
|
+
})];
|
|
38
|
+
__esDecorate(this, null, _pearlChainVerticalItemAttributes_decorators, {
|
|
39
|
+
kind: "accessor",
|
|
40
|
+
name: "pearlChainVerticalItemAttributes",
|
|
41
|
+
static: false,
|
|
42
|
+
private: false,
|
|
43
|
+
access: {
|
|
44
|
+
has: (obj) => "pearlChainVerticalItemAttributes" in obj,
|
|
45
|
+
get: (obj) => obj.pearlChainVerticalItemAttributes,
|
|
46
|
+
set: (obj, value) => {
|
|
47
|
+
obj.pearlChainVerticalItemAttributes = value;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
metadata: _metadata
|
|
51
|
+
}, _pearlChainVerticalItemAttributes_initializers, _pearlChainVerticalItemAttributes_extraInitializers);
|
|
52
|
+
__esDecorate(this, null, _disableAnimation_decorators, {
|
|
53
|
+
kind: "accessor",
|
|
54
|
+
name: "disableAnimation",
|
|
55
|
+
static: false,
|
|
56
|
+
private: false,
|
|
57
|
+
access: {
|
|
58
|
+
has: (obj) => "disableAnimation" in obj,
|
|
59
|
+
get: (obj) => obj.disableAnimation,
|
|
60
|
+
set: (obj, value) => {
|
|
61
|
+
obj.disableAnimation = value;
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
metadata: _metadata
|
|
65
|
+
}, _disableAnimation_initializers, _disableAnimation_extraInitializers);
|
|
66
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
configurable: true,
|
|
69
|
+
writable: true,
|
|
70
|
+
value: _metadata
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
static {
|
|
74
|
+
this.elementName = "sbb-pearl-chain-vertical-item";
|
|
75
|
+
}
|
|
76
|
+
static {
|
|
77
|
+
this.styles = [unsafeCSS(pearl_chain_vertical_item_default)];
|
|
78
|
+
}
|
|
79
|
+
#pearlChainVerticalItemAttributes_accessor_storage = __runInitializers(this, _pearlChainVerticalItemAttributes_initializers, null);
|
|
80
|
+
/** The pearlChainVerticalItemAttributes Prop for styling the bullets and line.*/
|
|
81
|
+
get pearlChainVerticalItemAttributes() {
|
|
82
|
+
return this.#pearlChainVerticalItemAttributes_accessor_storage;
|
|
83
|
+
}
|
|
84
|
+
set pearlChainVerticalItemAttributes(value) {
|
|
85
|
+
this.#pearlChainVerticalItemAttributes_accessor_storage = value;
|
|
86
|
+
}
|
|
87
|
+
#disableAnimation_accessor_storage = (__runInitializers(this, _pearlChainVerticalItemAttributes_extraInitializers), __runInitializers(this, _disableAnimation_initializers, false));
|
|
88
|
+
/** If true, the position won't be animated. */
|
|
89
|
+
get disableAnimation() {
|
|
90
|
+
return this.#disableAnimation_accessor_storage;
|
|
91
|
+
}
|
|
92
|
+
set disableAnimation(value) {
|
|
93
|
+
this.#disableAnimation_accessor_storage = value;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const { bulletType, lineType, lineColor, hideLine, minHeight, bulletSize, position } = this.pearlChainVerticalItemAttributes || {};
|
|
97
|
+
const bulletTypeClass = position && position > 0 && position <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${bulletType}`;
|
|
98
|
+
return html`
|
|
99
|
+
<div
|
|
100
|
+
class="sbb-pearl-chain-vertical-item__column"
|
|
101
|
+
style=${styleMap({ height: `${minHeight}px` })}
|
|
102
|
+
>
|
|
103
|
+
<slot name="left"></slot>
|
|
104
|
+
</div>
|
|
105
|
+
<div
|
|
106
|
+
aria-hidden="true"
|
|
107
|
+
class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
|
|
108
|
+
>
|
|
109
|
+
${!hideLine ? html`<div
|
|
110
|
+
style=${styleMap({ "--sbb-pearl-chain-vertical-item-leg-status": `${position}%` })}
|
|
111
|
+
class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${lineType} sbb-pearl-chain-vertical-item__line--${lineColor}"
|
|
112
|
+
></div>` : nothing}
|
|
113
|
+
${bulletType ? html`<div
|
|
114
|
+
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${bulletSize} ${bulletTypeClass}"
|
|
115
|
+
></div>` : nothing}
|
|
116
|
+
${position && position > 0 ? html`<div
|
|
117
|
+
style=${styleMap({ "--sbb-pearl-chain-vertical-item-position": `${position}%` })}
|
|
118
|
+
class="sbb-pearl-chain-vertical-item__bullet--position"
|
|
119
|
+
></div>` : nothing}
|
|
120
|
+
</div>
|
|
121
|
+
<slot name="right"></slot>
|
|
122
|
+
`;
|
|
123
|
+
}
|
|
124
|
+
constructor() {
|
|
125
|
+
super(...arguments);
|
|
126
|
+
__runInitializers(this, _disableAnimation_extraInitializers);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
})();
|
|
130
|
+
|
|
131
|
+
//#endregion
|
|
132
|
+
export { SbbPearlChainVerticalItemElement };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SbbPearlChainVerticalElement } from "./pearl-chain-vertical.pure.js";
|
|
2
|
+
|
|
3
|
+
export * from "./pearl-chain-vertical.pure.js"
|
|
4
|
+
|
|
3
5
|
//#region src/elements-experimental/pearl-chain-vertical.ts
|
|
4
6
|
/** @entrypoint */
|
|
5
7
|
SbbPearlChainVerticalElement.define();
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SbbPearlChainVerticalElement };
|
|
8
8
|
|
|
9
|
-
//#
|
|
9
|
+
//#endregion
|
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SbbElement } from "@sbb-esta/lyne-elements/core.js";
|
|
2
|
+
import { html, unsafeCSS } from "lit";
|
|
3
|
+
|
|
4
|
+
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?inline
|
|
5
|
+
var pearl_chain_vertical_default = ":host {\n --sbb-pearl-chain-vertical-width: 100%;\n display: block;\n}\n\n.sbb-pearl-chain-vertical {\n display: table;\n width: var(--sbb-pearl-chain-vertical-width);\n}\n";
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.component.ts
|
|
9
|
+
/**
|
|
10
|
+
* It can be used as a container for the `sbb-pearl-chain-vertical-item` component.
|
|
11
|
+
*
|
|
12
|
+
* @slot - The unnamed slot is used for the `sbb-pearl-chain-vertical-item` component.
|
|
13
|
+
*/
|
|
14
|
+
var SbbPearlChainVerticalElement = class extends SbbElement {
|
|
15
|
+
static {
|
|
16
|
+
this.elementName = "sbb-pearl-chain-vertical";
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = [unsafeCSS(pearl_chain_vertical_default)];
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return html`
|
|
23
|
+
<div class="sbb-pearl-chain-vertical">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { SbbPearlChainVerticalElement };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SbbPearlChainElement } from "./pearl-chain.pure.js";
|
|
2
|
+
|
|
3
|
+
export * from "./pearl-chain.pure.js"
|
|
4
|
+
|
|
3
5
|
//#region src/elements-experimental/pearl-chain.ts
|
|
4
6
|
/** @entrypoint */
|
|
5
7
|
SbbPearlChainElement.define();
|
|
6
|
-
//#endregion
|
|
7
|
-
export { SbbPearlChainElement };
|
|
8
8
|
|
|
9
|
-
//#
|
|
9
|
+
//#endregion
|