@salesforcedevs/docs-components 1.3.345-refactor-tab-alpha5 → 1.3.345-refactor-tab-alpha6
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
|
@@ -402,21 +402,14 @@ export default class ContentLayout extends LightningElement {
|
|
|
402
402
|
this.updateTocItems(headingElements);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
if (slotElements.length) {
|
|
411
|
-
this.contentLoaded = true;
|
|
412
|
-
const slotContentElement = slotElements[0];
|
|
413
|
-
const headingElements =
|
|
414
|
-
slotContentElement.ownerDocument?.getElementsByTagName(
|
|
415
|
-
TOC_HEADER_TAG
|
|
416
|
-
);
|
|
405
|
+
updateRNB = () => {
|
|
406
|
+
const headingElements = this.getHeadingElements();
|
|
407
|
+
this.setHashAndHeaderForDocHeading(headingElements);
|
|
408
|
+
};
|
|
417
409
|
|
|
418
|
-
|
|
419
|
-
|
|
410
|
+
onSlotChange(): void {
|
|
411
|
+
this.updateRNB();
|
|
412
|
+
this.contentLoaded = true;
|
|
420
413
|
}
|
|
421
414
|
|
|
422
415
|
protected disconnectObserver(): void {
|
|
@@ -30,14 +30,10 @@ export default class LwcContentLayout extends ContentLayout {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
private getTabPanelList() {
|
|
33
|
+
// eslint-disable-next-line @lwc/lwc/no-document-query
|
|
33
34
|
return document.querySelector("dx-tab-panel-list");
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
updateRNB = () => {
|
|
37
|
-
const headingElements = this.getHeadingElements();
|
|
38
|
-
this.setHashAndHeaderForDocHeading(headingElements);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
37
|
protected getHeadingElements() {
|
|
42
38
|
let headingElements = super.getHeadingElements();
|
|
43
39
|
if (this.showTabBasedRNB) {
|
|
@@ -90,6 +86,7 @@ export default class LwcContentLayout extends ContentLayout {
|
|
|
90
86
|
};
|
|
91
87
|
|
|
92
88
|
connectedCallback(): void {
|
|
89
|
+
super.connectedCallback();
|
|
93
90
|
window.addEventListener("popstate", this.handlePopState);
|
|
94
91
|
}
|
|
95
92
|
|
|
@@ -168,9 +165,4 @@ export default class LwcContentLayout extends ContentLayout {
|
|
|
168
165
|
}
|
|
169
166
|
super.updateHeadingForRNB();
|
|
170
167
|
}
|
|
171
|
-
|
|
172
|
-
onSlotChange(): void {
|
|
173
|
-
this.updateRNB();
|
|
174
|
-
this.contentLoaded = true;
|
|
175
|
-
}
|
|
176
168
|
}
|