@internetarchive/collection-browser 2.22.1-webdev-7936.0 → 2.22.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/src/collection-browser.d.ts +4 -0
- package/dist/src/collection-browser.js +19 -4
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets.js +0 -1
- package/dist/src/collection-facets.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 +2 -8
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/test/tiles/list/tile-list.test.js +0 -1
- package/dist/test/tiles/list/tile-list.test.js.map +1 -1
- package/package.json +2 -2
- package/src/collection-browser.ts +29 -6
- package/src/collection-facets.ts +0 -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 +2 -6
- package/test/tiles/list/tile-list.test.ts +0 -1
|
@@ -351,6 +351,10 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
351
351
|
* sensitive content in result tiles.
|
|
352
352
|
*/
|
|
353
353
|
private get tileBlurCheckboxTemplate();
|
|
354
|
+
/**
|
|
355
|
+
* Message to show in the manage view modal, depending on context.
|
|
356
|
+
*/
|
|
357
|
+
private get manageViewModalMsg();
|
|
354
358
|
/**
|
|
355
359
|
* Template for the manage bar UI that appears atop the search results when we are
|
|
356
360
|
* showing the management view. This generally replaces the sort bar when present.
|
|
@@ -668,20 +668,35 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
668
668
|
</label>
|
|
669
669
|
`;
|
|
670
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* Message to show in the manage view modal, depending on context.
|
|
673
|
+
*/
|
|
674
|
+
get manageViewModalMsg() {
|
|
675
|
+
const pluralize = this.dataSource.checkedTileModels.length > 1;
|
|
676
|
+
switch (this.profileElement) {
|
|
677
|
+
case 'uploads':
|
|
678
|
+
return pluralize
|
|
679
|
+
? msg('Note: It may take a few minutes for these items to stop appearing in your uploads list.')
|
|
680
|
+
: msg('Note: It may take a few minutes for this item to stop appearing in your uploads list.');
|
|
681
|
+
case 'web_archives':
|
|
682
|
+
return pluralize
|
|
683
|
+
? msg('Note: It may take a few minutes for these items to stop appearing in your web archives list.')
|
|
684
|
+
: msg('Note: It may take a few minutes for this item to stop appearing in your web archives list.');
|
|
685
|
+
default:
|
|
686
|
+
return '';
|
|
687
|
+
}
|
|
688
|
+
}
|
|
671
689
|
/**
|
|
672
690
|
* Template for the manage bar UI that appears atop the search results when we are
|
|
673
691
|
* showing the management view. This generally replaces the sort bar when present.
|
|
674
692
|
*/
|
|
675
693
|
get manageBarTemplate() {
|
|
676
|
-
const manageViewModalMsg = this.profileElement === 'uploads'
|
|
677
|
-
? 'Note: it may take a few minutes for these items to stop appearing in your uploads list.'
|
|
678
|
-
: nothing;
|
|
679
694
|
return html `
|
|
680
695
|
<manage-bar
|
|
681
696
|
.label=${this.manageViewLabel}
|
|
682
697
|
.modalManager=${this.modalManager}
|
|
683
698
|
.selectedItems=${this.dataSource.checkedTileModels}
|
|
684
|
-
.manageViewModalMsg=${manageViewModalMsg}
|
|
699
|
+
.manageViewModalMsg=${this.manageViewModalMsg}
|
|
685
700
|
showSelectAll
|
|
686
701
|
showUnselectAll
|
|
687
702
|
?showItemManageButton=${this.pageContext === 'search'}
|