@internetarchive/collection-browser 1.2.0 → 1.2.1-alpha.1
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/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/src/app-root.d.ts +1 -1
- package/dist/src/app-root.js +1 -1
- package/dist/src/app-root.js.map +1 -1
- package/dist/src/collection-browser.d.ts +13 -11
- package/dist/src/collection-browser.js +36 -16
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facets-template.d.ts +1 -1
- package/dist/src/collection-facets/facets-template.js +3 -3
- package/dist/src/collection-facets/facets-template.js.map +1 -1
- package/dist/src/collection-facets/more-facets-content.d.ts +5 -5
- package/dist/src/collection-facets/more-facets-content.js +7 -7
- package/dist/src/collection-facets/more-facets-content.js.map +1 -1
- package/dist/src/collection-facets/more-facets-pagination.js +3 -3
- package/dist/src/collection-facets/more-facets-pagination.js.map +1 -1
- package/dist/src/collection-facets/toggle-switch.js +1 -1
- package/dist/src/collection-facets/toggle-switch.js.map +1 -1
- package/dist/src/collection-facets.d.ts +5 -5
- package/dist/src/collection-facets.js +10 -10
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/empty-placeholder.js +2 -2
- package/dist/src/empty-placeholder.js.map +1 -1
- package/dist/src/language-code-handler/language-code-handler.js +1 -1
- package/dist/src/language-code-handler/language-code-handler.js.map +1 -1
- package/dist/src/mediatype/mediatype-config.js +13 -13
- package/dist/src/mediatype/mediatype-config.js.map +1 -1
- package/dist/src/restoration-state-handler.d.ts +1 -1
- package/dist/src/restoration-state-handler.js +2 -2
- package/dist/src/restoration-state-handler.js.map +1 -1
- package/dist/src/sort-filter-bar/alpha-bar.d.ts +2 -2
- package/dist/src/sort-filter-bar/alpha-bar.js +1 -1
- package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.d.ts +2 -2
- package/dist/src/sort-filter-bar/sort-filter-bar.js +24 -9
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/grid/account-tile.d.ts +3 -3
- package/dist/src/tiles/grid/account-tile.js +3 -3
- package/dist/src/tiles/grid/account-tile.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.d.ts +2 -2
- package/dist/src/tiles/grid/collection-tile.js +4 -4
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.d.ts +6 -6
- package/dist/src/tiles/grid/item-tile.js +8 -8
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/grid/tile-stats.js +6 -6
- package/dist/src/tiles/grid/tile-stats.js.map +1 -1
- package/dist/src/tiles/hover/hover-pane-controller.d.ts +1 -1
- package/dist/src/tiles/hover/hover-pane-controller.js.map +1 -1
- package/dist/src/tiles/hover/tile-hover-pane.d.ts +2 -2
- package/dist/src/tiles/hover/tile-hover-pane.js +1 -1
- package/dist/src/tiles/hover/tile-hover-pane.js.map +1 -1
- package/dist/src/tiles/image-block.d.ts +3 -3
- package/dist/src/tiles/image-block.js +2 -2
- package/dist/src/tiles/image-block.js.map +1 -1
- package/dist/src/tiles/item-image.d.ts +1 -1
- package/dist/src/tiles/item-image.js +1 -1
- package/dist/src/tiles/item-image.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact-header.d.ts +1 -1
- package/dist/src/tiles/list/tile-list-compact-header.js +1 -1
- package/dist/src/tiles/list/tile-list-compact-header.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact.d.ts +3 -3
- package/dist/src/tiles/list/tile-list-compact.js +6 -6
- package/dist/src/tiles/list/tile-list-compact.js.map +1 -1
- package/dist/src/tiles/list/tile-list.d.ts +3 -3
- package/dist/src/tiles/list/tile-list.js +9 -9
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/src/tiles/mediatype-icon.js +1 -1
- package/dist/src/tiles/mediatype-icon.js.map +1 -1
- package/dist/src/tiles/overlay/icon-overlay.js +2 -2
- package/dist/src/tiles/overlay/icon-overlay.js.map +1 -1
- package/dist/src/tiles/overlay/icon-text-overlay.js +2 -2
- package/dist/src/tiles/overlay/icon-text-overlay.js.map +1 -1
- package/dist/src/tiles/overlay/text-overlay.js +2 -2
- package/dist/src/tiles/overlay/text-overlay.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.d.ts +11 -10
- package/dist/src/tiles/tile-dispatcher.js +14 -8
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/index.ts +9 -9
- package/package.json +15 -15
- package/src/app-root.ts +2 -2
- package/src/collection-browser.ts +35 -16
- package/src/collection-facets/facets-template.ts +3 -3
- package/src/collection-facets/more-facets-content.ts +7 -7
- package/src/collection-facets/more-facets-pagination.ts +3 -3
- package/src/collection-facets/toggle-switch.ts +1 -1
- package/src/collection-facets.ts +10 -10
- package/src/empty-placeholder.ts +2 -2
- package/src/language-code-handler/language-code-handler.ts +1 -1
- package/src/mediatype/mediatype-config.ts +13 -13
- package/src/restoration-state-handler.ts +2 -2
- package/src/sort-filter-bar/alpha-bar.ts +3 -3
- package/src/sort-filter-bar/sort-filter-bar.ts +24 -9
- package/src/tiles/grid/account-tile.ts +4 -4
- package/src/tiles/grid/collection-tile.ts +5 -5
- package/src/tiles/grid/item-tile.ts +10 -10
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +1 -1
- package/src/tiles/grid/tile-stats.ts +6 -6
- package/src/tiles/hover/hover-pane-controller.ts +1 -1
- package/src/tiles/hover/tile-hover-pane.ts +2 -2
- package/src/tiles/image-block.ts +3 -3
- package/src/tiles/item-image.ts +2 -2
- package/src/tiles/list/tile-list-compact-header.ts +2 -2
- package/src/tiles/list/tile-list-compact.ts +7 -7
- package/src/tiles/list/tile-list.ts +9 -9
- package/src/tiles/mediatype-icon.ts +1 -1
- package/src/tiles/overlay/icon-overlay.ts +2 -2
- package/src/tiles/overlay/icon-text-overlay.ts +2 -2
- package/src/tiles/overlay/text-overlay.ts +2 -2
- package/src/tiles/tile-dispatcher.ts +13 -10
|
@@ -7,21 +7,21 @@ import type {
|
|
|
7
7
|
} from '@internetarchive/shared-resize-observer';
|
|
8
8
|
import type { CollectionNameCacheInterface } from '@internetarchive/collection-name-cache';
|
|
9
9
|
import type { SortParam } from '@internetarchive/search-service';
|
|
10
|
-
import type { TileDisplayMode, TileModel } from '../models';
|
|
11
|
-
import './grid/collection-tile';
|
|
12
|
-
import './grid/item-tile';
|
|
13
|
-
import './grid/account-tile';
|
|
14
|
-
import './hover/tile-hover-pane';
|
|
15
|
-
import './list/tile-list';
|
|
16
|
-
import './list/tile-list-compact';
|
|
17
|
-
import './list/tile-list-compact-header';
|
|
18
|
-
import type { TileHoverPane } from './hover/tile-hover-pane';
|
|
10
|
+
import type { TileDisplayMode, TileModel } from '../models.js';
|
|
11
|
+
import './grid/collection-tile.js';
|
|
12
|
+
import './grid/item-tile.js';
|
|
13
|
+
import './grid/account-tile.js';
|
|
14
|
+
import './hover/tile-hover-pane.js';
|
|
15
|
+
import './list/tile-list.js';
|
|
16
|
+
import './list/tile-list-compact.js';
|
|
17
|
+
import './list/tile-list-compact-header.js';
|
|
18
|
+
import type { TileHoverPane } from './hover/tile-hover-pane.js';
|
|
19
19
|
import {
|
|
20
20
|
HoverPaneController,
|
|
21
21
|
HoverPaneControllerInterface,
|
|
22
22
|
HoverPaneProperties,
|
|
23
23
|
HoverPaneProviderInterface,
|
|
24
|
-
} from './hover/hover-pane-controller';
|
|
24
|
+
} from './hover/hover-pane-controller.js';
|
|
25
25
|
|
|
26
26
|
@customElement('tile-dispatcher')
|
|
27
27
|
export class TileDispatcher
|
|
@@ -56,6 +56,8 @@ export class TileDispatcher
|
|
|
56
56
|
/** Whether this tile should include a hover pane at all (for applicable tile modes) */
|
|
57
57
|
@property({ type: Boolean }) enableHoverPane = false;
|
|
58
58
|
|
|
59
|
+
@property({ type: Boolean }) prerender = false;
|
|
60
|
+
|
|
59
61
|
private hoverPaneController?: HoverPaneControllerInterface;
|
|
60
62
|
|
|
61
63
|
@query('#container')
|
|
@@ -158,6 +160,7 @@ export class TileDispatcher
|
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
private get isHoverEnabled(): boolean {
|
|
163
|
+
if (this.prerender) return false;
|
|
161
164
|
return window.matchMedia('(hover: hover)').matches;
|
|
162
165
|
}
|
|
163
166
|
|