@salesforcedevs/docs-components 1.3.194-docfooter8-alpha → 1.3.194-langpicker1-alpha
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
|
@@ -61,14 +61,16 @@ dx-toc {
|
|
|
61
61
|
flex-direction: row;
|
|
62
62
|
justify-content: center;
|
|
63
63
|
max-width: var(--dx-g-doc-content-max-width);
|
|
64
|
-
|
|
64
|
+
|
|
65
|
+
/* Derived this manually by substracting (topHeader, doc header, banner and the content). */
|
|
66
|
+
min-height: 62vh;
|
|
65
67
|
margin: auto;
|
|
66
68
|
padding: 0 var(--dx-g-global-header-padding-horizontal);
|
|
67
69
|
margin-bottom: calc(2 * (var(--dx-g-spacing-5xl) + 4px));
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
.content-body {
|
|
71
|
-
margin: var(--dx-g-spacing-sm) 0
|
|
73
|
+
margin: var(--dx-g-spacing-sm) 0 0;
|
|
72
74
|
max-width: 900px;
|
|
73
75
|
flex: 1;
|
|
74
76
|
width: 0;
|
|
@@ -4,6 +4,7 @@ import { closest } from "kagekiri";
|
|
|
4
4
|
import { toJson } from "dxUtils/normalizers";
|
|
5
5
|
import { highlightTerms } from "dxUtils/highlight";
|
|
6
6
|
import { SearchSyncer } from "docUtils/searchSyncer";
|
|
7
|
+
import type { OptionWithLink } from "typings/custom";
|
|
7
8
|
|
|
8
9
|
type AnchorMap = { [key: string]: { intersect: boolean; id: string } };
|
|
9
10
|
|
|
@@ -73,6 +74,26 @@ export default class ContentLayout extends LightningElement {
|
|
|
73
74
|
);
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
@api
|
|
78
|
+
get languages() {
|
|
79
|
+
return this._languages;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
set languages(value) {
|
|
83
|
+
this._languages = toJson(value);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@api
|
|
87
|
+
get language() {
|
|
88
|
+
return this._language;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
set language(value) {
|
|
92
|
+
if (this._language !== value) {
|
|
93
|
+
this._language = value;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
76
97
|
@track
|
|
77
98
|
private _sidebarContent: unknown;
|
|
78
99
|
|
|
@@ -88,6 +109,8 @@ export default class ContentLayout extends LightningElement {
|
|
|
88
109
|
private hasRendered: boolean = false;
|
|
89
110
|
private contentLoaded: boolean = false;
|
|
90
111
|
private sidebarOpen: boolean = false;
|
|
112
|
+
private _languages!: OptionWithLink[];
|
|
113
|
+
private _language: string | null = null;
|
|
91
114
|
|
|
92
115
|
get shouldDisplayFeedback() {
|
|
93
116
|
return this.contentLoaded && typeof Sprig !== "undefined";
|