@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779195190 → 5.0.0-next.3-dev.1779200097
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete-base-element.js +2 -2
- package/autocomplete/autocomplete.component.js +1 -1
- package/{autocomplete-base-element-DRGjFF9_.js → autocomplete-base-element-6leI6UF4.js} +24 -14
- package/autocomplete.js +4 -4
- package/autocomplete.pure.js +3 -3
- package/calendar/calendar/calendar.component.js +2 -2
- package/{calendar.component-oS_T4s4k.js → calendar.component-BK4w5GWV.js} +35 -29
- package/calendar.js +4 -4
- package/calendar.pure.js +3 -3
- package/carousel/carousel/carousel.component.js +1 -1
- package/carousel/carousel-item/carousel-item.component.js +2 -2
- package/carousel/carousel-list/carousel-list.component.js +1 -1
- package/{carousel-item.component-DyZAdXL_.js → carousel-item.component-B6WmZPkW.js} +12 -2
- package/{carousel-list.component-Ai0uJWB7.js → carousel-list.component-CnZehdy6.js} +6 -13
- package/{carousel.component-9oMMOyWo.js → carousel.component-ZrkGeJgZ.js} +1 -1
- package/carousel.js +5 -5
- package/carousel.pure.js +4 -4
- package/chip/chip-group/chip-group.component.js +1 -1
- package/{chip-group.component-DJORKUef.js → chip-group.component-BIP7c2G0.js} +2 -7
- package/chip.js +1 -1
- package/chip.pure.js +1 -1
- package/core/overlay/overlay-outside-pointer-event-listener.js +1 -1
- package/custom-elements.json +3886 -3393
- package/datepicker/datepicker/datepicker.component.js +1 -1
- package/development/autocomplete/autocomplete-base-element.d.ts +6 -3
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +2 -2
- package/development/autocomplete/autocomplete.component.js +1 -1
- package/development/autocomplete-base-element-qnPoRLvM.js +695 -0
- package/development/autocomplete.js +2 -2
- package/development/autocomplete.pure.js +2 -2
- package/development/calendar/calendar/calendar.component.d.ts +8 -0
- package/development/calendar/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar/calendar.component.js +2 -2
- package/development/calendar.component-BKWvdgzO.js +1461 -0
- package/development/calendar.js +2 -2
- package/development/calendar.pure.js +2 -2
- package/development/carousel/carousel/carousel.component.js +1 -1
- package/development/carousel/carousel-item/carousel-item.component.d.ts +8 -6
- package/development/carousel/carousel-item/carousel-item.component.d.ts.map +1 -1
- package/development/carousel/carousel-item/carousel-item.component.js +2 -2
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +1 -1
- package/development/{carousel-item.component-B_0wdIAu.js → carousel-item.component-nuo7jAt3.js} +16 -4
- package/development/carousel-list.component-B8PUREwS.js +126 -0
- package/development/carousel.component-D_KIJ9Bb.js +139 -0
- package/development/carousel.js +4 -4
- package/development/carousel.pure.js +4 -4
- package/development/chip/chip-group/chip-group.component.d.ts +1 -23
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +1 -1
- package/development/chip-group.component-CVizDsAz.js +395 -0
- package/development/chip.js +1 -1
- package/development/chip.pure.js +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.d.ts.map +1 -1
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +2 -2
- package/development/core.d.ts +0 -1
- package/development/core.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts +1 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.js +3 -3
- package/development/dialog/dialog/dialog.component.d.ts +2 -3
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +1 -1
- package/development/{dialog.component-AItB8ixG.js → dialog.component-D8B2dVck.js} +4 -7
- package/development/dialog.js +1 -1
- package/development/dialog.pure.js +1 -1
- package/development/file-selector/common/file-selector-common.d.ts +5 -0
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +2 -2
- package/development/{file-selector-common-CGL95Rnw.js → file-selector-common-mZ5UYxOF.js} +17 -8
- package/development/file-selector.js +2 -2
- package/development/file-selector.pure.js +2 -2
- package/development/form-field/form-field/form-field.component.d.ts +1 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field.component-CPWBCHer.js +1 -1
- package/development/overlay/overlay-base-element.d.ts +4 -4
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +3 -9
- package/development/overlay/overlay.component.d.ts +3 -3
- package/development/overlay/overlay.component.d.ts.map +1 -1
- package/development/overlay/overlay.component.js +1 -1
- package/development/{overlay.component-rFmitc_r.js → overlay.component-YSCuGeme.js} +4 -7
- package/development/overlay.js +1 -1
- package/development/overlay.pure.js +1 -1
- package/development/paginator/common/paginator-common.d.ts +11 -6
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +2 -2
- package/development/paginator-common-B7iba0wQ.js +432 -0
- package/development/paginator.js +2 -2
- package/development/paginator.pure.js +2 -2
- package/development/popover/popover.component.d.ts +7 -0
- package/development/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover.component.js +2 -2
- package/development/popover.component-CKUZbWbV.js +578 -0
- package/development/popover.js +2 -2
- package/development/popover.pure.js +2 -2
- package/development/{step.component-CcjtUFyR.js → step.component-B_YHm1tz.js} +32 -10
- package/development/stepper/step/step.component.d.ts +14 -1
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +2 -2
- package/development/stepper/stepper/stepper.component.d.ts +9 -5
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/development/stepper/stepper/stepper.component.js +1 -1
- package/development/stepper.component-BeqeUIRN.js +443 -0
- package/development/stepper.js +3 -3
- package/development/stepper.pure.js +3 -3
- package/development/tab-group.component-CGMBihsQ.js +297 -0
- package/development/{tab-label.component-CNX8bsJL.js → tab-label.component-CQOLO2t7.js} +11 -13
- package/development/tabs/tab-group/tab-group.component.d.ts +15 -8
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +2 -2
- package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tabs.js +3 -3
- package/development/tabs.pure.js +3 -3
- package/dialog/dialog/dialog.component.js +1 -1
- package/{dialog.component-4O3__zyd.js → dialog.component-CsBryhM-.js} +3 -6
- package/dialog.js +1 -1
- package/dialog.pure.js +1 -1
- package/file-selector/common/file-selector-common.js +2 -2
- package/{file-selector-common-BE780nIa.js → file-selector-common-VNwWFEmM.js} +26 -19
- package/file-selector.js +5 -5
- package/file-selector.pure.js +4 -4
- package/overlay/overlay-base-element.js +2 -8
- package/overlay/overlay.component.js +1 -1
- package/{overlay.component-C80XN61v.js → overlay.component-myJflfLY.js} +3 -6
- package/overlay.js +1 -1
- package/overlay.pure.js +1 -1
- package/package.json +2 -2
- package/paginator/common/paginator-common.js +2 -2
- package/{paginator-common-uoCIcl4X.js → paginator-common-BWewgXga.js} +42 -24
- package/paginator.js +5 -5
- package/paginator.pure.js +4 -4
- package/popover/popover.component.js +2 -2
- package/{popover.component-DJruKzY-.js → popover.component-Dm_86bPY.js} +19 -7
- package/popover.js +3 -3
- package/popover.pure.js +2 -2
- package/{step.component-BY6_2Wh2.js → step.component-tJh-Pb_E.js} +23 -8
- package/stepper/step/step.component.js +2 -2
- package/stepper/stepper/stepper.component.js +1 -1
- package/{stepper.component-lh0YSbT1.js → stepper.component-BCl77LVa.js} +20 -3
- package/stepper.js +4 -4
- package/stepper.pure.js +3 -3
- package/{tab-group.component-t4eeCNf-.js → tab-group.component-CDhggNpe.js} +27 -2
- package/{tab-label.component-DvvSohaG.js → tab-label.component-BuF2qt1T.js} +23 -22
- package/tabs/tab-group/tab-group.component.js +2 -2
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tabs.js +7 -7
- package/tabs.pure.js +6 -6
- package/development/autocomplete-base-element-DQiZ6hhk.js +0 -683
- package/development/calendar.component-CjlcDyS5.js +0 -1450
- package/development/carousel-list.component-DpDh5tqB.js +0 -133
- package/development/carousel.component-ClWvnZ8s.js +0 -139
- package/development/chip-group.component-Sgmi-kSy.js +0 -403
- package/development/core/interfaces/overlay-close-details.d.ts +0 -6
- package/development/core/interfaces/overlay-close-details.d.ts.map +0 -1
- package/development/paginator-common-BCeNUko_.js +0 -410
- package/development/popover.component-BmTfHMFw.js +0 -564
- package/development/stepper.component-80S-oXrH.js +0 -422
- package/development/tab-group.component-D4fvd6Uu.js +0 -265
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, t } from "../autocomplete-base-element-6leI6UF4.js";
|
|
2
|
+
export { t as SbbAutocompleteBaseElement, e as SbbInputAutocompleteEvent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../autocomplete-base-element-
|
|
1
|
+
import { t as e } from "../autocomplete-base-element-6leI6UF4.js";
|
|
2
2
|
import { getNextElementIndex as t, isSafari as n, setAriaComboBoxAttributes as r } from "../core.js";
|
|
3
3
|
//#region src/elements/autocomplete/autocomplete.component.ts
|
|
4
4
|
var i = 0, a = n, o = class extends e {
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
2
|
import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
|
|
3
3
|
import { property as o } from "lit/decorators.js";
|
|
4
|
-
import { SbbEscapableOverlayController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbPropertyWatcherController as u, forceType as d, idReference as f, isEventOnElement as p, isSafari as m, isZeroAnimationDuration as h, optionPanelStyles as g, removeAriaComboBoxAttributes as _, scrollbarStyles as
|
|
5
|
-
import { ResizeController as
|
|
6
|
-
import { ref as
|
|
4
|
+
import { SbbEscapableOverlayController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbPropertyWatcherController as u, forceType as d, idReference as f, isEventOnElement as p, isSafari as m, isZeroAnimationDuration as h, optionPanelStyles as g, removeAriaComboBoxAttributes as _, scrollbarStyles as ee, setOverlayPosition as v } from "./core.js";
|
|
5
|
+
import { ResizeController as y } from "@lit-labs/observers/resize-controller.js";
|
|
6
|
+
import { ref as b } from "lit/directives/ref.js";
|
|
7
7
|
//#region src/elements/autocomplete/autocomplete-base-element.scss?inline
|
|
8
|
-
var
|
|
8
|
+
var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){display:block}", S = m, C = class extends Event {
|
|
9
|
+
get option() {
|
|
10
|
+
return this._option;
|
|
11
|
+
}
|
|
12
|
+
constructor(e) {
|
|
13
|
+
super("inputAutocomplete", {
|
|
14
|
+
bubbles: !0,
|
|
15
|
+
composed: !0
|
|
16
|
+
}), this._option = e;
|
|
17
|
+
}
|
|
18
|
+
}, w = (() => {
|
|
9
19
|
let m = c(l), w, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L = [], R = [], z, B = [], V = [], H, U = [], W = [], G, K = [], q = [], J, Y = [], X = [], Z, Q = [], $ = [];
|
|
10
20
|
return class extends m {
|
|
11
21
|
static {
|
|
@@ -165,9 +175,9 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
165
175
|
}
|
|
166
176
|
static {
|
|
167
177
|
this.styles = [
|
|
168
|
-
|
|
178
|
+
ee,
|
|
169
179
|
g,
|
|
170
|
-
a(
|
|
180
|
+
a(x)
|
|
171
181
|
];
|
|
172
182
|
}
|
|
173
183
|
#e;
|
|
@@ -247,7 +257,7 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
247
257
|
return this._triggerElement ?? null;
|
|
248
258
|
}
|
|
249
259
|
constructor() {
|
|
250
|
-
super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, null)), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._resizeObserver = new
|
|
260
|
+
super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, null)), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._resizeObserver = new y(this, {
|
|
251
261
|
target: null,
|
|
252
262
|
skipInitial: !0,
|
|
253
263
|
callback: (() => {
|
|
@@ -286,7 +296,7 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
286
296
|
return h(this, "--sbb-options-panel-animation-duration");
|
|
287
297
|
}
|
|
288
298
|
connectedCallback() {
|
|
289
|
-
this.popover = "manual", super.connectedCallback(),
|
|
299
|
+
this.popover = "manual", super.connectedCallback(), S && (this.id ||= this.overlayId), this.hasUpdated && this._componentSetup(), this.syncNegative();
|
|
290
300
|
}
|
|
291
301
|
willUpdate(e) {
|
|
292
302
|
super.willUpdate(e), e.has("negative") && this.syncNegative(), e.has("autoActiveFirstOption") && this.isOpen && this._setNextActiveOptionIfAutoActiveFirstOption();
|
|
@@ -312,7 +322,7 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
312
322
|
this.options.filter((t) => t.id !== e.id && t.selected).forEach((e) => e.selected = !1), this.pendingAutoSelectedOption = null, this.triggerElement && (this._setInputValue(e), this._isCustomChangeEvent = !0, this.triggerElement.dispatchEvent(new Event("change", { bubbles: !0 })), this.triggerElement.dispatchEvent(new InputEvent("input", {
|
|
313
323
|
bubbles: !0,
|
|
314
324
|
composed: !0
|
|
315
|
-
})), this._lastUserInput = null, this.triggerElement.dispatchEvent(new
|
|
325
|
+
})), this._lastUserInput = null, this.triggerElement.dispatchEvent(new C(e)), t || this.triggerElement.focus());
|
|
316
326
|
}
|
|
317
327
|
_setInputValue(e) {
|
|
318
328
|
if (!this.triggerElement) return;
|
|
@@ -362,7 +372,7 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
362
372
|
});
|
|
363
373
|
}
|
|
364
374
|
_setOverlayPosition(e = this.originElement) {
|
|
365
|
-
e &&
|
|
375
|
+
e && v(this._overlay, e, this._overlay, this.shadowRoot.querySelector(".sbb-option-panel__overlay-container"), this, this.position);
|
|
366
376
|
}
|
|
367
377
|
_onAnimationEnd(e) {
|
|
368
378
|
e.animationName === "open" && this.state === "opening" ? this._handleOpening() : e.animationName === "close" && this.state === "closing" && this._handleClosing();
|
|
@@ -404,11 +414,11 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
404
414
|
<div class="sbb-option-panel__overlay-container">
|
|
405
415
|
<div
|
|
406
416
|
class="sbb-option-panel__overlay ${this.negative ? "sbb-scrollbar-negative" : "sbb-scrollbar"}"
|
|
407
|
-
role=${
|
|
408
|
-
id=${
|
|
417
|
+
role=${S ? i : this.panelRole}
|
|
418
|
+
id=${S ? i : this.overlayId}
|
|
409
419
|
tabindex="-1"
|
|
410
420
|
@animationend=${this._onAnimationEnd}
|
|
411
|
-
${
|
|
421
|
+
${b((e) => this._overlay = e)}
|
|
412
422
|
>
|
|
413
423
|
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
414
424
|
</div>
|
|
@@ -418,4 +428,4 @@ var S = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
|
|
|
418
428
|
};
|
|
419
429
|
})();
|
|
420
430
|
//#endregion
|
|
421
|
-
export { w as t };
|
|
431
|
+
export { C as n, w as t };
|
package/autocomplete.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SbbAutocompleteElement as
|
|
1
|
+
import { n as e, t } from "./autocomplete-base-element-6leI6UF4.js";
|
|
2
|
+
import { SbbAutocompleteElement as n } from "./autocomplete/autocomplete.component.js";
|
|
3
3
|
import "./autocomplete.pure.js";
|
|
4
4
|
//#region src/elements/autocomplete.ts
|
|
5
|
-
|
|
5
|
+
n.define();
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { t as SbbAutocompleteBaseElement, n as SbbAutocompleteElement, e as SbbInputAutocompleteEvent };
|
package/autocomplete.pure.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SbbAutocompleteElement as
|
|
3
|
-
export {
|
|
1
|
+
import { n as e, t } from "./autocomplete-base-element-6leI6UF4.js";
|
|
2
|
+
import { SbbAutocompleteElement as n } from "./autocomplete/autocomplete.component.js";
|
|
3
|
+
export { t as SbbAutocompleteBaseElement, n as SbbAutocompleteElement, e as SbbInputAutocompleteEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../calendar.component-
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, r as t, t as n } from "../../calendar.component-BK4w5GWV.js";
|
|
2
|
+
export { n as SbbCalendarElement, e as SbbDateSelectedEvent, t as SbbMonthChangeEvent };
|
|
@@ -20,19 +20,29 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
20
20
|
composed: !0
|
|
21
21
|
}), this._range = Object.freeze(e || []);
|
|
22
22
|
}
|
|
23
|
-
}, y =
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
}, y = class extends Event {
|
|
24
|
+
get dateSelected() {
|
|
25
|
+
return this._dateSelected;
|
|
26
|
+
}
|
|
27
|
+
constructor(e) {
|
|
28
|
+
super("dateselected", {
|
|
29
|
+
bubbles: !0,
|
|
30
|
+
composed: !0
|
|
31
|
+
}), this._dateSelected = Object.freeze(e);
|
|
32
|
+
}
|
|
33
|
+
}, b = (() => {
|
|
34
|
+
let b = te, x = [], S, C = [], w = [], T, De = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L, R = [], z = [], B, V = [], H = [], U, W = [], G = [], K, q = [], J = [], Y, X = [], Z = [], Q, Oe, ke = [], Ae = [], je, Me = [], $ = [];
|
|
35
|
+
return class extends b {
|
|
26
36
|
static {
|
|
27
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
28
|
-
|
|
37
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
38
|
+
S = [m(), o({ type: Boolean })], T = [o()], D = [_(), o()], A = [_(), o()], N = [
|
|
29
39
|
m(),
|
|
30
40
|
ce((e, t) => e._onMultipleChanged(t)),
|
|
31
41
|
o({ type: Boolean })
|
|
32
|
-
],
|
|
42
|
+
], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [o({ reflect: !0 })], K = [m(), o({
|
|
33
43
|
attribute: "week-numbers",
|
|
34
44
|
type: Boolean
|
|
35
|
-
})],
|
|
45
|
+
})], Y = [s()], Q = [s()], Oe = [s()], je = [s()], e(this, null, S, {
|
|
36
46
|
kind: "accessor",
|
|
37
47
|
name: "wide",
|
|
38
48
|
static: !1,
|
|
@@ -45,7 +55,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
45
55
|
}
|
|
46
56
|
},
|
|
47
57
|
metadata: t
|
|
48
|
-
},
|
|
58
|
+
}, C, w), e(this, null, T, {
|
|
49
59
|
kind: "accessor",
|
|
50
60
|
name: "view",
|
|
51
61
|
static: !1,
|
|
@@ -58,7 +68,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
58
68
|
}
|
|
59
69
|
},
|
|
60
70
|
metadata: t
|
|
61
|
-
},
|
|
71
|
+
}, De, E), e(this, null, D, {
|
|
62
72
|
kind: "accessor",
|
|
63
73
|
name: "min",
|
|
64
74
|
static: !1,
|
|
@@ -71,7 +81,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
71
81
|
}
|
|
72
82
|
},
|
|
73
83
|
metadata: t
|
|
74
|
-
},
|
|
84
|
+
}, O, k), e(this, null, A, {
|
|
75
85
|
kind: "accessor",
|
|
76
86
|
name: "max",
|
|
77
87
|
static: !1,
|
|
@@ -84,7 +94,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
84
94
|
}
|
|
85
95
|
},
|
|
86
96
|
metadata: t
|
|
87
|
-
},
|
|
97
|
+
}, j, M), e(this, null, N, {
|
|
88
98
|
kind: "accessor",
|
|
89
99
|
name: "multiple",
|
|
90
100
|
static: !1,
|
|
@@ -97,7 +107,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
97
107
|
}
|
|
98
108
|
},
|
|
99
109
|
metadata: t
|
|
100
|
-
},
|
|
110
|
+
}, P, F), e(this, null, I, {
|
|
101
111
|
kind: "setter",
|
|
102
112
|
name: "selected",
|
|
103
113
|
static: !1,
|
|
@@ -109,7 +119,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
109
119
|
}
|
|
110
120
|
},
|
|
111
121
|
metadata: t
|
|
112
|
-
}, null,
|
|
122
|
+
}, null, x), e(this, null, L, {
|
|
113
123
|
kind: "accessor",
|
|
114
124
|
name: "_selected",
|
|
115
125
|
static: !1,
|
|
@@ -122,7 +132,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
122
132
|
}
|
|
123
133
|
},
|
|
124
134
|
metadata: t
|
|
125
|
-
},
|
|
135
|
+
}, R, z), e(this, null, B, {
|
|
126
136
|
kind: "accessor",
|
|
127
137
|
name: "dateFilter",
|
|
128
138
|
static: !1,
|
|
@@ -135,7 +145,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
135
145
|
}
|
|
136
146
|
},
|
|
137
147
|
metadata: t
|
|
138
|
-
},
|
|
148
|
+
}, V, H), e(this, null, U, {
|
|
139
149
|
kind: "accessor",
|
|
140
150
|
name: "orientation",
|
|
141
151
|
static: !1,
|
|
@@ -148,7 +158,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
148
158
|
}
|
|
149
159
|
},
|
|
150
160
|
metadata: t
|
|
151
|
-
},
|
|
161
|
+
}, W, G), e(this, null, K, {
|
|
152
162
|
kind: "accessor",
|
|
153
163
|
name: "weekNumbers",
|
|
154
164
|
static: !1,
|
|
@@ -161,7 +171,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
161
171
|
}
|
|
162
172
|
},
|
|
163
173
|
metadata: t
|
|
164
|
-
},
|
|
174
|
+
}, q, J), e(this, null, Y, {
|
|
165
175
|
kind: "accessor",
|
|
166
176
|
name: "_activeDate",
|
|
167
177
|
static: !1,
|
|
@@ -174,7 +184,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
174
184
|
}
|
|
175
185
|
},
|
|
176
186
|
metadata: t
|
|
177
|
-
},
|
|
187
|
+
}, X, Z), e(this, null, Q, {
|
|
178
188
|
kind: "setter",
|
|
179
189
|
name: "_wide",
|
|
180
190
|
static: !1,
|
|
@@ -186,7 +196,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
186
196
|
}
|
|
187
197
|
},
|
|
188
198
|
metadata: t
|
|
189
|
-
}, null,
|
|
199
|
+
}, null, x), e(this, null, Oe, {
|
|
190
200
|
kind: "accessor",
|
|
191
201
|
name: "_calendarView",
|
|
192
202
|
static: !1,
|
|
@@ -199,7 +209,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
199
209
|
}
|
|
200
210
|
},
|
|
201
211
|
metadata: t
|
|
202
|
-
},
|
|
212
|
+
}, ke, Ae), e(this, null, je, {
|
|
203
213
|
kind: "accessor",
|
|
204
214
|
name: "_initialized",
|
|
205
215
|
static: !1,
|
|
@@ -212,7 +222,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
212
222
|
}
|
|
213
223
|
},
|
|
214
224
|
metadata: t
|
|
215
|
-
},
|
|
225
|
+
}, Me, $), t && Object.defineProperty(this, Symbol.metadata, {
|
|
216
226
|
enumerable: !0,
|
|
217
227
|
configurable: !0,
|
|
218
228
|
writable: !0,
|
|
@@ -346,13 +356,13 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
346
356
|
this.#d = e;
|
|
347
357
|
}
|
|
348
358
|
constructor() {
|
|
349
|
-
super(), this.#e = (t(this,
|
|
359
|
+
super(), this.#e = (t(this, x), t(this, C, !1)), this.#t = (t(this, w), t(this, De, "day")), this.#n = (t(this, E), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this.#s = (t(this, H), t(this, W, "horizontal")), this.#c = (t(this, G), t(this, q, !1)), this._dateAdapter = (t(this, J), _e().datetime?.dateAdapter ?? se), this.#l = t(this, X, this._dateAdapter.today()), this._wideInternal = (t(this, Z), !1), this.#u = t(this, ke, "day"), this._nextCalendarView = (t(this, Ae), "day"), this._keyboardNavigationDayViewParameters = {
|
|
350
360
|
firstDayInView: null,
|
|
351
361
|
lastDayInView: null,
|
|
352
362
|
firstMonthOffset: 0,
|
|
353
363
|
firstMonthLength: 0,
|
|
354
364
|
secondMonthOffset: 0
|
|
355
|
-
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this.#d = t(this,
|
|
365
|
+
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this.#d = t(this, Me, !1), this._language = (t(this, $), new ne(this).withHandler(() => {
|
|
356
366
|
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
357
367
|
})), this._mediaMatcher = new re(this, { [d]: () => this._init() }), this._onSlotChange = () => {
|
|
358
368
|
this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
|
|
@@ -498,11 +508,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
498
508
|
this._selected = a.map((e) => this._dateAdapter.deserialize(e)), this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
|
|
499
509
|
}
|
|
500
510
|
_emitDateSelectedEvent(e) {
|
|
501
|
-
this.dispatchEvent(new
|
|
502
|
-
detail: e,
|
|
503
|
-
composed: !0,
|
|
504
|
-
bubbles: !0
|
|
505
|
-
}));
|
|
511
|
+
this.dispatchEvent(new y(e));
|
|
506
512
|
}
|
|
507
513
|
_emitMonthChange() {
|
|
508
514
|
let e = (this.wide ? [...this._weeks, ...this._nextMonthWeeks] : this._weeks).flat().sort((e, t) => e.value.localeCompare(t.value));
|
|
@@ -1062,4 +1068,4 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
|
|
|
1062
1068
|
};
|
|
1063
1069
|
})();
|
|
1064
1070
|
//#endregion
|
|
1065
|
-
export {
|
|
1071
|
+
export { y as n, v as r, b as t };
|
package/calendar.js
CHANGED
|
@@ -3,9 +3,9 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a,
|
|
7
|
-
import { t as
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-BK4w5GWV.js";
|
|
7
|
+
import { t as c } from "./calendar-cell-base-element-CUG1qYFb.js";
|
|
8
8
|
import "./calendar.pure.js";
|
|
9
|
-
|
|
9
|
+
s.define(), e.define(), t.define(), n.define(), r.define(), i.define();
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { c as SbbCalendarCellBaseElement, e as SbbCalendarDayElement, s as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbDateSelectedEvent, o as SbbMonthChangeEvent };
|
package/calendar.pure.js
CHANGED
|
@@ -3,6 +3,6 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
|
|
|
3
3
|
import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
|
|
4
4
|
import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
|
|
5
5
|
import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
|
|
6
|
-
import { n as a,
|
|
7
|
-
import { t as
|
|
8
|
-
export {
|
|
6
|
+
import { n as a, r as o, t as s } from "./calendar.component-BK4w5GWV.js";
|
|
7
|
+
import { t as c } from "./calendar-cell-base-element-CUG1qYFb.js";
|
|
8
|
+
export { c as SbbCalendarCellBaseElement, e as SbbCalendarDayElement, s as SbbCalendarElement, t as SbbCalendarMonthElement, r as SbbCalendarWeekdayElement, i as SbbCalendarWeeknumberElement, n as SbbCalendarYearElement, a as SbbDateSelectedEvent, o as SbbMonthChangeEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../carousel.component-
|
|
1
|
+
import { t as e } from "../../carousel.component-ZrkGeJgZ.js";
|
|
2
2
|
export { e as SbbCarouselElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, t } from "../../carousel-item.component-B6WmZPkW.js";
|
|
2
|
+
export { t as SbbCarouselItemElement, e as SbbCarouselItemShowEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../carousel-list.component-
|
|
1
|
+
import { t as e } from "../../carousel-list.component-CnZehdy6.js";
|
|
2
2
|
export { e as SbbCarouselListElement };
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { html as e, unsafeCSS as t } from "lit";
|
|
2
2
|
import { SbbElement as n } from "./core.js";
|
|
3
3
|
//#region src/elements/carousel/carousel-item/carousel-item.scss?inline
|
|
4
|
-
var r = ":host{display:flex;scroll-snap-align:start;flex-shrink:0}::slotted(sbb-image){border-radius:unset}", i = class extends
|
|
4
|
+
var r = ":host{display:flex;scroll-snap-align:start;flex-shrink:0}::slotted(sbb-image){border-radius:unset}", i = class extends Event {
|
|
5
|
+
get index() {
|
|
6
|
+
return this._index;
|
|
7
|
+
}
|
|
8
|
+
constructor(e, { index: t }) {
|
|
9
|
+
super(e, {
|
|
10
|
+
bubbles: !0,
|
|
11
|
+
composed: !0
|
|
12
|
+
}), this._index = t;
|
|
13
|
+
}
|
|
14
|
+
}, a = class extends n {
|
|
5
15
|
static {
|
|
6
16
|
this.elementName = "sbb-carousel-item";
|
|
7
17
|
}
|
|
@@ -22,4 +32,4 @@ var r = ":host{display:flex;scroll-snap-align:start;flex-shrink:0}::slotted(sbb-
|
|
|
22
32
|
}
|
|
23
33
|
};
|
|
24
34
|
//#endregion
|
|
25
|
-
export { i as t };
|
|
35
|
+
export { i as n, a as t };
|
|
@@ -2,13 +2,14 @@ import { html as e, unsafeCSS as t } from "lit";
|
|
|
2
2
|
import { SbbElement as n, SbbLanguageController as r, i18nCarouselItemAriaLabel as i, isArrowKeyPressed as a } from "./core.js";
|
|
3
3
|
import { ResizeController as o } from "@lit-labs/observers/resize-controller.js";
|
|
4
4
|
import { IntersectionController as s } from "@lit-labs/observers/intersection-controller.js";
|
|
5
|
+
import { SbbCarouselItemShowEvent as c } from "./carousel/carousel-item/carousel-item.component.js";
|
|
5
6
|
//#region src/elements/carousel/carousel-list/carousel-list.scss?inline
|
|
6
|
-
var
|
|
7
|
+
var l = ":host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);display:flex;height:var(--sbb-carousel-list-height);width:var(--sbb-carousel-list-width, 0);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;outline:none;border-radius:var(--sbb-carousel-inherit-border-radius)}:host(:focus-visible):before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:\"\";position:absolute;height:inherit;width:inherit;border-start-start-radius:var(--sbb-carousel-list-border-radius);border-start-end-radius:var(--sbb-carousel-list-border-radius);border-end-start-radius:var(--sbb-carousel-inherit-border-radius);border-end-end-radius:var(--sbb-carousel-inherit-border-radius)}", u = class extends n {
|
|
7
8
|
static {
|
|
8
9
|
this.elementName = "sbb-carousel-list";
|
|
9
10
|
}
|
|
10
11
|
static {
|
|
11
|
-
this.styles = [t(
|
|
12
|
+
this.styles = [t(l)];
|
|
12
13
|
}
|
|
13
14
|
constructor() {
|
|
14
15
|
super(), this._currentIndex = 0, this._language = new r(this), this._observedCarouselItems = [], this._beforeShowObserver = new s(this, {
|
|
@@ -16,11 +17,7 @@ var c = ":host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);di
|
|
|
16
17
|
callback: (e) => {
|
|
17
18
|
e.filter((e) => e.isIntersecting && e.target !== this).forEach((e) => {
|
|
18
19
|
let t = e.target;
|
|
19
|
-
t.dispatchEvent(new
|
|
20
|
-
detail: { index: this._carouselItems().findIndex((e) => e === t) },
|
|
21
|
-
bubbles: !0,
|
|
22
|
-
composed: !0
|
|
23
|
-
}));
|
|
20
|
+
t.dispatchEvent(new c("beforeshow", { index: this._carouselItems().findIndex((e) => e === t) }));
|
|
24
21
|
});
|
|
25
22
|
},
|
|
26
23
|
config: {
|
|
@@ -34,11 +31,7 @@ var c = ":host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);di
|
|
|
34
31
|
for (let t of e) {
|
|
35
32
|
if (t.target === this) continue;
|
|
36
33
|
let e = t.target;
|
|
37
|
-
t.isIntersecting ? (e.ariaHidden = null, this._currentIndex = this._carouselItems().findIndex((t) => t === e), e.dispatchEvent(new
|
|
38
|
-
detail: { index: this._currentIndex },
|
|
39
|
-
bubbles: !0,
|
|
40
|
-
composed: !0
|
|
41
|
-
}))) : e.ariaHidden = "true";
|
|
34
|
+
t.isIntersecting ? (e.ariaHidden = null, this._currentIndex = this._carouselItems().findIndex((t) => t === e), e.dispatchEvent(new c("show", { index: this._currentIndex }))) : e.ariaHidden = "true";
|
|
42
35
|
}
|
|
43
36
|
},
|
|
44
37
|
config: {
|
|
@@ -85,4 +78,4 @@ var c = ":host{--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);di
|
|
|
85
78
|
}
|
|
86
79
|
};
|
|
87
80
|
//#endregion
|
|
88
|
-
export {
|
|
81
|
+
export { u as t };
|
|
@@ -46,7 +46,7 @@ var p = ":host{display:inline-block;overflow:hidden;border-radius:var(--sbb-caro
|
|
|
46
46
|
}
|
|
47
47
|
constructor() {
|
|
48
48
|
super(), this.#e = t(this, g, !1), this._paginator = (t(this, _), null), this._abortController = null, this._language = new o(this), this._requestedPageIndexByPaginator = -1, this.addEventListener?.("show", (e) => {
|
|
49
|
-
this._requestedPageIndexByPaginator !== -1 && this._requestedPageIndexByPaginator !== e.
|
|
49
|
+
this._requestedPageIndexByPaginator !== -1 && this._requestedPageIndexByPaginator !== e.index || (this._paginator && e.index !== this._paginator.pageIndex && (this._paginator.pageIndex = e.index), this._requestedPageIndexByPaginator = -1);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
connectedCallback() {
|
package/carousel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./carousel-list.component-
|
|
3
|
-
import { t as
|
|
1
|
+
import { n as e, t } from "./carousel-item.component-B6WmZPkW.js";
|
|
2
|
+
import { t as n } from "./carousel-list.component-CnZehdy6.js";
|
|
3
|
+
import { t as r } from "./carousel.component-ZrkGeJgZ.js";
|
|
4
4
|
import "./carousel.pure.js";
|
|
5
|
-
|
|
5
|
+
r.define(), t.define(), n.define();
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { r as SbbCarouselElement, t as SbbCarouselItemElement, e as SbbCarouselItemShowEvent, n as SbbCarouselListElement };
|
package/carousel.pure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./carousel-list.component-
|
|
3
|
-
import { t as
|
|
4
|
-
export {
|
|
1
|
+
import { n as e, t } from "./carousel-item.component-B6WmZPkW.js";
|
|
2
|
+
import { t as n } from "./carousel-list.component-CnZehdy6.js";
|
|
3
|
+
import { t as r } from "./carousel.component-ZrkGeJgZ.js";
|
|
4
|
+
export { r as SbbCarouselElement, t as SbbCarouselItemElement, e as SbbCarouselItemShowEvent, n as SbbCarouselListElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../chip-group.component-
|
|
1
|
+
import { n as e, t } from "../../chip-group.component-BIP7c2G0.js";
|
|
2
2
|
export { t as SbbChipGroupElement, e as SbbChipInputTokenEndEvent };
|
|
@@ -4,10 +4,7 @@ import { property as a } from "lit/decorators.js";
|
|
|
4
4
|
import { SbbDisabledMixin as o, SbbElement as s, SbbFormAssociatedMixin as c, SbbLanguageController as l, SbbNegativeMixin as u, SbbPropertyWatcherController as d, SbbRequiredMixin as f, forceType as p, getNextElementIndex as m, i18nChipGroupInputDescription as h, i18nSelectionRequired as g, isArrowKeyPressed as _ } from "./core.js";
|
|
5
5
|
import { SbbChipElement as v } from "./chip/chip/chip.component.js";
|
|
6
6
|
//#region src/elements/chip/chip-group/chip-group.scss?inline
|
|
7
|
-
var y = ":host{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-chip-group-gap);align-items:center;margin-block:var(--sbb-chip-group-margin-block);line-height:var(--sbb-typo-line-height-text)}:host(:is(:is(:state(size-s),[state--size-s]),:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: 0}:host(:is(:state(size-s),[state--size-s]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-s)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-s),[state--size-s]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-s)}:host(:is(:is(:state(size-l),[state--size-l]),:is(:state(size-m),[state--size-m]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-base-lm)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-m),[state--size-m]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-m)}:host(:is(:state(without-label),[state--without-label]):not(:is(:state(empty),[state--empty]),:is(:state(size-s),[state--size-s]),:is(:state(size-m),[state--size-m]),:is(:state(size-l),[state--size-l]))){--sbb-chip-group-margin-block: var(--sbb-chip-group-margin-block-no-label-not-empty)}:host(:not(:is(:state(without-label),[state--without-label])):is(:state(size-m),[state--size-m]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-m)}:host(:not(:is(:state(without-label),[state--without-label]),:is(:state(empty),[state--empty]),:is(:state(size-s),[state--size-s]),:is(:state(size-m),[state--size-m]),:is(:state(size-l),[state--size-l]))){--sbb-chip-group-margin-block: var(--sbb-chip-group-margin-block-with-label-not-empty)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-l),[state--size-l]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-l)}:host(:not(:is(:state(without-label),[state--without-label])):is(:state(size-l),[state--size-l]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-l)}::slotted(input){flex:1 1 var(--sbb-chip-group-input-min-width);max-height:1.5rem}::slotted(sbb-chip){max-width:100%}", b = class extends
|
|
8
|
-
get detail() {
|
|
9
|
-
return this;
|
|
10
|
-
}
|
|
7
|
+
var y = ":host{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-chip-group-gap);align-items:center;margin-block:var(--sbb-chip-group-margin-block);line-height:var(--sbb-typo-line-height-text)}:host(:is(:is(:state(size-s),[state--size-s]),:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: 0}:host(:is(:state(size-s),[state--size-s]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-s)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-s),[state--size-s]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-s)}:host(:is(:is(:state(size-l),[state--size-l]),:is(:state(size-m),[state--size-m]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-base-lm)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-m),[state--size-m]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-m)}:host(:is(:state(without-label),[state--without-label]):not(:is(:state(empty),[state--empty]),:is(:state(size-s),[state--size-s]),:is(:state(size-m),[state--size-m]),:is(:state(size-l),[state--size-l]))){--sbb-chip-group-margin-block: var(--sbb-chip-group-margin-block-no-label-not-empty)}:host(:not(:is(:state(without-label),[state--without-label])):is(:state(size-m),[state--size-m]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-m)}:host(:not(:is(:state(without-label),[state--without-label]),:is(:state(empty),[state--empty]),:is(:state(size-s),[state--size-s]),:is(:state(size-m),[state--size-m]),:is(:state(size-l),[state--size-l]))){--sbb-chip-group-margin-block: var(--sbb-chip-group-margin-block-with-label-not-empty)}:host(:is(:state(without-label),[state--without-label]):is(:state(size-l),[state--size-l]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-without-label-l)}:host(:not(:is(:state(without-label),[state--without-label])):is(:state(size-l),[state--size-l]):not(:is(:state(empty),[state--empty]))){--sbb-chip-group-margin-block: var(--_sbb-chip-group-margin-block-with-label-l)}::slotted(input){flex:1 1 var(--sbb-chip-group-input-min-width);max-height:1.5rem}::slotted(sbb-chip){max-width:100%}", b = class extends Event {
|
|
11
8
|
constructor(e) {
|
|
12
9
|
super("chipinputtokenend", {
|
|
13
10
|
cancelable: !0,
|
|
@@ -185,9 +182,7 @@ var y = ":host{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-chip-group-g
|
|
|
185
182
|
e && e !== this._inputElement && (this._inputAbortController?.abort(), this._inputAttributeObserver?.disconnect(), this._inputElement = e, this._inputAbortController = new AbortController(), this._inputElement.addEventListener("keydown", (e) => this._onInputKeyDown(e), { signal: this._inputAbortController.signal }), this._inputElement.addEventListener("blur", () => this._onInputBlur(), {
|
|
186
183
|
signal: this._inputAbortController.signal,
|
|
187
184
|
capture: !0
|
|
188
|
-
}), this._inputElement.addEventListener("inputAutocomplete", (e) => {
|
|
189
|
-
this._createChipFromInput("autocomplete", e.detail?.option.value);
|
|
190
|
-
}, { signal: this._inputAbortController.signal }), this._inputAttributeObserver?.observe(this._inputElement, {
|
|
185
|
+
}), this._inputElement.addEventListener("inputAutocomplete", (e) => this._createChipFromInput("autocomplete", e.option.value), { signal: this._inputAbortController.signal }), this._inputAttributeObserver?.observe(this._inputElement, {
|
|
191
186
|
attributes: !0,
|
|
192
187
|
attributeFilter: ["readonly", "disabled"]
|
|
193
188
|
})), this.closest("sbb-form-field") || this._updateSize(null), this.toggleState("empty", this.value.length === 0), this._reactToInputChanges(), this._updateInputDescription(), this.updateFormValue();
|
package/chip.js
CHANGED
package/chip.pure.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "./chip-group.component-
|
|
1
|
+
import { n as e, t } from "./chip-group.component-BIP7c2G0.js";
|
|
2
2
|
import { t as n } from "./chip.component-gcvF3pEX.js";
|
|
3
3
|
export { n as SbbChipElement, t as SbbChipGroupElement, e as SbbChipInputTokenEndEvent };
|
|
@@ -10,7 +10,7 @@ var r = class {
|
|
|
10
10
|
this._pointerDownEventTarget = void 0;
|
|
11
11
|
for (let e of Array.from(this._overlays).reverse()) {
|
|
12
12
|
if (n(e, t) || n(e, r)) break;
|
|
13
|
-
e.dispatchEvent(new
|
|
13
|
+
e.dispatchEvent(new Event("overlayOutsidePointer"));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
}
|