@salesforcedevs/dw-components 1.3.302 → 1.3.304-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.3.302",
3
+ "version": "1.3.304-alpha.0",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -25,6 +25,5 @@
25
25
  "@types/lodash.uniqby": "^4.7.7",
26
26
  "@types/setimmediate": "^1.0.2",
27
27
  "setimmediate": "^1.0.5"
28
- },
29
- "gitHead": "c3601af5d8b2307e904fcbf63e4ae0ab997f5eaf"
28
+ }
30
29
  }
@@ -50,7 +50,7 @@
50
50
  img-alt={post.imgAlt}
51
51
  img-src={post.imgSrc}
52
52
  key={post.id}
53
- title={post.title}
53
+ header={post.title}
54
54
  ></dx-card-blog-post>
55
55
  <dx-hr
56
56
  spacing="2xs"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <dx-section title={title}>
2
+ <dx-section header={header}>
3
3
  <dx-tab-panel-list
4
4
  tabs={tabLabels}
5
5
  onchange={handleTabChange}
@@ -26,7 +26,7 @@
26
26
  </div>
27
27
  <template for:each={filteredCategories} for:item="category">
28
28
  <dx-section
29
- title={category.title}
29
+ header={category.title}
30
30
  subtitle={category.subtitle}
31
31
  heading-level="4"
32
32
  subtitle-level="2"
@@ -50,7 +50,7 @@
50
50
  href={card.href}
51
51
  label={card.label}
52
52
  terms={card.terms}
53
- title={card.title}
53
+ header={card.title}
54
54
  button-one-cta={card.buttonOneCta}
55
55
  button-one-href={card.buttonOneHref}
56
56
  button-one-icon={card.buttonOneIcon}
@@ -69,7 +69,7 @@
69
69
  href={card.href}
70
70
  label={card.label}
71
71
  terms={card.terms}
72
- title={card.title}
72
+ header={card.title}
73
73
  button-one-cta={card.buttonOneCta}
74
74
  button-one-href={card.buttonOneHref}
75
75
  button-one-icon={card.buttonOneIcon}
@@ -4,7 +4,7 @@ import { toJson } from "dxUtils/normalizers";
4
4
  const STORED_TAB_SELECTED_KEY = "storedTabIndex";
5
5
 
6
6
  export default class BrowseTrials extends LightningElement {
7
- @api title = "Browse Trials";
7
+ @api header = "Browse Trials";
8
8
 
9
9
  @api
10
10
  get trials() {
@@ -8,7 +8,7 @@
8
8
  img-alt={post.imgAlt}
9
9
  img-src={post.imgSrc}
10
10
  key={post.id}
11
- title={post.title}
11
+ header={post.title}
12
12
  authors={post.authors}
13
13
  ></dx-card-blog-post>
14
14
  <dx-hr spacing="2xs" class="mobile-divider_posts" key={post.id}></dx-hr>
@@ -6,7 +6,7 @@
6
6
  href={episode.href}
7
7
  key={episode.id}
8
8
  length={episode.length}
9
- title={episode.title}
9
+ header={episode.title}
10
10
  ></dx-card-podcast-episode>
11
11
  <dx-hr spacing="2xs" class="mobile-divider" key={episode.id}></dx-hr>
12
12
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <dx-section>
3
3
  <dx-feature
4
- title={featuredCodeSample.title}
4
+ header={featuredCodeSample.title}
5
5
  button-href={featuredCodeSample.href}
6
6
  button-label="Explore on GitHub"
7
7
  image-src={featuredCodeSample.imgSrc}
@@ -14,7 +14,7 @@
14
14
  </dx-feature>
15
15
  </dx-section>
16
16
 
17
- <dx-section title="Browse Demos">
17
+ <dx-section header="Browse Demos">
18
18
  <div class="docs-action-bar">
19
19
  <div class="records-container">
20
20
  <span if:true={endingRecord}>
@@ -97,7 +97,7 @@
97
97
  key={item.id}
98
98
  body={item.body}
99
99
  label={item.type}
100
- title={item.title}
100
+ header={item.title}
101
101
  href={item.href}
102
102
  >
103
103
  <div class="badge-link-container">
@@ -132,7 +132,7 @@
132
132
  </div>
133
133
  <dx-empty-state
134
134
  variant="alt"
135
- title="Beep boop. That did not compute."
135
+ header="Beep boop. That did not compute."
136
136
  subtitle={emptyStateSubtitle}
137
137
  body={emptyStateBody}
138
138
  suggestions={emptyStateSuggestions}
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <dx-featured-content-header
3
3
  class="documentation_header"
4
- title="Content Archive"
4
+ header="Content Archive"
5
5
  body="Learn more about the topics that interest you most by exploring the full collection of Salesforce Developers blog and podcast content."
6
6
  dark="true"
7
7
  no-swoop={isMobile}
@@ -27,13 +27,13 @@
27
27
  </div>
28
28
  <dx-filter-menu
29
29
  name="content-type"
30
- title={contentTypeTitle}
30
+ header={contentTypeTitle}
31
31
  options={contentTypeList}
32
32
  onchange={handleUpdateSiteFilter}
33
33
  ></dx-filter-menu>
34
34
  <dx-filter-menu
35
35
  name="dates"
36
- title={dateTitle}
36
+ header={dateTitle}
37
37
  options={dateList}
38
38
  variant="nested"
39
39
  filters-dates-loading={filtersDatesLoading}
@@ -42,20 +42,20 @@
42
42
  <template if:false={hideBlogFilters}>
43
43
  <dx-filter-menu
44
44
  name="authors"
45
- title={authorTitle}
45
+ header={authorTitle}
46
46
  options={authorList}
47
47
  onchange={handleFiltersEvent}
48
48
  ></dx-filter-menu>
49
49
  </template>
50
50
  <dx-filter-menu
51
51
  name="categories"
52
- title={categoryTitle}
52
+ header={categoryTitle}
53
53
  options={categoryList}
54
54
  onchange={handleFiltersEvent}
55
55
  ></dx-filter-menu>
56
56
  <dx-filter-menu
57
57
  name="language"
58
- title={languageTitle}
58
+ header={languageTitle}
59
59
  options={languagesList}
60
60
  onchange={handleFiltersEvent}
61
61
  ></dx-filter-menu>
@@ -81,13 +81,13 @@
81
81
  </div>
82
82
  <dx-filter-menu
83
83
  name="contentType"
84
- title={contentTypeTitle}
84
+ header={contentTypeTitle}
85
85
  options={contentTypeList}
86
86
  onchange={handleUpdateSiteFilter}
87
87
  ></dx-filter-menu>
88
88
  <dx-filter-menu
89
89
  name="dates"
90
- title={dateTitle}
90
+ header={dateTitle}
91
91
  options={dateList}
92
92
  filters-dates-loading={filtersDatesLoading}
93
93
  variant="nested"
@@ -96,20 +96,20 @@
96
96
  <template if:false={hideBlogFilters}>
97
97
  <dx-filter-menu
98
98
  name="authors"
99
- title={authorTitle}
99
+ header={authorTitle}
100
100
  options={authorList}
101
101
  onchange={handleFiltersEvent}
102
102
  ></dx-filter-menu>
103
103
  </template>
104
104
  <dx-filter-menu
105
105
  name="categories"
106
- title={categoryTitle}
106
+ header={categoryTitle}
107
107
  options={categoryList}
108
108
  onchange={handleFiltersEvent}
109
109
  ></dx-filter-menu>
110
110
  <dx-filter-menu
111
111
  name="language"
112
- title={languageTitle}
112
+ header={languageTitle}
113
113
  options={languagesList}
114
114
  onchange={handleFiltersEvent}
115
115
  ></dx-filter-menu>
@@ -312,7 +312,7 @@
312
312
  <dx-card-minimal
313
313
  key={post.id}
314
314
  content-type={post.contentType}
315
- title={post.title}
315
+ header={post.title}
316
316
  href={post.href}
317
317
  ></dx-card-minimal>
318
318
  </template>
@@ -324,7 +324,7 @@
324
324
  <template if:true={post.authors}>
325
325
  <dx-card-expanded
326
326
  key={post.id}
327
- title={post.title}
327
+ header={post.title}
328
328
  content-type={post.contentType}
329
329
  href={post.href}
330
330
  date={post.date}
@@ -337,7 +337,7 @@
337
337
  <template if:false={post.authors}>
338
338
  <dx-card-expanded
339
339
  key={post.id}
340
- title={post.title}
340
+ header={post.title}
341
341
  content-type={post.contentType}
342
342
  href={post.href}
343
343
  date={post.date}
@@ -363,7 +363,7 @@
363
363
  <template if:true={isEmptyState}>
364
364
  <dx-empty-state
365
365
  variant="alt"
366
- title="Beep boop. That did not compute."
366
+ header="Beep boop. That did not compute."
367
367
  subtitle={emptyStateSubtitle}
368
368
  body={emptyStateBody}
369
369
  suggestions={emptyStateSuggestions}
@@ -45,7 +45,7 @@
45
45
  for:item="item"
46
46
  for:index="i"
47
47
  key={item.id}
48
- title={item.title}
48
+ header={item.title}
49
49
  body={item.description}
50
50
  href={item.guidesHref}
51
51
  class="docs-card"
@@ -84,7 +84,7 @@
84
84
  </div>
85
85
  <dx-empty-state
86
86
  variant="alt"
87
- title="Beep boop. That did not compute."
87
+ header="Beep boop. That did not compute."
88
88
  subtitle={emptyStateSubtitle}
89
89
  body={emptyStateBody}
90
90
  suggestions={emptyStateSuggestions}
@@ -49,7 +49,7 @@
49
49
  </dx-section>
50
50
  <dx-section
51
51
  class="events-list upcoming-events"
52
- title="Upcoming Events"
52
+ header="Upcoming Events"
53
53
  if:true={upcomingEvents.length}
54
54
  >
55
55
  <dx-card-event
@@ -57,7 +57,7 @@
57
57
  for:item="item"
58
58
  key={item.id}
59
59
  href={item.urlStub}
60
- title={item.name}
60
+ header={item.name}
61
61
  end-datetime={item.endDate}
62
62
  start-datetime={item.startDate}
63
63
  short-description={item.shortDescription}
@@ -71,7 +71,7 @@
71
71
 
72
72
  <dx-section
73
73
  class="events-list past-events"
74
- title="Past Events"
74
+ header="Past Events"
75
75
  if:true={pastEvents.length}
76
76
  >
77
77
  <dx-card-event
@@ -79,7 +79,7 @@
79
79
  for:item="item"
80
80
  key={item.id}
81
81
  href={item.urlStub}
82
- title={item.name}
82
+ header={item.name}
83
83
  end-datetime={item.endDate}
84
84
  start-datetime={item.startDate}
85
85
  short-description={item.shortDescription}
@@ -90,7 +90,7 @@
90
90
  </dx-section>
91
91
  <div class="events-empty" if:true={showEmptyState}>
92
92
  <dx-empty-state
93
- title="Beep boop. That did not compute."
93
+ header="Beep boop. That did not compute."
94
94
  subtitle={emptyStateSubtitle}
95
95
  ></dx-empty-state>
96
96
  </div>
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <dx-select
3
- if:false={noTranslationsAvailable}
4
3
  options={languages}
5
4
  onchange={handleLanguageChange}
6
5
  placement="bottom-end"
7
6
  value={selectedLanguage}
8
7
  disabled={noTranslationsAvailable}
8
+ loading={loading}
9
9
  ></dx-select>
10
10
  </template>
@@ -26,7 +26,8 @@ export const normalizePostLink = (post: {
26
26
 
27
27
  export default class LanguageSelector extends LightningElement {
28
28
  @track languages = [] as SelectOption[];
29
- @track selectedLanguage?: string;
29
+ selectedLanguage?: string;
30
+ loading = true;
30
31
  @api postAcf!: string;
31
32
  @api postId?: string;
32
33
 
@@ -69,6 +70,8 @@ export default class LanguageSelector extends LightningElement {
69
70
  });
70
71
  } catch (e) {
71
72
  console.error(e);
73
+ } finally {
74
+ this.loading = false;
72
75
  }
73
76
 
74
77
  this.selectedLanguage =
@@ -8,7 +8,7 @@
8
8
  href={podcast.href}
9
9
  key={podcast.id}
10
10
  length={podcast.length}
11
- title={podcast.title}
11
+ header={podcast.title}
12
12
  ></dx-card-podcast-episode>
13
13
  <dx-hr
14
14
  spacing="2xs"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <dx-section
3
- title="Developer Podcast"
3
+ header="Developer Podcast"
4
4
  part="section"
5
5
  cta-label={ctaLabel}
6
6
  cta-href={ctaHref}
@@ -6,7 +6,7 @@
6
6
  key={cardData.id}
7
7
  type="twitter"
8
8
  video-id={cardData.videoId}
9
- title={cardData.title}
9
+ header={cardData.title}
10
10
  body={cardData.body}
11
11
  has-social={cardData.hasSocial}
12
12
  social-name={cardData.socialName}
@@ -20,7 +20,7 @@
20
20
  key={cardData.id}
21
21
  type="linkedin"
22
22
  video-id={cardData.videoId}
23
- title={cardData.title}
23
+ header={cardData.title}
24
24
  body={cardData.body}
25
25
  has-social={cardData.hasSocial}
26
26
  social-name={cardData.socialName}
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.