@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
|
@@ -2,8 +2,6 @@ import { SbbTimetableDurationElement } from "./timetable-duration.pure.js";
|
|
|
2
2
|
|
|
3
3
|
export * from "./timetable-duration.pure.js"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/elements-experimental/timetable-duration.ts
|
|
6
6
|
/** @entrypoint */
|
|
7
7
|
SbbTimetableDurationElement.define();
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
@@ -3,11 +3,10 @@ import { SbbElement, SbbLanguageController, forceType, i18nDurationHour, i18nDur
|
|
|
3
3
|
import { html, unsafeCSS } from "lit";
|
|
4
4
|
import { property } from "lit/decorators.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/elements-experimental/timetable-duration/timetable-duration.scss?inline
|
|
7
7
|
var timetable_duration_default = ":host {\n display: inline-block;\n}\n\n.duration {\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 margin: 0;\n white-space: nowrap;\n}\n";
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
//#region src/elements-experimental/timetable-duration/timetable-duration.component.ts
|
|
9
|
+
// src/elements-experimental/timetable-duration/timetable-duration.component.ts
|
|
11
10
|
/**
|
|
12
11
|
* Used in `sbb-timetable-row`, it displays information about the trip duration.
|
|
13
12
|
*/
|
|
@@ -93,5 +92,4 @@ let SbbTimetableDurationElement = (() => {
|
|
|
93
92
|
};
|
|
94
93
|
})();
|
|
95
94
|
|
|
96
|
-
//#endregion
|
|
97
95
|
export { SbbTimetableDurationElement };
|
|
@@ -2,8 +2,6 @@ import { SbbTimetableRowElement } from "./timetable-row.pure.js";
|
|
|
2
2
|
|
|
3
3
|
export * from "./timetable-row.pure.js"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/elements-experimental/timetable-row.ts
|
|
6
6
|
/** @entrypoint */
|
|
7
7
|
SbbTimetableRowElement.define();
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
@@ -8,7 +8,7 @@ import { property } from "lit/decorators.js";
|
|
|
8
8
|
import { durationToTime, getDepartureArrivalTimeAttribute, isRideLeg, removeTimezoneFromISOTimeString } from "./core.js";
|
|
9
9
|
import { SbbPearlChainTimeElement } from "./pearl-chain-time.pure.js";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// node_modules/date-fns/constants.js
|
|
12
12
|
/**
|
|
13
13
|
* @constant
|
|
14
14
|
* @name maxTime
|
|
@@ -64,8 +64,7 @@ const millisecondsInDay = 864e5;
|
|
|
64
64
|
*/
|
|
65
65
|
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
//#region node_modules/date-fns/constructFrom.js
|
|
67
|
+
// node_modules/date-fns/constructFrom.js
|
|
69
68
|
/**
|
|
70
69
|
* @name constructFrom
|
|
71
70
|
* @category Generic Helpers
|
|
@@ -108,8 +107,7 @@ function constructFrom(date, value) {
|
|
|
108
107
|
return new Date(value);
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
//#region node_modules/date-fns/toDate.js
|
|
110
|
+
// node_modules/date-fns/toDate.js
|
|
113
111
|
/**
|
|
114
112
|
* @name toDate
|
|
115
113
|
* @category Common Helpers
|
|
@@ -152,15 +150,13 @@ function toDate(argument, context) {
|
|
|
152
150
|
return constructFrom(context || argument, argument);
|
|
153
151
|
}
|
|
154
152
|
|
|
155
|
-
|
|
156
|
-
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
153
|
+
// node_modules/date-fns/_lib/defaultOptions.js
|
|
157
154
|
let defaultOptions = {};
|
|
158
155
|
function getDefaultOptions() {
|
|
159
156
|
return defaultOptions;
|
|
160
157
|
}
|
|
161
158
|
|
|
162
|
-
|
|
163
|
-
//#region node_modules/date-fns/startOfWeek.js
|
|
159
|
+
// node_modules/date-fns/startOfWeek.js
|
|
164
160
|
/**
|
|
165
161
|
* The {@link startOfWeek} function options.
|
|
166
162
|
*/
|
|
@@ -202,8 +198,7 @@ function startOfWeek(date, options) {
|
|
|
202
198
|
return _date;
|
|
203
199
|
}
|
|
204
200
|
|
|
205
|
-
|
|
206
|
-
//#region node_modules/date-fns/startOfISOWeek.js
|
|
201
|
+
// node_modules/date-fns/startOfISOWeek.js
|
|
207
202
|
/**
|
|
208
203
|
* The {@link startOfISOWeek} function options.
|
|
209
204
|
*/
|
|
@@ -238,8 +233,7 @@ function startOfISOWeek(date, options) {
|
|
|
238
233
|
});
|
|
239
234
|
}
|
|
240
235
|
|
|
241
|
-
|
|
242
|
-
//#region node_modules/date-fns/getISOWeekYear.js
|
|
236
|
+
// node_modules/date-fns/getISOWeekYear.js
|
|
243
237
|
/**
|
|
244
238
|
* The {@link getISOWeekYear} function options.
|
|
245
239
|
*/
|
|
@@ -279,8 +273,7 @@ function getISOWeekYear(date, options) {
|
|
|
279
273
|
else return year - 1;
|
|
280
274
|
}
|
|
281
275
|
|
|
282
|
-
|
|
283
|
-
//#region node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
276
|
+
// node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
284
277
|
/**
|
|
285
278
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
286
279
|
* They usually appear for dates that denote time before the timezones were introduced
|
|
@@ -299,15 +292,13 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
299
292
|
return +date - +utcDate;
|
|
300
293
|
}
|
|
301
294
|
|
|
302
|
-
|
|
303
|
-
//#region node_modules/date-fns/_lib/normalizeDates.js
|
|
295
|
+
// node_modules/date-fns/_lib/normalizeDates.js
|
|
304
296
|
function normalizeDates(context, ...dates) {
|
|
305
297
|
const normalize = constructFrom.bind(null, context || dates.find((date) => typeof date === "object"));
|
|
306
298
|
return dates.map(normalize);
|
|
307
299
|
}
|
|
308
300
|
|
|
309
|
-
|
|
310
|
-
//#region node_modules/date-fns/startOfDay.js
|
|
301
|
+
// node_modules/date-fns/startOfDay.js
|
|
311
302
|
/**
|
|
312
303
|
* The {@link startOfDay} function options.
|
|
313
304
|
*/
|
|
@@ -339,8 +330,7 @@ function startOfDay(date, options) {
|
|
|
339
330
|
return _date;
|
|
340
331
|
}
|
|
341
332
|
|
|
342
|
-
|
|
343
|
-
//#region node_modules/date-fns/differenceInCalendarDays.js
|
|
333
|
+
// node_modules/date-fns/differenceInCalendarDays.js
|
|
344
334
|
/**
|
|
345
335
|
* The {@link differenceInCalendarDays} function options.
|
|
346
336
|
*/
|
|
@@ -384,8 +374,7 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
|
384
374
|
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
385
375
|
}
|
|
386
376
|
|
|
387
|
-
|
|
388
|
-
//#region node_modules/date-fns/startOfISOWeekYear.js
|
|
377
|
+
// node_modules/date-fns/startOfISOWeekYear.js
|
|
389
378
|
/**
|
|
390
379
|
* The {@link startOfISOWeekYear} function options.
|
|
391
380
|
*/
|
|
@@ -422,8 +411,7 @@ function startOfISOWeekYear(date, options) {
|
|
|
422
411
|
return startOfISOWeek(fourthOfJanuary);
|
|
423
412
|
}
|
|
424
413
|
|
|
425
|
-
|
|
426
|
-
//#region node_modules/date-fns/isDate.js
|
|
414
|
+
// node_modules/date-fns/isDate.js
|
|
427
415
|
/**
|
|
428
416
|
* @name isDate
|
|
429
417
|
* @category Common Helpers
|
|
@@ -460,8 +448,7 @@ function isDate(value) {
|
|
|
460
448
|
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
461
449
|
}
|
|
462
450
|
|
|
463
|
-
|
|
464
|
-
//#region node_modules/date-fns/isValid.js
|
|
451
|
+
// node_modules/date-fns/isValid.js
|
|
465
452
|
/**
|
|
466
453
|
* @name isValid
|
|
467
454
|
* @category Common Helpers
|
|
@@ -497,8 +484,7 @@ function isValid(date) {
|
|
|
497
484
|
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
498
485
|
}
|
|
499
486
|
|
|
500
|
-
|
|
501
|
-
//#region node_modules/date-fns/startOfYear.js
|
|
487
|
+
// node_modules/date-fns/startOfYear.js
|
|
502
488
|
/**
|
|
503
489
|
* The {@link startOfYear} function options.
|
|
504
490
|
*/
|
|
@@ -531,8 +517,7 @@ function startOfYear(date, options) {
|
|
|
531
517
|
return date_;
|
|
532
518
|
}
|
|
533
519
|
|
|
534
|
-
|
|
535
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
520
|
+
// node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
536
521
|
const formatDistanceLocale = {
|
|
537
522
|
lessThanXSeconds: {
|
|
538
523
|
one: "less than a second",
|
|
@@ -609,8 +594,7 @@ const formatDistance = (token, count, options) => {
|
|
|
609
594
|
return result;
|
|
610
595
|
};
|
|
611
596
|
|
|
612
|
-
|
|
613
|
-
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
597
|
+
// node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
614
598
|
function buildFormatLongFn(args) {
|
|
615
599
|
return (options = {}) => {
|
|
616
600
|
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
@@ -618,8 +602,7 @@ function buildFormatLongFn(args) {
|
|
|
618
602
|
};
|
|
619
603
|
}
|
|
620
604
|
|
|
621
|
-
|
|
622
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatLong.js
|
|
605
|
+
// node_modules/date-fns/locale/en-US/_lib/formatLong.js
|
|
623
606
|
const dateFormats = {
|
|
624
607
|
full: "EEEE, MMMM do, y",
|
|
625
608
|
long: "MMMM do, y",
|
|
@@ -653,8 +636,7 @@ const formatLong = {
|
|
|
653
636
|
})
|
|
654
637
|
};
|
|
655
638
|
|
|
656
|
-
|
|
657
|
-
//#region node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
639
|
+
// node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
658
640
|
const formatRelativeLocale = {
|
|
659
641
|
lastWeek: "'last' eeee 'at' p",
|
|
660
642
|
yesterday: "'yesterday at' p",
|
|
@@ -665,8 +647,7 @@ const formatRelativeLocale = {
|
|
|
665
647
|
};
|
|
666
648
|
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
667
649
|
|
|
668
|
-
|
|
669
|
-
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
650
|
+
// node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
670
651
|
/**
|
|
671
652
|
* The localize function argument callback which allows to convert raw value to
|
|
672
653
|
* the actual type.
|
|
@@ -716,8 +697,7 @@ function buildLocalizeFn(args) {
|
|
|
716
697
|
};
|
|
717
698
|
}
|
|
718
699
|
|
|
719
|
-
|
|
720
|
-
//#region node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
700
|
+
// node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
721
701
|
const eraValues = {
|
|
722
702
|
narrow: ["B", "A"],
|
|
723
703
|
abbreviated: ["BC", "AD"],
|
|
@@ -926,8 +906,7 @@ const localize = {
|
|
|
926
906
|
})
|
|
927
907
|
};
|
|
928
908
|
|
|
929
|
-
|
|
930
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
909
|
+
// node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
931
910
|
function buildMatchFn(args) {
|
|
932
911
|
return (string, options = {}) => {
|
|
933
912
|
const width = options.width;
|
|
@@ -954,8 +933,7 @@ function findIndex(array, predicate) {
|
|
|
954
933
|
for (let key = 0; key < array.length; key++) if (predicate(array[key])) return key;
|
|
955
934
|
}
|
|
956
935
|
|
|
957
|
-
|
|
958
|
-
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
936
|
+
// node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
959
937
|
function buildMatchPatternFn(args) {
|
|
960
938
|
return (string, options = {}) => {
|
|
961
939
|
const matchResult = string.match(args.matchPattern);
|
|
@@ -973,8 +951,7 @@ function buildMatchPatternFn(args) {
|
|
|
973
951
|
};
|
|
974
952
|
}
|
|
975
953
|
|
|
976
|
-
|
|
977
|
-
//#region node_modules/date-fns/locale/en-US/_lib/match.js
|
|
954
|
+
// node_modules/date-fns/locale/en-US/_lib/match.js
|
|
978
955
|
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
979
956
|
const parseOrdinalNumberPattern = /\d+/i;
|
|
980
957
|
const matchEraPatterns = {
|
|
@@ -1108,8 +1085,7 @@ const match = {
|
|
|
1108
1085
|
})
|
|
1109
1086
|
};
|
|
1110
1087
|
|
|
1111
|
-
|
|
1112
|
-
//#region node_modules/date-fns/locale/en-US.js
|
|
1088
|
+
// node_modules/date-fns/locale/en-US.js
|
|
1113
1089
|
/**
|
|
1114
1090
|
* @category Locales
|
|
1115
1091
|
* @summary English locale (United States).
|
|
@@ -1131,8 +1107,7 @@ const enUS = {
|
|
|
1131
1107
|
}
|
|
1132
1108
|
};
|
|
1133
1109
|
|
|
1134
|
-
|
|
1135
|
-
//#region node_modules/date-fns/getDayOfYear.js
|
|
1110
|
+
// node_modules/date-fns/getDayOfYear.js
|
|
1136
1111
|
/**
|
|
1137
1112
|
* The {@link getDayOfYear} function options.
|
|
1138
1113
|
*/
|
|
@@ -1159,8 +1134,7 @@ function getDayOfYear(date, options) {
|
|
|
1159
1134
|
return differenceInCalendarDays(_date, startOfYear(_date)) + 1;
|
|
1160
1135
|
}
|
|
1161
1136
|
|
|
1162
|
-
|
|
1163
|
-
//#region node_modules/date-fns/getISOWeek.js
|
|
1137
|
+
// node_modules/date-fns/getISOWeek.js
|
|
1164
1138
|
/**
|
|
1165
1139
|
* The {@link getISOWeek} function options.
|
|
1166
1140
|
*/
|
|
@@ -1190,8 +1164,7 @@ function getISOWeek(date, options) {
|
|
|
1190
1164
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
1191
1165
|
}
|
|
1192
1166
|
|
|
1193
|
-
|
|
1194
|
-
//#region node_modules/date-fns/getWeekYear.js
|
|
1167
|
+
// node_modules/date-fns/getWeekYear.js
|
|
1195
1168
|
/**
|
|
1196
1169
|
* The {@link getWeekYear} function options.
|
|
1197
1170
|
*/
|
|
@@ -1247,8 +1220,7 @@ function getWeekYear(date, options) {
|
|
|
1247
1220
|
else return year - 1;
|
|
1248
1221
|
}
|
|
1249
1222
|
|
|
1250
|
-
|
|
1251
|
-
//#region node_modules/date-fns/startOfWeekYear.js
|
|
1223
|
+
// node_modules/date-fns/startOfWeekYear.js
|
|
1252
1224
|
/**
|
|
1253
1225
|
* The {@link startOfWeekYear} function options.
|
|
1254
1226
|
*/
|
|
@@ -1299,8 +1271,7 @@ function startOfWeekYear(date, options) {
|
|
|
1299
1271
|
return startOfWeek(firstWeek, options);
|
|
1300
1272
|
}
|
|
1301
1273
|
|
|
1302
|
-
|
|
1303
|
-
//#region node_modules/date-fns/getWeek.js
|
|
1274
|
+
// node_modules/date-fns/getWeek.js
|
|
1304
1275
|
/**
|
|
1305
1276
|
* The {@link getWeek} function options.
|
|
1306
1277
|
*/
|
|
@@ -1344,14 +1315,12 @@ function getWeek(date, options) {
|
|
|
1344
1315
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
1345
1316
|
}
|
|
1346
1317
|
|
|
1347
|
-
|
|
1348
|
-
//#region node_modules/date-fns/_lib/addLeadingZeros.js
|
|
1318
|
+
// node_modules/date-fns/_lib/addLeadingZeros.js
|
|
1349
1319
|
function addLeadingZeros(number, targetLength) {
|
|
1350
1320
|
return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0");
|
|
1351
1321
|
}
|
|
1352
1322
|
|
|
1353
|
-
|
|
1354
|
-
//#region node_modules/date-fns/_lib/format/lightFormatters.js
|
|
1323
|
+
// node_modules/date-fns/_lib/format/lightFormatters.js
|
|
1355
1324
|
const lightFormatters = {
|
|
1356
1325
|
y(date, token) {
|
|
1357
1326
|
const signedYear = date.getFullYear();
|
|
@@ -1395,8 +1364,7 @@ const lightFormatters = {
|
|
|
1395
1364
|
}
|
|
1396
1365
|
};
|
|
1397
1366
|
|
|
1398
|
-
|
|
1399
|
-
//#region node_modules/date-fns/_lib/format/formatters.js
|
|
1367
|
+
// node_modules/date-fns/_lib/format/formatters.js
|
|
1400
1368
|
const dayPeriodEnum = {
|
|
1401
1369
|
am: "am",
|
|
1402
1370
|
pm: "pm",
|
|
@@ -1812,8 +1780,7 @@ function formatTimezone(offset, delimiter = "") {
|
|
|
1812
1780
|
return sign + hours + delimiter + minutes;
|
|
1813
1781
|
}
|
|
1814
1782
|
|
|
1815
|
-
|
|
1816
|
-
//#region node_modules/date-fns/_lib/format/longFormatters.js
|
|
1783
|
+
// node_modules/date-fns/_lib/format/longFormatters.js
|
|
1817
1784
|
const dateLongFormatter = (pattern, formatLong) => {
|
|
1818
1785
|
switch (pattern) {
|
|
1819
1786
|
case "P": return formatLong.date({ width: "short" });
|
|
@@ -1855,8 +1822,7 @@ const longFormatters = {
|
|
|
1855
1822
|
P: dateTimeLongFormatter
|
|
1856
1823
|
};
|
|
1857
1824
|
|
|
1858
|
-
|
|
1859
|
-
//#region node_modules/date-fns/_lib/protectedTokens.js
|
|
1825
|
+
// node_modules/date-fns/_lib/protectedTokens.js
|
|
1860
1826
|
const dayOfYearTokenRE = /^D+$/;
|
|
1861
1827
|
const weekYearTokenRE = /^Y+$/;
|
|
1862
1828
|
const throwTokens = [
|
|
@@ -1881,8 +1847,7 @@ function message(token, format, input) {
|
|
|
1881
1847
|
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`;
|
|
1882
1848
|
}
|
|
1883
1849
|
|
|
1884
|
-
|
|
1885
|
-
//#region node_modules/date-fns/format.js
|
|
1850
|
+
// node_modules/date-fns/format.js
|
|
1886
1851
|
const formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
1887
1852
|
const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
1888
1853
|
const escapedStringRegExp = /^'([^]*?)'?$/;
|
|
@@ -2229,12 +2194,10 @@ function cleanEscapedString(input) {
|
|
|
2229
2194
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2230
2195
|
}
|
|
2231
2196
|
|
|
2232
|
-
|
|
2233
|
-
//#region src/elements-experimental/timetable-row/timetable-row.scss?inline
|
|
2197
|
+
// src/elements-experimental/timetable-row/timetable-row.scss?inline
|
|
2234
2198
|
var timetable_row_default = ":host {\n --sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);\n --sbb-timetable-row-height: 1.5625rem;\n --sbb-timetable-row-height-header: 1.25rem;\n --sbb-timetable-row-height-footer: 1rem;\n --sbb-timetable-row-skeleton-pulse-duration: 1800ms;\n display: block;\n}\n\n:host([disable-animation]) {\n --sbb-timetable-row-skeleton-pulse-duration: 0;\n}\n\n.sbb-timetable__row-transport-icon {\n --sbb-icon-svg-width: 1.25rem;\n --sbb-icon-svg-height: 1.25rem;\n}\n\n.sbb-travel-hints__item {\n --sbb-icon-svg-height: 0.875rem;\n}\n\n.sbb-timetable__row--quay {\n margin-inline-end: var(--sbb-spacing-fixed-1x);\n}\n\n.sbb-timetable__row--quay-type {\n float: left;\n}\n\nul {\n display: inline-flex;\n}\n\nli {\n display: inline-flex;\n align-self: center;\n}\n\n.sbb-timetable__row-transport {\n display: inline-flex;\n align-self: center;\n}\n\n.sbb-timetable__row-transportnumber,\n.sbb-timetable__row-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 line-height: unset;\n white-space: nowrap;\n align-self: center;\n}\n\n.sbb-timetable__row {\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 display: flex;\n flex-direction: column;\n gap: var(--sbb-timetable-row-gap);\n}\n\n.sbb-timetable__row-header,\n.sbb-timetable__row-footer {\n animation: none;\n}\n\n.sbb-timetable__row-card {\n --sbb-card-padding-block: var(--sbb-card-with-badge-padding-block);\n}\n\n.sbb-timetable__row-header {\n display: flex;\n gap: var(--sbb-spacing-fixed-2x);\n align-items: center;\n line-height: var(--sbb-timetable-row-height-header);\n}\n\n.sbb-timetable__row-details,\n.sbb-timetable__row-hints {\n display: inline-flex;\n gap: var(--sbb-spacing-fixed-1x);\n align-items: center;\n}\n\n.sbb-timetable__row-header p {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin: 0;\n align-self: center;\n}\n\n.sbb-timetable__row-footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: var(--sbb-spacing-fixed-2x);\n line-height: var(--sbb-timetable-row-height-footer);\n}\n.sbb-timetable__row-footer > span {\n align-self: center;\n}\n.sbb-timetable__row-footer :only-child {\n margin-inline-start: auto;\n}\n\n.sbb-timetable__row-quay--changed {\n color: var(--sbb-color-primary);\n}\n\n.sbb-timetable__row-transport-wrapper,\n.sbb-timetable__row-warning {\n display: inline-flex;\n}\n\n.sbb-loading {\n pointer-events: none;\n}\n\n.sbb-loading__wrapper {\n display: flex;\n flex-direction: column;\n gap: var(--sbb-spacing-fixed-2x);\n}\n\n.sbb-loading__row {\n width: 100%;\n border-radius: var(--sbb-border-radius-1x);\n height: var(--sbb-timetable-row-height);\n}\n@media (min-width: calc(64rem)) {\n .sbb-loading__row {\n height: 1.75rem;\n }\n}\n@media (forced-colors: active) {\n .sbb-loading__row {\n border: var(--sbb-border-width-1x) solid ButtonBorder !important;\n }\n}\n\n.sbb-loading__row,\n.sbb-loading__badge {\n background: var(--sbb-background-color-4);\n animation: skeleton-pulse var(--sbb-timetable-row-skeleton-pulse-duration) ease-out infinite;\n}\n\n.sbb-loading__row:first-of-type {\n height: var(--sbb-timetable-row-height-header);\n width: 50%;\n}\n\n.sbb-loading__row:last-of-type {\n height: var(--sbb-timetable-row-height-footer);\n}\n\n.sbb-loading__badge {\n margin-inline: auto calc(var(--sbb-spacing-fixed-3x) * -1);\n padding-inline-end: var(--sbb-spacing-fixed-6x);\n border-end-start-radius: var(--sbb-card-badge-border-radius);\n transform: var(--sbb-card-badge-skew);\n width: 7.1875rem;\n height: 1.25rem;\n}\n\n@keyframes skeleton-pulse {\n 0% {\n background: var(--sbb-background-color-4);\n }\n 17% {\n background: var(--sbb-background-color-4);\n }\n 50% {\n background: var(--sbb-background-color-3);\n }\n 67% {\n background: var(--sbb-background-color-3);\n }\n 100% {\n background: var(--sbb-background-color-4);\n }\n}\n";
|
|
2235
2199
|
|
|
2236
|
-
|
|
2237
|
-
//#region src/elements-experimental/timetable-row/timetable-row.component.ts
|
|
2200
|
+
// src/elements-experimental/timetable-row/timetable-row.component.ts
|
|
2238
2201
|
const renderIconProduct = (icon, name) => {
|
|
2239
2202
|
return html`<span class="sbb-timetable__row-transport">
|
|
2240
2203
|
<sbb-icon name=${icon}></sbb-icon>
|
|
@@ -3017,5 +2980,4 @@ let SbbTimetableRowElement = (() => {
|
|
|
3017
2980
|
};
|
|
3018
2981
|
})();
|
|
3019
2982
|
|
|
3020
|
-
//#endregion
|
|
3021
2983
|
export { SbbTimetableRowElement, filterNotices, getCus, getHimIcon, handleNotices, renderIconProduct, renderStringProduct, sortSituation };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental-dev",
|
|
3
|
-
"version": "5.12.0-dev.
|
|
3
|
+
"version": "5.12.0-dev.1792975274",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
9
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/2bd0f393b7fef86545914c45de159ef4a3e7f287"
|
|
10
10
|
],
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|