@fluid-topics/ft-reader-toc 1.1.11 → 1.1.12
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/build/ft-reader-toc.d.ts
CHANGED
|
@@ -22,12 +22,10 @@ export declare class FtReaderToc extends FtReaderComponent implements FtReaderTo
|
|
|
22
22
|
expandAllIcon: string;
|
|
23
23
|
autoCollapse: boolean;
|
|
24
24
|
scope: FtReaderTocProperties["scope"];
|
|
25
|
-
hideIfEmpty: boolean;
|
|
26
25
|
empty: boolean;
|
|
27
26
|
labels: FtReaderTocLabels;
|
|
28
27
|
private labelResolver;
|
|
29
28
|
private toc?;
|
|
30
|
-
private splitToc?;
|
|
31
29
|
private currentPage?;
|
|
32
30
|
private highlightedTocIds?;
|
|
33
31
|
private automaticallyExpandedNodes;
|
package/build/ft-reader-toc.js
CHANGED
|
@@ -36,7 +36,6 @@ class FtReaderToc extends FtReaderComponent {
|
|
|
36
36
|
this.expandAllIcon = "ICON_EXPAND";
|
|
37
37
|
this.autoCollapse = false;
|
|
38
38
|
this.scope = "pages";
|
|
39
|
-
this.hideIfEmpty = false;
|
|
40
39
|
this.empty = true;
|
|
41
40
|
this.labels = {};
|
|
42
41
|
this.labelResolver = new ParametrizedLabelResolver(DEFAULT_LABELS, {});
|
|
@@ -74,13 +73,6 @@ class FtReaderToc extends FtReaderComponent {
|
|
|
74
73
|
"ft-reader-toc-expanded": this.expanded,
|
|
75
74
|
};
|
|
76
75
|
return html `
|
|
77
|
-
${this.hideIfEmpty && this.empty ? html `
|
|
78
|
-
<style>
|
|
79
|
-
:host {
|
|
80
|
-
display: none !important;
|
|
81
|
-
}
|
|
82
|
-
</style>
|
|
83
|
-
` : nothing}
|
|
84
76
|
<div class=${classMap(classes)}>
|
|
85
77
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
86
78
|
${this.renderExpandCollapseAll()}
|
|
@@ -269,9 +261,6 @@ __decorate([
|
|
|
269
261
|
__decorate([
|
|
270
262
|
property()
|
|
271
263
|
], FtReaderToc.prototype, "scope", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
property({ type: Boolean })
|
|
274
|
-
], FtReaderToc.prototype, "hideIfEmpty", void 0);
|
|
275
264
|
__decorate([
|
|
276
265
|
property({ type: Boolean, reflect: true })
|
|
277
266
|
], FtReaderToc.prototype, "empty", void 0);
|
|
@@ -289,9 +278,6 @@ __decorate([
|
|
|
289
278
|
}
|
|
290
279
|
})
|
|
291
280
|
], FtReaderToc.prototype, "toc", void 0);
|
|
292
|
-
__decorate([
|
|
293
|
-
redux({ selector: (s) => { var _a; return (_a = s.paginationConfiguration) === null || _a === void 0 ? void 0 : _a.splitCurrentPageToc; } })
|
|
294
|
-
], FtReaderToc.prototype, "splitToc", void 0);
|
|
295
281
|
__decorate([
|
|
296
282
|
redux()
|
|
297
283
|
], FtReaderToc.prototype, "currentPage", void 0);
|