@internetarchive/collection-browser 4.1.1-alpha-webdev8185.1 → 4.1.2-alpha-webdev8332.0
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/collection-browser.d.ts +18 -9
- package/dist/src/collection-browser.js +77 -18
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source.js +3 -2
- package/dist/src/data-source/collection-browser-data-source.js.map +1 -1
- package/dist/src/data-source/collection-browser-query-state.d.ts +3 -5
- package/dist/src/data-source/collection-browser-query-state.js.map +1 -1
- package/dist/src/models.d.ts +2 -27
- package/dist/src/models.js +0 -36
- package/dist/src/models.js.map +1 -1
- package/dist/src/restoration-state-handler.js +9 -3
- package/dist/src/restoration-state-handler.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.map +1 -1
- package/dist/src/tiles/hover/hover-pane-controller.js +2 -1
- package/dist/src/tiles/hover/hover-pane-controller.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.d.ts +6 -0
- package/dist/src/tiles/tile-dispatcher.js +11 -3
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/dist/test/collection-browser.test.js +17 -15
- package/dist/test/collection-browser.test.js.map +1 -1
- package/dist/test/tiles/tile-dispatcher.test.js +14 -0
- package/dist/test/tiles/tile-dispatcher.test.js.map +1 -1
- package/index.ts +0 -5
- package/package.json +1 -1
- package/src/collection-browser.ts +94 -25
- package/src/data-source/collection-browser-data-source.ts +3 -2
- package/src/data-source/collection-browser-query-state.ts +3 -12
- package/src/models.ts +4 -53
- package/src/restoration-state-handler.ts +7 -3
- package/src/sort-filter-bar/sort-filter-bar.ts +4 -3
- package/src/tiles/hover/hover-pane-controller.ts +2 -1
- package/src/tiles/tile-dispatcher.ts +12 -3
- package/test/collection-browser.test.ts +17 -15
- package/test/tiles/tile-dispatcher.test.ts +17 -0
|
@@ -213,6 +213,23 @@ describe('Tile Dispatcher', () => {
|
|
|
213
213
|
await el.updateComplete;
|
|
214
214
|
expect(el.getHoverPane()).not.to.exist;
|
|
215
215
|
});
|
|
216
|
+
|
|
217
|
+
it('should not show info button when hover pane is not enabled', async () => {
|
|
218
|
+
const el = await fixture<TileDispatcher>(html`
|
|
219
|
+
<tile-dispatcher
|
|
220
|
+
.tileDisplayMode=${'grid'}
|
|
221
|
+
.model=${{ mediatype: 'texts' }}
|
|
222
|
+
.enableHoverPane=${false}
|
|
223
|
+
>
|
|
224
|
+
</tile-dispatcher>
|
|
225
|
+
`);
|
|
226
|
+
|
|
227
|
+
const itemTile = el.shadowRoot?.querySelector('item-tile') as ItemTile;
|
|
228
|
+
expect(itemTile).to.exist;
|
|
229
|
+
|
|
230
|
+
const infoButton = itemTile.shadowRoot?.querySelector('.info-button');
|
|
231
|
+
expect(infoButton).to.not.exist;
|
|
232
|
+
});
|
|
216
233
|
});
|
|
217
234
|
|
|
218
235
|
describe('Accessibility', () => {
|