@sbb-esta/lyne-elements 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/i18n/i18n.d.ts +5 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n/i18n.js +108 -84
- package/core/i18n.js +84 -80
- package/core/mixins/element-internals-mixin.js +6 -6
- package/core/mixins/form-associated-input-mixin.d.ts +1 -0
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-input-mixin.js +2 -2
- package/core/styles/core/mediaqueries.scss +1 -1
- package/core/styles/core.scss +34 -1
- package/core/styles/mixins/typo.scss +88 -41
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +530 -0
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +1123 -0
- package/core.css +30 -0
- package/custom-elements.json +1176 -471
- package/date-input/date-input.component.d.ts +5 -4
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +19 -21
- package/development/core/i18n/i18n.d.ts +5 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +38 -10
- package/development/core/i18n.js +5 -1
- package/development/core/mixins/element-internals-mixin.js +3 -3
- package/development/core/mixins/form-associated-input-mixin.d.ts +1 -0
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +3 -2
- package/development/date-input/date-input.component.d.ts +5 -4
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +5 -8
- package/development/dialog/dialog-title/dialog-title.component.js +2 -6
- package/development/file-selector/common/file-selector-common.d.ts +2 -1
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +64 -19
- package/development/file-selector/common.js +1 -1
- package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
- package/development/file-selector/file-selector/file-selector.component.js +12 -17
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +0 -7
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +32 -76
- package/development/{file-selector-common-csww18o8.js → file-selector-common-BxXdRZxt.js} +3 -3
- package/development/file-selector.js +1 -1
- 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 -4
- package/development/navigation/common/navigation-action-common.js +5 -8
- package/development/navigation/navigation/navigation.component.js +21 -4
- package/development/navigation/navigation-marker/navigation-marker.component.js +5 -8
- package/development/navigation/navigation-section/navigation-section.component.js +6 -19
- package/development/paginator/common/paginator-common.d.ts +3 -0
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +68 -10
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +8 -3
- package/development/paginator/paginator/paginator.component.d.ts +5 -0
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +28 -6
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +3 -4
- package/development/time-input/time-input.component.d.ts +5 -4
- package/development/time-input/time-input.component.d.ts.map +1 -1
- package/development/time-input/time-input.component.js +5 -8
- package/development/title/title-base.js +14 -67
- package/development/title/title.component.js +17 -14
- package/development/toast/toast.component.js +6 -9
- package/development/train/train-wagon/train-wagon.component.js +6 -9
- package/dialog/dialog-title/dialog-title.component.js +1 -1
- package/file-selector/common/file-selector-common.d.ts +2 -1
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/file-selector/common/file-selector-common.js +88 -63
- package/file-selector/common.js +1 -1
- package/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
- package/file-selector/file-selector/file-selector.component.js +26 -31
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +0 -7
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +50 -74
- package/file-selector-common-Cn6U8goV.js +5 -0
- package/file-selector.js +1 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +3 -3
- package/navigation/common/navigation-action-common.js +8 -8
- package/navigation/navigation/navigation.component.js +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +1 -1
- package/navigation/navigation-section/navigation-section.component.js +14 -14
- package/package.json +1 -1
- package/paginator/common/paginator-common.d.ts +3 -0
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common/paginator-common.js +103 -63
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +13 -8
- package/paginator/paginator/paginator.component.d.ts +5 -0
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +77 -61
- package/sidebar/sidebar-title/sidebar-title.component.js +14 -14
- package/standard-theme.css +30 -0
- package/tabs/tab-group/tab-group.component.js +7 -7
- package/time-input/time-input.component.d.ts +5 -4
- package/time-input/time-input.component.d.ts.map +1 -1
- package/time-input/time-input.component.js +21 -22
- package/title/title-base.js +33 -33
- package/title/title.component.js +9 -9
- package/toast/toast.component.js +1 -1
- package/train/train-wagon/train-wagon.component.js +6 -6
- package/file-selector-common-Dw5d8vA4.js +0 -5
package/core/i18n.js
CHANGED
|
@@ -1,95 +1,99 @@
|
|
|
1
|
-
import { i18nAdditionalWagonInformationHeading as i, i18nArrival as a, i18nBlockedPassage as o, i18nBreadcrumbEllipsisButtonLabel as
|
|
1
|
+
import { i18nAdditionalWagonInformationHeading as i, i18nArrival as a, i18nBlockedPassage as o, i18nBreadcrumbEllipsisButtonLabel as t, i18nCalendarDateSelection as r, i18nCalendarWeekNumber as l, i18nCheckboxRequired as u, i18nChipDelete as c, i18nChipGroupInputDescription as s, i18nClass as d, i18nClearInput as g, i18nCloseAlert as p, i18nCloseDialog as C, i18nCloseNavigation as D, i18nCloseNotification as S, i18nClosePopover as b, i18nCloseSidebar as P, i18nClosedCompartmentLabel as m, i18nCollapsed as T, i18nConnectionFrom as v, i18nConnectionRoundtrip as L, i18nConnectionTo as h, i18nCouchetteWagonLabel as x, i18nDateChangedTo as M, i18nDateInvalid as N, i18nDateMax as W, i18nDateMin as F, i18nDatePickerPlaceholder as I, i18nDeparture as f, i18nDialog as y, i18nDirection as R, i18nDurationDay as k, i18nDurationHour as B, i18nDurationMinute as O, i18nExpanded as Y, i18nFileSelectorButtonLabel as w, i18nFileSelectorButtonLabelMultiple as A, i18nFileSelectorCurrentlySelected as q, i18nFileSelectorDeleteFile as E, i18nFileSelectorSubtitleLabel as G, i18nFileSelectorSubtitleLabelMultiple as H, i18nFlipCard as Q, i18nFromPlatform as j, i18nGoBack as z, i18nInputRequired as J, i18nItemsPerPage as K, i18nLocomotiveLabel as U, i18nMapContainerButtonLabel as V, i18nMeansOfTransport as X, i18nNew as Z, i18nNextDay as _, i18nNextMonth as $, i18nNextPage as ee, i18nNextYear as ne, i18nNextYearRange as ie, i18nOccupancy as ae, i18nOptional as oe, i18nPage as te, i18nPaginatorOf as re, i18nPaginatorSelected as le, i18nPreviousDay as ue, i18nPreviousMonth as ce, i18nPreviousPage as se, i18nPreviousYear as de, i18nPreviousYearRange as ge, i18nRealTimeInfo as pe, i18nRestaurantWagonLabel as Ce, i18nReverseCard as De, i18nSector as Se, i18nSectorShort as be, i18nSelectNextDay as Pe, i18nSelectPreviousDay as me, i18nSelectedPage as Te, i18nSelectionRequired as ve, i18nShowCalendar as Le, i18nSleepingWagonLabel as he, i18nSupersaver as xe, i18nTargetOpensInNewWindow as Me, i18nTimeInputChange as Ne, i18nTimeInvalid as We, i18nTimeMax as Fe, i18nTimeMaxLength as Ie, i18nToday as fe, i18nTrain as ye, i18nTrains as Re, i18nTransferProcedure as ke, i18nTransferProcedures as Be, i18nTravelhints as Oe, i18nTripDuration as Ye, i18nTripQuayChange as we, i18nWagonLabel as Ae, i18nWagonLabelNumber as qe, i18nWagonsLabel as Ee, i18nWalkingDistanceArrival as Ge, i18nWalkingDistanceDeparture as He, i18nYearMonthSelection as Qe } from "./i18n/i18n.js";
|
|
2
2
|
export {
|
|
3
3
|
i as i18nAdditionalWagonInformationHeading,
|
|
4
4
|
a as i18nArrival,
|
|
5
5
|
o as i18nBlockedPassage,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
t as i18nBreadcrumbEllipsisButtonLabel,
|
|
7
|
+
r as i18nCalendarDateSelection,
|
|
8
8
|
l as i18nCalendarWeekNumber,
|
|
9
9
|
u as i18nCheckboxRequired,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
c as i18nChipDelete,
|
|
11
|
+
s as i18nChipGroupInputDescription,
|
|
12
12
|
d as i18nClass,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
g as i18nClearInput,
|
|
14
|
+
p as i18nCloseAlert,
|
|
15
|
+
C as i18nCloseDialog,
|
|
16
16
|
D as i18nCloseNavigation,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
S as i18nCloseNotification,
|
|
18
|
+
b as i18nClosePopover,
|
|
19
|
+
P as i18nCloseSidebar,
|
|
20
20
|
m as i18nClosedCompartmentLabel,
|
|
21
21
|
T as i18nCollapsed,
|
|
22
22
|
v as i18nConnectionFrom,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
L as i18nConnectionRoundtrip,
|
|
24
|
+
h as i18nConnectionTo,
|
|
25
25
|
x as i18nCouchetteWagonLabel,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
M as i18nDateChangedTo,
|
|
27
|
+
N as i18nDateInvalid,
|
|
28
|
+
W as i18nDateMax,
|
|
29
|
+
F as i18nDateMin,
|
|
30
|
+
I as i18nDatePickerPlaceholder,
|
|
31
|
+
f as i18nDeparture,
|
|
32
|
+
y as i18nDialog,
|
|
33
|
+
R as i18nDirection,
|
|
34
34
|
k as i18nDurationDay,
|
|
35
35
|
B as i18nDurationHour,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
q as
|
|
41
|
-
E as
|
|
42
|
-
G as
|
|
43
|
-
H as
|
|
44
|
-
Q as
|
|
45
|
-
j as
|
|
46
|
-
z as
|
|
47
|
-
J as
|
|
48
|
-
K as
|
|
49
|
-
U as
|
|
50
|
-
V as
|
|
51
|
-
X as
|
|
52
|
-
Z as
|
|
53
|
-
_ as
|
|
54
|
-
$ as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
36
|
+
O as i18nDurationMinute,
|
|
37
|
+
Y as i18nExpanded,
|
|
38
|
+
w as i18nFileSelectorButtonLabel,
|
|
39
|
+
A as i18nFileSelectorButtonLabelMultiple,
|
|
40
|
+
q as i18nFileSelectorCurrentlySelected,
|
|
41
|
+
E as i18nFileSelectorDeleteFile,
|
|
42
|
+
G as i18nFileSelectorSubtitleLabel,
|
|
43
|
+
H as i18nFileSelectorSubtitleLabelMultiple,
|
|
44
|
+
Q as i18nFlipCard,
|
|
45
|
+
j as i18nFromPlatform,
|
|
46
|
+
z as i18nGoBack,
|
|
47
|
+
J as i18nInputRequired,
|
|
48
|
+
K as i18nItemsPerPage,
|
|
49
|
+
U as i18nLocomotiveLabel,
|
|
50
|
+
V as i18nMapContainerButtonLabel,
|
|
51
|
+
X as i18nMeansOfTransport,
|
|
52
|
+
Z as i18nNew,
|
|
53
|
+
_ as i18nNextDay,
|
|
54
|
+
$ as i18nNextMonth,
|
|
55
|
+
ee as i18nNextPage,
|
|
56
|
+
ne as i18nNextYear,
|
|
57
|
+
ie as i18nNextYearRange,
|
|
58
|
+
ae as i18nOccupancy,
|
|
59
|
+
oe as i18nOptional,
|
|
60
|
+
te as i18nPage,
|
|
61
|
+
re as i18nPaginatorOf,
|
|
62
|
+
le as i18nPaginatorSelected,
|
|
63
|
+
ue as i18nPreviousDay,
|
|
64
|
+
ce as i18nPreviousMonth,
|
|
65
|
+
se as i18nPreviousPage,
|
|
66
|
+
de as i18nPreviousYear,
|
|
67
|
+
ge as i18nPreviousYearRange,
|
|
68
|
+
pe as i18nRealTimeInfo,
|
|
69
|
+
Ce as i18nRestaurantWagonLabel,
|
|
70
|
+
De as i18nReverseCard,
|
|
71
|
+
Se as i18nSector,
|
|
72
|
+
be as i18nSectorShort,
|
|
73
|
+
Pe as i18nSelectNextDay,
|
|
74
|
+
me as i18nSelectPreviousDay,
|
|
75
|
+
Te as i18nSelectedPage,
|
|
76
|
+
ve as i18nSelectionRequired,
|
|
77
|
+
Le as i18nShowCalendar,
|
|
78
|
+
he as i18nSleepingWagonLabel,
|
|
79
|
+
xe as i18nSupersaver,
|
|
80
|
+
Me as i18nTargetOpensInNewWindow,
|
|
81
|
+
Ne as i18nTimeInputChange,
|
|
82
|
+
We as i18nTimeInvalid,
|
|
83
|
+
Fe as i18nTimeMax,
|
|
84
|
+
Ie as i18nTimeMaxLength,
|
|
85
|
+
fe as i18nToday,
|
|
86
|
+
ye as i18nTrain,
|
|
87
|
+
Re as i18nTrains,
|
|
88
|
+
ke as i18nTransferProcedure,
|
|
89
|
+
Be as i18nTransferProcedures,
|
|
90
|
+
Oe as i18nTravelhints,
|
|
91
|
+
Ye as i18nTripDuration,
|
|
92
|
+
we as i18nTripQuayChange,
|
|
93
|
+
Ae as i18nWagonLabel,
|
|
94
|
+
qe as i18nWagonLabelNumber,
|
|
95
|
+
Ee as i18nWagonsLabel,
|
|
96
|
+
Ge as i18nWalkingDistanceArrival,
|
|
97
|
+
He as i18nWalkingDistanceDeparture,
|
|
98
|
+
Qe as i18nYearMonthSelection
|
|
95
99
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isServer as
|
|
2
|
-
const
|
|
1
|
+
import { isServer as g } from "lit";
|
|
2
|
+
const E = !g && !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,7 +19,7 @@ const g = !E && !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
|
19
19
|
this._host.toggleAttribute(`state--${e}`, a);
|
|
20
20
|
}
|
|
21
21
|
} : null;
|
|
22
|
-
if (!
|
|
22
|
+
if (!g) {
|
|
23
23
|
let d = 0;
|
|
24
24
|
const e = (l) => l.shadowRoot?.host ?? (l instanceof Element ? l : (() => {
|
|
25
25
|
throw new Error("Unable to resolve related element! This should never happen.");
|
|
@@ -81,7 +81,7 @@ if (!E) {
|
|
|
81
81
|
t = t?.filter((r, h, b) => b.indexOf(r) === h) ?? null;
|
|
82
82
|
const n = i.get(s);
|
|
83
83
|
if (n?.observer?.disconnect(), t === null)
|
|
84
|
-
n && (delete n.elements[l.name], Object.keys(n).length ?
|
|
84
|
+
n && (delete n.elements[l.name], Object.keys(n.elements).length ? Object.values(n.elements).reduce((r, h) => r.concat(h)).forEach((r) => n.observer.observe(r, a)) : i.delete(s));
|
|
85
85
|
else if (n)
|
|
86
86
|
n.elements[l.name] = t, f(s, o, n.elements), Object.values(n.elements).reduce((r, h) => r.concat(h)).forEach((r) => n.observer.observe(r, a));
|
|
87
87
|
else {
|
|
@@ -105,8 +105,8 @@ const y = (d, ...e) => {
|
|
|
105
105
|
}, S = (d) => {
|
|
106
106
|
class e extends d {
|
|
107
107
|
constructor(...c) {
|
|
108
|
-
super(...c), this.internals = this.attachInternals(),
|
|
109
|
-
value: new
|
|
108
|
+
super(...c), this.internals = this.attachInternals(), E && Object.defineProperty(this.internals, "states", {
|
|
109
|
+
value: new E(this),
|
|
110
110
|
writable: !1,
|
|
111
111
|
configurable: !1,
|
|
112
112
|
enumerable: !1
|
|
@@ -4,6 +4,7 @@ import { AbstractConstructor } from './constructor.js';
|
|
|
4
4
|
import { FormRestoreReason, FormRestoreState } from './form-associated-mixin.js';
|
|
5
5
|
declare const SbbFormAssociatedInputMixinType_base: AbstractConstructor<import('./required-mixin.js').SbbRequiredMixinType> & AbstractConstructor<import('./form-associated-mixin.js').SbbFormAssociatedMixinType> & AbstractConstructor<import('./element-internals-mixin.js').SbbElementInternalsMixinType> & typeof LitElement & import('./element-internals-mixin.js').SbbElementInternalsConstructor;
|
|
6
6
|
export declare abstract class SbbFormAssociatedInputMixinType extends SbbFormAssociatedInputMixinType_base {
|
|
7
|
+
static readonly formFieldAssociated = true;
|
|
7
8
|
set value(value: string);
|
|
8
9
|
get value(): string;
|
|
9
10
|
set disabled(value: boolean);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-associated-input-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/form-associated-input-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAGhB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAC;;AAIpC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,+BAAgC,SAAQ,oCAErE;IACC,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE;IAChC,IAAW,KAAK,IAAI,MAAM,CAAC;IAE3B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE;IACtC,IAAW,WAAW,IAAI,MAAM,CAAC;IAEjC;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAEd,iBAAiB,IAAI,IAAI;IACzB,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAEhG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IACjD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC3C;AAgBD;;GAEG;AAEH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EACnF,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"form-associated-input-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/form-associated-input-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAGhB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAC;;AAIpC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,+BAAgC,SAAQ,oCAErE;IACC,gBAAuB,mBAAmB,QAAQ;IAElD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE;IAChC,IAAW,KAAK,IAAI,MAAM,CAAC;IAE3B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE;IACtC,IAAW,WAAW,IAAI,MAAM,CAAC;IAEjC;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAEd,iBAAiB,IAAI,IAAI;IACzB,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAEhG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IACjD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC3C;AAgBD;;GAEG;AAEH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EACnF,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,CAqXzD,CAAC"}
|
|
@@ -30,7 +30,7 @@ const k = () => {
|
|
|
30
30
|
* The value of the input. Reflects the current text value of this input.
|
|
31
31
|
*/
|
|
32
32
|
set value(e) {
|
|
33
|
-
this._value = this._cleanText(e), this.hasUpdated && (this.innerHTML = this._value);
|
|
33
|
+
this._value = this._cleanText(e), this.hasUpdated && (this.innerHTML = this._value), this.dispatchEvent(new Event("displayvaluechange", { bubbles: !0, composed: !0 }));
|
|
34
34
|
}
|
|
35
35
|
get value() {
|
|
36
36
|
return this._value ?? "";
|
|
@@ -167,7 +167,7 @@ const k = () => {
|
|
|
167
167
|
} }, metadata: e }, null, n), r(s, null, h, { kind: "setter", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, set: (t, i) => {
|
|
168
168
|
t.placeholder = i;
|
|
169
169
|
} }, metadata: e }, null, n), r(s, null, u, { kind: "method", name: "_cleanChildren", static: !1, private: !1, access: { has: (t) => "_cleanChildren" in t, get: (t) => t._cleanChildren }, metadata: e }, null, n), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
170
|
-
})(), s.role = "textbox", s;
|
|
170
|
+
})(), s.role = "textbox", s.formFieldAssociated = !0, s;
|
|
171
171
|
})();
|
|
172
172
|
export {
|
|
173
173
|
H as SbbFormAssociatedInputMixin
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use 'sass:math';
|
|
5
5
|
@use 'sass:meta';
|
|
6
6
|
@use 'sass:string';
|
|
7
|
-
@use '@sbb-
|
|
7
|
+
@use '../node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss' as sbb-tokens;
|
|
8
8
|
|
|
9
9
|
$mq-breakpoints: (
|
|
10
10
|
zero: sbb-tokens.$sbb-breakpoint-zero-min,
|
package/core/styles/core.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '@sbb-
|
|
1
|
+
@use 'node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss' as sbb-css-tokens;
|
|
2
2
|
@use './core/mediaqueries';
|
|
3
3
|
@use './core/functions';
|
|
4
4
|
@use './mixins/a11y';
|
|
@@ -33,6 +33,39 @@
|
|
|
33
33
|
// Overlay
|
|
34
34
|
--sbb-overlay-default-z-index: 1000;
|
|
35
35
|
|
|
36
|
+
// Title
|
|
37
|
+
--sbb-title-font-size-level-1: var(--sbb-font-size-title-1);
|
|
38
|
+
--sbb-title-font-size-level-2: var(--sbb-font-size-title-2);
|
|
39
|
+
--sbb-title-font-size-level-3: var(--sbb-font-size-title-3);
|
|
40
|
+
--sbb-title-font-size-level-4: var(--sbb-font-size-title-4);
|
|
41
|
+
--sbb-title-font-size-level-5: var(--sbb-font-size-title-5);
|
|
42
|
+
--sbb-title-font-size-level-6: var(--sbb-font-size-title-6);
|
|
43
|
+
--sbb-title-default-margin-block-start: var(--sbb-spacing-responsive-m);
|
|
44
|
+
--sbb-title-margin-block-start-level-1: var(--sbb-spacing-responsive-l);
|
|
45
|
+
--sbb-title-margin-block-end-level-1: var(--sbb-spacing-responsive-s);
|
|
46
|
+
--sbb-title-margin-block-end-level-2: var(--sbb-spacing-responsive-xxxs);
|
|
47
|
+
--sbb-title-margin-block-end-level-3: var(--sbb-spacing-responsive-xxxs);
|
|
48
|
+
--sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-3x);
|
|
49
|
+
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-2x);
|
|
50
|
+
--sbb-title-margin-block-end-level-6: var(--sbb-spacing-fixed-1x);
|
|
51
|
+
|
|
52
|
+
&.sbb-lean {
|
|
53
|
+
--sbb-title-font-size-level-1: var(--sbb-font-size-title-2);
|
|
54
|
+
--sbb-title-font-size-level-2: var(--sbb-font-size-title-3);
|
|
55
|
+
--sbb-title-font-size-level-3: var(--sbb-font-size-title-4);
|
|
56
|
+
--sbb-title-font-size-level-4: var(--sbb-font-size-title-5);
|
|
57
|
+
--sbb-title-font-size-level-5: var(--sbb-font-size-title-6);
|
|
58
|
+
--sbb-title-font-size-level-6: var(--sbb-font-size-title-7);
|
|
59
|
+
--sbb-title-default-margin-block-start: var(--sbb-spacing-responsive-s);
|
|
60
|
+
--sbb-title-margin-block-start-level-1: var(--sbb-spacing-responsive-s);
|
|
61
|
+
--sbb-title-margin-block-end-level-1: var(--sbb-spacing-fixed-3x);
|
|
62
|
+
--sbb-title-margin-block-end-level-2: var(--sbb-spacing-fixed-3x);
|
|
63
|
+
--sbb-title-margin-block-end-level-3: var(--sbb-spacing-responsive-xxxs);
|
|
64
|
+
--sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-2x);
|
|
65
|
+
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-1x);
|
|
66
|
+
--sbb-title-margin-block-end-level-6: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
36
69
|
// Infinity border radius, can be used to achieve rounded border on start and end
|
|
37
70
|
// TODO: Check if infinity is supported by all browsers (e.g. Firefox) -> calc(1em * infinity);
|
|
38
71
|
--sbb-border-radius-infinity: 100000em;
|
|
@@ -2,86 +2,133 @@
|
|
|
2
2
|
// Typo: Title Style Mixins
|
|
3
3
|
// ----------------------------------------------------------------------------------------------------
|
|
4
4
|
|
|
5
|
-
@mixin title
|
|
6
|
-
--sbb-title-
|
|
7
|
-
|
|
8
|
-
--sbb-title-margin-block-end: 0;
|
|
9
|
-
|
|
10
|
-
@if not($exclude-spacing) {
|
|
11
|
-
--sbb-title-margin-block-start: var(--sbb-spacing-responsive-m);
|
|
12
|
-
--sbb-title-margin-block-end: var(--sbb-spacing-responsive-s);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
margin: 0;
|
|
16
|
-
margin-block: var(--sbb-title-margin-block-start) var(--sbb-title-margin-block-end);
|
|
5
|
+
@mixin title-rules {
|
|
6
|
+
margin-block: var(--sbb-title-margin-block-start, 0) var(--sbb-title-margin-block-end, 0);
|
|
7
|
+
margin-inline: 0;
|
|
17
8
|
font-family: var(--sbb-typo-font-family);
|
|
18
9
|
font-weight: bold;
|
|
19
|
-
line-height: var(--sbb-title-line-height);
|
|
10
|
+
line-height: var(--sbb-title-line-height, var(--sbb-typo-line-height-titles));
|
|
20
11
|
letter-spacing: var(--sbb-typo-letter-spacing-titles);
|
|
21
12
|
font-size: var(--sbb-title-font-size);
|
|
22
13
|
}
|
|
23
14
|
|
|
24
|
-
@mixin title-1
|
|
25
|
-
|
|
15
|
+
@mixin title--level-1 {
|
|
16
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-1);
|
|
17
|
+
}
|
|
26
18
|
|
|
27
|
-
|
|
19
|
+
@mixin title--level-1-spacing {
|
|
20
|
+
--sbb-title-margin-block-start: var(--sbb-title-margin-block-start-level-1);
|
|
21
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-1);
|
|
28
22
|
}
|
|
29
23
|
|
|
30
|
-
@mixin title-2
|
|
31
|
-
|
|
24
|
+
@mixin title--level-2 {
|
|
25
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-2);
|
|
26
|
+
}
|
|
32
27
|
|
|
33
|
-
|
|
28
|
+
@mixin title--level-2-spacing {
|
|
29
|
+
--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
|
|
30
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-2);
|
|
31
|
+
}
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
33
|
+
@mixin title--level-3 {
|
|
34
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-3);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
@mixin title-3
|
|
41
|
-
|
|
37
|
+
@mixin title--level-3-spacing {
|
|
38
|
+
--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
|
|
39
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-3);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin title--level-4 {
|
|
43
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin title--level-4-spacing {
|
|
47
|
+
--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
|
|
48
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin title--level-5 {
|
|
52
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-5);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin title--level-5-spacing {
|
|
56
|
+
--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
|
|
57
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-5);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin title--level-6 {
|
|
61
|
+
--sbb-title-font-size: var(--sbb-title-font-size-level-6);
|
|
62
|
+
--sbb-title-line-height: var(--sbb-typo-line-height-body-text);
|
|
63
|
+
}
|
|
42
64
|
|
|
43
|
-
|
|
65
|
+
@mixin title--level-6-spacing {
|
|
66
|
+
--sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
|
|
67
|
+
--sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-6);
|
|
68
|
+
}
|
|
44
69
|
|
|
70
|
+
@mixin title-1($exclude-spacing: false) {
|
|
71
|
+
@include title--level-1;
|
|
45
72
|
@if not($exclude-spacing) {
|
|
46
|
-
--
|
|
73
|
+
@include title--level-1-spacing;
|
|
47
74
|
}
|
|
75
|
+
@include title-rules;
|
|
48
76
|
}
|
|
49
77
|
|
|
50
|
-
@mixin title-
|
|
51
|
-
@include title
|
|
78
|
+
@mixin title-2($exclude-spacing: false) {
|
|
79
|
+
@include title--level-2;
|
|
80
|
+
@if not($exclude-spacing) {
|
|
81
|
+
@include title--level-2-spacing;
|
|
82
|
+
}
|
|
83
|
+
@include title-rules;
|
|
84
|
+
}
|
|
52
85
|
|
|
53
|
-
|
|
86
|
+
@mixin title-3($exclude-spacing: false) {
|
|
87
|
+
@include title--level-3;
|
|
88
|
+
@if not($exclude-spacing) {
|
|
89
|
+
@include title--level-3-spacing;
|
|
90
|
+
}
|
|
91
|
+
@include title-rules;
|
|
92
|
+
}
|
|
54
93
|
|
|
94
|
+
@mixin title-4($exclude-spacing: false) {
|
|
95
|
+
@include title--level-4;
|
|
55
96
|
@if not($exclude-spacing) {
|
|
56
|
-
--
|
|
97
|
+
@include title--level-4-spacing;
|
|
57
98
|
}
|
|
99
|
+
@include title-rules;
|
|
58
100
|
}
|
|
59
101
|
|
|
60
102
|
@mixin title-5($exclude-spacing: false) {
|
|
61
|
-
@include title
|
|
62
|
-
|
|
63
|
-
--sbb-title-font-size: var(--sbb-font-size-title-5);
|
|
64
|
-
|
|
103
|
+
@include title--level-5;
|
|
65
104
|
@if not($exclude-spacing) {
|
|
66
|
-
--
|
|
105
|
+
@include title--level-5-spacing;
|
|
67
106
|
}
|
|
107
|
+
@include title-rules;
|
|
68
108
|
}
|
|
69
109
|
|
|
70
110
|
@mixin title-6($exclude-spacing: false) {
|
|
71
|
-
@include title
|
|
72
|
-
|
|
73
|
-
--sbb-title-font-size: var(--sbb-font-size-title-6);
|
|
74
|
-
--sbb-title-line-height: var(--sbb-typo-line-height-body-text);
|
|
75
|
-
|
|
111
|
+
@include title--level-6;
|
|
76
112
|
@if not($exclude-spacing) {
|
|
77
|
-
--
|
|
113
|
+
@include title--level-6-spacing;
|
|
78
114
|
}
|
|
115
|
+
@include title-rules;
|
|
79
116
|
}
|
|
80
117
|
|
|
81
118
|
@mixin title--negative {
|
|
82
119
|
--sbb-title-text-color-normal: var(--sbb-color-milk);
|
|
83
120
|
}
|
|
84
121
|
|
|
122
|
+
// @deprecated, non-standard values, title rules combined with title level mixins are the alternative
|
|
123
|
+
@mixin title($exclude-spacing: false) {
|
|
124
|
+
@if not($exclude-spacing) {
|
|
125
|
+
--sbb-title-margin-block-start: var(--sbb-spacing-responsive-m);
|
|
126
|
+
--sbb-title-margin-block-end: var(--sbb-spacing-responsive-s);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include title-rules;
|
|
130
|
+
}
|
|
131
|
+
|
|
85
132
|
// ----------------------------------------------------------------------------------------------------
|
|
86
133
|
// Typo: Text Style Mixins
|
|
87
134
|
// ----------------------------------------------------------------------------------------------------
|