@ctrliq/quantic-components 1.67.2 → 1.67.3
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/dist/index.js.map +1 -1
- package/dist/layout/layout.component.d.ts +2 -4
- package/dist/layout/layout.component.js +22 -23
- package/dist/meta/index.js.map +1 -1
- package/dist/quantic-components.js +21 -22
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +5 -10
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/types/layout/layout.component.d.ts +2 -4
- package/package.json +1 -1
|
@@ -63492,8 +63492,6 @@
|
|
|
63492
63492
|
this.variant = LayoutVariant.Default;
|
|
63493
63493
|
this.hasSidebarSlot = false;
|
|
63494
63494
|
this.hasTitlebarSlot = false;
|
|
63495
|
-
this.hasNavbarSlot = false;
|
|
63496
|
-
this.hasLogoSlot = false;
|
|
63497
63495
|
this._isAsideExpanded = true;
|
|
63498
63496
|
this.handleAsideExpand = (event) => {
|
|
63499
63497
|
this.isAsideExpanded = event.detail.expanded;
|
|
@@ -63581,6 +63579,24 @@
|
|
|
63581
63579
|
}
|
|
63582
63580
|
this.previousIsSmallViewport = this.isSmallViewport;
|
|
63583
63581
|
}
|
|
63582
|
+
static finalizeStyles(styles) {
|
|
63583
|
+
const base = super.finalizeStyles(styles) ?? [];
|
|
63584
|
+
return [
|
|
63585
|
+
...base,
|
|
63586
|
+
r$6(`@layer quantic-header-visibility {
|
|
63587
|
+
.header { display: none; }
|
|
63588
|
+
.header.collapsible,
|
|
63589
|
+
:host(:has([slot="navbar"])) .header,
|
|
63590
|
+
:host(:has([slot="titlebar"])) .header,
|
|
63591
|
+
:host(:has([slot="logo"])) .header { display: revert-layer; }
|
|
63592
|
+
@scope {
|
|
63593
|
+
:scope:has([slot="navbar"]) .header,
|
|
63594
|
+
:scope:has([slot="titlebar"]) .header,
|
|
63595
|
+
:scope:has([slot="logo"]) .header { display: revert-layer; }
|
|
63596
|
+
}
|
|
63597
|
+
}`),
|
|
63598
|
+
];
|
|
63599
|
+
}
|
|
63584
63600
|
get isAsideCollapsible() {
|
|
63585
63601
|
return this.isSmallViewport && this.hasSidebar;
|
|
63586
63602
|
}
|
|
@@ -63590,12 +63606,6 @@
|
|
|
63590
63606
|
get hasTitlebar() {
|
|
63591
63607
|
return this.hasTitlebarSlot;
|
|
63592
63608
|
}
|
|
63593
|
-
get hasHeader() {
|
|
63594
|
-
return (this.isAsideCollapsible ||
|
|
63595
|
-
this.hasTitlebarSlot ||
|
|
63596
|
-
this.hasNavbarSlot ||
|
|
63597
|
-
this.hasLogoSlot);
|
|
63598
|
-
}
|
|
63599
63609
|
render() {
|
|
63600
63610
|
const toggleButton = u$2 `<quantic-button
|
|
63601
63611
|
class="toggle-button"
|
|
@@ -63611,7 +63621,6 @@
|
|
|
63611
63621
|
const logo = u$2 `<slot
|
|
63612
63622
|
name="logo"
|
|
63613
63623
|
class="logo"
|
|
63614
|
-
@slotchange=${onSlotChange((has) => (this.hasLogoSlot = has))}
|
|
63615
63624
|
></slot>`;
|
|
63616
63625
|
const titlebar = u$2 `<slot
|
|
63617
63626
|
class="titlebar"
|
|
@@ -63628,14 +63637,13 @@
|
|
|
63628
63637
|
})}
|
|
63629
63638
|
@expanded-changed=${this.handleAsideExpand}
|
|
63630
63639
|
>
|
|
63631
|
-
<header class
|
|
63640
|
+
<header class=${e$3({ header: true, collapsible: this.isAsideCollapsible })}>
|
|
63632
63641
|
${!this.hasSidebar ? logo : null}
|
|
63633
63642
|
${this.isAsideCollapsible ? toggleButton : null}
|
|
63634
63643
|
${this.isSmallViewport ? null : titlebar}
|
|
63635
63644
|
<slot
|
|
63636
63645
|
class="navbar"
|
|
63637
63646
|
name="navbar"
|
|
63638
|
-
@slotchange=${onSlotChange((has) => (this.hasNavbarSlot = has))}
|
|
63639
63647
|
></slot>
|
|
63640
63648
|
</header>
|
|
63641
63649
|
|
|
@@ -63648,7 +63656,6 @@
|
|
|
63648
63656
|
|
|
63649
63657
|
<div
|
|
63650
63658
|
class="aside-backdrop"
|
|
63651
|
-
?hidden=${!this.hasSidebar}
|
|
63652
63659
|
aria-hidden="true"
|
|
63653
63660
|
@click=${this.toggleAsideExpanded}
|
|
63654
63661
|
></div>
|
|
@@ -63839,7 +63846,7 @@
|
|
|
63839
63846
|
opacity: 0;
|
|
63840
63847
|
}
|
|
63841
63848
|
|
|
63842
|
-
.is-aside-expanded .aside-backdrop {
|
|
63849
|
+
.has-sidebar.is-aside-expanded .aside-backdrop {
|
|
63843
63850
|
display: block;
|
|
63844
63851
|
pointer-events: auto;
|
|
63845
63852
|
opacity: var(--quantic-component-layout-aside-backdrop-opacity);
|
|
@@ -63864,8 +63871,6 @@
|
|
|
63864
63871
|
|
|
63865
63872
|
.header {
|
|
63866
63873
|
grid-area: header;
|
|
63867
|
-
display: flex;
|
|
63868
|
-
align-items: center;
|
|
63869
63874
|
}
|
|
63870
63875
|
|
|
63871
63876
|
.logo {
|
|
@@ -63892,7 +63897,7 @@
|
|
|
63892
63897
|
pointer-events: auto;
|
|
63893
63898
|
}
|
|
63894
63899
|
|
|
63895
|
-
.is-aside-expanded .aside-backdrop {
|
|
63900
|
+
.has-sidebar.is-aside-expanded .aside-backdrop {
|
|
63896
63901
|
display: none;
|
|
63897
63902
|
}
|
|
63898
63903
|
|
|
@@ -63955,12 +63960,6 @@
|
|
|
63955
63960
|
__decorate([
|
|
63956
63961
|
r$2()
|
|
63957
63962
|
], exports.Layout.prototype, "hasTitlebarSlot", void 0);
|
|
63958
|
-
__decorate([
|
|
63959
|
-
r$2()
|
|
63960
|
-
], exports.Layout.prototype, "hasNavbarSlot", void 0);
|
|
63961
|
-
__decorate([
|
|
63962
|
-
r$2()
|
|
63963
|
-
], exports.Layout.prototype, "hasLogoSlot", void 0);
|
|
63964
63963
|
__decorate([
|
|
63965
63964
|
e$5('.aside')
|
|
63966
63965
|
], exports.Layout.prototype, "asideElement", void 0);
|