@salesforcedevs/docs-components 1.14.8-ldh-alpha7 → 1.14.8-ldh-alpha8
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/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</a>
|
|
32
32
|
</div>
|
|
33
33
|
<div
|
|
34
|
-
lwc:if={
|
|
34
|
+
lwc:if={showScopedNavItems}
|
|
35
35
|
class="header_l2_group header_l2_group-nav"
|
|
36
36
|
>
|
|
37
37
|
<div
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</header>
|
|
50
50
|
</dx-brand-theme-provider>
|
|
51
51
|
</template>
|
|
52
|
-
<template lwc:if={
|
|
52
|
+
<template lwc:if={shouldHideHeader}>
|
|
53
53
|
<div class="no-header-content"></div>
|
|
54
54
|
</template>
|
|
55
55
|
</template>
|
|
@@ -57,7 +57,7 @@ export default class Header extends HeaderBase {
|
|
|
57
57
|
return MOBILE_MATCH;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
private get
|
|
60
|
+
private get showScopedNavItems(): boolean {
|
|
61
61
|
return (
|
|
62
62
|
this.scopedNavItems &&
|
|
63
63
|
this.scopedNavItems.length > 0 &&
|
|
@@ -69,7 +69,7 @@ export default class Header extends HeaderBase {
|
|
|
69
69
|
* This function returns true if the hideDocHeader is true and the view is not mobile.
|
|
70
70
|
* Also we need to show the header border in case the doc is hidden or if the brand information doesn't exists.
|
|
71
71
|
*/
|
|
72
|
-
private get
|
|
72
|
+
private get shouldHideHeader(): boolean {
|
|
73
73
|
return (this.hideDocHeader && !this.mobile) || this.showDocDivider;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -82,7 +82,7 @@ export default class Header extends HeaderBase {
|
|
|
82
82
|
this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
|
|
83
83
|
|
|
84
84
|
if (
|
|
85
|
-
(!this.
|
|
85
|
+
(!this.shouldHideHeader &&
|
|
86
86
|
window.location.pathname.includes("/docs/") &&
|
|
87
87
|
window.location.pathname !== "/docs/apis") ||
|
|
88
88
|
window.location.pathname ===
|
|
@@ -92,11 +92,7 @@ export default class Header extends HeaderBase {
|
|
|
92
92
|
this.shouldRender = true;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
if (
|
|
96
|
-
!this.isHideHeader &&
|
|
97
|
-
this.shouldRender &&
|
|
98
|
-
window.location.pathname.includes("/docs/")
|
|
99
|
-
) {
|
|
95
|
+
if (this.shouldRender && window.location.pathname.includes("/docs/")) {
|
|
100
96
|
if (!this.brand && !this.mobile) {
|
|
101
97
|
this.shouldRender = false;
|
|
102
98
|
this.showDocDivider = true;
|
|
@@ -118,7 +114,7 @@ export default class Header extends HeaderBase {
|
|
|
118
114
|
protected additionalClasses(): string {
|
|
119
115
|
return cx(
|
|
120
116
|
this.brand && "has-brand",
|
|
121
|
-
this.
|
|
117
|
+
this.showScopedNavItems && "has-scoped-nav-items"
|
|
122
118
|
);
|
|
123
119
|
}
|
|
124
120
|
}
|