@salesforcedevs/dx-components 1.3.323-alpha.0 → 1.3.324-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/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 +9 -11
- 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 +8 -2
- 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.html +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 +5 -5
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +4 -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 +5 -4
- 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/coveo.css +1 -1
- 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 +2 -2
- package/src/modules/dx/sidebarOld/sidebarOld.html +1 -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
- package/src/modules/dxUtils/css/css.ts +3 -1
|
@@ -2,7 +2,7 @@ import { LightningElement, api } from "lwc";
|
|
|
2
2
|
import { EmptyStateSize } from "typings/custom";
|
|
3
3
|
|
|
4
4
|
export default class EmptyState extends LightningElement {
|
|
5
|
-
@api
|
|
5
|
+
@api header: string = "";
|
|
6
6
|
@api subtitle?: string | null = null;
|
|
7
7
|
@api body?: string | null = null;
|
|
8
8
|
@api size?: EmptyStateSize = "large";
|
|
@@ -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">{header}</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">{header}</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={header}
|
|
25
25
|
/>
|
|
26
26
|
<div class="image-container">
|
|
27
|
-
<img src={imageSrc} alt={
|
|
27
|
+
<img src={imageSrc} alt={header} />
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
<div if:false={isDisplay} class="image">
|
|
31
|
-
<img src={imageSrc} alt={
|
|
31
|
+
<img src={imageSrc} alt={header} />
|
|
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 header!: 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.header,
|
|
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
|
+
{header}
|
|
22
22
|
</a>
|
|
23
|
-
<template if:false={href}>{
|
|
23
|
+
<template if:false={href}>{header}</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
|
+
{header}
|
|
37
37
|
</a>
|
|
38
|
-
<template if:false={href}>{
|
|
38
|
+
<template if:false={href}>{header}</template>
|
|
39
39
|
</h2>
|
|
40
40
|
</template>
|
|
41
41
|
<div class="authors" if:true={authors}>
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
</mask>
|
|
122
122
|
<use
|
|
123
123
|
id="Combined-Shape"
|
|
124
|
-
fill=
|
|
124
|
+
fill={swoopUnderColor}
|
|
125
125
|
xlink:href="#path-1"
|
|
126
126
|
></use>
|
|
127
127
|
</g>
|
|
@@ -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 header!: string;
|
|
28
28
|
@api backgroundImg?: string;
|
|
29
29
|
@api backgroundImgId:
|
|
30
30
|
| "trees"
|
|
@@ -36,6 +36,7 @@ export default class FeaturedContentHeader extends LightningElement {
|
|
|
36
36
|
| null = null;
|
|
37
37
|
@api noSwoop: boolean = false;
|
|
38
38
|
@api icon: string = "";
|
|
39
|
+
@api swoopUnderColor: string = "#FFFFFF";
|
|
39
40
|
|
|
40
41
|
private _authors?: Array<ImageAndLabel>;
|
|
41
42
|
private isSlotEmpty: boolean = true;
|
|
@@ -215,9 +216,9 @@ export default class FeaturedContentHeader extends LightningElement {
|
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
track(event.target!, trackEvent, {
|
|
218
|
-
media_name: this.
|
|
219
|
+
media_name: this.header,
|
|
219
220
|
media_action: action,
|
|
220
|
-
media_episode: this.
|
|
221
|
+
media_episode: this.header.split(":")[0],
|
|
221
222
|
media_percentage_played: percentagePlayed,
|
|
222
223
|
media_seconds_played: timePlayed,
|
|
223
224
|
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 header!: string;
|
|
10
10
|
@api subtitle?: string;
|
|
11
11
|
@api ctaLabel!: string;
|
|
12
12
|
@api ctaLabelSecondary?: string;
|
|
@@ -46,7 +46,7 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
46
46
|
get displayTitle() {
|
|
47
47
|
return typeof this._displayTitle === "string"
|
|
48
48
|
? this._displayTitle
|
|
49
|
-
: this.
|
|
49
|
+
: this.header;
|
|
50
50
|
}
|
|
51
51
|
set displayTitle(value: string | null) {
|
|
52
52
|
this._displayTitle = value;
|
|
@@ -69,12 +69,12 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
69
69
|
click_text: this.ctaLabel,
|
|
70
70
|
click_url: `${window.location.origin}${this.ctaHref}`,
|
|
71
71
|
element_type: "button",
|
|
72
|
-
element_title: this.
|
|
72
|
+
element_title: this.header,
|
|
73
73
|
content_category: "cta"
|
|
74
74
|
});
|
|
75
75
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
76
76
|
click_text: this.ctaLabel,
|
|
77
|
-
element_title: this.
|
|
77
|
+
element_title: this.header,
|
|
78
78
|
click_url: `${window.location.origin}${this.ctaHref}`,
|
|
79
79
|
element_type: "link",
|
|
80
80
|
content_category: "cta"
|
|
@@ -88,12 +88,12 @@ export default class FeaturesListHeader extends LightningElement {
|
|
|
88
88
|
click_text: this.ctaLabelSecondary,
|
|
89
89
|
click_url: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
90
90
|
element_type: "button",
|
|
91
|
-
element_title: this.
|
|
91
|
+
element_title: this.header,
|
|
92
92
|
content_category: "cta"
|
|
93
93
|
});
|
|
94
94
|
track(e.currentTarget!, "custEv_linkClick", {
|
|
95
95
|
click_text: this.ctaLabelSecondary,
|
|
96
|
-
element_title: this.
|
|
96
|
+
element_title: this.header,
|
|
97
97
|
click_url: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
98
98
|
element_type: "link",
|
|
99
99
|
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 header: string = "Filter Menu";
|
|
12
12
|
@api variant: string = "base";
|
|
13
13
|
@api filtersDatesLoading?: boolean;
|
|
14
14
|
|
|
@@ -80,9 +80,10 @@ 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
|
-
|
|
85
|
-
|
|
83
|
+
const yearCheckBox: any =
|
|
84
|
+
checkbox.parentElement.parentElement.parentElement.querySelector(
|
|
85
|
+
".checkbox-year"
|
|
86
|
+
);
|
|
86
87
|
yearCheckBox.indeterminate = value;
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -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
|
+
{header}
|
|
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 header!: 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.header,
|
|
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>{header}</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">{header}</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 header: 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.header}`;
|
|
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>{header}</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={header} />
|
|
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 header!: 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.header}"`
|
|
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">{header}</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 header!: 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.header,
|
|
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.header,
|
|
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.header,
|
|
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.header,
|
|
90
90
|
click_url: this.ctaHrefSecondary!.includes("http")
|
|
91
91
|
? this.ctaHrefSecondary
|
|
92
92
|
: `${window.location.origin}${this.ctaHrefSecondary}`,
|
|
@@ -7944,7 +7944,7 @@ select.coveo-dropdown::-ms-expand {
|
|
|
7944
7944
|
|
|
7945
7945
|
@font-face {
|
|
7946
7946
|
font-family: "Lato";
|
|
7947
|
-
src: url('https://static.cloud.coveo.com/searchui/v2.
|
|
7947
|
+
src: url('https://static.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10113/0/fonts/lato.woff'), url('../fonts/lato.woff');
|
|
7948
7948
|
font-weight: normal;
|
|
7949
7949
|
font-style: normal;
|
|
7950
7950
|
}
|
|
@@ -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">{header}</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 {header} 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={header}>
|
|
32
|
+
{header}
|
|
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 header!: 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.header || 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.header,
|
|
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={header} class="content-title dx-text-display-4">
|
|
11
|
+
{header}
|
|
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 header!: 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.header ? "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
|
+
header={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
|
+
header="No Results"
|
|
77
77
|
body={emptyStateBody}
|
|
78
78
|
suggestions={emptyStateSuggestions}
|
|
79
79
|
size="small"
|
|
@@ -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 header!: 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.header, 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">{header}</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 header!: 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.header,
|
|
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 header!: 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 header: 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.header
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
track(e.currentTarget!, "custEv_browseTrialsClick", payload);
|
|
@@ -41,7 +41,9 @@ export const colorToDxColors = (
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export const toDxColor = (color: string) =>
|
|
44
|
-
["white", "transparent"].includes(color) ||
|
|
44
|
+
["white", "transparent"].includes(color) ||
|
|
45
|
+
color.includes("linear-gradient") ||
|
|
46
|
+
BROWSER_COLOR_REGEXP.test(color)
|
|
45
47
|
? color
|
|
46
48
|
: `var(--dx-g-${color})`;
|
|
47
49
|
|