@salesforcedevs/docs-components 1.3.227-dh6-alpha → 1.3.227-dh8-alpha
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 +1 -1
- package/src/modules/doc/contentLayout/contentLayout.css +1 -1
- package/src/modules/doc/header/header.css +2 -4
- package/src/modules/doc/header/header.html +1 -1
- package/src/modules/doc/header/header.ts +14 -6
- package/src/modules/doc/xmlContent/xmlContent.html +1 -1
- package/src/modules/doc/xmlContent/xmlContent.ts +0 -3
package/package.json
CHANGED
|
@@ -42,7 +42,6 @@ header:not(.has-brand) > .header_l2 {
|
|
|
42
42
|
.has-brand .header_l2_group-title {
|
|
43
43
|
padding: var(--dx-g-spacing-smd) var(--dx-g-spacing-xl)
|
|
44
44
|
calc(var(--dx-g-spacing-smd - 1px)) 0;
|
|
45
|
-
min-width: 320px;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.no-header-content {
|
|
@@ -68,7 +67,7 @@ header:not(.has-brand) > .header_l2 {
|
|
|
68
67
|
margin-right: 0;
|
|
69
68
|
padding: var(--dx-g-spacing-sm) 0 2px
|
|
70
69
|
var(--dx-g-global-header-padding-horizontal);
|
|
71
|
-
|
|
70
|
+
height: 41px;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
.header_l2_group-nav {
|
|
@@ -89,9 +88,8 @@ header:not(.has-brand) > .header_l2 {
|
|
|
89
88
|
|
|
90
89
|
.has-brand .header_l2_group-title {
|
|
91
90
|
margin-right: 0;
|
|
92
|
-
padding: var(--dx-g-spacing-sm) 0
|
|
91
|
+
padding: var(--dx-g-spacing-sm) 0 var(--dx-g-spacing-2xs)
|
|
93
92
|
var(--dx-g-global-header-padding-horizontal);
|
|
94
|
-
min-height: 41px;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
.has-scoped-nav-items > .header_l2 {
|
|
@@ -23,6 +23,8 @@ export default class Header extends HeaderBase {
|
|
|
23
23
|
private _scopedNavItems!: OptionWithNested[];
|
|
24
24
|
private tablet = false;
|
|
25
25
|
private tabletMatchMedia!: MediaQueryList;
|
|
26
|
+
private shouldRender: boolean = false;
|
|
27
|
+
private showDocDivider: boolean = false;
|
|
26
28
|
|
|
27
29
|
protected mobileBreakpoint(): string {
|
|
28
30
|
return MOBILE_MATCH;
|
|
@@ -41,16 +43,22 @@ export default class Header extends HeaderBase {
|
|
|
41
43
|
this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
|
|
42
44
|
|
|
43
45
|
if (
|
|
44
|
-
(
|
|
46
|
+
(window.location.pathname.includes("/docs/") &&
|
|
45
47
|
window.location.pathname !== "/docs/apis") ||
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(this.brand || this.mobile)
|
|
48
|
+
window.location.pathname ===
|
|
49
|
+
"/tableau/embedding-playground/overview" ||
|
|
50
|
+
window.location.host === "localhost:6006" ||
|
|
51
|
+
window.location.host === "dsc-components.herokuapp.com"
|
|
51
52
|
) {
|
|
52
53
|
this.shouldRender = true;
|
|
53
54
|
}
|
|
55
|
+
|
|
56
|
+
if (this.shouldRender && window.location.pathname.includes("/docs/")) {
|
|
57
|
+
if (!this.brand && !this.mobile) {
|
|
58
|
+
this.shouldRender = false;
|
|
59
|
+
this.showDocDivider = true;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
54
62
|
}
|
|
55
63
|
|
|
56
64
|
disconnectedCallback(): void {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
coveo-analytics-token={coveoAnalyticsToken}
|
|
7
7
|
coveo-search-hub={coveoSearchHub}
|
|
8
8
|
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
9
|
-
sidebar-header={
|
|
9
|
+
sidebar-header={docTitle}
|
|
10
10
|
sidebar-content={sidebarContent}
|
|
11
11
|
sidebar-value={sidebarValue}
|
|
12
12
|
onselect={handleSelect}
|
|
@@ -44,7 +44,6 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
44
44
|
@api coveoPublicAccessToken!: string;
|
|
45
45
|
@api coveoAnalyticsToken!: string;
|
|
46
46
|
@api coveoSearchHub!: string;
|
|
47
|
-
@api projectTitle!: string;
|
|
48
47
|
|
|
49
48
|
@api
|
|
50
49
|
get allLanguages(): Array<Language> {
|
|
@@ -546,8 +545,6 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
546
545
|
|
|
547
546
|
if (this.docTitle) {
|
|
548
547
|
this.pageHeader.subtitle = this.docTitle;
|
|
549
|
-
// eslint-disable-next-line @lwc/lwc/no-api-reassignments
|
|
550
|
-
this.projectTitle = this.docTitle;
|
|
551
548
|
}
|
|
552
549
|
|
|
553
550
|
if (this.pdfUrl) {
|