@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container">
|
|
3
|
-
<h2 class="detail-list-title dx-text-display-4">{
|
|
3
|
+
<h2 class="detail-list-title dx-text-display-4">{title}</h2>
|
|
4
4
|
<div class="detail-list-content-container">
|
|
5
5
|
<ul class="detail-list-content" part="content">
|
|
6
6
|
<template for:each={items} for:item="item">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav class={className} role="navigation" aria-label={ariaLabel}>
|
|
3
3
|
<template if:true={logo}>
|
|
4
|
-
<dx-logo href={baseHref} label={
|
|
4
|
+
<dx-logo href={baseHref} label={title}></dx-logo>
|
|
5
5
|
<span if:false={breadcrumbsEmpty}>/</span>
|
|
6
6
|
</template>
|
|
7
7
|
<dx-dropdown
|
|
@@ -21,7 +21,7 @@ export default class Breadcrumbs extends LightningElement {
|
|
|
21
21
|
@api baseHref: string = "/";
|
|
22
22
|
@api navItems: OptionWithNested[] = [];
|
|
23
23
|
@api pathname: string = window.location.pathname;
|
|
24
|
-
@api
|
|
24
|
+
@api title: string = "Salesforce";
|
|
25
25
|
@api logo: boolean = false;
|
|
26
26
|
@api truncate = false;
|
|
27
27
|
@api hideCurrentLocation = false;
|
|
@@ -85,14 +85,16 @@ export default class Breadcrumbs extends LightningElement {
|
|
|
85
85
|
breadcrumbs: Breadcrumb[]
|
|
86
86
|
): NormalizedBreadcrumb[] {
|
|
87
87
|
const { length } = breadcrumbs;
|
|
88
|
-
return breadcrumbs.map(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
return breadcrumbs.map(
|
|
89
|
+
(breadcrumb, i): NormalizedBreadcrumb => {
|
|
90
|
+
const last = i === length - 1;
|
|
91
|
+
return {
|
|
92
|
+
...breadcrumb,
|
|
93
|
+
asLink: this.hideCurrentLocation || !last,
|
|
94
|
+
last
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
);
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
private get breadcrumbDropdownOptions() {
|
|
@@ -11,7 +11,7 @@ export default class CardBlogPost extends LightningElement {
|
|
|
11
11
|
@api imgSrc?: string | null;
|
|
12
12
|
@api label?: string;
|
|
13
13
|
@api target?: string | null = null;
|
|
14
|
-
@api
|
|
14
|
+
@api title!: string;
|
|
15
15
|
@api authors?: Array<any> | null = null;
|
|
16
16
|
@api origin?: string = "wordpress";
|
|
17
17
|
@api clickEvent?: () => void;
|
|
@@ -28,9 +28,9 @@ export default class CardBlogPost extends LightningElement {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const payload = {
|
|
31
|
-
click_text: this.
|
|
31
|
+
click_text: this.title,
|
|
32
32
|
click_url: `${window.location.origin}${this.href}`,
|
|
33
|
-
element_title: this.
|
|
33
|
+
element_title: this.title,
|
|
34
34
|
element_type: "card",
|
|
35
35
|
content_category: "link",
|
|
36
36
|
recommendation_type: this.origin
|
|
@@ -38,7 +38,7 @@ export default class CardBlogPost extends LightningElement {
|
|
|
38
38
|
track(event.target!, "custEv_blogCardClick", {
|
|
39
39
|
...payload,
|
|
40
40
|
blog_author: this.authors,
|
|
41
|
-
blog_title: this.
|
|
41
|
+
blog_title: this.title
|
|
42
42
|
});
|
|
43
43
|
track(event.target!, "custEv_linkClick", payload);
|
|
44
44
|
}
|
|
@@ -11,7 +11,7 @@ export default class CardCallout extends LightningElement {
|
|
|
11
11
|
@api href!: string;
|
|
12
12
|
@api label: string = "";
|
|
13
13
|
@api target?: string;
|
|
14
|
-
@api
|
|
14
|
+
@api title!: string;
|
|
15
15
|
|
|
16
16
|
private get style(): string {
|
|
17
17
|
const background = `background-color: ${toDxColor(
|
|
@@ -31,9 +31,9 @@ export default class CardCallout extends LightningElement {
|
|
|
31
31
|
|
|
32
32
|
private sendGtm(e: PointerEvent) {
|
|
33
33
|
track(e.currentTarget!, "custEv_ctaLinkClick", {
|
|
34
|
-
click_text: this.
|
|
34
|
+
click_text: this.title,
|
|
35
35
|
click_url: `${window.location.origin}${this.href}`,
|
|
36
|
-
element_title: this.
|
|
36
|
+
element_title: this.title,
|
|
37
37
|
element_type: "link",
|
|
38
38
|
content_category: "cta"
|
|
39
39
|
});
|
|
@@ -40,7 +40,7 @@ export default class CardClickthrough<
|
|
|
40
40
|
@api imgAlt?: string = "";
|
|
41
41
|
@api imgSrc?: string | null = null;
|
|
42
42
|
@api label!: string;
|
|
43
|
-
@api
|
|
43
|
+
@api title!: string;
|
|
44
44
|
@api target?: string | null = null;
|
|
45
45
|
@api showMobileImg?: boolean = false;
|
|
46
46
|
|
|
@@ -127,8 +127,8 @@ export default class CardClickthrough<
|
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
const payloadCardInfo = {
|
|
130
|
-
click_text: this.
|
|
131
|
-
element_title: this.
|
|
130
|
+
click_text: this.title,
|
|
131
|
+
element_title: this.title,
|
|
132
132
|
click_url: this.href,
|
|
133
133
|
element_type: "link",
|
|
134
134
|
content_category: "cta"
|
|
@@ -17,7 +17,7 @@ export default class CardContent extends LightningElement {
|
|
|
17
17
|
@api layout: "vertical" | "horizontal" = "vertical";
|
|
18
18
|
@api subtitle?: string | null = null;
|
|
19
19
|
@api target?: string | null = null;
|
|
20
|
-
@api
|
|
20
|
+
@api title!: string;
|
|
21
21
|
@api hrefClick: any = null;
|
|
22
22
|
@api contentType: string | null = null;
|
|
23
23
|
@api
|
|
@@ -56,7 +56,7 @@ export default class CardContent extends LightningElement {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
private get imgLinkAriaLabel() {
|
|
59
|
-
return `Read More About ${this.
|
|
59
|
+
return `Read More About ${this.title}`;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
private get className(): string {
|
|
@@ -11,17 +11,11 @@
|
|
|
11
11
|
>
|
|
12
12
|
<span class="dx-text-label-3" part="label">{label}</span>
|
|
13
13
|
<dx-card-title
|
|
14
|
-
|
|
14
|
+
title={title}
|
|
15
15
|
target={target}
|
|
16
16
|
onclick={handleLinkClick}
|
|
17
17
|
></dx-card-title>
|
|
18
|
-
<span
|
|
19
|
-
lwc:if={body}
|
|
20
|
-
class="dx-text-body-2"
|
|
21
|
-
onclick={handleTextClick}
|
|
22
|
-
>
|
|
23
|
-
{body}
|
|
24
|
-
</span>
|
|
18
|
+
<span lwc:if={body} class="dx-text-body-2" onclick={handleTextClick}>{body}</span>
|
|
25
19
|
</div>
|
|
26
20
|
<div class="dx-card-base_section-vertical dx-card-base_ctas">
|
|
27
21
|
<slot onslotchange={onSlotChange}></slot>
|
|
@@ -10,7 +10,7 @@ export default class CardDocs extends LightningElement {
|
|
|
10
10
|
@api imgAlt?: string = "";
|
|
11
11
|
@api imgSrc?: string | null = null;
|
|
12
12
|
@api label!: string;
|
|
13
|
-
@api
|
|
13
|
+
@api title!: string;
|
|
14
14
|
@api target?: string | null = null;
|
|
15
15
|
@api showMobileImg?: boolean = false;
|
|
16
16
|
|
|
@@ -37,13 +37,13 @@ export default class CardDocs extends LightningElement {
|
|
|
37
37
|
slotElement?.addEventListener("click", (event: Event) => {
|
|
38
38
|
track(event.currentTarget!, "custEv_cardClick", {
|
|
39
39
|
...payloadInnerButton,
|
|
40
|
-
element_title: this.
|
|
40
|
+
element_title: this.title,
|
|
41
41
|
click_text: slotElement.innerText,
|
|
42
42
|
click_url: `${window.location.origin}${slotElement.href}`
|
|
43
43
|
});
|
|
44
44
|
track(event.currentTarget!, "custEv_linkClick", {
|
|
45
45
|
...payloadInnerButton,
|
|
46
|
-
element_title: this.
|
|
46
|
+
element_title: this.title,
|
|
47
47
|
click_text: slotElement.innerText,
|
|
48
48
|
click_url: `${window.location.origin}${slotElement.href}`
|
|
49
49
|
});
|
|
@@ -54,8 +54,8 @@ export default class CardDocs extends LightningElement {
|
|
|
54
54
|
|
|
55
55
|
private handleLinkClick(event: PointerEvent) {
|
|
56
56
|
const payloadCardInfo = {
|
|
57
|
-
click_text: this.
|
|
58
|
-
element_title: this.
|
|
57
|
+
click_text: this.title,
|
|
58
|
+
element_title: this.title,
|
|
59
59
|
click_url: `${window.location.origin}${this.href}`,
|
|
60
60
|
element_type: "link",
|
|
61
61
|
content_category: "cta"
|
|
@@ -67,7 +67,7 @@ export default class CardDocs extends LightningElement {
|
|
|
67
67
|
private handleTextClick(event: PointerEvent) {
|
|
68
68
|
const payloadCardTextInfo = {
|
|
69
69
|
click_text: this.body,
|
|
70
|
-
element_title: this.
|
|
70
|
+
element_title: this.title,
|
|
71
71
|
click_url: `${window.location.origin}${this.href}`,
|
|
72
72
|
element_type: "tile",
|
|
73
73
|
content_category: "cta"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
onmouseenter={setLinkHovered}
|
|
43
43
|
onmouseleave={setLinkInactive}
|
|
44
44
|
target={target}
|
|
45
|
-
|
|
45
|
+
title={title}
|
|
46
46
|
></dx-card-title>
|
|
47
47
|
<div class="subtitle-container" if:true={showSubtitle}>
|
|
48
48
|
<span class="subtitle dx-text-label-1-dark" part="subtitle">
|
|
@@ -11,7 +11,7 @@ export default class CardEvent extends LightningElement {
|
|
|
11
11
|
@api location?: string | null = null;
|
|
12
12
|
@api startDatetime!: string;
|
|
13
13
|
@api target: string = "_blank";
|
|
14
|
-
@api
|
|
14
|
+
@api title!: string;
|
|
15
15
|
@api shortDescription?: string;
|
|
16
16
|
@api type?: string;
|
|
17
17
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<div class={containerClass}>
|
|
3
3
|
<dx-type-badge variant={contentType} size={badgeSize}></dx-type-badge>
|
|
4
4
|
<dx-card-title
|
|
5
|
-
if:true={
|
|
5
|
+
if:true={title}
|
|
6
6
|
href={href}
|
|
7
7
|
target={target}
|
|
8
|
-
|
|
8
|
+
title={title}
|
|
9
9
|
></dx-card-title>
|
|
10
10
|
<div class="card-extra-info dx-text-label-1-dark">
|
|
11
11
|
<div class="authors" if:true={renderAuthor}>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
img-alt={card.imgAlt}
|
|
30
30
|
img-src={card.imgSrc}
|
|
31
31
|
label={card.label}
|
|
32
|
-
|
|
32
|
+
title={card.title}
|
|
33
33
|
target={card.target}
|
|
34
34
|
show-mobile-img={card.showMobileImg}
|
|
35
35
|
>
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
62
|
<dx-empty-state
|
|
63
|
-
|
|
63
|
+
title="Beep boop. That did not compute."
|
|
64
64
|
subtitle={emptyStateSubtitle}
|
|
65
65
|
if:true={showEmptyState}
|
|
66
66
|
></dx-empty-state>
|
|
@@ -13,7 +13,7 @@ import { track } from "dxUtils/analytics";
|
|
|
13
13
|
|
|
14
14
|
export default class CardNews extends LightningElement {
|
|
15
15
|
@api backgroundColor: string = "indigo-vibrant-40";
|
|
16
|
-
@api
|
|
16
|
+
@api title!: string;
|
|
17
17
|
@api body!: string;
|
|
18
18
|
@api buttonText?: string = "";
|
|
19
19
|
@api buttonType!: CardNewsButtonType;
|
|
@@ -70,7 +70,7 @@ export default class CardNews extends LightningElement {
|
|
|
70
70
|
click_url: this.href.includes("http")
|
|
71
71
|
? this.href
|
|
72
72
|
: `${window.location.origin}${this.href}`,
|
|
73
|
-
element_title: this.
|
|
73
|
+
element_title: this.title,
|
|
74
74
|
element_type: "link",
|
|
75
75
|
content_category: "cta"
|
|
76
76
|
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<dx-card-title
|
|
14
14
|
href={href}
|
|
15
15
|
target={target}
|
|
16
|
-
|
|
16
|
+
title={title}
|
|
17
17
|
></dx-card-title>
|
|
18
18
|
<span class="dx-text-body-2">{body}</span>
|
|
19
19
|
<div if:false={isSlotEmpty} class="dx-card-base_ctas">
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
></dx-icon-badge>
|
|
33
33
|
</div>
|
|
34
34
|
<div class="dx-card-base_section-horizontal dx-card-base_column">
|
|
35
|
-
<dx-card-title target={target}
|
|
35
|
+
<dx-card-title target={target} title={title}></dx-card-title>
|
|
36
36
|
<span class="dx-text-body-2">{body}</span>
|
|
37
37
|
<div if:false={isSlotEmpty} class="dx-card-base_ctas">
|
|
38
38
|
<slot onslotchange={onSlotChange}></slot>
|
|
@@ -3,7 +3,7 @@ import { LightningElement, api } from "lwc";
|
|
|
3
3
|
export default class CardTitle extends LightningElement {
|
|
4
4
|
@api href!: string;
|
|
5
5
|
@api target?: string | null = null;
|
|
6
|
-
@api
|
|
6
|
+
@api title!: string;
|
|
7
7
|
|
|
8
8
|
private get isExternal() {
|
|
9
9
|
return this.target === "_blank";
|
|
@@ -11,8 +11,8 @@ export default class CardTitle extends LightningElement {
|
|
|
11
11
|
|
|
12
12
|
private get titleToWrap() {
|
|
13
13
|
return this.isExternal
|
|
14
|
-
? this.
|
|
15
|
-
: this.
|
|
14
|
+
? this.title.substring(0, this.title.lastIndexOf(" "))
|
|
15
|
+
: this.title;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
private get needsSpace() {
|
|
@@ -21,7 +21,7 @@ export default class CardTitle extends LightningElement {
|
|
|
21
21
|
|
|
22
22
|
private get titleNoWrap() {
|
|
23
23
|
return this.isExternal
|
|
24
|
-
? this.
|
|
24
|
+
? this.title.substring(this.title.lastIndexOf(" ") + 1)
|
|
25
25
|
: null;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -10,7 +10,7 @@ export default class CardTrailheadModule extends LightningElement {
|
|
|
10
10
|
@api length!: string;
|
|
11
11
|
@api points!: string | number;
|
|
12
12
|
@api target?: string | null = null;
|
|
13
|
-
@api
|
|
13
|
+
@api title!: string;
|
|
14
14
|
@api label?: string = "Trailhead";
|
|
15
15
|
|
|
16
16
|
get subtitle() {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
col-two-details={modalDetails}
|
|
21
21
|
target={target}
|
|
22
22
|
terms={terms}
|
|
23
|
-
|
|
23
|
+
title={title}
|
|
24
24
|
type-badge-value={modalTypeBadgeValue}
|
|
25
25
|
type-badge-dark={modalTypeBadgeDark}
|
|
26
26
|
onclickclose={closeModal}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<dx-card-title
|
|
54
54
|
href={href}
|
|
55
55
|
target={target}
|
|
56
|
-
|
|
56
|
+
title={title}
|
|
57
57
|
></dx-card-title>
|
|
58
58
|
<span class="label dx-text-body-3">{label}</span>
|
|
59
59
|
<p class="body dx-text-body-2 static-font">{body}</p>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
class="title-main"
|
|
30
30
|
href={href}
|
|
31
31
|
target={target}
|
|
32
|
-
|
|
32
|
+
title={title}
|
|
33
33
|
></dx-card-title>
|
|
34
34
|
<span class="label dx-text-body-3">{label}</span>
|
|
35
35
|
<p class="body dx-text-body-2 static-font">{body}</p>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<div class="col-two">
|
|
65
65
|
<dx-card-title
|
|
66
66
|
class="title-secondary"
|
|
67
|
-
|
|
67
|
+
title={colTwoTitle}
|
|
68
68
|
></dx-card-title>
|
|
69
69
|
<template for:each={colTwoDetails} for:item="colTwoItem">
|
|
70
70
|
<div key={colTwoItem.title}>
|
|
@@ -16,7 +16,7 @@ export default class CardTrial extends LightningElement {
|
|
|
16
16
|
@api label!: string;
|
|
17
17
|
@api target?: string;
|
|
18
18
|
@api terms!: string;
|
|
19
|
-
@api
|
|
19
|
+
@api title!: string;
|
|
20
20
|
@api typeBadgeValue?: string;
|
|
21
21
|
@api typeBadgeDark?: boolean = false;
|
|
22
22
|
|
|
@@ -72,7 +72,7 @@ export default class CardTrial extends LightningElement {
|
|
|
72
72
|
if (this.href.includes("signup")) {
|
|
73
73
|
const payload = {
|
|
74
74
|
click_text: this.buttonCta,
|
|
75
|
-
element_title: this.
|
|
75
|
+
element_title: this.title,
|
|
76
76
|
element_type: "card",
|
|
77
77
|
click_url: `${window.location.origin}${this.href}`,
|
|
78
78
|
content_category: "cta"
|
|
@@ -39,7 +39,7 @@ const LOCAL_STORAGE_KEY = "dx-codeblock-theme";
|
|
|
39
39
|
|
|
40
40
|
export default class CodeBlock extends LightningElement {
|
|
41
41
|
@api defaultTheme: CodeBlockTheme = LIGHT;
|
|
42
|
-
@api
|
|
42
|
+
@api title: string = "title";
|
|
43
43
|
@api sourceLink: string = "";
|
|
44
44
|
@api language: string = "";
|
|
45
45
|
// if it is true, it renders code as is coming instead of wrapping it into html/xml comments tags.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
img-alt={recommendation.yoast_head_json.title}
|
|
18
18
|
img-src={recommendation.featured_image}
|
|
19
19
|
key={recommendation.id}
|
|
20
|
-
|
|
20
|
+
title={recommendation.yoast_head_json.title}
|
|
21
21
|
origin="coveo"
|
|
22
22
|
click-event={recommendation.clickEvent}
|
|
23
23
|
></dx-card-blog-post>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
title="Embedded post"
|
|
23
23
|
></iframe>
|
|
24
24
|
</template>
|
|
25
|
-
<h2 class="dx-text-display-6">{
|
|
25
|
+
<h2 class="dx-text-display-6">{title}</h2>
|
|
26
26
|
<p class="dx-text-body-2">{body}</p>
|
|
27
27
|
<div lwc:if={hasSocial}>
|
|
28
28
|
<dx-hr no-padding="true" spacing="smd"></dx-hr>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
lwc:if={altVariant}
|
|
9
9
|
/>
|
|
10
10
|
<div class={textClassName}>
|
|
11
|
-
<h3 class={titleClassName}>{
|
|
11
|
+
<h3 class={titleClassName}>{title}</h3>
|
|
12
12
|
<p class={subtitleClassName} if:true={subtitle}>{subtitle}</p>
|
|
13
13
|
<p class="body dx-text-display-8" if:true={body}>{body}</p>
|
|
14
14
|
<ul if:true={suggestions}>
|
|
@@ -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 title: string = "";
|
|
6
6
|
@api subtitle?: string | null = null;
|
|
7
7
|
@api body?: string | null = null;
|
|
8
8
|
@api size?: EmptyStateSize = "large";
|