@sbb-esta/lyne-elements 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y.css +1 -1
- package/alert/alert-group/alert-group.component.js +12 -12
- package/autocomplete/autocomplete-base-element.d.ts +14 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +110 -77
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +9 -9
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +5 -5
- package/button/common.js +1 -1
- package/button.js +1 -1
- package/carousel/carousel/carousel.component.d.ts +32 -0
- package/carousel/carousel/carousel.component.d.ts.map +1 -0
- package/carousel/carousel/carousel.component.js +78 -0
- package/carousel/carousel-item/carousel-item.component.d.ts +29 -0
- package/carousel/carousel-item/carousel-item.component.d.ts.map +1 -0
- package/carousel/carousel-item/carousel-item.component.js +26 -0
- package/carousel/carousel-item.d.ts +5 -0
- package/carousel/carousel-item.d.ts.map +1 -0
- package/carousel/carousel-item.js +4 -0
- package/carousel/carousel-list/carousel-list.component.d.ts +30 -0
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -0
- package/carousel/carousel-list/carousel-list.component.js +78 -0
- package/carousel/carousel-list.d.ts +5 -0
- package/carousel/carousel-list.d.ts.map +1 -0
- package/carousel/carousel-list.js +4 -0
- package/carousel/carousel.d.ts +5 -0
- package/carousel/carousel.d.ts.map +1 -0
- package/carousel/carousel.js +4 -0
- package/carousel.d.ts +7 -0
- package/carousel.d.ts.map +1 -0
- package/carousel.js +8 -0
- package/core/i18n/i18n.d.ts +6 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n/i18n.js +196 -160
- package/core/i18n.js +94 -88
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +66 -62
- package/core/styles/core.scss +4 -4
- package/core/styles/mixins/a11y.scss +1 -1
- package/core/styles/mixins/scrollbar.scss +5 -3
- package/core/styles/mixins/timetable-form.scss +63 -0
- package/core/styles/standard-theme.scss +1 -0
- package/core/styles/timetable-form.scss +27 -0
- package/core.css +68 -54
- package/custom-elements.json +3143 -236
- package/datepicker/datepicker/datepicker.component.js +1 -1
- package/development/alert/alert-group/alert-group.component.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +14 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +64 -9
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +4 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -1
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/carousel/carousel/carousel.component.d.ts +32 -0
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -0
- package/development/carousel/carousel/carousel.component.js +153 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts +29 -0
- package/development/carousel/carousel-item/carousel-item.component.d.ts.map +1 -0
- package/development/carousel/carousel-item/carousel-item.component.js +46 -0
- package/development/carousel/carousel-item.d.ts +5 -0
- package/development/carousel/carousel-item.d.ts.map +1 -0
- package/development/carousel/carousel-item.js +5 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts +30 -0
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -0
- package/development/carousel/carousel-list/carousel-list.component.js +143 -0
- package/development/carousel/carousel-list.d.ts +5 -0
- package/development/carousel/carousel-list.d.ts.map +1 -0
- package/development/carousel/carousel-list.js +5 -0
- package/development/carousel/carousel.d.ts +5 -0
- package/development/carousel/carousel.d.ts.map +1 -0
- package/development/carousel/carousel.js +5 -0
- package/development/carousel.d.ts +7 -0
- package/development/carousel.d.ts.map +1 -0
- package/development/carousel.js +9 -0
- package/development/core/i18n/i18n.d.ts +6 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +43 -1
- package/development/core/i18n.js +7 -1
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +7 -2
- package/development/datepicker/datepicker/datepicker.component.js +1 -1
- package/development/dialog/dialog/dialog.component.js +2 -2
- package/development/file-selector/common.js +1 -1
- package/development/{file-selector-common-BxXdRZxt.js → file-selector-common-CRnQigIZ.js} +4 -4
- package/development/file-selector.js +1 -1
- package/development/footer/footer.component.js +1 -1
- package/development/form-field/form-field/form-field.component.d.ts +3 -0
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +31 -43
- package/development/header/common/header-action-common.js +8 -8
- package/development/header/header-environment/header-environment.component.js +6 -6
- package/development/link-list/link-list/link-list.component.js +8 -8
- package/development/navigation/navigation-section/navigation-section.component.js +1 -1
- package/development/notification/notification.component.js +2 -2
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -2
- package/development/paginator/paginator/paginator.component.js +1 -1
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-hZiiLJDY.js → radio-button-common-454JtP9b.js} +7 -3
- package/development/radio-button.js +1 -1
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +3 -3
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +3 -3
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts +17 -0
- package/development/timetable-form/timetable-form/timetable-form.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form/timetable-form.component.js +40 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts +16 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +57 -0
- package/development/timetable-form/timetable-form-details.d.ts +5 -0
- package/development/timetable-form/timetable-form-details.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-details.js +5 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts +18 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +130 -0
- package/development/timetable-form/timetable-form-field.d.ts +5 -0
- package/development/timetable-form/timetable-form-field.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-field.js +5 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts +23 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +80 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts +5 -0
- package/development/timetable-form/timetable-form-swap-button.d.ts.map +1 -0
- package/development/timetable-form/timetable-form-swap-button.js +5 -0
- package/development/timetable-form/timetable-form.d.ts +5 -0
- package/development/timetable-form/timetable-form.d.ts.map +1 -0
- package/development/timetable-form/timetable-form.js +5 -0
- package/development/timetable-form.d.ts +8 -0
- package/development/timetable-form.d.ts.map +1 -0
- package/development/timetable-form.js +11 -0
- package/development/title/title-base.d.ts +1 -1
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title/title-base.js +2 -2
- package/development/title/title.component.d.ts +3 -1
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +30 -4
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/development/train/train-formation/train-formation.component.js +6 -4
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/{transparent-button-Dun6bh2G.js → transparent-button-COe-YB_U.js} +2 -2
- package/file-selector/common.js +1 -1
- package/{file-selector-common-Cn6U8goV.js → file-selector-common-OHK9hu3a.js} +1 -1
- package/file-selector.js +1 -1
- package/footer/footer.component.js +1 -1
- package/form-field/form-field/form-field.component.d.ts +3 -0
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +5 -5
- package/index.d.ts +14 -0
- package/index.js +14 -0
- package/link-list/link-list/link-list.component.js +8 -8
- package/navigation/navigation-section/navigation-section.component.js +1 -1
- package/notification/notification.component.js +1 -1
- package/package.json +50 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +10 -9
- package/paginator/paginator/paginator.component.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button-common-CUppr5FI.js +5 -0
- package/radio-button.js +1 -1
- package/screen-reader-only/screen-reader-only.component.js +1 -1
- package/selection-action-panel/selection-action-panel.component.js +3 -3
- package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/skiplink-list/skiplink-list.component.js +1 -1
- package/standard-theme.css +143 -55
- package/timetable-form/timetable-form/timetable-form.component.d.ts +17 -0
- package/timetable-form/timetable-form/timetable-form.component.d.ts.map +1 -0
- package/timetable-form/timetable-form/timetable-form.component.js +19 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.d.ts +16 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +19 -0
- package/timetable-form/timetable-form-details.d.ts +5 -0
- package/timetable-form/timetable-form-details.d.ts.map +1 -0
- package/timetable-form/timetable-form-details.js +4 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.d.ts +18 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +32 -0
- package/timetable-form/timetable-form-field.d.ts +5 -0
- package/timetable-form/timetable-form-field.d.ts.map +1 -0
- package/timetable-form/timetable-form-field.js +4 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts +23 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.d.ts.map +1 -0
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +38 -0
- package/timetable-form/timetable-form-swap-button.d.ts +5 -0
- package/timetable-form/timetable-form-swap-button.d.ts.map +1 -0
- package/timetable-form/timetable-form-swap-button.js +4 -0
- package/timetable-form/timetable-form.d.ts +5 -0
- package/timetable-form/timetable-form.d.ts.map +1 -0
- package/timetable-form/timetable-form.js +4 -0
- package/timetable-form.css +73 -0
- package/timetable-form.d.ts +8 -0
- package/timetable-form.d.ts.map +1 -0
- package/timetable-form.js +10 -0
- package/title/title-base.d.ts +1 -1
- package/title/title-base.d.ts.map +1 -1
- package/title/title-base.js +1 -1
- package/title/title.component.d.ts +3 -1
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +34 -15
- package/train/train/train.component.js +1 -1
- package/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/train/train-formation/train-formation.component.js +19 -17
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/{transparent-button-rf30m88X.js → transparent-button-xudJxob_.js} +1 -1
- package/radio-button-common-DJKWrKor.js +0 -5
package/core/i18n.js
CHANGED
|
@@ -1,99 +1,105 @@
|
|
|
1
|
-
import { i18nAdditionalWagonInformationHeading as
|
|
1
|
+
import { i18nAdditionalWagonInformationHeading as n, i18nArrival as a, i18nBlockedPassage as o, i18nBreadcrumbEllipsisButtonLabel as t, i18nCalendarDateSelection as r, i18nCalendarWeekNumber as l, i18nCarouselArrowsNavigationHint as u, i18nCarouselItemAriaLabel as s, i18nCheckboxRequired as c, i18nChipDelete as d, i18nChipGroupInputDescription as g, i18nClass as p, i18nClearInput as C, i18nCloseAlert as S, i18nCloseDialog as D, i18nCloseNavigation as b, i18nCloseNotification as P, i18nClosePopover as m, i18nCloseSidebar as v, i18nClosedCompartmentLabel as L, i18nCollapsed as T, i18nConnectionFrom as h, i18nConnectionRoundtrip as N, i18nConnectionTo as x, i18nCouchetteWagonLabel as M, i18nDateChangedTo as F, i18nDateInvalid as I, i18nDateMax as W, i18nDateMin as f, i18nDatePickerPlaceholder as y, i18nDeparture as R, i18nDialog as B, i18nDirection as k, i18nDurationDay as w, i18nDurationHour as A, i18nDurationMinute as O, i18nExpanded as Y, i18nFileSelectorButtonLabel as q, i18nFileSelectorButtonLabelMultiple as H, i18nFileSelectorCurrentlySelected as E, i18nFileSelectorDeleteFile as G, i18nFileSelectorSubtitleLabel as Q, i18nFileSelectorSubtitleLabelMultiple as j, i18nFlipCard as z, i18nFromPlatform as J, i18nGoBack as K, i18nInputRequired as U, i18nItemsPerPage as V, i18nLocomotiveLabel as X, i18nMapContainerButtonLabel as Z, i18nMeansOfTransport as _, i18nNew as $, i18nNextDay as ee, i18nNextMonth as ie, i18nNextPage as ne, i18nNextSlide as ae, i18nNextYear as oe, i18nNextYearRange as te, i18nOccupancy as re, i18nOptional as le, i18nPage as ue, i18nPaginatorOf as se, i18nPaginatorSelected as ce, i18nPreviousDay as de, i18nPreviousMonth as ge, i18nPreviousPage as pe, i18nPreviousSlide as Ce, i18nPreviousYear as Se, i18nPreviousYearRange as De, i18nRealTimeInfo as be, i18nRestaurantWagonLabel as Pe, i18nReverseCard as me, i18nSector as ve, i18nSectorShort as Le, i18nSelectNextDay as Te, i18nSelectPreviousDay as he, i18nSelectedPage as Ne, i18nSelectionRequired as xe, i18nShowCalendar as Me, i18nSleepingWagonLabel as Fe, i18nSlide as Ie, i18nSupersaver as We, i18nTargetOpensInNewWindow as fe, i18nTimeInputChange as ye, i18nTimeInvalid as Re, i18nTimeMax as Be, i18nTimeMaxLength as ke, i18nTimetableFormSwapButtonLabel as we, i18nToday as Ae, i18nTrain as Oe, i18nTrains as Ye, i18nTransferProcedure as qe, i18nTransferProcedures as He, i18nTravelhints as Ee, i18nTripDuration as Ge, i18nTripQuayChange as Qe, i18nWagonLabel as je, i18nWagonLabelNumber as ze, i18nWagonsLabel as Je, i18nWalkingDistanceArrival as Ke, i18nWalkingDistanceDeparture as Ue, i18nYearMonthSelection as Ve } from "./i18n/i18n.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
n as i18nAdditionalWagonInformationHeading,
|
|
4
4
|
a as i18nArrival,
|
|
5
5
|
o as i18nBlockedPassage,
|
|
6
6
|
t as i18nBreadcrumbEllipsisButtonLabel,
|
|
7
7
|
r as i18nCalendarDateSelection,
|
|
8
8
|
l as i18nCalendarWeekNumber,
|
|
9
|
-
u as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d as
|
|
13
|
-
g as
|
|
14
|
-
p as
|
|
15
|
-
C as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
b as
|
|
19
|
-
P as
|
|
20
|
-
m as
|
|
9
|
+
u as i18nCarouselArrowsNavigationHint,
|
|
10
|
+
s as i18nCarouselItemAriaLabel,
|
|
11
|
+
c as i18nCheckboxRequired,
|
|
12
|
+
d as i18nChipDelete,
|
|
13
|
+
g as i18nChipGroupInputDescription,
|
|
14
|
+
p as i18nClass,
|
|
15
|
+
C as i18nClearInput,
|
|
16
|
+
S as i18nCloseAlert,
|
|
17
|
+
D as i18nCloseDialog,
|
|
18
|
+
b as i18nCloseNavigation,
|
|
19
|
+
P as i18nCloseNotification,
|
|
20
|
+
m as i18nClosePopover,
|
|
21
|
+
v as i18nCloseSidebar,
|
|
22
|
+
L as i18nClosedCompartmentLabel,
|
|
21
23
|
T as i18nCollapsed,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
h as i18nConnectionFrom,
|
|
25
|
+
N as i18nConnectionRoundtrip,
|
|
26
|
+
x as i18nConnectionTo,
|
|
27
|
+
M as i18nCouchetteWagonLabel,
|
|
28
|
+
F as i18nDateChangedTo,
|
|
29
|
+
I as i18nDateInvalid,
|
|
28
30
|
W as i18nDateMax,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
f as i18nDateMin,
|
|
32
|
+
y as i18nDatePickerPlaceholder,
|
|
33
|
+
R as i18nDeparture,
|
|
34
|
+
B as i18nDialog,
|
|
35
|
+
k as i18nDirection,
|
|
36
|
+
w as i18nDurationDay,
|
|
37
|
+
A as i18nDurationHour,
|
|
36
38
|
O as i18nDurationMinute,
|
|
37
39
|
Y as i18nExpanded,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Te as
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
We as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Oe as
|
|
91
|
-
Ye as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
40
|
+
q as i18nFileSelectorButtonLabel,
|
|
41
|
+
H as i18nFileSelectorButtonLabelMultiple,
|
|
42
|
+
E as i18nFileSelectorCurrentlySelected,
|
|
43
|
+
G as i18nFileSelectorDeleteFile,
|
|
44
|
+
Q as i18nFileSelectorSubtitleLabel,
|
|
45
|
+
j as i18nFileSelectorSubtitleLabelMultiple,
|
|
46
|
+
z as i18nFlipCard,
|
|
47
|
+
J as i18nFromPlatform,
|
|
48
|
+
K as i18nGoBack,
|
|
49
|
+
U as i18nInputRequired,
|
|
50
|
+
V as i18nItemsPerPage,
|
|
51
|
+
X as i18nLocomotiveLabel,
|
|
52
|
+
Z as i18nMapContainerButtonLabel,
|
|
53
|
+
_ as i18nMeansOfTransport,
|
|
54
|
+
$ as i18nNew,
|
|
55
|
+
ee as i18nNextDay,
|
|
56
|
+
ie as i18nNextMonth,
|
|
57
|
+
ne as i18nNextPage,
|
|
58
|
+
ae as i18nNextSlide,
|
|
59
|
+
oe as i18nNextYear,
|
|
60
|
+
te as i18nNextYearRange,
|
|
61
|
+
re as i18nOccupancy,
|
|
62
|
+
le as i18nOptional,
|
|
63
|
+
ue as i18nPage,
|
|
64
|
+
se as i18nPaginatorOf,
|
|
65
|
+
ce as i18nPaginatorSelected,
|
|
66
|
+
de as i18nPreviousDay,
|
|
67
|
+
ge as i18nPreviousMonth,
|
|
68
|
+
pe as i18nPreviousPage,
|
|
69
|
+
Ce as i18nPreviousSlide,
|
|
70
|
+
Se as i18nPreviousYear,
|
|
71
|
+
De as i18nPreviousYearRange,
|
|
72
|
+
be as i18nRealTimeInfo,
|
|
73
|
+
Pe as i18nRestaurantWagonLabel,
|
|
74
|
+
me as i18nReverseCard,
|
|
75
|
+
ve as i18nSector,
|
|
76
|
+
Le as i18nSectorShort,
|
|
77
|
+
Te as i18nSelectNextDay,
|
|
78
|
+
he as i18nSelectPreviousDay,
|
|
79
|
+
Ne as i18nSelectedPage,
|
|
80
|
+
xe as i18nSelectionRequired,
|
|
81
|
+
Me as i18nShowCalendar,
|
|
82
|
+
Fe as i18nSleepingWagonLabel,
|
|
83
|
+
Ie as i18nSlide,
|
|
84
|
+
We as i18nSupersaver,
|
|
85
|
+
fe as i18nTargetOpensInNewWindow,
|
|
86
|
+
ye as i18nTimeInputChange,
|
|
87
|
+
Re as i18nTimeInvalid,
|
|
88
|
+
Be as i18nTimeMax,
|
|
89
|
+
ke as i18nTimeMaxLength,
|
|
90
|
+
we as i18nTimetableFormSwapButtonLabel,
|
|
91
|
+
Ae as i18nToday,
|
|
92
|
+
Oe as i18nTrain,
|
|
93
|
+
Ye as i18nTrains,
|
|
94
|
+
qe as i18nTransferProcedure,
|
|
95
|
+
He as i18nTransferProcedures,
|
|
96
|
+
Ee as i18nTravelhints,
|
|
97
|
+
Ge as i18nTripDuration,
|
|
98
|
+
Qe as i18nTripQuayChange,
|
|
99
|
+
je as i18nWagonLabel,
|
|
100
|
+
ze as i18nWagonLabelNumber,
|
|
101
|
+
Je as i18nWagonsLabel,
|
|
102
|
+
Ke as i18nWalkingDistanceArrival,
|
|
103
|
+
Ue as i18nWalkingDistanceDeparture,
|
|
104
|
+
Ve as i18nYearMonthSelection
|
|
99
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,8BA2C1D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isServer as
|
|
2
|
-
const
|
|
1
|
+
import { isServer as E } from "lit";
|
|
2
|
+
const g = E || !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
super(), this._host = e, this._host.addController(this);
|
|
5
5
|
}
|
|
@@ -19,40 +19,40 @@ const E = !g && !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
|
19
19
|
this._host.toggleAttribute(`state--${e}`, a);
|
|
20
20
|
}
|
|
21
21
|
} : null;
|
|
22
|
-
if (!
|
|
23
|
-
let
|
|
24
|
-
const e = (
|
|
22
|
+
if (!E) {
|
|
23
|
+
let h = 0;
|
|
24
|
+
const e = (r) => r.shadowRoot?.host ?? (r instanceof Element ? r : (() => {
|
|
25
25
|
throw new Error("Unable to resolve related element! This should never happen.");
|
|
26
|
-
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (
|
|
26
|
+
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (r, d, m) => {
|
|
27
27
|
const i = m[Element.name] ?? m[ElementInternals.name];
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
28
|
+
r.setAttribute(d, i.id ||= `aria-ref-${h++}`);
|
|
29
|
+
}, u = (r, d, m) => {
|
|
30
|
+
r.setAttribute(d, Object.values(m).reduce((i, l) => i.concat(l)).filter((i, l, t) => t.indexOf(i) === l).map((i) => i.id || (i.id = `aria-ref-${h++}`)).join(" "));
|
|
31
31
|
};
|
|
32
|
-
for (const
|
|
33
|
-
const
|
|
34
|
-
if (!("ariaActiveDescendantElement" in
|
|
32
|
+
for (const r of [ElementInternals, Element]) {
|
|
33
|
+
const d = r.prototype;
|
|
34
|
+
if (!("ariaActiveDescendantElement" in d)) {
|
|
35
35
|
const m = "aria-activedescendant", i = /* @__PURE__ */ new WeakMap();
|
|
36
|
-
Object.defineProperty(
|
|
36
|
+
Object.defineProperty(d, "ariaActiveDescendantElement", {
|
|
37
37
|
enumerable: !0,
|
|
38
38
|
configurable: !0,
|
|
39
39
|
get() {
|
|
40
|
-
const
|
|
41
|
-
return t ?
|
|
40
|
+
const l = e(this), t = l.getAttribute(m)?.split(/\s+/)[0] ?? null;
|
|
41
|
+
return t ? l.getRootNode().getElementById?.(t) ?? null : null;
|
|
42
42
|
},
|
|
43
|
-
set(
|
|
44
|
-
if (
|
|
45
|
-
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${
|
|
46
|
-
const t = e(this),
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
else if (
|
|
50
|
-
|
|
43
|
+
set(l) {
|
|
44
|
+
if (l !== null && !(l instanceof Element))
|
|
45
|
+
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
46
|
+
const t = e(this), n = i.get(t);
|
|
47
|
+
if (n?.observer?.disconnect(), l === null)
|
|
48
|
+
n && (delete n.elements[r.name], Object.keys(n).length ? n.observer.observe(Object.values(n.elements)[0], a) : (i.delete(t), t.removeAttribute(m)));
|
|
49
|
+
else if (n)
|
|
50
|
+
n.elements[r.name] = l, c(t, m, n.elements), Object.values(n.elements).forEach((s) => n.observer.observe(s, a));
|
|
51
51
|
else {
|
|
52
|
-
const
|
|
53
|
-
c(t, m,
|
|
54
|
-
const
|
|
55
|
-
|
|
52
|
+
const s = { [r.name]: l };
|
|
53
|
+
c(t, m, s);
|
|
54
|
+
const o = new MutationObserver(() => c(t, m, s));
|
|
55
|
+
o.observe(l, a), i.set(t, { elements: s, observer: o });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -65,63 +65,67 @@ if (!g) {
|
|
|
65
65
|
"ariaLabelledByElements",
|
|
66
66
|
"ariaOwnsElements"
|
|
67
67
|
])
|
|
68
|
-
if (!(m in
|
|
69
|
-
const i = /* @__PURE__ */ new WeakMap(),
|
|
70
|
-
Object.defineProperty(
|
|
68
|
+
if (!(m in d)) {
|
|
69
|
+
const i = /* @__PURE__ */ new WeakMap(), l = `aria-${m.slice(4, -8).toLowerCase()}`;
|
|
70
|
+
Object.defineProperty(d, m, {
|
|
71
71
|
enumerable: !0,
|
|
72
72
|
configurable: !0,
|
|
73
73
|
get() {
|
|
74
|
-
const t = e(this),
|
|
75
|
-
return
|
|
74
|
+
const t = e(this), n = t.getAttribute(l)?.split(/\s+/).filter((s, o, f) => f.indexOf(s) === o).map((s) => t.getRootNode().getElementById?.(s)).filter((s) => s instanceof Element);
|
|
75
|
+
return n?.length ? Object.freeze(n) : null;
|
|
76
76
|
},
|
|
77
77
|
set(t) {
|
|
78
|
-
if (t !== null && (!Array.isArray(t) || t.some((
|
|
79
|
-
throw new TypeError(`Failed to set the '${m}' property on '${
|
|
80
|
-
const
|
|
81
|
-
t = t?.filter((
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
else if (
|
|
86
|
-
|
|
78
|
+
if (t !== null && (!Array.isArray(t) || t.some((o) => !(o instanceof Element))))
|
|
79
|
+
throw new TypeError(`Failed to set the '${m}' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
80
|
+
const n = e(this);
|
|
81
|
+
t = t?.filter((o, f, b) => b.indexOf(o) === f) ?? null;
|
|
82
|
+
const s = i.get(n);
|
|
83
|
+
if (s?.observer?.disconnect(), t === null)
|
|
84
|
+
s && (delete s.elements[r.name], Object.keys(s.elements).length ? Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a)) : i.delete(n));
|
|
85
|
+
else if (s)
|
|
86
|
+
s.elements[r.name] = t, u(n, l, s.elements), Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a));
|
|
87
87
|
else {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
t.forEach((b) =>
|
|
88
|
+
const o = { [r.name]: t };
|
|
89
|
+
u(n, l, o);
|
|
90
|
+
const f = new MutationObserver(() => u(n, l, o));
|
|
91
|
+
t.forEach((b) => f.observe(b, a)), i.set(n, { elements: o, observer: f });
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
const y = (
|
|
98
|
+
const y = (h, ...e) => {
|
|
99
99
|
const a = e.filter((c) => !!c);
|
|
100
|
-
return
|
|
101
|
-
}, O = (
|
|
100
|
+
return h?.length ? h.concat(a) : e.length ? a : null;
|
|
101
|
+
}, O = (h, ...e) => {
|
|
102
102
|
e = e.filter((c) => !!c);
|
|
103
|
-
const a =
|
|
103
|
+
const a = h?.filter((c) => !e.includes(c)) ?? null;
|
|
104
104
|
return a?.length ? a : null;
|
|
105
|
-
},
|
|
106
|
-
class e extends
|
|
105
|
+
}, A = (h) => {
|
|
106
|
+
class e extends h {
|
|
107
107
|
constructor(...c) {
|
|
108
|
-
super(...c), this.internals = this.attachInternals(),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
if (super(...c), this.internals = this.attachInternals(), g)
|
|
109
|
+
Object.defineProperty(this.internals, "states", {
|
|
110
|
+
value: new g(this),
|
|
111
|
+
writable: !1,
|
|
112
|
+
configurable: !1,
|
|
113
|
+
enumerable: !1
|
|
114
|
+
});
|
|
115
|
+
else
|
|
116
|
+
for (const r of this.getAttributeNames().filter((d) => d.startsWith("state--")))
|
|
117
|
+
this.internals.states.add(r.slice(7)), this.removeAttribute(r);
|
|
118
|
+
const u = this.constructor.role;
|
|
119
|
+
u && (this.internals.role = u);
|
|
116
120
|
}
|
|
117
|
-
toggleState(c,
|
|
118
|
-
|
|
121
|
+
toggleState(c, u) {
|
|
122
|
+
u || u !== !1 && !this.internals.states.has(c) ? this.internals.states.add(c) : this.internals.states.delete(c);
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
return e;
|
|
122
126
|
};
|
|
123
127
|
export {
|
|
124
|
-
|
|
128
|
+
A as SbbElementInternalsMixin,
|
|
125
129
|
y as appendAriaElements,
|
|
126
130
|
O as removeAriaElements
|
|
127
131
|
};
|
package/core/styles/core.scss
CHANGED
|
@@ -109,7 +109,7 @@ html {
|
|
|
109
109
|
@include typo.placeholder;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
sbb-form-field {
|
|
112
|
+
:is(sbb-form-field, sbb-timetable-form-field) {
|
|
113
113
|
:where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input) {
|
|
114
114
|
@include typo.text-m--regular;
|
|
115
115
|
@include helpers.ellipsis;
|
|
@@ -205,7 +205,7 @@ sbb-form-field {
|
|
|
205
205
|
&:has(
|
|
206
206
|
:is(
|
|
207
207
|
:is(input, textarea, select):user-invalid,
|
|
208
|
-
:
|
|
208
|
+
:state(interacted):invalid,
|
|
209
209
|
.ng-touched.ng-invalid,
|
|
210
210
|
.sbb-invalid
|
|
211
211
|
)
|
|
@@ -563,13 +563,13 @@ sbb-dialog-actions {
|
|
|
563
563
|
--sbb-dialog-actions-border-color: var(--sbb-color-iron);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
sbb-dialog:
|
|
566
|
+
sbb-dialog:state(overflows) & {
|
|
567
567
|
--sbb-dialog-actions-border-color: transparent;
|
|
568
568
|
|
|
569
569
|
@include shadows.shadow-level-9-soft;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
sbb-dialog[negative]:
|
|
572
|
+
sbb-dialog[negative]:state(overflows) & {
|
|
573
573
|
@include shadows.shadow-level-9-soft-negative;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
@@ -40,9 +40,11 @@
|
|
|
40
40
|
// We have to use the `not` selector as Chrome supports both, the -webkit-* and the following properties.
|
|
41
41
|
// As long as possible we use the -webkit-* approach as we have more styling possibilities there.
|
|
42
42
|
@supports not selector(::-webkit-scrollbar) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var(--sbb-scrollbar-
|
|
43
|
+
& {
|
|
44
|
+
scrollbar-width: var(--sbb-scrollbar-width-firefox);
|
|
45
|
+
scrollbar-color: var(--sbb-scrollbar-color, currentcolor)
|
|
46
|
+
var(--sbb-scrollbar-track-color, transparent);
|
|
47
|
+
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use '../core/functions';
|
|
2
|
+
@use '../core/mediaqueries';
|
|
3
|
+
|
|
4
|
+
@mixin sbb-timetable-form {
|
|
5
|
+
--sbb-timetable-form-content-max-width: #{functions.px-to-rem-build(740)};
|
|
6
|
+
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
column-gap: var(--sbb-spacing-fixed-3x);
|
|
11
|
+
border-radius: var(--sbb-border-radius-4x);
|
|
12
|
+
padding-block: var(--sbb-spacing-fixed-10x) var(--sbb-spacing-responsive-l);
|
|
13
|
+
padding-inline: var(--sbb-spacing-fixed-5x);
|
|
14
|
+
background: linear-gradient(
|
|
15
|
+
to bottom,
|
|
16
|
+
var(--sbb-color-red) 0 #{functions.px-to-rem-build(178)},
|
|
17
|
+
var(--sbb-color-milk) #{functions.px-to-rem-build(178)} 100%
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
@include mediaqueries.mq($to: large) {
|
|
21
|
+
&:has(sbb-signet) {
|
|
22
|
+
padding-block-start: var(--sbb-spacing-fixed-4x);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
sbb-signet {
|
|
27
|
+
width: var(--sbb-spacing-fixed-16x);
|
|
28
|
+
align-self: end;
|
|
29
|
+
margin-block-end: var(--sbb-spacing-fixed-2x);
|
|
30
|
+
margin-inline: 0;
|
|
31
|
+
|
|
32
|
+
@include mediaqueries.mq($from: large) {
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset-block-start: var(--sbb-spacing-fixed-6x);
|
|
35
|
+
inset-inline-end: var(--sbb-spacing-fixed-6x);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
& > * {
|
|
40
|
+
margin-inline: auto;
|
|
41
|
+
max-width: var(--sbb-timetable-form-content-max-width);
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin timetable-form-block {
|
|
47
|
+
--sbb-form-field-focus-underline-z-index: 1;
|
|
48
|
+
|
|
49
|
+
width: 100%;
|
|
50
|
+
position: relative;
|
|
51
|
+
|
|
52
|
+
&::after {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
border-block-end: var(--sbb-border-width-1x) solid var(--sbb-color-cloud);
|
|
56
|
+
inset-inline: var(--sbb-form-field-padding-inline);
|
|
57
|
+
inset-block-end: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
sbb-datepicker-toggle {
|
|
61
|
+
margin-inline-end: var(--sbb-spacing-fixed-6x);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use './core/functions';
|
|
2
|
+
@use './core/mediaqueries';
|
|
3
|
+
@use './mixins/timetable-form' as mixin;
|
|
4
|
+
|
|
5
|
+
.sbb-timetable-form {
|
|
6
|
+
@include mixin.sbb-timetable-form;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
sbb-timetable-form {
|
|
10
|
+
sbb-date-input {
|
|
11
|
+
min-width: #{functions.px-to-rem-build(133)}; // From FIGMA spec
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sbb-timetable-form-block {
|
|
15
|
+
@include mixin.timetable-form-block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include mediaqueries.mq($to: small) {
|
|
19
|
+
.sbb-timetable-form-mobile-block {
|
|
20
|
+
@include mixin.timetable-form-block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sbb-timetable-form-mobile-hidden {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|