@sbb-esta/lyne-elements-experimental 1.13.0 → 1.14.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.js +3 -9
- package/core/timetable.js +10 -64
- package/custom-elements.json +90 -40
- package/development/core/datetime.js +4 -10
- package/development/core/timetable.js +11 -65
- package/development/differenceInMinutes-Cmyza6nm.js +1 -1
- package/development/format-DTy5_IOt.js +1 -1
- package/development/isValid-DO_pHwcW.js +1 -1
- package/development/journey-summary/journey-summary.d.ts +6 -6
- package/development/journey-summary/journey-summary.d.ts.map +1 -1
- package/development/journey-summary.js +180 -82
- package/development/pearl-chain/pearl-chain.d.ts +2 -2
- package/development/pearl-chain/pearl-chain.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.d.ts +7 -7
- package/development/pearl-chain-time/pearl-chain-time.d.ts.map +1 -1
- package/development/pearl-chain-time.js +176 -68
- package/development/pearl-chain-vertical/pearl-chain-vertical.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts +2 -2
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts.map +1 -1
- package/development/pearl-chain-vertical-item.js +67 -30
- package/development/pearl-chain-vertical.js +22 -21
- package/development/pearl-chain.js +210 -166
- package/development/timetable-duration/timetable-duration.d.ts +1 -1
- package/development/timetable-duration/timetable-duration.d.ts.map +1 -1
- package/development/timetable-duration.js +72 -45
- package/development/timetable-row/timetable-row.d.ts +10 -10
- package/development/timetable-row/timetable-row.d.ts.map +1 -1
- package/development/timetable-row.js +337 -205
- package/journey-summary/journey-summary.d.ts +6 -6
- package/journey-summary/journey-summary.d.ts.map +1 -1
- package/journey-summary.js +156 -100
- package/package.json +4 -3
- package/pearl-chain/pearl-chain.d.ts +2 -2
- package/pearl-chain/pearl-chain.d.ts.map +1 -1
- package/pearl-chain-time/pearl-chain-time.d.ts +7 -7
- package/pearl-chain-time/pearl-chain-time.d.ts.map +1 -1
- package/pearl-chain-time.js +137 -78
- package/pearl-chain-vertical/pearl-chain-vertical.d.ts.map +1 -1
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts +2 -2
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.d.ts.map +1 -1
- package/pearl-chain-vertical-item.js +57 -34
- package/pearl-chain-vertical.js +17 -18
- package/pearl-chain.js +156 -131
- package/timetable-duration/timetable-duration.d.ts +1 -1
- package/timetable-duration/timetable-duration.d.ts.map +1 -1
- package/timetable-duration.js +48 -30
- package/timetable-row/timetable-row.d.ts +10 -10
- package/timetable-row/timetable-row.d.ts.map +1 -1
- package/timetable-row.js +331 -267
package/core/datetime.js
CHANGED
|
@@ -176,17 +176,11 @@ const re = (t, e) => {
|
|
|
176
176
|
const n = [], r = [];
|
|
177
177
|
let s = Y(0, t);
|
|
178
178
|
const u = S(s, 0);
|
|
179
|
-
u > 0 && (n.push(`${u} d`), e && r.push(
|
|
180
|
-
`${u} ${u > 1 ? h.multiple.long[e] : h.single.long[e]}`
|
|
181
|
-
), s = v(s, u));
|
|
179
|
+
u > 0 && (n.push(`${u} d`), e && r.push(`${u} ${u > 1 ? h.multiple.long[e] : h.single.long[e]}`), s = v(s, u));
|
|
182
180
|
const a = Z(s, 0);
|
|
183
|
-
a > 0 && (n.push(`${a} h`), e && r.push(
|
|
184
|
-
`${a} ${a > 1 ? T.multiple.long[e] : T.single.long[e]}`
|
|
185
|
-
), s = Q(s, a));
|
|
181
|
+
a > 0 && (n.push(`${a} h`), e && r.push(`${a} ${a > 1 ? T.multiple.long[e] : T.single.long[e]}`), s = Q(s, a));
|
|
186
182
|
const c = F(s, 0);
|
|
187
|
-
return c > 0 && (n.push(`${c} min`), e && r.push(
|
|
188
|
-
`${c} ${c > 1 ? p.multiple.long[e] : p.single.long[e]}`
|
|
189
|
-
)), {
|
|
183
|
+
return c > 0 && (n.push(`${c} min`), e && r.push(`${c} ${c > 1 ? p.multiple.long[e] : p.single.long[e]}`)), {
|
|
190
184
|
short: n.join(" "),
|
|
191
185
|
long: r.join(" ")
|
|
192
186
|
};
|
package/core/timetable.js
CHANGED
|
@@ -3,10 +3,7 @@ import { html as f, nothing as b } from "lit";
|
|
|
3
3
|
import "@sbb-esta/lyne-elements/icon.js";
|
|
4
4
|
const $ = (t) => (t == null ? void 0 : t.__typename) === "PTRideLeg", _ = (t) => (t == null ? void 0 : t.__typename) === "PTConnectionLeg", v = (t) => {
|
|
5
5
|
var r, e, i, u, a, s;
|
|
6
|
-
const l = ((r = t == null ? void 0 : t.text) == null ? void 0 : r.template) && t.text.template.indexOf("(") + 1, n = (u = (e = t == null ? void 0 : t.text) == null ? void 0 : e.template) == null ? void 0 : u.substring(
|
|
7
|
-
l || 0,
|
|
8
|
-
(i = t == null ? void 0 : t.text) == null ? void 0 : i.template.indexOf(")")
|
|
9
|
-
);
|
|
6
|
+
const l = ((r = t == null ? void 0 : t.text) == null ? void 0 : r.template) && t.text.template.indexOf("(") + 1, n = (u = (e = t == null ? void 0 : t.text) == null ? void 0 : e.template) == null ? void 0 : u.substring(l || 0, (i = t == null ? void 0 : t.text) == null ? void 0 : i.template.indexOf(")"));
|
|
10
7
|
return {
|
|
11
8
|
duration: n && +n.substring(0, n.length - 1) || 0,
|
|
12
9
|
text: ((s = (a = t == null ? void 0 : t.text) == null ? void 0 : a.template) == null ? void 0 : s.split("(")[0]) || ""
|
|
@@ -23,9 +20,7 @@ function k(t, l) {
|
|
|
23
20
|
}
|
|
24
21
|
function M(t, l, n, r) {
|
|
25
22
|
var u, a, s;
|
|
26
|
-
const e = $(t) ? (a = (u = t == null ? void 0 : t.serviceJourney) == null ? void 0 : u.notices) == null ? void 0 : a.filter(
|
|
27
|
-
(m) => ["CI"].includes(m.name)
|
|
28
|
-
)[0] : null, i = e && v(e);
|
|
23
|
+
const e = $(t) ? (a = (u = t == null ? void 0 : t.serviceJourney) == null ? void 0 : u.notices) == null ? void 0 : a.filter((m) => ["CI"].includes(m.name))[0] : null, i = e && v(e);
|
|
29
24
|
return e ? {
|
|
30
25
|
duration: ((i == null ? void 0 : i.duration) || 0) + (l || 0),
|
|
31
26
|
text: n ? w[r] : (i == null ? void 0 : i.text) || "",
|
|
@@ -34,9 +29,7 @@ function M(t, l, n, r) {
|
|
|
34
29
|
}
|
|
35
30
|
function O(t, l, n, r) {
|
|
36
31
|
var u, a, s;
|
|
37
|
-
const e = $(t) ? (a = (u = t == null ? void 0 : t.serviceJourney) == null ? void 0 : u.notices) == null ? void 0 : a.filter(
|
|
38
|
-
(m) => ["CO"].includes(m.name)
|
|
39
|
-
)[0] : null, i = e && v(e);
|
|
32
|
+
const e = $(t) ? (a = (u = t == null ? void 0 : t.serviceJourney) == null ? void 0 : u.notices) == null ? void 0 : a.filter((m) => ["CO"].includes(m.name))[0] : null, i = e && v(e);
|
|
40
33
|
return e ? {
|
|
41
34
|
duration: ((i == null ? void 0 : i.duration) || 0) + (l || 0),
|
|
42
35
|
text: n ? T[r] : (i == null ? void 0 : i.text) || "",
|
|
@@ -72,42 +65,16 @@ function p(t, l, n, r) {
|
|
|
72
65
|
`;
|
|
73
66
|
}
|
|
74
67
|
function I(t, l, n, r, e) {
|
|
75
|
-
const i = t && t.filter((A) => $(A) || _(A))[0], u = ["YM", "YB", "Y", "YT"], a = k(i, u), s = M(
|
|
76
|
-
i,
|
|
77
|
-
l,
|
|
78
|
-
e,
|
|
79
|
-
r
|
|
80
|
-
), m = l ? {
|
|
68
|
+
const i = t && t.filter((A) => $(A) || _(A))[0], u = ["YM", "YB", "Y", "YT"], a = k(i, u), s = M(i, l, e, r), m = l ? {
|
|
81
69
|
text: w[r],
|
|
82
70
|
duration: l,
|
|
83
71
|
icon: e ? "wheelchair-small" : "walk-small"
|
|
84
72
|
} : null, D = () => a || (m && !s && !a ? m : s || null);
|
|
85
73
|
function L() {
|
|
86
74
|
return f`
|
|
87
|
-
${a ? p(
|
|
88
|
-
a.duration,
|
|
89
|
-
|
|
90
|
-
"left",
|
|
91
|
-
a.icon
|
|
92
|
-
) : b}
|
|
93
|
-
${m && !s && !a ? p(
|
|
94
|
-
m.duration,
|
|
95
|
-
m.text,
|
|
96
|
-
"left",
|
|
97
|
-
m.icon
|
|
98
|
-
) : b}
|
|
99
|
-
${s ? e ? p(
|
|
100
|
-
s.duration,
|
|
101
|
-
s.text,
|
|
102
|
-
"left",
|
|
103
|
-
s.icon
|
|
104
|
-
) : C(
|
|
105
|
-
s.duration,
|
|
106
|
-
s.icon,
|
|
107
|
-
r,
|
|
108
|
-
s.text,
|
|
109
|
-
"departure"
|
|
110
|
-
) : b}
|
|
75
|
+
${a ? p(a.duration, a.text, "left", a.icon) : b}
|
|
76
|
+
${m && !s && !a ? p(m.duration, m.text, "left", m.icon) : b}
|
|
77
|
+
${s ? e ? p(s.duration, s.text, "left", s.icon) : C(s.duration, s.icon, r, s.text, "departure") : b}
|
|
111
78
|
`;
|
|
112
79
|
}
|
|
113
80
|
const h = t && t[t.length - 1], x = (_(h) || $(h)) && h, c = x && k(x, u), o = x && O(x, n, e, r), d = n ? {
|
|
@@ -117,30 +84,9 @@ function I(t, l, n, r, e) {
|
|
|
117
84
|
} : null, R = () => c || (d && !o && !c ? d : o || null);
|
|
118
85
|
function Y() {
|
|
119
86
|
return f`
|
|
120
|
-
${c ? p(
|
|
121
|
-
c.duration,
|
|
122
|
-
|
|
123
|
-
"right",
|
|
124
|
-
c.icon
|
|
125
|
-
) : b}
|
|
126
|
-
${d && !o && !c ? p(
|
|
127
|
-
d.duration,
|
|
128
|
-
d.text,
|
|
129
|
-
"right",
|
|
130
|
-
d.icon
|
|
131
|
-
) : b}
|
|
132
|
-
${o ? e ? p(
|
|
133
|
-
o.duration,
|
|
134
|
-
o.text,
|
|
135
|
-
"right",
|
|
136
|
-
o.icon
|
|
137
|
-
) : C(
|
|
138
|
-
o.duration,
|
|
139
|
-
o.icon,
|
|
140
|
-
r,
|
|
141
|
-
o.text,
|
|
142
|
-
"arrival"
|
|
143
|
-
) : b}
|
|
87
|
+
${c ? p(c.duration, c.text, "right", c.icon) : b}
|
|
88
|
+
${d && !o && !c ? p(d.duration, d.text, "right", d.icon) : b}
|
|
89
|
+
${o ? e ? p(o.duration, o.text, "right", o.icon) : C(o.duration, o.icon, r, o.text, "arrival") : b}
|
|
144
90
|
`;
|
|
145
91
|
}
|
|
146
92
|
return {
|
package/custom-elements.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"text": "InterfaceSbbJourneySummaryAttributes"
|
|
25
25
|
},
|
|
26
26
|
"privacy": "public",
|
|
27
|
+
"default": "null!",
|
|
27
28
|
"description": "The trip prop",
|
|
28
29
|
"attribute": "trip"
|
|
29
30
|
},
|
|
@@ -31,9 +32,10 @@
|
|
|
31
32
|
"kind": "field",
|
|
32
33
|
"name": "tripBack",
|
|
33
34
|
"type": {
|
|
34
|
-
"text": "InterfaceSbbJourneySummaryAttributes
|
|
35
|
+
"text": "InterfaceSbbJourneySummaryAttributes"
|
|
35
36
|
},
|
|
36
37
|
"privacy": "public",
|
|
38
|
+
"default": "null!",
|
|
37
39
|
"description": "The tripBack prop",
|
|
38
40
|
"attribute": "trip-back"
|
|
39
41
|
},
|
|
@@ -41,9 +43,10 @@
|
|
|
41
43
|
"kind": "field",
|
|
42
44
|
"name": "roundTrip",
|
|
43
45
|
"type": {
|
|
44
|
-
"text": "boolean
|
|
46
|
+
"text": "boolean"
|
|
45
47
|
},
|
|
46
48
|
"privacy": "public",
|
|
49
|
+
"default": "false",
|
|
47
50
|
"description": "The RoundTrip prop. This prop controls if one or two arrows are displayed in the header.",
|
|
48
51
|
"attribute": "round-trip"
|
|
49
52
|
},
|
|
@@ -62,9 +65,10 @@
|
|
|
62
65
|
"kind": "field",
|
|
63
66
|
"name": "disableAnimation",
|
|
64
67
|
"type": {
|
|
65
|
-
"text": "boolean
|
|
68
|
+
"text": "boolean"
|
|
66
69
|
},
|
|
67
70
|
"privacy": "public",
|
|
71
|
+
"default": "false",
|
|
68
72
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
69
73
|
"attribute": "disable-animation"
|
|
70
74
|
},
|
|
@@ -72,9 +76,10 @@
|
|
|
72
76
|
"kind": "field",
|
|
73
77
|
"name": "a11yFootpath",
|
|
74
78
|
"type": {
|
|
75
|
-
"text": "boolean
|
|
79
|
+
"text": "boolean"
|
|
76
80
|
},
|
|
77
81
|
"privacy": "public",
|
|
82
|
+
"default": "false",
|
|
78
83
|
"description": "The Footpath attribute for rendering different icons\ntrue: render a11y-icon\nfalse: render walk-icon\ndefault: render walk-icon",
|
|
79
84
|
"attribute": "a11y-footpath"
|
|
80
85
|
},
|
|
@@ -181,22 +186,25 @@
|
|
|
181
186
|
"type": {
|
|
182
187
|
"text": "InterfaceSbbJourneySummaryAttributes"
|
|
183
188
|
},
|
|
189
|
+
"default": "null!",
|
|
184
190
|
"description": "The trip prop",
|
|
185
191
|
"fieldName": "trip"
|
|
186
192
|
},
|
|
187
193
|
{
|
|
188
194
|
"name": "trip-back",
|
|
189
195
|
"type": {
|
|
190
|
-
"text": "InterfaceSbbJourneySummaryAttributes
|
|
196
|
+
"text": "InterfaceSbbJourneySummaryAttributes"
|
|
191
197
|
},
|
|
198
|
+
"default": "null!",
|
|
192
199
|
"description": "The tripBack prop",
|
|
193
200
|
"fieldName": "tripBack"
|
|
194
201
|
},
|
|
195
202
|
{
|
|
196
203
|
"name": "round-trip",
|
|
197
204
|
"type": {
|
|
198
|
-
"text": "boolean
|
|
205
|
+
"text": "boolean"
|
|
199
206
|
},
|
|
207
|
+
"default": "false",
|
|
200
208
|
"description": "The RoundTrip prop. This prop controls if one or two arrows are displayed in the header.",
|
|
201
209
|
"fieldName": "roundTrip"
|
|
202
210
|
},
|
|
@@ -212,16 +220,18 @@
|
|
|
212
220
|
{
|
|
213
221
|
"name": "disable-animation",
|
|
214
222
|
"type": {
|
|
215
|
-
"text": "boolean
|
|
223
|
+
"text": "boolean"
|
|
216
224
|
},
|
|
225
|
+
"default": "false",
|
|
217
226
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
218
227
|
"fieldName": "disableAnimation"
|
|
219
228
|
},
|
|
220
229
|
{
|
|
221
230
|
"name": "a11y-footpath",
|
|
222
231
|
"type": {
|
|
223
|
-
"text": "boolean
|
|
232
|
+
"text": "boolean"
|
|
224
233
|
},
|
|
234
|
+
"default": "false",
|
|
225
235
|
"description": "The Footpath attribute for rendering different icons\ntrue: render a11y-icon\nfalse: render walk-icon\ndefault: render walk-icon",
|
|
226
236
|
"fieldName": "a11yFootpath"
|
|
227
237
|
},
|
|
@@ -277,6 +287,7 @@
|
|
|
277
287
|
"text": "(Leg | PtRideLeg)[]"
|
|
278
288
|
},
|
|
279
289
|
"privacy": "public",
|
|
290
|
+
"default": "[]",
|
|
280
291
|
"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%.",
|
|
281
292
|
"attribute": "legs"
|
|
282
293
|
},
|
|
@@ -284,9 +295,10 @@
|
|
|
284
295
|
"kind": "field",
|
|
285
296
|
"name": "departureTime",
|
|
286
297
|
"type": {
|
|
287
|
-
"text": "string
|
|
298
|
+
"text": "string"
|
|
288
299
|
},
|
|
289
300
|
"privacy": "public",
|
|
301
|
+
"default": "''",
|
|
290
302
|
"description": "Prop to render the departure time - will be formatted as \"H:mm\"",
|
|
291
303
|
"attribute": "departure-time"
|
|
292
304
|
},
|
|
@@ -294,9 +306,10 @@
|
|
|
294
306
|
"kind": "field",
|
|
295
307
|
"name": "arrivalTime",
|
|
296
308
|
"type": {
|
|
297
|
-
"text": "string
|
|
309
|
+
"text": "string"
|
|
298
310
|
},
|
|
299
311
|
"privacy": "public",
|
|
312
|
+
"default": "''",
|
|
300
313
|
"description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
|
|
301
314
|
"attribute": "arrival-time"
|
|
302
315
|
},
|
|
@@ -304,9 +317,10 @@
|
|
|
304
317
|
"kind": "field",
|
|
305
318
|
"name": "departureWalk",
|
|
306
319
|
"type": {
|
|
307
|
-
"text": "number
|
|
320
|
+
"text": "number"
|
|
308
321
|
},
|
|
309
322
|
"privacy": "public",
|
|
323
|
+
"default": "NaN",
|
|
310
324
|
"description": "Optional prop to render the walk time (in minutes) before departure",
|
|
311
325
|
"attribute": "departure-walk"
|
|
312
326
|
},
|
|
@@ -314,9 +328,10 @@
|
|
|
314
328
|
"kind": "field",
|
|
315
329
|
"name": "arrivalWalk",
|
|
316
330
|
"type": {
|
|
317
|
-
"text": "number
|
|
331
|
+
"text": "number"
|
|
318
332
|
},
|
|
319
333
|
"privacy": "public",
|
|
334
|
+
"default": "NaN",
|
|
320
335
|
"description": "Optional prop to render the walk time (in minutes) after arrival",
|
|
321
336
|
"attribute": "arrival-walk"
|
|
322
337
|
},
|
|
@@ -324,9 +339,10 @@
|
|
|
324
339
|
"kind": "field",
|
|
325
340
|
"name": "disableAnimation",
|
|
326
341
|
"type": {
|
|
327
|
-
"text": "boolean
|
|
342
|
+
"text": "boolean"
|
|
328
343
|
},
|
|
329
344
|
"privacy": "public",
|
|
345
|
+
"default": "false",
|
|
330
346
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
331
347
|
"attribute": "disable-animation"
|
|
332
348
|
},
|
|
@@ -334,9 +350,10 @@
|
|
|
334
350
|
"kind": "field",
|
|
335
351
|
"name": "a11yFootpath",
|
|
336
352
|
"type": {
|
|
337
|
-
"text": "boolean
|
|
353
|
+
"text": "boolean"
|
|
338
354
|
},
|
|
339
355
|
"privacy": "public",
|
|
356
|
+
"default": "false",
|
|
340
357
|
"description": "Optional prop to render wheelchair-small instead of walk-small",
|
|
341
358
|
"attribute": "a11y-footpath"
|
|
342
359
|
},
|
|
@@ -373,54 +390,61 @@
|
|
|
373
390
|
"type": {
|
|
374
391
|
"text": "(Leg | PtRideLeg)[]"
|
|
375
392
|
},
|
|
393
|
+
"default": "[]",
|
|
376
394
|
"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%.",
|
|
377
395
|
"fieldName": "legs"
|
|
378
396
|
},
|
|
379
397
|
{
|
|
380
398
|
"name": "departure-time",
|
|
381
399
|
"type": {
|
|
382
|
-
"text": "string
|
|
400
|
+
"text": "string"
|
|
383
401
|
},
|
|
402
|
+
"default": "''",
|
|
384
403
|
"description": "Prop to render the departure time - will be formatted as \"H:mm\"",
|
|
385
404
|
"fieldName": "departureTime"
|
|
386
405
|
},
|
|
387
406
|
{
|
|
388
407
|
"name": "arrival-time",
|
|
389
408
|
"type": {
|
|
390
|
-
"text": "string
|
|
409
|
+
"text": "string"
|
|
391
410
|
},
|
|
411
|
+
"default": "''",
|
|
392
412
|
"description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
|
|
393
413
|
"fieldName": "arrivalTime"
|
|
394
414
|
},
|
|
395
415
|
{
|
|
396
416
|
"name": "departure-walk",
|
|
397
417
|
"type": {
|
|
398
|
-
"text": "number
|
|
418
|
+
"text": "number"
|
|
399
419
|
},
|
|
420
|
+
"default": "NaN",
|
|
400
421
|
"description": "Optional prop to render the walk time (in minutes) before departure",
|
|
401
422
|
"fieldName": "departureWalk"
|
|
402
423
|
},
|
|
403
424
|
{
|
|
404
425
|
"name": "arrival-walk",
|
|
405
426
|
"type": {
|
|
406
|
-
"text": "number
|
|
427
|
+
"text": "number"
|
|
407
428
|
},
|
|
429
|
+
"default": "NaN",
|
|
408
430
|
"description": "Optional prop to render the walk time (in minutes) after arrival",
|
|
409
431
|
"fieldName": "arrivalWalk"
|
|
410
432
|
},
|
|
411
433
|
{
|
|
412
434
|
"name": "disable-animation",
|
|
413
435
|
"type": {
|
|
414
|
-
"text": "boolean
|
|
436
|
+
"text": "boolean"
|
|
415
437
|
},
|
|
438
|
+
"default": "false",
|
|
416
439
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
417
440
|
"fieldName": "disableAnimation"
|
|
418
441
|
},
|
|
419
442
|
{
|
|
420
443
|
"name": "a11y-footpath",
|
|
421
444
|
"type": {
|
|
422
|
-
"text": "boolean
|
|
445
|
+
"text": "boolean"
|
|
423
446
|
},
|
|
447
|
+
"default": "false",
|
|
424
448
|
"description": "Optional prop to render wheelchair-small instead of walk-small",
|
|
425
449
|
"fieldName": "a11yFootpath"
|
|
426
450
|
},
|
|
@@ -486,6 +510,7 @@
|
|
|
486
510
|
"text": "PearlChainVerticalItemAttributes"
|
|
487
511
|
},
|
|
488
512
|
"privacy": "public",
|
|
513
|
+
"default": "null!",
|
|
489
514
|
"description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
|
|
490
515
|
"attribute": "pearl-chain-vertical-item-attributes"
|
|
491
516
|
},
|
|
@@ -493,9 +518,10 @@
|
|
|
493
518
|
"kind": "field",
|
|
494
519
|
"name": "disableAnimation",
|
|
495
520
|
"type": {
|
|
496
|
-
"text": "boolean
|
|
521
|
+
"text": "boolean"
|
|
497
522
|
},
|
|
498
523
|
"privacy": "public",
|
|
524
|
+
"default": "false",
|
|
499
525
|
"description": "If true, the position won't be animated.",
|
|
500
526
|
"attribute": "disable-animation",
|
|
501
527
|
"reflects": true
|
|
@@ -507,14 +533,16 @@
|
|
|
507
533
|
"type": {
|
|
508
534
|
"text": "PearlChainVerticalItemAttributes"
|
|
509
535
|
},
|
|
536
|
+
"default": "null!",
|
|
510
537
|
"description": "The pearlChainVerticalItemAttributes Prop for styling the bullets and line.",
|
|
511
538
|
"fieldName": "pearlChainVerticalItemAttributes"
|
|
512
539
|
},
|
|
513
540
|
{
|
|
514
541
|
"name": "disable-animation",
|
|
515
542
|
"type": {
|
|
516
|
-
"text": "boolean
|
|
543
|
+
"text": "boolean"
|
|
517
544
|
},
|
|
545
|
+
"default": "false",
|
|
518
546
|
"description": "If true, the position won't be animated.",
|
|
519
547
|
"fieldName": "disableAnimation"
|
|
520
548
|
}
|
|
@@ -601,9 +629,10 @@
|
|
|
601
629
|
"kind": "field",
|
|
602
630
|
"name": "legs",
|
|
603
631
|
"type": {
|
|
604
|
-
"text": "(Leg | PtRideLeg)[]
|
|
632
|
+
"text": "(Leg | PtRideLeg)[]"
|
|
605
633
|
},
|
|
606
634
|
"privacy": "public",
|
|
635
|
+
"default": "[]",
|
|
607
636
|
"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%.",
|
|
608
637
|
"attribute": "legs"
|
|
609
638
|
},
|
|
@@ -611,9 +640,10 @@
|
|
|
611
640
|
"kind": "field",
|
|
612
641
|
"name": "disableAnimation",
|
|
613
642
|
"type": {
|
|
614
|
-
"text": "boolean
|
|
643
|
+
"text": "boolean"
|
|
615
644
|
},
|
|
616
645
|
"privacy": "public",
|
|
646
|
+
"default": "false",
|
|
617
647
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
618
648
|
"attribute": "disable-animation"
|
|
619
649
|
},
|
|
@@ -798,16 +828,18 @@
|
|
|
798
828
|
{
|
|
799
829
|
"name": "legs",
|
|
800
830
|
"type": {
|
|
801
|
-
"text": "(Leg | PtRideLeg)[]
|
|
831
|
+
"text": "(Leg | PtRideLeg)[]"
|
|
802
832
|
},
|
|
833
|
+
"default": "[]",
|
|
803
834
|
"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%.",
|
|
804
835
|
"fieldName": "legs"
|
|
805
836
|
},
|
|
806
837
|
{
|
|
807
838
|
"name": "disable-animation",
|
|
808
839
|
"type": {
|
|
809
|
-
"text": "boolean
|
|
840
|
+
"text": "boolean"
|
|
810
841
|
},
|
|
842
|
+
"default": "false",
|
|
811
843
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
812
844
|
"fieldName": "disableAnimation"
|
|
813
845
|
},
|
|
@@ -863,6 +895,7 @@
|
|
|
863
895
|
"text": "string"
|
|
864
896
|
},
|
|
865
897
|
"privacy": "public",
|
|
898
|
+
"default": "''",
|
|
866
899
|
"description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
|
|
867
900
|
"attribute": "config"
|
|
868
901
|
},
|
|
@@ -879,6 +912,7 @@
|
|
|
879
912
|
"type": {
|
|
880
913
|
"text": "string"
|
|
881
914
|
},
|
|
915
|
+
"default": "''",
|
|
882
916
|
"description": "Stringified JSON which defines most of the\ncontent of the component. Please check the\nindividual stories to get an idea of the\nstructure.",
|
|
883
917
|
"fieldName": "config"
|
|
884
918
|
}
|
|
@@ -1064,6 +1098,7 @@
|
|
|
1064
1098
|
"text": "ITripItem"
|
|
1065
1099
|
},
|
|
1066
1100
|
"privacy": "public",
|
|
1101
|
+
"default": "null!",
|
|
1067
1102
|
"description": "The trip Prop.",
|
|
1068
1103
|
"attribute": "trip"
|
|
1069
1104
|
},
|
|
@@ -1071,9 +1106,10 @@
|
|
|
1071
1106
|
"kind": "field",
|
|
1072
1107
|
"name": "price",
|
|
1073
1108
|
"type": {
|
|
1074
|
-
"text": "Price
|
|
1109
|
+
"text": "Price"
|
|
1075
1110
|
},
|
|
1076
1111
|
"privacy": "public",
|
|
1112
|
+
"default": "null!",
|
|
1077
1113
|
"description": "The price Prop, which consists of the data for the badge.",
|
|
1078
1114
|
"attribute": "price"
|
|
1079
1115
|
},
|
|
@@ -1081,9 +1117,10 @@
|
|
|
1081
1117
|
"kind": "field",
|
|
1082
1118
|
"name": "disableAnimation",
|
|
1083
1119
|
"type": {
|
|
1084
|
-
"text": "boolean
|
|
1120
|
+
"text": "boolean"
|
|
1085
1121
|
},
|
|
1086
1122
|
"privacy": "public",
|
|
1123
|
+
"default": "false",
|
|
1087
1124
|
"description": "This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated.",
|
|
1088
1125
|
"attribute": "disable-animation",
|
|
1089
1126
|
"reflects": true
|
|
@@ -1092,9 +1129,10 @@
|
|
|
1092
1129
|
"kind": "field",
|
|
1093
1130
|
"name": "boarding",
|
|
1094
1131
|
"type": {
|
|
1095
|
-
"text": "Boarding
|
|
1132
|
+
"text": "Boarding"
|
|
1096
1133
|
},
|
|
1097
1134
|
"privacy": "public",
|
|
1135
|
+
"default": "null!",
|
|
1098
1136
|
"description": "This will be forwarded to the notices section",
|
|
1099
1137
|
"attribute": "boarding"
|
|
1100
1138
|
},
|
|
@@ -1113,9 +1151,10 @@
|
|
|
1113
1151
|
"kind": "field",
|
|
1114
1152
|
"name": "a11yFootpath",
|
|
1115
1153
|
"type": {
|
|
1116
|
-
"text": "boolean
|
|
1154
|
+
"text": "boolean"
|
|
1117
1155
|
},
|
|
1118
1156
|
"privacy": "public",
|
|
1157
|
+
"default": "false",
|
|
1119
1158
|
"description": "The Footpath attribute for rendering different icons\ntrue: render a11y-icon\nfalse: render walk-icon\ndefault: render walk-icon",
|
|
1120
1159
|
"attribute": "a11y-footpath"
|
|
1121
1160
|
},
|
|
@@ -1134,9 +1173,10 @@
|
|
|
1134
1173
|
"kind": "field",
|
|
1135
1174
|
"name": "cardActionLabel",
|
|
1136
1175
|
"type": {
|
|
1137
|
-
"text": "string
|
|
1176
|
+
"text": "string"
|
|
1138
1177
|
},
|
|
1139
1178
|
"privacy": "public",
|
|
1179
|
+
"default": "''",
|
|
1140
1180
|
"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.",
|
|
1141
1181
|
"attribute": "card-action-label"
|
|
1142
1182
|
},
|
|
@@ -1144,9 +1184,10 @@
|
|
|
1144
1184
|
"kind": "field",
|
|
1145
1185
|
"name": "accessibilityExpanded",
|
|
1146
1186
|
"type": {
|
|
1147
|
-
"text": "boolean
|
|
1187
|
+
"text": "boolean"
|
|
1148
1188
|
},
|
|
1149
1189
|
"privacy": "public",
|
|
1190
|
+
"default": "false",
|
|
1150
1191
|
"description": "This will be forwarded to the sbb-card component as aria-expanded.",
|
|
1151
1192
|
"attribute": "accessibility-expanded"
|
|
1152
1193
|
},
|
|
@@ -1154,9 +1195,10 @@
|
|
|
1154
1195
|
"kind": "field",
|
|
1155
1196
|
"name": "active",
|
|
1156
1197
|
"type": {
|
|
1157
|
-
"text": "boolean
|
|
1198
|
+
"text": "boolean"
|
|
1158
1199
|
},
|
|
1159
1200
|
"privacy": "public",
|
|
1201
|
+
"default": "false",
|
|
1160
1202
|
"description": "When this prop is true the sbb-card will be in the active state.",
|
|
1161
1203
|
"attribute": "active"
|
|
1162
1204
|
},
|
|
@@ -1261,30 +1303,34 @@
|
|
|
1261
1303
|
"type": {
|
|
1262
1304
|
"text": "ITripItem"
|
|
1263
1305
|
},
|
|
1306
|
+
"default": "null!",
|
|
1264
1307
|
"description": "The trip Prop.",
|
|
1265
1308
|
"fieldName": "trip"
|
|
1266
1309
|
},
|
|
1267
1310
|
{
|
|
1268
1311
|
"name": "price",
|
|
1269
1312
|
"type": {
|
|
1270
|
-
"text": "Price
|
|
1313
|
+
"text": "Price"
|
|
1271
1314
|
},
|
|
1315
|
+
"default": "null!",
|
|
1272
1316
|
"description": "The price Prop, which consists of the data for the badge.",
|
|
1273
1317
|
"fieldName": "price"
|
|
1274
1318
|
},
|
|
1275
1319
|
{
|
|
1276
1320
|
"name": "disable-animation",
|
|
1277
1321
|
"type": {
|
|
1278
|
-
"text": "boolean
|
|
1322
|
+
"text": "boolean"
|
|
1279
1323
|
},
|
|
1324
|
+
"default": "false",
|
|
1280
1325
|
"description": "This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated.",
|
|
1281
1326
|
"fieldName": "disableAnimation"
|
|
1282
1327
|
},
|
|
1283
1328
|
{
|
|
1284
1329
|
"name": "boarding",
|
|
1285
1330
|
"type": {
|
|
1286
|
-
"text": "Boarding
|
|
1331
|
+
"text": "Boarding"
|
|
1287
1332
|
},
|
|
1333
|
+
"default": "null!",
|
|
1288
1334
|
"description": "This will be forwarded to the notices section",
|
|
1289
1335
|
"fieldName": "boarding"
|
|
1290
1336
|
},
|
|
@@ -1300,8 +1346,9 @@
|
|
|
1300
1346
|
{
|
|
1301
1347
|
"name": "a11y-footpath",
|
|
1302
1348
|
"type": {
|
|
1303
|
-
"text": "boolean
|
|
1349
|
+
"text": "boolean"
|
|
1304
1350
|
},
|
|
1351
|
+
"default": "false",
|
|
1305
1352
|
"description": "The Footpath attribute for rendering different icons\ntrue: render a11y-icon\nfalse: render walk-icon\ndefault: render walk-icon",
|
|
1306
1353
|
"fieldName": "a11yFootpath"
|
|
1307
1354
|
},
|
|
@@ -1317,24 +1364,27 @@
|
|
|
1317
1364
|
{
|
|
1318
1365
|
"name": "card-action-label",
|
|
1319
1366
|
"type": {
|
|
1320
|
-
"text": "string
|
|
1367
|
+
"text": "string"
|
|
1321
1368
|
},
|
|
1369
|
+
"default": "''",
|
|
1322
1370
|
"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.",
|
|
1323
1371
|
"fieldName": "cardActionLabel"
|
|
1324
1372
|
},
|
|
1325
1373
|
{
|
|
1326
1374
|
"name": "accessibility-expanded",
|
|
1327
1375
|
"type": {
|
|
1328
|
-
"text": "boolean
|
|
1376
|
+
"text": "boolean"
|
|
1329
1377
|
},
|
|
1378
|
+
"default": "false",
|
|
1330
1379
|
"description": "This will be forwarded to the sbb-card component as aria-expanded.",
|
|
1331
1380
|
"fieldName": "accessibilityExpanded"
|
|
1332
1381
|
},
|
|
1333
1382
|
{
|
|
1334
1383
|
"name": "active",
|
|
1335
1384
|
"type": {
|
|
1336
|
-
"text": "boolean
|
|
1385
|
+
"text": "boolean"
|
|
1337
1386
|
},
|
|
1387
|
+
"default": "false",
|
|
1338
1388
|
"description": "When this prop is true the sbb-card will be in the active state.",
|
|
1339
1389
|
"fieldName": "active"
|
|
1340
1390
|
},
|