@sbb-esta/lyne-elements 2.1.0 → 2.3.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/accordion.js +6 -6
- package/action-group.js +3 -3
- package/alert/alert-group.js +4 -4
- package/alert/alert.js +9 -9
- package/autocomplete/autocomplete-base-element.d.ts +4 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +4 -4
- package/autocomplete-grid/autocomplete-grid-cell.js +3 -3
- package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
- package/autocomplete-grid/autocomplete-grid-row.js +5 -5
- package/autocomplete.js +26 -20
- package/badge.css +31 -0
- package/breadcrumb/breadcrumb-group.js +5 -5
- package/breadcrumb/breadcrumb.js +19 -19
- package/button/accent-button-link.js +9 -9
- package/button/accent-button-static.js +6 -6
- package/button/accent-button.js +6 -6
- package/button/button-link.js +7 -7
- package/button/button-static.js +7 -7
- package/button/button.js +8 -8
- package/button/common.js +15 -15
- package/button/mini-button-group.js +8 -8
- package/button/secondary-button-link.js +7 -7
- package/button/secondary-button-static.js +7 -7
- package/button/secondary-button.js +3 -3
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static.js +5 -5
- package/button/transparent-button.js +6 -6
- package/calendar.js +1 -1
- package/card/card-badge.js +11 -11
- package/card/card-button.js +5 -5
- package/card/card-link.js +7 -7
- package/card/card.js +3 -3
- package/checkbox/checkbox-panel.js +16 -16
- package/checkbox/checkbox.js +15 -15
- package/checkbox/common.js +3 -3
- package/chip-label.js +3 -3
- package/clock.js +10 -10
- package/container/container.js +6 -6
- package/core/a11y/focus.d.ts.map +1 -1
- package/core/a11y.js +8 -8
- package/core/base-elements/link-base-element.d.ts +2 -0
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements.js +125 -114
- package/core/controllers.js +4 -4
- package/core/datetime.js +6 -6
- package/core/dom/scroll.d.ts +1 -0
- package/core/dom/scroll.d.ts.map +1 -1
- package/core/dom.js +31 -31
- package/core/eventing.js +4 -4
- package/core/i18n/i18n.d.ts +2 -0
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n.js +43 -31
- package/core/images.d.ts.map +1 -1
- package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-mixin.d.ts +3 -0
- package/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/core/mixins.js +342 -248
- package/core/styles/badge.scss +3 -0
- package/core/styles/core.scss +2 -0
- package/core/styles/mixins/badge.scss +26 -1
- package/core/styles/mixins/font-face.scss +12 -12
- package/core/styles/mixins/link.scss +32 -8
- package/core/styles/standard-theme.scss +1 -0
- package/core/testing.js +14 -14
- package/core.css +5 -3
- package/custom-elements.json +7788 -173
- package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/datepicker/datepicker-toggle.js +23 -26
- package/datepicker/datepicker.js +4 -4
- package/development/action-group.js +1 -1
- package/development/alert/alert-group.js +1 -1
- package/development/alert/alert.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +4 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-row.js +1 -1
- package/development/autocomplete.js +15 -2
- package/development/breadcrumb/breadcrumb-group.js +3 -3
- package/development/breadcrumb/breadcrumb.js +5 -2
- package/development/button/common.js +75 -74
- package/development/calendar.js +1 -1
- package/development/card/card-badge.js +1 -1
- package/development/card/card.js +1 -1
- package/development/checkbox/checkbox-panel.js +1 -1
- package/development/chip-label.js +1 -1
- package/development/clock.js +1 -1
- package/development/container/container.js +1 -1
- package/development/core/a11y/focus.d.ts.map +1 -1
- package/development/core/a11y.js +3 -3
- package/development/core/base-elements/link-base-element.d.ts +2 -0
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements.js +22 -5
- package/development/core/controllers.js +1 -1
- package/development/core/dom/scroll.d.ts +1 -0
- package/development/core/dom/scroll.d.ts.map +1 -1
- package/development/core/dom.js +5 -2
- package/development/core/i18n/i18n.d.ts +2 -0
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n.js +15 -1
- package/development/core/images.d.ts.map +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-mixin.d.ts +3 -0
- package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
- package/development/core/mixins.js +159 -22
- package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle.js +13 -6
- package/development/datepicker/datepicker.js +1 -1
- package/development/dialog/dialog-content.js +1 -1
- package/development/dialog/dialog-title.js +1 -1
- package/development/dialog/dialog.js +1 -1
- package/development/expansion-panel/expansion-panel-content.js +1 -1
- package/development/expansion-panel/expansion-panel-header.js +1 -1
- package/development/expansion-panel/expansion-panel.js +1 -1
- package/development/file-selector/common.js +1 -1
- package/development/flip-card/flip-card-details.js +1 -1
- package/development/flip-card/flip-card-summary.js +1 -1
- package/development/footer.js +1 -1
- package/development/form-field/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +5 -2
- package/development/icon.js +1 -1
- package/development/image.js +2 -2
- package/development/journey-header.js +1 -1
- package/development/lead-container.js +1 -1
- package/development/link/common.js +19 -7
- package/development/link-list/common.js +1 -1
- package/development/link-list/link-list-anchor.js +1 -1
- package/development/link-list/link-list.js +1 -1
- package/development/loading-indicator-circle.js +1 -1
- package/development/loading-indicator.js +1 -1
- package/development/map-container.js +1 -1
- package/development/menu/common/menu-action-common.d.ts +3 -0
- package/development/menu/common/menu-action-common.d.ts.map +1 -1
- package/development/menu/common.js +35 -12
- package/development/message.js +1 -1
- package/development/navigation/navigation-section.js +1 -1
- package/development/notification.js +1 -1
- package/development/option/optgroup.js +1 -1
- package/development/option/option.js +1 -1
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay.js +3 -3
- package/development/paginator/paginator.js +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +2 -2
- package/development/radio-button/radio-button-panel.js +1 -1
- package/development/{sbb-tokens-BdGhUJjM.js → sbb-tokens-CSAKTXUi.js} +15 -15
- package/development/screen-reader-only.js +1 -1
- package/development/select/select.d.ts +4 -1
- package/development/select/select.d.ts.map +1 -1
- package/development/select.js +22 -4
- package/development/signet.js +1 -1
- package/development/skiplink-list.js +1 -1
- package/development/slider.js +1 -1
- package/development/stepper/step.js +1 -1
- package/development/tabs/tab-label.js +1 -1
- package/development/tabs/tab.js +1 -1
- package/development/time-input.js +1 -1
- package/development/timetable-occupancy.js +1 -1
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title.js +4 -5
- package/development/toast.js +1 -1
- package/development/toggle/toggle/toggle.d.ts +25 -6
- package/development/toggle/toggle/toggle.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/development/toggle/toggle-option.js +21 -39
- package/development/toggle/toggle.js +58 -40
- package/development/train/train-blocked-passage.js +1 -1
- package/development/train/train-formation.js +1 -1
- package/development/train/train.js +1 -1
- package/development/visual-checkbox.js +1 -1
- package/dialog/dialog-content.js +4 -4
- package/dialog/dialog-title.js +8 -8
- package/dialog/dialog.js +1 -1
- package/divider.js +12 -12
- package/expansion-panel/expansion-panel-content.js +3 -3
- package/expansion-panel/expansion-panel-header.js +1 -1
- package/expansion-panel/expansion-panel.js +1 -1
- package/file-selector/common.js +9 -9
- package/file-selector/file-selector-dropzone.js +5 -5
- package/file-selector/file-selector.js +6 -6
- package/flip-card/flip-card-details.js +7 -7
- package/flip-card/flip-card-summary.js +12 -12
- package/font-characters-extension.css +3 -3
- package/footer.js +4 -4
- package/form-field/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +7 -5
- package/header/header-button.js +5 -5
- package/header/header-link.js +5 -5
- package/icon.js +37 -37
- package/image.js +16 -16
- package/journey-header.js +5 -5
- package/lead-container.js +3 -3
- package/link/block-link-button.js +4 -4
- package/link/block-link-static.js +9 -9
- package/link/block-link.js +4 -4
- package/link/common.js +28 -28
- package/link/link-button.js +7 -7
- package/link/link-static.js +7 -7
- package/link/link.js +4 -4
- package/link-list/common.js +15 -15
- package/link-list/link-list-anchor.js +3 -3
- package/link-list/link-list.js +3 -3
- package/loading-indicator-circle.js +14 -14
- package/loading-indicator.js +3 -3
- package/map-container.js +6 -6
- package/menu/common/menu-action-common.d.ts +3 -0
- package/menu/common/menu-action-common.d.ts.map +1 -1
- package/menu/common.js +34 -30
- package/menu/menu-button.js +8 -8
- package/menu/menu-link.js +6 -6
- package/menu/menu.js +7 -7
- package/message.js +3 -3
- package/navigation/navigation-button.js +4 -4
- package/navigation/navigation-link.js +7 -7
- package/navigation/navigation-list.js +4 -4
- package/navigation/navigation-marker.js +3 -3
- package/navigation/navigation-section.js +1 -1
- package/notification.js +19 -19
- package/option/optgroup.js +14 -14
- package/option/option.js +3 -3
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay.js +14 -14
- package/package.json +6 -2
- package/paginator/common.js +6 -6
- package/paginator/paginator.js +1 -1
- package/popover/popover.js +13 -13
- package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +1 -1
- package/radio-button/radio-button-panel.js +6 -6
- package/{sbb-tokens-Dx20OtVg.js → sbb-tokens-BgDF8jIh.js} +14 -14
- package/screen-reader-only.js +8 -8
- package/select/select.d.ts +4 -1
- package/select/select.d.ts.map +1 -1
- package/select.js +35 -28
- package/signet.js +1 -1
- package/skiplink-list.js +3 -3
- package/slider.js +13 -13
- package/standard-theme.css +37 -3
- package/status.js +3 -3
- package/stepper/step-label.js +4 -4
- package/stepper/step.js +3 -3
- package/table/table-wrapper.js +4 -4
- package/tabs/tab-group.js +24 -24
- package/tabs/tab-label.js +1 -1
- package/tabs/tab.js +4 -4
- package/tag/tag-group.js +7 -7
- package/teaser-product/common.js +5 -5
- package/teaser-product/teaser-product-static.js +2 -2
- package/time-input.js +3 -3
- package/timetable-occupancy-icon.js +3 -3
- package/timetable-occupancy.js +6 -6
- package/title/title-base.d.ts.map +1 -1
- package/title.js +41 -42
- package/toast.js +5 -5
- package/toggle/toggle/toggle.d.ts +25 -6
- package/toggle/toggle/toggle.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.d.ts +2 -6
- package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
- package/toggle/toggle-option.js +44 -52
- package/toggle/toggle.js +103 -83
- package/toggle-check.js +5 -5
- package/train/train-blocked-passage.js +3 -3
- package/train/train-formation.js +1 -1
- package/train/train.js +29 -29
- package/visual-checkbox.js +1 -1
package/divider.js
CHANGED
|
@@ -2,8 +2,8 @@ var v = (t) => {
|
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
4
|
var h = (t, e, i) => e.has(t) || v("Cannot " + i);
|
|
5
|
-
var u = (t, e, i) => (h(t, e, "read from private field"), i ? i.call(t) : e.get(t)), p = (t, e, i) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i),
|
|
6
|
-
import { __esDecorate as
|
|
5
|
+
var u = (t, e, i) => (h(t, e, "read from private field"), i ? i.call(t) : e.get(t)), p = (t, e, i) => e.has(t) ? v("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), _ = (t, e, i, r) => (h(t, e, "write to private field"), r ? r.call(t, i) : e.set(t, i), i);
|
|
6
|
+
import { __esDecorate as f, __runInitializers as n } from "tslib";
|
|
7
7
|
import { css as g, LitElement as x, html as w } from "lit";
|
|
8
8
|
import { customElement as z, property as S } from "lit/decorators.js";
|
|
9
9
|
import { hostAttributes as D } from "./core/decorators.js";
|
|
@@ -13,19 +13,19 @@ let N = (() => {
|
|
|
13
13
|
var s, a;
|
|
14
14
|
let t = [z("sbb-divider"), D({
|
|
15
15
|
role: "separator"
|
|
16
|
-
})], e, i = [], r,
|
|
17
|
-
return a = class extends
|
|
16
|
+
})], e, i = [], r, b = E(x), d, c = [], m = [];
|
|
17
|
+
return a = class extends b {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
|
-
p(this, s,
|
|
21
|
-
|
|
20
|
+
p(this, s, n(this, c, "horizontal"));
|
|
21
|
+
n(this, m);
|
|
22
22
|
}
|
|
23
23
|
/** Orientation property with possible values 'horizontal' | 'vertical'. Defaults to horizontal. */
|
|
24
24
|
get orientation() {
|
|
25
25
|
return u(this, s);
|
|
26
26
|
}
|
|
27
27
|
set orientation(o) {
|
|
28
|
-
|
|
28
|
+
_(this, s, o);
|
|
29
29
|
}
|
|
30
30
|
willUpdate(o) {
|
|
31
31
|
super.willUpdate(o), o.has("orientation") && this.setAttribute("aria-orientation", this.orientation);
|
|
@@ -34,11 +34,11 @@ let N = (() => {
|
|
|
34
34
|
return w` <div class="sbb-divider"></div> `;
|
|
35
35
|
}
|
|
36
36
|
}, s = new WeakMap(), r = a, (() => {
|
|
37
|
-
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} }, metadata: o }, c, m),
|
|
41
|
-
})(), a.styles = k,
|
|
37
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
38
|
+
d = [S({ reflect: !0 })], f(a, null, d, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (l) => "orientation" in l, get: (l) => l.orientation, set: (l, y) => {
|
|
39
|
+
l.orientation = y;
|
|
40
|
+
} }, metadata: o }, c, m), f(null, e = { value: r }, t, { kind: "class", name: r.name, metadata: o }, null, i), r = e.value, o && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
41
|
+
})(), a.styles = k, n(r, i), r;
|
|
42
42
|
})();
|
|
43
43
|
export {
|
|
44
44
|
N as SbbDividerElement
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esDecorate as o, __runInitializers as r } from "tslib";
|
|
2
|
-
import { css as p,
|
|
2
|
+
import { css as p, LitElement as b, html as c } from "lit";
|
|
3
3
|
import { customElement as d } from "lit/decorators.js";
|
|
4
4
|
import { hostAttributes as m } from "../core/decorators.js";
|
|
5
5
|
const x = p`*,:before,:after{box-sizing:border-box}:host{--sbb-expansion-panel-content-padding-inline: var(--sbb-spacing-fixed-6x);--sbb-expansion-panel-content-padding-inline-start: var( --sbb-expansion-panel-content-padding-inline );display:block}:host([data-size=s]){--sbb-expansion-panel-content-padding-inline: var(--sbb-spacing-fixed-5x)}@media (min-width: 22.5rem){:host([data-icon-space]){--sbb-expansion-panel-content-padding-inline-start: calc( var(--sbb-expansion-panel-content-padding-inline) + var(--sbb-expansion-panel-icon-size) + var(--sbb-expansion-panel-title-gap) )}}.sbb-expansion-panel-content{padding-block-end:var(--sbb-spacing-responsive-s);padding-inline:var(--sbb-expansion-panel-content-padding-inline-start) var(--sbb-expansion-panel-content-padding-inline)}::slotted(:is(p,sbb-title):first-child){margin-block-start:0}`;
|
|
@@ -8,10 +8,10 @@ let h = (() => {
|
|
|
8
8
|
let l = [d("sbb-expansion-panel-content"), m({
|
|
9
9
|
role: "region",
|
|
10
10
|
slot: "content"
|
|
11
|
-
})], a, s = [], n, i =
|
|
11
|
+
})], a, s = [], n, i = b;
|
|
12
12
|
return e = class extends i {
|
|
13
13
|
render() {
|
|
14
|
-
return
|
|
14
|
+
return c`
|
|
15
15
|
<div class="sbb-expansion-panel-content">
|
|
16
16
|
<slot></slot>
|
|
17
17
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esDecorate as h, __runInitializers as x } from "tslib";
|
|
2
|
-
import { css as m,
|
|
2
|
+
import { css as m, nothing as g, html as l } from "lit";
|
|
3
3
|
import { customElement as u } from "lit/decorators.js";
|
|
4
4
|
import { SbbButtonBaseElement as v } from "../core/base-elements.js";
|
|
5
5
|
import { SbbSlotStateController as f, SbbMediaMatcherController as _, SbbMediaQueryHover as d } from "../core/controllers.js";
|
|
@@ -6,7 +6,7 @@ var m = (s, i, o) => (U(s, i, "read from private field"), o ? o.call(s) : i.get(
|
|
|
6
6
|
import { __esDecorate as b, __runInitializers as l } from "tslib";
|
|
7
7
|
import { css as B, LitElement as G } from "lit";
|
|
8
8
|
import { customElement as j, property as u } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { unsafeStatic as Z, html as M } from "lit/static-html.js";
|
|
10
10
|
import { forceType as P } from "../core/decorators.js";
|
|
11
11
|
import { isLean as q, isZeroAnimationDuration as F } from "../core/dom.js";
|
|
12
12
|
import { EventEmitter as g } from "../core/eventing.js";
|
package/file-selector/common.js
CHANGED
|
@@ -7,7 +7,7 @@ import { __runInitializers as n, __esDecorate as c } from "tslib";
|
|
|
7
7
|
import { nothing as x, css as O } from "lit";
|
|
8
8
|
import { property as b } from "lit/decorators.js";
|
|
9
9
|
import { ref as V } from "lit/directives/ref.js";
|
|
10
|
-
import {
|
|
10
|
+
import { unsafeStatic as v, html as y } from "lit/static-html.js";
|
|
11
11
|
import { sbbInputModalityDetector as W } from "../core/a11y.js";
|
|
12
12
|
import { SbbLanguageController as H } from "../core/controllers.js";
|
|
13
13
|
import { forceType as z } from "../core/decorators.js";
|
|
@@ -135,10 +135,10 @@ const ge = (s) => (() => {
|
|
|
135
135
|
}
|
|
136
136
|
_renderFileList() {
|
|
137
137
|
const t = this.files.length > 1 ? { WRAPPER: "ul", ELEMENT: "li" } : { WRAPPER: "div", ELEMENT: "span" };
|
|
138
|
-
return
|
|
139
|
-
<${
|
|
140
|
-
${this.files.map((e) =>
|
|
141
|
-
<${
|
|
138
|
+
return y`
|
|
139
|
+
<${v(t.WRAPPER)} class='sbb-file-selector__file-list'>
|
|
140
|
+
${this.files.map((e) => y`
|
|
141
|
+
<${v(t.ELEMENT)} class='sbb-file-selector__file'>
|
|
142
142
|
<span class='sbb-file-selector__file-details'>
|
|
143
143
|
<span class='sbb-file-selector__file-name'>${e.name}</span>
|
|
144
144
|
<span class='sbb-file-selector__file-size'>${this._formatFileSize(e.size)}</span>
|
|
@@ -149,15 +149,15 @@ const ge = (s) => (() => {
|
|
|
149
149
|
@click='${() => this._removeFile(e)}'
|
|
150
150
|
aria-label='${`${X[this.language.current]} - ${e.name}`}'
|
|
151
151
|
></sbb-secondary-button>
|
|
152
|
-
</${
|
|
153
|
-
</${
|
|
152
|
+
</${v(t.ELEMENT)}>`)}
|
|
153
|
+
</${v(t.WRAPPER)}>
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
157
|
const t = this.accessibilityLabel ? `${Y[this.language.current]} - ${this.accessibilityLabel}` : void 0;
|
|
158
|
-
return
|
|
158
|
+
return y`
|
|
159
159
|
<div class="sbb-file-selector">
|
|
160
|
-
${this.renderTemplate(
|
|
160
|
+
${this.renderTemplate(y`<input
|
|
161
161
|
class="sbb-file-selector__visually-hidden"
|
|
162
162
|
type="file"
|
|
163
163
|
?disabled="${this.disabled || this.formDisabled}"
|
|
@@ -2,8 +2,8 @@ var p = (e) => {
|
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
4
|
var m = (e, i, s) => i.has(e) || p("Cannot " + s);
|
|
5
|
-
var g = (e, i, s) => (m(e, i, "read from private field"), s ? s.call(e) : i.get(e)),
|
|
6
|
-
import { __runInitializers as b, __esDecorate as
|
|
5
|
+
var g = (e, i, s) => (m(e, i, "read from private field"), s ? s.call(e) : i.get(e)), _ = (e, i, s) => i.has(e) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), n = (e, i, s, r) => (m(e, i, "write to private field"), r ? r.call(e, s) : i.set(e, s), s);
|
|
6
|
+
import { __runInitializers as b, __esDecorate as u } from "tslib";
|
|
7
7
|
import { css as y, LitElement as z } from "lit";
|
|
8
8
|
import { customElement as x, property as S } from "lit/decorators.js";
|
|
9
9
|
import { ref as D } from "lit/directives/ref.js";
|
|
@@ -21,7 +21,7 @@ let Q = (() => {
|
|
|
21
21
|
return a = class extends c {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
|
-
|
|
24
|
+
_(this, l);
|
|
25
25
|
n(this, l, b(this, f, "")), this._counter = (b(this, h), 0);
|
|
26
26
|
}
|
|
27
27
|
/** The title displayed in `dropzone` variant. */
|
|
@@ -85,9 +85,9 @@ let Q = (() => {
|
|
|
85
85
|
}
|
|
86
86
|
}, l = new WeakMap(), r = a, (() => {
|
|
87
87
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
|
|
88
|
-
d = [E(), S({ attribute: "title-content" })],
|
|
88
|
+
d = [E(), S({ attribute: "title-content" })], u(a, null, d, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (o) => "titleContent" in o, get: (o) => o.titleContent, set: (o, v) => {
|
|
89
89
|
o.titleContent = v;
|
|
90
|
-
} }, metadata: t }, f, h),
|
|
90
|
+
} }, metadata: t }, f, h), u(null, i = { value: r }, e, { kind: "class", name: r.name, metadata: t }, null, s), r = i.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
91
91
|
})(), a.styles = [T, w], a.events = {
|
|
92
92
|
fileChangedEvent: "fileChanged"
|
|
93
93
|
}, b(r, s), r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as m, __runInitializers as n } from "tslib";
|
|
2
2
|
import { LitElement as c } from "lit";
|
|
3
3
|
import { customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { ref as u } from "lit/directives/ref.js";
|
|
@@ -11,7 +11,7 @@ import "../button/secondary-button-static.js";
|
|
|
11
11
|
import "../icon.js";
|
|
12
12
|
let j = (() => {
|
|
13
13
|
var e;
|
|
14
|
-
let
|
|
14
|
+
let o = [b("sbb-file-selector"), f()], i, a = [], t, r = S(c);
|
|
15
15
|
return e = class extends r {
|
|
16
16
|
renderTemplate(l) {
|
|
17
17
|
return d`
|
|
@@ -21,8 +21,8 @@ let j = (() => {
|
|
|
21
21
|
size=${this.size}
|
|
22
22
|
icon-name="folder-open-small"
|
|
23
23
|
?disabled=${this.disabled || this.formDisabled}
|
|
24
|
-
${u((
|
|
25
|
-
this.loadButton =
|
|
24
|
+
${u((s) => {
|
|
25
|
+
this.loadButton = s;
|
|
26
26
|
})}
|
|
27
27
|
>
|
|
28
28
|
${p[this.language.current]}
|
|
@@ -34,10 +34,10 @@ let j = (() => {
|
|
|
34
34
|
}
|
|
35
35
|
}, t = e, (() => {
|
|
36
36
|
const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
37
|
-
|
|
37
|
+
m(null, i = { value: t }, o, { kind: "class", name: t.name, metadata: l }, null, a), t = i.value, l && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
|
|
38
38
|
})(), e.styles = h, e.events = {
|
|
39
39
|
fileChangedEvent: "fileChanged"
|
|
40
|
-
},
|
|
40
|
+
}, n(t, a), t;
|
|
41
41
|
})();
|
|
42
42
|
export {
|
|
43
43
|
j as SbbFileSelectorElement
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esDecorate as n, __runInitializers as b } from "tslib";
|
|
2
2
|
import { MutationController as c } from "@lit-labs/observers/mutation-controller.js";
|
|
3
|
-
import { css as p,
|
|
3
|
+
import { css as p, LitElement as f, html as m } from "lit";
|
|
4
4
|
import { customElement as u } from "lit/decorators.js";
|
|
5
5
|
import { IS_FOCUSABLE_QUERY as v } from "../core/a11y.js";
|
|
6
6
|
import { hostAttributes as y } from "../core/decorators.js";
|
|
@@ -9,7 +9,7 @@ let E = (() => {
|
|
|
9
9
|
var a;
|
|
10
10
|
let d = [u("sbb-flip-card-details"), y({
|
|
11
11
|
slot: "details"
|
|
12
|
-
})], i, r = [], t, l =
|
|
12
|
+
})], i, r = [], t, l = f;
|
|
13
13
|
return a = class extends l {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(), new c(this, {
|
|
@@ -22,11 +22,11 @@ let E = (() => {
|
|
|
22
22
|
}
|
|
23
23
|
_checkForSlottedActions() {
|
|
24
24
|
var o;
|
|
25
|
-
const
|
|
26
|
-
Array.from(((o = this.querySelectorAll) == null ? void 0 : o.call(this, v)) ?? []).filter((
|
|
25
|
+
const s = "data-card-focusable";
|
|
26
|
+
Array.from(((o = this.querySelectorAll) == null ? void 0 : o.call(this, v)) ?? []).filter((e) => !e.hasAttribute(s)).forEach((e) => e.setAttribute(s, ""));
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return
|
|
29
|
+
return m`
|
|
30
30
|
<div class="sbb-flip-card-details--wrapper">
|
|
31
31
|
<div class="sbb-flip-card-details">
|
|
32
32
|
<slot></slot>
|
|
@@ -35,8 +35,8 @@ let E = (() => {
|
|
|
35
35
|
`;
|
|
36
36
|
}
|
|
37
37
|
}, t = a, (() => {
|
|
38
|
-
const
|
|
39
|
-
n(null, i = { value: t }, d, { kind: "class", name: t.name, metadata:
|
|
38
|
+
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
39
|
+
n(null, i = { value: t }, d, { kind: "class", name: t.name, metadata: s }, null, r), t = i.value, s && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
|
|
40
40
|
})(), a.styles = h, b(t, r), t;
|
|
41
41
|
})();
|
|
42
42
|
export {
|
|
@@ -4,34 +4,34 @@ var c = (a) => {
|
|
|
4
4
|
var u = (a, e, t) => e.has(a) || c("Cannot " + t);
|
|
5
5
|
var f = (a, e, t) => (u(a, e, "read from private field"), t ? t.call(a) : e.get(a)), h = (a, e, t) => e.has(a) ? c("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), y = (a, e, t, i) => (u(a, e, "write to private field"), i ? i.call(a, t) : e.set(a, t), t);
|
|
6
6
|
import { __esDecorate as v, __runInitializers as o } from "tslib";
|
|
7
|
-
import { css as w,
|
|
7
|
+
import { css as w, LitElement as _, html as A } from "lit";
|
|
8
8
|
import { customElement as x, property as S } from "lit/decorators.js";
|
|
9
9
|
import { hostAttributes as z } from "../core/decorators.js";
|
|
10
10
|
const E = w`*,:before,:after{box-sizing:border-box}:host{--sbb-flip-card-summary-opacity: 1;--sbb-flip-card-summary-pointer-events: all;display:contents}.sbb-flip-card-summary{display:grid;min-height:var(--sbb-flip-card-min-height);pointer-events:var(--sbb-flip-card-summary-pointer-events);opacity:var(--sbb-flip-card-summary-opacity);border-radius:var(--sbb-flip-card-border-radius);overflow:hidden;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;transition:all var(--sbb-flip-card-summary-transition-duration) ease-out;transition-delay:var(--sbb-flip-card-summary-transition-delay)}@media (min-width: 37.5rem){:host([image-alignment=after]) .sbb-flip-card-summary{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}}@media (min-width: 52.5rem){:host([image-alignment=after]) .sbb-flip-card-summary{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}}::slotted(sbb-title){padding-inline:var(--sbb-spacing-responsive-s);padding-block:var(--sbb-spacing-responsive-s) var(--sbb-spacing-responsive-xs);margin:0;grid-area:1/1/2/2}@media (min-width: 37.5rem){:host([image-alignment=after]) ::slotted(sbb-title){grid-area:1/1/2/3}}@media (min-width: 52.5rem){:host([image-alignment=after]) ::slotted(sbb-title){grid-area:1/1/2/2}}::slotted(*:not([slot=image])){transform:translateY(var(--sbb-flip-card-translate-title-y-hover, 0rem));transition:transform var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x)) var(--sbb-animation-easing)}.sbb-flip-card-summary--image-wrapper{grid-area:2/1/3/2}@media (min-width: 37.5rem){:host([image-alignment=after]) .sbb-flip-card-summary--image-wrapper{grid-area:1/3/2/4}}@media (min-width: 52.5rem){:host([image-alignment=after]) .sbb-flip-card-summary--image-wrapper{grid-area:1/2/2/3}}::slotted([slot=image]){width:100%;height:100%}`;
|
|
11
11
|
let C = (() => {
|
|
12
|
-
var
|
|
12
|
+
var l, s;
|
|
13
13
|
let a = [x("sbb-flip-card-summary"), z({
|
|
14
14
|
slot: "summary"
|
|
15
|
-
})], e, t = [], i, d =
|
|
15
|
+
})], e, t = [], i, d = _, b, g = [], p = [];
|
|
16
16
|
return s = class extends d {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
h(this,
|
|
19
|
+
h(this, l, o(this, g, "after"));
|
|
20
20
|
o(this, p);
|
|
21
21
|
}
|
|
22
22
|
/** The position where to render the image. */
|
|
23
23
|
get imageAlignment() {
|
|
24
|
-
return f(this,
|
|
24
|
+
return f(this, l);
|
|
25
25
|
}
|
|
26
26
|
set imageAlignment(r) {
|
|
27
|
-
y(this,
|
|
27
|
+
y(this, l, r);
|
|
28
28
|
}
|
|
29
29
|
willUpdate(r) {
|
|
30
|
-
var m,
|
|
31
|
-
super.willUpdate(r), r.has("imageAlignment") && ((
|
|
30
|
+
var m, n;
|
|
31
|
+
super.willUpdate(r), r.has("imageAlignment") && ((n = (m = this.closest) == null ? void 0 : m.call(this, "sbb-flip-card")) == null || n.setAttribute("data-image-alignment", this.imageAlignment));
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return
|
|
34
|
+
return A`
|
|
35
35
|
<div class="sbb-flip-card-summary">
|
|
36
36
|
<slot></slot>
|
|
37
37
|
<div class="sbb-flip-card-summary--image-wrapper">
|
|
@@ -40,10 +40,10 @@ let C = (() => {
|
|
|
40
40
|
</div>
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, l = new WeakMap(), i = s, (() => {
|
|
44
44
|
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(d[Symbol.metadata] ?? null) : void 0;
|
|
45
|
-
b = [S({ attribute: "image-alignment", reflect: !0 })], v(s, null, b, { kind: "accessor", name: "imageAlignment", static: !1, private: !1, access: { has: (m) => "imageAlignment" in m, get: (m) => m.imageAlignment, set: (m,
|
|
46
|
-
m.imageAlignment =
|
|
45
|
+
b = [S({ attribute: "image-alignment", reflect: !0 })], v(s, null, b, { kind: "accessor", name: "imageAlignment", static: !1, private: !1, access: { has: (m) => "imageAlignment" in m, get: (m) => m.imageAlignment, set: (m, n) => {
|
|
46
|
+
m.imageAlignment = n;
|
|
47
47
|
} }, metadata: r }, g, p), v(null, e = { value: i }, a, { kind: "class", name: i.name, metadata: r }, null, t), i = e.value, r && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
48
48
|
})(), s.styles = E, o(i, t), i;
|
|
49
49
|
})();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: SBB;
|
|
3
|
-
src: url("https://cdn.app.sbb.ch/fonts/
|
|
3
|
+
src: url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Roman.woff2") format("woff2"), url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Roman.woff") format("woff");
|
|
4
4
|
font-display: fallback;
|
|
5
5
|
font-weight: 400;
|
|
6
6
|
}
|
|
7
7
|
@font-face {
|
|
8
8
|
font-family: SBB;
|
|
9
|
-
src: url("https://cdn.app.sbb.ch/fonts/
|
|
9
|
+
src: url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Bold.woff2") format("woff2"), url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Bold.woff") format("woff");
|
|
10
10
|
font-display: swap;
|
|
11
11
|
font-weight: 700;
|
|
12
12
|
}
|
|
13
13
|
@font-face {
|
|
14
14
|
font-family: SBB;
|
|
15
|
-
src: url("https://cdn.app.sbb.ch/fonts/
|
|
15
|
+
src: url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Light.woff2") format("woff2"), url("https://cdn.app.sbb.ch/fonts/v1_8_1_full/SBBWeb-Light.woff") format("woff");
|
|
16
16
|
font-display: swap;
|
|
17
17
|
font-weight: 300;
|
|
18
18
|
}
|
package/footer.js
CHANGED
|
@@ -6,7 +6,7 @@ var h = (i, s, a) => (D(i, s, "read from private field"), a ? a.call(i) : s.get(
|
|
|
6
6
|
import { __esDecorate as u, __runInitializers as r } from "tslib";
|
|
7
7
|
import { css as O, LitElement as B, nothing as C } from "lit";
|
|
8
8
|
import { customElement as F, property as f } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { unsafeStatic as A, html as M } from "lit/static-html.js";
|
|
10
10
|
import { forceType as N } from "./core/decorators.js";
|
|
11
11
|
import { SbbNegativeMixin as G } from "./core/mixins.js";
|
|
12
12
|
const P = O`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-footer-gap-horizontal: var(--sbb-grid-base-gutter-responsive);--sbb-footer-gap-vertical: var(--sbb-spacing-responsive-l);--sbb-footer-background-color: var(--sbb-color-milk);--sbb-footer-clock-width: 4.75rem;--sbb-footer-color: var(--sbb-color-granite);--sbb-link-text-decoration: none}@media (min-width: 37.5rem){:host{--sbb-footer-clock-width: 7rem}}:host([negative]){--sbb-footer-background-color: var(--sbb-color-charcoal);--sbb-footer-color: var(--sbb-color-white);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-footer{--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);color:var(--sbb-footer-color);padding-block:var(--sbb-spacing-responsive-l);background-color:var(--sbb-footer-background-color)}@media (forced-colors: active){.sbb-footer{border-block-start:var(--sbb-border-width-1x) solid CanvasText}}:host(:not([expanded])) .sbb-footer-wrapper{padding-inline:var(--sbb-layout-base-offset-responsive);margin-inline:auto;width:100%}@media (min-width: 90rem){:host(:not([expanded])) .sbb-footer-wrapper{max-width:calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive))}}:host([expanded]) .sbb-footer-wrapper{padding-inline:var(--sbb-spacing-responsive-xxs)}.sbb-footer__title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}::slotted(.sbb-link-list-button-group){display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-6x);align-items:flex-start}:host([variant=clock-columns]) slot{display:grid;grid-template-columns:auto;grid-template-rows:auto;column-gap:var(--sbb-footer-gap-horizontal)}@media (min-width: 37.5rem){:host([variant=clock-columns]) slot{grid-template-columns:calc(50% - var(--sbb-footer-gap-horizontal) / 2)}}@media (min-width: 80rem){:host([variant=clock-columns]) slot{max-width:var(--sbb-footer-content-max-width);margin-inline:auto;grid-template-columns:repeat(4,1fr)}}:host([variant=clock-columns]) ::slotted(*:not(:last-child,sbb-divider)){margin-block-end:var(--sbb-footer-gap-vertical)}:host([variant=clock-columns]) ::slotted(sbb-clock){width:var(--sbb-footer-clock-width);grid-row:1}@media (min-width: 37.5rem){:host([variant=clock-columns]) ::slotted(sbb-clock){align-self:start;grid-row:2}}@media (min-width: 80rem){:host([variant=clock-columns]) ::slotted(sbb-clock){grid-row:1;grid-column:4/5;justify-self:end}}:host([variant=clock-columns]) ::slotted(sbb-divider){margin-block:calc(var(--sbb-spacing-responsive-xl) - var(--sbb-footer-gap-vertical)) var(--sbb-spacing-responsive-s)}@media (min-width: 37.5rem){:host([variant=clock-columns]) ::slotted(sbb-divider){grid-row:3;grid-column:1/4;width:100%}}@media (min-width: 80rem){:host([variant=clock-columns]) ::slotted(sbb-divider){grid-row:2}}@media (min-width: 37.5rem){:host([variant=clock-columns]) ::slotted(:nth-child(-n+2)){grid-row:1}:host([variant=clock-columns]) ::slotted(:nth-child(3)),:host([variant=clock-columns]) ::slotted(:nth-child(4)){grid-row:2}:host([variant=clock-columns]) ::slotted(*:last-child){grid-row:4}}@media (min-width: 64rem){:host([variant=clock-columns]) ::slotted(*:last-child){grid-column:1/4}}@media (min-width: 80rem){:host([variant=clock-columns]) ::slotted(:nth-child(-n+4)){grid-row:1}:host([variant=clock-columns]) ::slotted(*:last-child){grid-row:3}:host([variant=clock-columns]) ::slotted(sbb-divider),:host([variant=clock-columns]) ::slotted(*:last-child){grid-column:1/5}}`;
|
|
@@ -58,9 +58,9 @@ let W = (() => {
|
|
|
58
58
|
p(this, m, e);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
const e = `h${this.accessibilityTitleLevel}`, t =
|
|
62
|
-
>${this.accessibilityTitle}</${
|
|
63
|
-
return
|
|
61
|
+
const e = `h${this.accessibilityTitleLevel}`, t = M`<${A(e)} class="sbb-footer__title"
|
|
62
|
+
>${this.accessibilityTitle}</${A(e)}>`;
|
|
63
|
+
return M`
|
|
64
64
|
<footer class="sbb-footer">
|
|
65
65
|
<div class="sbb-footer-wrapper">
|
|
66
66
|
${this.accessibilityTitle ? t : C}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/elements/form-field/form-field/form-field.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAcb,OAAO,eAAe,CAAC;;AAOvB;;;;;;;;GAQG;AACH,qBAGM,mBAAoB,SAAQ,wBAA+C;IAC/E,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAmC;IAEjF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAItC;IAEF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAA2C;IAElF,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAKnD;IAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAQhD;IAEF;;;;OAIG;IACH,SACgB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAU;IAExD,+CAA+C;IAC/C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAwB;IAE1F,0DAA0D;IAC1D,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C;;+EAE2E;IAC3E,SAA6C,KAAK,EAAE,SAAS,GAAG,UAAU,CAAa;IAEvF,wFAAwF;IACxF,SAEgB,WAAW,EAAE,OAAO,CAAS;IAE7C,4FAA4F;IAC5F,SAEgB,aAAa,EAAE,OAAO,CAAS;IAE/C,qDAAqD;IAC5C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEzD,oEAAoE;IACpE,OAAO,CAAC,6BAA6B,CAAC,CAAgB;IAEtD,8CAA8C;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkE;IAElG,+CAA+C;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAEpD,iCAAiC;IACjC,IAAW,YAAY,IAAI,gBAAgB,GAAG,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAExF;IAED,OAAO,CAAC,SAAS,CAAmC;IAEpD;;OAEG;IACH,OAAO,CAAC,2BAA2B,CAM1B;IAET,OAAO,CAAC,qBAAqB,CAAyB;IAEtC,iBAAiB,IAAI,IAAI;cAMtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5D,oBAAoB,IAAI,IAAI;IAS5C,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,kBAAkB;IAW1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAkC1B,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,sBAAsB;
|
|
1
|
+
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/elements/form-field/form-field/form-field.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAcb,OAAO,eAAe,CAAC;;AAOvB;;;;;;;;GAQG;AACH,qBAGM,mBAAoB,SAAQ,wBAA+C;IAC/E,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAmC;IAEjF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAItC;IAEF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAA2C;IAElF,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAKnD;IAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAQhD;IAEF;;;;OAIG;IACH,SACgB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAU;IAExD,+CAA+C;IAC/C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAwB;IAE1F,0DAA0D;IAC1D,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C;;+EAE2E;IAC3E,SAA6C,KAAK,EAAE,SAAS,GAAG,UAAU,CAAa;IAEvF,wFAAwF;IACxF,SAEgB,WAAW,EAAE,OAAO,CAAS;IAE7C,4FAA4F;IAC5F,SAEgB,aAAa,EAAE,OAAO,CAAS;IAE/C,qDAAqD;IAC5C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEzD,oEAAoE;IACpE,OAAO,CAAC,6BAA6B,CAAC,CAAgB;IAEtD,8CAA8C;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkE;IAElG,+CAA+C;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAEpD,iCAAiC;IACjC,IAAW,YAAY,IAAI,gBAAgB,GAAG,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAExF;IAED,OAAO,CAAC,SAAS,CAAmC;IAEpD;;OAEG;IACH,OAAO,CAAC,2BAA2B,CAM1B;IAET,OAAO,CAAC,qBAAqB,CAAyB;IAEtC,iBAAiB,IAAI,IAAI;cAMtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5D,oBAAoB,IAAI,IAAI;IAS5C,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,kBAAkB;IAW1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAkC1B,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,sBAAsB;IA+E9B,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,eAAe;IAoBvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,qBAAqB;IAiB7B,qFAAqF;IAC9E,KAAK,IAAI,IAAI;IAIpB,4FAA4F;IACrF,KAAK,IAAI,IAAI;IAQpB,OAAO,CAAC,aAAa;cAMF,MAAM,IAAI,cAAc;CAmC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,mBAAmB,CAAC;KACvC;CACF"}
|
package/form-field/form-field.js
CHANGED
|
@@ -4,7 +4,7 @@ var ae = (o) => {
|
|
|
4
4
|
var be = (o, a, b) => a.has(o) || ae("Cannot " + b);
|
|
5
5
|
var n = (o, a, b) => (be(o, a, "read from private field"), b ? b.call(o) : a.get(o)), d = (o, a, b) => a.has(o) ? ae("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(o) : a.set(o, b), i = (o, a, b, f) => (be(o, a, "write to private field"), f ? f.call(o, b) : a.set(o, b), b);
|
|
6
6
|
import { __runInitializers as s, __esDecorate as c } from "tslib";
|
|
7
|
-
import { css as fe, LitElement as pe, isServer as he,
|
|
7
|
+
import { css as fe, LitElement as pe, isServer as he, nothing as ne, html as E } from "lit";
|
|
8
8
|
import { customElement as me, property as h, state as L } from "lit/decorators.js";
|
|
9
9
|
import { sbbInputModalityDetector as ue } from "../core/a11y.js";
|
|
10
10
|
import { SbbLanguageController as _e } from "../core/controllers.js";
|
|
@@ -18,7 +18,7 @@ let de = 0, Ae = 0;
|
|
|
18
18
|
const S = /* @__PURE__ */ new WeakMap();
|
|
19
19
|
let Me = (() => {
|
|
20
20
|
var m, u, _, g, v, x, y, w, k, z, l;
|
|
21
|
-
let o = [me("sbb-form-field"), ge()], a, b = [], f, C = ke(ze(pe)), N, O = [],
|
|
21
|
+
let o = [me("sbb-form-field"), ge()], a, b = [], f, C = ke(ze(pe)), N, O = [], D = [], T, F = [], U = [], $, B = [], M = [], V, j = [], H = [], P, R = [], q = [], G, W = [], Y = [], J, K = [], Q = [], X, Z = [], ee = [], te, re = [], ie = [], se, oe = [], le = [];
|
|
22
22
|
return l = class extends C {
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments);
|
|
@@ -49,7 +49,7 @@ let Me = (() => {
|
|
|
49
49
|
"tel",
|
|
50
50
|
"text",
|
|
51
51
|
"url"
|
|
52
|
-
], i(this, m, s(this, O, "none")), i(this, u, (s(this,
|
|
52
|
+
], i(this, m, s(this, O, "none")), i(this, u, (s(this, D), s(this, F, !1))), i(this, _, (s(this, U), s(this, B, ve() ? "s" : "m"))), i(this, g, (s(this, M), s(this, j, !1))), i(this, v, (s(this, H), s(this, R, "default"))), i(this, x, (s(this, q), s(this, W, !1))), i(this, y, (s(this, Y), s(this, K, !1))), i(this, w, (s(this, Q), s(this, Z, []))), this._originalInputAriaDescribedby = s(this, ee), i(this, k, s(this, re, void 0)), i(this, z, (s(this, ie), s(this, oe, void 0))), this._language = (s(this, le), new _e(this)), this._formFieldAttributeObserver = he ? null : new MutationObserver((e) => {
|
|
53
53
|
e.some((t) => t.type === "attributes") && this._readInputState();
|
|
54
54
|
}), this._inputAbortController = new AbortController();
|
|
55
55
|
}
|
|
@@ -189,6 +189,8 @@ let Me = (() => {
|
|
|
189
189
|
signal: this._inputAbortController.signal
|
|
190
190
|
}), this._input.addEventListener("blur", () => this._checkAndUpdateInputEmpty(), {
|
|
191
191
|
signal: this._inputAbortController.signal
|
|
192
|
+
}), this._input.addEventListener("invalid", (r) => r.preventDefault(), {
|
|
193
|
+
signal: this._inputAbortController.signal
|
|
192
194
|
});
|
|
193
195
|
let e = this._input;
|
|
194
196
|
if (this._input.localName === "input")
|
|
@@ -322,9 +324,9 @@ let Me = (() => {
|
|
|
322
324
|
}
|
|
323
325
|
}, m = new WeakMap(), u = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), v = new WeakMap(), x = new WeakMap(), y = new WeakMap(), w = new WeakMap(), k = new WeakMap(), z = new WeakMap(), f = l, (() => {
|
|
324
326
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(C[Symbol.metadata] ?? null) : void 0;
|
|
325
|
-
N = [h({ attribute: "error-space", reflect: !0 })],
|
|
327
|
+
N = [h({ attribute: "error-space", reflect: !0 })], T = [A(), h({ type: Boolean })], $ = [h({ reflect: !0 })], V = [A(), h({ reflect: !0, type: Boolean })], P = [h({ reflect: !0 })], G = [A(), h({ attribute: "hidden-label", reflect: !0, type: Boolean })], J = [A(), h({ attribute: "floating-label", reflect: !0, type: Boolean })], X = [L()], te = [L()], se = [L()], c(l, null, N, { kind: "accessor", name: "errorSpace", static: !1, private: !1, access: { has: (t) => "errorSpace" in t, get: (t) => t.errorSpace, set: (t, r) => {
|
|
326
328
|
t.errorSpace = r;
|
|
327
|
-
} }, metadata: e }, O,
|
|
329
|
+
} }, metadata: e }, O, D), c(l, null, T, { kind: "accessor", name: "optional", static: !1, private: !1, access: { has: (t) => "optional" in t, get: (t) => t.optional, set: (t, r) => {
|
|
328
330
|
t.optional = r;
|
|
329
331
|
} }, metadata: e }, F, U), c(l, null, $, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, r) => {
|
|
330
332
|
t.size = r;
|
package/header/header-button.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as m, __runInitializers as n } from "tslib";
|
|
2
2
|
import { customElement as i } from "lit/decorators.js";
|
|
3
3
|
import { SbbButtonBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbHeaderActionCommonElementMixin as u } from "./common.js";
|
|
5
5
|
let p = (() => {
|
|
6
6
|
var t;
|
|
7
|
-
let
|
|
8
|
-
return t = class extends
|
|
7
|
+
let s = [i("sbb-header-button")], l, r = [], e, o = u(c);
|
|
8
|
+
return t = class extends o {
|
|
9
9
|
}, e = t, (() => {
|
|
10
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
11
|
-
|
|
10
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
11
|
+
m(null, l = { value: e }, s, { kind: "class", name: e.name, metadata: a }, null, r), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), n(e, r);
|
|
12
12
|
})(), e;
|
|
13
13
|
})();
|
|
14
14
|
export {
|
package/header/header-link.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
1
|
+
import { __esDecorate as m, __runInitializers as n } from "tslib";
|
|
2
2
|
import { customElement as o } from "lit/decorators.js";
|
|
3
3
|
import { SbbLinkBaseElement as c } from "../core/base-elements.js";
|
|
4
4
|
import { SbbHeaderActionCommonElementMixin as b } from "./common.js";
|
|
5
5
|
let p = (() => {
|
|
6
6
|
var t;
|
|
7
|
-
let
|
|
8
|
-
return t = class extends
|
|
7
|
+
let s = [o("sbb-header-link")], l, r = [], e, i = b(c);
|
|
8
|
+
return t = class extends i {
|
|
9
9
|
}, e = t, (() => {
|
|
10
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
11
|
-
|
|
10
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
11
|
+
m(null, l = { value: e }, s, { kind: "class", name: e.name, metadata: a }, null, r), e = l.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a }), n(e, r);
|
|
12
12
|
})(), e;
|
|
13
13
|
})();
|
|
14
14
|
export {
|