@salesforcedevs/dw-components 0.79.1 → 1.0.0
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/lwc.config.json +10 -1
- package/package.json +16 -12
- package/src/modules/dw/blogsGrid/blogsGrid.css +14 -7
- package/src/modules/dw/blogsGrid/blogsGrid.html +15 -12
- package/src/modules/dw/blogsGrid/blogsGrid.ts +23 -9
- package/src/modules/dw/browseTrials/browseTrials.css +35 -0
- package/src/modules/dw/browseTrials/browseTrials.html +86 -0
- package/src/modules/dw/browseTrials/browseTrials.ts +116 -0
- package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.css +2 -0
- package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.html +3 -3
- package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +2 -0
- package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +2 -1
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +85 -9
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +74 -112
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +14 -376
- package/src/modules/dw/contentArchive/contentArchive.css +5 -4
- package/src/modules/dw/contentArchive/contentArchive.html +58 -24
- package/src/modules/dw/contentArchive/contentArchive.ts +46 -8
- package/src/modules/dw/contentArchive/contentArchive.types.ts +8 -4
- package/src/modules/dw/contentArchive/utils.ts +30 -14
- package/src/modules/dw/deSignupForm/deSignupForm.css +11 -10
- package/src/modules/dw/deSignupForm/deSignupForm.html +39 -25
- package/src/modules/dw/deSignupForm/deSignupForm.ts +205 -133
- package/src/modules/dw/deSignupForm/submitForm.ts +7 -3
- package/src/modules/dw/docsGrid/docsGrid.css +0 -1
- package/src/modules/dw/docsGrid/docsGrid.html +6 -2
- package/src/modules/dw/docsGrid/docsGrid.ts +103 -38
- package/src/modules/dw/eventsList/eventsList.css +4 -4
- package/src/modules/dw/eventsList/eventsList.html +5 -5
- package/src/modules/dw/eventsList/eventsList.ts +47 -48
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.css +14 -0
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.html +41 -0
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.ts +487 -0
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.css +76 -0
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.html +64 -0
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.ts +157 -0
- package/src/modules/dw/j2sForm/j2sForm.css +65 -0
- package/src/modules/dw/j2sForm/j2sForm.html +217 -0
- package/src/modules/dw/j2sForm/j2sForm.ts +371 -0
- package/src/modules/dw/j2sForm/mockProps.ts +3102 -0
- package/src/modules/dw/languageSelector/languageSelector.css +86 -0
- package/src/modules/dw/languageSelector/languageSelector.html +36 -0
- package/src/modules/dw/languageSelector/languageSelector.ts +119 -0
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/newsletterForm/newsletterForm.html +35 -10
- package/src/modules/dw/newsletterForm/newsletterForm.ts +107 -78
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +8 -8
- package/src/modules/dw/podcastSubscription/podcastSubscription.html +2 -2
- package/src/modules/dw/podcastSubscription/podcastSubscription.ts +4 -4
- package/src/modules/dw/podcastsGrid/podcastsGrid.css +7 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.html +6 -1
- package/src/modules/dw/podcastsGrid/podcastsGrid.ts +3 -3
- package/src/modules/dw/podcastsPromo/podcastsPromo.css +14 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.html +16 -8
- package/src/modules/dw/podcastsPromo/podcastsPromo.ts +11 -2
- package/src/modules/dw/rcgTable/altData.ts +72 -9
- package/src/modules/dw/rcgTable/getTableData.ts +1 -1
- package/src/modules/dw/rcgTable/rcgTable.ts +3 -3
- package/src/modules/dw/slackCta/slackCta.css +5 -6
- package/src/modules/dw/slackCta/slackCta.html +1 -1
- package/src/modules/dw/slackSuccess/slackSuccess.css +1 -1
- package/src/modules/dw/slackSuccess/slackSuccess.html +2 -2
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.css +119 -0
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.html +192 -0
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.ts +148 -0
- package/src/modules/dw/videoGrid/types.ts +12 -0
- package/src/modules/dw/videoGrid/videoGrid.css +24 -0
- package/src/modules/dw/videoGrid/videoGrid.html +41 -0
- package/src/modules/dw/videoGrid/videoGrid.ts +41 -0
- package/src/modules/dw/youtubeVideoGrid/types.ts +8 -0
- package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.css +18 -0
- package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.html +40 -0
- package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.ts +66 -0
- package/src/modules/dwHelpers/mobileDividers/mobileDividers.css +19 -0
- package/src/modules/dwUtils/forms/forms.ts +514 -0
- package/src/modules/{dwBaseElements → dwUtils}/postsGrid/postsGrid.ts +10 -13
|
@@ -1,17 +1,97 @@
|
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
@import "dxHelpers/card";
|
|
4
|
+
|
|
1
5
|
dx-section:first-of-type {
|
|
2
6
|
--dx-c-section-padding-bottom: 0;
|
|
3
7
|
}
|
|
4
8
|
|
|
9
|
+
dx-section {
|
|
10
|
+
--dx-c-section-position: revert;
|
|
11
|
+
--dx-card-image-height: unset;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(.image) {
|
|
15
|
+
height: unset;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.featured-app-container {
|
|
19
|
+
padding-right: 20px;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-flow: row wrap-reverse;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.featured-app-container h4 {
|
|
27
|
+
color: var(--dx-g-text-heading-color);
|
|
28
|
+
font-weight: 800;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dx-text-display-5 {
|
|
32
|
+
color: var(--dx-g-text-heading-color);
|
|
33
|
+
transition: var(--dx-g-transition-hue-1x);
|
|
34
|
+
line-height: var(--dx-c-card-title-line-height);
|
|
35
|
+
letter-spacing: var(--dx-c-card-title-letter-spacing);
|
|
36
|
+
word-break: var(--dx-c-card-title-word-break, break-word);
|
|
37
|
+
hyphens: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.featured-app-text {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
width: 50%;
|
|
44
|
+
align-self: flex-end;
|
|
45
|
+
padding-right: 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.featured-app-container img {
|
|
49
|
+
width: 50%;
|
|
50
|
+
height: 80%;
|
|
51
|
+
border-radius: 20px;
|
|
52
|
+
box-shadow: var(--dx-g-box-shadow-lg);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media screen and (max-width: 639px) {
|
|
56
|
+
.featured-app-container {
|
|
57
|
+
flex-direction: column-reverse;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.featured-app-container h4 {
|
|
61
|
+
margin-top: 1em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.featured-app-container img {
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.featured-app-text {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
5
76
|
.badge-link-container {
|
|
6
77
|
padding-top: var(--dx-g-spacing-md);
|
|
78
|
+
width: 100%;
|
|
7
79
|
}
|
|
8
80
|
|
|
9
81
|
.badge-container {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-flow: row wrap;
|
|
84
|
+
width: 100%;
|
|
85
|
+
gap: 1em;
|
|
10
86
|
padding-top: 0;
|
|
11
87
|
}
|
|
12
88
|
|
|
13
89
|
.external-link-container {
|
|
14
90
|
padding-top: var(--dx-g-spacing-md);
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-flow: row wrap;
|
|
93
|
+
margin-top: 1em;
|
|
94
|
+
gap: 1em;
|
|
15
95
|
}
|
|
16
96
|
|
|
17
97
|
.item-container {
|
|
@@ -22,6 +102,7 @@ dx-section:first-of-type {
|
|
|
22
102
|
|
|
23
103
|
.featured-demo {
|
|
24
104
|
--dx-c-featured-content-header-background-color: unset;
|
|
105
|
+
--dx-c-featured-content-header-intense-background-color: unset;
|
|
25
106
|
--dx-c-featured-content-header-padding-horizontal: unset;
|
|
26
107
|
}
|
|
27
108
|
|
|
@@ -79,15 +160,9 @@ dx-section:first-of-type {
|
|
|
79
160
|
|
|
80
161
|
.pagination-container {
|
|
81
162
|
max-width: fit-content;
|
|
82
|
-
max-width: -moz-fit-content;
|
|
83
163
|
margin: 50px auto;
|
|
84
164
|
}
|
|
85
165
|
|
|
86
|
-
dx-type-badge.platform {
|
|
87
|
-
--dx-c-type-badge-color: var(--dx-g-green-vibrant-40);
|
|
88
|
-
--dx-c-type-badge-background: var(--dx-g-green-vibrant-90);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
166
|
@media screen and (max-width: 1024px) {
|
|
92
167
|
.code-samples-feature {
|
|
93
168
|
--dx-c-feature-description-font-size: 14px;
|
|
@@ -101,6 +176,8 @@ dx-type-badge.platform {
|
|
|
101
176
|
@media screen and (max-width: 767px) {
|
|
102
177
|
.badge-link-container {
|
|
103
178
|
display: flex;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
gap: 1.5em;
|
|
104
181
|
}
|
|
105
182
|
|
|
106
183
|
.docs-action-bar {
|
|
@@ -125,7 +202,6 @@ dx-type-badge.platform {
|
|
|
125
202
|
}
|
|
126
203
|
|
|
127
204
|
.external-link-container {
|
|
128
|
-
padding: 0 0 0 8px;
|
|
129
205
|
margin-top: -4px;
|
|
130
206
|
}
|
|
131
207
|
}
|
|
@@ -159,13 +235,13 @@ dx-type-badge.platform {
|
|
|
159
235
|
}
|
|
160
236
|
|
|
161
237
|
@media screen and (min-width: 1025px) {
|
|
162
|
-
.item-container:not(:nth-child(1)
|
|
238
|
+
.item-container:not(:nth-child(1), :nth-child(2), :nth-child(3)) {
|
|
163
239
|
margin-top: 70px;
|
|
164
240
|
}
|
|
165
241
|
}
|
|
166
242
|
|
|
167
243
|
@media screen and (max-width: 1024px) and (min-width: 768px) {
|
|
168
|
-
.item-container:not(:nth-child(1)
|
|
244
|
+
.item-container:not(:nth-child(1), :nth-child(2)) {
|
|
169
245
|
margin-top: 51px;
|
|
170
246
|
}
|
|
171
247
|
}
|
|
@@ -1,138 +1,100 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<dx-section
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
{featuredCodeSample.body}
|
|
14
|
-
</dx-feature>
|
|
15
|
-
</dx-section>
|
|
16
|
-
|
|
17
|
-
<dx-section title="Browse Demos">
|
|
18
|
-
<div class="docs-action-bar">
|
|
19
|
-
<div class="records-container">
|
|
20
|
-
<span if:true={endingRecord}>
|
|
21
|
-
Showing { startingRecord } to { endingRecord } of {
|
|
22
|
-
filteredSamples.length }
|
|
2
|
+
<dx-section
|
|
3
|
+
class="feature-gradient"
|
|
4
|
+
background-color="linear-gradient(var(--dx-g-indigo-vibrant-90), white)"
|
|
5
|
+
>
|
|
6
|
+
<div class="featured-app-container">
|
|
7
|
+
<div class="featured-app-text">
|
|
8
|
+
<h4>Featured App</h4>
|
|
9
|
+
<h2 class="dx-text-display-5">{featuredCodeSample.title}</h2>
|
|
10
|
+
<span class="feature-card-content dx-text-body-2">
|
|
11
|
+
{featuredCodeSample.body}
|
|
23
12
|
</span>
|
|
13
|
+
<div class="badge-link-container">
|
|
14
|
+
<div class="badge-container">
|
|
15
|
+
<dx-metadata-badge
|
|
16
|
+
for:each={featuredCodeSample.tags}
|
|
17
|
+
for:item="tag"
|
|
18
|
+
key={tag}
|
|
19
|
+
value={tag}
|
|
20
|
+
></dx-metadata-badge>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="external-link-container">
|
|
24
|
+
<dx-button
|
|
25
|
+
target={target}
|
|
26
|
+
icon-symbol="new_window"
|
|
27
|
+
variant="primary"
|
|
28
|
+
size="large"
|
|
29
|
+
href={featuredCodeSample.ctaOne.link}
|
|
30
|
+
onclick={handleReadItClick}
|
|
31
|
+
>
|
|
32
|
+
{featuredCodeSample.ctaOne.text}
|
|
33
|
+
</dx-button>
|
|
34
|
+
<dx-button
|
|
35
|
+
target={target}
|
|
36
|
+
variant="secondary"
|
|
37
|
+
size="large"
|
|
38
|
+
href={featuredCodeSample.ctaTwo.link}
|
|
39
|
+
onclick={handleReadItClick}
|
|
40
|
+
>
|
|
41
|
+
{featuredCodeSample.ctaTwo.text}
|
|
42
|
+
</dx-button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
24
45
|
</div>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
icon-symbol="chevrondown"
|
|
31
|
-
slot="control"
|
|
32
|
-
>
|
|
33
|
-
Source
|
|
34
|
-
</dx-button>
|
|
35
|
-
<dx-checkbox-group
|
|
36
|
-
legend="Source"
|
|
37
|
-
options={sources}
|
|
38
|
-
slot="content"
|
|
39
|
-
onchange={handleSourceFilterChange}
|
|
40
|
-
value={selectedSourceFilter}
|
|
41
|
-
class="filter-checkbox-group"
|
|
42
|
-
></dx-checkbox-group>
|
|
43
|
-
</dx-popover>
|
|
44
|
-
<dx-popover width="max-content">
|
|
45
|
-
<dx-button
|
|
46
|
-
class="filter-button"
|
|
47
|
-
variant="tertiary"
|
|
48
|
-
icon-symbol="chevrondown"
|
|
49
|
-
slot="control"
|
|
50
|
-
>
|
|
51
|
-
Type
|
|
52
|
-
</dx-button>
|
|
53
|
-
<dx-checkbox-group
|
|
54
|
-
legend="Type"
|
|
55
|
-
options={types}
|
|
56
|
-
slot="content"
|
|
57
|
-
onchange={handleTypeFilterChange}
|
|
58
|
-
value={selectedTypeFilter}
|
|
59
|
-
class="filter-checkbox-group"
|
|
60
|
-
></dx-checkbox-group>
|
|
61
|
-
</dx-popover>
|
|
62
|
-
<dx-popover width="max-content">
|
|
63
|
-
<dx-button
|
|
64
|
-
class="filter-button"
|
|
65
|
-
variant="tertiary"
|
|
66
|
-
icon-symbol="chevrondown"
|
|
67
|
-
slot="control"
|
|
68
|
-
>
|
|
69
|
-
Products
|
|
70
|
-
</dx-button>
|
|
71
|
-
<dx-checkbox-group
|
|
72
|
-
legend="Products"
|
|
73
|
-
options={products}
|
|
74
|
-
slot="content"
|
|
75
|
-
onchange={handleProductFilterChange}
|
|
76
|
-
value={selectedProductFilter}
|
|
77
|
-
class="filter-checkbox-group"
|
|
78
|
-
></dx-checkbox-group>
|
|
79
|
-
</dx-popover>
|
|
80
|
-
</div>
|
|
81
|
-
<dx-input
|
|
82
|
-
size="small"
|
|
83
|
-
placeholder="Search..."
|
|
84
|
-
icon-symbol="search"
|
|
85
|
-
shortcut-key="j"
|
|
86
|
-
class="docs-search-input"
|
|
87
|
-
onchange={handleSearchChange}
|
|
88
|
-
value={searchTerm}
|
|
89
|
-
></dx-input>
|
|
46
|
+
<img
|
|
47
|
+
class="image dx-card-base_image featured-app-image"
|
|
48
|
+
src={featuredCodeSample.img}
|
|
49
|
+
alt={featuredCodeSample.title}
|
|
50
|
+
/>
|
|
90
51
|
</div>
|
|
52
|
+
</dx-section>
|
|
53
|
+
<dx-section header="Explore Salesforce code examples.">
|
|
91
54
|
<dx-grid columns={tileColumns} if:false={showEmptyState}>
|
|
92
55
|
<dx-card-docs
|
|
93
|
-
|
|
94
|
-
for:each={currentPageSamples}
|
|
56
|
+
for:each={samples}
|
|
95
57
|
for:item="item"
|
|
96
58
|
for:index="i"
|
|
97
59
|
key={item.id}
|
|
98
60
|
body={item.body}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
61
|
+
header={item.title}
|
|
62
|
+
href={item.githubLink}
|
|
63
|
+
img-src={item.img}
|
|
64
|
+
show-mobile-img
|
|
102
65
|
>
|
|
103
66
|
<div class="badge-link-container">
|
|
104
67
|
<div class="badge-container">
|
|
105
|
-
<dx-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
68
|
+
<dx-metadata-badge
|
|
69
|
+
for:each={item.tags}
|
|
70
|
+
for:item="tag"
|
|
71
|
+
key={tag}
|
|
72
|
+
value={tag}
|
|
73
|
+
></dx-metadata-badge>
|
|
109
74
|
</div>
|
|
110
75
|
<div class="external-link-container">
|
|
111
76
|
<dx-button
|
|
112
77
|
target={target}
|
|
113
78
|
icon-symbol="new_window"
|
|
114
|
-
variant="
|
|
115
|
-
|
|
79
|
+
variant="primary"
|
|
80
|
+
size="large"
|
|
81
|
+
href={item.ctaOne.link}
|
|
82
|
+
onclick={handleReadItClick}
|
|
83
|
+
>
|
|
84
|
+
{item.ctaOne.text}
|
|
85
|
+
</dx-button>
|
|
86
|
+
<dx-button
|
|
87
|
+
target={target}
|
|
88
|
+
variant="secondary"
|
|
89
|
+
size="large"
|
|
90
|
+
href={item.ctaTwo.link}
|
|
91
|
+
onclick={handleReadItClick}
|
|
116
92
|
>
|
|
117
|
-
{item.
|
|
93
|
+
{item.ctaTwo.text}
|
|
118
94
|
</dx-button>
|
|
119
95
|
</div>
|
|
120
96
|
</div>
|
|
121
97
|
</dx-card-docs>
|
|
122
98
|
</dx-grid>
|
|
123
|
-
<div if:false={hidePagination} class="pagination-container">
|
|
124
|
-
<dx-pagination
|
|
125
|
-
if:false={showEmptyState}
|
|
126
|
-
current-page={page}
|
|
127
|
-
total-pages={totalPages}
|
|
128
|
-
pages-to-show={pagesToShow}
|
|
129
|
-
onpagechange={goToPage}
|
|
130
|
-
></dx-pagination>
|
|
131
|
-
</div>
|
|
132
|
-
<dx-empty-state
|
|
133
|
-
title="Beep boop. That did not compute."
|
|
134
|
-
subtitle={emptyStateSubtitle}
|
|
135
|
-
if:true={showEmptyState}
|
|
136
|
-
></dx-empty-state>
|
|
137
99
|
</dx-section>
|
|
138
100
|
</template>
|