@internetarchive/collection-browser 3.0.1-webdev-7936.0 → 3.0.2-alpha1
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/src/collection-browser.js +0 -1
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facet-row.js +1 -2
- package/dist/src/collection-facets/facet-row.js.map +1 -1
- package/dist/src/collection-facets/models.d.ts +9 -0
- package/dist/src/collection-facets/models.js +10 -0
- package/dist/src/collection-facets/models.js.map +1 -0
- package/dist/src/collection-facets/more-facets-content.js +3 -2
- package/dist/src/collection-facets/more-facets-content.js.map +1 -1
- package/dist/src/collection-facets.js +0 -1
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/manage/manage-bar.js +1 -1
- package/dist/src/manage/manage-bar.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.js +2 -3
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +2 -2
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/grid/search-tile.js +2 -3
- package/dist/src/tiles/grid/search-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +1 -2
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/list/tile-list.js +3 -13
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/test/tiles/list/tile-list.test.js +0 -13
- package/dist/test/tiles/list/tile-list.test.js.map +1 -1
- package/package.json +2 -2
- package/src/collection-browser.ts +0 -1
- package/src/collection-facets/facet-row.ts +1 -2
- package/src/collection-facets/models.ts +10 -0
- package/src/collection-facets/more-facets-content.ts +6 -2
- package/src/collection-facets.ts +0 -1
- package/src/manage/manage-bar.ts +1 -1
- package/src/sort-filter-bar/sort-filter-bar.ts +1 -1
- package/src/tiles/grid/collection-tile.ts +2 -3
- package/src/tiles/grid/item-tile.ts +2 -2
- package/src/tiles/grid/search-tile.ts +2 -3
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +1 -2
- package/src/tiles/list/tile-list.ts +3 -11
- package/test/tiles/list/tile-list.test.ts +0 -15
|
@@ -49,20 +49,6 @@ describe('List Tile', () => {
|
|
|
49
49
|
expect(title?.getAttribute('href')).to.equal('/foo/bar');
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
it('should add title to image link if provided', async () => {
|
|
53
|
-
const el = await fixture<TileList>(html`
|
|
54
|
-
<tile-list
|
|
55
|
-
.baseNavigationUrl=${''}
|
|
56
|
-
.model=${{ title: 'foo', href: '/foo/bar' }}
|
|
57
|
-
></tile-list>
|
|
58
|
-
`);
|
|
59
|
-
|
|
60
|
-
const imageLink = el.shadowRoot?.querySelector('#image-link');
|
|
61
|
-
|
|
62
|
-
expect(imageLink).to.exist;
|
|
63
|
-
expect(imageLink?.getAttribute('title')).to.equal('View foo');
|
|
64
|
-
});
|
|
65
|
-
|
|
66
52
|
it('should render with creator element but not dates', async () => {
|
|
67
53
|
const el = await fixture<TileList>(html`
|
|
68
54
|
<tile-list .model=${{ creators: ['someone'] }}></tile-list>
|
|
@@ -338,7 +324,6 @@ describe('List Tile', () => {
|
|
|
338
324
|
expect(mediatypeLink?.getAttribute('href')).to.equal(
|
|
339
325
|
`https://archive.org/details/texts`,
|
|
340
326
|
);
|
|
341
|
-
expect(mediatypeLink?.getAttribute('title')).to.equal('See more: texts');
|
|
342
327
|
});
|
|
343
328
|
|
|
344
329
|
it('should render mediatype icon as link even with empty baseNavigationUrl', async () => {
|