@sbb-esta/lyne-elements-experimental-dev 5.12.0-dev.1792790069 → 5.12.0-dev.1792975274
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/development/autocomplete-grid.js +1 -3
- package/development/autocomplete-grid.pure.js +9 -18
- package/development/core.js +24 -48
- package/development/easter-egg.js +1 -3
- package/development/easter-egg.pure.js +27 -54
- package/development/journey-summary.js +1 -3
- package/development/journey-summary.pure.js +38 -76
- package/development/pearl-chain-legacy.js +1 -3
- package/development/pearl-chain-legacy.pure.js +11 -22
- package/development/pearl-chain-time.js +1 -3
- package/development/pearl-chain-time.pure.js +38 -76
- package/development/pearl-chain-vertical-item.js +1 -3
- package/development/pearl-chain-vertical-item.pure.js +2 -4
- package/development/pearl-chain-vertical.js +1 -3
- package/development/pearl-chain-vertical.pure.js +2 -4
- package/development/seat-reservation.js +1 -3
- package/development/seat-reservation.pure.js +58 -116
- package/development/timetable-duration.js +1 -3
- package/development/timetable-duration.pure.js +2 -4
- package/development/timetable-row.js +1 -3
- package/development/timetable-row.pure.js +38 -76
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ import { property } from "lit/decorators.js";
|
|
|
6
6
|
import { getDepartureArrivalTimeAttribute, isRideLeg, removeTimezoneFromISOTimeString } from "./core.js";
|
|
7
7
|
import { SbbPearlChainLegacyElement } from "./pearl-chain-legacy.pure.js";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// node_modules/date-fns/constants.js
|
|
10
10
|
/**
|
|
11
11
|
* @constant
|
|
12
12
|
* @name maxTime
|
|
@@ -62,8 +62,7 @@ const millisecondsInDay = 864e5;
|
|
|
62
62
|
*/
|
|
63
63
|
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
//#region node_modules/date-fns/constructFrom.js
|
|
65
|
+
// node_modules/date-fns/constructFrom.js
|
|
67
66
|
/**
|
|
68
67
|
* @name constructFrom
|
|
69
68
|
* @category Generic Helpers
|
|
@@ -106,8 +105,7 @@ function constructFrom(date, value) {
|
|
|
106
105
|
return new Date(value);
|
|
107
106
|
}
|
|
108
107
|
|
|
109
|
-
|
|
110
|
-
//#region node_modules/date-fns/toDate.js
|
|
108
|
+
// node_modules/date-fns/toDate.js
|
|
111
109
|
/**
|
|
112
110
|
* @name toDate
|
|
113
111
|
* @category Common Helpers
|
|
@@ -150,15 +148,13 @@ function toDate(argument, context) {
|
|
|
150
148
|
return constructFrom(context || argument, argument);
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
|
|
154
|
-
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
151
|
+
// node_modules/date-fns/_lib/defaultOptions.js
|
|
155
152
|
let defaultOptions = {};
|
|
156
153
|
function getDefaultOptions() {
|
|
157
154
|
return defaultOptions;
|
|
158
155
|
}
|
|
159
156
|
|
|
160
|
-
|
|
161
|
-
//#region node_modules/date-fns/startOfWeek.js
|
|
157
|
+
// node_modules/date-fns/startOfWeek.js
|
|
162
158
|
/**
|
|
163
159
|
* The {@link startOfWeek} function options.
|
|
164
160
|
*/
|
|
@@ -200,8 +196,7 @@ function startOfWeek(date, options) {
|
|
|
200
196
|
return _date;
|
|
201
197
|
}
|
|
202
198
|
|
|
203
|
-
|
|
204
|
-
//#region node_modules/date-fns/startOfISOWeek.js
|
|
199
|
+
// node_modules/date-fns/startOfISOWeek.js
|
|
205
200
|
/**
|
|
206
201
|
* The {@link startOfISOWeek} function options.
|
|
207
202
|
*/
|
|
@@ -236,8 +231,7 @@ function startOfISOWeek(date, options) {
|
|
|
236
231
|
});
|
|
237
232
|
}
|
|
238
233
|
|
|
239
|
-
|
|
240
|
-
//#region node_modules/date-fns/getISOWeekYear.js
|
|
234
|
+
// node_modules/date-fns/getISOWeekYear.js
|
|
241
235
|
/**
|
|
242
236
|
* The {@link getISOWeekYear} function options.
|
|
243
237
|
*/
|
|
@@ -277,8 +271,7 @@ function getISOWeekYear(date, options) {
|
|
|
277
271
|
else return year - 1;
|
|
278
272
|
}
|
|
279
273
|
|
|
280
|
-
|
|
281
|
-
//#region node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
274
|
+
// node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
282
275
|
/**
|
|
283
276
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
284
277
|
* They usually appear for dates that denote time before the timezones were introduced
|
|
@@ -297,15 +290,13 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
297
290
|
return +date - +utcDate;
|
|
298
291
|
}
|
|
299
292
|
|
|
300
|
-
|
|
301
|
-
//#region node_modules/date-fns/_lib/normalizeDates.js
|
|
293
|
+
// node_modules/date-fns/_lib/normalizeDates.js
|
|
302
294
|
function normalizeDates(context, ...dates) {
|
|
303
295
|
const normalize = constructFrom.bind(null, context || dates.find((date) => typeof date === "object"));
|
|
304
296
|
return dates.map(normalize);
|
|
305
297
|
}
|
|
306
298
|
|
|
307
|
-
|
|
308
|
-
//#region node_modules/date-fns/startOfDay.js
|
|
299
|
+
// node_modules/date-fns/startOfDay.js
|
|
309
300
|
/**
|
|
310
301
|
* The {@link startOfDay} function options.
|
|
311
302
|
*/
|
|
@@ -337,8 +328,7 @@ function startOfDay(date, options) {
|
|
|
337
328
|
return _date;
|
|
338
329
|
}
|
|
339
330
|
|
|
340
|
-
|
|
341
|
-
//#region node_modules/date-fns/differenceInCalendarDays.js
|
|
331
|
+
// node_modules/date-fns/differenceInCalendarDays.js
|
|
342
332
|
/**
|
|
343
333
|
* The {@link differenceInCalendarDays} function options.
|
|
344
334
|
*/
|
|
@@ -382,8 +372,7 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
|
382
372
|
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
383
373
|
}
|
|
384
374
|
|
|
385
|
-
|
|
386
|
-
//#region node_modules/date-fns/startOfISOWeekYear.js
|
|
375
|
+
// node_modules/date-fns/startOfISOWeekYear.js
|
|
387
376
|
/**
|
|
388
377
|
* The {@link startOfISOWeekYear} function options.
|
|
389
378
|
*/
|
|
@@ -420,8 +409,7 @@ function startOfISOWeekYear(date, options) {
|
|
|
420
409
|
return startOfISOWeek(fourthOfJanuary);
|
|
421
410
|
}
|
|
422
411
|
|
|
423
|
-
|
|
424
|
-
//#region node_modules/date-fns/isDate.js
|
|
412
|
+
// node_modules/date-fns/isDate.js
|
|
425
413
|
/**
|
|
426
414
|
* @name isDate
|
|
427
415
|
* @category Common Helpers
|
|
@@ -458,8 +446,7 @@ function isDate(value) {
|
|
|
458
446
|
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
459
447
|
}
|
|
460
448
|
|
|
461
|
-
|
|
462
|
-
//#region node_modules/date-fns/isValid.js
|
|
449
|
+
// node_modules/date-fns/isValid.js
|
|
463
450
|
/**
|
|
464
451
|
* @name isValid
|
|
465
452
|
* @category Common Helpers
|
|
@@ -495,8 +482,7 @@ function isValid(date) {
|
|
|
495
482
|
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
496
483
|
}
|
|
497
484
|
|
|
498
|
-
|
|
499
|
-
//#region node_modules/date-fns/startOfYear.js
|
|
485
|
+
// node_modules/date-fns/startOfYear.js
|
|
500
486
|
/**
|
|
501
487
|
* The {@link startOfYear} function options.
|
|
502
488
|
*/
|
|
@@ -529,8 +515,7 @@ function startOfYear(date, options) {
|
|
|
529
515
|
return date_;
|
|
530
516
|
}
|
|
531
517
|
|
|
532
|
-
|
|
533
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
518
|
+
// node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
534
519
|
const formatDistanceLocale = {
|
|
535
520
|
lessThanXSeconds: {
|
|
536
521
|
one: "less than a second",
|
|
@@ -607,8 +592,7 @@ const formatDistance = (token, count, options) => {
|
|
|
607
592
|
return result;
|
|
608
593
|
};
|
|
609
594
|
|
|
610
|
-
|
|
611
|
-
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
595
|
+
// node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
612
596
|
function buildFormatLongFn(args) {
|
|
613
597
|
return (options = {}) => {
|
|
614
598
|
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
@@ -616,8 +600,7 @@ function buildFormatLongFn(args) {
|
|
|
616
600
|
};
|
|
617
601
|
}
|
|
618
602
|
|
|
619
|
-
|
|
620
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatLong.js
|
|
603
|
+
// node_modules/date-fns/locale/en-US/_lib/formatLong.js
|
|
621
604
|
const dateFormats = {
|
|
622
605
|
full: "EEEE, MMMM do, y",
|
|
623
606
|
long: "MMMM do, y",
|
|
@@ -651,8 +634,7 @@ const formatLong = {
|
|
|
651
634
|
})
|
|
652
635
|
};
|
|
653
636
|
|
|
654
|
-
|
|
655
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
637
|
+
// node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
656
638
|
const formatRelativeLocale = {
|
|
657
639
|
lastWeek: "'last' eeee 'at' p",
|
|
658
640
|
yesterday: "'yesterday at' p",
|
|
@@ -663,8 +645,7 @@ const formatRelativeLocale = {
|
|
|
663
645
|
};
|
|
664
646
|
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
665
647
|
|
|
666
|
-
|
|
667
|
-
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
648
|
+
// node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
668
649
|
/**
|
|
669
650
|
* The localize function argument callback which allows to convert raw value to
|
|
670
651
|
* the actual type.
|
|
@@ -714,8 +695,7 @@ function buildLocalizeFn(args) {
|
|
|
714
695
|
};
|
|
715
696
|
}
|
|
716
697
|
|
|
717
|
-
|
|
718
|
-
//#region node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
698
|
+
// node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
719
699
|
const eraValues = {
|
|
720
700
|
narrow: ["B", "A"],
|
|
721
701
|
abbreviated: ["BC", "AD"],
|
|
@@ -924,8 +904,7 @@ const localize = {
|
|
|
924
904
|
})
|
|
925
905
|
};
|
|
926
906
|
|
|
927
|
-
|
|
928
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
907
|
+
// node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
929
908
|
function buildMatchFn(args) {
|
|
930
909
|
return (string, options = {}) => {
|
|
931
910
|
const width = options.width;
|
|
@@ -952,8 +931,7 @@ function findIndex(array, predicate) {
|
|
|
952
931
|
for (let key = 0; key < array.length; key++) if (predicate(array[key])) return key;
|
|
953
932
|
}
|
|
954
933
|
|
|
955
|
-
|
|
956
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
934
|
+
// node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
957
935
|
function buildMatchPatternFn(args) {
|
|
958
936
|
return (string, options = {}) => {
|
|
959
937
|
const matchResult = string.match(args.matchPattern);
|
|
@@ -971,8 +949,7 @@ function buildMatchPatternFn(args) {
|
|
|
971
949
|
};
|
|
972
950
|
}
|
|
973
951
|
|
|
974
|
-
|
|
975
|
-
//#region node_modules/date-fns/locale/en-US/_lib/match.js
|
|
952
|
+
// node_modules/date-fns/locale/en-US/_lib/match.js
|
|
976
953
|
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
977
954
|
const parseOrdinalNumberPattern = /\d+/i;
|
|
978
955
|
const matchEraPatterns = {
|
|
@@ -1106,8 +1083,7 @@ const match = {
|
|
|
1106
1083
|
})
|
|
1107
1084
|
};
|
|
1108
1085
|
|
|
1109
|
-
|
|
1110
|
-
//#region node_modules/date-fns/locale/en-US.js
|
|
1086
|
+
// node_modules/date-fns/locale/en-US.js
|
|
1111
1087
|
/**
|
|
1112
1088
|
* @category Locales
|
|
1113
1089
|
* @summary English locale (United States).
|
|
@@ -1129,8 +1105,7 @@ const enUS = {
|
|
|
1129
1105
|
}
|
|
1130
1106
|
};
|
|
1131
1107
|
|
|
1132
|
-
|
|
1133
|
-
//#region node_modules/date-fns/getDayOfYear.js
|
|
1108
|
+
// node_modules/date-fns/getDayOfYear.js
|
|
1134
1109
|
/**
|
|
1135
1110
|
* The {@link getDayOfYear} function options.
|
|
1136
1111
|
*/
|
|
@@ -1157,8 +1132,7 @@ function getDayOfYear(date, options) {
|
|
|
1157
1132
|
return differenceInCalendarDays(_date, startOfYear(_date)) + 1;
|
|
1158
1133
|
}
|
|
1159
1134
|
|
|
1160
|
-
|
|
1161
|
-
//#region node_modules/date-fns/getISOWeek.js
|
|
1135
|
+
// node_modules/date-fns/getISOWeek.js
|
|
1162
1136
|
/**
|
|
1163
1137
|
* The {@link getISOWeek} function options.
|
|
1164
1138
|
*/
|
|
@@ -1188,8 +1162,7 @@ function getISOWeek(date, options) {
|
|
|
1188
1162
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
1189
1163
|
}
|
|
1190
1164
|
|
|
1191
|
-
|
|
1192
|
-
//#region node_modules/date-fns/getWeekYear.js
|
|
1165
|
+
// node_modules/date-fns/getWeekYear.js
|
|
1193
1166
|
/**
|
|
1194
1167
|
* The {@link getWeekYear} function options.
|
|
1195
1168
|
*/
|
|
@@ -1245,8 +1218,7 @@ function getWeekYear(date, options) {
|
|
|
1245
1218
|
else return year - 1;
|
|
1246
1219
|
}
|
|
1247
1220
|
|
|
1248
|
-
|
|
1249
|
-
//#region node_modules/date-fns/startOfWeekYear.js
|
|
1221
|
+
// node_modules/date-fns/startOfWeekYear.js
|
|
1250
1222
|
/**
|
|
1251
1223
|
* The {@link startOfWeekYear} function options.
|
|
1252
1224
|
*/
|
|
@@ -1297,8 +1269,7 @@ function startOfWeekYear(date, options) {
|
|
|
1297
1269
|
return startOfWeek(firstWeek, options);
|
|
1298
1270
|
}
|
|
1299
1271
|
|
|
1300
|
-
|
|
1301
|
-
//#region node_modules/date-fns/getWeek.js
|
|
1272
|
+
// node_modules/date-fns/getWeek.js
|
|
1302
1273
|
/**
|
|
1303
1274
|
* The {@link getWeek} function options.
|
|
1304
1275
|
*/
|
|
@@ -1342,14 +1313,12 @@ function getWeek(date, options) {
|
|
|
1342
1313
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
1343
1314
|
}
|
|
1344
1315
|
|
|
1345
|
-
|
|
1346
|
-
//#region node_modules/date-fns/_lib/addLeadingZeros.js
|
|
1316
|
+
// node_modules/date-fns/_lib/addLeadingZeros.js
|
|
1347
1317
|
function addLeadingZeros(number, targetLength) {
|
|
1348
1318
|
return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0");
|
|
1349
1319
|
}
|
|
1350
1320
|
|
|
1351
|
-
|
|
1352
|
-
//#region node_modules/date-fns/_lib/format/lightFormatters.js
|
|
1321
|
+
// node_modules/date-fns/_lib/format/lightFormatters.js
|
|
1353
1322
|
const lightFormatters = {
|
|
1354
1323
|
y(date, token) {
|
|
1355
1324
|
const signedYear = date.getFullYear();
|
|
@@ -1393,8 +1362,7 @@ const lightFormatters = {
|
|
|
1393
1362
|
}
|
|
1394
1363
|
};
|
|
1395
1364
|
|
|
1396
|
-
|
|
1397
|
-
//#region node_modules/date-fns/_lib/format/formatters.js
|
|
1365
|
+
// node_modules/date-fns/_lib/format/formatters.js
|
|
1398
1366
|
const dayPeriodEnum = {
|
|
1399
1367
|
am: "am",
|
|
1400
1368
|
pm: "pm",
|
|
@@ -1810,8 +1778,7 @@ function formatTimezone(offset, delimiter = "") {
|
|
|
1810
1778
|
return sign + hours + delimiter + minutes;
|
|
1811
1779
|
}
|
|
1812
1780
|
|
|
1813
|
-
|
|
1814
|
-
//#region node_modules/date-fns/_lib/format/longFormatters.js
|
|
1781
|
+
// node_modules/date-fns/_lib/format/longFormatters.js
|
|
1815
1782
|
const dateLongFormatter = (pattern, formatLong) => {
|
|
1816
1783
|
switch (pattern) {
|
|
1817
1784
|
case "P": return formatLong.date({ width: "short" });
|
|
@@ -1853,8 +1820,7 @@ const longFormatters = {
|
|
|
1853
1820
|
P: dateTimeLongFormatter
|
|
1854
1821
|
};
|
|
1855
1822
|
|
|
1856
|
-
|
|
1857
|
-
//#region node_modules/date-fns/_lib/protectedTokens.js
|
|
1823
|
+
// node_modules/date-fns/_lib/protectedTokens.js
|
|
1858
1824
|
const dayOfYearTokenRE = /^D+$/;
|
|
1859
1825
|
const weekYearTokenRE = /^Y+$/;
|
|
1860
1826
|
const throwTokens = [
|
|
@@ -1879,8 +1845,7 @@ function message(token, format, input) {
|
|
|
1879
1845
|
return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1880
1846
|
}
|
|
1881
1847
|
|
|
1882
|
-
|
|
1883
|
-
//#region node_modules/date-fns/format.js
|
|
1848
|
+
// node_modules/date-fns/format.js
|
|
1884
1849
|
const formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
1885
1850
|
const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
1886
1851
|
const escapedStringRegExp = /^'([^]*?)'?$/;
|
|
@@ -2227,12 +2192,10 @@ function cleanEscapedString(input) {
|
|
|
2227
2192
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2228
2193
|
}
|
|
2229
2194
|
|
|
2230
|
-
|
|
2231
|
-
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
|
|
2195
|
+
// src/elements-experimental/pearl-chain-time/pearl-chain-time.scss?inline
|
|
2232
2196
|
var pearl_chain_time_default = ":host {\n display: block;\n --sbb-pearl-chain-time-height: auto;\n}\n@media (min-width: calc(37.5rem)) {\n :host {\n --sbb-pearl-chain-time-height: 1.5625rem;\n }\n}\n@media (min-width: calc(64rem)) {\n :host {\n --sbb-pearl-chain-time-height: 1.75rem;\n }\n}\n\n.sbb-pearl-chain__time {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n height: var(--sbb-pearl-chain-time-height);\n}\n\n.sbb-pearl-chain__time-walktime,\n.sbb-pearl-chain__time-transfer {\n --sbb-text-font-size: var(--sbb-text-font-size-xxs);\n font-family: var(--sbb-typo-font-family);\n font-weight: normal;\n line-height: var(--sbb-typo-line-height-text);\n letter-spacing: var(--sbb-letter-spacing-text);\n font-size: var(--sbb-text-font-size);\n display: inline-flex;\n align-items: center;\n}\n\n.sbb-pearl-chain__time-walktime--walk-small-left {\n transform: translateX(-0.4375rem);\n margin-inline-end: calc(var(--sbb-spacing-fixed-2x) - 0.4375rem);\n}\n\n.sbb-pearl-chain__time-walktime--walk-small-right {\n margin-inline-start: calc(var(--sbb-spacing-fixed-2x) - 0.25rem);\n}\n\n.sbb-pearl-chain__time-walktime--wheelchair-small-left {\n transform: translateX(-0.375rem);\n margin-inline-end: calc(var(--sbb-spacing-fixed-2x) - 0.4375rem);\n}\n\n.sbb-pearl-chain__time-walktime--wheelchair-small-right {\n margin-inline-start: calc(var(--sbb-spacing-fixed-2x) - 0.25rem);\n}\n\n.sbb-pearl-chain__time-walktime-prime-symbol {\n float: right;\n}\n\n.sbb-pearl-chain__time-transfer {\n gap: var(--sbb-spacing-fixed-1x);\n}\n\n.sbb-pearl-chain__time-transfer--sa-ci-departure {\n margin-inline-end: var(--sbb-spacing-fixed-2x);\n}\n\n.sbb-pearl-chain__time-transfer--sa-ci-arrival {\n margin-inline-start: calc(var(--sbb-spacing-fixed-2x) - 0.25rem);\n}\n\n.sbb-pearl-chain__time-chain {\n flex: 1 1 auto;\n align-self: center;\n margin-inline: var(--sbb-spacing-fixed-3x);\n}\n\n.sbb-pearl-chain__time-time {\n --sbb-text-font-size: var(--sbb-text-font-size-s);\n font-family: var(--sbb-typo-font-family);\n font-weight: normal;\n line-height: var(--sbb-typo-line-height-text);\n letter-spacing: var(--sbb-letter-spacing-text);\n font-size: var(--sbb-text-font-size);\n font-weight: bold;\n color: var(--sbb-color-2);\n}\n";
|
|
2233
2197
|
|
|
2234
|
-
|
|
2235
|
-
//#region src/elements-experimental/pearl-chain-time/pearl-chain-time.component.ts
|
|
2198
|
+
// src/elements-experimental/pearl-chain-time/pearl-chain-time.component.ts
|
|
2236
2199
|
/**
|
|
2237
2200
|
* Combined with `sbb-pearl-chain-legacy`, it displays walk time information.
|
|
2238
2201
|
* @deprecated Use `sbb-pearl-chain` instead.
|
|
@@ -2536,5 +2499,4 @@ let SbbPearlChainTimeElement = (() => {
|
|
|
2536
2499
|
};
|
|
2537
2500
|
})();
|
|
2538
2501
|
|
|
2539
|
-
//#endregion
|
|
2540
2502
|
export { SbbPearlChainTimeElement };
|
|
@@ -2,8 +2,6 @@ import { SbbPearlChainVerticalItemElement } from "./pearl-chain-vertical-item.pu
|
|
|
2
2
|
|
|
3
3
|
export * from "./pearl-chain-vertical-item.pure.js"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/elements-experimental/pearl-chain-vertical-item.ts
|
|
6
6
|
/** @entrypoint */
|
|
7
7
|
SbbPearlChainVerticalItemElement.define();
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
@@ -4,11 +4,10 @@ import { html, nothing, unsafeCSS } from "lit";
|
|
|
4
4
|
import { property } from "lit/decorators.js";
|
|
5
5
|
import { styleMap } from "lit/directives/style-map.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.scss?inline
|
|
8
8
|
var pearl_chain_vertical_item_default = ":host {\n --sbb-pearl-chain-position-color: var(--sbb-color-primary);\n --sbb-pearl-chain-bullet-size-start-end: 0.625rem;\n --sbb-pearl-chain-bullet-size-stop: 0.5rem;\n --sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);\n --sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);\n --sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));\n --sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);\n --sbb-pearl-chain-bullet-color-irrelevant: light-dark(\n var(--sbb-color-metal),\n var(--sbb-color-granite)\n );\n --sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);\n --sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);\n --sbb-pearl-chain-bullet-animation-duration: 1920ms;\n --sbb-pearl-chain-bullet-animation-easing: ease-out;\n --sbb-pearl-chain-bullet-crossed-width: 0.88375rem;\n --sbb-pearl-chain-bullet-crossed-height: 0.21875rem;\n --sbb-pearl-chain-bullet-crossed-border-width: 0.09375rem;\n display: table-row;\n position: relative;\n --sbb-pearl-chain-vertical-right-item-width: 100%;\n --sbb-pearl-chain-vertical-middle-item-min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n --sbb-pearl-chain-vertical-item-border-width: var(--sbb-border-width-2x);\n --sbb-pearl-chain-vertical-item-border-width-thin: var(--sbb-border-width-1x);\n --sbb-pearl-chain-vertical-item-spacing-small: var(--sbb-spacing-fixed-1x);\n --sbb-pearl-chain-vertical-item-color-default: var(--sbb-pearl-chain-bullet-color);\n --sbb-pearl-chain-vertical-item-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);\n --sbb-pearl-chain-vertical-item-color-past: var(--sbb-pearl-chain-bullet-color-past);\n --sbb-pearl-chain-vertical-item-color-walk: var(--sbb-color-sky);\n --sbb-pearl-chain-vertical-item-inline-start: 50%;\n --sbb-pearl-chain-vertical-item-transform: translateX(-50%);\n}\n\nslot[name=right],\n.sbb-pearl-chain-vertical-item__column {\n display: table-cell;\n position: relative;\n vertical-align: top;\n}\n\nslot[name=right] {\n width: var(--sbb-pearl-chain-vertical-right-item-width);\n}\n\n.sbb-pearl-chain-vertical-item__column--middle {\n min-width: var(--sbb-pearl-chain-vertical-middle-item-min-width, --sbb-pearl-chain-vertical-middle-min-width);\n}\n\nslot[name=left]::slotted(*) {\n margin-block-start: var(--sbb-pearl-chain-vertical-left-item-block-start);\n padding-inline-end: var(--sbb-pearl-chain-vertical-left-item-inline-end);\n}\n\nslot[name=right]::slotted(*) {\n margin-block-start: var(--sbb-pearl-chain-vertical-right-item-block-start);\n padding-inline-start: var(--sbb-pearl-chain-vertical-right-item-inline-start);\n}\n\n.sbb-pearl-chain-vertical-item__middle {\n vertical-align: top;\n border-spacing: 0;\n}\n\n.sbb-pearl-chain-vertical-item__line {\n position: absolute;\n bottom: 0;\n inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);\n transform: var(--sbb-pearl-chain-vertical-item-transform);\n width: var(--sbb-border-width-2x);\n inset-block-start: calc(var(--sbb-pearl-chain-bullet-size-start-end) / 2);\n}\n.sbb-pearl-chain-vertical-item__line::after {\n content: \"\";\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n height: var(--sbb-pearl-chain-vertical-item-leg-status);\n width: var(--sbb-pearl-chain-vertical-item-border-width);\n background-color: var(--sbb-pearl-chain-vertical-item-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line::after {\n --sbb-pearl-chain-vertical-item-color-past: GrayText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--dotted {\n background-color: unset;\n border-color: unset;\n background-image: linear-gradient(to bottom, currentcolor 0%, currentcolor 50%, Canvas 50%);\n background-repeat: repeat-y;\n background-size: calc(2 * var(--sbb-pearl-chain-vertical-item-spacing-small)) var(--sbb-pearl-chain-vertical-item-spacing-small);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--dotted {\n background-color: unset !important;\n border-inline-start: 0.0625rem dashed Highlight;\n transform: translateY(0.0625rem);\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--thin {\n width: var(--sbb-pearl-chain-vertical-item-border-width-thin);\n}\n\n.sbb-pearl-chain-vertical-item__line--default {\n background-color: var(--sbb-pearl-chain-vertical-item-color-default);\n border-color: var(--sbb-pearl-chain-vertical-item-color-default);\n color: var(--sbb-pearl-chain-vertical-item-color-default);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--default {\n --sbb-pearl-chain-vertical-item-color-default: CanvasText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--disruption {\n border-color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n background-color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n color: var(--sbb-pearl-chain-vertical-item-color-disruption);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--disruption {\n --sbb-pearl-chain-vertical-item-color-disruption: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--past {\n border-color: var(--sbb-pearl-chain-vertical-item-color-past);\n background-color: var(--sbb-pearl-chain-vertical-item-color-past);\n color: var(--sbb-pearl-chain-vertical-item-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__line--past {\n --sbb-pearl-chain-vertical-item-color-past: GrayText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__line--walk {\n border-color: var(--sbb-pearl-chain-vertical-item-color-walk);\n background-color: var(--sbb-pearl-chain-vertical-item-color-walk);\n color: var(--sbb-pearl-chain-vertical-item-color-walk);\n}\n\n.sbb-pearl-chain-vertical-item__bullet {\n position: relative;\n inset-inline-start: var(--sbb-pearl-chain-vertical-item-inline-start);\n transform: var(--sbb-pearl-chain-vertical-item-transform);\n background: var(--sbb-pearl-chain-bullet-color);\n color: var(--sbb-pearl-chain-bullet-color);\n border-color: var(--sbb-pearl-chain-bullet-color);\n border-radius: 100%;\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet {\n --sbb-pearl-chain-bullet-color: CanvasText;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--start-end {\n min-height: var(--sbb-pearl-chain-bullet-size-start-end);\n min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n height: var(--sbb-pearl-chain-bullet-size-start-end);\n width: var(--sbb-pearl-chain-bullet-size-start-end);\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop {\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n\n.sbb-pearl-chain-vertical-item__bullet--disruption {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--disruption {\n --sbb-pearl-chain-bullet-color: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--irrelevant,\n.sbb-pearl-chain-vertical-item__bullet--past {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--irrelevant,\n .sbb-pearl-chain-vertical-item__bullet--past {\n --sbb-pearl-chain-bullet-color: GrayText !important;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--irrelevant {\n --sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-1x);\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n\n.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped {\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n.sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n content: \"\";\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;\n background: var(--sbb-pearl-chain-bullet-color-disruption);\n height: var(--sbb-pearl-chain-bullet-crossed-height);\n width: var(--sbb-pearl-chain-bullet-crossed-width);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--start-end.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n background: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped {\n --sbb-pearl-chain-bullet-crossed-width: 0.706875rem;\n --sbb-pearl-chain-bullet-crossed-height: 0.1875rem;\n min-height: var(--sbb-pearl-chain-bullet-size-stop);\n min-width: var(--sbb-pearl-chain-bullet-size-stop);\n height: var(--sbb-pearl-chain-bullet-size-stop);\n width: var(--sbb-pearl-chain-bullet-size-stop);\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n border: var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;\n background: Canvas;\n}\n.sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n content: \"\";\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n border-block-start: var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;\n background: var(--sbb-pearl-chain-bullet-color-disruption);\n height: var(--sbb-pearl-chain-bullet-crossed-height);\n width: var(--sbb-pearl-chain-bullet-crossed-width);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--stop.sbb-pearl-chain-vertical-item__bullet--skipped::before {\n background: Highlight;\n }\n}\n\n.sbb-pearl-chain-vertical-item__bullet--position {\n inset-block-start: var(--sbb-pearl-chain-vertical-item-position);\n position: absolute;\n left: 50%;\n translate: -50% 0;\n min-height: var(--sbb-pearl-chain-bullet-size-start-end);\n min-width: var(--sbb-pearl-chain-bullet-size-start-end);\n height: var(--sbb-pearl-chain-bullet-size-start-end);\n width: var(--sbb-pearl-chain-bullet-size-start-end);\n background: var(--sbb-pearl-chain-bullet-color);\n color: var(--sbb-pearl-chain-bullet-color);\n border-color: var(--sbb-pearl-chain-bullet-color);\n border-radius: 100%;\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-bullet-color: CanvasText;\n }\n}\n.sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color);\n}\n@media (forced-colors: active) {\n .sbb-pearl-chain-vertical-item__bullet--position {\n --sbb-pearl-chain-position-color: Highlight;\n }\n}\n@keyframes pearl-chain-bullet-position-pulse {\n 0% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n 25% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n 50% {\n box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--sbb-pearl-chain-position-color) 20%, transparent);\n }\n 100% {\n box-shadow: 0 0 0 0 var(--sbb-pearl-chain-position-color);\n }\n}\n.sbb-pearl-chain-vertical-item__bullet--position {\n animation: pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;\n}\n:host([disable-animation]) .sbb-pearl-chain-vertical-item__bullet--position {\n animation: unset !important;\n}\n";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
//#region src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.component.ts
|
|
10
|
+
// src/elements-experimental/pearl-chain-vertical-item/pearl-chain-vertical-item.component.ts
|
|
12
11
|
/**
|
|
13
12
|
* It displays details about connection between stations.
|
|
14
13
|
*
|
|
@@ -129,5 +128,4 @@ let SbbPearlChainVerticalItemElement = (() => {
|
|
|
129
128
|
};
|
|
130
129
|
})();
|
|
131
130
|
|
|
132
|
-
//#endregion
|
|
133
131
|
export { SbbPearlChainVerticalItemElement };
|
|
@@ -2,8 +2,6 @@ import { SbbPearlChainVerticalElement } from "./pearl-chain-vertical.pure.js";
|
|
|
2
2
|
|
|
3
3
|
export * from "./pearl-chain-vertical.pure.js"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/elements-experimental/pearl-chain-vertical.ts
|
|
6
6
|
/** @entrypoint */
|
|
7
7
|
SbbPearlChainVerticalElement.define();
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SbbElement } from "@sbb-esta/lyne-elements/core.js";
|
|
2
2
|
import { html, unsafeCSS } from "lit";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.scss?inline
|
|
5
5
|
var pearl_chain_vertical_default = ":host {\n --sbb-pearl-chain-vertical-width: 100%;\n display: block;\n}\n\n.sbb-pearl-chain-vertical {\n display: table;\n width: var(--sbb-pearl-chain-vertical-width);\n}\n";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
//#region src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.component.ts
|
|
7
|
+
// src/elements-experimental/pearl-chain-vertical/pearl-chain-vertical.component.ts
|
|
9
8
|
/**
|
|
10
9
|
* It can be used as a container for the `sbb-pearl-chain-vertical-item` component.
|
|
11
10
|
*
|
|
@@ -28,5 +27,4 @@ var SbbPearlChainVerticalElement = class extends SbbElement {
|
|
|
28
27
|
}
|
|
29
28
|
};
|
|
30
29
|
|
|
31
|
-
//#endregion
|
|
32
30
|
export { SbbPearlChainVerticalElement };
|
|
@@ -2,7 +2,7 @@ import { SbbSeatReservationAreaElement, SbbSeatReservationElement, SbbSeatReserv
|
|
|
2
2
|
|
|
3
3
|
export * from "./seat-reservation.pure.js"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/elements-experimental/seat-reservation.ts
|
|
6
6
|
/** @entrypoint */
|
|
7
7
|
SbbSeatReservationElement.define();
|
|
8
8
|
SbbSeatReservationAreaElement.define();
|
|
@@ -11,5 +11,3 @@ SbbSeatReservationNavigationCoachElement.define();
|
|
|
11
11
|
SbbSeatReservationNavigationServicesElement.define();
|
|
12
12
|
SbbSeatReservationPlaceControlElement.define();
|
|
13
13
|
SbbSeatReservationScopedElement.define();
|
|
14
|
-
|
|
15
|
-
//#endregion
|