diff --git a/manual/CONFIG.md b/manual/CONFIG.md index a24a82d06..d369b6600 100644 --- a/manual/CONFIG.md +++ b/manual/CONFIG.md @@ -286,6 +286,38 @@ Width of the collapsed panel. _Repeated - edit in contentLeftPanel_. Determines if the panel is open. +#### contentLeftPanel + +##### expandFullEnabled + +**Type**: `boolean` +**Default**: `false` +Determines if expand full is enabled. + +##### panelAnimationDuration + +**Type**: `number` +**Default**: `250` +Determines the duration of the panel expand/collapse animation. + +##### panelCollapsedWidth + +**Type**: `number` +**Default**: `30` +Width of the collapsed panel. + +##### panelExpandedWidth + +**Type**: `number` +**Default**: `255` +Width of the collapsed panel. + +##### panelOpen + +**Type**: `boolean` +**Default**: `false` +Determines if the panel is open. + ##### autoExpandTreeEnabled **Type**: `boolean` @@ -358,6 +390,12 @@ Padding for loading gallery thumbnails. **Default**: `200` Width of the gallery thumbnail. +##### hideThumbsView + +**Type**: `boolean` +**Default**: `false` +Hides the thumbnails view within the left panel. + ##### oneColThumbHeight **Type**: `number` diff --git a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts index 38bfaeb3f..9278ad111 100644 --- a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts @@ -31,6 +31,8 @@ type ContentLeftPanelOptions = ExpandPanelOptions & { galleryThumbLoadPadding: number; /** Width of the gallery thumbnail */ galleryThumbWidth: number; + /** Hide thumbnails tab */ + hideThumbsView: boolean; /** Height of the one column thumbnail */ oneColThumbHeight: number; /** Width of the one column thumbnail */ diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json index 7e4b09d99..0c708b66c 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json @@ -71,6 +71,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json index bcf242d14..f92f1e8ee 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json @@ -75,6 +75,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts index ab58980f0..a20b1f793 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts @@ -146,6 +146,9 @@ export class ContentLeftPanel extends LeftPanel { '' + this.content.thumbnails + "" ); this.$tabs.append(this.$thumbsButton); + if (this.config.options.hideThumbsView) { + this.$thumbsButton.hide(); + } this.$tabsContent = $('
'); this.$main.append(this.$tabsContent); @@ -646,6 +649,14 @@ export class ContentLeftPanel extends LeftPanel { false ); + const hideThumbsView = Bools.getBool( + this.config.options.hideThumbsView, + false + ); + if (hideThumbsView) { + return false; + } + const treeData: TreeNode | null = this.getTree(); if (