@sbb-esta/lyne-elements 3.12.1 → 3.13.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-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +4 -4
- package/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +4 -4
- package/button/common.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.d.ts +1 -0
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +126 -126
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common/card-action-common.js +3 -8
- package/carousel/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/carousel/carousel/carousel.component.js +32 -27
- package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/carousel/carousel-list/carousel-list.component.js +26 -31
- package/checkbox/common.js +1 -1
- package/checkbox-common-C5r-MPLc.js +5 -0
- package/checkbox.js +1 -1
- package/core/a11y/interactivity-checker.js +0 -7
- package/core/a11y/live-announcer.js +0 -7
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.d.ts +1 -0
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.js +1 -1
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/core/mixins.js +2 -2
- package/core/styles/core.scss +4 -0
- package/core.css +2 -0
- package/custom-elements.json +37 -190
- package/date-input/date-input.component.d.ts +1 -0
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +2 -1
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +3 -3
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.d.ts +1 -0
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +4 -4
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common/card-action-common.js +15 -8
- package/development/carousel/carousel/carousel.component.d.ts +2 -1
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/development/carousel/carousel/carousel.component.js +19 -8
- package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +7 -14
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-Dy_ofVhp.js → checkbox-common-Cq9DLK37.js} +3 -3
- package/development/checkbox.js +1 -1
- package/development/core/a11y/interactivity-checker.js +1 -8
- package/development/core/a11y/live-announcer.js +1 -8
- package/development/core/config/config.d.ts +5 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/datetime/native-date-adapter.d.ts +1 -0
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/core/mixins.js +2 -2
- package/development/date-input/date-input.component.d.ts +1 -0
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +3 -2
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -2
- package/development/flip-card/flip-card/flip-card.component.js +2 -2
- package/development/form-field/form-field/form-field.component.js +1 -1
- package/development/header/common/header-action-common.js +1 -1
- package/development/{icon-sidebar-button-common-BGrKtvyM.js → icon-sidebar-button-common-CaOV-n8E.js} +2 -2
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.js +1 -1
- package/development/link/common.js +1 -1
- package/development/{link-common-BDFF9Oiz.js → link-common-B9KyXHCd.js} +3 -3
- package/development/link.js +1 -1
- package/development/menu/common/menu-action-common.js +4 -4
- package/development/navigation/common/navigation-action-common.js +1 -1
- package/development/option/option/option.component.js +2 -2
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +7 -24
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +2 -3
- package/development/paginator/paginator/paginator.component.d.ts +0 -6
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +6 -21
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +63 -13
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-CgM3kQSW.js → radio-button-common-DWGEcWfZ.js} +3 -3
- package/development/radio-button.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 +8 -5
- package/development/sidebar/common.js +1 -1
- package/development/sidebar.js +1 -1
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +1 -1
- package/development/teaser/teaser.component.js +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +1 -1
- package/development/toggle-check/toggle-check.component.js +2 -2
- package/development/{transparent-button-DdSaBp_-.js → transparent-button-BUTXbd7W.js} +3 -3
- package/development/visual-checkbox/visual-checkbox.component.js +2 -2
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +5 -5
- package/flip-card/flip-card/flip-card.component.js +8 -8
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/{icon-sidebar-button-common-XcKoF2SP.js → icon-sidebar-button-common-D_doPv2r.js} +1 -1
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.js +1 -1
- package/link/common.js +1 -1
- package/{link-common-nA3q92jp.js → link-common-CfSIg7al.js} +8 -8
- package/link.js +1 -1
- package/menu/common/menu-action-common.js +8 -8
- package/navigation/common/navigation-action-common.js +1 -1
- package/off-brand-theme.css +2 -0
- package/option/option/option.component.js +18 -18
- package/package.json +1 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common/paginator-common.js +30 -46
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +1 -2
- package/paginator/paginator/paginator.component.d.ts +0 -6
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +45 -57
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +72 -74
- package/radio-button/common.js +1 -1
- package/radio-button-common-BHR2tjCF.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +2 -0
- package/select/select.component.d.ts +1 -1
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +25 -23
- package/sidebar/common.js +1 -1
- package/sidebar.js +1 -1
- package/standard-theme.css +2 -0
- package/stepper/step-label/step-label.component.js +4 -4
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tag/tag/tag.component.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/time-input/time-input.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +9 -9
- package/toggle-check/toggle-check.component.js +1 -1
- package/transparent-button-CBNZHS9a.js +9 -0
- package/visual-checkbox/visual-checkbox.component.js +18 -18
- package/checkbox-common-gjHkSAmN.js +0 -5
- package/radio-button-common-Bw2t3Sxz.js +0 -5
- package/transparent-button-DJIkG5hj.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-action-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/card/common/card-action-common.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,
|
|
1
|
+
{"version":3,"file":"card-action-common.d.ts","sourceRoot":"","sources":["../../../../src/elements/card/common/card-action-common.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,MAAM,CAAC,OAAO,OAAO,mCAAmC;IACtD,SAAgB,MAAM,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;CACzC;AAGD,eAAO,MAAM,+BAA+B,GAC1C,CAAC,SAAS,mBAAmB,CAAC,oBAAoB,CAAC,EAEnD,YAAY,CAAC,KACZ,mBAAmB,CAAC,mCAAmC,CAAC,GAAG,CAgF7D,CAAC"}
|
|
@@ -4,8 +4,7 @@ import { property as d } from "lit/decorators.js";
|
|
|
4
4
|
import { html as u } from "lit/static-html.js";
|
|
5
5
|
import { IS_FOCUSABLE_QUERY as h } from "../../core/a11y.js";
|
|
6
6
|
import { css as f } from "lit";
|
|
7
|
-
|
|
8
|
-
const m = f`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;position:absolute;inset:0}:is(.sbb-card-button,.sbb-card-link){display:block;position:absolute;inset:0;border-radius:var(--sbb-card-border-radius);cursor:pointer;outline:none}:host(:focus-visible) :is(.sbb-card-button,.sbb-card-link),:is(.sbb-card-button,.sbb-card-link):focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}`, C = (o) => (() => {
|
|
7
|
+
const m = f`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;position:absolute;inset:0}:is(.sbb-card-button,.sbb-card-link){display:block;position:absolute;inset:0;border-radius:var(--sbb-card-border-radius);cursor:var(--sbb-cursor-pointer);outline:none}:host(:focus-visible) :is(.sbb-card-button,.sbb-card-link),:is(.sbb-card-button,.sbb-card-link):focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-screen-reader-only{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`, S = (o) => (() => {
|
|
9
8
|
var a;
|
|
10
9
|
let r = o, i = [], s;
|
|
11
10
|
return a = class extends r {
|
|
@@ -37,11 +36,7 @@ const m = f`*,:before,:after{box-sizing:border-box}:host{display:block;outline:n
|
|
|
37
36
|
super.disconnectedCallback(), this._card && (["data-has-action", "data-has-active-action", "data-action-role"].forEach((t) => this._card.removeAttribute(t)), this._card.querySelectorAll("[data-card-focusable]").forEach((t) => t.removeAttribute("data-card-focusable")), this._card = null);
|
|
38
37
|
}
|
|
39
38
|
renderTemplate() {
|
|
40
|
-
return u
|
|
41
|
-
<sbb-screen-reader-only>
|
|
42
|
-
<slot></slot>
|
|
43
|
-
</sbb-screen-reader-only>
|
|
44
|
-
`;
|
|
39
|
+
return u`<span class="sbb-screen-reader-only"><slot></slot></span>`;
|
|
45
40
|
}
|
|
46
41
|
}, (() => {
|
|
47
42
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
@@ -51,5 +46,5 @@ const m = f`*,:before,:after{box-sizing:border-box}:host{display:block;outline:n
|
|
|
51
46
|
})(), a.styles = m, a;
|
|
52
47
|
})();
|
|
53
48
|
export {
|
|
54
|
-
|
|
49
|
+
S as SbbCardActionCommonElementMixin
|
|
55
50
|
};
|
|
@@ -21,7 +21,8 @@ export declare class SbbCarouselElement extends SbbCarouselElement_base {
|
|
|
21
21
|
firstUpdated(_changedProperties: PropertyValues): void;
|
|
22
22
|
disconnectedCallback(): void;
|
|
23
23
|
private _handleSlotchange;
|
|
24
|
-
private
|
|
24
|
+
private _setupPaginator;
|
|
25
|
+
private _scrollAtPaginatorChange;
|
|
25
26
|
protected render(): TemplateResult;
|
|
26
27
|
}
|
|
27
28
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/carousel/carousel/carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAmBvC,OAAO,6BAA6B,CAAC;;AAIrC;;;;GAIG;AACH,qBAEM,kBAAmB,SAAQ,uBAAoC;IACnE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;OAEG;IACH,SAEgB,MAAM,EAAE,OAAO,CAAS;IAExC,OAAO,CAAC,UAAU,CAA2C;IAC7D,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,8BAA8B,CAAM;;IAwB5B,iBAAiB,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"carousel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/carousel/carousel/carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAmBvC,OAAO,6BAA6B,CAAC;;AAIrC;;;;GAIG;AACH,qBAEM,kBAAmB,SAAQ,uBAAoC;IACnE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;OAEG;IACH,SAEgB,MAAM,EAAE,OAAO,CAAS;IAExC,OAAO,CAAC,UAAU,CAA2C;IAC7D,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,8BAA8B,CAAM;;IAwB5B,iBAAiB,IAAI,IAAI;IASzB,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAQtD,oBAAoB,IAAI,IAAI;IAK5C,OAAO,CAAC,iBAAiB;IAyBzB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,wBAAwB;cAwBb,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,cAAc,EAAE,kBAAkB,CAAC;KACpC;CACF"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var _ = (a, t, s) => t.has(a) || p("Cannot " + s);
|
|
5
|
+
var v = (a, t, s) => (_(a, t, "read from private field"), s ? s.call(a) : t.get(a)), m = (a, t, s) => t.has(a) ? p("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(a) : t.set(a, s), b = (a, t, s, r) => (_(a, t, "write to private field"), r ? r.call(a, s) : t.set(a, s), s);
|
|
6
6
|
import { __esDecorate as w, __runInitializers as c } from "tslib";
|
|
7
7
|
import { css as y, LitElement as x, html as P } from "lit";
|
|
8
8
|
import { customElement as S, property as C } from "lit/decorators.js";
|
|
9
9
|
import { SbbLanguageController as I } from "../../core/controllers/language-controller.js";
|
|
10
|
-
import { forceType as
|
|
11
|
-
import { i18nNextSlide as
|
|
10
|
+
import { forceType as k } from "../../core/decorators.js";
|
|
11
|
+
import { i18nNextSlide as L, i18nPreviousSlide as q, i18nSlide as A, i18nCarouselArrowsNavigationHint as E } from "../../core/i18n/i18n.js";
|
|
12
12
|
import { SbbElementInternalsMixin as B } from "../../core/mixins.js";
|
|
13
13
|
import "../../screen-reader-only.js";
|
|
14
14
|
const z = y`*,:before,:after{box-sizing:border-box}:host{--sbb-carousel-border-radius: var(--sbb-border-radius-4x);--sbb-carousel-background-color: var(--sbb-background-color-1);display:inline-block;overflow:hidden;border-radius:var(--sbb-carousel-border-radius) var(--sbb-carousel-border-radius) 0 0}:host([shadow]){box-shadow:var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-color-hard-2),var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-color-hard-1);border-radius:var(--sbb-carousel-border-radius)}:host(:not([shadow])) ::slotted(sbb-carousel-list){--sbb-carousel-inherit-border-radius: var(--sbb-carousel-border-radius)}.sbb-carousel{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:var(--sbb-carousel-background-color)}::slotted(sbb-compact-paginator){padding:var(--sbb-spacing-responsive-xs)}`;
|
|
15
15
|
let W = (() => {
|
|
16
|
-
var n,
|
|
17
|
-
let a = [S("sbb-carousel")],
|
|
18
|
-
return
|
|
16
|
+
var n, i;
|
|
17
|
+
let a = [S("sbb-carousel")], t, s = [], r, h = B(x), u, g = [], f = [];
|
|
18
|
+
return i = class extends h {
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
|
-
|
|
21
|
+
m(this, n);
|
|
22
22
|
b(this, n, c(this, g, !1)), this._paginator = (c(this, f), null), this._abortController = null, this._language = new I(this), this._requestedPageIndexByPaginator = -1, this.addEventListener?.("show", (e) => {
|
|
23
23
|
this._requestedPageIndexByPaginator !== -1 && this._requestedPageIndexByPaginator !== e.detail.index || (this._paginator && e.detail.index !== this._paginator.pageIndex && (this._paginator.pageIndex = e.detail.index), this._requestedPageIndexByPaginator = -1);
|
|
24
24
|
});
|
|
@@ -27,13 +27,13 @@ let W = (() => {
|
|
|
27
27
|
* Used to display a box-shadow around the component.
|
|
28
28
|
*/
|
|
29
29
|
get shadow() {
|
|
30
|
-
return
|
|
30
|
+
return v(this, n);
|
|
31
31
|
}
|
|
32
32
|
set shadow(e) {
|
|
33
33
|
b(this, n, e);
|
|
34
34
|
}
|
|
35
35
|
connectedCallback() {
|
|
36
|
-
super.connectedCallback(), this.internals.role = "region", this.internals.ariaLabel = "carousel";
|
|
36
|
+
super.connectedCallback(), this.internals.role = "region", this.internals.ariaLabel = "carousel", this._setupPaginator();
|
|
37
37
|
}
|
|
38
38
|
firstUpdated(e) {
|
|
39
39
|
super.firstUpdated(e), this.internals.ariaDescribedByElements = [
|
|
@@ -44,20 +44,25 @@ let W = (() => {
|
|
|
44
44
|
super.disconnectedCallback(), this._abortController?.abort();
|
|
45
45
|
}
|
|
46
46
|
_handleSlotchange() {
|
|
47
|
-
const e = Array.from(this.children).find((
|
|
48
|
-
if (!e || !
|
|
47
|
+
const e = Array.from(this.children).find((d) => d.localName === "sbb-compact-paginator"), o = Array.from(this.children).find((d) => d.localName === "sbb-carousel-list");
|
|
48
|
+
if (!e || !o)
|
|
49
49
|
return;
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const l = o.querySelectorAll("sbb-carousel-item");
|
|
51
|
+
l && l.length > 0 && (e.length = l.length, e.pageSize = 1), e.accessibilityNextPageLabel ||= L[this._language.current], e.accessibilityPreviousPageLabel ||= q[this._language.current], e.accessibilityPageLabel ||= A[this._language.current], e !== this._paginator && (this._paginator = e, this._setupPaginator());
|
|
52
|
+
}
|
|
53
|
+
_setupPaginator() {
|
|
54
|
+
this._abortController?.abort(), this._paginator && (this._abortController = new AbortController(), this._paginator.addEventListener("click", () => this._scrollAtPaginatorChange(), {
|
|
52
55
|
signal: this._abortController.signal
|
|
53
|
-
})
|
|
56
|
+
}));
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
this.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
_scrollAtPaginatorChange() {
|
|
59
|
+
if (!this._paginator)
|
|
60
|
+
return;
|
|
61
|
+
this._requestedPageIndexByPaginator = this._paginator.pageIndex;
|
|
62
|
+
const e = this.querySelector("sbb-carousel-list");
|
|
63
|
+
if (e) {
|
|
64
|
+
const l = e.querySelectorAll("sbb-carousel-item")[this._paginator.pageIndex].offsetLeft - this.offsetLeft;
|
|
65
|
+
(e.clientWidth <= 100 || Math.abs(e.scrollLeft - l) > 50) && e.scrollTo({ left: l });
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
render() {
|
|
@@ -70,12 +75,12 @@ let W = (() => {
|
|
|
70
75
|
</div>
|
|
71
76
|
`;
|
|
72
77
|
}
|
|
73
|
-
}, n = new WeakMap(),
|
|
78
|
+
}, n = new WeakMap(), r = i, (() => {
|
|
74
79
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
75
|
-
u = [
|
|
76
|
-
|
|
77
|
-
} }, metadata: e }, g, f), w(null,
|
|
78
|
-
})(),
|
|
80
|
+
u = [k(), C({ reflect: !0, type: Boolean })], w(i, null, u, { kind: "accessor", name: "shadow", static: !1, private: !1, access: { has: (o) => "shadow" in o, get: (o) => o.shadow, set: (o, l) => {
|
|
81
|
+
o.shadow = l;
|
|
82
|
+
} }, metadata: e }, g, f), w(null, t = { value: r }, a, { kind: "class", name: r.name, metadata: e }, null, s), r = t.value, e && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
83
|
+
})(), i.styles = z, c(r, s), r;
|
|
79
84
|
})();
|
|
80
85
|
export {
|
|
81
86
|
W as SbbCarouselElement
|
|
@@ -12,7 +12,7 @@ export declare class SbbCarouselListElement extends SbbCarouselListElement_base
|
|
|
12
12
|
private _observedCarouselItems;
|
|
13
13
|
private _beforeShowObserver;
|
|
14
14
|
private _showObserver;
|
|
15
|
-
private
|
|
15
|
+
private _resizeObserverController;
|
|
16
16
|
constructor();
|
|
17
17
|
/** Gets the slotted items. */
|
|
18
18
|
private _carouselItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-list.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/carousel/carousel-list/carousel-list.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-list.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/carousel/carousel-list/carousel-list.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;;AAcjF;;;;GAIG;AACH,qBAEM,sBAAuB,SAAQ,2BAAoC;IACvE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,sBAAsB,CAAgC;IAE9D,OAAO,CAAC,mBAAmB,CAgBxB;IAEH,OAAO,CAAC,aAAa,CAwBlB;IAEH,OAAO,CAAC,yBAAyB,CAG9B;;IAQH,8BAA8B;IAC9B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAoBzB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,UAAU;IAwBF,iBAAiB,IAAI,IAAI;cAOtB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { __esDecorate as b, __runInitializers as d } from "tslib";
|
|
2
|
-
import { IntersectionController as
|
|
3
|
-
import {
|
|
2
|
+
import { IntersectionController as c } from "@lit-labs/observers/intersection-controller.js";
|
|
3
|
+
import { ResizeController as f } from "@lit-labs/observers/resize-controller.js";
|
|
4
|
+
import { css as m, LitElement as _, html as v } from "lit";
|
|
4
5
|
import { customElement as g } from "lit/decorators.js";
|
|
5
6
|
import { isArrowKeyPressed as I } from "../../core/a11y.js";
|
|
6
|
-
import { SbbLanguageController as
|
|
7
|
-
import { i18nCarouselItemAriaLabel as
|
|
7
|
+
import { SbbLanguageController as p } from "../../core/controllers.js";
|
|
8
|
+
import { i18nCarouselItemAriaLabel as w } from "../../core/i18n.js";
|
|
8
9
|
import { SbbElementInternalsMixin as x } from "../../core/mixins.js";
|
|
9
|
-
const y =
|
|
10
|
+
const y = m`*,:before,:after{box-sizing:border-box}:host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);display:flex;height:var(--sbb-carousel-list-height);width:var(--sbb-carousel-list-width, 0);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;outline:none;border-radius:var(--sbb-carousel-inherit-border-radius)}:host(:focus-visible):before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:"";position:absolute;height:inherit;width:inherit;border-start-start-radius:var(--sbb-carousel-list-border-radius);border-start-end-radius:var(--sbb-carousel-list-border-radius);border-end-start-radius:var(--sbb-carousel-inherit-border-radius);border-end-end-radius:var(--sbb-carousel-inherit-border-radius)}`;
|
|
10
11
|
let H = (() => {
|
|
11
|
-
var
|
|
12
|
-
let u = [g("sbb-carousel-list")],
|
|
13
|
-
return
|
|
12
|
+
var o;
|
|
13
|
+
let u = [g("sbb-carousel-list")], n, a = [], s, l = x(_);
|
|
14
|
+
return o = class extends l {
|
|
14
15
|
constructor() {
|
|
15
|
-
super(), this._currentIndex = 0, this._language = new
|
|
16
|
+
super(), this._currentIndex = 0, this._language = new p(this), this._observedCarouselItems = [], this._beforeShowObserver = new c(this, {
|
|
16
17
|
target: null,
|
|
17
18
|
callback: (e) => {
|
|
18
19
|
e.filter((r) => r.isIntersecting && r.target !== this).forEach((r) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
detail: { index: this._carouselItems().findIndex((h) => h ===
|
|
20
|
+
const i = r.target;
|
|
21
|
+
i.dispatchEvent(new CustomEvent("beforeshow", {
|
|
22
|
+
detail: { index: this._carouselItems().findIndex((h) => h === i) },
|
|
22
23
|
bubbles: !0,
|
|
23
24
|
composed: !0
|
|
24
25
|
}));
|
|
25
26
|
});
|
|
26
27
|
},
|
|
27
28
|
config: { threshold: 0.01, root: this, rootMargin: "100% 0% 100% 0%" }
|
|
28
|
-
}), this._showObserver = new
|
|
29
|
+
}), this._showObserver = new c(this, {
|
|
29
30
|
target: null,
|
|
30
31
|
callback: (e) => {
|
|
31
32
|
for (const t of e) {
|
|
32
33
|
if (t.target === this)
|
|
33
34
|
continue;
|
|
34
35
|
const r = t.target;
|
|
35
|
-
t.isIntersecting ? (r.ariaHidden = null, this._currentIndex = this._carouselItems().findIndex((
|
|
36
|
+
t.isIntersecting ? (r.ariaHidden = null, this._currentIndex = this._carouselItems().findIndex((i) => i === r), r.dispatchEvent(new CustomEvent("show", {
|
|
36
37
|
detail: { index: this._currentIndex },
|
|
37
38
|
bubbles: !0,
|
|
38
39
|
composed: !0
|
|
@@ -40,15 +41,9 @@ let H = (() => {
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
config: { threshold: 0.99, root: this, rootMargin: "100% 0% 100% 0%" }
|
|
43
|
-
}), this.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
t.intersectionRatio > 0 && (this._readDimensions(), this._firstVisibleIntersectionController.unobserve(this));
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
config: {
|
|
50
|
-
root: _ ? null : document?.documentElement
|
|
51
|
-
}
|
|
44
|
+
}), this._resizeObserverController = new f(this, {
|
|
45
|
+
skipInitial: !0,
|
|
46
|
+
callback: () => this._readDimensions()
|
|
52
47
|
}), this.addEventListener?.("keydown", (e) => this._onKeyDown(e));
|
|
53
48
|
}
|
|
54
49
|
/** Gets the slotted items. */
|
|
@@ -61,7 +56,7 @@ let H = (() => {
|
|
|
61
56
|
});
|
|
62
57
|
const e = this._carouselItems();
|
|
63
58
|
e.forEach((t, r) => {
|
|
64
|
-
t.ariaLabel ||=
|
|
59
|
+
t.ariaLabel ||= w(r + 1, e.length)[this._language.current], t.ariaHidden = r === this._currentIndex ? null : "true";
|
|
65
60
|
}), this._readDimensions();
|
|
66
61
|
}
|
|
67
62
|
/**
|
|
@@ -75,15 +70,15 @@ let H = (() => {
|
|
|
75
70
|
const t = e[0];
|
|
76
71
|
t.clientHeight > 0 && this.style.setProperty("--sbb-carousel-list-height", `${t.clientHeight}px`), t.clientWidth > 0 && (this.style.setProperty("--sbb-carousel-list-width", `${t.clientWidth}px`), e.forEach((r) => {
|
|
77
72
|
this._beforeShowObserver.observe(r), this._showObserver.observe(r);
|
|
78
|
-
}), this._observedCarouselItems = e);
|
|
73
|
+
}), this._observedCarouselItems = e, this._resizeObserverController.unobserve(this));
|
|
79
74
|
}
|
|
80
75
|
_onKeyDown(e) {
|
|
81
76
|
if (!I(e))
|
|
82
77
|
return;
|
|
83
78
|
e.preventDefault();
|
|
84
79
|
let t = this._currentIndex;
|
|
85
|
-
const r = e.key === "ArrowUp" || e.key === "ArrowLeft",
|
|
86
|
-
r ? t = Math.max(0, this._currentIndex - 1) :
|
|
80
|
+
const r = e.key === "ArrowUp" || e.key === "ArrowLeft", i = e.key === "ArrowDown" || e.key === "ArrowRight";
|
|
81
|
+
r ? t = Math.max(0, this._currentIndex - 1) : i && (t = Math.min(this._carouselItems().length - 1, this._currentIndex + 1)), t !== this._currentIndex && (this._currentIndex = t, this.scrollTo({
|
|
87
82
|
left: this._carouselItems()[this._currentIndex].offsetLeft - this.offsetLeft
|
|
88
83
|
}));
|
|
89
84
|
}
|
|
@@ -93,10 +88,10 @@ let H = (() => {
|
|
|
93
88
|
render() {
|
|
94
89
|
return v`<slot @slotchange=${this._handleSlotchange}></slot>`;
|
|
95
90
|
}
|
|
96
|
-
}, s =
|
|
97
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
98
|
-
b(null,
|
|
99
|
-
})(),
|
|
91
|
+
}, s = o, (() => {
|
|
92
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
93
|
+
b(null, n = { value: s }, u, { kind: "class", name: s.name, metadata: e }, null, a), s = n.value, e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
94
|
+
})(), o.styles = y, d(s, a), s;
|
|
100
95
|
})();
|
|
101
96
|
export {
|
|
102
97
|
H as SbbCarouselListElement
|
package/checkbox/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbCheckboxCommonElementMixin as m } from "./common/checkbox-common.js";
|
|
2
|
-
import { c as b } from "../checkbox-common-
|
|
2
|
+
import { c as b } from "../checkbox-common-C5r-MPLc.js";
|
|
3
3
|
export {
|
|
4
4
|
m as SbbCheckboxCommonElementMixin,
|
|
5
5
|
b as checkboxCommonStyle
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
const t = e`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{--sbb-checkbox-dimension: var(--sbb-size-icon-ui-small);--sbb-checkbox-label-color: var(--sbb-color-color-3);--sbb-checkbox-label-icon-color: var(--sbb-checkbox-label-color);--sbb-checkbox-cursor: var(--sbb-cursor-pointer)}:host(:disabled){--sbb-checkbox-cursor: var(--sbb-cursor-default);--sbb-checkbox-label-color: var(--sbb-color-granite);--sbb-checkbox-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-aluminium))}.sbb-checkbox-wrapper{display:flex}.sbb-checkbox-wrapper:before{content:"";-webkit-user-select:none;user-select:none;width:0;height:0}.sbb-checkbox{--sbb-text-font-size: var(--sbb-font-size-text-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);position:relative;display:block;width:100%;cursor:var(--sbb-checkbox-cursor);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([size=s]) .sbb-checkbox{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}:host([size=xs]) .sbb-checkbox{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}.sbb-checkbox__inner{display:flex;align-items:start;gap:var(--sbb-spacing-fixed-2x)}.sbb-checkbox__label{display:flex;flex-grow:1;color:var(--sbb-checkbox-label-color);line-height:max(1em * var(--sbb-typo-line-height-body-text),var(--sbb-checkbox-dimension))}.sbb-checkbox__aligner{display:flex;align-items:center;height:calc(1em * var(--sbb-typo-line-height-body-text))}`;
|
|
3
|
+
export {
|
|
4
|
+
t as c
|
|
5
|
+
};
|
package/checkbox.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SbbCheckboxElement as b } from "./checkbox/checkbox/checkbox.component.
|
|
|
2
2
|
import { SbbCheckboxGroupElement as r } from "./checkbox/checkbox-group/checkbox-group.component.js";
|
|
3
3
|
import { SbbCheckboxPanelElement as t } from "./checkbox/checkbox-panel/checkbox-panel.component.js";
|
|
4
4
|
import { SbbCheckboxCommonElementMixin as c } from "./checkbox/common/checkbox-common.js";
|
|
5
|
-
import { c as p } from "./checkbox-common-
|
|
5
|
+
import { c as p } from "./checkbox-common-C5r-MPLc.js";
|
|
6
6
|
export {
|
|
7
7
|
c as SbbCheckboxCommonElementMixin,
|
|
8
8
|
b as SbbCheckboxElement,
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { isServer as s } from "lit";
|
|
2
2
|
import { isWebkit as a, isIOS as o, isFirefox as u } from "../dom/platform.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6
|
-
*
|
|
7
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
-
* found in the LICENSE file at https://angular.io/license
|
|
9
|
-
*/
|
|
10
3
|
class A {
|
|
11
4
|
constructor() {
|
|
12
5
|
this.ignoreVisibility = !1;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { isServer as o } from "lit";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
2
|
let l = 0;
|
|
10
3
|
class u {
|
|
11
4
|
constructor() {
|
package/core/config/config.d.ts
CHANGED
|
@@ -12,12 +12,17 @@ export interface SbbDatetimeConfig {
|
|
|
12
12
|
dateAdapter?: DateAdapter;
|
|
13
13
|
}
|
|
14
14
|
export interface SbbPopoverConfig {
|
|
15
|
+
/** Delay in milliseconds before the popover opens. */
|
|
15
16
|
openDelay?: number;
|
|
17
|
+
/** Delay in milliseconds before the popover closes. */
|
|
16
18
|
closeDelay?: number;
|
|
17
19
|
}
|
|
18
20
|
export interface SbbTooltipConfig {
|
|
21
|
+
/** Delay in milliseconds before the tooltip opens. */
|
|
19
22
|
openDelay?: number;
|
|
23
|
+
/** Delay in milliseconds before the tooltip closes. */
|
|
20
24
|
closeDelay?: number;
|
|
25
|
+
/** Delay in milliseconds before the tooltip is automatically closed when is opened by a long press (touch devices). */
|
|
21
26
|
longPressCloseDelay?: number;
|
|
22
27
|
}
|
|
23
28
|
export interface SbbConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;KAChC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;KAChC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uHAAuH;IACvH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,wBAAgB,UAAU,IAAI,SAAS,CAKtC;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAG5D;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,SAAS,EAAE,SAAS,CAAC;CAC1B"}
|
|
@@ -26,6 +26,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
|
|
|
26
26
|
* E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M".
|
|
27
27
|
*/
|
|
28
28
|
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
29
|
+
/** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
|
|
29
30
|
getFirstDayOfWeek(): number;
|
|
30
31
|
/** Calculates the number of days in a month given the year and the month. */
|
|
31
32
|
getNumDaysInMonth(date: Date): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/native-date-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoC,MAAM,mBAAmB,CAAC;AAUlF,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAExB,gBAAgB,GAAE,MAAW;IAKhD,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,wCAAwC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAInC,sCAAsC;IAC/B,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,kDAAkD;IAC3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIvC,yCAAyC;IAClC,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM;IAS9D;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAKlE,iGAAiG;IAC1F,YAAY,IAAI,MAAM,EAAE;IAK/B;;;;OAIG;IACI,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"native-date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/native-date-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoC,MAAM,mBAAmB,CAAC;AAUlF,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAExB,gBAAgB,GAAE,MAAW;IAKhD,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,wCAAwC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAInC,sCAAsC;IAC/B,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIlC,kDAAkD;IAC3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAIvC,yCAAyC;IAClC,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM;IAS9D;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAKlE,iGAAiG;IAC1F,YAAY,IAAI,MAAM,EAAE;IAK/B;;;;OAIG;IACI,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAKtE,+EAA+E;IACxE,iBAAiB,IAAI,MAAM;IAIlC,6EAA6E;IACtE,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAI5C,4BAA4B;IACrB,KAAK,IAAI,IAAI;IAIpB,+FAA+F;IACxF,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAmBlE,gDAAgD;IACzC,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAIxC,uDAAuD;IAChD,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,IAAI;IAI3D,mDAAmD;IAC5C,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAI9B;;;;OAIG;IACI,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIxD;;;;OAIG;IACI,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ1D,yFAAyF;IAClF,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAKtD,8DAA8D;IAC9C,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI;IAahF,+DAA+D;IACxD,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI;IAuC3C,OAAO,IAAI,IAAI;IAI/B;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAId,gEAAgE;IAChE,OAAO,CAAC,uBAAuB;CAShC;AAED,eAAO,MAAM,kBAAkB,mBAA0B,CAAC"}
|
|
@@ -53,7 +53,7 @@ class D extends u {
|
|
|
53
53
|
const e = new Intl.DateTimeFormat(i.current, { weekday: t });
|
|
54
54
|
return this._range(7, (r) => e.format(new Date(2017, 0, r + 1)));
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
/** Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
|
|
57
57
|
getFirstDayOfWeek() {
|
|
58
58
|
return 1;
|
|
59
59
|
}
|
|
@@ -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,EAA8B,MAAM,mBAAmB,CAAC;AAItF,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,
|
|
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,EAA8B,MAAM,mBAAmB,CAAC;AAItF,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,CAqazD,CAAC"}
|
package/core/mixins.js
CHANGED
|
@@ -14,7 +14,7 @@ import { SbbReadonlyMixin as P } from "./mixins/readonly-mixin.js";
|
|
|
14
14
|
import { SbbSelectionPanelMixin as q } from "./mixins/selection-panel-mixin.js";
|
|
15
15
|
import { SbbUpdateSchedulerMixin as H } from "./mixins/update-scheduler-mixin.js";
|
|
16
16
|
import { css as e } from "lit";
|
|
17
|
-
const
|
|
17
|
+
const r = e`:host{--sbb-selection-panel-background: var( --sbb-selection-panel-inner-background, var(--sbb-background-color-1) );--sbb-selection-panel-border-color: var(--sbb-border-color-4-inverted);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: var(--sbb-cursor-pointer);--sbb-selection-panel-suffix-color: var(--sbb-color-3);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);--sbb-selection-panel-subtext-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));display:block;outline:none!important}:host([size=s]){--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs)}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-panel-inner-background, var(--sbb-background-color-3) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-border-color-3);--sbb-selection-panel-border-width: var( --sbb-selection-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: var(--sbb-cursor-default)}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media(forced-colors:active){.sbb-selection-panel:after{content:"";display:block;position:absolute;inset:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;inset:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
|
|
18
18
|
export {
|
|
19
19
|
b as SbbAnimationCompleteMixin,
|
|
20
20
|
a as SbbDisabledInteractiveMixin,
|
|
@@ -34,7 +34,7 @@ export {
|
|
|
34
34
|
q as SbbSelectionPanelMixin,
|
|
35
35
|
H as SbbUpdateSchedulerMixin,
|
|
36
36
|
p as appendAriaElements,
|
|
37
|
-
|
|
37
|
+
r as panelCommonStyle,
|
|
38
38
|
M as radioButtonRegistry,
|
|
39
39
|
u as removeAriaElements
|
|
40
40
|
};
|
package/core/styles/core.scss
CHANGED
|
@@ -37,6 +37,10 @@ $theme: 'standard' !default;
|
|
|
37
37
|
// Overlay
|
|
38
38
|
--sbb-overlay-default-z-index: 1000;
|
|
39
39
|
|
|
40
|
+
// Cursor
|
|
41
|
+
--sbb-cursor-default: default;
|
|
42
|
+
--sbb-cursor-pointer: pointer;
|
|
43
|
+
|
|
40
44
|
// Title
|
|
41
45
|
--sbb-title-font-size-level-1: var(--sbb-font-size-title-1);
|
|
42
46
|
--sbb-title-font-size-level-2: var(--sbb-font-size-title-2);
|
package/core.css
CHANGED
|
@@ -1332,6 +1332,8 @@
|
|
|
1332
1332
|
--sbb-header-height: var(--sbb-spacing-fixed-14x);
|
|
1333
1333
|
--sbb-time-input-max-width: 3.625rem;
|
|
1334
1334
|
--sbb-overlay-default-z-index: 1000;
|
|
1335
|
+
--sbb-cursor-default: default;
|
|
1336
|
+
--sbb-cursor-pointer: pointer;
|
|
1335
1337
|
--sbb-title-font-size-level-1: var(--sbb-font-size-title-1);
|
|
1336
1338
|
--sbb-title-font-size-level-2: var(--sbb-font-size-title-2);
|
|
1337
1339
|
--sbb-title-font-size-level-3: var(--sbb-font-size-title-3);
|