@fluid-topics/ft-reader-navigation-button 1.2.34 → 1.2.36
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.
|
@@ -30,7 +30,7 @@ class FtReaderNavigationButton extends FtReaderComponent {
|
|
|
30
30
|
return this.target === "next" ? FtIcons.THIN_ARROW_RIGHT : FtIcons.THIN_ARROW_LEFT;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
var _a, _b, _c, _d, _e;
|
|
33
|
+
var _a, _b, _c, _d, _e, _f;
|
|
34
34
|
if (this.targetPage == null && !this.editorMode) {
|
|
35
35
|
return nothing;
|
|
36
36
|
}
|
|
@@ -46,7 +46,9 @@ class FtReaderNavigationButton extends FtReaderComponent {
|
|
|
46
46
|
</ft-button>
|
|
47
47
|
`;
|
|
48
48
|
return this.editorMode ? button : html `
|
|
49
|
-
<ft-reader-internal-link
|
|
49
|
+
<ft-reader-internal-link removestyle
|
|
50
|
+
.tocId=${(_e = this.targetPage) === null || _e === void 0 ? void 0 : _e.rootTocId}
|
|
51
|
+
.pageNumber=${(_f = this.targetPage) === null || _f === void 0 ? void 0 : _f.number} >
|
|
50
52
|
${button}
|
|
51
53
|
</ft-reader-internal-link>
|
|
52
54
|
`;
|
|
@@ -79,7 +81,6 @@ FtReaderNavigationButton.elementDefinitions = {
|
|
|
79
81
|
"ft-button": FtButton,
|
|
80
82
|
"ft-reader-internal-link": FtReaderInternalLink
|
|
81
83
|
};
|
|
82
|
-
// language=CSS
|
|
83
84
|
FtReaderNavigationButton.styles = styles;
|
|
84
85
|
__decorate([
|
|
85
86
|
property()
|