@salesforcedevs/dw-components 0.54.0 → 0.54.7-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/lwc.config.json +10 -1
- package/package.json +9 -4
- package/src/modules/dw/blogsGrid/blogsGrid.css +80 -0
- package/src/modules/dw/blogsGrid/blogsGrid.html +57 -0
- package/src/modules/dw/blogsGrid/blogsGrid.ts +28 -0
- package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.ts +2 -2
- package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +2 -2
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +171 -0
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +133 -0
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +429 -0
- package/src/modules/dw/contentArchive/contentArchive.css +1 -1
- package/src/modules/dw/contentArchive/contentArchive.ts +2 -2
- package/src/modules/dw/deSignupForm/deSignupForm.css +70 -0
- package/src/modules/dw/deSignupForm/deSignupForm.html +99 -0
- package/src/modules/dw/deSignupForm/deSignupForm.ts +268 -0
- package/src/modules/dw/deSignupForm/submitForm.ts +90 -0
- package/src/modules/dw/docsGrid/docsGrid.css +86 -0
- package/src/modules/dw/docsGrid/docsGrid.html +84 -0
- package/src/modules/dw/docsGrid/docsGrid.ts +539 -0
- package/src/modules/dw/eventsList/eventsList.css +109 -0
- package/src/modules/dw/eventsList/eventsList.html +91 -0
- package/src/modules/dw/eventsList/eventsList.ts +180 -0
- package/src/modules/dw/instrumentation/instrumentation.ts +1 -1
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/newsletterForm/newsletterForm.html +1 -1
- package/src/modules/dw/newsletterForm/newsletterForm.ts +3 -3
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +2 -2
- package/src/modules/dw/podcastsGrid/podcastsGrid.css +5 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.html +29 -0
- package/src/modules/dw/podcastsGrid/podcastsGrid.ts +9 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.css +32 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.html +30 -0
- package/src/modules/dw/podcastsPromo/podcastsPromo.ts +3 -0
- package/src/modules/dw/rcgTable/altData.ts +78 -0
- package/src/modules/dw/rcgTable/getTableData.ts +10 -0
- package/src/modules/dw/rcgTable/rcgTable.css +39 -0
- package/src/modules/dw/rcgTable/rcgTable.html +31 -0
- package/src/modules/dw/rcgTable/rcgTable.ts +34 -0
- package/src/modules/dw/searchResults/searchResults.css +1 -1
- package/src/modules/dw/slackCta/slackCta.css +2 -2
- package/src/modules/dw/slackSuccess/slackSuccess.css +65 -0
- package/src/modules/dw/slackSuccess/slackSuccess.html +32 -0
- package/src/modules/dw/slackSuccess/slackSuccess.ts +32 -0
- package/src/modules/dwBaseElements/postsGrid/postsGrid.ts +76 -0
- package/src/modules/dwHelpers/postsGrid/postsGrid.css +9 -0
- package/LICENSE +0 -12
package/lwc.config.json
CHANGED
|
@@ -4,13 +4,22 @@
|
|
|
4
4
|
{ "npm": "@salesforcedevs/dx-components" }
|
|
5
5
|
],
|
|
6
6
|
"expose": [
|
|
7
|
+
"dw/blogsGrid",
|
|
7
8
|
"dw/cardBlogPostProvider",
|
|
8
9
|
"dw/cardPodcastEpisodeProvider",
|
|
10
|
+
"dw/codeSamplesGrid",
|
|
9
11
|
"dw/contentArchive",
|
|
12
|
+
"dw/deSignupForm",
|
|
13
|
+
"dw/docsGrid",
|
|
14
|
+
"dw/eventsList",
|
|
10
15
|
"dw/instrumentation",
|
|
11
16
|
"dw/newsletterForm",
|
|
12
17
|
"dw/podcastSubscription",
|
|
18
|
+
"dw/podcastsGrid",
|
|
19
|
+
"dw/podcastsPromo",
|
|
20
|
+
"dw/rcgTable",
|
|
13
21
|
"dw/searchResults",
|
|
14
|
-
"dw/slackCta"
|
|
22
|
+
"dw/slackCta",
|
|
23
|
+
"dw/slackSuccess"
|
|
15
24
|
]
|
|
16
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.7-alpha",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"classnames": "^2.2.6",
|
|
14
14
|
"coveo-search-ui": "^2.10082.5",
|
|
15
|
+
"lodash.clonedeep": "^4.5.0",
|
|
16
|
+
"lodash.orderby": "^4.6.0",
|
|
17
|
+
"lodash.uniqby": "^4.7.0",
|
|
15
18
|
"query-string": "^7.1.1"
|
|
16
19
|
},
|
|
17
20
|
"devDependencies": {
|
|
18
|
-
"@types/classnames": "^2.2.10"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
"@types/classnames": "^2.2.10",
|
|
22
|
+
"@types/lodash.clonedeep": "^4.5.7",
|
|
23
|
+
"@types/lodash.orderby": "^4.6.7",
|
|
24
|
+
"@types/lodash.uniqby": "^4.7.7"
|
|
25
|
+
}
|
|
21
26
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@import "dwHelpers/postsGrid";
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
--dx-c-post-list-padding-horizontal: var(--dx-g-page-padding-horizontal);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
font-family: var(--dx-g-font-display);
|
|
9
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
dx-section.section-reduced-padding {
|
|
15
|
+
--dx-c-section-padding-vertical: unset;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media only screen and (min-width: 640px) {
|
|
19
|
+
.title {
|
|
20
|
+
font-size: 24px;
|
|
21
|
+
height: 64px;
|
|
22
|
+
letter-spacing: -0.5px;
|
|
23
|
+
line-height: 32px;
|
|
24
|
+
width: 476px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.box {
|
|
28
|
+
width: 548px;
|
|
29
|
+
height: 162px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media only screen and (max-width: 640px) {
|
|
34
|
+
.title {
|
|
35
|
+
font-size: 20px;
|
|
36
|
+
height: 84px;
|
|
37
|
+
letter-spacing: -0.4px;
|
|
38
|
+
line-height: 28px;
|
|
39
|
+
width: 321px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.box {
|
|
43
|
+
width: 354px;
|
|
44
|
+
height: 162px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.button {
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
letter-spacing: 0;
|
|
52
|
+
height: 48px;
|
|
53
|
+
width: 123px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.subscription-box {
|
|
57
|
+
align-items: center;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.content {
|
|
63
|
+
align-items: center;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
padding: 12px 20px 0 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.box {
|
|
70
|
+
background-image: url("/assets/images/background.svg");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.icon {
|
|
74
|
+
float: right;
|
|
75
|
+
margin-left: 6px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
h2 {
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dx-hr spacing="3xl"></dx-hr>
|
|
3
|
+
|
|
4
|
+
<dx-section class="section-padding-lg section-reduced-padding">
|
|
5
|
+
<div class="subscription-box">
|
|
6
|
+
<div class="box">
|
|
7
|
+
<div class="content">
|
|
8
|
+
<h2 class="title">
|
|
9
|
+
Stay up to date with the latest news from the Salesforce Developers Blog
|
|
10
|
+
</h2>
|
|
11
|
+
<dx-button
|
|
12
|
+
size="small"
|
|
13
|
+
icon-symbol="rss"
|
|
14
|
+
icon-sprite="general"
|
|
15
|
+
class="button"
|
|
16
|
+
onclick={rssOnClick}
|
|
17
|
+
>
|
|
18
|
+
Subscribe
|
|
19
|
+
</dx-button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</dx-section>
|
|
24
|
+
|
|
25
|
+
<dx-hr spacing="2xl"></dx-hr>
|
|
26
|
+
|
|
27
|
+
<div class="container">
|
|
28
|
+
<dx-grid columns={columns}>
|
|
29
|
+
<template for:each={postList} for:item="post">
|
|
30
|
+
<dx-card-blog-post
|
|
31
|
+
author-img-src={post.authorImgSrc}
|
|
32
|
+
author-label={post.authorName}
|
|
33
|
+
body={post.body}
|
|
34
|
+
datetime={post.datetime}
|
|
35
|
+
href={post.href}
|
|
36
|
+
img-alt={post.imgAlt}
|
|
37
|
+
img-src={post.imgSrc}
|
|
38
|
+
key={post.id}
|
|
39
|
+
title={post.title}
|
|
40
|
+
></dx-card-blog-post>
|
|
41
|
+
</template>
|
|
42
|
+
</dx-grid>
|
|
43
|
+
<dx-hr
|
|
44
|
+
if:true={hasMorePosts}
|
|
45
|
+
onclick={onClick}
|
|
46
|
+
variant="load-more"
|
|
47
|
+
text="SHOW MORE"
|
|
48
|
+
></dx-hr>
|
|
49
|
+
<dx-hr
|
|
50
|
+
if:true={showArchives}
|
|
51
|
+
onclick={onClick}
|
|
52
|
+
variant="link"
|
|
53
|
+
href='/content-archive?c__filter=%5B"Blogs"%5D'
|
|
54
|
+
text="VIEW ARCHIVES"
|
|
55
|
+
></dx-hr>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { normalizePost } from "dxUtils/normalizers";
|
|
2
|
+
import { track } from "dxUtils/analytics";
|
|
3
|
+
import { WordpressBlogPost, NormalizedPost } from "typings/custom";
|
|
4
|
+
import { PostsGrid } from "dwBaseElements/postsGrid";
|
|
5
|
+
|
|
6
|
+
const BLOG_SUBSCRIBE_HREF = "https://developer.salesforce.com/blogs/feed";
|
|
7
|
+
|
|
8
|
+
const ANALYTICS_INFO = {
|
|
9
|
+
itemTitle: "Blogs RSS Subscribe Button",
|
|
10
|
+
elementType: "button",
|
|
11
|
+
destinationType: "internal",
|
|
12
|
+
clickText: "Subscribe",
|
|
13
|
+
clickUrl: BLOG_SUBSCRIBE_HREF,
|
|
14
|
+
ctaClick: true
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default class BlogsGrid extends PostsGrid {
|
|
18
|
+
_loadMoreAmount = 21;
|
|
19
|
+
|
|
20
|
+
normalizePost(post: WordpressBlogPost): NormalizedPost {
|
|
21
|
+
return normalizePost(post);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
rssOnClick(event: Event): void {
|
|
25
|
+
track(event.target!, "custEv_ctaButtonClick", ANALYTICS_INFO);
|
|
26
|
+
window.location.href = BLOG_SUBSCRIBE_HREF;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
import { fetchWordpressPosts } from "
|
|
3
|
-
import { normalizePost } from "
|
|
2
|
+
import { fetchWordpressPosts } from "dxUtils/wordpress";
|
|
3
|
+
import { normalizePost } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
type BlogPost = {
|
|
6
6
|
body: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
import { fetchWordpressPosts } from "
|
|
3
|
-
import { normalizeEpisode } from "
|
|
2
|
+
import { fetchWordpressPosts } from "dxUtils/wordpress";
|
|
3
|
+
import { normalizeEpisode } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
type PodcastEpisode = {
|
|
6
6
|
body: string;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
dx-section:first-of-type {
|
|
2
|
+
--dx-c-section-padding-bottom: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.badge-link-container {
|
|
6
|
+
padding-top: var(--dx-g-spacing-md);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.badge-container {
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.external-link-container {
|
|
14
|
+
padding-top: var(--dx-g-spacing-md);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.item-container {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.featured-demo {
|
|
24
|
+
--dx-c-featured-content-header-background-color: unset;
|
|
25
|
+
--dx-c-featured-content-header-padding-horizontal: unset;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.code-samples-feature {
|
|
29
|
+
--dx-c-feature-img-box-shadow: unset;
|
|
30
|
+
--dx-c-feature-description-left-img-src: unset;
|
|
31
|
+
--dx-c-feature-description-max-width: 100%;
|
|
32
|
+
--dx-c-feature-description-font-size: 20px;
|
|
33
|
+
--dx-c-feature-img-margin-left: -40px;
|
|
34
|
+
--dx-c-feature-img-container-padding: 0;
|
|
35
|
+
--dx-c-feature-image-max-width: 120%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.card-content {
|
|
39
|
+
--dx-c-body-max-lines: 3;
|
|
40
|
+
|
|
41
|
+
height: unset;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.docs-action-bar {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
align-items: flex-end;
|
|
48
|
+
padding: var(--dx-g-spacing-md) 0 var(--dx-g-spacing-lg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.docs-action-bar > .records-container {
|
|
52
|
+
margin-right: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.docs-action-bar .filters-container {
|
|
56
|
+
display: flex;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.filter-checkbox-group,
|
|
60
|
+
.filter-button::part(container) {
|
|
61
|
+
--dx-c-checkbox-text-transform: capitalize;
|
|
62
|
+
|
|
63
|
+
text-transform: var(--dx-c-checkbox-text-transform);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.docs-action-bar .filters-container > *:not(:first-child),
|
|
67
|
+
.docs-search-input {
|
|
68
|
+
margin-left: var(--dx-g-spacing-sm);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.docs-search-input {
|
|
72
|
+
--dx-c-input-width: 285px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.docs-card {
|
|
76
|
+
--dx-c-body-max-lines: 4;
|
|
77
|
+
--dx-c-heading-max-lines: 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pagination-container {
|
|
81
|
+
max-width: fit-content;
|
|
82
|
+
max-width: -moz-fit-content;
|
|
83
|
+
margin: 50px auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
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
|
+
@media screen and (max-width: 1024px) {
|
|
92
|
+
.code-samples-feature {
|
|
93
|
+
--dx-c-feature-description-font-size: 14px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.docs-card {
|
|
97
|
+
--dx-c-body-max-lines: 3;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media screen and (max-width: 767px) {
|
|
102
|
+
.badge-link-container {
|
|
103
|
+
display: flex;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.docs-action-bar {
|
|
107
|
+
flex-direction: column-reverse;
|
|
108
|
+
width: 100%;
|
|
109
|
+
padding: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.docs-search-input {
|
|
113
|
+
--dx-c-input-width: 100%;
|
|
114
|
+
|
|
115
|
+
width: 100%;
|
|
116
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.docs-action-bar .records-container {
|
|
120
|
+
transform: translateY(-100%);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.item-container:not(:nth-child(1)) {
|
|
124
|
+
margin-top: var(--dx-g-spacing-3xl);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.external-link-container {
|
|
128
|
+
padding: 0 0 0 8px;
|
|
129
|
+
margin-top: -4px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@media screen and (max-width: 600px) {
|
|
134
|
+
.pagination-container {
|
|
135
|
+
width: 100%;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.pagination-container > * {
|
|
140
|
+
position: absolute;
|
|
141
|
+
left: 50%;
|
|
142
|
+
transform: translateX(-50%);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media screen and (max-width: 460px) {
|
|
147
|
+
.item-container:not(:nth-child(1)) {
|
|
148
|
+
margin-top: 45px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.docs-action-bar .records-container {
|
|
152
|
+
transform: initial;
|
|
153
|
+
padding: var(--dx-g-spacing-md) 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.docs-action-bar {
|
|
157
|
+
align-items: flex-start;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media screen and (min-width: 1025px) {
|
|
162
|
+
.item-container:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
|
|
163
|
+
margin-top: 70px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media screen and (max-width: 1024px) and (min-width: 768px) {
|
|
168
|
+
.item-container:not(:nth-child(1)):not(:nth-child(2)) {
|
|
169
|
+
margin-top: 51px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dx-section>
|
|
3
|
+
<dx-feature
|
|
4
|
+
title={featuredCodeSample.title}
|
|
5
|
+
button-href={featuredCodeSample.href}
|
|
6
|
+
button-label="Explore on GitHub"
|
|
7
|
+
image-src={featuredCodeSample.imgSrc}
|
|
8
|
+
variant="display"
|
|
9
|
+
label="Featured Demo"
|
|
10
|
+
is-external-link
|
|
11
|
+
class="code-samples-feature"
|
|
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 { filteredSamples.length }
|
|
22
|
+
</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="filters-container">
|
|
25
|
+
<dx-popover if:true={showSourcesFilter} width="max-content">
|
|
26
|
+
<dx-button
|
|
27
|
+
class="filter-button"
|
|
28
|
+
variant="tertiary"
|
|
29
|
+
icon-symbol="chevrondown"
|
|
30
|
+
slot="control"
|
|
31
|
+
>
|
|
32
|
+
Source
|
|
33
|
+
</dx-button>
|
|
34
|
+
<dx-checkbox-group
|
|
35
|
+
legend="Source"
|
|
36
|
+
options={sources}
|
|
37
|
+
slot="content"
|
|
38
|
+
onchange={handleSourceFilterChange}
|
|
39
|
+
value={selectedSourceFilter}
|
|
40
|
+
class="filter-checkbox-group"
|
|
41
|
+
></dx-checkbox-group>
|
|
42
|
+
</dx-popover>
|
|
43
|
+
<dx-popover width="max-content">
|
|
44
|
+
<dx-button
|
|
45
|
+
class="filter-button"
|
|
46
|
+
variant="tertiary"
|
|
47
|
+
icon-symbol="chevrondown"
|
|
48
|
+
slot="control"
|
|
49
|
+
>
|
|
50
|
+
Type
|
|
51
|
+
</dx-button>
|
|
52
|
+
<dx-checkbox-group
|
|
53
|
+
legend="Type"
|
|
54
|
+
options={types}
|
|
55
|
+
slot="content"
|
|
56
|
+
onchange={handleTypeFilterChange}
|
|
57
|
+
value={selectedTypeFilter}
|
|
58
|
+
class="filter-checkbox-group"
|
|
59
|
+
></dx-checkbox-group>
|
|
60
|
+
</dx-popover>
|
|
61
|
+
<dx-popover width="max-content">
|
|
62
|
+
<dx-button
|
|
63
|
+
class="filter-button"
|
|
64
|
+
variant="tertiary"
|
|
65
|
+
icon-symbol="chevrondown"
|
|
66
|
+
slot="control"
|
|
67
|
+
>
|
|
68
|
+
Products
|
|
69
|
+
</dx-button>
|
|
70
|
+
<dx-checkbox-group
|
|
71
|
+
legend="Products"
|
|
72
|
+
options={products}
|
|
73
|
+
slot="content"
|
|
74
|
+
onchange={handleProductFilterChange}
|
|
75
|
+
value={selectedProductFilter}
|
|
76
|
+
class="filter-checkbox-group"
|
|
77
|
+
></dx-checkbox-group>
|
|
78
|
+
</dx-popover>
|
|
79
|
+
</div>
|
|
80
|
+
<dx-input
|
|
81
|
+
size="small"
|
|
82
|
+
placeholder="Search..."
|
|
83
|
+
icon-symbol="search"
|
|
84
|
+
shortcut-key="j"
|
|
85
|
+
class="docs-search-input"
|
|
86
|
+
onchange={handleSearchChange}
|
|
87
|
+
value={searchTerm}
|
|
88
|
+
></dx-input>
|
|
89
|
+
</div>
|
|
90
|
+
<dx-grid columns={tileColumns} if:false={showEmptyState}>
|
|
91
|
+
<dx-card-docs
|
|
92
|
+
class="content-card"
|
|
93
|
+
for:each={currentPageSamples}
|
|
94
|
+
for:item="item"
|
|
95
|
+
for:index="i"
|
|
96
|
+
key={item.id}
|
|
97
|
+
body={item.body}
|
|
98
|
+
label={item.type}
|
|
99
|
+
title={item.title}
|
|
100
|
+
>
|
|
101
|
+
<div class="badge-link-container">
|
|
102
|
+
<div class="badge-container">
|
|
103
|
+
<dx-type-badge value={item.product} class={item.product}></dx-type-badge>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="external-link-container">
|
|
106
|
+
<dx-button
|
|
107
|
+
target={target}
|
|
108
|
+
icon-symbol="new_window"
|
|
109
|
+
variant="inline"
|
|
110
|
+
href={item.href}
|
|
111
|
+
>
|
|
112
|
+
{item.buttonText}
|
|
113
|
+
</dx-button>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</dx-card-docs>
|
|
117
|
+
</dx-grid>
|
|
118
|
+
<div if:false={hidePagination} class="pagination-container">
|
|
119
|
+
<dx-pagination
|
|
120
|
+
if:false={showEmptyState}
|
|
121
|
+
current-page={page}
|
|
122
|
+
total-pages={totalPages}
|
|
123
|
+
pages-to-show={pagesToShow}
|
|
124
|
+
onpagechange={goToPage}
|
|
125
|
+
></dx-pagination>
|
|
126
|
+
</div>
|
|
127
|
+
<dx-empty-state
|
|
128
|
+
title="Beep boop. That did not compute."
|
|
129
|
+
subtitle={emptyStateSubtitle}
|
|
130
|
+
if:true={showEmptyState}
|
|
131
|
+
></dx-empty-state>
|
|
132
|
+
</dx-section>
|
|
133
|
+
</template>
|