@sbb-esta/lyne-elements 4.2.0 → 4.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/accordion.component.d.ts.map +1 -1
- package/accordion/accordion.component.js +12 -16
- package/action-group/action-group.component.d.ts.map +1 -1
- package/action-group/action-group.component.js +18 -21
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +25 -26
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +3 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +45 -52
- package/button/common.d.ts.map +1 -1
- package/button/common.js +5 -4
- package/button/mini-button/mini-button.component.d.ts +2 -2
- package/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/button/mini-button/mini-button.component.js +22 -20
- package/button/mini-button-group/mini-button-group.component.d.ts.map +1 -1
- package/button/mini-button-group/mini-button-group.component.js +14 -10
- package/button/mini-button-link/mini-button-link.component.d.ts +21 -0
- package/button/mini-button-link/mini-button-link.component.d.ts.map +1 -0
- package/button/mini-button-link/mini-button-link.component.js +35 -0
- package/button/mini-button-link.d.ts +5 -0
- package/button/mini-button-link.d.ts.map +1 -0
- package/button/mini-button-link.js +4 -0
- package/button.d.ts +1 -0
- package/button.d.ts.map +1 -1
- package/button.js +28 -25
- package/chip/chip-group/chip-group.component.d.ts +2 -5
- package/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/chip/chip-group/chip-group.component.js +70 -68
- package/core/controllers/media-matchers-controller.js +2 -2
- package/core/styles/core.scss +19 -0
- package/core.css +28 -0
- package/custom-elements.json +1003 -312
- package/development/accordion/accordion.component.d.ts.map +1 -1
- package/development/accordion/accordion.component.js +2 -6
- package/development/action-group/action-group.component.d.ts.map +1 -1
- package/development/action-group/action-group.component.js +13 -22
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +4 -2
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -2
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +3 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +26 -29
- package/development/button/common.d.ts.map +1 -1
- package/development/button/common.js +3 -2
- package/development/button/mini-button/mini-button.component.d.ts +2 -2
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/development/button/mini-button/mini-button.component.js +7 -35
- package/development/button/mini-button-group/mini-button-group.component.d.ts.map +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +8 -4
- package/development/button/mini-button-link/mini-button-link.component.d.ts +21 -0
- package/development/button/mini-button-link/mini-button-link.component.d.ts.map +1 -0
- package/development/button/mini-button-link/mini-button-link.component.js +47 -0
- package/development/button/mini-button-link.d.ts +5 -0
- package/development/button/mini-button-link.d.ts.map +1 -0
- package/development/button/mini-button-link.js +5 -0
- package/development/button.d.ts +1 -0
- package/development/button.d.ts.map +1 -1
- package/development/button.js +6 -3
- package/development/chip/chip-group/chip-group.component.d.ts +2 -5
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +78 -14
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +2 -1
- package/development/divider/divider.component.d.ts +2 -2
- package/development/divider/divider.component.d.ts.map +1 -1
- package/development/divider/divider.component.js +4 -6
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +39 -34
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +15 -13
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +23 -21
- package/development/form-field/form-field/form-field.component.d.ts +2 -0
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +6 -2
- package/development/image/image.component.js +1 -1
- package/development/lead-container/lead-container.component.d.ts +3 -1
- package/development/lead-container/lead-container.component.d.ts.map +1 -1
- package/development/lead-container/lead-container.component.js +7 -2
- package/development/{mini-button-common-CWTMR_Lu.js → mini-button-label-common-DzMdb-kV.js} +37 -3
- package/development/navigation/navigation-section/navigation-section.component.js +4 -4
- package/development/{sbb-tokens-CZCt5L4q.js → sbb-tokens-DQT_xEIZ.js} +7 -7
- package/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/divider/divider.component.d.ts +2 -2
- package/divider/divider.component.d.ts.map +1 -1
- package/divider/divider.component.js +12 -12
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel/expansion-panel.component.js +31 -31
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +10 -14
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +19 -19
- package/form-field/form-field/form-field.component.d.ts +2 -0
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +5 -1
- package/image/image.component.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/lead-container/lead-container.component.d.ts +3 -1
- package/lead-container/lead-container.component.d.ts.map +1 -1
- package/lead-container/lead-container.component.js +9 -8
- package/{mini-button-common-Bb4ri3Rn.js → mini-button-label-common-ps7PVXtB.js} +4 -3
- package/navigation/navigation-section/navigation-section.component.js +1 -1
- package/off-brand-theme.css +28 -0
- package/package.json +6 -1
- package/safety-theme.css +28 -0
- package/{sbb-tokens-DruExozg.js → sbb-tokens-HiNSQasB.js} +6 -6
- package/standard-theme.css +28 -0
|
@@ -1,42 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { isArrowKeyPressed as D, sbbInputModalityDetector as N, getNextElementIndex as F } from "../../core/a11y.js";
|
|
11
|
-
import { SbbLanguageController as L } from "../../core/controllers.js";
|
|
12
|
-
import { i18nBreadcrumbEllipsisButtonLabel as O } from "../../core/i18n.js";
|
|
13
|
-
import { SbbElementInternalsMixin as $, SbbNamedSlotListMixin as A } from "../../core/mixins.js";
|
|
14
|
-
import { boxSizingStyles as M } from "../../core/styles.js";
|
|
1
|
+
import { __esDecorate as u, __runInitializers as h } from "tslib";
|
|
2
|
+
import { ResizeController as _ } from "@lit-labs/observers/resize-controller.js";
|
|
3
|
+
import { css as f, LitElement as v, html as a, nothing as x } from "lit";
|
|
4
|
+
import { customElement as y, state as C } from "lit/decorators.js";
|
|
5
|
+
import { isArrowKeyPressed as w, sbbInputModalityDetector as k, getNextElementIndex as S } from "../../core/a11y.js";
|
|
6
|
+
import { SbbLanguageController as E } from "../../core/controllers.js";
|
|
7
|
+
import { i18nBreadcrumbEllipsisButtonLabel as z } from "../../core/i18n.js";
|
|
8
|
+
import { SbbElementInternalsMixin as I, SbbNamedSlotListMixin as $ } from "../../core/mixins.js";
|
|
9
|
+
import { boxSizingStyles as B } from "../../core/styles.js";
|
|
15
10
|
import "../../icon.js";
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
var
|
|
19
|
-
let
|
|
20
|
-
return
|
|
11
|
+
const D = f`:host{--sbb-breadcrumb-group-wrap: nowrap;--sbb-breadcrumb-group-visibility: hidden;--sbb-breadcrumb-group-ellipsis-color: var(--sbb-color-granite);--sbb-breadcrumb-group-ellipsis-color: light-dark( var(--sbb-color-granite), var(--sbb-color-cloud) );--sbb-breadcrumb-group-ellipsis-background-color: transparent;--sbb-breadcrumb-group-ellipsis-border-width: var(--sbb-border-width-1x);--sbb-breadcrumb-group-ellipsis-border-color: var(--sbb-color-silver);--sbb-breadcrumb-group-ellipsis-border-color: light-dark( var(--sbb-color-silver), var(--sbb-color-anthracite) );display:block}:host(:is(:state(loaded),[state--loaded])){--sbb-breadcrumb-group-visibility: visible}:host(:is(:is(:state(state-collapsed),[state--state-collapsed]),:is(:state(state-manually-expanded),[state--state-manually-expanded]))){--sbb-breadcrumb-group-wrap: wrap}.sbb-breadcrumb-group{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-wrap:var(--sbb-breadcrumb-group-wrap);column-gap:var(--sbb-spacing-fixed-1x);visibility:var(--sbb-breadcrumb-group-visibility)}.sbb-breadcrumb-group__item{flex:0 0 auto;display:flex;column-gap:var(--sbb-spacing-fixed-1x)}.sbb-breadcrumb-group__divider-icon{color:var(--sbb-breadcrumb-group-ellipsis-color)}#sbb-breadcrumb-ellipsis{appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-text-font-size-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);line-height:0;letter-spacing:.01em;width:var(--sbb-size-icon-ui-small);height:var(--sbb-size-icon-ui-small);border:var(--sbb-breadcrumb-group-ellipsis-border-width) solid var(--sbb-breadcrumb-group-ellipsis-border-color);border-radius:50%;padding-block-end:.5em;cursor:var(--sbb-cursor-pointer);color:var(--sbb-breadcrumb-group-ellipsis-color);background-color:var(--sbb-breadcrumb-group-ellipsis-background-color);overflow:hidden}@media(forced-colors:active){#sbb-breadcrumb-ellipsis{--sbb-breadcrumb-group-ellipsis-border-width: var(--sbb-border-width-2x);--sbb-breadcrumb-group-ellipsis-border-color: CanvasText}}@media(any-hover:hover){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-color: var(--sbb-color-2);--sbb-breadcrumb-group-ellipsis-background-color: var(--sbb-background-color-3)}}@media(any-hover:hover)and (forced-colors:active){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-border-color: Highlight}}#sbb-breadcrumb-ellipsis: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)}`, p = 3;
|
|
12
|
+
let j = (() => {
|
|
13
|
+
var t;
|
|
14
|
+
let m = [y("sbb-breadcrumb-group")], l, o = [], r, b = I($(v)), n = [], d;
|
|
15
|
+
return t = class extends b {
|
|
16
|
+
/** The state of the breadcrumb group. */
|
|
17
|
+
set _state(e) {
|
|
18
|
+
this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = e, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
|
|
19
|
+
}
|
|
20
|
+
get _state() {
|
|
21
|
+
return this._stateInternal;
|
|
22
|
+
}
|
|
21
23
|
constructor() {
|
|
22
|
-
super()
|
|
23
|
-
x(this, o);
|
|
24
|
-
this.listChildLocalNames = ["sbb-breadcrumb"], c(this, o, d(this, p, null)), this._resizeObserver = (d(this, m), new k(this, {
|
|
24
|
+
super(), this.listChildLocalNames = (h(this, n), ["sbb-breadcrumb"]), this._stateInternal = null, this._resizeObserver = new _(this, {
|
|
25
25
|
target: null,
|
|
26
26
|
skipInitial: !0,
|
|
27
27
|
callback: () => this._evaluateCollapsedState()
|
|
28
|
-
})
|
|
29
|
-
}
|
|
30
|
-
/** The state of the breadcrumb group. */
|
|
31
|
-
get _state() {
|
|
32
|
-
return f(this, o);
|
|
33
|
-
}
|
|
34
|
-
set _state(e) {
|
|
35
|
-
c(this, o, e);
|
|
28
|
+
}), this._language = new E(this), this._markForFocus = !1, this.addEventListener?.("keydown", (e) => this._handleKeyDown(e));
|
|
36
29
|
}
|
|
37
30
|
_handleKeyDown(e) {
|
|
38
31
|
if (!(!this.listChildren.length || // don't trap nested handling
|
|
39
|
-
e.target !== this && e.target.parentElement !== this) &&
|
|
32
|
+
e.target !== this && e.target.parentElement !== this) && w(e)) {
|
|
40
33
|
if (this._state === "collapsed")
|
|
41
34
|
return this._focusNextCollapsed(e);
|
|
42
35
|
this._focusNext(e);
|
|
@@ -49,26 +42,26 @@ let X = (() => {
|
|
|
49
42
|
super.willUpdate(e), e.has("listChildren") && this._syncBreadcrumbs();
|
|
50
43
|
}
|
|
51
44
|
updated(e) {
|
|
52
|
-
super.updated(e), e.has("listChildren") && Promise.resolve().then(() => this._evaluateCollapsedState()), this._markForFocus &&
|
|
45
|
+
super.updated(e), e.has("listChildren") && Promise.resolve().then(() => this._evaluateCollapsedState()), this._markForFocus && k.mostRecentModality === "keyboard" && (this.listChildren[1]?.focus(), this._markForFocus = !1);
|
|
53
46
|
}
|
|
54
47
|
/** Apply the aria-current attribute to the last sbb-breadcrumb element. */
|
|
55
48
|
_syncBreadcrumbs() {
|
|
56
|
-
this.listChildren.slice(0, -1).filter((e) => e.hasAttribute("accessibility-current")).forEach((e) => e.removeAttribute("accessibility-current")), this.listChildren[this.listChildren.length - 1]?.setAttribute("accessibility-current", "page"), this.listChildren.length <
|
|
49
|
+
this.listChildren.slice(0, -1).filter((e) => e.hasAttribute("accessibility-current")).forEach((e) => e.removeAttribute("accessibility-current")), this.listChildren[this.listChildren.length - 1]?.setAttribute("accessibility-current", "page"), this.listChildren.length < p && (this._state = null);
|
|
57
50
|
}
|
|
58
51
|
/**
|
|
59
52
|
* Sets the focus on the correct element when the ellipsis breadcrumb is displayed and the user is navigating with keyboard's arrows.
|
|
60
53
|
*/
|
|
61
54
|
_focusNextCollapsed(e) {
|
|
62
|
-
const
|
|
55
|
+
const s = [
|
|
63
56
|
this.listChildren[0],
|
|
64
57
|
this.shadowRoot.querySelector("#sbb-breadcrumb-ellipsis"),
|
|
65
58
|
this.listChildren[this.listChildren.length - 1]
|
|
66
59
|
];
|
|
67
|
-
this._focusNext(e,
|
|
60
|
+
this._focusNext(e, s);
|
|
68
61
|
}
|
|
69
|
-
_focusNext(e,
|
|
70
|
-
const
|
|
71
|
-
|
|
62
|
+
_focusNext(e, s = this.listChildren) {
|
|
63
|
+
const i = s.findIndex((c) => c === document.activeElement || c === this.shadowRoot.activeElement), g = S(e, i, s.length);
|
|
64
|
+
s[g]?.focus(), e.preventDefault();
|
|
72
65
|
}
|
|
73
66
|
/**
|
|
74
67
|
* Note: due to @State annotation on _state, this method triggers a new render; as a consequence, the focus is moved
|
|
@@ -79,10 +72,10 @@ let X = (() => {
|
|
|
79
72
|
}
|
|
80
73
|
/** Evaluate if the expanded breadcrumb element fits in page width, otherwise it needs ellipsis */
|
|
81
74
|
_evaluateCollapsedState() {
|
|
82
|
-
!this._state && this.scrollWidth > this.offsetWidth && this.listChildren.length >=
|
|
75
|
+
!this._state && this.scrollWidth > this.offsetWidth && this.listChildren.length >= p && (this._state = "collapsed", this._resizeObserver.hostDisconnected(), this.removeController(this._resizeObserver));
|
|
83
76
|
}
|
|
84
77
|
_renderCollapsed() {
|
|
85
|
-
return
|
|
78
|
+
return a`
|
|
86
79
|
<li class="sbb-breadcrumb-group__item">
|
|
87
80
|
<slot name="li-0"></slot>
|
|
88
81
|
</li>
|
|
@@ -94,7 +87,7 @@ let X = (() => {
|
|
|
94
87
|
<button
|
|
95
88
|
type="button"
|
|
96
89
|
id="sbb-breadcrumb-ellipsis"
|
|
97
|
-
aria-label=${
|
|
90
|
+
aria-label=${z[this._language.current]}
|
|
98
91
|
aria-expanded="false"
|
|
99
92
|
@click=${() => this._expandBreadcrumbs()}
|
|
100
93
|
>
|
|
@@ -111,31 +104,31 @@ let X = (() => {
|
|
|
111
104
|
`;
|
|
112
105
|
}
|
|
113
106
|
_renderExpanded() {
|
|
114
|
-
return this.listSlotEntries().map((e,
|
|
107
|
+
return this.listSlotEntries().map((e, s, i) => a`
|
|
115
108
|
<li class="sbb-breadcrumb-group__item">
|
|
116
109
|
<slot name=${e.name}></slot>
|
|
117
|
-
${
|
|
110
|
+
${s !== i.length - 1 ? a`<sbb-icon
|
|
118
111
|
name="chevron-small-right-small"
|
|
119
112
|
class="sbb-breadcrumb-group__divider-icon"
|
|
120
|
-
></sbb-icon>` :
|
|
113
|
+
></sbb-icon>` : x}
|
|
121
114
|
</li>
|
|
122
115
|
`);
|
|
123
116
|
}
|
|
124
117
|
render() {
|
|
125
|
-
return
|
|
118
|
+
return a`
|
|
126
119
|
<ol class="sbb-breadcrumb-group">
|
|
127
120
|
${this._state === "collapsed" ? this._renderCollapsed() : this._renderExpanded()}
|
|
128
121
|
</ol>
|
|
129
122
|
${this.renderHiddenSlot()}
|
|
130
123
|
`;
|
|
131
124
|
}
|
|
132
|
-
},
|
|
133
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} }, metadata: e },
|
|
137
|
-
})(),
|
|
125
|
+
}, r = t, (() => {
|
|
126
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
127
|
+
d = [C()], u(t, null, d, { kind: "setter", name: "_state", static: !1, private: !1, access: { has: (s) => "_state" in s, set: (s, i) => {
|
|
128
|
+
s._state = i;
|
|
129
|
+
} }, metadata: e }, null, n), u(null, l = { value: r }, m, { kind: "class", name: r.name, metadata: e }, null, o), r = l.value, e && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
130
|
+
})(), t.role = "navigation", t.styles = [B, D], h(r, o), r;
|
|
138
131
|
})();
|
|
139
132
|
export {
|
|
140
|
-
|
|
133
|
+
j as SbbBreadcrumbGroupElement
|
|
141
134
|
};
|
package/button/common.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/elements/button/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,2BAA2B,CAAC;AAE1C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,6CAA6C,CAAC"}
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/elements/button/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,2BAA2B,CAAC;AAE1C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mDAAmD,CAAC"}
|
package/button/common.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin as o } from "./common/button-common.js";
|
|
2
|
-
import { a, b as m, p as
|
|
2
|
+
import { a, b as m, p as b, s as l, t as r, m as s, c as y } from "../mini-button-label-common-ps7PVXtB.js";
|
|
3
3
|
export {
|
|
4
4
|
o as SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
|
6
6
|
m as buttonCommonStyle,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
b as buttonPrimaryStyle,
|
|
8
|
+
l as buttonSecondaryStyle,
|
|
9
|
+
r as buttonTransparentStyle,
|
|
10
|
+
s as miniButtonLabelStyle,
|
|
10
11
|
y as miniButtonStyle
|
|
11
12
|
};
|
|
@@ -3,8 +3,8 @@ import { SbbButtonBaseElement } from '../../core/base-elements.ts';
|
|
|
3
3
|
declare const SbbMiniButtonElement_base: import('../../core/mixins.ts').AbstractConstructor<import('../../core/mixins.ts').SbbDisabledMixinType & import('../../core/mixins.ts').SbbDisabledInteractiveMixinType> & import('../../core/mixins.ts').AbstractConstructor<import('../../core/mixins.ts').SbbNegativeMixinType> & import('../../core/mixins.ts').AbstractConstructor<import('../../icon.ts').SbbIconNameMixinType> & typeof SbbButtonBaseElement;
|
|
4
4
|
/**
|
|
5
5
|
* It displays an icon-only button enhanced with the SBB Design;
|
|
6
|
-
* it's meant to be used mainly within the sbb-form-field in prefix/suffix slot
|
|
7
|
-
*
|
|
6
|
+
* it's meant to be used mainly within the sbb-form-field in prefix/suffix slot
|
|
7
|
+
* or the `sbb-mini-button-group`. *
|
|
8
8
|
* @slot - Use the unnamed slot to add a label to the mini-button.
|
|
9
9
|
* @slot icon - Slot used to display the icon, if one is set
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;
|
|
1
|
+
{"version":3,"file":"mini-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button/mini-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAMnE;;;;;;GAMG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;IACC,OAAuB,MAAM,EAAE,cAAc,CAI3C;cAEiB,cAAc,IAAI,cAAc;CAQpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { __esDecorate as
|
|
2
|
-
import { customElement as
|
|
3
|
-
import { html as
|
|
4
|
-
import { SbbButtonBaseElement as
|
|
5
|
-
import { SbbDisabledTabIndexActionMixin as
|
|
6
|
-
import { boxSizingStyles as
|
|
7
|
-
import { SbbIconNameMixin as
|
|
8
|
-
import { miniButtonStyle as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
let b = [r("sbb-mini-button")], n, s = [], t, a = c(p(f(u)));
|
|
14
|
-
return i = class extends a {
|
|
1
|
+
import { __esDecorate as n, __runInitializers as s } from "tslib";
|
|
2
|
+
import { customElement as m } from "lit/decorators.js";
|
|
3
|
+
import { html as b } from "lit/static-html.js";
|
|
4
|
+
import { SbbButtonBaseElement as c } from "../../core/base-elements.js";
|
|
5
|
+
import { SbbDisabledTabIndexActionMixin as u, SbbNegativeMixin as p } from "../../core/mixins.js";
|
|
6
|
+
import { boxSizingStyles as S } from "../../core/styles.js";
|
|
7
|
+
import { SbbIconNameMixin as d } from "../../icon.js";
|
|
8
|
+
import { miniButtonStyle as f, miniButtonLabelStyle as _ } from "../common.js";
|
|
9
|
+
let M = (() => {
|
|
10
|
+
var e;
|
|
11
|
+
let r = [m("sbb-mini-button")], i, l = [], t, o = u(p(d(c)));
|
|
12
|
+
return e = class extends o {
|
|
15
13
|
renderTemplate() {
|
|
16
|
-
return
|
|
14
|
+
return b`
|
|
17
15
|
${super.renderIconSlot()}
|
|
18
16
|
<span class="sbb-mini-button__label">
|
|
19
17
|
<slot></slot>
|
|
20
18
|
</span>
|
|
21
19
|
`;
|
|
22
20
|
}
|
|
23
|
-
}, t =
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
})(),
|
|
21
|
+
}, t = e, (() => {
|
|
22
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
23
|
+
n(null, i = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, l), t = i.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
24
|
+
})(), e.styles = [
|
|
25
|
+
S,
|
|
26
|
+
f,
|
|
27
|
+
_
|
|
28
|
+
], s(t, l), t;
|
|
27
29
|
})();
|
|
28
30
|
export {
|
|
29
|
-
|
|
31
|
+
M as SbbMiniButtonElement
|
|
30
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mini-button-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button-group/mini-button-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAQvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAIpF,MAAM,MAAM,sBAAsB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;;AAE5D;;;;;GAKG;AACH,qBAEM,yBAA0B,SAAQ,8BAEvC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA4B;IACzE,mBAA4B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"mini-button-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button-group/mini-button-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAQvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAIpF,MAAM,MAAM,sBAAsB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;;AAE5D;;;;;GAKG;AACH,qBAEM,yBAA0B,SAAQ,8BAEvC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA4B;IACzE,mBAA4B,mBAAmB,WAI7C;IAEF,kFAAkF;IAClF,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD;;;OAGG;IACH,SAA6C,IAAI,EAAE,sBAAsB,CAAwB;cAE9E,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,cAAc;cAMH,MAAM,IAAI,cAAc;CAQ5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,yBAAyB,CAAC;KACpD;CACF"}
|
|
@@ -10,46 +10,50 @@ import { forceType as I } from "../../core/decorators.js";
|
|
|
10
10
|
import { isLean as D } from "../../core/dom.js";
|
|
11
11
|
import { SbbNegativeMixin as M, SbbNamedSlotListMixin as O } from "../../core/mixins.js";
|
|
12
12
|
import { boxSizingStyles as j } from "../../core/styles.js";
|
|
13
|
-
const T = w`:host{display:block;--sbb-mini-button-group-background: var(--sbb-background-color-1);--sbb-mini-button-group-border-color: var(--sbb-border-color-4-inverted);--sbb-mini-button-group-border-width: var(--sbb-border-width-2x);--sbb-mini-button-group-border: var(--sbb-mini-button-group-border-width) solid var(--sbb-mini-button-group-border-color);--sbb-mini-button-group-gap: var(--sbb-spacing-fixed-2x);--sbb-mini-button-group-min-height: var(--sbb-size-element-s);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-3x)}:host([negative]){--sbb-mini-button-group-background: var(--sbb-background-color-1-negative);--sbb-mini-button-group-border-color: var(--sbb-border-color-4-negative-inverted);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([size=s]){--sbb-mini-button-group-min-height: var(--sbb-size-element-xs);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-2x)}:host([size=l]){--sbb-mini-button-group-min-height: var(--sbb-size-element-m)}:host([size=xl]){--sbb-mini-button-group-min-height: var(--sbb-size-element-l);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-4x)}::slotted(:is(sbb-mini-button,sbb-divider)){display:flex}::slotted(sbb-divider){--sbb-divider-border-width: var(--sbb-border-width-1x);padding-block:var(--sbb-spacing-fixed-1x);padding-inline:var(--sbb-spacing-fixed-1x);height:var(--sbb-size-icon-ui-small)}.sbb-mini-button-group{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--sbb-mini-button-group-gap);width:fit-content;min-height:var(--sbb-mini-button-group-min-height);background-color:var(--sbb-mini-button-group-background);border:var(--sbb-mini-button-group-border);border-radius:var(--sbb-border-radius-infinity);padding-inline:calc(var(--sbb-mini-button-group-padding-inline) - var(--sbb-mini-button-group-border-width))}`;
|
|
13
|
+
const T = w`:host{display:block;--sbb-mini-button-group-background: var(--sbb-background-color-1);--sbb-mini-button-group-border-color: var(--sbb-border-color-4-inverted);--sbb-mini-button-group-border-width: var(--sbb-border-width-2x);--sbb-mini-button-group-border: var(--sbb-mini-button-group-border-width) solid var(--sbb-mini-button-group-border-color);--sbb-mini-button-group-gap: var(--sbb-spacing-fixed-2x);--sbb-mini-button-group-min-height: var(--sbb-size-element-s);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-3x)}:host([negative]){--sbb-mini-button-group-background: var(--sbb-background-color-1-negative);--sbb-mini-button-group-border-color: var(--sbb-border-color-4-negative-inverted);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([size=s]){--sbb-mini-button-group-min-height: var(--sbb-size-element-xs);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-2x)}:host([size=l]){--sbb-mini-button-group-min-height: var(--sbb-size-element-m)}:host([size=xl]){--sbb-mini-button-group-min-height: var(--sbb-size-element-l);--sbb-mini-button-group-padding-inline: var(--sbb-spacing-fixed-4x)}::slotted(:is(sbb-mini-button,sbb-mini-button-link,sbb-divider)){display:flex}::slotted(sbb-divider){--sbb-divider-border-width: var(--sbb-border-width-1x);padding-block:var(--sbb-spacing-fixed-1x);padding-inline:var(--sbb-spacing-fixed-1x);height:var(--sbb-size-icon-ui-small)}.sbb-mini-button-group{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--sbb-mini-button-group-gap);width:fit-content;min-height:var(--sbb-mini-button-group-min-height);background-color:var(--sbb-mini-button-group-background);border:var(--sbb-mini-button-group-border);border-radius:var(--sbb-border-radius-infinity);padding-inline:calc(var(--sbb-mini-button-group-padding-inline) - var(--sbb-mini-button-group-border-width))}`;
|
|
14
14
|
let H = (() => {
|
|
15
|
-
var
|
|
15
|
+
var n, o, a;
|
|
16
16
|
let i = [E("sbb-mini-button-group")], t, s = [], r, p = M(O(S)), h, v = [], f = [], y, x = [], _ = [];
|
|
17
17
|
return a = class extends p {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
|
-
m(this, o);
|
|
21
20
|
m(this, n);
|
|
22
|
-
|
|
21
|
+
m(this, o);
|
|
22
|
+
this.listChildLocalNames = [
|
|
23
|
+
"sbb-mini-button",
|
|
24
|
+
"sbb-mini-button-link",
|
|
25
|
+
"sbb-divider"
|
|
26
|
+
], l(this, n, c(this, v, "")), l(this, o, (c(this, f), c(this, x, D() ? "s" : "m"))), c(this, _);
|
|
23
27
|
}
|
|
24
28
|
/** This will be forwarded as aria-label to the list that contains the buttons. */
|
|
25
29
|
get accessibilityLabel() {
|
|
26
|
-
return d(this,
|
|
30
|
+
return d(this, n);
|
|
27
31
|
}
|
|
28
32
|
set accessibilityLabel(e) {
|
|
29
|
-
l(this,
|
|
33
|
+
l(this, n, e);
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* Size variant, either s, m, l or xl.
|
|
33
37
|
* @default 'm' / 's' (lean)
|
|
34
38
|
*/
|
|
35
39
|
get size() {
|
|
36
|
-
return d(this,
|
|
40
|
+
return d(this, o);
|
|
37
41
|
}
|
|
38
42
|
set size(e) {
|
|
39
|
-
l(this,
|
|
43
|
+
l(this, o, e);
|
|
40
44
|
}
|
|
41
45
|
willUpdate(e) {
|
|
42
46
|
super.willUpdate(e), e.has("negative") && this._proxyNegative();
|
|
43
47
|
}
|
|
44
48
|
_proxyNegative() {
|
|
45
|
-
this.querySelectorAll?.("sbb-divider, sbb-mini-button").forEach((e) => e.negative = this.negative);
|
|
49
|
+
this.querySelectorAll?.("sbb-divider, sbb-mini-button, sbb-mini-button-link").forEach((e) => e.negative = this.negative);
|
|
46
50
|
}
|
|
47
51
|
render() {
|
|
48
52
|
return N`
|
|
49
53
|
${this.renderList({ ariaLabel: this.accessibilityLabel }, { localNameVisualOnly: ["sbb-divider"] })}
|
|
50
54
|
`;
|
|
51
55
|
}
|
|
52
|
-
},
|
|
56
|
+
}, n = new WeakMap(), o = new WeakMap(), r = a, (() => {
|
|
53
57
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
54
58
|
h = [I(), k({ attribute: "accessibility-label" })], y = [k({ reflect: !0 })], g(a, null, h, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (b) => "accessibilityLabel" in b, get: (b) => b.accessibilityLabel, set: (b, u) => {
|
|
55
59
|
b.accessibilityLabel = u;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
|
+
import { SbbLinkBaseElement } from '../../core/base-elements.ts';
|
|
3
|
+
declare const SbbMiniButtonLinkElement_base: import('../../core/mixins.ts').AbstractConstructor<import('../../core/mixins.ts').SbbNegativeMixinType> & import('../../core/mixins.ts').AbstractConstructor<import('../../icon.ts').SbbIconNameMixinType> & import('../../core/mixins.ts').AbstractConstructor<import('../../core/mixins.ts').SbbDisabledInteractiveMixinType> & import('../../core/mixins.ts').AbstractConstructor<import('../../core/mixins.ts').SbbDisabledMixinType> & typeof SbbLinkBaseElement;
|
|
4
|
+
/**
|
|
5
|
+
* It displays an icon-only button enhanced with the SBB Design as link variant;
|
|
6
|
+
* it's meant to be used within the `sbb-mini-button-group`.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Use the unnamed slot to add a label to the mini-button.
|
|
9
|
+
* @slot icon - Slot used to display the icon, if one is set
|
|
10
|
+
*/
|
|
11
|
+
export declare class SbbMiniButtonLinkElement extends SbbMiniButtonLinkElement_base {
|
|
12
|
+
static styles: CSSResultGroup;
|
|
13
|
+
protected renderTemplate(): TemplateResult;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'sbb-mini-button-link': SbbMiniButtonLinkElement;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=mini-button-link.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mini-button-link.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/button/mini-button-link/mini-button-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;;AAYjE;;;;;;GAMG;AACH,qBAEM,wBAAyB,SAAQ,6BAEtC;IACC,OAAuB,MAAM,EAAE,cAAc,CAK3C;cAEiB,cAAc,IAAI,cAAc;CAQpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,sBAAsB,EAAE,wBAAwB,CAAC;KAClD;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __esDecorate as n, __runInitializers as s } from "tslib";
|
|
2
|
+
import { customElement as m } from "lit/decorators.js";
|
|
3
|
+
import { html as b } from "lit/static-html.js";
|
|
4
|
+
import { SbbLinkBaseElement as c } from "../../core/base-elements.js";
|
|
5
|
+
import { SbbNegativeMixin as u, SbbDisabledInteractiveMixin as p, SbbDisabledMixin as S } from "../../core/mixins.js";
|
|
6
|
+
import { boxSizingStyles as d } from "../../core/styles.js";
|
|
7
|
+
import { SbbIconNameMixin as f } from "../../icon.js";
|
|
8
|
+
import { miniButtonStyle as _, miniButtonLabelStyle as y } from "../common.js";
|
|
9
|
+
import { css as x } from "lit";
|
|
10
|
+
const v = x`@media(forced-colors:active){:host{--sbb-mini-button-color: LinkText !important}}`;
|
|
11
|
+
let z = (() => {
|
|
12
|
+
var e;
|
|
13
|
+
let r = [m("sbb-mini-button-link")], a, o = [], t, l = u(f(p(S(c))));
|
|
14
|
+
return e = class extends l {
|
|
15
|
+
renderTemplate() {
|
|
16
|
+
return b`
|
|
17
|
+
${super.renderIconSlot()}
|
|
18
|
+
<span class="sbb-mini-button__label">
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</span>
|
|
21
|
+
`;
|
|
22
|
+
}
|
|
23
|
+
}, t = e, (() => {
|
|
24
|
+
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
|
|
25
|
+
n(null, a = { value: t }, r, { kind: "class", name: t.name, metadata: i }, null, o), t = a.value, i && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
26
|
+
})(), e.styles = [
|
|
27
|
+
d,
|
|
28
|
+
_,
|
|
29
|
+
y,
|
|
30
|
+
v
|
|
31
|
+
], s(t, o), t;
|
|
32
|
+
})();
|
|
33
|
+
export {
|
|
34
|
+
z as SbbMiniButtonLinkElement
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mini-button-link.d.ts","sourceRoot":"","sources":["../../../src/elements/button/mini-button-link.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kDAAkD,CAAC"}
|
package/button.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './button/secondary-button.ts';
|
|
|
6
6
|
export * from './button/accent-button.ts';
|
|
7
7
|
export * from './button/transparent-button.ts';
|
|
8
8
|
export * from './button/mini-button.ts';
|
|
9
|
+
export * from './button/mini-button-link.ts';
|
|
9
10
|
export * from './button/mini-button-group.ts';
|
|
10
11
|
export * from './button/button-link.ts';
|
|
11
12
|
export * from './button/secondary-button-link.ts';
|
package/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/elements/button.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/elements/button.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oBAAoB,CAAC"}
|
package/button.js
CHANGED
|
@@ -3,37 +3,40 @@ import { SbbSecondaryButtonElement as r } from "./button/secondary-button/second
|
|
|
3
3
|
import { SbbAccentButtonElement as b } from "./button/accent-button/accent-button.component.js";
|
|
4
4
|
import { SbbTransparentButtonElement as a } from "./button/transparent-button/transparent-button.component.js";
|
|
5
5
|
import { SbbMiniButtonElement as u } from "./button/mini-button/mini-button.component.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { SbbMiniButtonLinkElement as i } from "./button/mini-button-link/mini-button-link.component.js";
|
|
7
|
+
import { SbbMiniButtonGroupElement as B } from "./button/mini-button-group/mini-button-group.component.js";
|
|
8
|
+
import { SbbButtonLinkElement as f } from "./button/button-link/button-link.component.js";
|
|
9
|
+
import { SbbSecondaryButtonLinkElement as s } from "./button/secondary-button-link/secondary-button-link.component.js";
|
|
10
|
+
import { SbbAccentButtonLinkElement as L } from "./button/accent-button-link/accent-button-link.component.js";
|
|
10
11
|
import { SbbTransparentButtonLinkElement as d } from "./button/transparent-button-link/transparent-button-link.component.js";
|
|
11
|
-
import { SbbButtonStaticElement as
|
|
12
|
-
import { SbbSecondaryButtonStaticElement as
|
|
13
|
-
import { SbbAccentButtonStaticElement as
|
|
14
|
-
import { SbbTransparentButtonStaticElement as
|
|
15
|
-
import { SbbButtonCommonElementMixin as
|
|
16
|
-
import { a as
|
|
12
|
+
import { SbbButtonStaticElement as M } from "./button/button-static/button-static.component.js";
|
|
13
|
+
import { SbbSecondaryButtonStaticElement as C } from "./button/secondary-button-static/secondary-button-static.component.js";
|
|
14
|
+
import { SbbAccentButtonStaticElement as P } from "./button/accent-button-static/accent-button-static.component.js";
|
|
15
|
+
import { SbbTransparentButtonStaticElement as h } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
16
|
+
import { SbbButtonCommonElementMixin as q } from "./button/common/button-common.js";
|
|
17
|
+
import { a as w, b as z, p as D, s as F, t as H, m as I, c as J } from "./mini-button-label-common-ps7PVXtB.js";
|
|
17
18
|
export {
|
|
18
19
|
b as SbbAccentButtonElement,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
L as SbbAccentButtonLinkElement,
|
|
21
|
+
P as SbbAccentButtonStaticElement,
|
|
22
|
+
q as SbbButtonCommonElementMixin,
|
|
22
23
|
n as SbbButtonElement,
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
f as SbbButtonLinkElement,
|
|
25
|
+
M as SbbButtonStaticElement,
|
|
25
26
|
u as SbbMiniButtonElement,
|
|
26
|
-
|
|
27
|
+
B as SbbMiniButtonGroupElement,
|
|
28
|
+
i as SbbMiniButtonLinkElement,
|
|
27
29
|
r as SbbSecondaryButtonElement,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
s as SbbSecondaryButtonLinkElement,
|
|
31
|
+
C as SbbSecondaryButtonStaticElement,
|
|
30
32
|
a as SbbTransparentButtonElement,
|
|
31
33
|
d as SbbTransparentButtonLinkElement,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
h as SbbTransparentButtonStaticElement,
|
|
35
|
+
w as buttonAccentStyle,
|
|
36
|
+
z as buttonCommonStyle,
|
|
37
|
+
D as buttonPrimaryStyle,
|
|
38
|
+
F as buttonSecondaryStyle,
|
|
39
|
+
H as buttonTransparentStyle,
|
|
40
|
+
I as miniButtonLabelStyle,
|
|
41
|
+
J as miniButtonStyle
|
|
39
42
|
};
|
|
@@ -41,15 +41,12 @@ export declare class SbbChipGroupElement<T = string> extends SbbChipGroupElement
|
|
|
41
41
|
* Listens to the changes on `readonly` and `disabled` attributes of `<input>`.
|
|
42
42
|
*/
|
|
43
43
|
private _inputAttributeObserver;
|
|
44
|
-
/**
|
|
45
|
-
* Listens to the 'size' changes on the `sbb-form-field`.
|
|
46
|
-
*/
|
|
47
|
-
private _formFieldAttributeObserver;
|
|
48
44
|
private _inputElement;
|
|
49
45
|
private _inputAbortController;
|
|
50
46
|
private _language;
|
|
51
47
|
private _previousSize?;
|
|
52
48
|
constructor();
|
|
49
|
+
private _updateLabelState;
|
|
53
50
|
connectedCallback(): void;
|
|
54
51
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
55
52
|
/** @internal */
|
|
@@ -87,7 +84,7 @@ export declare class SbbChipGroupElement<T = string> extends SbbChipGroupElement
|
|
|
87
84
|
private _createChipElement;
|
|
88
85
|
private _reactToInputChanges;
|
|
89
86
|
private _proxyStateToChips;
|
|
90
|
-
private
|
|
87
|
+
private _updateSize;
|
|
91
88
|
private _updateInputDescription;
|
|
92
89
|
protected render(): TemplateResult;
|
|
93
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/chip/chip-group/chip-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAOb,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAMtB,MAAM,sBAAsB,CAAC;AAU9B,MAAM,WAAW,gCAAgC,CAAC,CAAC,GAAG,MAAM;IAC1D,mDAAmD;IACnD,MAAM,EAAE,OAAO,GAAG,cAAc,CAAC;IACjC;;;;OAIG;IACH,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;;AAED;;;;;GAKG;AACH,qBAEM,mBAAmB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,wBAE7C;IACC,gBAAgC,IAAI,aAAa;IACjD,OAAuB,MAAM,EAAE,cAAc,CAA4B;IACzE,gBAAuB,MAAM;;;;MAIlB;IAEX,iCAAiC;IACjC,IACW,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,EA2B1C;IACD,IAAW,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAE/B;IAED,8DAA8D;IAC9D,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE,2FAA2F;IAC3F,SACgB,aAAa,EAAE,MAAM,EAAE,CAAa;IAEpD;;OAEG;IACH,OAAO,CAAC,uBAAuB,CAEtB;IAET
|
|
1
|
+
{"version":3,"file":"chip-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/chip/chip-group/chip-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAOb,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAMtB,MAAM,sBAAsB,CAAC;AAU9B,MAAM,WAAW,gCAAgC,CAAC,CAAC,GAAG,MAAM;IAC1D,mDAAmD;IACnD,MAAM,EAAE,OAAO,GAAG,cAAc,CAAC;IACjC;;;;OAIG;IACH,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;;AAED;;;;;GAKG;AACH,qBAEM,mBAAmB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,wBAE7C;IACC,gBAAgC,IAAI,aAAa;IACjD,OAAuB,MAAM,EAAE,cAAc,CAA4B;IACzE,gBAAuB,MAAM;;;;MAIlB;IAEX,iCAAiC;IACjC,IACW,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,EA2B1C;IACD,IAAW,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAE/B;IAED,8DAA8D;IAC9D,SACgB,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IAElE,2FAA2F;IAC3F,SACgB,aAAa,EAAE,MAAM,EAAE,CAAa;IAEpD;;OAEG;IACH,OAAO,CAAC,uBAAuB,CAEtB;IAET,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,qBAAqB,CAA8B;IAC3D,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,aAAa,CAAC,CAA8B;;IAoBpD,OAAO,CAAC,iBAAiB;IAIT,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAYtE,gBAAgB;IACT,iBAAiB,IAAI,IAAI;IAIhC,gBAAgB;IACT,wBAAwB,CAC7B,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAC9B,OAAO,EAAE,iBAAiB,GACzB,IAAI;YASO,aAAa;cAUR,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO;cAItD,QAAQ,IAAI,IAAI;IASnC,wCAAwC;IACxC,OAAO,CAAC,aAAa;IAIrB,gDAAgD;IAChD,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,eAAe;IAwCvB;;QAEI;IACJ,OAAO,CAAC,cAAc;IAyBtB;;QAEI;IACJ,OAAO,CAAC,eAAe;IAoBvB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAuB5B,OAAO,CAAC,0BAA0B;IAelC,OAAO,CAAC,WAAW;IAOnB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,uBAAuB;cAUZ,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,mBAAmB,CAAC;KACvC;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,iBAAiB,EAAE,WAAW,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC,CAAC;KACvE;CACF"}
|