@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
package/stepper.pure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as e } from "./step-label.component-BGSaHafq.js";
|
|
2
|
-
import { t } from "./step.component-
|
|
3
|
-
import { n, t as
|
|
4
|
-
export {
|
|
2
|
+
import { n as t, t as n } from "./step.component-tJh-Pb_E.js";
|
|
3
|
+
import { n as r, t as i } from "./stepper.component-BCl77LVa.js";
|
|
4
|
+
export { i as SbbStepChangeEvent, n as SbbStepElement, e as SbbStepLabelElement, t as SbbStepValidateEvent, r as SbbStepperElement };
|
|
@@ -6,7 +6,32 @@ import { ResizeController as u } from "@lit-labs/observers/resize-controller.js"
|
|
|
6
6
|
import { ref as d } from "lit/directives/ref.js";
|
|
7
7
|
import { tabGroupCommonStyles as f } from "./tabs/common/styles.js";
|
|
8
8
|
//#region src/elements/tabs/tab-group/tab-group.scss?inline
|
|
9
|
-
var p = ":host{--sbb-tab-group-animation-duration: 0s;gap:var(--sbb-tab-group-content-gap)}:host(:is(:state(initialized),[state--initialized])){--sbb-tab-group-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) )}.sbb-tab-group-content{height:var(--sbb-tab-content-height);transition:height var(--sbb-tab-group-animation-duration) var(--sbb-animation-easing)}:host([fixed-height]) ::slotted(sbb-tab){height:100%;overflow:auto}", m =
|
|
9
|
+
var p = ":host{--sbb-tab-group-animation-duration: 0s;gap:var(--sbb-tab-group-content-gap)}:host(:is(:state(initialized),[state--initialized])){--sbb-tab-group-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) )}.sbb-tab-group-content{height:var(--sbb-tab-content-height);transition:height var(--sbb-tab-group-animation-duration) var(--sbb-animation-easing)}:host([fixed-height]) ::slotted(sbb-tab){height:100%;overflow:auto}", m = class extends Event {
|
|
10
|
+
get activeIndex() {
|
|
11
|
+
return this._activeIndex;
|
|
12
|
+
}
|
|
13
|
+
get activeTabLabel() {
|
|
14
|
+
return this._activeTabLabel;
|
|
15
|
+
}
|
|
16
|
+
get activeTab() {
|
|
17
|
+
return this._activeTab;
|
|
18
|
+
}
|
|
19
|
+
get previousIndex() {
|
|
20
|
+
return this._previousIndex;
|
|
21
|
+
}
|
|
22
|
+
get previousTabLabel() {
|
|
23
|
+
return this._previousTabLabel;
|
|
24
|
+
}
|
|
25
|
+
get previousTab() {
|
|
26
|
+
return this._previousTab;
|
|
27
|
+
}
|
|
28
|
+
constructor({ activeIndex: e, activeTabLabel: t, activeTab: n, previousIndex: r, previousTabLabel: i, previousTab: a }) {
|
|
29
|
+
super("tabchange", {
|
|
30
|
+
bubbles: !0,
|
|
31
|
+
composed: !0
|
|
32
|
+
}), this._activeIndex = e, this._activeTabLabel = t, this._activeTab = n, this._previousIndex = r, this._previousTabLabel = i, this._previousTab = a;
|
|
33
|
+
}
|
|
34
|
+
}, h = (() => {
|
|
10
35
|
let m = a, h, g = [], _ = [], v, y = [], b = [], x, S = [], C = [];
|
|
11
36
|
return class extends m {
|
|
12
37
|
static {
|
|
@@ -176,4 +201,4 @@ var p = ":host{--sbb-tab-group-animation-duration: 0s;gap:var(--sbb-tab-group-co
|
|
|
176
201
|
};
|
|
177
202
|
})();
|
|
178
203
|
//#endregion
|
|
179
|
-
export { m as t };
|
|
204
|
+
export { h as n, m as t };
|
|
@@ -5,19 +5,20 @@ import { SbbDisabledMixin as i, SbbElement as a, SbbPropertyWatcherController as
|
|
|
5
5
|
import { html as l, unsafeStatic as u } from "lit/static-html.js";
|
|
6
6
|
import { SbbIconNameMixin as d } from "./icon.pure.js";
|
|
7
7
|
import { tabLabelCommonStyles as f } from "./tabs/common/styles.js";
|
|
8
|
+
import { SbbTabChangeEvent as p } from "./tabs/tab-group/tab-group.component.js";
|
|
8
9
|
//#region src/elements/tabs/tab-label/tab-label.scss?inline
|
|
9
|
-
var
|
|
10
|
-
let
|
|
11
|
-
return class extends
|
|
10
|
+
var m = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tab-label-outline-border-radius-internal: calc( var(--sbb-tab-label-outline-border-radius) - var(--sbb-focus-outline-offset) )}:host(:is(:is(:state(size-s),[state--size-s]),[size=s])){--sbb-tab-label-height: var(--sbb-size-element-xs);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xxxs);--sbb-tab-label-font-size: var(--sbb-text-font-size-s)}:host(:is(:is(:state(size-l),[state--size-l]),[size=l])){--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-font-size: var(--sbb-text-font-size-m)}:host(:is(:is(:state(size-xl),[state--size-xl]),[size=xl])){--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-font-size: var(--sbb-text-font-size-xl)}:host(sbb-tab-label),:host(sbb-tab-nav-bar) ::slotted(a){pointer-events:var(--sbb-tab-label-pointer-events, unset)}@media(forced-colors:active){:host(sbb-tab-label),:host(sbb-tab-nav-bar) ::slotted(a){--sbb-tab-label-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host(sbb-tab-nav-bar) ::slotted(a),:host(sbb-tab-label) .sbb-tab-label{position:relative;display:flex;align-items:center;gap:var(--sbb-tab-label-gap);color:var(--sbb-tab-label-color);margin:0;padding-inline:var(--sbb-tab-label-inline-padding);min-height:var(--sbb-tab-label-height);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);font-size:var(--sbb-tab-label-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);line-height:var(--sbb-typo-line-height-text);font-weight:var(--sbb-tab-label-font-weight);text-decoration:var(--sbb-tab-label-text-decoration)}:host(sbb-tab-nav-bar) ::slotted(a):after,:host(sbb-tab-label) .sbb-tab-label:after{position:absolute;content:\"\";inset-inline:0;inset-block-end:0;height:var(--sbb-tab-label-marker-thickness);background-color:var(--sbb-tab-label-color);scale:var(--sbb-tab-label-marker-scale, 0);transition-duration:var(--sbb-tab-label-animation-duration);transition-timing-function:var(--sbb-tab-label-animation-easing);transition-property:scale,background-color}:host(sbb-tab-nav-bar) .sbb-tab-nav-bar>[data-has-divider],:host(sbb-tab-label:is(:state(has-divider),[state--has-divider])){position:relative}:host(sbb-tab-nav-bar) .sbb-tab-nav-bar>[data-has-divider]:before,:host(sbb-tab-label:is(:state(has-divider),[state--has-divider])):before{content:\"\";position:absolute;inset-inline-start:0;inset-block-end:0;width:var(--sbb-tab-group-width);height:var(--sbb-border-width-1x);background-color:var(--sbb-tab-label-line-color)}:host(sbb-tab-nav-bar) ::slotted(a.sbb-disabled),:host(sbb-tab-label[disabled]){--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-text-decoration: line-through}@media(forced-colors:active){:host(sbb-tab-nav-bar) ::slotted(a.sbb-disabled),:host(sbb-tab-label[disabled]){--sbb-tab-label-color: GrayText;--sbb-tab-label-amount-color: GrayText}}:host(sbb-tab-nav-bar) ::slotted(a.sbb-active:not(.sbb-disabled)),:host(sbb-tab-label[active]:not([disabled])){--sbb-tab-label-color: var(--sbb-color-3);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-marker-scale: 1}@media(forced-colors:active){:host(sbb-tab-nav-bar) ::slotted(a.sbb-active:not(.sbb-disabled)),:host(sbb-tab-label[active]:not([disabled])){--sbb-tab-label-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}@media(any-hover:hover){:host(sbb-tab-nav-bar) ::slotted(a:hover:not(.sbb-disabled)),:host(sbb-tab-label:hover:not([disabled])){--sbb-tab-label-marker-scale: 1}}:host(sbb-tab-nav-bar) ::slotted(a:active:not(.sbb-disabled)),:host(sbb-tab-label:active){--sbb-tab-label-color: var(--sbb-color-3)}@media(forced-colors:active){:host(sbb-tab-nav-bar) ::slotted(a:active:not(.sbb-disabled)),:host(sbb-tab-label:active){--sbb-tab-label-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host(sbb-tab-nav-bar) ::slotted(a:focus-visible),:host(sbb-tab-label:focus-visible) .sbb-tab-label{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);border-radius:var(--sbb-tab-label-outline-border-radius-internal)}:host{display:inline-block;max-width:100%;outline:none!important}.sbb-tab-label{cursor:var(--sbb-tab-label-cursor);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.sbb-tab-label__icon{display:flex;flex-shrink:0}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-tab-label__icon{display:none}.sbb-tab-label__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:not(:is(:state(slotted),[state--slotted]))) .sbb-tab-label__text{display:none}.sbb-tab-label__amount{margin:0;color:var(--sbb-tab-label-amount-color);font-weight:400;text-decoration:var(--sbb-tab-label-text-decoration)}:host(:not(:is(:state(slotted-amount),[state--slotted-amount]),[amount])) .sbb-tab-label__amount{display:none}", h = (() => {
|
|
11
|
+
let h = i(d(a)), g, _ = [], v = [], y, b = [], x = [], S, C = [], w = [];
|
|
12
|
+
return class extends h {
|
|
12
13
|
static {
|
|
13
|
-
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
14
|
-
|
|
14
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(h[Symbol.metadata] ?? null) : void 0;
|
|
15
|
+
g = [r()], y = [s(), r({
|
|
15
16
|
reflect: !0,
|
|
16
17
|
type: Boolean
|
|
17
|
-
})],
|
|
18
|
+
})], S = [s(), r({
|
|
18
19
|
reflect: !0,
|
|
19
20
|
converter: c
|
|
20
|
-
})], e(this, null,
|
|
21
|
+
})], e(this, null, g, {
|
|
21
22
|
kind: "accessor",
|
|
22
23
|
name: "level",
|
|
23
24
|
static: !1,
|
|
@@ -30,7 +31,7 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
metadata: t
|
|
33
|
-
},
|
|
34
|
+
}, _, v), e(this, null, y, {
|
|
34
35
|
kind: "accessor",
|
|
35
36
|
name: "active",
|
|
36
37
|
static: !1,
|
|
@@ -43,7 +44,7 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
metadata: t
|
|
46
|
-
},
|
|
47
|
+
}, b, x), e(this, null, S, {
|
|
47
48
|
kind: "accessor",
|
|
48
49
|
name: "amount",
|
|
49
50
|
static: !1,
|
|
@@ -56,7 +57,7 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
metadata: t
|
|
59
|
-
},
|
|
60
|
+
}, C, w), t && Object.defineProperty(this, Symbol.metadata, {
|
|
60
61
|
enumerable: !0,
|
|
61
62
|
configurable: !0,
|
|
62
63
|
writable: !0,
|
|
@@ -70,7 +71,7 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
70
71
|
this.role = "tab";
|
|
71
72
|
}
|
|
72
73
|
static {
|
|
73
|
-
this.styles = [f, n(
|
|
74
|
+
this.styles = [f, n(m)];
|
|
74
75
|
}
|
|
75
76
|
#e;
|
|
76
77
|
get level() {
|
|
@@ -100,7 +101,7 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
100
101
|
return this.closest("sbb-tab-group");
|
|
101
102
|
}
|
|
102
103
|
constructor() {
|
|
103
|
-
super(), this._selected = !1, this._previousSize = null, this.#e = t(this,
|
|
104
|
+
super(), this._selected = !1, this._previousSize = null, this.#e = t(this, _, "1"), this.#t = (t(this, v), t(this, b, !1)), this.#n = (t(this, x), t(this, C, "")), t(this, w), this.addEventListener("click", () => this.activate()), this.addController(new o(this, () => this.group, { size: (e) => {
|
|
104
105
|
this._previousSize && this.internals.states.delete(`size-${this._previousSize}`), this._previousSize = e.size ?? null, this._previousSize && this.internals.states.add(`size-${this._previousSize}`);
|
|
105
106
|
} }));
|
|
106
107
|
}
|
|
@@ -116,21 +117,21 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
116
117
|
activate() {
|
|
117
118
|
if (this.disabled) return;
|
|
118
119
|
let e = this.group?.labels || [], t = e.find((e) => e._selected);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
detail: {
|
|
120
|
+
if (t !== this) {
|
|
121
|
+
t?.deactivate(), this.active = !0, this.tab?.activate(), this._selected = !0, this.tabIndex = 0, this.tab?.dispatchEvent(new Event("active", {
|
|
122
|
+
bubbles: !0,
|
|
123
|
+
composed: !0
|
|
124
|
+
}));
|
|
125
|
+
let n = {
|
|
126
126
|
activeIndex: e.findIndex((e) => e === this),
|
|
127
127
|
activeTabLabel: this,
|
|
128
128
|
activeTab: this.tab,
|
|
129
129
|
previousIndex: e.findIndex((e) => e === t),
|
|
130
130
|
previousTabLabel: t,
|
|
131
131
|
previousTab: t?.tab
|
|
132
|
-
}
|
|
133
|
-
|
|
132
|
+
};
|
|
133
|
+
this.group?.dispatchEvent(new p(n));
|
|
134
|
+
}
|
|
134
135
|
}
|
|
135
136
|
linkToTab() {
|
|
136
137
|
this.tab && (this.internals.ariaControlsElements = [this.tab]);
|
|
@@ -154,4 +155,4 @@ var p = ":host{--sbb-tab-label-animation-duration: var( --sbb-disable-animation-
|
|
|
154
155
|
};
|
|
155
156
|
})();
|
|
156
157
|
//#endregion
|
|
157
|
-
export {
|
|
158
|
+
export { h as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { e as SbbTabGroupElement };
|
|
1
|
+
import { n as e, t } from "../../tab-group.component-CDhggNpe.js";
|
|
2
|
+
export { t as SbbTabChangeEvent, e as SbbTabGroupElement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../tab-label.component-
|
|
1
|
+
import { t as e } from "../../tab-label.component-BuF2qt1T.js";
|
|
2
2
|
export { e as SbbTabLabelElement };
|
package/tabs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./tab-label.component-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
1
|
+
import { n as e, t } from "./tab-group.component-CDhggNpe.js";
|
|
2
|
+
import { t as n } from "./tab-label.component-BuF2qt1T.js";
|
|
3
|
+
import { t as r } from "./tab-nav-bar.component-FT2W0urU.js";
|
|
4
|
+
import { t as i } from "./tab.component-D6hfhlZw.js";
|
|
5
|
+
import { n as a, t as o } from "./styles-DisU4TWi.js";
|
|
6
6
|
import "./tabs.pure.js";
|
|
7
|
-
|
|
7
|
+
i.define(), e.define(), n.define(), r.define();
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export { t as SbbTabChangeEvent, i as SbbTabElement, e as SbbTabGroupElement, n as SbbTabLabelElement, r as SbbTabNavBarElement, o as tabGroupCommonStyles, a as tabLabelCommonStyles };
|
package/tabs.pure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./tab-label.component-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
export {
|
|
1
|
+
import { n as e, t } from "./tab-group.component-CDhggNpe.js";
|
|
2
|
+
import { t as n } from "./tab-label.component-BuF2qt1T.js";
|
|
3
|
+
import { t as r } from "./tab-nav-bar.component-FT2W0urU.js";
|
|
4
|
+
import { t as i } from "./tab.component-D6hfhlZw.js";
|
|
5
|
+
import { n as a, t as o } from "./styles-DisU4TWi.js";
|
|
6
|
+
export { t as SbbTabChangeEvent, i as SbbTabElement, e as SbbTabGroupElement, n as SbbTabLabelElement, r as SbbTabNavBarElement, o as tabGroupCommonStyles, a as tabLabelCommonStyles };
|