@sbb-esta/lyne-elements 4.4.0 → 4.5.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/autocomplete/autocomplete-base-element.js +69 -56
- package/button/common.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +14 -14
- package/button.js +1 -1
- package/core/a11y/focus-trap-controller.js +10 -10
- package/core/datetime.js +15 -12
- package/core/styles/core.scss +14 -0
- package/core.css +54 -0
- package/custom-elements.json +75 -17
- 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 +28 -5
- 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/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.d.ts +1 -0
- package/development/core/datetime.d.ts.map +1 -1
- package/development/core/datetime.js +5 -2
- 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/{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 +1 -1
- 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 +2 -1
- package/development/tabs/tab-group/tab-group.component.d.ts +6 -7
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +23 -66
- package/mini-button-label-common-Dx9JhmQ6.js +11 -0
- package/off-brand-theme.css +54 -0
- package/package.json +1 -1
- package/safety-theme.css +54 -0
- package/select/select.component.js +20 -20
- package/standard-theme.css +54 -0
- package/tabs/tab/tab.component.js +4 -4
- package/tabs/tab-group/tab-group.component.js +55 -56
- package/mini-button-label-common-BOB7JQKi.js +0 -11
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
|
{
|
|
@@ -3274,6 +3285,15 @@
|
|
|
3274
3285
|
"description": "Whether the active option should be selected as the user is navigating.",
|
|
3275
3286
|
"fieldName": "autoSelectActiveOption"
|
|
3276
3287
|
},
|
|
3288
|
+
{
|
|
3289
|
+
"name": "auto-select-active-option-on-blur",
|
|
3290
|
+
"type": {
|
|
3291
|
+
"text": "boolean"
|
|
3292
|
+
},
|
|
3293
|
+
"default": "false",
|
|
3294
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
3295
|
+
"fieldName": "autoSelectActiveOptionOnBlur"
|
|
3296
|
+
},
|
|
3277
3297
|
{
|
|
3278
3298
|
"name": "require-selection",
|
|
3279
3299
|
"type": {
|
|
@@ -3741,6 +3761,21 @@
|
|
|
3741
3761
|
"module": "autocomplete/autocomplete-base-element.js"
|
|
3742
3762
|
}
|
|
3743
3763
|
},
|
|
3764
|
+
{
|
|
3765
|
+
"kind": "field",
|
|
3766
|
+
"name": "autoSelectActiveOptionOnBlur",
|
|
3767
|
+
"type": {
|
|
3768
|
+
"text": "boolean"
|
|
3769
|
+
},
|
|
3770
|
+
"privacy": "public",
|
|
3771
|
+
"default": "false",
|
|
3772
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
3773
|
+
"attribute": "auto-select-active-option-on-blur",
|
|
3774
|
+
"inheritedFrom": {
|
|
3775
|
+
"name": "SbbAutocompleteBaseElement",
|
|
3776
|
+
"module": "autocomplete/autocomplete-base-element.js"
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3744
3779
|
{
|
|
3745
3780
|
"kind": "field",
|
|
3746
3781
|
"name": "requireSelection",
|
|
@@ -3778,7 +3813,7 @@
|
|
|
3778
3813
|
"text": "HTMLElement | null"
|
|
3779
3814
|
},
|
|
3780
3815
|
"privacy": "public",
|
|
3781
|
-
"description": "Returns the element where autocomplete overlay is attached to.",
|
|
3816
|
+
"description": "Returns the element where the autocomplete overlay is attached to.",
|
|
3782
3817
|
"readonly": true,
|
|
3783
3818
|
"inheritedFrom": {
|
|
3784
3819
|
"name": "SbbAutocompleteBaseElement",
|
|
@@ -4588,6 +4623,19 @@
|
|
|
4588
4623
|
"module": "autocomplete/autocomplete-base-element.js"
|
|
4589
4624
|
}
|
|
4590
4625
|
},
|
|
4626
|
+
{
|
|
4627
|
+
"name": "auto-select-active-option-on-blur",
|
|
4628
|
+
"type": {
|
|
4629
|
+
"text": "boolean"
|
|
4630
|
+
},
|
|
4631
|
+
"default": "false",
|
|
4632
|
+
"description": "When enabled, the active option is automatically selected on blur.\nThis is an experimental feature. It might be subject to changes.",
|
|
4633
|
+
"fieldName": "autoSelectActiveOptionOnBlur",
|
|
4634
|
+
"inheritedFrom": {
|
|
4635
|
+
"name": "SbbAutocompleteBaseElement",
|
|
4636
|
+
"module": "autocomplete/autocomplete-base-element.js"
|
|
4637
|
+
}
|
|
4638
|
+
},
|
|
4591
4639
|
{
|
|
4592
4640
|
"name": "require-selection",
|
|
4593
4641
|
"type": {
|
|
@@ -7946,6 +7994,14 @@
|
|
|
7946
7994
|
"name": "*",
|
|
7947
7995
|
"module": "core/datetime/native-date-adapter.js"
|
|
7948
7996
|
}
|
|
7997
|
+
},
|
|
7998
|
+
{
|
|
7999
|
+
"kind": "js",
|
|
8000
|
+
"name": "*",
|
|
8001
|
+
"declaration": {
|
|
8002
|
+
"name": "*",
|
|
8003
|
+
"module": "core/datetime/temporal-date-adapter.js"
|
|
8004
|
+
}
|
|
7949
8005
|
}
|
|
7950
8006
|
]
|
|
7951
8007
|
},
|
|
@@ -9588,6 +9644,14 @@
|
|
|
9588
9644
|
"name": "*",
|
|
9589
9645
|
"module": "datepicker/common/datepicker-button.js"
|
|
9590
9646
|
}
|
|
9647
|
+
},
|
|
9648
|
+
{
|
|
9649
|
+
"kind": "js",
|
|
9650
|
+
"name": "datepickerButtonStyle",
|
|
9651
|
+
"declaration": {
|
|
9652
|
+
"name": "default",
|
|
9653
|
+
"module": "./common/datepicker-button.scss?lit&inline"
|
|
9654
|
+
}
|
|
9591
9655
|
}
|
|
9592
9656
|
]
|
|
9593
9657
|
},
|
|
@@ -16945,17 +17009,19 @@
|
|
|
16945
17009
|
"kind": "field",
|
|
16946
17010
|
"name": "_originElement",
|
|
16947
17011
|
"type": {
|
|
16948
|
-
"text": "HTMLElement"
|
|
17012
|
+
"text": "HTMLElement | null"
|
|
16949
17013
|
},
|
|
16950
|
-
"privacy": "private"
|
|
17014
|
+
"privacy": "private",
|
|
17015
|
+
"default": "null"
|
|
16951
17016
|
},
|
|
16952
17017
|
{
|
|
16953
17018
|
"kind": "field",
|
|
16954
17019
|
"name": "_triggerElement",
|
|
16955
17020
|
"type": {
|
|
16956
|
-
"text": "HTMLElement"
|
|
17021
|
+
"text": "HTMLElement | null"
|
|
16957
17022
|
},
|
|
16958
|
-
"privacy": "private"
|
|
17023
|
+
"privacy": "private",
|
|
17024
|
+
"default": "null"
|
|
16959
17025
|
},
|
|
16960
17026
|
{
|
|
16961
17027
|
"kind": "field",
|
|
@@ -104653,14 +104719,6 @@
|
|
|
104653
104719
|
},
|
|
104654
104720
|
"privacy": "private"
|
|
104655
104721
|
},
|
|
104656
|
-
{
|
|
104657
|
-
"kind": "field",
|
|
104658
|
-
"name": "_tabContentElement",
|
|
104659
|
-
"type": {
|
|
104660
|
-
"text": "HTMLElement"
|
|
104661
|
-
},
|
|
104662
|
-
"privacy": "private"
|
|
104663
|
-
},
|
|
104664
104722
|
{
|
|
104665
104723
|
"kind": "field",
|
|
104666
104724
|
"name": "_tabGroupResizeObserver",
|
|
@@ -104732,7 +104790,7 @@
|
|
|
104732
104790
|
},
|
|
104733
104791
|
"parameters": [
|
|
104734
104792
|
{
|
|
104735
|
-
"name": "
|
|
104793
|
+
"name": "index",
|
|
104736
104794
|
"type": {
|
|
104737
104795
|
"text": "number"
|
|
104738
104796
|
},
|
|
@@ -104752,7 +104810,7 @@
|
|
|
104752
104810
|
},
|
|
104753
104811
|
"parameters": [
|
|
104754
104812
|
{
|
|
104755
|
-
"name": "
|
|
104813
|
+
"name": "index",
|
|
104756
104814
|
"type": {
|
|
104757
104815
|
"text": "number"
|
|
104758
104816
|
},
|
|
@@ -104772,7 +104830,7 @@
|
|
|
104772
104830
|
},
|
|
104773
104831
|
"parameters": [
|
|
104774
104832
|
{
|
|
104775
|
-
"name": "
|
|
104833
|
+
"name": "index",
|
|
104776
104834
|
"type": {
|
|
104777
104835
|
"text": "number"
|
|
104778
104836
|
},
|
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
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as u, __runInitializers as m } from "tslib";
|
|
2
2
|
import { customElement as c } from "lit/decorators.js";
|
|
3
3
|
import { miniButtonStyle as d } from "../../button/common.js";
|
|
4
4
|
import { i18nPreviousDay as p, i18nSelectPreviousDay as f } from "../../core/i18n.js";
|
|
5
|
-
import { boxSizingStyles as
|
|
6
|
-
import { SbbDatepickerButton as
|
|
7
|
-
|
|
8
|
-
const D = h`.sbb-datepicker-previous-day{margin:auto;-webkit-tap-highlight-color:transparent}`;
|
|
9
|
-
let A = (() => {
|
|
5
|
+
import { boxSizingStyles as y } from "../../core/styles.js";
|
|
6
|
+
import { SbbDatepickerButton as b, datepickerButtonStyle as D } from "../common.js";
|
|
7
|
+
let x = (() => {
|
|
10
8
|
var e;
|
|
11
|
-
let o = [c("sbb-datepicker-previous-day")], r, s = [], t, l =
|
|
9
|
+
let o = [c("sbb-datepicker-previous-day")], r, s = [], t, l = b;
|
|
12
10
|
return e = class extends l {
|
|
13
11
|
constructor() {
|
|
14
12
|
super(...arguments), this.iconName = "chevron-small-left-small", this.i18nOffBoundaryDay = p, this.i18nSelectOffBoundaryDay = f;
|
|
@@ -30,9 +28,13 @@ let A = (() => {
|
|
|
30
28
|
}
|
|
31
29
|
}, t = e, (() => {
|
|
32
30
|
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
33
|
-
|
|
34
|
-
})(), e.styles = [
|
|
31
|
+
u(null, r = { value: t }, o, { kind: "class", name: t.name, metadata: a }, null, s), 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
|
+
], m(t, s), t;
|
|
35
37
|
})();
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
x as SbbDatepickerPreviousDayElement
|
|
38
40
|
};
|
|
@@ -2,24 +2,22 @@ var k = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var b = (e, t, i) => t.has(e) || k("Cannot " + i);
|
|
5
|
-
var f = (e, t, i) => (b(e, t, "read from private field"), i ? i.call(e) : t.get(e)),
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { customElement as
|
|
5
|
+
var f = (e, t, i) => (b(e, t, "read from private field"), i ? i.call(e) : t.get(e)), _ = (e, t, i) => t.has(e) ? k("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), n = (e, t, i, r) => (b(e, t, "write to private field"), r ? r.call(e, i) : t.set(e, i), i);
|
|
6
|
+
import { __esDecorate as g, __runInitializers as d } from "tslib";
|
|
7
|
+
import { customElement as y, property as v } from "lit/decorators.js";
|
|
8
8
|
import { miniButtonStyle as x } from "../../button/common.js";
|
|
9
9
|
import { idReference as z } from "../../core/decorators.js";
|
|
10
|
-
import { i18nShowCalendar as
|
|
10
|
+
import { i18nShowCalendar as S } from "../../core/i18n.js";
|
|
11
11
|
import { boxSizingStyles as D } from "../../core/styles.js";
|
|
12
|
-
import { SbbDatepickerButtonBase as E } from "../common.js";
|
|
13
|
-
|
|
14
|
-
const w = q`.sbb-datepicker-toggle{margin:auto;-webkit-tap-highlight-color:transparent}`;
|
|
15
|
-
let N = (() => {
|
|
12
|
+
import { SbbDatepickerButtonBase as B, datepickerButtonStyle as E } from "../common.js";
|
|
13
|
+
let A = (() => {
|
|
16
14
|
var l, s;
|
|
17
|
-
let e = [
|
|
18
|
-
return s = class extends
|
|
15
|
+
let e = [y("sbb-datepicker-toggle")], t, i = [], r, p = B, m, u = [], h = [];
|
|
16
|
+
return s = class extends p {
|
|
19
17
|
constructor() {
|
|
20
18
|
super();
|
|
21
|
-
|
|
22
|
-
this.iconName = "calendar-small", n(this, l,
|
|
19
|
+
_(this, l);
|
|
20
|
+
this.iconName = "calendar-small", n(this, l, d(this, u, null)), d(this, h), this.addEventListener?.("click", () => {
|
|
23
21
|
this.datepicker?.isOpen || this.datepicker?.open();
|
|
24
22
|
});
|
|
25
23
|
}
|
|
@@ -31,20 +29,24 @@ let N = (() => {
|
|
|
31
29
|
n(this, l, a);
|
|
32
30
|
}
|
|
33
31
|
connectedCallback() {
|
|
34
|
-
super.connectedCallback(), this.internals.ariaLabel =
|
|
32
|
+
super.connectedCallback(), this.internals.ariaLabel = S[this.language.current];
|
|
35
33
|
const a = this.closest?.("sbb-form-field");
|
|
36
34
|
a && !this.hasAttribute("datepicker") && (this.datepicker ??= a.querySelector("sbb-datepicker"));
|
|
37
35
|
}
|
|
38
36
|
requestUpdate(a, c, o) {
|
|
39
|
-
super.requestUpdate(a, c, o), a === "datepicker" && this.datepicker && this.datepicker.trigger !== this ? this.datepicker.trigger = this : !a && this.hasUpdated && (this.internals.ariaLabel =
|
|
37
|
+
super.requestUpdate(a, c, o), a === "datepicker" && this.datepicker && this.datepicker.trigger !== this ? this.datepicker.trigger = this : !a && this.hasUpdated && (this.internals.ariaLabel = S[this.language.current]);
|
|
40
38
|
}
|
|
41
39
|
}, l = new WeakMap(), r = s, (() => {
|
|
42
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
43
|
-
m = [z(), v()],
|
|
40
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
41
|
+
m = [z(), v()], g(s, null, m, { kind: "accessor", name: "datepicker", static: !1, private: !1, access: { has: (c) => "datepicker" in c, get: (c) => c.datepicker, set: (c, o) => {
|
|
44
42
|
c.datepicker = o;
|
|
45
|
-
} }, metadata: a }, u, h),
|
|
46
|
-
})(), s.styles = [
|
|
43
|
+
} }, metadata: a }, u, h), g(null, t = { value: r }, e, { kind: "class", name: r.name, metadata: a }, null, i), r = t.value, a && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
44
|
+
})(), s.styles = [
|
|
45
|
+
D,
|
|
46
|
+
x,
|
|
47
|
+
E
|
|
48
|
+
], d(r, i), r;
|
|
47
49
|
})();
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
A as SbbDatepickerToggleElement
|
|
50
52
|
};
|
package/datepicker.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { SbbDatepickerElement as r } from "./datepicker/datepicker/datepicker.component.js";
|
|
2
|
-
import { SbbDatepickerNextDayElement as
|
|
2
|
+
import { SbbDatepickerNextDayElement as p } from "./datepicker/datepicker-next-day/datepicker-next-day.component.js";
|
|
3
3
|
import { SbbDatepickerPreviousDayElement as a } from "./datepicker/datepicker-previous-day/datepicker-previous-day.component.js";
|
|
4
|
-
import { SbbDatepickerToggleElement as
|
|
4
|
+
import { SbbDatepickerToggleElement as i } from "./datepicker/datepicker-toggle/datepicker-toggle.component.js";
|
|
5
5
|
import { SbbDatepickerButton as c, SbbDatepickerButtonBase as k } from "./datepicker/common/datepicker-button.js";
|
|
6
|
+
import { d as x } from "./datepicker-button-Debzp_As.js";
|
|
6
7
|
export {
|
|
7
8
|
c as SbbDatepickerButton,
|
|
8
9
|
k as SbbDatepickerButtonBase,
|
|
9
10
|
r as SbbDatepickerElement,
|
|
10
|
-
|
|
11
|
+
p as SbbDatepickerNextDayElement,
|
|
11
12
|
a as SbbDatepickerPreviousDayElement,
|
|
12
|
-
|
|
13
|
+
i as SbbDatepickerToggleElement,
|
|
14
|
+
x as datepickerButtonStyle
|
|
13
15
|
};
|
|
@@ -34,6 +34,11 @@ export declare abstract class SbbAutocompleteBaseElement<T = string> extends Sbb
|
|
|
34
34
|
accessor size: 'm' | 's';
|
|
35
35
|
/** Whether the active option should be selected as the user is navigating. */
|
|
36
36
|
accessor autoSelectActiveOption: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* When enabled, the active option is automatically selected on blur.
|
|
39
|
+
* This is an experimental feature. It might be subject to changes.
|
|
40
|
+
*/
|
|
41
|
+
accessor autoSelectActiveOptionOnBlur: boolean;
|
|
37
42
|
/**
|
|
38
43
|
* Whether the user is required to make a selection when they're interacting with the
|
|
39
44
|
* autocomplete. If the user moves away from the autocomplete without selecting an option from
|
|
@@ -46,7 +51,7 @@ export declare abstract class SbbAutocompleteBaseElement<T = string> extends Sbb
|
|
|
46
51
|
* @default 'auto'
|
|
47
52
|
*/
|
|
48
53
|
accessor position: 'auto' | 'above' | 'below';
|
|
49
|
-
/** Returns the element where autocomplete overlay is attached to. */
|
|
54
|
+
/** Returns the element where the autocomplete overlay is attached to. */
|
|
50
55
|
get originElement(): HTMLElement | null;
|
|
51
56
|
/** Returns the trigger element. */
|
|
52
57
|
get triggerElement(): HTMLInputElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAgBnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;;AAUzD,8BAAsB,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,+BAEpE;IACC,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE;;;;;;;OAOG;IACH,SAEgB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAElD;;;;;;OAMG;IACH,SAEgB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAExD,+DAA+D;IAC/D,SAEgB,iBAAiB,EAAE,OAAO,CAAS;IAEnD,2FAA2F;IAC3F,SAEgB,qBAAqB,EAAE,OAAO,CAAS;IAEvD,wFAAwF;IACxF,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,8EAA8E;IAC9E,SAEgB,sBAAsB,EAAE,OAAO,CAAS;IAExD;;;;;OAKG;IACH,SAEgB,gBAAgB,EAAE,OAAO,CAAS;IAElD;;;OAGG;IACH,SACgB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAU;IAE9D,
|
|
1
|
+
{"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAgBnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;;AAUzD,8BAAsB,0BAA0B,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,+BAEpE;IACC,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE;;;;;;;OAOG;IACH,SAEgB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAElD;;;;;;OAMG;IACH,SAEgB,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAExD,+DAA+D;IAC/D,SAEgB,iBAAiB,EAAE,OAAO,CAAS;IAEnD,2FAA2F;IAC3F,SAEgB,qBAAqB,EAAE,OAAO,CAAS;IAEvD,wFAAwF;IACxF,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,8EAA8E;IAC9E,SAEgB,sBAAsB,EAAE,OAAO,CAAS;IAExD;;;OAGG;IACH,SAEgB,4BAA4B,EAAE,OAAO,CAAS;IAE9D;;;;;OAKG;IACH,SAEgB,gBAAgB,EAAE,OAAO,CAAS;IAElD;;;OAGG;IACH,SACgB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAU;IAE9D,yEAAyE;IACzE,IAAW,aAAa,IAAI,WAAW,GAAG,IAAI,CAO7C;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