@salesforcedevs/dx-components 1.3.7 → 1.3.8
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 +0 -1
- package/package.json +2 -2
- package/src/modules/dx/header/header.html +0 -4
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +0 -2
- package/src/modules/dx/banner/banner.css +0 -46
- package/src/modules/dx/banner/banner.html +0 -13
- package/src/modules/dx/banner/banner.ts +0 -12
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/vimeo__player": "^2.16.2",
|
|
37
37
|
"eventsourcemock": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a428b8618c3d33b4a40f8aa3cefde6ac0d04cf0b"
|
|
40
40
|
}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
<dx-brand-theme-provider brand={brand}>
|
|
3
3
|
<header class={className}>
|
|
4
4
|
<dx-skip-nav-link></dx-skip-nav-link>
|
|
5
|
-
<dx-banner
|
|
6
|
-
if:true={bannerMarkup}
|
|
7
|
-
banner-markup={bannerMarkup}
|
|
8
|
-
></dx-banner>
|
|
9
5
|
<div class="header_l1">
|
|
10
6
|
<dx-logo label={title}></dx-logo>
|
|
11
7
|
<div class="header-cta-container">
|
|
@@ -41,8 +41,6 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
41
41
|
@api subtitle!: string;
|
|
42
42
|
@api title: string = "Salesforce";
|
|
43
43
|
@api version?: string | null = null;
|
|
44
|
-
@api bannerMarkup =
|
|
45
|
-
'Thank you for visiting the Salesforce Developers website! <span><a href="https://forms.gle/oWYTbH9RvGyt9uxx7" target="blank">We value your feedback</a></span>';
|
|
46
44
|
|
|
47
45
|
@api
|
|
48
46
|
get navItems() {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@import "dxHelpers/reset";
|
|
2
|
-
@import "dxHelpers/text";
|
|
3
|
-
|
|
4
|
-
.container {
|
|
5
|
-
--primary-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
6
|
-
--secondary-color: var(--dx-g-cloud-blue-vibrant-40);
|
|
7
|
-
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
min-height: 24px;
|
|
14
|
-
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
15
|
-
background: repeating-linear-gradient(
|
|
16
|
-
45deg,
|
|
17
|
-
var(--primary-color),
|
|
18
|
-
var(--primary-color) 20px,
|
|
19
|
-
var(--secondary-color) 20px,
|
|
20
|
-
var(--secondary-color) 40px
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.container_inner {
|
|
25
|
-
height: 100%;
|
|
26
|
-
display: flex;
|
|
27
|
-
background: var(--primary-color);
|
|
28
|
-
padding: var(--dx-g-spacing-xs) var(--dx-g-spacing-sm);
|
|
29
|
-
color: white;
|
|
30
|
-
font-weight: bold;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.container a {
|
|
34
|
-
text-decoration: underline;
|
|
35
|
-
transition: var(--dx-g-transition-hue-1x);
|
|
36
|
-
margin-right: 4px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.container a:hover {
|
|
40
|
-
opacity: 0.8;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.container dx-icon {
|
|
44
|
-
margin-right: var(--dx-g-spacing-sm);
|
|
45
|
-
margin-top: var(--dx-g-spacing-2xs);
|
|
46
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="container">
|
|
3
|
-
<div class="container_inner dx-text-body-4">
|
|
4
|
-
<dx-icon symbol="announcement"></dx-icon>
|
|
5
|
-
<!--
|
|
6
|
-
NOTE: Here we are rendering mark up using lwc:dom & innerHTML
|
|
7
|
-
option instead of slots because the html markup will come as a
|
|
8
|
-
property to the component from a configuration
|
|
9
|
-
-->
|
|
10
|
-
<div lwc:dom="manual" class="info-container"></div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api } from "lwc";
|
|
2
|
-
import { setContainerInnerHtml } from "dxUtils/lwc";
|
|
3
|
-
|
|
4
|
-
export default class Banner extends LightningElement {
|
|
5
|
-
@api bannerMarkup =
|
|
6
|
-
'Thank you for visiting the Salesforce Developers website! <span><a href="https://forms.gle/oWYTbH9RvGyt9uxx7" target="blank">We value your feedback</a></span>';
|
|
7
|
-
|
|
8
|
-
renderedCallback() {
|
|
9
|
-
const container = this.template.querySelector(".info-container");
|
|
10
|
-
setContainerInnerHtml(container, this.bannerMarkup);
|
|
11
|
-
}
|
|
12
|
-
}
|