@sbb-esta/lyne-elements 3.6.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/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/styles/core.scss +1 -1
- 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 +30 -30
- package/custom-elements.json +2907 -0
- 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/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/datepicker/datepicker/datepicker.component.js +1 -1
- package/development/file-selector/common.js +1 -1
- package/development/{file-selector-common-B4I8rwJE.js → file-selector-common-CRnQigIZ.js} +2 -2
- 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 +4 -2
- package/development/header/common/header-action-common.js +8 -8
- 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/paginator/paginator/paginator.component.js +1 -1
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-BRyEhlYf.js → radio-button-common-454JtP9b.js} +2 -2
- package/development/radio-button.js +1 -1
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- 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/train/train/train.component.js +1 -1
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- 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/package.json +50 -1
- 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/skiplink-list/skiplink-list.component.js +1 -1
- package/standard-theme.css +105 -31
- 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/train/train/train.component.js +1 -1
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/radio-button-common-DzALx3X7.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
|
};
|
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;
|
|
@@ -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
|
+
}
|
package/core.css
CHANGED
|
@@ -1217,7 +1217,7 @@ html {
|
|
|
1217
1217
|
opacity: 1;
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
|
-
sbb-form-field :where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input) {
|
|
1220
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input) {
|
|
1221
1221
|
--sbb-text-font-size: var(--sbb-font-size-text-m);
|
|
1222
1222
|
font-family: var(--sbb-typo-font-family);
|
|
1223
1223
|
font-weight: normal;
|
|
@@ -1244,37 +1244,37 @@ sbb-form-field :where(input, select, textarea, sbb-select, sbb-date-input, sbb-t
|
|
|
1244
1244
|
font-family: var(--sbb-typo-font-family) !important;
|
|
1245
1245
|
line-height: var(--sbb-typo-line-height-body-text) !important;
|
|
1246
1246
|
}
|
|
1247
|
-
sbb-form-field :where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input)::placeholder {
|
|
1247
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input)::placeholder {
|
|
1248
1248
|
color: var(--sbb-color-metal);
|
|
1249
1249
|
-webkit-text-fill-color: var(--sbb-color-metal);
|
|
1250
1250
|
opacity: 1;
|
|
1251
1251
|
}
|
|
1252
|
-
sbb-form-field[floating-label] :where(input, select, textarea, sbb-select)::placeholder, sbb-form-field[floating-label] :where(sbb-date-input, sbb-time-input)::after {
|
|
1252
|
+
:is(sbb-form-field, sbb-timetable-form-field)[floating-label] :where(input, select, textarea, sbb-select)::placeholder, :is(sbb-form-field, sbb-timetable-form-field)[floating-label] :where(sbb-date-input, sbb-time-input)::after {
|
|
1253
1253
|
color: transparent !important;
|
|
1254
1254
|
-webkit-text-fill-color: transparent !important;
|
|
1255
1255
|
}
|
|
1256
1256
|
@media (forced-colors: active) {
|
|
1257
|
-
sbb-form-field[floating-label] :where(input, select, textarea, sbb-select)::placeholder, sbb-form-field[floating-label] :where(sbb-date-input, sbb-time-input)::after {
|
|
1257
|
+
:is(sbb-form-field, sbb-timetable-form-field)[floating-label] :where(input, select, textarea, sbb-select)::placeholder, :is(sbb-form-field, sbb-timetable-form-field)[floating-label] :where(sbb-date-input, sbb-time-input)::after {
|
|
1258
1258
|
color: Canvas !important;
|
|
1259
1259
|
-webkit-text-fill-color: Canvas !important;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
|
-
sbb-form-field:not([floating-label]) :where(input, select, textarea, sbb-select):disabled::placeholder {
|
|
1262
|
+
:is(sbb-form-field, sbb-timetable-form-field):not([floating-label]) :where(input, select, textarea, sbb-select):disabled::placeholder {
|
|
1263
1263
|
color: var(--sbb-color-granite);
|
|
1264
1264
|
-webkit-text-fill-color: var(--sbb-color-granite);
|
|
1265
1265
|
}
|
|
1266
|
-
sbb-form-field :where(select) {
|
|
1266
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(select) {
|
|
1267
1267
|
vertical-align: middle;
|
|
1268
1268
|
}
|
|
1269
|
-
sbb-form-field :where(select, sbb-select) {
|
|
1269
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(select, sbb-select) {
|
|
1270
1270
|
padding-inline-end: var(--sbb-form-field-select-inline-padding-end);
|
|
1271
1271
|
}
|
|
1272
|
-
sbb-form-field[size=s] :where(input, sbb-date-input, sbb-time-input) {
|
|
1272
|
+
:is(sbb-form-field, sbb-timetable-form-field)[size=s] :where(input, sbb-date-input, sbb-time-input) {
|
|
1273
1273
|
height: calc(var(--sbb-form-field-input-text-size) * 1.25);
|
|
1274
1274
|
line-height: 1 !important;
|
|
1275
1275
|
margin-block: calc(0.5 * var(--sbb-form-field-input-text-size) * (var(--sbb-typo-line-height-body-text) - 1.25));
|
|
1276
1276
|
}
|
|
1277
|
-
sbb-form-field :where(textarea) {
|
|
1277
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea) {
|
|
1278
1278
|
--sbb-scrollbar-thumb-width: 0.125rem;
|
|
1279
1279
|
--sbb-scrollbar-thumb-width-hover: 0.25rem;
|
|
1280
1280
|
--sbb-scrollbar-width-firefox: thin;
|
|
@@ -1283,44 +1283,44 @@ sbb-form-field :where(textarea) {
|
|
|
1283
1283
|
--sbb-scrollbar-track-color: transparent;
|
|
1284
1284
|
--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
|
|
1285
1285
|
}
|
|
1286
|
-
sbb-form-field :where(textarea)::-webkit-scrollbar {
|
|
1286
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar {
|
|
1287
1287
|
width: var(--sbb-scrollbar-width);
|
|
1288
1288
|
height: var(--sbb-scrollbar-width);
|
|
1289
1289
|
background-color: var(--sbb-scrollbar-track-color, transparent);
|
|
1290
1290
|
}
|
|
1291
|
-
sbb-form-field :where(textarea)::-webkit-scrollbar-corner {
|
|
1291
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar-corner {
|
|
1292
1292
|
background-color: var(--sbb-scrollbar-track-color, transparent);
|
|
1293
1293
|
}
|
|
1294
|
-
sbb-form-field :where(textarea)::-webkit-scrollbar-thumb {
|
|
1294
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar-thumb {
|
|
1295
1295
|
background-color: var(--sbb-scrollbar-color, currentcolor);
|
|
1296
1296
|
border: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;
|
|
1297
1297
|
border-radius: var(--sbb-border-radius-4x);
|
|
1298
1298
|
background-clip: padding-box;
|
|
1299
1299
|
}
|
|
1300
|
-
sbb-form-field :where(textarea)::-webkit-scrollbar-thumb:hover {
|
|
1300
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar-thumb:hover {
|
|
1301
1301
|
background-color: var(--sbb-scrollbar-color-hover, currentcolor);
|
|
1302
1302
|
border-width: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)));
|
|
1303
1303
|
}
|
|
1304
|
-
sbb-form-field :where(textarea)::-webkit-scrollbar-button, sbb-form-field :where(textarea)::-webkit-scrollbar-corner {
|
|
1304
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar-button, :is(sbb-form-field, sbb-timetable-form-field) :where(textarea)::-webkit-scrollbar-corner {
|
|
1305
1305
|
display: none;
|
|
1306
1306
|
}
|
|
1307
1307
|
@supports not selector(::-webkit-scrollbar) {
|
|
1308
|
-
sbb-form-field :where(textarea) {
|
|
1308
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea) {
|
|
1309
1309
|
scrollbar-width: var(--sbb-scrollbar-width-firefox);
|
|
1310
1310
|
scrollbar-color: var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
sbb-form-field :where(textarea) {
|
|
1313
|
+
:is(sbb-form-field, sbb-timetable-form-field) :where(textarea) {
|
|
1314
1314
|
position: relative;
|
|
1315
1315
|
resize: none;
|
|
1316
1316
|
white-space: break-spaces;
|
|
1317
1317
|
overflow-y: auto;
|
|
1318
1318
|
min-height: calc(var(--sbb-typo-line-height-body-text) * 1em);
|
|
1319
1319
|
}
|
|
1320
|
-
sbb-form-field[size=l] :where(textarea) {
|
|
1320
|
+
:is(sbb-form-field, sbb-timetable-form-field)[size=l] :where(textarea) {
|
|
1321
1321
|
padding-block-end: 0.34375rem;
|
|
1322
1322
|
}
|
|
1323
|
-
sbb-form-field[negative] :where(textarea) {
|
|
1323
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea) {
|
|
1324
1324
|
--sbb-scrollbar-thumb-width: 0.125rem;
|
|
1325
1325
|
--sbb-scrollbar-thumb-width-hover: 0.25rem;
|
|
1326
1326
|
--sbb-scrollbar-width-firefox: thin;
|
|
@@ -1329,52 +1329,52 @@ sbb-form-field[negative] :where(textarea) {
|
|
|
1329
1329
|
--sbb-scrollbar-track-color: transparent;
|
|
1330
1330
|
--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
|
|
1331
1331
|
}
|
|
1332
|
-
sbb-form-field[negative] :where(textarea)::-webkit-scrollbar {
|
|
1332
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar {
|
|
1333
1333
|
width: var(--sbb-scrollbar-width);
|
|
1334
1334
|
height: var(--sbb-scrollbar-width);
|
|
1335
1335
|
background-color: var(--sbb-scrollbar-track-color, transparent);
|
|
1336
1336
|
}
|
|
1337
|
-
sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-corner {
|
|
1337
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar-corner {
|
|
1338
1338
|
background-color: var(--sbb-scrollbar-track-color, transparent);
|
|
1339
1339
|
}
|
|
1340
|
-
sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-thumb {
|
|
1340
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar-thumb {
|
|
1341
1341
|
background-color: var(--sbb-scrollbar-color, currentcolor);
|
|
1342
1342
|
border: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;
|
|
1343
1343
|
border-radius: var(--sbb-border-radius-4x);
|
|
1344
1344
|
background-clip: padding-box;
|
|
1345
1345
|
}
|
|
1346
|
-
sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-thumb:hover {
|
|
1346
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar-thumb:hover {
|
|
1347
1347
|
background-color: var(--sbb-scrollbar-color-hover, currentcolor);
|
|
1348
1348
|
border-width: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)));
|
|
1349
1349
|
}
|
|
1350
|
-
sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-button, sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-corner {
|
|
1350
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar-button, :is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea)::-webkit-scrollbar-corner {
|
|
1351
1351
|
display: none;
|
|
1352
1352
|
}
|
|
1353
1353
|
@supports not selector(::-webkit-scrollbar) {
|
|
1354
|
-
sbb-form-field[negative] :where(textarea) {
|
|
1354
|
+
:is(sbb-form-field, sbb-timetable-form-field)[negative] :where(textarea) {
|
|
1355
1355
|
scrollbar-width: var(--sbb-scrollbar-width-firefox);
|
|
1356
1356
|
scrollbar-color: var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1359
|
+
:is(sbb-form-field, sbb-timetable-form-field):has(:is(:is(input, textarea, select):user-invalid,
|
|
1360
1360
|
:is(:state(interacted),[state--interacted]):invalid,
|
|
1361
1361
|
.ng-touched.ng-invalid,
|
|
1362
|
-
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1362
|
+
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) :is(sbb-form-field, sbb-timetable-form-field):has(:is(:invalid, .ng-invalid)) {
|
|
1363
1363
|
--sbb-form-field-border-color: var(--sbb-color-red125);
|
|
1364
1364
|
--sbb-form-field-text-color: var(--sbb-color-red125);
|
|
1365
1365
|
}
|
|
1366
|
-
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1366
|
+
:is(sbb-form-field, sbb-timetable-form-field):has(:is(:is(input, textarea, select):user-invalid,
|
|
1367
1367
|
:is(:state(interacted),[state--interacted]):invalid,
|
|
1368
1368
|
.ng-touched.ng-invalid,
|
|
1369
|
-
.sbb-invalid))[negative], :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid))[negative] {
|
|
1369
|
+
.sbb-invalid))[negative], :is(.ng-submitted, .sbb-show-errors) :is(sbb-form-field, sbb-timetable-form-field):has(:is(:invalid, .ng-invalid))[negative] {
|
|
1370
1370
|
--sbb-form-field-border-color: var(--sbb-color-red-mode-dark);
|
|
1371
1371
|
--sbb-form-field-text-color: var(--sbb-color-red-mode-dark);
|
|
1372
1372
|
}
|
|
1373
1373
|
@media (forced-colors: active) {
|
|
1374
|
-
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1374
|
+
:is(sbb-form-field, sbb-timetable-form-field):has(:is(:is(input, textarea, select):user-invalid,
|
|
1375
1375
|
:is(:state(interacted),[state--interacted]):invalid,
|
|
1376
1376
|
.ng-touched.ng-invalid,
|
|
1377
|
-
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1377
|
+
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) :is(sbb-form-field, sbb-timetable-form-field):has(:is(:invalid, .ng-invalid)) {
|
|
1378
1378
|
--sbb-form-field-border-color: LinkText !important;
|
|
1379
1379
|
--sbb-form-field-text-color: LinkText !important;
|
|
1380
1380
|
}
|