@sbb-esta/lyne-elements-experimental 2.6.0 → 2.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/core/datetime/date-helper.js +191 -0
- package/core/datetime.d.ts +3 -0
- package/core/datetime.d.ts.map +1 -1
- package/core/datetime.js +3 -189
- package/core/timetable/access-leg-helper.js +94 -0
- package/core/timetable/timetable-helper.js +13 -0
- package/core/timetable/timetable-properties.js +1 -0
- package/core/timetable.d.ts +3 -0
- package/core/timetable.d.ts.map +1 -1
- package/core/timetable.js +6 -102
- package/custom-elements.json +598 -439
- package/development/core/datetime/date-helper.js +285 -0
- package/development/core/datetime.d.ts +3 -0
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/datetime.js +2 -281
- package/development/core/timetable/access-leg-helper.js +128 -0
- package/development/core/timetable/timetable-helper.js +21 -0
- package/development/core/timetable/timetable-properties.js +2 -0
- package/development/core/timetable.d.ts +3 -0
- package/development/core/timetable.d.ts.map +1 -1
- package/development/core/timetable.js +3 -139
- package/development/{differenceInMinutes-Cmyza6nm.js → differenceInMinutes-CHSyWiQs.js} +2 -2
- package/development/{format-BU7bjY-L.js → format-D0-yhzi4.js} +3 -3
- package/development/{isValid-DO_pHwcW.js → isValid-Bo4R7iA7.js} +2 -2
- package/development/journey-summary/journey-summary.js +297 -0
- package/development/journey-summary.d.ts +3 -0
- package/development/journey-summary.d.ts.map +1 -1
- package/development/journey-summary.js +2 -294
- package/development/pearl-chain/pearl-chain.js +649 -0
- package/development/pearl-chain-time/pearl-chain-time.js +315 -0
- package/development/pearl-chain-time.d.ts +3 -0
- package/development/pearl-chain-time.d.ts.map +1 -1
- package/development/pearl-chain-time.js +2 -312
- package/development/pearl-chain-vertical/pearl-chain-vertical.js +45 -0
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.js +395 -0
- package/development/pearl-chain-vertical-item.d.ts +3 -0
- package/development/pearl-chain-vertical-item.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item.js +2 -392
- package/development/pearl-chain-vertical.d.ts +3 -0
- package/development/pearl-chain-vertical.d.ts.map +1 -1
- package/development/pearl-chain-vertical.js +2 -42
- package/development/pearl-chain.d.ts +3 -0
- package/development/pearl-chain.d.ts.map +1 -1
- package/development/pearl-chain.js +2 -646
- package/development/timetable-duration/timetable-duration.js +119 -0
- package/development/timetable-duration.d.ts +3 -0
- package/development/timetable-duration.d.ts.map +1 -1
- package/development/timetable-duration.js +2 -116
- package/development/timetable-row/timetable-row.js +820 -0
- package/development/timetable-row.d.ts +3 -0
- package/development/timetable-row.d.ts.map +1 -1
- package/development/timetable-row.js +2 -810
- package/development/{toDate-B6IBgPYH.js → toDate-D_Vjps95.js} +5 -5
- package/{differenceInMinutes-BI2zjbtS.js → differenceInMinutes-BMqUZdhj.js} +1 -1
- package/{format-CUYwLzoN.js → format-Dg8rkk7h.js} +2 -2
- package/index.d.ts +7 -7
- package/index.js +7 -7
- package/{isValid-mroh13Xp.js → isValid-DJ69OMZJ.js} +6 -6
- package/journey-summary/journey-summary.js +190 -0
- package/journey-summary.d.ts +3 -0
- package/journey-summary.d.ts.map +1 -1
- package/journey-summary.js +2 -188
- package/package.json +3 -3
- package/pearl-chain/pearl-chain.js +177 -0
- package/pearl-chain-time/pearl-chain-time.js +153 -0
- package/pearl-chain-time.d.ts +3 -0
- package/pearl-chain-time.d.ts.map +1 -1
- package/pearl-chain-time.js +2 -151
- package/pearl-chain-vertical/pearl-chain-vertical.js +23 -0
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.js +71 -0
- package/pearl-chain-vertical-item.d.ts +3 -0
- package/pearl-chain-vertical-item.d.ts.map +1 -1
- package/pearl-chain-vertical-item.js +2 -69
- package/pearl-chain-vertical.d.ts +3 -0
- package/pearl-chain-vertical.d.ts.map +1 -1
- package/pearl-chain-vertical.js +2 -21
- package/pearl-chain.d.ts +3 -0
- package/pearl-chain.d.ts.map +1 -1
- package/pearl-chain.js +2 -175
- package/timetable-duration/timetable-duration.js +55 -0
- package/timetable-duration.d.ts +3 -0
- package/timetable-duration.d.ts.map +1 -1
- package/timetable-duration.js +2 -53
- package/timetable-row/timetable-row.js +462 -0
- package/timetable-row.d.ts +3 -0
- package/timetable-row.d.ts.map +1 -1
- package/timetable-row.js +9 -460
- package/{toDate-DQg4ZFnf.js → toDate-BCXKL_wM.js} +4 -4
- package/development/pearl-chain/pearl-chain.sample-data.d.ts +0 -141
- package/development/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
- package/development/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
- package/development/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
- package/development/timetable-row/timetable-row.sample-data.d.ts +0 -25
- package/development/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
- package/pearl-chain/pearl-chain.sample-data.d.ts +0 -141
- package/pearl-chain/pearl-chain.sample-data.d.ts.map +0 -1
- package/timetable-duration/timetable-duration.sample-data.d.ts +0 -6
- package/timetable-duration/timetable-duration.sample-data.d.ts.map +0 -1
- package/timetable-row/timetable-row.sample-data.d.ts +0 -25
- package/timetable-row/timetable-row.sample-data.d.ts.map +0 -1
|
@@ -1,395 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
throw TypeError(msg);
|
|
3
|
-
};
|
|
4
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
-
import { __esDecorate, __runInitializers } from "tslib";
|
|
9
|
-
import { forceType } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
10
|
-
import { css, LitElement, nothing, html } from "lit";
|
|
11
|
-
import { customElement, property } from "lit/decorators.js";
|
|
12
|
-
const style = css`*,
|
|
13
|
-
::before,
|
|
14
|
-
::after {
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host {
|
|
19
|
-
--sbb-pearl-chain-bullet-size-start-end: 0.625rem;
|
|
20
|
-
--sbb-pearl-chain-bullet-size-stop: 0.5rem;
|
|
21
|
-
--sbb-pearl-chain-bullet-color: var(--sbb-color-charcoal);
|
|
22
|
-
--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);
|
|
23
|
-
--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);
|
|
24
|
-
--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-red);
|
|
25
|
-
--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);
|
|
26
|
-
--sbb-pearl-chain-bullet-animation-duration: 1920ms;
|
|
27
|
-
--sbb-pearl-chain-bullet-animation-easing: ease-out;
|
|
28
|
-
--sbb-pearl-chain-bullet-crossed-width: 0.88375rem;
|
|
29
|
-
--sbb-pearl-chain-bullet-crossed-height: 0.21875rem;
|
|
30
|
-
--sbb-pearl-chain-bullet-crossed-border-width: 0.09375rem;
|
|
31
|
-
display: table-row;
|
|
32
|
-
position: relative;
|
|
33
|
-
--sbb-pearl-chain-vertical-right-item-width: 100%;
|
|
34
|
-
--sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
35
|
-
--sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);
|
|
36
|
-
--sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);
|
|
37
|
-
--sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);
|
|
38
|
-
--sbb-pearl-chain-vertical-item-spacing-medium: var(--sbb-spacing-fixed-4x);
|
|
39
|
-
--sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);
|
|
40
|
-
--sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);
|
|
41
|
-
--sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);
|
|
42
|
-
--sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);
|
|
43
|
-
--sbb-pearl-chain-vertical-item-inline-start: 50%;
|
|
44
|
-
--sbb-pearl-chain-vertical-item-transform: translateX(-50%);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
slot[name=right],
|
|
48
|
-
.sbb-pearl-chain-vertical-item__column {
|
|
49
|
-
display: table-cell;
|
|
50
|
-
position: relative;
|
|
51
|
-
vertical-align: top;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
slot[name=right] {
|
|
55
|
-
width: var(--sbb-pearl-chain-vertical-right-item-width);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.sbb-pearl-chain-vertical-item__column--middle {
|
|
59
|
-
min-width: var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
slot[name=left]::slotted(*) {
|
|
63
|
-
margin-block-start: var(--sbb-pearl-chain-vertical-left-item-block-start);
|
|
64
|
-
padding-inline-end: var(--sbb-pearl-chain-vertical-left-item-inline-end);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
slot[name=right]::slotted(*) {
|
|
68
|
-
margin-block-start: var(--sbb-pearl-chain-vertical-right-item-block-start);
|
|
69
|
-
padding-inline-start: var(--sbb-pearl-chain-vertical-right-item-inline-start);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.sbb-pearl-chain-vertical-item__middle {
|
|
73
|
-
vertical-align: top;
|
|
74
|
-
border-spacing: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.sbb-pearl-chain-vertical-item__line {
|
|
78
|
-
position: absolute;
|
|
79
|
-
bottom: 0;
|
|
80
|
-
inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);
|
|
81
|
-
transform: var(--sbb-pearl-chain-vertical-item-transform);
|
|
82
|
-
width: var(--sbb-border-width-2x);
|
|
83
|
-
inset-block-start: calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2);
|
|
84
|
-
}
|
|
85
|
-
.sbb-pearl-chain-vertical-item__line::after {
|
|
86
|
-
content: "";
|
|
87
|
-
position: absolute;
|
|
88
|
-
inset-inline-start: 0;
|
|
89
|
-
inset-block-start: 0;
|
|
90
|
-
height: var(--sbb-pearl-chain-vertical-item-leg-status);
|
|
91
|
-
width: var(--sbb-pearl-chain-vertical-item-border-width);
|
|
92
|
-
background-color: var(--sbb-pearl-chain-vertical-item-color-past);
|
|
93
|
-
}
|
|
94
|
-
@media (forced-colors: active) {
|
|
95
|
-
.sbb-pearl-chain-vertical-item__line::after {
|
|
96
|
-
--sbb-pearl-chain-vertical-item-color-past: GrayText;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.sbb-pearl-chain-vertical-item__line--dotted {
|
|
101
|
-
background-color: unset;
|
|
102
|
-
border-color: unset;
|
|
103
|
-
background-image: linear-gradient(to bottom, currentcolor 0%, currentcolor 50%, Canvas 50%);
|
|
104
|
-
background-repeat: repeat-y;
|
|
105
|
-
background-size: calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small);
|
|
106
|
-
}
|
|
107
|
-
@media (forced-colors: active) {
|
|
108
|
-
.sbb-pearl-chain-vertical-item__line--dotted {
|
|
109
|
-
background-color: unset !important;
|
|
110
|
-
border-inline-start: 0.0625rem dashed Highlight;
|
|
111
|
-
transform: translateY(0.0625rem);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.sbb-pearl-chain-vertical-item__line--thin {
|
|
116
|
-
width: var(--sbb-pearl-chain-vertical-item-border-width-thin);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.sbb-pearl-chain-vertical-item__line--default {
|
|
120
|
-
background-color: var(--sbb-pearl-chain-vertical-item-color-default);
|
|
121
|
-
border-color: var(--sbb-pearl-chain-vertical-item-color-default);
|
|
122
|
-
color: var(--sbb-pearl-chain-vertical-item-color-default);
|
|
123
|
-
}
|
|
124
|
-
@media (forced-colors: active) {
|
|
125
|
-
.sbb-pearl-chain-vertical-item__line--default {
|
|
126
|
-
--sbb-pearl-chain-vertical-item-color-default: CanvasText;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.sbb-pearl-chain-vertical-item__line--disruption {
|
|
131
|
-
border-color: var(--sbb-pearl-chain-vertical-item-color-disruption);
|
|
132
|
-
background-color: var(--sbb-pearl-chain-vertical-item-color-disruption);
|
|
133
|
-
color: var(--sbb-pearl-chain-vertical-item-color-disruption);
|
|
134
|
-
}
|
|
135
|
-
@media (forced-colors: active) {
|
|
136
|
-
.sbb-pearl-chain-vertical-item__line--disruption {
|
|
137
|
-
--sbb-pearl-chain-vertical-item-color-disruption: Highlight;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.sbb-pearl-chain-vertical-item__line--past {
|
|
142
|
-
border-color: var(--sbb-pearl-chain-vertical-item-color-past);
|
|
143
|
-
background-color: var(--sbb-pearl-chain-vertical-item-color-past);
|
|
144
|
-
color: var(--sbb-pearl-chain-vertical-item-color-past);
|
|
145
|
-
}
|
|
146
|
-
@media (forced-colors: active) {
|
|
147
|
-
.sbb-pearl-chain-vertical-item__line--past {
|
|
148
|
-
--sbb-pearl-chain-vertical-item-color-past: GrayText;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.sbb-pearl-chain-vertical-item__line--walk {
|
|
153
|
-
border-color: var(--sbb-pearl-chain-vertical-item-color-walk);
|
|
154
|
-
background-color: var(--sbb-pearl-chain-vertical-item-color-walk);
|
|
155
|
-
color: var(--sbb-pearl-chain-vertical-item-color-walk);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.sbb-pearl-chain-vertical-item__bullet {
|
|
159
|
-
position: relative;
|
|
160
|
-
inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);
|
|
161
|
-
transform: var(--sbb-pearl-chain-vertical-item-transform);
|
|
162
|
-
background: var(--sbb-pearl-chain-bullet-color);
|
|
163
|
-
color: var(--sbb-pearl-chain-bullet-color);
|
|
164
|
-
border-color: var(--sbb-pearl-chain-bullet-color);
|
|
165
|
-
border-radius: 100%;
|
|
166
|
-
}
|
|
167
|
-
@media (forced-colors: active) {
|
|
168
|
-
.sbb-pearl-chain-vertical-item__bullet {
|
|
169
|
-
--sbb-pearl-chain-bullet-color: CanvasText;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.sbb-pearl-chain-vertical-item__bullet--start-end {
|
|
174
|
-
min-height: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
175
|
-
min-width: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
176
|
-
height: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
177
|
-
width: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.sbb-pearl-chain-vertical-item__bullet--stop {
|
|
181
|
-
min-height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
182
|
-
min-width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
183
|
-
height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
184
|
-
width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
185
|
-
border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;
|
|
186
|
-
background: Canvas;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.sbb-pearl-chain-vertical-item__bullet--disruption {
|
|
190
|
-
--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption);
|
|
191
|
-
}
|
|
192
|
-
@media (forced-colors: active) {
|
|
193
|
-
.sbb-pearl-chain-vertical-item__bullet--disruption {
|
|
194
|
-
--sbb-pearl-chain-bullet-color: Highlight;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.sbb-pearl-chain-vertical-item__bullet--irrelevant,
|
|
199
|
-
.sbb-pearl-chain-vertical-item__bullet--past {
|
|
200
|
-
--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past);
|
|
201
|
-
}
|
|
202
|
-
@media (forced-colors: active) {
|
|
203
|
-
.sbb-pearl-chain-vertical-item__bullet--irrelevant,
|
|
204
|
-
.sbb-pearl-chain-vertical-item__bullet--past {
|
|
205
|
-
--sbb-pearl-chain-bullet-color: GrayText !important;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant {
|
|
210
|
-
--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);
|
|
211
|
-
min-height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
212
|
-
min-width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
213
|
-
height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
214
|
-
width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
215
|
-
border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;
|
|
216
|
-
background: Canvas;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped {
|
|
220
|
-
border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;
|
|
221
|
-
background: Canvas;
|
|
222
|
-
}
|
|
223
|
-
.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {
|
|
224
|
-
content: "";
|
|
225
|
-
position: absolute;
|
|
226
|
-
inset-block-start: 50%;
|
|
227
|
-
inset-inline-start: 50%;
|
|
228
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
229
|
-
border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;
|
|
230
|
-
background: var(--sbb-pearl-chain-bullet-color-disruption);
|
|
231
|
-
height: var(--sbb-pearl-chain-bullet-crossed-height);
|
|
232
|
-
width: var(--sbb-pearl-chain-bullet-crossed-width);
|
|
233
|
-
}
|
|
234
|
-
@media (forced-colors: active) {
|
|
235
|
-
.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {
|
|
236
|
-
background: Highlight;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped {
|
|
241
|
-
--sbb-pearl-chain-bullet-crossed-width: 0.706875rem;
|
|
242
|
-
--sbb-pearl-chain-bullet-crossed-height: 0.1875rem;
|
|
243
|
-
min-height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
244
|
-
min-width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
245
|
-
height: var(--sbb-pearl-chain-bullet-size-stop);
|
|
246
|
-
width: var(--sbb-pearl-chain-bullet-size-stop);
|
|
247
|
-
border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;
|
|
248
|
-
background: Canvas;
|
|
249
|
-
border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;
|
|
250
|
-
background: Canvas;
|
|
251
|
-
}
|
|
252
|
-
.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {
|
|
253
|
-
content: "";
|
|
254
|
-
position: absolute;
|
|
255
|
-
inset-block-start: 50%;
|
|
256
|
-
inset-inline-start: 50%;
|
|
257
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
258
|
-
border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;
|
|
259
|
-
background: var(--sbb-pearl-chain-bullet-color-disruption);
|
|
260
|
-
height: var(--sbb-pearl-chain-bullet-crossed-height);
|
|
261
|
-
width: var(--sbb-pearl-chain-bullet-crossed-width);
|
|
262
|
-
}
|
|
263
|
-
@media (forced-colors: active) {
|
|
264
|
-
.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {
|
|
265
|
-
background: Highlight;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.sbb-pearl-chain-vertical-item__bullet--position {
|
|
270
|
-
inset-block-start: var(--sbb-pearl-chain-vertical-item-position);
|
|
271
|
-
position: absolute;
|
|
272
|
-
left: 50%;
|
|
273
|
-
transform: translateX(-50%);
|
|
274
|
-
min-height: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
275
|
-
min-width: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
276
|
-
height: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
277
|
-
width: var(--sbb-pearl-chain-bullet-size-start-end);
|
|
278
|
-
background: var(--sbb-pearl-chain-bullet-color);
|
|
279
|
-
color: var(--sbb-pearl-chain-bullet-color);
|
|
280
|
-
border-color: var(--sbb-pearl-chain-bullet-color);
|
|
281
|
-
border-radius: 100%;
|
|
282
|
-
}
|
|
283
|
-
@media (forced-colors: active) {
|
|
284
|
-
.sbb-pearl-chain-vertical-item__bullet--position {
|
|
285
|
-
--sbb-pearl-chain-bullet-color: CanvasText;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
.sbb-pearl-chain-vertical-item__bullet--position {
|
|
289
|
-
--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption);
|
|
290
|
-
}
|
|
291
|
-
@media (forced-colors: active) {
|
|
292
|
-
.sbb-pearl-chain-vertical-item__bullet--position {
|
|
293
|
-
--sbb-pearl-chain-bullet-color: Highlight;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
@keyframes pearl-chain-bullet-position-pulse {
|
|
297
|
-
0% {
|
|
298
|
-
box-shadow: 0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption);
|
|
299
|
-
}
|
|
300
|
-
25% {
|
|
301
|
-
box-shadow: 0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption);
|
|
302
|
-
}
|
|
303
|
-
50% {
|
|
304
|
-
box-shadow: 0 0 0 0.1875rem var(--sbb-color-red-alpha-20);
|
|
305
|
-
}
|
|
306
|
-
100% {
|
|
307
|
-
box-shadow: 0 0 0 0 var(--sbb-pearl-chain-bullet-color-disruption);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
.sbb-pearl-chain-vertical-item__bullet--position {
|
|
311
|
-
animation: pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;
|
|
312
|
-
}
|
|
313
|
-
:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position {
|
|
314
|
-
animation: unset !important;
|
|
315
|
-
}`;
|
|
316
|
-
let SbbPearlChainVerticalItemElement = (() => {
|
|
317
|
-
var _pearlChainVerticalItemAttributes_accessor_storage, _disableAnimation_accessor_storage, _a;
|
|
318
|
-
let _classDecorators = [customElement("sbb-pearl-chain-vertical-item")];
|
|
319
|
-
let _classDescriptor;
|
|
320
|
-
let _classExtraInitializers = [];
|
|
321
|
-
let _classThis;
|
|
322
|
-
let _classSuper = LitElement;
|
|
323
|
-
let _pearlChainVerticalItemAttributes_decorators;
|
|
324
|
-
let _pearlChainVerticalItemAttributes_initializers = [];
|
|
325
|
-
let _pearlChainVerticalItemAttributes_extraInitializers = [];
|
|
326
|
-
let _disableAnimation_decorators;
|
|
327
|
-
let _disableAnimation_initializers = [];
|
|
328
|
-
let _disableAnimation_extraInitializers = [];
|
|
329
|
-
_a = class extends _classSuper {
|
|
330
|
-
constructor() {
|
|
331
|
-
super(...arguments);
|
|
332
|
-
__privateAdd(this, _pearlChainVerticalItemAttributes_accessor_storage, __runInitializers(this, _pearlChainVerticalItemAttributes_initializers, null));
|
|
333
|
-
__privateAdd(this, _disableAnimation_accessor_storage, (__runInitializers(this, _pearlChainVerticalItemAttributes_extraInitializers), __runInitializers(this, _disableAnimation_initializers, false)));
|
|
334
|
-
__runInitializers(this, _disableAnimation_extraInitializers);
|
|
335
|
-
}
|
|
336
|
-
/** The pearlChainVerticalItemAttributes Prop for styling the bullets and line.*/
|
|
337
|
-
get pearlChainVerticalItemAttributes() {
|
|
338
|
-
return __privateGet(this, _pearlChainVerticalItemAttributes_accessor_storage);
|
|
339
|
-
}
|
|
340
|
-
set pearlChainVerticalItemAttributes(value) {
|
|
341
|
-
__privateSet(this, _pearlChainVerticalItemAttributes_accessor_storage, value);
|
|
342
|
-
}
|
|
343
|
-
/** If true, the position won't be animated. */
|
|
344
|
-
get disableAnimation() {
|
|
345
|
-
return __privateGet(this, _disableAnimation_accessor_storage);
|
|
346
|
-
}
|
|
347
|
-
set disableAnimation(value) {
|
|
348
|
-
__privateSet(this, _disableAnimation_accessor_storage, value);
|
|
349
|
-
}
|
|
350
|
-
render() {
|
|
351
|
-
const { bulletType, lineType, lineColor, hideLine, minHeight, bulletSize, position } = this.pearlChainVerticalItemAttributes || {};
|
|
352
|
-
const bulletTypeClass = position && position > 0 && position <= 100 ? "sbb-pearl-chain-vertical-item__bullet--past" : `sbb-pearl-chain-vertical-item__bullet--${bulletType}`;
|
|
353
|
-
return html`
|
|
354
|
-
<div class="sbb-pearl-chain-vertical-item__column" style="height: ${minHeight}px;">
|
|
355
|
-
<slot name="left"></slot>
|
|
356
|
-
</div>
|
|
357
|
-
<div
|
|
358
|
-
aria-hidden="true"
|
|
359
|
-
class="sbb-pearl-chain-vertical-item__column sbb-pearl-chain-vertical-item__column--middle"
|
|
360
|
-
>
|
|
361
|
-
${!hideLine ? html`<div
|
|
362
|
-
style="--sbb-pearl-chain-vertical-item-leg-status:${position}%;"
|
|
363
|
-
class="sbb-pearl-chain-vertical-item__line sbb-pearl-chain-vertical-item__line--${lineType} sbb-pearl-chain-vertical-item__line--${lineColor}"
|
|
364
|
-
></div>` : nothing}
|
|
365
|
-
${bulletType ? html`<div
|
|
366
|
-
class="sbb-pearl-chain-vertical-item__bullet sbb-pearl-chain-vertical-item__bullet--${bulletSize} ${bulletTypeClass}"
|
|
367
|
-
></div>` : nothing}
|
|
368
|
-
${position && position > 0 ? html`<div
|
|
369
|
-
style="--sbb-pearl-chain-vertical-item-position:${position}%;"
|
|
370
|
-
class="sbb-pearl-chain-vertical-item__bullet--position"
|
|
371
|
-
></div>` : nothing}
|
|
372
|
-
</div>
|
|
373
|
-
<slot name="right"></slot>
|
|
374
|
-
`;
|
|
375
|
-
}
|
|
376
|
-
}, _pearlChainVerticalItemAttributes_accessor_storage = new WeakMap(), _disableAnimation_accessor_storage = new WeakMap(), _classThis = _a, (() => {
|
|
377
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
378
|
-
_pearlChainVerticalItemAttributes_decorators = [property({ attribute: "pearl-chain-vertical-item-attributes", type: Object })];
|
|
379
|
-
_disableAnimation_decorators = [forceType(), property({ attribute: "disable-animation", reflect: true, type: Boolean })];
|
|
380
|
-
__esDecorate(_a, null, _pearlChainVerticalItemAttributes_decorators, { kind: "accessor", name: "pearlChainVerticalItemAttributes", static: false, private: false, access: { has: (obj) => "pearlChainVerticalItemAttributes" in obj, get: (obj) => obj.pearlChainVerticalItemAttributes, set: (obj, value) => {
|
|
381
|
-
obj.pearlChainVerticalItemAttributes = value;
|
|
382
|
-
} }, metadata: _metadata }, _pearlChainVerticalItemAttributes_initializers, _pearlChainVerticalItemAttributes_extraInitializers);
|
|
383
|
-
__esDecorate(_a, null, _disableAnimation_decorators, { kind: "accessor", name: "disableAnimation", static: false, private: false, access: { has: (obj) => "disableAnimation" in obj, get: (obj) => obj.disableAnimation, set: (obj, value) => {
|
|
384
|
-
obj.disableAnimation = value;
|
|
385
|
-
} }, metadata: _metadata }, _disableAnimation_initializers, _disableAnimation_extraInitializers);
|
|
386
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
387
|
-
_classThis = _classDescriptor.value;
|
|
388
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
389
|
-
})(), _a.styles = style, __runInitializers(_classThis, _classExtraInitializers), _a;
|
|
390
|
-
return _classThis;
|
|
391
|
-
})();
|
|
1
|
+
import { SbbPearlChainVerticalItemElement } from "./pearl-chain-vertical-item/pearl-chain-vertical-item.js";
|
|
392
2
|
export {
|
|
393
3
|
SbbPearlChainVerticalItemElement
|
|
394
4
|
};
|
|
395
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVhcmwtY2hhaW4tdmVydGljYWwtaXRlbS5qcyIsInNvdXJjZXMiOltdLCJzb3VyY2VzQ29udGVudCI6W10sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7In0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pearl-chain-vertical.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/pearl-chain-vertical.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"pearl-chain-vertical.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/pearl-chain-vertical.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gDAAgD,CAAC"}
|
|
@@ -1,45 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { css, LitElement, html } from "lit";
|
|
3
|
-
import { customElement } from "lit/decorators.js";
|
|
4
|
-
const style = css`*,
|
|
5
|
-
::before,
|
|
6
|
-
::after {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
--sbb-pearl-chain-vertical-width: 100%;
|
|
12
|
-
display: block;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.sbb-pearl-chain-vertical {
|
|
16
|
-
display: table;
|
|
17
|
-
width: var(--sbb-pearl-chain-vertical-width);
|
|
18
|
-
}`;
|
|
19
|
-
let SbbPearlChainVerticalElement = (() => {
|
|
20
|
-
var _a;
|
|
21
|
-
let _classDecorators = [customElement("sbb-pearl-chain-vertical")];
|
|
22
|
-
let _classDescriptor;
|
|
23
|
-
let _classExtraInitializers = [];
|
|
24
|
-
let _classThis;
|
|
25
|
-
let _classSuper = LitElement;
|
|
26
|
-
_a = class extends _classSuper {
|
|
27
|
-
render() {
|
|
28
|
-
return html`
|
|
29
|
-
<div class="sbb-pearl-chain-vertical">
|
|
30
|
-
<slot></slot>
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
34
|
-
}, _classThis = _a, (() => {
|
|
35
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
36
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
37
|
-
_classThis = _classDescriptor.value;
|
|
38
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
39
|
-
})(), _a.styles = style, __runInitializers(_classThis, _classExtraInitializers), _a;
|
|
40
|
-
return _classThis;
|
|
41
|
-
})();
|
|
1
|
+
import { SbbPearlChainVerticalElement } from "./pearl-chain-vertical/pearl-chain-vertical.js";
|
|
42
2
|
export {
|
|
43
3
|
SbbPearlChainVerticalElement
|
|
44
4
|
};
|
|
45
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVhcmwtY2hhaW4tdmVydGljYWwuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOyJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pearl-chain.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/pearl-chain.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"pearl-chain.d.ts","sourceRoot":"","sources":["../../../src/elements-experimental/pearl-chain.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8BAA8B,CAAC"}
|