@sbb-esta/lyne-elements 3.5.0 → 3.6.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/button/common.js +1 -1
- package/button.js +1 -1
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +66 -62
- package/core/styles/core.scss +3 -3
- package/core.css +38 -24
- package/custom-elements.json +42 -42
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +7 -2
- package/development/dialog/dialog/dialog.component.js +2 -2
- package/development/file-selector/common.js +1 -1
- package/development/{file-selector-common-BxXdRZxt.js → file-selector-common-B4I8rwJE.js} +3 -3
- package/development/file-selector.js +1 -1
- package/development/form-field/form-field/form-field.component.js +28 -42
- package/development/header/header-environment/header-environment.component.js +6 -6
- package/development/notification/notification.component.js +2 -2
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -2
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-hZiiLJDY.js → radio-button-common-BRyEhlYf.js} +6 -2
- package/development/radio-button.js +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +3 -3
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +3 -3
- package/development/title/title-base.d.ts +1 -1
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title/title-base.js +2 -2
- package/development/title/title.component.d.ts +3 -1
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +30 -4
- package/development/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/development/train/train-formation/train-formation.component.js +6 -4
- package/development/{transparent-button-Dun6bh2G.js → transparent-button-COe-YB_U.js} +2 -2
- package/form-field/form-field/form-field.component.js +1 -1
- package/notification/notification.component.js +1 -1
- package/package.json +1 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +10 -9
- package/radio-button/common.js +1 -1
- package/radio-button-common-DzALx3X7.js +5 -0
- package/radio-button.js +1 -1
- package/selection-action-panel/selection-action-panel.component.js +3 -3
- package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/standard-theme.css +38 -24
- package/title/title-base.d.ts +1 -1
- package/title/title-base.d.ts.map +1 -1
- package/title/title-base.js +1 -1
- package/title/title.component.d.ts +3 -1
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +34 -15
- package/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/train/train-formation/train-formation.component.js +19 -17
- package/{transparent-button-rf30m88X.js → transparent-button-xudJxob_.js} +1 -1
- package/radio-button-common-DJKWrKor.js +0 -5
package/button/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin as n } from "./common/button-common.js";
|
|
2
|
-
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-
|
|
2
|
+
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-xudJxob_.js";
|
|
3
3
|
export {
|
|
4
4
|
n as SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
package/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SbbSecondaryButtonStaticElement as T } from "./button/secondary-button-
|
|
|
13
13
|
import { SbbAccentButtonStaticElement as C } from "./button/accent-button-static/accent-button-static.component.js";
|
|
14
14
|
import { SbbTransparentButtonStaticElement as P } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
15
15
|
import { SbbButtonCommonElementMixin as h } from "./button/common/button-common.js";
|
|
16
|
-
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-
|
|
16
|
+
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-xudJxob_.js";
|
|
17
17
|
export {
|
|
18
18
|
m as SbbAccentButtonElement,
|
|
19
19
|
s as SbbAccentButtonLinkElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,8BA2C1D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isServer as
|
|
2
|
-
const
|
|
1
|
+
import { isServer as E } from "lit";
|
|
2
|
+
const g = E || !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
super(), this._host = e, this._host.addController(this);
|
|
5
5
|
}
|
|
@@ -19,40 +19,40 @@ const E = !g && !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
|
19
19
|
this._host.toggleAttribute(`state--${e}`, a);
|
|
20
20
|
}
|
|
21
21
|
} : null;
|
|
22
|
-
if (!
|
|
23
|
-
let
|
|
24
|
-
const e = (
|
|
22
|
+
if (!E) {
|
|
23
|
+
let h = 0;
|
|
24
|
+
const e = (r) => r.shadowRoot?.host ?? (r instanceof Element ? r : (() => {
|
|
25
25
|
throw new Error("Unable to resolve related element! This should never happen.");
|
|
26
|
-
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (
|
|
26
|
+
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (r, d, m) => {
|
|
27
27
|
const i = m[Element.name] ?? m[ElementInternals.name];
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
28
|
+
r.setAttribute(d, i.id ||= `aria-ref-${h++}`);
|
|
29
|
+
}, u = (r, d, m) => {
|
|
30
|
+
r.setAttribute(d, Object.values(m).reduce((i, l) => i.concat(l)).filter((i, l, t) => t.indexOf(i) === l).map((i) => i.id || (i.id = `aria-ref-${h++}`)).join(" "));
|
|
31
31
|
};
|
|
32
|
-
for (const
|
|
33
|
-
const
|
|
34
|
-
if (!("ariaActiveDescendantElement" in
|
|
32
|
+
for (const r of [ElementInternals, Element]) {
|
|
33
|
+
const d = r.prototype;
|
|
34
|
+
if (!("ariaActiveDescendantElement" in d)) {
|
|
35
35
|
const m = "aria-activedescendant", i = /* @__PURE__ */ new WeakMap();
|
|
36
|
-
Object.defineProperty(
|
|
36
|
+
Object.defineProperty(d, "ariaActiveDescendantElement", {
|
|
37
37
|
enumerable: !0,
|
|
38
38
|
configurable: !0,
|
|
39
39
|
get() {
|
|
40
|
-
const
|
|
41
|
-
return t ?
|
|
40
|
+
const l = e(this), t = l.getAttribute(m)?.split(/\s+/)[0] ?? null;
|
|
41
|
+
return t ? l.getRootNode().getElementById?.(t) ?? null : null;
|
|
42
42
|
},
|
|
43
|
-
set(
|
|
44
|
-
if (
|
|
45
|
-
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${
|
|
46
|
-
const t = e(this),
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
else if (
|
|
50
|
-
|
|
43
|
+
set(l) {
|
|
44
|
+
if (l !== null && !(l instanceof Element))
|
|
45
|
+
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
46
|
+
const t = e(this), n = i.get(t);
|
|
47
|
+
if (n?.observer?.disconnect(), l === null)
|
|
48
|
+
n && (delete n.elements[r.name], Object.keys(n).length ? n.observer.observe(Object.values(n.elements)[0], a) : (i.delete(t), t.removeAttribute(m)));
|
|
49
|
+
else if (n)
|
|
50
|
+
n.elements[r.name] = l, c(t, m, n.elements), Object.values(n.elements).forEach((s) => n.observer.observe(s, a));
|
|
51
51
|
else {
|
|
52
|
-
const
|
|
53
|
-
c(t, m,
|
|
54
|
-
const
|
|
55
|
-
|
|
52
|
+
const s = { [r.name]: l };
|
|
53
|
+
c(t, m, s);
|
|
54
|
+
const o = new MutationObserver(() => c(t, m, s));
|
|
55
|
+
o.observe(l, a), i.set(t, { elements: s, observer: o });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -65,63 +65,67 @@ if (!g) {
|
|
|
65
65
|
"ariaLabelledByElements",
|
|
66
66
|
"ariaOwnsElements"
|
|
67
67
|
])
|
|
68
|
-
if (!(m in
|
|
69
|
-
const i = /* @__PURE__ */ new WeakMap(),
|
|
70
|
-
Object.defineProperty(
|
|
68
|
+
if (!(m in d)) {
|
|
69
|
+
const i = /* @__PURE__ */ new WeakMap(), l = `aria-${m.slice(4, -8).toLowerCase()}`;
|
|
70
|
+
Object.defineProperty(d, m, {
|
|
71
71
|
enumerable: !0,
|
|
72
72
|
configurable: !0,
|
|
73
73
|
get() {
|
|
74
|
-
const t = e(this),
|
|
75
|
-
return
|
|
74
|
+
const t = e(this), n = t.getAttribute(l)?.split(/\s+/).filter((s, o, f) => f.indexOf(s) === o).map((s) => t.getRootNode().getElementById?.(s)).filter((s) => s instanceof Element);
|
|
75
|
+
return n?.length ? Object.freeze(n) : null;
|
|
76
76
|
},
|
|
77
77
|
set(t) {
|
|
78
|
-
if (t !== null && (!Array.isArray(t) || t.some((
|
|
79
|
-
throw new TypeError(`Failed to set the '${m}' property on '${
|
|
80
|
-
const
|
|
81
|
-
t = t?.filter((
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
else if (
|
|
86
|
-
|
|
78
|
+
if (t !== null && (!Array.isArray(t) || t.some((o) => !(o instanceof Element))))
|
|
79
|
+
throw new TypeError(`Failed to set the '${m}' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
80
|
+
const n = e(this);
|
|
81
|
+
t = t?.filter((o, f, b) => b.indexOf(o) === f) ?? null;
|
|
82
|
+
const s = i.get(n);
|
|
83
|
+
if (s?.observer?.disconnect(), t === null)
|
|
84
|
+
s && (delete s.elements[r.name], Object.keys(s.elements).length ? Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a)) : i.delete(n));
|
|
85
|
+
else if (s)
|
|
86
|
+
s.elements[r.name] = t, u(n, l, s.elements), Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a));
|
|
87
87
|
else {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
t.forEach((b) =>
|
|
88
|
+
const o = { [r.name]: t };
|
|
89
|
+
u(n, l, o);
|
|
90
|
+
const f = new MutationObserver(() => u(n, l, o));
|
|
91
|
+
t.forEach((b) => f.observe(b, a)), i.set(n, { elements: o, observer: f });
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
const y = (
|
|
98
|
+
const y = (h, ...e) => {
|
|
99
99
|
const a = e.filter((c) => !!c);
|
|
100
|
-
return
|
|
101
|
-
}, O = (
|
|
100
|
+
return h?.length ? h.concat(a) : e.length ? a : null;
|
|
101
|
+
}, O = (h, ...e) => {
|
|
102
102
|
e = e.filter((c) => !!c);
|
|
103
|
-
const a =
|
|
103
|
+
const a = h?.filter((c) => !e.includes(c)) ?? null;
|
|
104
104
|
return a?.length ? a : null;
|
|
105
|
-
},
|
|
106
|
-
class e extends
|
|
105
|
+
}, A = (h) => {
|
|
106
|
+
class e extends h {
|
|
107
107
|
constructor(...c) {
|
|
108
|
-
super(...c), this.internals = this.attachInternals(),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
if (super(...c), this.internals = this.attachInternals(), g)
|
|
109
|
+
Object.defineProperty(this.internals, "states", {
|
|
110
|
+
value: new g(this),
|
|
111
|
+
writable: !1,
|
|
112
|
+
configurable: !1,
|
|
113
|
+
enumerable: !1
|
|
114
|
+
});
|
|
115
|
+
else
|
|
116
|
+
for (const r of this.getAttributeNames().filter((d) => d.startsWith("state--")))
|
|
117
|
+
this.internals.states.add(r.slice(7)), this.removeAttribute(r);
|
|
118
|
+
const u = this.constructor.role;
|
|
119
|
+
u && (this.internals.role = u);
|
|
116
120
|
}
|
|
117
|
-
toggleState(c,
|
|
118
|
-
|
|
121
|
+
toggleState(c, u) {
|
|
122
|
+
u || u !== !1 && !this.internals.states.has(c) ? this.internals.states.add(c) : this.internals.states.delete(c);
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
return e;
|
|
122
126
|
};
|
|
123
127
|
export {
|
|
124
|
-
|
|
128
|
+
A as SbbElementInternalsMixin,
|
|
125
129
|
y as appendAriaElements,
|
|
126
130
|
O as removeAriaElements
|
|
127
131
|
};
|
package/core/styles/core.scss
CHANGED
|
@@ -205,7 +205,7 @@ sbb-form-field {
|
|
|
205
205
|
&:has(
|
|
206
206
|
:is(
|
|
207
207
|
:is(input, textarea, select):user-invalid,
|
|
208
|
-
:
|
|
208
|
+
:state(interacted):invalid,
|
|
209
209
|
.ng-touched.ng-invalid,
|
|
210
210
|
.sbb-invalid
|
|
211
211
|
)
|
|
@@ -563,13 +563,13 @@ sbb-dialog-actions {
|
|
|
563
563
|
--sbb-dialog-actions-border-color: var(--sbb-color-iron);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
sbb-dialog:
|
|
566
|
+
sbb-dialog:state(overflows) & {
|
|
567
567
|
--sbb-dialog-actions-border-color: transparent;
|
|
568
568
|
|
|
569
569
|
@include shadows.shadow-level-9-soft;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
sbb-dialog[negative]:
|
|
572
|
+
sbb-dialog[negative]:state(overflows) & {
|
|
573
573
|
@include shadows.shadow-level-9-soft-negative;
|
|
574
574
|
}
|
|
575
575
|
}
|
package/core.css
CHANGED
|
@@ -991,24 +991,6 @@
|
|
|
991
991
|
--sbb-size-element-s: var(--sbb-size-element-s-zero);
|
|
992
992
|
--sbb-size-element-m: var(--sbb-size-element-m-zero);
|
|
993
993
|
--sbb-size-element-l: var(--sbb-size-element-l-zero);
|
|
994
|
-
/**
|
|
995
|
-
* Micro (value corresponds to --sbb-breakpoint-micro-min)
|
|
996
|
-
*/
|
|
997
|
-
/**
|
|
998
|
-
* Small (value corresponds to --sbb-breakpoint-small-min)
|
|
999
|
-
*/
|
|
1000
|
-
/**
|
|
1001
|
-
* Medium (value corresponds to --sbb-breakpoint-medium-min)
|
|
1002
|
-
*/
|
|
1003
|
-
/**
|
|
1004
|
-
* Large (value corresponds to --sbb-breakpoint-large-min)
|
|
1005
|
-
*/
|
|
1006
|
-
/**
|
|
1007
|
-
* Wide (value corresponds to --sbb-breakpoint-wide-min)
|
|
1008
|
-
*/
|
|
1009
|
-
/**
|
|
1010
|
-
* Ultra (value corresponds to --sbb-breakpoint-ultra-min)
|
|
1011
|
-
*/
|
|
1012
994
|
}
|
|
1013
995
|
@media (forced-colors: active) {
|
|
1014
996
|
:root {
|
|
@@ -1018,6 +1000,11 @@
|
|
|
1018
1000
|
--sbb-focus-outline-width: var(--sbb-border-width-2x);
|
|
1019
1001
|
}
|
|
1020
1002
|
}
|
|
1003
|
+
:root {
|
|
1004
|
+
/**
|
|
1005
|
+
* Micro (value corresponds to --sbb-breakpoint-micro-min)
|
|
1006
|
+
*/
|
|
1007
|
+
}
|
|
1021
1008
|
@media (min-width: 22.5rem) {
|
|
1022
1009
|
:root {
|
|
1023
1010
|
/* Layout */
|
|
@@ -1026,6 +1013,11 @@
|
|
|
1026
1013
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-micro);
|
|
1027
1014
|
}
|
|
1028
1015
|
}
|
|
1016
|
+
:root {
|
|
1017
|
+
/**
|
|
1018
|
+
* Small (value corresponds to --sbb-breakpoint-small-min)
|
|
1019
|
+
*/
|
|
1020
|
+
}
|
|
1029
1021
|
@media (min-width: 37.5rem) {
|
|
1030
1022
|
:root {
|
|
1031
1023
|
/* Title */
|
|
@@ -1040,6 +1032,11 @@
|
|
|
1040
1032
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-small);
|
|
1041
1033
|
}
|
|
1042
1034
|
}
|
|
1035
|
+
:root {
|
|
1036
|
+
/**
|
|
1037
|
+
* Medium (value corresponds to --sbb-breakpoint-medium-min)
|
|
1038
|
+
*/
|
|
1039
|
+
}
|
|
1043
1040
|
@media (min-width: 52.5rem) {
|
|
1044
1041
|
:root {
|
|
1045
1042
|
/* Title */
|
|
@@ -1076,6 +1073,11 @@
|
|
|
1076
1073
|
--sbb-size-element-l: var(--sbb-size-element-l-medium);
|
|
1077
1074
|
}
|
|
1078
1075
|
}
|
|
1076
|
+
:root {
|
|
1077
|
+
/**
|
|
1078
|
+
* Large (value corresponds to --sbb-breakpoint-large-min)
|
|
1079
|
+
*/
|
|
1080
|
+
}
|
|
1079
1081
|
@media (min-width: 64rem) {
|
|
1080
1082
|
:root {
|
|
1081
1083
|
/* Title */
|
|
@@ -1090,6 +1092,11 @@
|
|
|
1090
1092
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-large);
|
|
1091
1093
|
}
|
|
1092
1094
|
}
|
|
1095
|
+
:root {
|
|
1096
|
+
/**
|
|
1097
|
+
* Wide (value corresponds to --sbb-breakpoint-wide-min)
|
|
1098
|
+
*/
|
|
1099
|
+
}
|
|
1093
1100
|
@media (min-width: 80rem) {
|
|
1094
1101
|
:root {
|
|
1095
1102
|
/* Spacing */
|
|
@@ -1100,6 +1107,11 @@
|
|
|
1100
1107
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-wide);
|
|
1101
1108
|
}
|
|
1102
1109
|
}
|
|
1110
|
+
:root {
|
|
1111
|
+
/**
|
|
1112
|
+
* Ultra (value corresponds to --sbb-breakpoint-ultra-min)
|
|
1113
|
+
*/
|
|
1114
|
+
}
|
|
1103
1115
|
@media (min-width: 90rem) {
|
|
1104
1116
|
:root {
|
|
1105
1117
|
/* Title */
|
|
@@ -1136,7 +1148,6 @@
|
|
|
1136
1148
|
--sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-3x);
|
|
1137
1149
|
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-2x);
|
|
1138
1150
|
--sbb-title-margin-block-end-level-6: var(--sbb-spacing-fixed-1x);
|
|
1139
|
-
--sbb-border-radius-infinity: 100000em;
|
|
1140
1151
|
}
|
|
1141
1152
|
:root.sbb-lean {
|
|
1142
1153
|
--sbb-title-font-size-level-1: var(--sbb-font-size-title-2);
|
|
@@ -1154,6 +1165,9 @@
|
|
|
1154
1165
|
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-1x);
|
|
1155
1166
|
--sbb-title-margin-block-end-level-6: 0;
|
|
1156
1167
|
}
|
|
1168
|
+
:root {
|
|
1169
|
+
--sbb-border-radius-infinity: 100000em;
|
|
1170
|
+
}
|
|
1157
1171
|
:root:has(sbb-header[size=s]) {
|
|
1158
1172
|
--sbb-header-height: 3.25rem;
|
|
1159
1173
|
}
|
|
@@ -1343,14 +1357,14 @@ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-button, sbb-form-fi
|
|
|
1343
1357
|
}
|
|
1344
1358
|
}
|
|
1345
1359
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1346
|
-
:is(:state(interacted),
|
|
1360
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1347
1361
|
.ng-touched.ng-invalid,
|
|
1348
1362
|
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1349
1363
|
--sbb-form-field-border-color: var(--sbb-color-red125);
|
|
1350
1364
|
--sbb-form-field-text-color: var(--sbb-color-red125);
|
|
1351
1365
|
}
|
|
1352
1366
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1353
|
-
:is(:state(interacted),
|
|
1367
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1354
1368
|
.ng-touched.ng-invalid,
|
|
1355
1369
|
.sbb-invalid))[negative], :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid))[negative] {
|
|
1356
1370
|
--sbb-form-field-border-color: var(--sbb-color-red-mode-dark);
|
|
@@ -1358,7 +1372,7 @@ sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
|
1358
1372
|
}
|
|
1359
1373
|
@media (forced-colors: active) {
|
|
1360
1374
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1361
|
-
:is(:state(interacted),
|
|
1375
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1362
1376
|
.ng-touched.ng-invalid,
|
|
1363
1377
|
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1364
1378
|
--sbb-form-field-border-color: LinkText !important;
|
|
@@ -1620,11 +1634,11 @@ sbb-toggle:has(:focus-visible) {
|
|
|
1620
1634
|
sbb-dialog[negative] sbb-dialog-actions {
|
|
1621
1635
|
--sbb-dialog-actions-border-color: var(--sbb-color-iron);
|
|
1622
1636
|
}
|
|
1623
|
-
sbb-dialog:is(:state(overflows),
|
|
1637
|
+
sbb-dialog:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
|
|
1624
1638
|
--sbb-dialog-actions-border-color: transparent;
|
|
1625
1639
|
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-elevation-level-9-soft-2-color), 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-elevation-level-9-soft-1-color);
|
|
1626
1640
|
}
|
|
1627
|
-
sbb-dialog[negative]:is(:state(overflows),
|
|
1641
|
+
sbb-dialog[negative]:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
|
|
1628
1642
|
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-elevation-level-9-soft-negative-2-color), 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-elevation-level-9-soft-negative-1-color);
|
|
1629
1643
|
}
|
|
1630
1644
|
|
package/custom-elements.json
CHANGED
|
@@ -10946,7 +10946,7 @@
|
|
|
10946
10946
|
},
|
|
10947
10947
|
"privacy": "public",
|
|
10948
10948
|
"default": "null",
|
|
10949
|
-
"description": "Visual level for the title.
|
|
10949
|
+
"description": "Visual level for the title.",
|
|
10950
10950
|
"attribute": "visual-level",
|
|
10951
10951
|
"reflects": true,
|
|
10952
10952
|
"inheritedFrom": {
|
|
@@ -11083,7 +11083,7 @@
|
|
|
11083
11083
|
"text": "SbbTitleLevel | null"
|
|
11084
11084
|
},
|
|
11085
11085
|
"default": "null",
|
|
11086
|
-
"description": "Visual level for the title.
|
|
11086
|
+
"description": "Visual level for the title.",
|
|
11087
11087
|
"fieldName": "visualLevel",
|
|
11088
11088
|
"inheritedFrom": {
|
|
11089
11089
|
"name": "SbbTitleBase",
|
|
@@ -20706,7 +20706,7 @@
|
|
|
20706
20706
|
},
|
|
20707
20707
|
"privacy": "public",
|
|
20708
20708
|
"default": "null",
|
|
20709
|
-
"description": "Visual level for the title.
|
|
20709
|
+
"description": "Visual level for the title.",
|
|
20710
20710
|
"attribute": "visual-level",
|
|
20711
20711
|
"reflects": true
|
|
20712
20712
|
},
|
|
@@ -20756,7 +20756,7 @@
|
|
|
20756
20756
|
"text": "SbbTitleLevel | null"
|
|
20757
20757
|
},
|
|
20758
20758
|
"default": "null",
|
|
20759
|
-
"description": "Visual level for the title.
|
|
20759
|
+
"description": "Visual level for the title.",
|
|
20760
20760
|
"fieldName": "visualLevel"
|
|
20761
20761
|
}
|
|
20762
20762
|
],
|
|
@@ -20810,6 +20810,22 @@
|
|
|
20810
20810
|
}
|
|
20811
20811
|
],
|
|
20812
20812
|
"members": [
|
|
20813
|
+
{
|
|
20814
|
+
"kind": "field",
|
|
20815
|
+
"name": "visualLevel",
|
|
20816
|
+
"type": {
|
|
20817
|
+
"text": "SbbTitleLevel | null"
|
|
20818
|
+
},
|
|
20819
|
+
"privacy": "public",
|
|
20820
|
+
"default": "null",
|
|
20821
|
+
"description": "Visual level for the title. Optional, if not set, the value of level will be used.",
|
|
20822
|
+
"attribute": "visual-level",
|
|
20823
|
+
"reflects": true,
|
|
20824
|
+
"inheritedFrom": {
|
|
20825
|
+
"name": "SbbTitleBase",
|
|
20826
|
+
"module": "title/title-base.js"
|
|
20827
|
+
}
|
|
20828
|
+
},
|
|
20813
20829
|
{
|
|
20814
20830
|
"kind": "field",
|
|
20815
20831
|
"name": "negative",
|
|
@@ -20884,37 +20900,22 @@
|
|
|
20884
20900
|
"name": "SbbTitleBase",
|
|
20885
20901
|
"module": "title/title-base.js"
|
|
20886
20902
|
}
|
|
20887
|
-
}
|
|
20903
|
+
}
|
|
20904
|
+
],
|
|
20905
|
+
"attributes": [
|
|
20888
20906
|
{
|
|
20889
|
-
"
|
|
20890
|
-
"name": "visualLevel",
|
|
20907
|
+
"name": "visual-level",
|
|
20891
20908
|
"type": {
|
|
20892
20909
|
"text": "SbbTitleLevel | null"
|
|
20893
20910
|
},
|
|
20894
|
-
"privacy": "public",
|
|
20895
20911
|
"default": "null",
|
|
20896
20912
|
"description": "Visual level for the title. Optional, if not set, the value of level will be used.",
|
|
20897
|
-
"
|
|
20898
|
-
"reflects": true,
|
|
20913
|
+
"fieldName": "visualLevel",
|
|
20899
20914
|
"inheritedFrom": {
|
|
20900
20915
|
"name": "SbbTitleBase",
|
|
20901
20916
|
"module": "title/title-base.js"
|
|
20902
20917
|
}
|
|
20903
|
-
}
|
|
20904
|
-
],
|
|
20905
|
-
"mixins": [
|
|
20906
|
-
{
|
|
20907
|
-
"name": "SbbNegativeMixin",
|
|
20908
|
-
"module": "core/mixins.js"
|
|
20909
|
-
}
|
|
20910
|
-
],
|
|
20911
|
-
"superclass": {
|
|
20912
|
-
"name": "SbbTitleBase",
|
|
20913
|
-
"module": "title/title-base.js"
|
|
20914
|
-
},
|
|
20915
|
-
"tagName": "sbb-title",
|
|
20916
|
-
"customElement": true,
|
|
20917
|
-
"attributes": [
|
|
20918
|
+
},
|
|
20918
20919
|
{
|
|
20919
20920
|
"name": "negative",
|
|
20920
20921
|
"type": {
|
|
@@ -20940,21 +20941,20 @@
|
|
|
20940
20941
|
"name": "SbbTitleBase",
|
|
20941
20942
|
"module": "title/title-base.js"
|
|
20942
20943
|
}
|
|
20943
|
-
}
|
|
20944
|
+
}
|
|
20945
|
+
],
|
|
20946
|
+
"mixins": [
|
|
20944
20947
|
{
|
|
20945
|
-
"name": "
|
|
20946
|
-
"
|
|
20947
|
-
"text": "SbbTitleLevel | null"
|
|
20948
|
-
},
|
|
20949
|
-
"default": "null",
|
|
20950
|
-
"description": "Visual level for the title. Optional, if not set, the value of level will be used.",
|
|
20951
|
-
"fieldName": "visualLevel",
|
|
20952
|
-
"inheritedFrom": {
|
|
20953
|
-
"name": "SbbTitleBase",
|
|
20954
|
-
"module": "title/title-base.js"
|
|
20955
|
-
}
|
|
20948
|
+
"name": "SbbNegativeMixin",
|
|
20949
|
+
"module": "core/mixins.js"
|
|
20956
20950
|
}
|
|
20957
|
-
]
|
|
20951
|
+
],
|
|
20952
|
+
"superclass": {
|
|
20953
|
+
"name": "SbbTitleBase",
|
|
20954
|
+
"module": "title/title-base.js"
|
|
20955
|
+
},
|
|
20956
|
+
"tagName": "sbb-title",
|
|
20957
|
+
"customElement": true
|
|
20958
20958
|
}
|
|
20959
20959
|
],
|
|
20960
20960
|
"exports": [
|
|
@@ -64220,7 +64220,7 @@
|
|
|
64220
64220
|
},
|
|
64221
64221
|
"privacy": "public",
|
|
64222
64222
|
"default": "'4'",
|
|
64223
|
-
"description": "Visual level for the title.
|
|
64223
|
+
"description": "Visual level for the title.",
|
|
64224
64224
|
"attribute": "visual-level",
|
|
64225
64225
|
"reflects": true,
|
|
64226
64226
|
"inheritedFrom": {
|
|
@@ -64333,7 +64333,7 @@
|
|
|
64333
64333
|
"text": "SbbTitleLevel | null"
|
|
64334
64334
|
},
|
|
64335
64335
|
"default": "null",
|
|
64336
|
-
"description": "Visual level for the title.
|
|
64336
|
+
"description": "Visual level for the title.",
|
|
64337
64337
|
"fieldName": "visualLevel",
|
|
64338
64338
|
"inheritedFrom": {
|
|
64339
64339
|
"name": "SbbTitleBase",
|
|
@@ -98477,7 +98477,7 @@
|
|
|
98477
98477
|
},
|
|
98478
98478
|
"privacy": "public",
|
|
98479
98479
|
"default": "'5'",
|
|
98480
|
-
"description": "Visual level for the title.
|
|
98480
|
+
"description": "Visual level for the title.",
|
|
98481
98481
|
"attribute": "visual-level",
|
|
98482
98482
|
"reflects": true,
|
|
98483
98483
|
"inheritedFrom": {
|
|
@@ -98549,7 +98549,7 @@
|
|
|
98549
98549
|
"text": "SbbTitleLevel | null"
|
|
98550
98550
|
},
|
|
98551
98551
|
"default": "null",
|
|
98552
|
-
"description": "Visual level for the title.
|
|
98552
|
+
"description": "Visual level for the title.",
|
|
98553
98553
|
"fieldName": "visualLevel",
|
|
98554
98554
|
"inheritedFrom": {
|
|
98555
98555
|
"name": "SbbTitleBase",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin } from "./common/button-common.js";
|
|
2
|
-
import { a, b, p, s, t } from "../transparent-button-
|
|
2
|
+
import { a, b, p, s, t } from "../transparent-button-COe-YB_U.js";
|
|
3
3
|
export {
|
|
4
4
|
SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
package/development/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SbbSecondaryButtonStaticElement } from "./button/secondary-button-stati
|
|
|
13
13
|
import { SbbAccentButtonStaticElement } from "./button/accent-button-static/accent-button-static.component.js";
|
|
14
14
|
import { SbbTransparentButtonStaticElement } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
15
15
|
import { SbbButtonCommonElementMixin } from "./button/common/button-common.js";
|
|
16
|
-
import { a, b, p, s, t } from "./transparent-button-
|
|
16
|
+
import { a, b, p, s, t } from "./transparent-button-COe-YB_U.js";
|
|
17
17
|
export {
|
|
18
18
|
SbbAccentButtonElement,
|
|
19
19
|
SbbAccentButtonLinkElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,8BA2C1D,CAAC"}
|