@salesforcedevs/dx-components 1.3.7 → 1.3.9
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 +3 -3
- package/src/modules/dx/header/header.html +0 -4
- package/src/modules/dx/headerSearch/headerSearch.html +0 -2
- package/src/modules/dx/headerSearch/headerSearch.ts +0 -1
- package/src/modules/dx/input/input.ts +0 -2
- package/src/modules/dx/sidebarSearch/sidebarSearch.html +0 -1
- package/src/modules/dx/sidebarSearch/sidebarSearch.ts +0 -1
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.ts +3 -2
- 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.9",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@coveo/headless": "^1.32.0",
|
|
14
|
-
"@floating-ui/dom": "^0.
|
|
14
|
+
"@floating-ui/dom": "^1.0.4",
|
|
15
15
|
"@sfdocs-internal/wires": "^0.6.3",
|
|
16
16
|
"@vimeo/player": "^2.16.4",
|
|
17
17
|
"classnames": "^2.2.6",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/vimeo__player": "^2.16.2",
|
|
37
37
|
"eventsourcemock": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4776acb3e3d37d421f444fd7ac628d5a89655aec"
|
|
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">
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
onclear={onInputEscape}
|
|
21
21
|
onsubmit={onInputSubmit}
|
|
22
22
|
onfocus={openDropdown}
|
|
23
|
-
onblur={onDropdownRequestClose}
|
|
24
23
|
placeholder="Search"
|
|
25
24
|
size="override"
|
|
26
25
|
type="search"
|
|
@@ -52,7 +51,6 @@
|
|
|
52
51
|
onclear={onInputEscape}
|
|
53
52
|
onsubmit={onInputSubmit}
|
|
54
53
|
onfocus={openDropdown}
|
|
55
|
-
onblur={onDropdownRequestClose}
|
|
56
54
|
placeholder="Search"
|
|
57
55
|
shortcut-key="k"
|
|
58
56
|
size="small"
|
|
@@ -422,7 +422,6 @@ export default class SidebarSearch extends LightningElement {
|
|
|
422
422
|
switch (e.detail as PopoverRequestCloseType) {
|
|
423
423
|
case "interact-outside":
|
|
424
424
|
case "keypress-escape":
|
|
425
|
-
case "input-blur":
|
|
426
425
|
this.dropdownRequestedOpen = false;
|
|
427
426
|
break;
|
|
428
427
|
default:
|
|
@@ -49,7 +49,7 @@ export default class TbidAvatarButton extends LightningElement {
|
|
|
49
49
|
@api tbidApiBaseUrl = "";
|
|
50
50
|
|
|
51
51
|
@api login = (event: Event) => this.handleComponentLogin(event);
|
|
52
|
-
@api logout = () => this.handleComponentLogout();
|
|
52
|
+
@api logout = (event: Event) => this.handleComponentLogout(event);
|
|
53
53
|
|
|
54
54
|
private userInfo: UserInfo = {};
|
|
55
55
|
private isLoading = false;
|
|
@@ -242,7 +242,8 @@ export default class TbidAvatarButton extends LightningElement {
|
|
|
242
242
|
private handleSsoLogout = this.handleLogout.bind(this, true);
|
|
243
243
|
|
|
244
244
|
// This handles logout from _within_ this component ("Logout" click), rather than from SSO via the SFIDWidget.
|
|
245
|
-
private handleComponentLogout = () => {
|
|
245
|
+
private handleComponentLogout = (event: Event) => {
|
|
246
|
+
event?.preventDefault();
|
|
246
247
|
this.handleLogout(false);
|
|
247
248
|
};
|
|
248
249
|
|
|
@@ -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
|
-
}
|