@sbb-esta/lyne-elements-experimental 0.0.0 → 0.52.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.
Files changed (123) hide show
  1. package/README.md +55 -0
  2. package/constants-ClrwyPF-.js +12 -0
  3. package/core/datetime/date-helper.d.ts +27 -0
  4. package/core/datetime/date-helper.d.ts.map +1 -0
  5. package/core/datetime.d.ts +2 -0
  6. package/core/datetime.d.ts.map +1 -0
  7. package/core/datetime.js +199 -0
  8. package/core/timetable/access-leg-helper.d.ts +26 -0
  9. package/core/timetable/access-leg-helper.d.ts.map +1 -0
  10. package/core/timetable/timetable-helper.d.ts +9 -0
  11. package/core/timetable/timetable-helper.d.ts.map +1 -0
  12. package/core/timetable/timetable-properties.d.ts +308 -0
  13. package/core/timetable/timetable-properties.d.ts.map +1 -0
  14. package/core/timetable.d.ts +4 -0
  15. package/core/timetable.d.ts.map +1 -0
  16. package/core/timetable.js +123 -0
  17. package/custom-elements.json +1606 -0
  18. package/development/constants-D72r1E-c.js +22 -0
  19. package/development/core/datetime/date-helper.d.ts +27 -0
  20. package/development/core/datetime/date-helper.d.ts.map +1 -0
  21. package/development/core/datetime.d.ts +2 -0
  22. package/development/core/datetime.d.ts.map +1 -0
  23. package/development/core/datetime.js +297 -0
  24. package/development/core/timetable/access-leg-helper.d.ts +26 -0
  25. package/development/core/timetable/access-leg-helper.d.ts.map +1 -0
  26. package/development/core/timetable/timetable-helper.d.ts +9 -0
  27. package/development/core/timetable/timetable-helper.d.ts.map +1 -0
  28. package/development/core/timetable/timetable-properties.d.ts +308 -0
  29. package/development/core/timetable/timetable-properties.d.ts.map +1 -0
  30. package/development/core/timetable.d.ts +4 -0
  31. package/development/core/timetable.d.ts.map +1 -0
  32. package/development/core/timetable.js +164 -0
  33. package/development/differenceInMinutes-D47vcSvy.js +21 -0
  34. package/development/format-WI2gcVKN.js +1379 -0
  35. package/development/isValid-YTpbhEHG.js +52 -0
  36. package/development/journey-summary/journey-summary.d.ts +57 -0
  37. package/development/journey-summary/journey-summary.d.ts.map +1 -0
  38. package/development/journey-summary.d.ts +2 -0
  39. package/development/journey-summary.d.ts.map +1 -0
  40. package/development/journey-summary.js +210 -0
  41. package/development/pearl-chain/pearl-chain.d.ts +41 -0
  42. package/development/pearl-chain/pearl-chain.d.ts.map +1 -0
  43. package/development/pearl-chain/pearl-chain.sample-data.d.ts +121 -0
  44. package/development/pearl-chain/pearl-chain.sample-data.d.ts.map +1 -0
  45. package/development/pearl-chain-time/pearl-chain-time.d.ts +44 -0
  46. package/development/pearl-chain-time/pearl-chain-time.d.ts.map +1 -0
  47. package/development/pearl-chain-time.d.ts +2 -0
  48. package/development/pearl-chain-time.d.ts.map +1 -0
  49. package/development/pearl-chain-time.js +209 -0
  50. package/development/pearl-chain-vertical/pearl-chain-vertical.d.ts +17 -0
  51. package/development/pearl-chain-vertical/pearl-chain-vertical.d.ts.map +1 -0
  52. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts +35 -0
  53. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts.map +1 -0
  54. package/development/pearl-chain-vertical-item.d.ts +2 -0
  55. package/development/pearl-chain-vertical-item.d.ts.map +1 -0
  56. package/development/pearl-chain-vertical-item.js +369 -0
  57. package/development/pearl-chain-vertical.d.ts +2 -0
  58. package/development/pearl-chain-vertical.d.ts.map +1 -0
  59. package/development/pearl-chain-vertical.js +59 -0
  60. package/development/pearl-chain.d.ts +2 -0
  61. package/development/pearl-chain.d.ts.map +1 -0
  62. package/development/pearl-chain.js +599 -0
  63. package/development/timetable-duration/timetable-duration.d.ts +23 -0
  64. package/development/timetable-duration/timetable-duration.d.ts.map +1 -0
  65. package/development/timetable-duration/timetable-duration.sample-data.d.ts +6 -0
  66. package/development/timetable-duration/timetable-duration.sample-data.d.ts.map +1 -0
  67. package/development/timetable-duration.d.ts +2 -0
  68. package/development/timetable-duration.d.ts.map +1 -0
  69. package/development/timetable-duration.js +107 -0
  70. package/development/timetable-row/timetable-row.d.ts +79 -0
  71. package/development/timetable-row/timetable-row.d.ts.map +1 -0
  72. package/development/timetable-row/timetable-row.sample-data.d.ts +24 -0
  73. package/development/timetable-row/timetable-row.sample-data.d.ts.map +1 -0
  74. package/development/timetable-row.d.ts +2 -0
  75. package/development/timetable-row.d.ts.map +1 -0
  76. package/development/timetable-row.js +696 -0
  77. package/differenceInMinutes-CDpgJIgL.js +19 -0
  78. package/format-CEz7IGRJ.js +1168 -0
  79. package/index.d.ts +19 -0
  80. package/index.js +17 -0
  81. package/isValid-Df_caLp4.js +40 -0
  82. package/journey-summary/journey-summary.d.ts +57 -0
  83. package/journey-summary/journey-summary.d.ts.map +1 -0
  84. package/journey-summary.d.ts +2 -0
  85. package/journey-summary.d.ts.map +1 -0
  86. package/journey-summary.js +130 -0
  87. package/package.json +79 -2
  88. package/pearl-chain/pearl-chain.d.ts +41 -0
  89. package/pearl-chain/pearl-chain.d.ts.map +1 -0
  90. package/pearl-chain/pearl-chain.sample-data.d.ts +121 -0
  91. package/pearl-chain/pearl-chain.sample-data.d.ts.map +1 -0
  92. package/pearl-chain-time/pearl-chain-time.d.ts +44 -0
  93. package/pearl-chain-time/pearl-chain-time.d.ts.map +1 -0
  94. package/pearl-chain-time.d.ts +2 -0
  95. package/pearl-chain-time.d.ts.map +1 -0
  96. package/pearl-chain-time.js +90 -0
  97. package/pearl-chain-vertical/pearl-chain-vertical.d.ts +17 -0
  98. package/pearl-chain-vertical/pearl-chain-vertical.d.ts.map +1 -0
  99. package/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts +35 -0
  100. package/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts.map +1 -0
  101. package/pearl-chain-vertical-item.d.ts +2 -0
  102. package/pearl-chain-vertical-item.d.ts.map +1 -0
  103. package/pearl-chain-vertical-item.js +48 -0
  104. package/pearl-chain-vertical.d.ts +2 -0
  105. package/pearl-chain-vertical.d.ts.map +1 -0
  106. package/pearl-chain-vertical.js +24 -0
  107. package/pearl-chain.d.ts +2 -0
  108. package/pearl-chain.d.ts.map +1 -0
  109. package/pearl-chain.js +148 -0
  110. package/timetable-duration/timetable-duration.d.ts +23 -0
  111. package/timetable-duration/timetable-duration.d.ts.map +1 -0
  112. package/timetable-duration/timetable-duration.sample-data.d.ts +6 -0
  113. package/timetable-duration/timetable-duration.sample-data.d.ts.map +1 -0
  114. package/timetable-duration.d.ts +2 -0
  115. package/timetable-duration.d.ts.map +1 -0
  116. package/timetable-duration.js +37 -0
  117. package/timetable-row/timetable-row.d.ts +79 -0
  118. package/timetable-row/timetable-row.d.ts.map +1 -0
  119. package/timetable-row/timetable-row.sample-data.d.ts +24 -0
  120. package/timetable-row/timetable-row.sample-data.d.ts.map +1 -0
  121. package/timetable-row.d.ts +2 -0
  122. package/timetable-row.d.ts.map +1 -0
  123. package/timetable-row.js +392 -0
@@ -0,0 +1,1606 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "journey-summary.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "It displays journey's information.",
12
+ "name": "SbbJourneySummaryElement",
13
+ "slots": [
14
+ {
15
+ "description": "Use this slot to add `sbb-button`s or other interactive elements.",
16
+ "name": "content"
17
+ }
18
+ ],
19
+ "members": [
20
+ {
21
+ "kind": "field",
22
+ "name": "trip",
23
+ "type": {
24
+ "text": "InterfaceSbbJourneySummaryAttributes"
25
+ },
26
+ "privacy": "public",
27
+ "description": "The trip prop",
28
+ "attribute": "trip"
29
+ },
30
+ {
31
+ "kind": "field",
32
+ "name": "tripBack",
33
+ "type": {
34
+ "text": "InterfaceSbbJourneySummaryAttributes | undefined"
35
+ },
36
+ "privacy": "public",
37
+ "description": "The tripBack prop",
38
+ "attribute": "trip-back"
39
+ },
40
+ {
41
+ "kind": "field",
42
+ "name": "roundTrip",
43
+ "type": {
44
+ "text": "boolean | undefined"
45
+ },
46
+ "privacy": "public",
47
+ "description": "The RoundTrip prop. This prop controls if one or two arrows are displayed in the header.",
48
+ "attribute": "round-trip"
49
+ },
50
+ {
51
+ "kind": "field",
52
+ "name": "headerLevel",
53
+ "type": {
54
+ "text": "SbbTitleLevel"
55
+ },
56
+ "privacy": "public",
57
+ "default": "'3'",
58
+ "description": "Heading level of the journey header element (e.g. h1-h6).",
59
+ "attribute": "header-level"
60
+ },
61
+ {
62
+ "kind": "field",
63
+ "name": "disableAnimation",
64
+ "type": {
65
+ "text": "boolean | undefined"
66
+ },
67
+ "privacy": "public",
68
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
69
+ "attribute": "disable-animation"
70
+ },
71
+ {
72
+ "kind": "field",
73
+ "name": "now",
74
+ "privacy": "public",
75
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
76
+ "type": {
77
+ "text": "Date"
78
+ },
79
+ "attribute": "now",
80
+ "default": "null"
81
+ },
82
+ {
83
+ "kind": "field",
84
+ "name": "_now",
85
+ "type": {
86
+ "text": "Date | null"
87
+ },
88
+ "privacy": "private",
89
+ "default": "null"
90
+ },
91
+ {
92
+ "kind": "field",
93
+ "name": "_hasContentSlot",
94
+ "type": {
95
+ "text": "boolean"
96
+ },
97
+ "privacy": "private",
98
+ "default": "false"
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "_language",
103
+ "privacy": "private",
104
+ "default": "new SbbLanguageController(this)"
105
+ },
106
+ {
107
+ "kind": "method",
108
+ "name": "_renderJourneyStart",
109
+ "privacy": "private",
110
+ "return": {
111
+ "type": {
112
+ "text": "TemplateResult | undefined"
113
+ }
114
+ },
115
+ "parameters": [
116
+ {
117
+ "name": "departureTime",
118
+ "type": {
119
+ "text": "Date | undefined"
120
+ }
121
+ },
122
+ {
123
+ "name": "duration",
124
+ "type": {
125
+ "text": "number | undefined"
126
+ }
127
+ }
128
+ ],
129
+ "description": "renders the date of the journey or if it is the current or next day"
130
+ },
131
+ {
132
+ "kind": "method",
133
+ "name": "_renderJourneyVias",
134
+ "privacy": "private",
135
+ "return": {
136
+ "type": {
137
+ "text": "TemplateResult"
138
+ }
139
+ },
140
+ "parameters": [
141
+ {
142
+ "name": "vias",
143
+ "type": {
144
+ "text": "string[]"
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "kind": "method",
151
+ "name": "_renderJourneyInformation",
152
+ "privacy": "private",
153
+ "return": {
154
+ "type": {
155
+ "text": "TemplateResult"
156
+ }
157
+ },
158
+ "parameters": [
159
+ {
160
+ "name": "trip",
161
+ "type": {
162
+ "text": "InterfaceSbbJourneySummaryAttributes"
163
+ }
164
+ }
165
+ ]
166
+ }
167
+ ],
168
+ "attributes": [
169
+ {
170
+ "name": "trip",
171
+ "type": {
172
+ "text": "InterfaceSbbJourneySummaryAttributes"
173
+ },
174
+ "description": "The trip prop",
175
+ "fieldName": "trip"
176
+ },
177
+ {
178
+ "name": "trip-back",
179
+ "type": {
180
+ "text": "InterfaceSbbJourneySummaryAttributes | undefined"
181
+ },
182
+ "description": "The tripBack prop",
183
+ "fieldName": "tripBack"
184
+ },
185
+ {
186
+ "name": "round-trip",
187
+ "type": {
188
+ "text": "boolean | undefined"
189
+ },
190
+ "description": "The RoundTrip prop. This prop controls if one or two arrows are displayed in the header.",
191
+ "fieldName": "roundTrip"
192
+ },
193
+ {
194
+ "name": "header-level",
195
+ "type": {
196
+ "text": "SbbTitleLevel"
197
+ },
198
+ "default": "'3'",
199
+ "description": "Heading level of the journey header element (e.g. h1-h6).",
200
+ "fieldName": "headerLevel"
201
+ },
202
+ {
203
+ "name": "disable-animation",
204
+ "type": {
205
+ "text": "boolean | undefined"
206
+ },
207
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
208
+ "fieldName": "disableAnimation"
209
+ },
210
+ {
211
+ "name": "now",
212
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
213
+ "type": {
214
+ "text": "Date"
215
+ },
216
+ "fieldName": "now"
217
+ }
218
+ ],
219
+ "superclass": {
220
+ "name": "LitElement",
221
+ "package": "lit"
222
+ },
223
+ "tagName": "sbb-journey-summary",
224
+ "customElement": true
225
+ }
226
+ ],
227
+ "exports": [
228
+ {
229
+ "kind": "js",
230
+ "name": "SbbJourneySummaryElement",
231
+ "declaration": {
232
+ "name": "SbbJourneySummaryElement",
233
+ "module": "journey-summary.js"
234
+ }
235
+ },
236
+ {
237
+ "kind": "custom-element-definition",
238
+ "name": "sbb-journey-summary",
239
+ "declaration": {
240
+ "name": "SbbJourneySummaryElement",
241
+ "module": "journey-summary.js"
242
+ }
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "kind": "javascript-module",
248
+ "path": "pearl-chain-time.js",
249
+ "declarations": [
250
+ {
251
+ "kind": "class",
252
+ "description": "Combined with `sbb-pearl-chain`, it displays walk time information.",
253
+ "name": "SbbPearlChainTimeElement",
254
+ "members": [
255
+ {
256
+ "kind": "field",
257
+ "name": "legs",
258
+ "type": {
259
+ "text": "(Leg | PtRideLeg)[]"
260
+ },
261
+ "privacy": "public",
262
+ "description": "define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
263
+ "attribute": "legs"
264
+ },
265
+ {
266
+ "kind": "field",
267
+ "name": "departureTime",
268
+ "type": {
269
+ "text": "string | undefined"
270
+ },
271
+ "privacy": "public",
272
+ "description": "Prop to render the departure time - will be formatted as \"H:mm\"",
273
+ "attribute": "departure-time"
274
+ },
275
+ {
276
+ "kind": "field",
277
+ "name": "arrivalTime",
278
+ "type": {
279
+ "text": "string | undefined"
280
+ },
281
+ "privacy": "public",
282
+ "description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
283
+ "attribute": "arrival-time"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "departureWalk",
288
+ "type": {
289
+ "text": "number | undefined"
290
+ },
291
+ "privacy": "public",
292
+ "description": "Optional prop to render the walk time (in minutes) before departure",
293
+ "attribute": "departure-walk"
294
+ },
295
+ {
296
+ "kind": "field",
297
+ "name": "arrivalWalk",
298
+ "type": {
299
+ "text": "number | undefined"
300
+ },
301
+ "privacy": "public",
302
+ "description": "Optional prop to render the walk time (in minutes) after arrival",
303
+ "attribute": "arrival-walk"
304
+ },
305
+ {
306
+ "kind": "field",
307
+ "name": "disableAnimation",
308
+ "type": {
309
+ "text": "boolean | undefined"
310
+ },
311
+ "privacy": "public",
312
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
313
+ "attribute": "disable-animation"
314
+ },
315
+ {
316
+ "kind": "field",
317
+ "name": "now",
318
+ "privacy": "public",
319
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
320
+ "type": {
321
+ "text": "Date"
322
+ },
323
+ "attribute": "now",
324
+ "default": "null"
325
+ },
326
+ {
327
+ "kind": "field",
328
+ "name": "_now",
329
+ "type": {
330
+ "text": "Date | null"
331
+ },
332
+ "privacy": "private",
333
+ "default": "null"
334
+ },
335
+ {
336
+ "kind": "field",
337
+ "name": "_language",
338
+ "privacy": "private",
339
+ "default": "new SbbLanguageController(this)"
340
+ }
341
+ ],
342
+ "attributes": [
343
+ {
344
+ "name": "legs",
345
+ "type": {
346
+ "text": "(Leg | PtRideLeg)[]"
347
+ },
348
+ "description": "define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
349
+ "fieldName": "legs"
350
+ },
351
+ {
352
+ "name": "departure-time",
353
+ "type": {
354
+ "text": "string | undefined"
355
+ },
356
+ "description": "Prop to render the departure time - will be formatted as \"H:mm\"",
357
+ "fieldName": "departureTime"
358
+ },
359
+ {
360
+ "name": "arrival-time",
361
+ "type": {
362
+ "text": "string | undefined"
363
+ },
364
+ "description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
365
+ "fieldName": "arrivalTime"
366
+ },
367
+ {
368
+ "name": "departure-walk",
369
+ "type": {
370
+ "text": "number | undefined"
371
+ },
372
+ "description": "Optional prop to render the walk time (in minutes) before departure",
373
+ "fieldName": "departureWalk"
374
+ },
375
+ {
376
+ "name": "arrival-walk",
377
+ "type": {
378
+ "text": "number | undefined"
379
+ },
380
+ "description": "Optional prop to render the walk time (in minutes) after arrival",
381
+ "fieldName": "arrivalWalk"
382
+ },
383
+ {
384
+ "name": "disable-animation",
385
+ "type": {
386
+ "text": "boolean | undefined"
387
+ },
388
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
389
+ "fieldName": "disableAnimation"
390
+ },
391
+ {
392
+ "name": "now",
393
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
394
+ "type": {
395
+ "text": "Date"
396
+ },
397
+ "fieldName": "now"
398
+ }
399
+ ],
400
+ "superclass": {
401
+ "name": "LitElement",
402
+ "package": "lit"
403
+ },
404
+ "tagName": "sbb-pearl-chain-time",
405
+ "customElement": true
406
+ }
407
+ ],
408
+ "exports": [
409
+ {
410
+ "kind": "js",
411
+ "name": "SbbPearlChainTimeElement",
412
+ "declaration": {
413
+ "name": "SbbPearlChainTimeElement",
414
+ "module": "pearl-chain-time.js"
415
+ }
416
+ },
417
+ {
418
+ "kind": "custom-element-definition",
419
+ "name": "sbb-pearl-chain-time",
420
+ "declaration": {
421
+ "name": "SbbPearlChainTimeElement",
422
+ "module": "pearl-chain-time.js"
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "kind": "javascript-module",
429
+ "path": "pearl-chain-vertical-item.js",
430
+ "declarations": [
431
+ {
432
+ "kind": "class",
433
+ "description": "It displays details about connection between stations.",
434
+ "name": "SbbPearlChainVerticalItemElement",
435
+ "slots": [
436
+ {
437
+ "description": "Content of the left side of the item",
438
+ "name": "left"
439
+ },
440
+ {
441
+ "description": "Content of the right side of the item",
442
+ "name": "right"
443
+ }
444
+ ],
445
+ "members": [
446
+ {
447
+ "kind": "field",
448
+ "name": "pearlChainVerticalItemAttributes",
449
+ "type": {
450
+ "text": "PearlChainVerticalItemAttributes"
451
+ },
452
+ "privacy": "public",
453
+ "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
454
+ "attribute": "pearl-chain-vertical-item-attributes"
455
+ },
456
+ {
457
+ "kind": "field",
458
+ "name": "disableAnimation",
459
+ "type": {
460
+ "text": "boolean | undefined"
461
+ },
462
+ "privacy": "public",
463
+ "description": "If true, the position won't be animated.",
464
+ "attribute": "disable-animation",
465
+ "reflects": true
466
+ }
467
+ ],
468
+ "attributes": [
469
+ {
470
+ "name": "pearl-chain-vertical-item-attributes",
471
+ "type": {
472
+ "text": "PearlChainVerticalItemAttributes"
473
+ },
474
+ "description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
475
+ "fieldName": "pearlChainVerticalItemAttributes"
476
+ },
477
+ {
478
+ "name": "disable-animation",
479
+ "type": {
480
+ "text": "boolean | undefined"
481
+ },
482
+ "description": "If true, the position won't be animated.",
483
+ "fieldName": "disableAnimation"
484
+ }
485
+ ],
486
+ "superclass": {
487
+ "name": "LitElement",
488
+ "package": "lit"
489
+ },
490
+ "tagName": "sbb-pearl-chain-vertical-item",
491
+ "customElement": true
492
+ }
493
+ ],
494
+ "exports": [
495
+ {
496
+ "kind": "js",
497
+ "name": "SbbPearlChainVerticalItemElement",
498
+ "declaration": {
499
+ "name": "SbbPearlChainVerticalItemElement",
500
+ "module": "pearl-chain-vertical-item.js"
501
+ }
502
+ },
503
+ {
504
+ "kind": "custom-element-definition",
505
+ "name": "sbb-pearl-chain-vertical-item",
506
+ "declaration": {
507
+ "name": "SbbPearlChainVerticalItemElement",
508
+ "module": "pearl-chain-vertical-item.js"
509
+ }
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "kind": "javascript-module",
515
+ "path": "pearl-chain-vertical.js",
516
+ "declarations": [
517
+ {
518
+ "kind": "class",
519
+ "description": "It can be used as a container for the `sbb-pearl-chain-vertical-item` component.",
520
+ "name": "SbbPearlChainVerticalElement",
521
+ "slots": [
522
+ {
523
+ "description": "The unnamed slot is used for the `sbb-pearl-chain-vertical-item` component.",
524
+ "name": ""
525
+ }
526
+ ],
527
+ "members": [],
528
+ "superclass": {
529
+ "name": "LitElement",
530
+ "package": "lit"
531
+ },
532
+ "tagName": "sbb-pearl-chain-vertical",
533
+ "customElement": true
534
+ }
535
+ ],
536
+ "exports": [
537
+ {
538
+ "kind": "js",
539
+ "name": "SbbPearlChainVerticalElement",
540
+ "declaration": {
541
+ "name": "SbbPearlChainVerticalElement",
542
+ "module": "pearl-chain-vertical.js"
543
+ }
544
+ },
545
+ {
546
+ "kind": "custom-element-definition",
547
+ "name": "sbb-pearl-chain-vertical",
548
+ "declaration": {
549
+ "name": "SbbPearlChainVerticalElement",
550
+ "module": "pearl-chain-vertical.js"
551
+ }
552
+ }
553
+ ]
554
+ },
555
+ {
556
+ "kind": "javascript-module",
557
+ "path": "pearl-chain.js",
558
+ "declarations": [
559
+ {
560
+ "kind": "class",
561
+ "description": "It visually displays journey information.",
562
+ "name": "SbbPearlChainElement",
563
+ "members": [
564
+ {
565
+ "kind": "field",
566
+ "name": "legs",
567
+ "type": {
568
+ "text": "(Leg | PtRideLeg)[] | undefined"
569
+ },
570
+ "privacy": "public",
571
+ "description": "Define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
572
+ "attribute": "legs"
573
+ },
574
+ {
575
+ "kind": "field",
576
+ "name": "disableAnimation",
577
+ "type": {
578
+ "text": "boolean | undefined"
579
+ },
580
+ "privacy": "public",
581
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
582
+ "attribute": "disable-animation"
583
+ },
584
+ {
585
+ "kind": "field",
586
+ "name": "now",
587
+ "privacy": "public",
588
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
589
+ "type": {
590
+ "text": "Date | null"
591
+ },
592
+ "attribute": "now",
593
+ "default": "null"
594
+ },
595
+ {
596
+ "kind": "field",
597
+ "name": "_now",
598
+ "type": {
599
+ "text": "Date | null"
600
+ },
601
+ "privacy": "private",
602
+ "default": "null"
603
+ },
604
+ {
605
+ "kind": "method",
606
+ "name": "_getAllDuration",
607
+ "privacy": "private",
608
+ "return": {
609
+ "type": {
610
+ "text": "number"
611
+ }
612
+ },
613
+ "parameters": [
614
+ {
615
+ "name": "legs",
616
+ "type": {
617
+ "text": "PtRideLeg[]"
618
+ }
619
+ }
620
+ ]
621
+ },
622
+ {
623
+ "kind": "method",
624
+ "name": "_isAllCancelled",
625
+ "privacy": "private",
626
+ "return": {
627
+ "type": {
628
+ "text": "boolean"
629
+ }
630
+ },
631
+ "parameters": [
632
+ {
633
+ "name": "legs",
634
+ "type": {
635
+ "text": "PtRideLeg[]"
636
+ }
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "kind": "method",
642
+ "name": "_getRelativeDuration",
643
+ "privacy": "private",
644
+ "return": {
645
+ "type": {
646
+ "text": "number"
647
+ }
648
+ },
649
+ "parameters": [
650
+ {
651
+ "name": "legs",
652
+ "type": {
653
+ "text": "PtRideLeg[]"
654
+ }
655
+ },
656
+ {
657
+ "name": "leg",
658
+ "type": {
659
+ "text": "PtRideLeg"
660
+ }
661
+ }
662
+ ]
663
+ },
664
+ {
665
+ "kind": "method",
666
+ "name": "_getProgress",
667
+ "privacy": "private",
668
+ "return": {
669
+ "type": {
670
+ "text": "number"
671
+ }
672
+ },
673
+ "parameters": [
674
+ {
675
+ "name": "now",
676
+ "type": {
677
+ "text": "Date"
678
+ }
679
+ },
680
+ {
681
+ "name": "start",
682
+ "optional": true,
683
+ "type": {
684
+ "text": "Date"
685
+ }
686
+ },
687
+ {
688
+ "name": "end",
689
+ "optional": true,
690
+ "type": {
691
+ "text": "Date"
692
+ }
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "kind": "method",
698
+ "name": "_getStatus",
699
+ "privacy": "private",
700
+ "return": {
701
+ "type": {
702
+ "text": "Status"
703
+ }
704
+ },
705
+ "parameters": [
706
+ {
707
+ "name": "now",
708
+ "type": {
709
+ "text": "Date"
710
+ }
711
+ },
712
+ {
713
+ "name": "end",
714
+ "optional": true,
715
+ "type": {
716
+ "text": "Date"
717
+ }
718
+ },
719
+ {
720
+ "name": "start",
721
+ "optional": true,
722
+ "type": {
723
+ "text": "Date"
724
+ }
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "kind": "method",
730
+ "name": "_renderPosition",
731
+ "privacy": "private",
732
+ "return": {
733
+ "type": {
734
+ "text": "TemplateResult | undefined"
735
+ }
736
+ },
737
+ "parameters": [
738
+ {
739
+ "name": "now",
740
+ "type": {
741
+ "text": "Date"
742
+ }
743
+ },
744
+ {
745
+ "name": "start",
746
+ "optional": true,
747
+ "type": {
748
+ "text": "Date"
749
+ }
750
+ },
751
+ {
752
+ "name": "end",
753
+ "optional": true,
754
+ "type": {
755
+ "text": "Date"
756
+ }
757
+ }
758
+ ]
759
+ }
760
+ ],
761
+ "attributes": [
762
+ {
763
+ "name": "legs",
764
+ "type": {
765
+ "text": "(Leg | PtRideLeg)[] | undefined"
766
+ },
767
+ "description": "Define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
768
+ "fieldName": "legs"
769
+ },
770
+ {
771
+ "name": "disable-animation",
772
+ "type": {
773
+ "text": "boolean | undefined"
774
+ },
775
+ "description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
776
+ "fieldName": "disableAnimation"
777
+ },
778
+ {
779
+ "name": "now",
780
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
781
+ "type": {
782
+ "text": "Date | null"
783
+ },
784
+ "fieldName": "now"
785
+ }
786
+ ],
787
+ "superclass": {
788
+ "name": "LitElement",
789
+ "package": "lit"
790
+ },
791
+ "tagName": "sbb-pearl-chain",
792
+ "customElement": true
793
+ }
794
+ ],
795
+ "exports": [
796
+ {
797
+ "kind": "js",
798
+ "name": "SbbPearlChainElement",
799
+ "declaration": {
800
+ "name": "SbbPearlChainElement",
801
+ "module": "pearl-chain.js"
802
+ }
803
+ },
804
+ {
805
+ "kind": "custom-element-definition",
806
+ "name": "sbb-pearl-chain",
807
+ "declaration": {
808
+ "name": "SbbPearlChainElement",
809
+ "module": "pearl-chain.js"
810
+ }
811
+ }
812
+ ]
813
+ },
814
+ {
815
+ "kind": "javascript-module",
816
+ "path": "timetable-duration.js",
817
+ "declarations": [
818
+ {
819
+ "kind": "class",
820
+ "description": "Used in `sbb-timetable-row`, it displays information about the trip duration.",
821
+ "name": "SbbTimetableDurationElement",
822
+ "members": [
823
+ {
824
+ "kind": "field",
825
+ "name": "config",
826
+ "type": {
827
+ "text": "string"
828
+ },
829
+ "privacy": "public",
830
+ "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
831
+ "attribute": "config"
832
+ },
833
+ {
834
+ "kind": "field",
835
+ "name": "_language",
836
+ "privacy": "private",
837
+ "default": "new SbbLanguageController(this)"
838
+ }
839
+ ],
840
+ "attributes": [
841
+ {
842
+ "name": "config",
843
+ "type": {
844
+ "text": "string"
845
+ },
846
+ "description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
847
+ "fieldName": "config"
848
+ }
849
+ ],
850
+ "superclass": {
851
+ "name": "LitElement",
852
+ "package": "lit"
853
+ },
854
+ "tagName": "sbb-timetable-duration",
855
+ "customElement": true
856
+ }
857
+ ],
858
+ "exports": [
859
+ {
860
+ "kind": "js",
861
+ "name": "SbbTimetableDurationElement",
862
+ "declaration": {
863
+ "name": "SbbTimetableDurationElement",
864
+ "module": "timetable-duration.js"
865
+ }
866
+ },
867
+ {
868
+ "kind": "custom-element-definition",
869
+ "name": "sbb-timetable-duration",
870
+ "declaration": {
871
+ "name": "SbbTimetableDurationElement",
872
+ "module": "timetable-duration.js"
873
+ }
874
+ }
875
+ ]
876
+ },
877
+ {
878
+ "kind": "javascript-module",
879
+ "path": "timetable-row.js",
880
+ "declarations": [
881
+ {
882
+ "kind": "function",
883
+ "name": "renderIconProduct",
884
+ "return": {
885
+ "type": {
886
+ "text": "TemplateResult"
887
+ }
888
+ },
889
+ "parameters": [
890
+ {
891
+ "name": "icon",
892
+ "type": {
893
+ "text": "string"
894
+ }
895
+ },
896
+ {
897
+ "name": "name",
898
+ "type": {
899
+ "text": "string"
900
+ }
901
+ }
902
+ ]
903
+ },
904
+ {
905
+ "kind": "function",
906
+ "name": "renderStringProduct",
907
+ "return": {
908
+ "type": {
909
+ "text": "TemplateResult"
910
+ }
911
+ },
912
+ "parameters": [
913
+ {
914
+ "name": "vehicleName",
915
+ "type": {
916
+ "text": "string"
917
+ }
918
+ },
919
+ {
920
+ "name": "line",
921
+ "optional": true,
922
+ "type": {
923
+ "text": "string | null"
924
+ }
925
+ }
926
+ ]
927
+ },
928
+ {
929
+ "kind": "function",
930
+ "name": "sortSituation",
931
+ "return": {
932
+ "type": {
933
+ "text": "PtSituation[]"
934
+ }
935
+ },
936
+ "parameters": [
937
+ {
938
+ "name": "situations",
939
+ "type": {
940
+ "text": "PtSituation[]"
941
+ }
942
+ }
943
+ ]
944
+ },
945
+ {
946
+ "kind": "function",
947
+ "name": "getHimIcon",
948
+ "return": {
949
+ "type": {
950
+ "text": "HimCus"
951
+ }
952
+ },
953
+ "parameters": [
954
+ {
955
+ "name": "situation",
956
+ "type": {
957
+ "text": "PtSituation"
958
+ }
959
+ }
960
+ ]
961
+ },
962
+ {
963
+ "kind": "function",
964
+ "name": "getCus",
965
+ "return": {
966
+ "type": {
967
+ "text": "HimCus"
968
+ }
969
+ },
970
+ "parameters": [
971
+ {
972
+ "name": "trip",
973
+ "type": {
974
+ "text": "ITripItem"
975
+ }
976
+ },
977
+ {
978
+ "name": "currentLanguage",
979
+ "type": {
980
+ "text": "string"
981
+ }
982
+ }
983
+ ]
984
+ },
985
+ {
986
+ "kind": "function",
987
+ "name": "filterNotices",
988
+ "return": {
989
+ "type": {
990
+ "text": "Notice[]"
991
+ }
992
+ },
993
+ "parameters": [
994
+ {
995
+ "name": "notices",
996
+ "type": {
997
+ "text": "Notice[]"
998
+ }
999
+ }
1000
+ ]
1001
+ },
1002
+ {
1003
+ "kind": "function",
1004
+ "name": "handleNotices",
1005
+ "return": {
1006
+ "type": {
1007
+ "text": "Notice[]"
1008
+ }
1009
+ },
1010
+ "parameters": [
1011
+ {
1012
+ "name": "notices",
1013
+ "type": {
1014
+ "text": "Notice[]"
1015
+ }
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "kind": "class",
1021
+ "description": "It displays information about the trip, acting as a container for all the `sbb-timetable-*` components.",
1022
+ "name": "SbbTimetableRowElement",
1023
+ "members": [
1024
+ {
1025
+ "kind": "field",
1026
+ "name": "trip",
1027
+ "type": {
1028
+ "text": "ITripItem"
1029
+ },
1030
+ "privacy": "public",
1031
+ "description": "The trip Prop.",
1032
+ "attribute": "trip"
1033
+ },
1034
+ {
1035
+ "kind": "field",
1036
+ "name": "price",
1037
+ "type": {
1038
+ "text": "Price | undefined"
1039
+ },
1040
+ "privacy": "public",
1041
+ "description": "The price Prop, which consists of the data for the badge.",
1042
+ "attribute": "price"
1043
+ },
1044
+ {
1045
+ "kind": "field",
1046
+ "name": "disableAnimation",
1047
+ "type": {
1048
+ "text": "boolean | undefined"
1049
+ },
1050
+ "privacy": "public",
1051
+ "description": "This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated.",
1052
+ "attribute": "disable-animation",
1053
+ "reflects": true
1054
+ },
1055
+ {
1056
+ "kind": "field",
1057
+ "name": "boarding",
1058
+ "type": {
1059
+ "text": "Boarding | undefined"
1060
+ },
1061
+ "privacy": "public",
1062
+ "description": "This will be forwarded to the notices section",
1063
+ "attribute": "boarding"
1064
+ },
1065
+ {
1066
+ "kind": "field",
1067
+ "name": "loadingTrip",
1068
+ "type": {
1069
+ "text": "boolean"
1070
+ },
1071
+ "privacy": "public",
1072
+ "default": "false",
1073
+ "description": "The loading state -\nwhen this is true it will be render skeleton with an idling animation",
1074
+ "attribute": "loading-trip"
1075
+ },
1076
+ {
1077
+ "kind": "field",
1078
+ "name": "loadingPrice",
1079
+ "type": {
1080
+ "text": "boolean"
1081
+ },
1082
+ "privacy": "public",
1083
+ "default": "false",
1084
+ "description": "The loading state -\nwhen this is true it will be render skeleton with an idling animation",
1085
+ "attribute": "loading-price"
1086
+ },
1087
+ {
1088
+ "kind": "field",
1089
+ "name": "cardActionLabel",
1090
+ "type": {
1091
+ "text": "string | undefined"
1092
+ },
1093
+ "privacy": "public",
1094
+ "description": "Hidden label for the card action. It overrides the automatically generated accessibility text for the component. Use this prop to provide custom accessibility information for the component.",
1095
+ "attribute": "card-action-label"
1096
+ },
1097
+ {
1098
+ "kind": "field",
1099
+ "name": "accessibilityExpanded",
1100
+ "type": {
1101
+ "text": "boolean | undefined"
1102
+ },
1103
+ "privacy": "public",
1104
+ "description": "This will be forwarded to the sbb-card component as aria-expanded.",
1105
+ "attribute": "accessibility-expanded"
1106
+ },
1107
+ {
1108
+ "kind": "field",
1109
+ "name": "active",
1110
+ "type": {
1111
+ "text": "boolean | undefined"
1112
+ },
1113
+ "privacy": "public",
1114
+ "description": "When this prop is true the sbb-card will be in the active state.",
1115
+ "attribute": "active"
1116
+ },
1117
+ {
1118
+ "kind": "field",
1119
+ "name": "now",
1120
+ "privacy": "public",
1121
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
1122
+ "type": {
1123
+ "text": "Date"
1124
+ },
1125
+ "attribute": "now",
1126
+ "default": "null"
1127
+ },
1128
+ {
1129
+ "kind": "field",
1130
+ "name": "_now",
1131
+ "type": {
1132
+ "text": "Date | null"
1133
+ },
1134
+ "privacy": "private",
1135
+ "default": "null"
1136
+ },
1137
+ {
1138
+ "kind": "field",
1139
+ "name": "_language",
1140
+ "privacy": "private",
1141
+ "default": "new SbbLanguageController(this)"
1142
+ },
1143
+ {
1144
+ "kind": "method",
1145
+ "name": "_renderSkeleton",
1146
+ "privacy": "private",
1147
+ "return": {
1148
+ "type": {
1149
+ "text": "TemplateResult"
1150
+ }
1151
+ },
1152
+ "description": "The skeleton render function for the loading state"
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "_getQuayType",
1157
+ "privacy": "private",
1158
+ "return": {
1159
+ "type": {
1160
+ "text": "any"
1161
+ }
1162
+ },
1163
+ "parameters": [
1164
+ {
1165
+ "name": "vehicleMode",
1166
+ "type": {
1167
+ "text": "string"
1168
+ }
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "kind": "method",
1174
+ "name": "_getQuayTypeStrings",
1175
+ "privacy": "private",
1176
+ "return": {
1177
+ "type": {
1178
+ "text": "{ long: string; short: string } | null"
1179
+ }
1180
+ }
1181
+ },
1182
+ {
1183
+ "kind": "method",
1184
+ "name": "_renderQuayType",
1185
+ "privacy": "private",
1186
+ "return": {
1187
+ "type": {
1188
+ "text": "TemplateResult | undefined"
1189
+ }
1190
+ },
1191
+ "description": "map Quay"
1192
+ },
1193
+ {
1194
+ "kind": "method",
1195
+ "name": "_handleHimCus",
1196
+ "privacy": "private",
1197
+ "return": {
1198
+ "type": {
1199
+ "text": "{ cus: HimCus | null; him: HimCus | null }"
1200
+ }
1201
+ },
1202
+ "parameters": [
1203
+ {
1204
+ "name": "trip",
1205
+ "type": {
1206
+ "text": "ITripItem"
1207
+ }
1208
+ }
1209
+ ]
1210
+ },
1211
+ {
1212
+ "kind": "method",
1213
+ "name": "_getAccessibilityText",
1214
+ "privacy": "private",
1215
+ "return": {
1216
+ "type": {
1217
+ "text": "string"
1218
+ }
1219
+ },
1220
+ "parameters": [
1221
+ {
1222
+ "name": "trip",
1223
+ "type": {
1224
+ "text": "ITripItem"
1225
+ }
1226
+ }
1227
+ ]
1228
+ }
1229
+ ],
1230
+ "attributes": [
1231
+ {
1232
+ "name": "trip",
1233
+ "type": {
1234
+ "text": "ITripItem"
1235
+ },
1236
+ "description": "The trip Prop.",
1237
+ "fieldName": "trip"
1238
+ },
1239
+ {
1240
+ "name": "price",
1241
+ "type": {
1242
+ "text": "Price | undefined"
1243
+ },
1244
+ "description": "The price Prop, which consists of the data for the badge.",
1245
+ "fieldName": "price"
1246
+ },
1247
+ {
1248
+ "name": "disable-animation",
1249
+ "type": {
1250
+ "text": "boolean | undefined"
1251
+ },
1252
+ "description": "This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated.",
1253
+ "fieldName": "disableAnimation"
1254
+ },
1255
+ {
1256
+ "name": "boarding",
1257
+ "type": {
1258
+ "text": "Boarding | undefined"
1259
+ },
1260
+ "description": "This will be forwarded to the notices section",
1261
+ "fieldName": "boarding"
1262
+ },
1263
+ {
1264
+ "name": "loading-trip",
1265
+ "type": {
1266
+ "text": "boolean"
1267
+ },
1268
+ "default": "false",
1269
+ "description": "The loading state -\nwhen this is true it will be render skeleton with an idling animation",
1270
+ "fieldName": "loadingTrip"
1271
+ },
1272
+ {
1273
+ "name": "loading-price",
1274
+ "type": {
1275
+ "text": "boolean"
1276
+ },
1277
+ "default": "false",
1278
+ "description": "The loading state -\nwhen this is true it will be render skeleton with an idling animation",
1279
+ "fieldName": "loadingPrice"
1280
+ },
1281
+ {
1282
+ "name": "card-action-label",
1283
+ "type": {
1284
+ "text": "string | undefined"
1285
+ },
1286
+ "description": "Hidden label for the card action. It overrides the automatically generated accessibility text for the component. Use this prop to provide custom accessibility information for the component.",
1287
+ "fieldName": "cardActionLabel"
1288
+ },
1289
+ {
1290
+ "name": "accessibility-expanded",
1291
+ "type": {
1292
+ "text": "boolean | undefined"
1293
+ },
1294
+ "description": "This will be forwarded to the sbb-card component as aria-expanded.",
1295
+ "fieldName": "accessibilityExpanded"
1296
+ },
1297
+ {
1298
+ "name": "active",
1299
+ "type": {
1300
+ "text": "boolean | undefined"
1301
+ },
1302
+ "description": "When this prop is true the sbb-card will be in the active state.",
1303
+ "fieldName": "active"
1304
+ },
1305
+ {
1306
+ "name": "now",
1307
+ "description": "A configured date which acts as the current date instead of the real current date. Recommended for testing purposes.",
1308
+ "type": {
1309
+ "text": "Date"
1310
+ },
1311
+ "fieldName": "now"
1312
+ }
1313
+ ],
1314
+ "superclass": {
1315
+ "name": "LitElement",
1316
+ "package": "lit"
1317
+ },
1318
+ "tagName": "sbb-timetable-row",
1319
+ "customElement": true
1320
+ }
1321
+ ],
1322
+ "exports": [
1323
+ {
1324
+ "kind": "js",
1325
+ "name": "renderIconProduct",
1326
+ "declaration": {
1327
+ "name": "renderIconProduct",
1328
+ "module": "timetable-row.js"
1329
+ }
1330
+ },
1331
+ {
1332
+ "kind": "js",
1333
+ "name": "renderStringProduct",
1334
+ "declaration": {
1335
+ "name": "renderStringProduct",
1336
+ "module": "timetable-row.js"
1337
+ }
1338
+ },
1339
+ {
1340
+ "kind": "js",
1341
+ "name": "sortSituation",
1342
+ "declaration": {
1343
+ "name": "sortSituation",
1344
+ "module": "timetable-row.js"
1345
+ }
1346
+ },
1347
+ {
1348
+ "kind": "js",
1349
+ "name": "getHimIcon",
1350
+ "declaration": {
1351
+ "name": "getHimIcon",
1352
+ "module": "timetable-row.js"
1353
+ }
1354
+ },
1355
+ {
1356
+ "kind": "js",
1357
+ "name": "getCus",
1358
+ "declaration": {
1359
+ "name": "getCus",
1360
+ "module": "timetable-row.js"
1361
+ }
1362
+ },
1363
+ {
1364
+ "kind": "js",
1365
+ "name": "filterNotices",
1366
+ "declaration": {
1367
+ "name": "filterNotices",
1368
+ "module": "timetable-row.js"
1369
+ }
1370
+ },
1371
+ {
1372
+ "kind": "js",
1373
+ "name": "handleNotices",
1374
+ "declaration": {
1375
+ "name": "handleNotices",
1376
+ "module": "timetable-row.js"
1377
+ }
1378
+ },
1379
+ {
1380
+ "kind": "js",
1381
+ "name": "SbbTimetableRowElement",
1382
+ "declaration": {
1383
+ "name": "SbbTimetableRowElement",
1384
+ "module": "timetable-row.js"
1385
+ }
1386
+ },
1387
+ {
1388
+ "kind": "custom-element-definition",
1389
+ "name": "sbb-timetable-row",
1390
+ "declaration": {
1391
+ "name": "SbbTimetableRowElement",
1392
+ "module": "timetable-row.js"
1393
+ }
1394
+ }
1395
+ ]
1396
+ },
1397
+ {
1398
+ "kind": "javascript-module",
1399
+ "path": "core/datetime.js",
1400
+ "declarations": [
1401
+ {
1402
+ "kind": "function",
1403
+ "name": "removeTimezoneFromISOTimeString",
1404
+ "return": {
1405
+ "type": {
1406
+ "text": ""
1407
+ }
1408
+ },
1409
+ "parameters": [
1410
+ {
1411
+ "name": "isoTime",
1412
+ "optional": true,
1413
+ "type": {
1414
+ "text": "string"
1415
+ },
1416
+ "description": "the iso time with the timezone offset"
1417
+ }
1418
+ ],
1419
+ "description": "This function removes the offset of a ISO date string. This needs to be done to make sure that the offset is ignored.\nIf it is not removed the time would be converted to the browsers local time.\nExample: \"2022-08-29T09:30:00+03:00\" would be changed to \"2022-08-29T08:30:00+02:00\" --> not the desired outcome, as we want to use the time in the timezone and not the local time.\n\nAfter the offset is removed a new date is created in the browsers local time. This ensures that the time of the ISO date string is displayed and not a converted time.\nExample: \"2022-08-29T09:30:00+03:00\" would be changed to \"2022-08-29T09:30:00+02:00\" --> desired outcome\nAttention: This function does not convert the time to the correct time in the local timezone. It is a workaround to make sure, that the given time is displayed without being converted.\n\nOffset: Difference between the timezone and Coordinated Universal Time."
1420
+ },
1421
+ {
1422
+ "kind": "function",
1423
+ "name": "durationToTime",
1424
+ "return": {
1425
+ "type": {
1426
+ "text": ""
1427
+ }
1428
+ },
1429
+ "parameters": [
1430
+ {
1431
+ "name": "duration",
1432
+ "type": {
1433
+ "text": "number"
1434
+ },
1435
+ "description": "duration in minutes"
1436
+ },
1437
+ {
1438
+ "name": "currentLanguage",
1439
+ "optional": true,
1440
+ "type": {
1441
+ "text": "string"
1442
+ },
1443
+ "description": "currentLanguage"
1444
+ }
1445
+ ],
1446
+ "description": "This function converts a duration number to date string with specific format"
1447
+ }
1448
+ ],
1449
+ "exports": [
1450
+ {
1451
+ "kind": "js",
1452
+ "name": "removeTimezoneFromISOTimeString",
1453
+ "declaration": {
1454
+ "name": "removeTimezoneFromISOTimeString",
1455
+ "module": "core/datetime.js"
1456
+ }
1457
+ },
1458
+ {
1459
+ "kind": "js",
1460
+ "name": "durationToTime",
1461
+ "declaration": {
1462
+ "name": "durationToTime",
1463
+ "module": "core/datetime.js"
1464
+ }
1465
+ }
1466
+ ]
1467
+ },
1468
+ {
1469
+ "kind": "javascript-module",
1470
+ "path": "core/timetable.js",
1471
+ "declarations": [
1472
+ {
1473
+ "kind": "function",
1474
+ "name": "getDepartureArrivalTimeAttribute",
1475
+ "return": {
1476
+ "type": {
1477
+ "text": ""
1478
+ }
1479
+ },
1480
+ "parameters": [
1481
+ {
1482
+ "name": "legs",
1483
+ "type": {
1484
+ "text": "Leg[]"
1485
+ },
1486
+ "description": ": An array of Leg objects representing the journey legs."
1487
+ },
1488
+ {
1489
+ "name": "departureWalk",
1490
+ "type": {
1491
+ "text": "number"
1492
+ },
1493
+ "description": ": The walking distance in minutes from the departure point to the first leg."
1494
+ },
1495
+ {
1496
+ "name": "arrivalWalk",
1497
+ "type": {
1498
+ "text": "number"
1499
+ },
1500
+ "description": ": The walking distance in minutes from the last leg to the arrival point."
1501
+ },
1502
+ {
1503
+ "name": "currentLanguage",
1504
+ "type": {
1505
+ "text": "string"
1506
+ },
1507
+ "description": ": The current language for localization."
1508
+ }
1509
+ ]
1510
+ },
1511
+ {
1512
+ "kind": "function",
1513
+ "name": "isRideLeg",
1514
+ "return": {
1515
+ "type": {
1516
+ "text": "leg is Extract<Leg, { __typename: 'PTRideLeg' }>"
1517
+ }
1518
+ },
1519
+ "parameters": [
1520
+ {
1521
+ "name": "leg",
1522
+ "type": {
1523
+ "text": "any"
1524
+ }
1525
+ }
1526
+ ]
1527
+ },
1528
+ {
1529
+ "kind": "function",
1530
+ "name": "isConnectionLeg",
1531
+ "return": {
1532
+ "type": {
1533
+ "text": "leg is Extract<Leg, { __typename: 'PTConnectionLeg' }>"
1534
+ }
1535
+ },
1536
+ "parameters": [
1537
+ {
1538
+ "name": "leg",
1539
+ "type": {
1540
+ "text": "any"
1541
+ }
1542
+ }
1543
+ ]
1544
+ },
1545
+ {
1546
+ "kind": "function",
1547
+ "name": "extractTimeAndStringFromNoticeText",
1548
+ "return": {
1549
+ "type": {
1550
+ "text": "{ duration: number; text: string }"
1551
+ }
1552
+ },
1553
+ "parameters": [
1554
+ {
1555
+ "name": "notice",
1556
+ "optional": true,
1557
+ "type": {
1558
+ "text": "Notice"
1559
+ }
1560
+ }
1561
+ ]
1562
+ }
1563
+ ],
1564
+ "exports": [
1565
+ {
1566
+ "kind": "js",
1567
+ "name": "getDepartureArrivalTimeAttribute",
1568
+ "declaration": {
1569
+ "name": "getDepartureArrivalTimeAttribute",
1570
+ "module": "core/timetable.js"
1571
+ }
1572
+ },
1573
+ {
1574
+ "kind": "js",
1575
+ "name": "isRideLeg",
1576
+ "declaration": {
1577
+ "name": "isRideLeg",
1578
+ "module": "core/timetable.js"
1579
+ }
1580
+ },
1581
+ {
1582
+ "kind": "js",
1583
+ "name": "isConnectionLeg",
1584
+ "declaration": {
1585
+ "name": "isConnectionLeg",
1586
+ "module": "core/timetable.js"
1587
+ }
1588
+ },
1589
+ {
1590
+ "kind": "js",
1591
+ "name": "extractTimeAndStringFromNoticeText",
1592
+ "declaration": {
1593
+ "name": "extractTimeAndStringFromNoticeText",
1594
+ "module": "core/timetable.js"
1595
+ }
1596
+ }
1597
+ ]
1598
+ },
1599
+ {
1600
+ "kind": "javascript-module",
1601
+ "path": "core/timetable/timetable-properties.js",
1602
+ "declarations": [],
1603
+ "exports": []
1604
+ }
1605
+ ]
1606
+ }