@salesforcedevs/dx-components 0.55.3 → 0.56.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/dx-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.get": "^4.4.6",
|
|
26
26
|
"@types/vimeo__player": "^2.16.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "cfcb715307699fdbf36426a1a3d3cd2c899f6240"
|
|
29
29
|
}
|
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
--dx-g-text-xs: 14px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
dx-breadcrumbs {
|
|
9
|
-
width: calc(
|
|
10
|
-
100% - var(--dx-c-header-search-width) - var(--dx-g-spacing-md)
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
dx-header-mobile-nav-menu {
|
|
15
9
|
--dx-c-color-background: var(--dx-g-brand-current-color-background);
|
|
16
10
|
--dx-c-button-color-background-inactive: var(
|
|
@@ -99,10 +93,6 @@ header.has-navscrollshadow .header_l2_group-nav_menu-ctas::after {
|
|
|
99
93
|
}
|
|
100
94
|
|
|
101
95
|
@media (max-width: 768px) {
|
|
102
|
-
dx-breadcrumbs {
|
|
103
|
-
width: 70%;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
96
|
.header_l2_group-nav > .header_l2_group-nav_menu-ctas {
|
|
107
97
|
display: flex;
|
|
108
98
|
}
|
|
@@ -7,14 +7,7 @@
|
|
|
7
7
|
banner-markup={bannerMarkup}
|
|
8
8
|
></dx-banner>
|
|
9
9
|
<div class="header_l1">
|
|
10
|
-
<dx-
|
|
11
|
-
title={title}
|
|
12
|
-
breadcrumbs={breadcrumbs}
|
|
13
|
-
logo
|
|
14
|
-
nav-items={navItems}
|
|
15
|
-
pathname={pathname}
|
|
16
|
-
truncate
|
|
17
|
-
></dx-breadcrumbs>
|
|
10
|
+
<dx-logo label={title}></dx-logo>
|
|
18
11
|
<div class="header-cta-container">
|
|
19
12
|
<dx-header-search
|
|
20
13
|
if:true={hasSearch}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import { api } from "lwc";
|
|
2
|
-
import type { OptionWithNested } from "typings/custom";
|
|
3
1
|
import { HeaderBase } from "dxBaseElements/headerBase";
|
|
4
|
-
import { toJson } from "dxUtils/normalizers";
|
|
5
2
|
|
|
6
3
|
export default class Header extends HeaderBase {
|
|
7
|
-
private _breadcrumbs!: OptionWithNested[];
|
|
8
|
-
|
|
9
|
-
@api
|
|
10
|
-
get breadcrumbs() {
|
|
11
|
-
return this._breadcrumbs;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
set breadcrumbs(value) {
|
|
15
|
-
this._breadcrumbs = toJson(value);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
4
|
private get showSignup(): boolean {
|
|
19
5
|
return this.signupLink
|
|
20
6
|
? (this.mobile && !this.isSearchOpen) || !this.mobile
|
|
@@ -67,8 +67,9 @@ export const normalizePost = ({
|
|
|
67
67
|
title
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
export const normalizeBoolean = (
|
|
71
|
-
|
|
70
|
+
export const normalizeBoolean = (
|
|
71
|
+
value: string | boolean | number | undefined
|
|
72
|
+
): boolean => (typeof value === "string" ? value === "true" : !!value);
|
|
72
73
|
|
|
73
74
|
/**
|
|
74
75
|
* Cleans characters that are invalid for DOM IDs
|