@salesforcedevs/dx-components 1.3.307-alpha.0 → 1.3.307-nav-close-1
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/dx/agenda/agenda.html +1 -1
- package/src/modules/dx/agenda/agenda.ts +1 -1
- package/src/modules/dx/breadcrumbs/breadcrumbs.html +1 -1
- package/src/modules/dx/breadcrumbs/breadcrumbs.ts +11 -9
- package/src/modules/dx/cardBlogPost/cardBlogPost.html +1 -1
- package/src/modules/dx/cardBlogPost/cardBlogPost.ts +4 -4
- package/src/modules/dx/cardCallout/cardCallout.html +1 -1
- package/src/modules/dx/cardCallout/cardCallout.ts +3 -3
- package/src/modules/dx/cardClickthrough/cardClickthrough.html +1 -1
- package/src/modules/dx/cardClickthrough/cardClickthrough.ts +3 -3
- package/src/modules/dx/cardContent/cardContent.html +1 -1
- package/src/modules/dx/cardContent/cardContent.ts +2 -2
- package/src/modules/dx/cardDemo/cardDemo.html +1 -1
- package/src/modules/dx/cardDemo/cardDemo.ts +1 -1
- package/src/modules/dx/cardDocs/cardDocs.html +2 -8
- package/src/modules/dx/cardDocs/cardDocs.ts +6 -6
- package/src/modules/dx/cardEvent/cardEvent.html +1 -1
- package/src/modules/dx/cardEvent/cardEvent.ts +1 -1
- package/src/modules/dx/cardExpanded/cardExpanded.html +2 -2
- package/src/modules/dx/cardGrid/cardGrid.html +1 -1
- package/src/modules/dx/cardGridDocs/cardGridDocs.html +2 -2
- package/src/modules/dx/cardMinimal/cardMinimal.html +1 -1
- package/src/modules/dx/cardNews/cardNews.html +1 -1
- package/src/modules/dx/cardNews/cardNews.ts +2 -2
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +1 -1
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +1 -1
- package/src/modules/dx/cardSmall/cardSmall.html +2 -2
- package/src/modules/dx/cardSmall/cardSmall.ts +1 -1
- package/src/modules/dx/cardTitle/cardTitle.ts +4 -4
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +1 -1
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +1 -1
- package/src/modules/dx/cardTrial/cardTrial.html +2 -2
- package/src/modules/dx/cardTrial/cardTrial.ts +1 -1
- package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.html +2 -2
- package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.ts +2 -2
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +1 -1
- package/src/modules/dx/codeBlock/codeBlock.ts +1 -1
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.html +1 -1
- package/src/modules/dx/embeddedVideo/embeddedVideo.html +1 -1
- package/src/modules/dx/embeddedVideo/embeddedVideo.ts +1 -1
- package/src/modules/dx/emptyState/emptyState.html +1 -1
- package/src/modules/dx/emptyState/emptyState.ts +1 -1
- package/src/modules/dx/faq/faq.html +1 -1
- package/src/modules/dx/faq/faq.ts +1 -1
- package/src/modules/dx/feature/feature.html +4 -4
- package/src/modules/dx/feature/feature.ts +2 -2
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +4 -4
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +3 -3
- package/src/modules/dx/featuresList/featuresList.html +1 -1
- package/src/modules/dx/featuresList/featuresList.ts +1 -1
- package/src/modules/dx/featuresListHeader/featuresListHeader.ts +6 -6
- package/src/modules/dx/filterMenu/filterMenu.html +1 -1
- package/src/modules/dx/filterMenu/filterMenu.ts +4 -5
- package/src/modules/dx/groupText/groupText.html +1 -1
- package/src/modules/dx/groupText/groupText.ts +2 -2
- package/src/modules/dx/helmet/helmet.html +2 -2
- package/src/modules/dx/helmet/helmet.ts +2 -2
- package/src/modules/dx/interactiveImage/interactiveImage.html +2 -2
- package/src/modules/dx/interactiveImage/interactiveImage.ts +2 -2
- package/src/modules/dx/mainContentHeader/mainContentHeader.html +1 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.ts +5 -5
- package/src/modules/dx/searchResults/searchResults.html +2 -2
- package/src/modules/dx/section/section.html +2 -2
- package/src/modules/dx/section/section.ts +3 -3
- package/src/modules/dx/sectionBanner/sectionBanner.html +2 -2
- package/src/modules/dx/sectionBanner/sectionBanner.ts +2 -2
- package/src/modules/dx/sidebar/sidebar.html +3 -2
- package/src/modules/dx/sidebarOld/sidebarOld.html +2 -1
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +2 -2
- package/src/modules/dx/toc/toc.html +1 -1
- package/src/modules/dx/toc/toc.ts +2 -2
- package/src/modules/dxBaseElements/archiveCard/archiveCard.ts +1 -1
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container">
|
|
3
|
-
<h2 class="faq-title dx-text-display-4">{
|
|
3
|
+
<h2 class="faq-title dx-text-display-4">{title}</h2>
|
|
4
4
|
<div class="faq-content" part="content">
|
|
5
5
|
<template iterator:it={options}>
|
|
6
6
|
<details key={it.value.title} open={it.first}>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<section class={sectionClass}>
|
|
3
3
|
<div class="description">
|
|
4
4
|
<h2 if:true={hasLabel} class="dx-text-display-8 label">{label}</h2>
|
|
5
|
-
<h3 class="dx-text-display-4">{
|
|
5
|
+
<h3 class="dx-text-display-4">{title}</h3>
|
|
6
6
|
<div class="body dx-text-body-2">
|
|
7
7
|
<slot></slot>
|
|
8
8
|
</div>
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
<img
|
|
22
22
|
class="image-display"
|
|
23
23
|
src="https://a.sfdcstatic.com/developer-website/images/featured-demo-art-blank.svg"
|
|
24
|
-
alt={
|
|
24
|
+
alt={title}
|
|
25
25
|
/>
|
|
26
26
|
<div class="image-container">
|
|
27
|
-
<img src={imageSrc} alt={
|
|
27
|
+
<img src={imageSrc} alt={title} />
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
<div if:false={isDisplay} class="image">
|
|
31
|
-
<img src={imageSrc} alt={
|
|
31
|
+
<img src={imageSrc} alt={title} />
|
|
32
32
|
</div>
|
|
33
33
|
</section>
|
|
34
34
|
</template>
|
|
@@ -3,7 +3,7 @@ import { track } from "dxUtils/analytics";
|
|
|
3
3
|
|
|
4
4
|
export default class Feature extends LightningElement {
|
|
5
5
|
@api label!: string;
|
|
6
|
-
@api
|
|
6
|
+
@api title!: string;
|
|
7
7
|
@api imageSrc!: string;
|
|
8
8
|
@api buttonHref: string | null = null;
|
|
9
9
|
@api buttonLabel: string | null = null;
|
|
@@ -36,7 +36,7 @@ export default class Feature extends LightningElement {
|
|
|
36
36
|
handleClick(event: Event) {
|
|
37
37
|
const payload = {
|
|
38
38
|
click_text: this.buttonLabel,
|
|
39
|
-
element_title: this.
|
|
39
|
+
element_title: this.title,
|
|
40
40
|
click_url: this.buttonHref,
|
|
41
41
|
element_type: "button",
|
|
42
42
|
content_category: "cta"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
onmouseenter={setLinkHovered}
|
|
19
19
|
onmouseleave={setLinkInactive}
|
|
20
20
|
>
|
|
21
|
-
{
|
|
21
|
+
{title}
|
|
22
22
|
</a>
|
|
23
|
-
<template if:false={href}>{
|
|
23
|
+
<template if:false={href}>{title}</template>
|
|
24
24
|
</h1>
|
|
25
25
|
</template>
|
|
26
26
|
<template if:true={labelAsPrimaryHeading}>
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
onmouseenter={setLinkHovered}
|
|
34
34
|
onmouseleave={setLinkInactive}
|
|
35
35
|
>
|
|
36
|
-
{
|
|
36
|
+
{title}
|
|
37
37
|
</a>
|
|
38
|
-
<template if:false={href}>{
|
|
38
|
+
<template if:false={href}>{title}</template>
|
|
39
39
|
</h2>
|
|
40
40
|
</template>
|
|
41
41
|
<div class="authors" if:true={authors}>
|
|
@@ -24,7 +24,7 @@ export default class FeaturedContentHeader extends LightningElement {
|
|
|
24
24
|
@api dark: boolean = false;
|
|
25
25
|
@api href?: string;
|
|
26
26
|
@api target?: string | null = null;
|
|
27
|
-
@api
|
|
27
|
+
@api title!: string;
|
|
28
28
|
@api backgroundImg?: string;
|
|
29
29
|
@api backgroundImgId:
|
|
30
30
|
| "trees"
|
|
@@ -215,9 +215,9 @@ export default class FeaturedContentHeader extends LightningElement {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
track(event.target!, trackEvent, {
|
|
218
|
-
media_name: this.
|
|
218
|
+
media_name: this.title,
|
|
219
219
|
media_action: action,
|
|
220
|
-
media_episode: this.
|
|
220
|
+
media_episode: this.title.split(":")[0],
|
|
221
221
|
media_percentage_played: percentagePlayed,
|
|
222
222
|
media_seconds_played: timePlayed,
|
|
223
223
|
media_type: "podcast"
|
|
@@ -6,7 +6,7 @@ import { toDxColor } from "dxUtils/css";
|
|
|
6
6
|
|
|
7
7
|
export default class FeaturesListHeader extends LightningElement {
|
|
8
8
|
private _displayTitle: string | null = null;
|
|
9
|
-
@api
|
|
9
|
+
@api title!: string;
|
|
10
10
|
@api subtitle?: string;
|
|
11
11
|
@api ctaLabel!: string;
|
|
12
12
|
@api ctaLabelSecondary?: string;
|
|
@@ -32,7 +32,7 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
32
32
|
get displayTitle() {
|
|
33
33
|
return typeof this._displayTitle === "string"
|
|
34
34
|
? this._displayTitle
|
|
35
|
-
: this.
|
|
35
|
+
: this.title;
|
|
36
36
|
}
|
|
37
37
|
set displayTitle(value: string | null) {
|
|
38
38
|
this._displayTitle = value;
|
|
@@ -57,12 +57,12 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
57
57
|
click_text: this.ctaLabel,
|
|
58
58
|
click_url: `${window.location.origin}${this.ctaHref}`,
|
|
59
59
|
element_type: "button",
|
|
60
|
-
element_title: this.
|
|
60
|
+
element_title: this.title,
|
|
61
61
|
content_category: "cta"
|
|
62
62
|
});
|
|
63
63
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
64
64
|
click_text: this.ctaLabel,
|
|
65
|
-
element_title: this.
|
|
65
|
+
element_title: this.title,
|
|
66
66
|
click_url: `${window.location.origin}${this.ctaHref}`,
|
|
67
67
|
element_type: "link",
|
|
68
68
|
content_category: "cta"
|
|
@@ -76,12 +76,12 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
76
76
|
click_text: this.ctaLabelSecondary,
|
|
77
77
|
click_url: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
78
78
|
element_type: "button",
|
|
79
|
-
element_title: this.
|
|
79
|
+
element_title: this.title,
|
|
80
80
|
content_category: "cta"
|
|
81
81
|
});
|
|
82
82
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
83
83
|
click_text: this.ctaLabelSecondary,
|
|
84
|
-
element_title: this.
|
|
84
|
+
element_title: this.title,
|
|
85
85
|
click_url: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
86
86
|
element_type: "link",
|
|
87
87
|
content_category: "cta"
|
|
@@ -8,7 +8,7 @@ interface Option {
|
|
|
8
8
|
}
|
|
9
9
|
export default class FilterMenu extends LightningElement {
|
|
10
10
|
@api name: string = "";
|
|
11
|
-
@api
|
|
11
|
+
@api title: string = "Filter Menu";
|
|
12
12
|
@api variant: string = "base";
|
|
13
13
|
@api filtersDatesLoading?: boolean;
|
|
14
14
|
|
|
@@ -80,10 +80,9 @@ export default class FilterMenu extends LightningElement {
|
|
|
80
80
|
|
|
81
81
|
private setIntedeterminateStatus(checkbox: any, value: boolean) {
|
|
82
82
|
if ("isYear" in checkbox.value && !checkbox.value.isYear) {
|
|
83
|
-
const yearCheckBox: any =
|
|
84
|
-
checkbox
|
|
85
|
-
|
|
86
|
-
);
|
|
83
|
+
const yearCheckBox: any = checkbox.parentElement.parentElement.parentElement.querySelector(
|
|
84
|
+
".checkbox-year"
|
|
85
|
+
);
|
|
87
86
|
yearCheckBox.indeterminate = value;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class={className}>
|
|
3
3
|
<span if:true={label} class="label dx-text-display-8">{label}</span>
|
|
4
4
|
<div class={titleClassname} role="heading" aria-level={titleAriaLevel}>
|
|
5
|
-
{
|
|
5
|
+
{title}
|
|
6
6
|
</div>
|
|
7
7
|
<span class="subtitle dx-text-display-8" if:true={hasSubtitle}>
|
|
8
8
|
<span if:true={owner}>{owner}</span>
|
|
@@ -16,7 +16,7 @@ const titleClasses = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export default class GroupText extends LightningElement {
|
|
19
|
-
@api
|
|
19
|
+
@api title!: string;
|
|
20
20
|
@api body?: string;
|
|
21
21
|
@api owner?: string;
|
|
22
22
|
@api dateTime?: string;
|
|
@@ -93,7 +93,7 @@ export default class GroupText extends LightningElement {
|
|
|
93
93
|
: window.location.origin + event.currentTarget.href
|
|
94
94
|
}`,
|
|
95
95
|
element_type: "button",
|
|
96
|
-
element_title: this.
|
|
96
|
+
element_title: this.title,
|
|
97
97
|
content_category: "cta"
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
version="1.1"
|
|
14
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
15
15
|
>
|
|
16
|
-
<title>{
|
|
16
|
+
<title>{title}</title>
|
|
17
17
|
<g
|
|
18
18
|
id="Section-/-Nav-/-Footer-/-Architects"
|
|
19
19
|
transform="translate(-148.000000, -447.000000)"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
></path>
|
|
26
26
|
</g>
|
|
27
27
|
</svg>
|
|
28
|
-
<span class="home-link-title">{
|
|
28
|
+
<span class="home-link-title">{title}</span>
|
|
29
29
|
</a>
|
|
30
30
|
<span>/</span>
|
|
31
31
|
<span if:true={currentPropertyHref}>
|
|
@@ -3,7 +3,7 @@ import cx from "classnames";
|
|
|
3
3
|
import { HelmetVariant } from "typings/custom";
|
|
4
4
|
|
|
5
5
|
export default class Helmet extends LightningElement {
|
|
6
|
-
@api
|
|
6
|
+
@api title: string = "Salesforce";
|
|
7
7
|
@api currentPropertyTitle: string = "Heroku";
|
|
8
8
|
@api currentPropertyHref?: string;
|
|
9
9
|
@api variant: HelmetVariant = "neutral";
|
|
@@ -14,7 +14,7 @@ export default class Helmet extends LightningElement {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
private get titleAlt() {
|
|
17
|
-
return `Link to ${this.
|
|
17
|
+
return `Link to ${this.title}`;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
private get currentPropertyAlt() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<article>
|
|
3
3
|
<header>
|
|
4
|
-
<span>{
|
|
4
|
+
<span>{title}</span>
|
|
5
5
|
<div class="controls">
|
|
6
6
|
<template if:true={isSingleDownload}>
|
|
7
7
|
<dx-button
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
</header>
|
|
28
28
|
<div class="body">
|
|
29
|
-
<img src={featuredSrc} alt={
|
|
29
|
+
<img src={featuredSrc} alt={title} />
|
|
30
30
|
</div>
|
|
31
31
|
</article>
|
|
32
32
|
</template>
|
|
@@ -5,7 +5,7 @@ const FILENAME_FROM_URL_REGEX = /(?=\w+\.\w{3,4}$).+/;
|
|
|
5
5
|
const EXTENSION_FROM_URL_REGEX = /\.([^.]*)$/;
|
|
6
6
|
|
|
7
7
|
export default class InteractiveImage extends LightningElement {
|
|
8
|
-
@api
|
|
8
|
+
@api title!: string;
|
|
9
9
|
@api featuredSrc!: string;
|
|
10
10
|
|
|
11
11
|
@api
|
|
@@ -24,7 +24,7 @@ export default class InteractiveImage extends LightningElement {
|
|
|
24
24
|
// Ensure that we have some URLs
|
|
25
25
|
if (!urls || urls.length === 0) {
|
|
26
26
|
throw new Error(
|
|
27
|
-
`No download url found for interactive image with title "${this.
|
|
27
|
+
`No download url found for interactive image with title "${this.title}"`
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
// Prepare download options with labels
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container" style={style}>
|
|
3
3
|
<div class={textStyle}>
|
|
4
|
-
<h1 class="heading dx-text-display-2">{
|
|
4
|
+
<h1 class="heading dx-text-display-2">{title}</h1>
|
|
5
5
|
<span class="body dx-text-body-1">{body}</span>
|
|
6
6
|
<span lwc:if={subtitle} class="subtitle dx-text-display-7">
|
|
7
7
|
{subtitle}
|
|
@@ -3,7 +3,7 @@ import cx from "classnames";
|
|
|
3
3
|
import { track } from "dxUtils/analytics";
|
|
4
4
|
|
|
5
5
|
export default class MainContentHeader extends LightningElement {
|
|
6
|
-
@api
|
|
6
|
+
@api title!: string;
|
|
7
7
|
@api subtitle?: string;
|
|
8
8
|
@api body!: string;
|
|
9
9
|
@api footNote?: string;
|
|
@@ -58,12 +58,12 @@ export default class MainContentHeader extends LightningElement {
|
|
|
58
58
|
? this.ctaHref
|
|
59
59
|
: `${window.location.origin}${this.ctaHref}`,
|
|
60
60
|
element_type: "button",
|
|
61
|
-
element_title: this.
|
|
61
|
+
element_title: this.title,
|
|
62
62
|
content_category: "cta"
|
|
63
63
|
});
|
|
64
64
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
65
65
|
click_text: this.ctaLabel,
|
|
66
|
-
element_title: this.
|
|
66
|
+
element_title: this.title,
|
|
67
67
|
click_url: this.ctaHref.includes("http")
|
|
68
68
|
? this.ctaHref
|
|
69
69
|
: `${window.location.origin}${this.ctaHref}`,
|
|
@@ -81,12 +81,12 @@ export default class MainContentHeader extends LightningElement {
|
|
|
81
81
|
? this.ctaHrefSecondary
|
|
82
82
|
: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
83
83
|
element_type: "button",
|
|
84
|
-
element_title: this.
|
|
84
|
+
element_title: this.title,
|
|
85
85
|
content_category: "cta"
|
|
86
86
|
});
|
|
87
87
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
88
88
|
click_text: this.ctaLabelSecondary,
|
|
89
|
-
element_title: this.
|
|
89
|
+
element_title: this.title,
|
|
90
90
|
click_url: this.ctaHrefSecondary!.includes("http")
|
|
91
91
|
? this.ctaHrefSecondary
|
|
92
92
|
: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div if:true={hasQuery} class="dx-search-header">
|
|
14
14
|
<div class="dx-search-header-container">
|
|
15
15
|
<p class="dx-search-header-title">
|
|
16
|
-
<span class="dx-search-header-title-results">{
|
|
16
|
+
<span class="dx-search-header-title-results">{title}</span>
|
|
17
17
|
results for
|
|
18
18
|
</p>
|
|
19
19
|
<p class="dx-search-header-query">“{query}”</p>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
<div class="dx-facet-column-footer">
|
|
52
52
|
<dx-button onclick={dismissFiltersOverlay}>
|
|
53
|
-
View {
|
|
53
|
+
View {title} results
|
|
54
54
|
</dx-button>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
<div part="text" class="text" lwc:if={hasText}>
|
|
30
30
|
<span class="label dx-text-display-8" lwc:if={label}>{label}</span>
|
|
31
|
-
<h2 class={headingClassName} lwc:if={
|
|
32
|
-
{
|
|
31
|
+
<h2 class={headingClassName} lwc:if={title}>
|
|
32
|
+
{title}
|
|
33
33
|
<template lwc:if={ctaBtnInline}>
|
|
34
34
|
<dx-button
|
|
35
35
|
class="cta"
|
|
@@ -11,7 +11,7 @@ export default class Section extends LightningElement {
|
|
|
11
11
|
@api subtitle?: string;
|
|
12
12
|
@api subtitleLevel?: "1" | "2" | "3" | "4" = "1";
|
|
13
13
|
@api textAlign: "center" | "left" = "left";
|
|
14
|
-
@api
|
|
14
|
+
@api title!: string;
|
|
15
15
|
@api ctaLabel?: string;
|
|
16
16
|
@api ctaHref?: string;
|
|
17
17
|
@api ctaBtnVariant?: string;
|
|
@@ -52,7 +52,7 @@ export default class Section extends LightningElement {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
private get hasText(): boolean {
|
|
55
|
-
return !!(this.
|
|
55
|
+
return !!(this.title || this.label || this.subtitle);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
private get ctaNotInline(): boolean {
|
|
@@ -62,7 +62,7 @@ export default class Section extends LightningElement {
|
|
|
62
62
|
private handleLabelClick(e: Event) {
|
|
63
63
|
track(e.target!, "custEv_ctaLinkClick", {
|
|
64
64
|
click_text: this.ctaLabel,
|
|
65
|
-
element_title: this.
|
|
65
|
+
element_title: this.title,
|
|
66
66
|
click_url: this.ctaHref!.includes("http")
|
|
67
67
|
? this.ctaHref
|
|
68
68
|
: `${window.location.origin}${this.ctaHref}`,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
alt=""
|
|
8
8
|
/>
|
|
9
9
|
<div class="content">
|
|
10
|
-
<h3 if:true={
|
|
11
|
-
{
|
|
10
|
+
<h3 if:true={title} class="content-title dx-text-display-4">
|
|
11
|
+
{title}
|
|
12
12
|
</h3>
|
|
13
13
|
<div class="content-body-container">
|
|
14
14
|
<img if:true={hasQuote} src={quoteGraphicSrc} alt="" />
|
|
@@ -25,7 +25,7 @@ export default class SectionBanner extends LightningElement {
|
|
|
25
25
|
subtext?: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
@api
|
|
28
|
+
@api title!: string;
|
|
29
29
|
@api body!: string;
|
|
30
30
|
@api hideTopGraphic = false;
|
|
31
31
|
@api backgroundColor = "indigo-vibrant-20";
|
|
@@ -93,7 +93,7 @@ export default class SectionBanner extends LightningElement {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
get contentBodyStyle() {
|
|
96
|
-
return cx(this.
|
|
96
|
+
return cx(this.title ? "content-body" : "dx-text-display-6");
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
get style() {
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
key={result.uniqueId}
|
|
67
67
|
selected={result.selected}
|
|
68
68
|
title-highlights={result.titleHighlights}
|
|
69
|
-
|
|
69
|
+
title={result.title}
|
|
70
70
|
select={result.select}
|
|
71
71
|
></dx-sidebar-search-result>
|
|
72
72
|
</template>
|
|
73
73
|
<dx-empty-state
|
|
74
74
|
variant="alt"
|
|
75
75
|
class="padding-horizontal"
|
|
76
|
-
|
|
76
|
+
title="No Results"
|
|
77
77
|
body={emptyStateBody}
|
|
78
78
|
suggestions={emptyStateSuggestions}
|
|
79
79
|
size="small"
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
lang-value-path={langValuePath}
|
|
98
98
|
language={language}
|
|
99
99
|
languages={languages}
|
|
100
|
+
onlangchange={onToggleClick}
|
|
100
101
|
></dx-sidebar-footer-nav>
|
|
101
102
|
</div>
|
|
102
103
|
</template>
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
variant="alt"
|
|
64
64
|
class="padding-horizontal"
|
|
65
65
|
size="small"
|
|
66
|
-
|
|
66
|
+
title="No Results"
|
|
67
67
|
body={emptyStateBody}
|
|
68
68
|
suggestions={emptyStateSuggestions}
|
|
69
69
|
lwc:else
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
lang-value-path={langValuePath}
|
|
74
74
|
language={language}
|
|
75
75
|
languages={languages}
|
|
76
|
+
onlangchange={onToggleClick}
|
|
76
77
|
></dx-sidebar-footer-nav>
|
|
77
78
|
</div>
|
|
78
79
|
</template>
|
|
@@ -54,12 +54,12 @@ export default class SidebarSearchResult extends LightningElement {
|
|
|
54
54
|
@api descriptionHighlights!: CoveoHighlights;
|
|
55
55
|
@api href!: string;
|
|
56
56
|
@api selected!: boolean;
|
|
57
|
-
@api
|
|
57
|
+
@api title!: string;
|
|
58
58
|
@api titleHighlights!: CoveoHighlights;
|
|
59
59
|
@api select!: Function;
|
|
60
60
|
|
|
61
61
|
private get titleChunks() {
|
|
62
|
-
return toChunks(this.
|
|
62
|
+
return toChunks(this.title, this.titleHighlights);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
private get descriptionChunks() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="toc" role="navigation">
|
|
3
3
|
<div class="toc toc_content">
|
|
4
|
-
<h2 class="dx-text-display-8 toc_title">{
|
|
4
|
+
<h2 class="dx-text-display-8 toc_title">{title}</h2>
|
|
5
5
|
<template for:each={options} for:item="option">
|
|
6
6
|
<a
|
|
7
7
|
href={option.anchor}
|
|
@@ -5,7 +5,7 @@ import { toJson } from "dxUtils/normalizers";
|
|
|
5
5
|
import { track as sendGtm } from "dxUtils/analytics";
|
|
6
6
|
|
|
7
7
|
export default class Toc extends LightningElement {
|
|
8
|
-
@api
|
|
8
|
+
@api title!: string;
|
|
9
9
|
|
|
10
10
|
@api
|
|
11
11
|
get value() {
|
|
@@ -54,7 +54,7 @@ export default class Toc extends LightningElement {
|
|
|
54
54
|
click_text: text,
|
|
55
55
|
clickAction: "click",
|
|
56
56
|
click_url: `${window.location.href}${href}`,
|
|
57
|
-
element_title: this.
|
|
57
|
+
element_title: this.title,
|
|
58
58
|
element_type: "link",
|
|
59
59
|
content_category: "cta"
|
|
60
60
|
});
|
|
@@ -6,7 +6,7 @@ const MOBILE_QUERY = "(max-width: 640px)";
|
|
|
6
6
|
export abstract class ArchiveCard extends LightningElement {
|
|
7
7
|
@api contentType!: ContentType;
|
|
8
8
|
@api href!: string;
|
|
9
|
-
@api
|
|
9
|
+
@api title!: string;
|
|
10
10
|
@api target: LinkTarget = "_self";
|
|
11
11
|
|
|
12
12
|
private matchMedia!: MediaQueryList;
|
|
@@ -41,7 +41,7 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
41
41
|
@api subtitle!: string;
|
|
42
42
|
@api tbidApiBaseUrl: string | null = null;
|
|
43
43
|
@api tbidBaseUrl: string | null = null;
|
|
44
|
-
@api
|
|
44
|
+
@api title: string = "Salesforce";
|
|
45
45
|
@api version?: string | null = null;
|
|
46
46
|
@api bannerMarkup =
|
|
47
47
|
'<span><a href="https://forms.gle/oWYTbH9RvGyt9uxx7" target="blank">Share your feedback</a>about our new site.</span>';
|
|
@@ -206,7 +206,7 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
206
206
|
const payload = {
|
|
207
207
|
...ANALYTICS_INFO,
|
|
208
208
|
click_url: this.signupLink,
|
|
209
|
-
element_title: this.
|
|
209
|
+
element_title: this.title
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
track(e.currentTarget!, "custEv_browseTrialsClick", payload);
|