@sbb-esta/lyne-elements 4.4.0 → 4.5.1
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/autocomplete/autocomplete-base-element.js +73 -60
- package/button/common.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +14 -14
- package/button.js +1 -1
- package/chip-label/chip-label.component.js +13 -13
- package/container/container/container.component.js +9 -9
- package/container/sticky-bar/sticky-bar.component.js +12 -12
- package/core/a11y/focus-trap-controller.js +10 -10
- package/core/datetime/temporal-date-adapter.js +12 -6
- package/core/datetime.js +14 -12
- package/core/styles/core.scss +27 -12
- package/core/styles/mixins/chip.scss +6 -6
- package/core.css +75 -8
- package/custom-elements.json +93 -30
- package/datepicker/common.js +5 -3
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +13 -11
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +12 -10
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +21 -19
- package/datepicker-button-Debzp_As.js +5 -0
- package/datepicker.js +6 -4
- package/development/autocomplete/autocomplete-base-element.d.ts +6 -1
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +33 -8
- package/development/button/common.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +10 -14
- package/development/button.js +1 -1
- package/development/chip-label/chip-label.component.js +6 -15
- package/development/container/container/container.component.js +1 -3
- package/development/container/sticky-bar/sticky-bar.component.js +9 -14
- package/development/core/a11y/focus-trap-controller.d.ts.map +1 -1
- package/development/core/a11y/focus-trap-controller.js +4 -3
- package/development/core/controllers/overlay-position-controller.d.ts.map +1 -1
- package/development/core/controllers/overlay-position-controller.js +1 -1
- package/development/core/datetime/native-date-adapter.js +1 -1
- package/development/core/datetime/temporal-date-adapter.d.ts +7 -1
- package/development/core/datetime/temporal-date-adapter.d.ts.map +1 -1
- package/development/core/datetime/temporal-date-adapter.js +14 -7
- package/development/core/datetime.d.ts +1 -0
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/datetime.js +3 -1
- package/development/datepicker/common.d.ts.map +1 -1
- package/development/datepicker/common.js +4 -2
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +7 -8
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +7 -8
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +7 -8
- package/development/datepicker-button-BDlxIp9r.js +9 -0
- package/development/datepicker.js +4 -2
- package/development/dialog/dialog-title/dialog-title.component.js +2 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +6 -5
- package/development/{mini-button-label-common-0DeEC1qs.js → mini-button-label-common-BaMSfSTe.js} +13 -63
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.js +2 -2
- package/development/select/select.component.d.ts +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +17 -8
- package/development/tabs/tab/tab.component.d.ts.map +1 -1
- package/development/tabs/tab/tab.component.js +6 -4
- package/development/tabs/tab-group/tab-group.component.d.ts +7 -7
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +29 -66
- package/dialog/dialog-title/dialog-title.component.js +7 -7
- package/expansion-panel/expansion-panel/expansion-panel.component.js +9 -9
- package/mini-button-label-common-Dx9JhmQ6.js +11 -0
- package/off-brand-theme.css +75 -8
- package/package.json +1 -1
- package/radio-button/radio-button-group/radio-button-group.component.js +1 -1
- package/safety-theme.css +75 -8
- package/select/select.component.js +20 -20
- package/standard-theme.css +75 -8
- package/tabs/tab/tab.component.js +5 -5
- package/tabs/tab-group/tab-group.component.js +59 -57
- package/mini-button-label-common-BOB7JQKi.js +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { interactivityChecker as i } from "./interactivity-checker.js";
|
|
2
|
-
class
|
|
2
|
+
class b {
|
|
3
3
|
/**
|
|
4
4
|
* Whether the focus is trap is enabled.
|
|
5
5
|
* @param enabled
|
|
@@ -73,20 +73,20 @@ class r {
|
|
|
73
73
|
}
|
|
74
74
|
/** Get the last tabbable element from a DOM subtree (inclusive). */
|
|
75
75
|
_getLastTabbableElement(t) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
for (let
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
76
|
+
let e = null;
|
|
77
|
+
t !== this._host && i.isFocusable(t) && i.isTabbable(t) && (e = t);
|
|
78
|
+
const s = t.shadowRoot ? t.shadowRoot.children : t.localName === "slot" ? t.assignedElements() : t.children;
|
|
79
|
+
for (let l = s.length - 1; l >= 0; l--) {
|
|
80
|
+
const a = s[l].nodeType === document.ELEMENT_NODE ? this._getLastTabbableElement(s[l]) : null;
|
|
81
|
+
if (a)
|
|
82
|
+
return a;
|
|
83
83
|
}
|
|
84
|
-
return
|
|
84
|
+
return e;
|
|
85
85
|
}
|
|
86
86
|
_untrap() {
|
|
87
87
|
this._abortController?.abort(), this._abortController = null;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
b as SbbFocusTrapController
|
|
92
92
|
};
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { SbbLanguageController as a } from "../controllers.js";
|
|
2
2
|
import { DateAdapter as o } from "./date-adapter.js";
|
|
3
3
|
const i = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
class d extends o {
|
|
5
|
+
/**
|
|
6
|
+
* @param cutoffYearOffset The threshold on whether a two-digit year
|
|
7
|
+
* should be treated as belonging to 2000 or 1900. e.g. with 15 (default)
|
|
8
|
+
* the current year plus 15 will be treated as belonging to 2000, and the rest to 1900.
|
|
9
|
+
* So e.g. with the current year 2025, 40 will be treated as 2040, while 41 will be treated as 1941.
|
|
10
|
+
*/
|
|
11
|
+
constructor(e) {
|
|
12
|
+
if (super(e), typeof Temporal != "object")
|
|
13
|
+
throw new Error("Temporal is not available in the current environment. Please make sure to include the temporal polyfill.");
|
|
14
|
+
}
|
|
7
15
|
/** Gets the year of the input date. */
|
|
8
16
|
getYear(e) {
|
|
9
17
|
return e.year;
|
|
@@ -132,8 +140,6 @@ class l extends o {
|
|
|
132
140
|
return Array.from({ length: e }).map((t, n) => r(n));
|
|
133
141
|
}
|
|
134
142
|
}
|
|
135
|
-
const u = new l();
|
|
136
143
|
export {
|
|
137
|
-
|
|
138
|
-
u as temporalDateAdapter
|
|
144
|
+
d as TemporalDateAdapter
|
|
139
145
|
};
|
package/core/datetime.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { DAYS_PER_ROW as
|
|
2
|
-
import { NativeDateAdapter as
|
|
1
|
+
import { DAYS_PER_ROW as A, DateAdapter as _, FORMAT_DATE as R, ISO8601_FORMAT_DATE as a, MONTHS_PER_PAGE as r, MONTHS_PER_ROW as E, YEARS_PER_PAGE as p, YEARS_PER_ROW as O } from "./datetime/date-adapter.js";
|
|
2
|
+
import { NativeDateAdapter as D, defaultDateAdapter as P } from "./datetime/native-date-adapter.js";
|
|
3
|
+
import { TemporalDateAdapter as S } from "./datetime/temporal-date-adapter.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
A as DAYS_PER_ROW,
|
|
6
|
+
_ as DateAdapter,
|
|
7
|
+
R as FORMAT_DATE,
|
|
8
|
+
a as ISO8601_FORMAT_DATE,
|
|
9
|
+
r as MONTHS_PER_PAGE,
|
|
10
|
+
E as MONTHS_PER_ROW,
|
|
11
|
+
D as NativeDateAdapter,
|
|
12
|
+
S as TemporalDateAdapter,
|
|
13
|
+
p as YEARS_PER_PAGE,
|
|
14
|
+
O as YEARS_PER_ROW,
|
|
15
|
+
P as defaultDateAdapter
|
|
14
16
|
};
|
package/core/styles/core.scss
CHANGED
|
@@ -20,9 +20,21 @@ $theme: 'standard' !default;
|
|
|
20
20
|
@use '../../breadcrumb/breadcrumb-group/breadcrumb-group.global' as breadcrumb-group with (
|
|
21
21
|
$theme: $theme
|
|
22
22
|
);
|
|
23
|
+
@use '../../button/common/button-common.global' as button with (
|
|
24
|
+
$theme: $theme
|
|
25
|
+
);
|
|
26
|
+
@use '../../button/common/mini-button-common.global' as mini-button with (
|
|
27
|
+
$theme: $theme
|
|
28
|
+
);
|
|
29
|
+
@use '../../button/mini-button-group/mini-button-group.global' as mini-button-group with (
|
|
30
|
+
$theme: $theme
|
|
31
|
+
);
|
|
23
32
|
@use '../../card/card/card.global' as card with (
|
|
24
33
|
$theme: $theme
|
|
25
34
|
);
|
|
35
|
+
@use '../../chip-label/chip-label.global' as chip-label with (
|
|
36
|
+
$theme: $theme
|
|
37
|
+
);
|
|
26
38
|
@use '../../chip/chip/chip.global' as chip with (
|
|
27
39
|
$theme: $theme
|
|
28
40
|
);
|
|
@@ -50,6 +62,12 @@ $theme: 'standard' !default;
|
|
|
50
62
|
@use '../../clock/clock.global' as clock with (
|
|
51
63
|
$theme: $theme
|
|
52
64
|
);
|
|
65
|
+
@use '../../container/container/container.global' as container with (
|
|
66
|
+
$theme: $theme
|
|
67
|
+
);
|
|
68
|
+
@use '../../container/sticky-bar/sticky-bar.global' as sticky-bar with (
|
|
69
|
+
$theme: $theme
|
|
70
|
+
);
|
|
53
71
|
@use '../../divider/divider.global' as divider with (
|
|
54
72
|
$theme: $theme
|
|
55
73
|
);
|
|
@@ -99,15 +117,21 @@ $theme: 'standard' !default;
|
|
|
99
117
|
|
|
100
118
|
@include breadcrumb.base;
|
|
101
119
|
@include breadcrumb-group.base;
|
|
120
|
+
@include button.base;
|
|
121
|
+
@include mini-button.base;
|
|
122
|
+
@include mini-button-group.base;
|
|
102
123
|
@include card.base;
|
|
103
124
|
@include card-badge.base;
|
|
104
125
|
@include carousel.base;
|
|
126
|
+
@include chip-label.base;
|
|
105
127
|
@include chip.base;
|
|
106
128
|
@include chip-group.base;
|
|
107
129
|
@include panel-common.base;
|
|
108
130
|
@include checkbox.base;
|
|
109
131
|
@include checkbox-group.base;
|
|
110
132
|
@include checkbox-common.base;
|
|
133
|
+
@include container.base;
|
|
134
|
+
@include sticky-bar.base;
|
|
111
135
|
@include clock.base;
|
|
112
136
|
@include divider.base;
|
|
113
137
|
@include expansion-panel.base;
|
|
@@ -198,6 +222,8 @@ $theme: 'standard' !default;
|
|
|
198
222
|
@include mediaqueries.mq($from: large) {
|
|
199
223
|
@include sbb-css-tokens.breakpoint-large;
|
|
200
224
|
|
|
225
|
+
@include button.base-breakpoint-large;
|
|
226
|
+
|
|
201
227
|
@include chip-group.base-breakpoint-large;
|
|
202
228
|
|
|
203
229
|
// TODO: Remove complete block when new lean theme is complete
|
|
@@ -227,6 +253,7 @@ $theme: 'standard' !default;
|
|
|
227
253
|
@include font-face.font-declarations;
|
|
228
254
|
|
|
229
255
|
// Components global styles
|
|
256
|
+
@include container.rules;
|
|
230
257
|
@include tab-nav-bar.rules;
|
|
231
258
|
|
|
232
259
|
// TODO: discuss where to add these classes
|
|
@@ -446,18 +473,6 @@ img {
|
|
|
446
473
|
object-position: var(--sbb-image-object-position);
|
|
447
474
|
}
|
|
448
475
|
|
|
449
|
-
// TODO: Move back to the sbb-container components when the global CSS refactoring happens
|
|
450
|
-
sbb-container {
|
|
451
|
-
> [slot='image']:is(sbb-image, img),
|
|
452
|
-
> [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
453
|
-
--sbb-image-object-fit: cover;
|
|
454
|
-
|
|
455
|
-
border-radius: var(--sbb-container-background-border-radius);
|
|
456
|
-
height: 100%;
|
|
457
|
-
position: absolute;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
476
|
// TODO: Move back to the sbb-flip-card-summary components when the global CSS refactoring happens
|
|
462
477
|
sbb-flip-card-summary {
|
|
463
478
|
> [slot='image']:is(sbb-image, img),
|
|
@@ -25,37 +25,37 @@
|
|
|
25
25
|
@mixin chip-label-variables--size-xxs {
|
|
26
26
|
--sbb-chip-label-padding-block: 0em;
|
|
27
27
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);
|
|
28
|
-
--sbb-
|
|
28
|
+
--sbb-chip-label-font-size: var(--sbb-text-font-size-xxs);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
@mixin chip-label-variables--size-xs {
|
|
32
32
|
--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);
|
|
33
33
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-3x);
|
|
34
|
-
--sbb-
|
|
34
|
+
--sbb-chip-label-font-size: var(--sbb-text-font-size-xs);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@mixin chip-label-variables--size-s {
|
|
38
38
|
--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);
|
|
39
39
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-4x);
|
|
40
|
-
--sbb-
|
|
40
|
+
--sbb-chip-label-font-size: var(--sbb-text-font-size-s);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@mixin chip-label-rules {
|
|
44
|
-
@include typo.text;
|
|
45
|
-
|
|
46
44
|
// We need an even value to make it work smoothly in Safari
|
|
47
45
|
line-height: 2;
|
|
48
46
|
display: inline-flex;
|
|
49
47
|
align-items: center;
|
|
50
48
|
justify-content: center;
|
|
51
49
|
height: calc(
|
|
52
|
-
var(--sbb-typo-line-height-text) * var(--sbb-
|
|
50
|
+
var(--sbb-typo-line-height-text) * var(--sbb-chip-label-font-size) +
|
|
53
51
|
var(--sbb-chip-label-padding-block) * 2
|
|
54
52
|
);
|
|
55
53
|
background-color: var(--sbb-chip-label-background-color);
|
|
56
54
|
padding-inline: var(--sbb-chip-label-padding-inline);
|
|
57
55
|
border-radius: var(--sbb-border-radius-infinity);
|
|
58
56
|
color: var(--sbb-chip-label-color);
|
|
57
|
+
font-size: var(--sbb-chip-label-font-size);
|
|
58
|
+
letter-spacing: var(--sbb-typo-letter-spacing-text);
|
|
59
59
|
|
|
60
60
|
// Overflow hidden needed because line-height can be taller than height which can cause weird layout shifting
|
|
61
61
|
overflow: hidden;
|
package/core.css
CHANGED
|
@@ -1263,6 +1263,57 @@
|
|
|
1263
1263
|
var(--sbb-color-silver),
|
|
1264
1264
|
var(--sbb-color-anthracite)
|
|
1265
1265
|
);
|
|
1266
|
+
--sbb-button-box-shadow: transparent 0 0;
|
|
1267
|
+
--sbb-button-border-radius: var(--sbb-border-radius-infinity);
|
|
1268
|
+
--sbb-button-border-width: var(--sbb-border-width-2x);
|
|
1269
|
+
--sbb-button-border-disabled-style: dashed;
|
|
1270
|
+
--sbb-button-border-disabled-width: var(--sbb-border-width-1x);
|
|
1271
|
+
--sbb-button-color-disabled-background: var(--sbb-background-color-3);
|
|
1272
|
+
--sbb-button-color-disabled-border: var(--sbb-border-color-5);
|
|
1273
|
+
--sbb-button-color-disabled-text: var(--sbb-color-granite);
|
|
1274
|
+
--sbb-button-color-disabled-text: light-dark(
|
|
1275
|
+
var(--sbb-color-granite),
|
|
1276
|
+
var(--sbb-color-aluminium)
|
|
1277
|
+
);
|
|
1278
|
+
--sbb-button-gap: var(--sbb-spacing-fixed-2x);
|
|
1279
|
+
--sbb-button-loading-border-width: var(--sbb-border-width-3x);
|
|
1280
|
+
--sbb-button-loading-delay: 300ms;
|
|
1281
|
+
--sbb-button-min-height-size-l: var(--sbb-size-element-m);
|
|
1282
|
+
--sbb-button-min-height-size-m: var(--sbb-size-element-s);
|
|
1283
|
+
--sbb-button-min-height-size-s: var(--sbb-size-element-xs);
|
|
1284
|
+
--sbb-button-min-height: var(--sbb-button-min-height-size-l);
|
|
1285
|
+
--sbb-button-padding-block-min: var(--sbb-spacing-fixed-1x);
|
|
1286
|
+
--sbb-button-padding-inline-size-l: var(--sbb-spacing-fixed-8x);
|
|
1287
|
+
--sbb-button-padding-inline-size-m: var(--sbb-spacing-fixed-5x);
|
|
1288
|
+
--sbb-button-padding-inline-size-s: var(--sbb-spacing-fixed-4x);
|
|
1289
|
+
--sbb-button-padding-inline: var(--sbb-button-padding-inline-size-l);
|
|
1290
|
+
--sbb-button-shadow-1-offset-y: var(--sbb-shadow-elevation-level-3-shadow-1-offset-y);
|
|
1291
|
+
--sbb-button-shadow-2-offset-y: var(--sbb-shadow-elevation-level-3-shadow-2-offset-y);
|
|
1292
|
+
--sbb-button-shadow-1-blur: var(--sbb-shadow-elevation-level-3-shadow-1-blur);
|
|
1293
|
+
--sbb-button-shadow-2-blur: var(--sbb-shadow-elevation-level-3-shadow-2-blur);
|
|
1294
|
+
--sbb-button-transition-easing-function: var(--sbb-animation-easing);
|
|
1295
|
+
--sbb-mini-button-color-text: var(--sbb-color-3);
|
|
1296
|
+
--sbb-mini-button-color-default-background: transparent;
|
|
1297
|
+
--sbb-mini-button-color-hover-background: var(--sbb-background-color-3);
|
|
1298
|
+
--sbb-mini-button-color-active-background: var(--sbb-background-color-4);
|
|
1299
|
+
--sbb-mini-button-color-disabled-background: var(--sbb-background-color-3);
|
|
1300
|
+
--sbb-mini-button-color-disabled-border: var(--sbb-border-color-5);
|
|
1301
|
+
--sbb-mini-button-color-disabled-text: var(--sbb-color-granite);
|
|
1302
|
+
--sbb-mini-button-color-disabled-text: light-dark(
|
|
1303
|
+
var(--sbb-color-granite),
|
|
1304
|
+
var(--sbb-color-smoke)
|
|
1305
|
+
);
|
|
1306
|
+
--sbb-mini-button-border-radius: var(--sbb-border-radius-infinity);
|
|
1307
|
+
--sbb-mini-button-transition-easing-function: var(--sbb-animation-easing);
|
|
1308
|
+
--sbb-mini-button-group-background: var(--sbb-background-color-1);
|
|
1309
|
+
--sbb-mini-button-group-border-color: var(--sbb-border-color-4-inverted);
|
|
1310
|
+
--sbb-mini-button-group-border-width: var(--sbb-border-width-2x);
|
|
1311
|
+
--sbb-mini-button-group-border-radius: var(--sbb-border-radius-infinity);
|
|
1312
|
+
--sbb-mini-button-group-gap: var(--sbb-spacing-fixed-2x);
|
|
1313
|
+
--sbb-mini-button-group-min-height: var(--sbb-size-element-s);
|
|
1314
|
+
--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-3x);
|
|
1315
|
+
--sbb-mini-button-group-divider-height: var(--sbb-size-icon-ui-small);
|
|
1316
|
+
--sbb-mini-button-group-divider-padding: var(--sbb-spacing-fixed-1x);
|
|
1266
1317
|
--sbb-card-background-color: var(--sbb-background-color-1);
|
|
1267
1318
|
--sbb-card-border-color: transparent;
|
|
1268
1319
|
--sbb-card-border-radius: var(--sbb-border-radius-4x);
|
|
@@ -1290,6 +1341,12 @@
|
|
|
1290
1341
|
--sbb-carousel-border-radius: var(--sbb-border-radius-4x);
|
|
1291
1342
|
--sbb-carousel-box-shadow: var(--sbb-box-shadow-level-9-hard);
|
|
1292
1343
|
--sbb-carousel-paginator-padding: var(--sbb-spacing-responsive-xs);
|
|
1344
|
+
--sbb-chip-label-color: var(--sbb-color-granite);
|
|
1345
|
+
--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));
|
|
1346
|
+
--sbb-chip-label-background-color: var(--sbb-background-color-3);
|
|
1347
|
+
--sbb-chip-label-padding-block: 0em;
|
|
1348
|
+
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);
|
|
1349
|
+
--sbb-chip-label-font-size: var(--sbb-text-font-size-xxs);
|
|
1293
1350
|
--sbb-chip-background-color: var(--sbb-background-color-3);
|
|
1294
1351
|
--sbb-chip-background-color-active: var(--sbb-background-color-1);
|
|
1295
1352
|
--sbb-chip-background-color-hover: var(--sbb-background-color-1);
|
|
@@ -1345,6 +1402,13 @@
|
|
|
1345
1402
|
--sbb-checkbox-font-size: var(--sbb-text-font-size-m);
|
|
1346
1403
|
--sbb-checkbox-label-color: var(--sbb-color-color-3);
|
|
1347
1404
|
--sbb-checkbox-cursor: var(--sbb-cursor-pointer);
|
|
1405
|
+
--sbb-container-background-border-radius: 0;
|
|
1406
|
+
--sbb-container-color: inherit;
|
|
1407
|
+
--sbb-sticky-bar-animation-easing: var(--sbb-animation-easing);
|
|
1408
|
+
--sbb-sticky-bar-border-radius: var(--sbb-border-radius-8x);
|
|
1409
|
+
--sbb-sticky-bar-padding-block: var(--sbb-spacing-responsive-xs);
|
|
1410
|
+
--sbb-sticky-bar-position: sticky;
|
|
1411
|
+
--sbb-sticky-bar-slide-vertically-animation-easing: ease-out;
|
|
1348
1412
|
--sbb-clock-seconds-hand-color: var(--sbb-color-brand);
|
|
1349
1413
|
--sbb-clock-face-color: var(--sbb-color-1);
|
|
1350
1414
|
--sbb-clock-background-color: var(--sbb-background-color-1);
|
|
@@ -1555,6 +1619,9 @@
|
|
|
1555
1619
|
--sbb-size-element-s: var(--sbb-size-element-s-large);
|
|
1556
1620
|
--sbb-size-element-m: var(--sbb-size-element-m-large);
|
|
1557
1621
|
--sbb-size-element-l: var(--sbb-size-element-l-large);
|
|
1622
|
+
--sbb-button-padding-inline-size-l: var(--sbb-spacing-fixed-10x);
|
|
1623
|
+
--sbb-button-padding-inline-size-m: var(--sbb-spacing-fixed-8x);
|
|
1624
|
+
--sbb-button-padding-inline-size-s: var(--sbb-spacing-fixed-5x);
|
|
1558
1625
|
--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-start-default-large) 0;
|
|
1559
1626
|
--sbb-chip-group-margin-block-no-label-not-empty: 0.1875rem 0.875rem;
|
|
1560
1627
|
--sbb-chip-group-margin-block-with-label-not-empty: var(--_sbb-chip-group-margin-block-start-default-large) var(--_sbb-chip-group-margin-block-start-default-large);
|
|
@@ -1604,6 +1671,14 @@
|
|
|
1604
1671
|
font-display: swap;
|
|
1605
1672
|
font-weight: 300;
|
|
1606
1673
|
}
|
|
1674
|
+
sbb-container > [slot=image]:is(sbb-image, img),
|
|
1675
|
+
sbb-container > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1676
|
+
--sbb-image-object-fit: cover;
|
|
1677
|
+
border-radius: var(--sbb-container-background-border-radius);
|
|
1678
|
+
height: 100%;
|
|
1679
|
+
position: absolute;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1607
1682
|
sbb-tab-nav-bar .sbb-tab-amount {
|
|
1608
1683
|
margin: 0;
|
|
1609
1684
|
color: var(--sbb-tab-label-amount-color);
|
|
@@ -1887,14 +1962,6 @@ img {
|
|
|
1887
1962
|
object-position: var(--sbb-image-object-position);
|
|
1888
1963
|
}
|
|
1889
1964
|
|
|
1890
|
-
sbb-container > [slot=image]:is(sbb-image, img),
|
|
1891
|
-
sbb-container > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1892
|
-
--sbb-image-object-fit: cover;
|
|
1893
|
-
border-radius: var(--sbb-container-background-border-radius);
|
|
1894
|
-
height: 100%;
|
|
1895
|
-
position: absolute;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
1965
|
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
1899
1966
|
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1900
1967
|
--sbb-image-aspect-ratio: auto;
|
package/custom-elements.json
CHANGED
|
@@ -2435,6 +2435,17 @@
|
|
|
2435
2435
|
"description": "Whether the active option should be selected as the user is navigating.",
|
|
2436
2436
|
"attribute": "auto-select-active-option"
|
|
2437
2437
|
},
|
|
2438
|
+
{
|
|
2439
|
+
"kind": "field",
|
|
2440
|
+
"name": "autoSelectActiveOptionOnBlur",
|
|
2441
|
+
"type": {
|
|
2442
|
+
"text": "boolean"
|
|
2443
|
+
},
|
|
2444
|
+
"privacy": "public",
|
|
2445
|
+
"default": "false",
|
|
2446
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
2447
|
+
"attribute": "auto-select-active-option-on-blur"
|
|
2448
|
+
},
|
|
2438
2449
|
{
|
|
2439
2450
|
"kind": "field",
|
|
2440
2451
|
"name": "requireSelection",
|
|
@@ -2464,7 +2475,7 @@
|
|
|
2464
2475
|
"text": "HTMLElement | null"
|
|
2465
2476
|
},
|
|
2466
2477
|
"privacy": "public",
|
|
2467
|
-
"description": "Returns the element where autocomplete overlay is attached to.",
|
|
2478
|
+
"description": "Returns the element where the autocomplete overlay is attached to.",
|
|
2468
2479
|
"readonly": true
|
|
2469
2480
|
},
|
|
2470
2481
|
{
|
|
@@ -2811,6 +2822,10 @@
|
|
|
2811
2822
|
"type": {
|
|
2812
2823
|
"text": "SbbOptionBaseElement<T>"
|
|
2813
2824
|
}
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"name": "preventFocus",
|
|
2828
|
+
"default": "false"
|
|
2814
2829
|
}
|
|
2815
2830
|
]
|
|
2816
2831
|
},
|
|
@@ -3274,6 +3289,15 @@
|
|
|
3274
3289
|
"description": "Whether the active option should be selected as the user is navigating.",
|
|
3275
3290
|
"fieldName": "autoSelectActiveOption"
|
|
3276
3291
|
},
|
|
3292
|
+
{
|
|
3293
|
+
"name": "auto-select-active-option-on-blur",
|
|
3294
|
+
"type": {
|
|
3295
|
+
"text": "boolean"
|
|
3296
|
+
},
|
|
3297
|
+
"default": "false",
|
|
3298
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
3299
|
+
"fieldName": "autoSelectActiveOptionOnBlur"
|
|
3300
|
+
},
|
|
3277
3301
|
{
|
|
3278
3302
|
"name": "require-selection",
|
|
3279
3303
|
"type": {
|
|
@@ -3741,6 +3765,21 @@
|
|
|
3741
3765
|
"module": "autocomplete/autocomplete-base-element.js"
|
|
3742
3766
|
}
|
|
3743
3767
|
},
|
|
3768
|
+
{
|
|
3769
|
+
"kind": "field",
|
|
3770
|
+
"name": "autoSelectActiveOptionOnBlur",
|
|
3771
|
+
"type": {
|
|
3772
|
+
"text": "boolean"
|
|
3773
|
+
},
|
|
3774
|
+
"privacy": "public",
|
|
3775
|
+
"default": "false",
|
|
3776
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
3777
|
+
"attribute": "auto-select-active-option-on-blur",
|
|
3778
|
+
"inheritedFrom": {
|
|
3779
|
+
"name": "SbbAutocompleteBaseElement",
|
|
3780
|
+
"module": "autocomplete/autocomplete-base-element.js"
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3744
3783
|
{
|
|
3745
3784
|
"kind": "field",
|
|
3746
3785
|
"name": "requireSelection",
|
|
@@ -3778,7 +3817,7 @@
|
|
|
3778
3817
|
"text": "HTMLElement | null"
|
|
3779
3818
|
},
|
|
3780
3819
|
"privacy": "public",
|
|
3781
|
-
"description": "Returns the element where autocomplete overlay is attached to.",
|
|
3820
|
+
"description": "Returns the element where the autocomplete overlay is attached to.",
|
|
3782
3821
|
"readonly": true,
|
|
3783
3822
|
"inheritedFrom": {
|
|
3784
3823
|
"name": "SbbAutocompleteBaseElement",
|
|
@@ -4083,6 +4122,10 @@
|
|
|
4083
4122
|
"type": {
|
|
4084
4123
|
"text": "SbbOptionBaseElement<T>"
|
|
4085
4124
|
}
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"name": "preventFocus",
|
|
4128
|
+
"default": "false"
|
|
4086
4129
|
}
|
|
4087
4130
|
],
|
|
4088
4131
|
"inheritedFrom": {
|
|
@@ -4588,6 +4631,19 @@
|
|
|
4588
4631
|
"module": "autocomplete/autocomplete-base-element.js"
|
|
4589
4632
|
}
|
|
4590
4633
|
},
|
|
4634
|
+
{
|
|
4635
|
+
"name": "auto-select-active-option-on-blur",
|
|
4636
|
+
"type": {
|
|
4637
|
+
"text": "boolean"
|
|
4638
|
+
},
|
|
4639
|
+
"default": "false",
|
|
4640
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
4641
|
+
"fieldName": "autoSelectActiveOptionOnBlur",
|
|
4642
|
+
"inheritedFrom": {
|
|
4643
|
+
"name": "SbbAutocompleteBaseElement",
|
|
4644
|
+
"module": "autocomplete/autocomplete-base-element.js"
|
|
4645
|
+
}
|
|
4646
|
+
},
|
|
4591
4647
|
{
|
|
4592
4648
|
"name": "require-selection",
|
|
4593
4649
|
"type": {
|
|
@@ -7946,6 +8002,14 @@
|
|
|
7946
8002
|
"name": "*",
|
|
7947
8003
|
"module": "core/datetime/native-date-adapter.js"
|
|
7948
8004
|
}
|
|
8005
|
+
},
|
|
8006
|
+
{
|
|
8007
|
+
"kind": "js",
|
|
8008
|
+
"name": "*",
|
|
8009
|
+
"declaration": {
|
|
8010
|
+
"name": "*",
|
|
8011
|
+
"module": "core/datetime/temporal-date-adapter.js"
|
|
8012
|
+
}
|
|
7949
8013
|
}
|
|
7950
8014
|
]
|
|
7951
8015
|
},
|
|
@@ -9588,6 +9652,14 @@
|
|
|
9588
9652
|
"name": "*",
|
|
9589
9653
|
"module": "datepicker/common/datepicker-button.js"
|
|
9590
9654
|
}
|
|
9655
|
+
},
|
|
9656
|
+
{
|
|
9657
|
+
"kind": "js",
|
|
9658
|
+
"name": "datepickerButtonStyle",
|
|
9659
|
+
"declaration": {
|
|
9660
|
+
"name": "default",
|
|
9661
|
+
"module": "./common/datepicker-button.scss?lit&inline"
|
|
9662
|
+
}
|
|
9591
9663
|
}
|
|
9592
9664
|
]
|
|
9593
9665
|
},
|
|
@@ -16945,17 +17017,19 @@
|
|
|
16945
17017
|
"kind": "field",
|
|
16946
17018
|
"name": "_originElement",
|
|
16947
17019
|
"type": {
|
|
16948
|
-
"text": "HTMLElement"
|
|
17020
|
+
"text": "HTMLElement | null"
|
|
16949
17021
|
},
|
|
16950
|
-
"privacy": "private"
|
|
17022
|
+
"privacy": "private",
|
|
17023
|
+
"default": "null"
|
|
16951
17024
|
},
|
|
16952
17025
|
{
|
|
16953
17026
|
"kind": "field",
|
|
16954
17027
|
"name": "_triggerElement",
|
|
16955
17028
|
"type": {
|
|
16956
|
-
"text": "HTMLElement"
|
|
17029
|
+
"text": "HTMLElement | null"
|
|
16957
17030
|
},
|
|
16958
|
-
"privacy": "private"
|
|
17031
|
+
"privacy": "private",
|
|
17032
|
+
"default": "null"
|
|
16959
17033
|
},
|
|
16960
17034
|
{
|
|
16961
17035
|
"kind": "field",
|
|
@@ -51212,11 +51286,6 @@
|
|
|
51212
51286
|
"name": "DateAdapter",
|
|
51213
51287
|
"module": "core/datetime/date-adapter.js"
|
|
51214
51288
|
}
|
|
51215
|
-
},
|
|
51216
|
-
{
|
|
51217
|
-
"kind": "variable",
|
|
51218
|
-
"name": "temporalDateAdapter",
|
|
51219
|
-
"default": "new TemporalDateAdapter()"
|
|
51220
51289
|
}
|
|
51221
51290
|
],
|
|
51222
51291
|
"exports": [
|
|
@@ -51227,14 +51296,6 @@
|
|
|
51227
51296
|
"name": "TemporalDateAdapter",
|
|
51228
51297
|
"module": "core/datetime/temporal-date-adapter.js"
|
|
51229
51298
|
}
|
|
51230
|
-
},
|
|
51231
|
-
{
|
|
51232
|
-
"kind": "js",
|
|
51233
|
-
"name": "temporalDateAdapter",
|
|
51234
|
-
"declaration": {
|
|
51235
|
-
"name": "temporalDateAdapter",
|
|
51236
|
-
"module": "core/datetime/temporal-date-adapter.js"
|
|
51237
|
-
}
|
|
51238
51299
|
}
|
|
51239
51300
|
]
|
|
51240
51301
|
},
|
|
@@ -104653,14 +104714,6 @@
|
|
|
104653
104714
|
},
|
|
104654
104715
|
"privacy": "private"
|
|
104655
104716
|
},
|
|
104656
|
-
{
|
|
104657
|
-
"kind": "field",
|
|
104658
|
-
"name": "_tabContentElement",
|
|
104659
|
-
"type": {
|
|
104660
|
-
"text": "HTMLElement"
|
|
104661
|
-
},
|
|
104662
|
-
"privacy": "private"
|
|
104663
|
-
},
|
|
104664
104717
|
{
|
|
104665
104718
|
"kind": "field",
|
|
104666
104719
|
"name": "_tabGroupResizeObserver",
|
|
@@ -104732,7 +104785,7 @@
|
|
|
104732
104785
|
},
|
|
104733
104786
|
"parameters": [
|
|
104734
104787
|
{
|
|
104735
|
-
"name": "
|
|
104788
|
+
"name": "index",
|
|
104736
104789
|
"type": {
|
|
104737
104790
|
"text": "number"
|
|
104738
104791
|
},
|
|
@@ -104752,7 +104805,7 @@
|
|
|
104752
104805
|
},
|
|
104753
104806
|
"parameters": [
|
|
104754
104807
|
{
|
|
104755
|
-
"name": "
|
|
104808
|
+
"name": "index",
|
|
104756
104809
|
"type": {
|
|
104757
104810
|
"text": "number"
|
|
104758
104811
|
},
|
|
@@ -104772,7 +104825,7 @@
|
|
|
104772
104825
|
},
|
|
104773
104826
|
"parameters": [
|
|
104774
104827
|
{
|
|
104775
|
-
"name": "
|
|
104828
|
+
"name": "index",
|
|
104776
104829
|
"type": {
|
|
104777
104830
|
"text": "number"
|
|
104778
104831
|
},
|
|
@@ -104801,6 +104854,16 @@
|
|
|
104801
104854
|
"name": "_onLabelSlotChange",
|
|
104802
104855
|
"privacy": "private"
|
|
104803
104856
|
},
|
|
104857
|
+
{
|
|
104858
|
+
"kind": "method",
|
|
104859
|
+
"name": "_ensureActiveTab",
|
|
104860
|
+
"privacy": "private",
|
|
104861
|
+
"return": {
|
|
104862
|
+
"type": {
|
|
104863
|
+
"text": "void"
|
|
104864
|
+
}
|
|
104865
|
+
}
|
|
104866
|
+
},
|
|
104804
104867
|
{
|
|
104805
104868
|
"kind": "method",
|
|
104806
104869
|
"name": "_initSelection",
|
package/datepicker/common.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { SbbDatepickerButton as
|
|
1
|
+
import { SbbDatepickerButton as o, SbbDatepickerButtonBase as r } from "./common/datepicker-button.js";
|
|
2
|
+
import { d as p } from "../datepicker-button-Debzp_As.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
o as SbbDatepickerButton,
|
|
5
|
+
r as SbbDatepickerButtonBase,
|
|
6
|
+
p as datepickerButtonStyle
|
|
5
7
|
};
|
|
@@ -2,14 +2,12 @@ import { __esDecorate as m, __runInitializers as c } from "tslib";
|
|
|
2
2
|
import { customElement as u } from "lit/decorators.js";
|
|
3
3
|
import { miniButtonStyle as d } from "../../button/common.js";
|
|
4
4
|
import { i18nNextDay as p, i18nSelectNextDay as f } from "../../core/i18n.js";
|
|
5
|
-
import { boxSizingStyles as
|
|
6
|
-
import { SbbDatepickerButton as
|
|
7
|
-
|
|
8
|
-
const D = h`.sbb-datepicker-next-day{margin:auto;-webkit-tap-highlight-color:transparent}`;
|
|
9
|
-
let B = (() => {
|
|
5
|
+
import { boxSizingStyles as y } from "../../core/styles.js";
|
|
6
|
+
import { SbbDatepickerButton as b, datepickerButtonStyle as D } from "../common.js";
|
|
7
|
+
let k = (() => {
|
|
10
8
|
var e;
|
|
11
|
-
let o = [u("sbb-datepicker-next-day")], r,
|
|
12
|
-
return e = class extends
|
|
9
|
+
let o = [u("sbb-datepicker-next-day")], r, l = [], t, s = b;
|
|
10
|
+
return e = class extends s {
|
|
13
11
|
constructor() {
|
|
14
12
|
super(...arguments), this.iconName = "chevron-small-right-small", this.i18nOffBoundaryDay = p, this.i18nSelectOffBoundaryDay = f;
|
|
15
13
|
}
|
|
@@ -29,10 +27,14 @@ let B = (() => {
|
|
|
29
27
|
return !!this.input.max && this.dateAdapter.compareDate(a, this.input.max) > 0;
|
|
30
28
|
}
|
|
31
29
|
}, t = e, (() => {
|
|
32
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
33
|
-
m(null, r = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null,
|
|
34
|
-
})(), e.styles = [
|
|
30
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
31
|
+
m(null, r = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null, l), t = r.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
32
|
+
})(), e.styles = [
|
|
33
|
+
y,
|
|
34
|
+
d,
|
|
35
|
+
D
|
|
36
|
+
], c(t, l), t;
|
|
35
37
|
})();
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
k as SbbDatepickerNextDayElement
|
|
38
40
|
};
|