@salesforcedevs/docs-components 1.14.8-ldh-alpha → 1.14.8-ldh-alpha1
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
|
@@ -2,7 +2,7 @@ import { api } from "lwc";
|
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import type { OptionWithNested } from "typings/custom";
|
|
4
4
|
import { HeaderBase } from "dxBaseElements/headerBase";
|
|
5
|
-
import { toJson } from "dxUtils/normalizers";
|
|
5
|
+
import { toJson, normalizeBoolean } from "dxUtils/normalizers";
|
|
6
6
|
|
|
7
7
|
const TABLET_MATCH = "980px";
|
|
8
8
|
const MOBILE_MATCH = "768px";
|
|
@@ -17,7 +17,15 @@ const isStorybook = () => {
|
|
|
17
17
|
export default class Header extends HeaderBase {
|
|
18
18
|
@api langValuePath: string = "id"; // allows to override how language property is interpreted, follows valuePath dropdown api.
|
|
19
19
|
@api headerHref: string = "/";
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
@api
|
|
22
|
+
get hideDocHeader() {
|
|
23
|
+
return this._hideDocHeader;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set hideDocHeader(value) {
|
|
27
|
+
this._hideDocHeader = normalizeBoolean(value);
|
|
28
|
+
}
|
|
21
29
|
|
|
22
30
|
@api
|
|
23
31
|
get scopedNavItems() {
|
|
@@ -43,6 +51,7 @@ export default class Header extends HeaderBase {
|
|
|
43
51
|
private shouldRender: boolean = false;
|
|
44
52
|
private showDocDivider: boolean = false;
|
|
45
53
|
private _devCenter: any;
|
|
54
|
+
private _hideDocHeader: boolean = false;
|
|
46
55
|
|
|
47
56
|
protected mobileBreakpoint(): string {
|
|
48
57
|
return MOBILE_MATCH;
|