@salesforcedevs/dx-components 0.43.0 → 0.43.2-alpha2
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 +2 -3
- package/src/modules/dx/cardBlogPost/cardBlogPost.css +1 -1
- package/src/modules/dx/cardContent/cardContent.css +1 -1
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +1 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +1 -1
- package/src/modules/dx/dropdownOption/dropdownOption.ts +12 -6
- package/src/modules/dx/footer/footer.ts +2 -2
- package/src/modules/dx/section/section.css +1 -1
- package/src/modules/dx/section/section.ts +9 -9
- package/src/modules/dx/vimeoPlayer/vimeoPlayer.html +1 -1
- package/src/modules/helpers/card/card.css +21 -16
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.2-alpha2",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -27,6 +27,5 @@
|
|
|
27
27
|
"@types/debounce": "^1.2.0",
|
|
28
28
|
"@types/lodash.get": "^4.4.6",
|
|
29
29
|
"@types/vimeo__player": "^2.16.2"
|
|
30
|
-
}
|
|
31
|
-
"gitHead": "ff70b3f74f6c96d2ae571ca93ca78274d444e77b"
|
|
30
|
+
}
|
|
32
31
|
}
|
|
@@ -2,7 +2,7 @@ import { LightningElement, api } from "lwc";
|
|
|
2
2
|
|
|
3
3
|
export default class CardVideoPreview extends LightningElement {
|
|
4
4
|
@api body?: string | null = null;
|
|
5
|
-
@api datetime
|
|
5
|
+
@api datetime?: string;
|
|
6
6
|
@api featured?: boolean = false;
|
|
7
7
|
@api href!: string;
|
|
8
8
|
@api imgAlt?: string;
|
|
@@ -27,13 +27,19 @@ export default class DropdownOption extends LightningElement {
|
|
|
27
27
|
new CustomEvent("select", { detail: this.keyValue })
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
+
const navHeading = this.navItemLabel || this.option.label || undefined;
|
|
31
|
+
const navSubHeading =
|
|
32
|
+
(this.navItemLabel ? this.option.label : undefined) || undefined;
|
|
33
|
+
|
|
34
|
+
const payload = {
|
|
35
|
+
navHeading,
|
|
36
|
+
navSubHeading,
|
|
37
|
+
clickText: this.keyValue || undefined,
|
|
38
|
+
pageLocation: window.location.pathname || undefined
|
|
39
|
+
};
|
|
40
|
+
|
|
30
41
|
if (this.analyticsEvent && e.currentTarget) {
|
|
31
|
-
track(e.currentTarget, this.analyticsEvent,
|
|
32
|
-
navHeading: this.navItemLabel || undefined,
|
|
33
|
-
navSubHeading: this.option.label || undefined,
|
|
34
|
-
clickText: this.keyValue || undefined,
|
|
35
|
-
pageLocation: window.location.pathname || undefined
|
|
36
|
-
});
|
|
42
|
+
track(e.currentTarget, this.analyticsEvent, payload);
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
@@ -94,8 +94,8 @@ export default class Footer extends LightningElement {
|
|
|
94
94
|
|
|
95
95
|
track(e.currentTarget, "custEv_ctaButtonClick", {
|
|
96
96
|
...ANALYTICS_INFO,
|
|
97
|
-
clickText:
|
|
98
|
-
clickUrl: href
|
|
97
|
+
clickText: this.inputSubmitLabel,
|
|
98
|
+
clickUrl: href
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
window.location.assign(href);
|
|
@@ -3,16 +3,16 @@ import cx from "classnames";
|
|
|
3
3
|
import { toDxColor } from "utils/css";
|
|
4
4
|
|
|
5
5
|
export default class Section extends LightningElement {
|
|
6
|
-
@api backgroundColor
|
|
7
|
-
@api dark
|
|
6
|
+
@api backgroundColor: string = "transparent";
|
|
7
|
+
@api dark: boolean = false;
|
|
8
8
|
@api headingLevel: "1" | "2" | "3" | "4" | "5" = "3";
|
|
9
|
-
@api label?: string
|
|
10
|
-
@api subtitle?: string
|
|
11
|
-
@api textAlign
|
|
12
|
-
@api title?: string
|
|
13
|
-
@api topGraphic
|
|
14
|
-
@api graphicOverlap
|
|
15
|
-
@api bottomGraphic
|
|
9
|
+
@api label?: string;
|
|
10
|
+
@api subtitle?: string;
|
|
11
|
+
@api textAlign: "center" | "left" = "left";
|
|
12
|
+
@api title?: string;
|
|
13
|
+
@api topGraphic: boolean = false;
|
|
14
|
+
@api graphicOverlap: boolean = false;
|
|
15
|
+
@api bottomGraphic: boolean = false;
|
|
16
16
|
|
|
17
17
|
private get style(): string {
|
|
18
18
|
return `--dx-c-section-background-color: ${toDxColor(
|
|
@@ -184,18 +184,6 @@ a.dx-card-base:hover dx-card-title {
|
|
|
184
184
|
|
|
185
185
|
/* Desktop Only */
|
|
186
186
|
@media screen and (min-width: 1024px) {
|
|
187
|
-
.dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
|
|
188
|
-
align-self: flex-start;
|
|
189
|
-
flex-shrink: 0;
|
|
190
|
-
width: 0;
|
|
191
|
-
height: unset;
|
|
192
|
-
margin-right: var(--dx-g-card-img-spacing);
|
|
193
|
-
margin-bottom: unset;
|
|
194
|
-
padding-top: unset;
|
|
195
|
-
padding-right: 45%;
|
|
196
|
-
padding-bottom: 22.5%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
187
|
.dx-card-base_featured dx-card-title {
|
|
200
188
|
--dx-c-card-title-letter-spacing: -0.6px;
|
|
201
189
|
--dx-c-card-title-font-size: 32px;
|
|
@@ -216,6 +204,21 @@ a.dx-card-base:hover dx-card-title {
|
|
|
216
204
|
}
|
|
217
205
|
}
|
|
218
206
|
|
|
207
|
+
/* Tablet + Desktop Only */
|
|
208
|
+
@media screen and (min-width: 764px) {
|
|
209
|
+
.dx-card-base_layout-horizontal .dx-card-base_borderless-image_link {
|
|
210
|
+
align-self: flex-start;
|
|
211
|
+
flex-shrink: 0;
|
|
212
|
+
width: 0;
|
|
213
|
+
height: unset;
|
|
214
|
+
margin-right: var(--dx-g-card-img-spacing);
|
|
215
|
+
margin-bottom: unset;
|
|
216
|
+
padding-top: unset;
|
|
217
|
+
padding-right: 45%;
|
|
218
|
+
padding-bottom: 22.5%;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
219
222
|
/* Tablet */
|
|
220
223
|
@media screen and (max-width: 1024px) {
|
|
221
224
|
:host {
|
|
@@ -223,10 +226,6 @@ a.dx-card-base:hover dx-card-title {
|
|
|
223
226
|
--dx-g-card-img-spacing: 16px;
|
|
224
227
|
}
|
|
225
228
|
|
|
226
|
-
.dx-card-base_borderless-image {
|
|
227
|
-
min-height: unset;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
229
|
/* text resp */
|
|
231
230
|
.dx-text-body-2,
|
|
232
231
|
.dx-text-body-3 {
|
|
@@ -256,3 +255,9 @@ a.dx-card-base:hover dx-card-title {
|
|
|
256
255
|
font-size: var(--dx-g-text-sm);
|
|
257
256
|
}
|
|
258
257
|
}
|
|
258
|
+
|
|
259
|
+
@media screen and (max-width: 764px) {
|
|
260
|
+
.dx-card-base_borderless-image {
|
|
261
|
+
min-height: unset;
|
|
262
|
+
}
|
|
263
|
+
}
|
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.
|