@internetarchive/collection-browser 2.22.1 → 3.0.1-webdev-7936.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/src/collection-browser.d.ts +1 -2
- package/dist/src/collection-browser.js +7 -12
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facet-row.js +2 -1
- package/dist/src/collection-facets/facet-row.js.map +1 -1
- package/dist/src/collection-facets.js +1 -0
- package/dist/src/collection-facets.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 +3 -2
- 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 +3 -2
- package/dist/src/tiles/grid/search-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +2 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/list/tile-list.js +13 -3
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/test/collection-browser.test.js +0 -14
- package/dist/test/collection-browser.test.js.map +1 -1
- package/dist/test/tiles/list/tile-list.test.js +13 -0
- package/dist/test/tiles/list/tile-list.test.js.map +1 -1
- package/package.json +2 -2
- package/src/collection-browser.ts +7 -10
- package/src/collection-facets/facet-row.ts +2 -1
- package/src/collection-facets.ts +1 -0
- package/src/sort-filter-bar/sort-filter-bar.ts +1 -1
- package/src/tiles/grid/collection-tile.ts +3 -2
- package/src/tiles/grid/item-tile.ts +2 -2
- package/src/tiles/grid/search-tile.ts +3 -2
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +2 -1
- package/src/tiles/list/tile-list.ts +11 -3
- package/test/collection-browser.test.ts +0 -19
- package/test/tiles/list/tile-list.test.ts +15 -0
|
@@ -158,9 +158,8 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
158
158
|
manageViewLabel: string;
|
|
159
159
|
/** Whether to replace the default sort options with a slot for customization (default: false) */
|
|
160
160
|
enableSortOptionsSlot: boolean;
|
|
161
|
-
/** Whether to
|
|
161
|
+
/** Whether to expose a slot for a smart results carousel above the full results */
|
|
162
162
|
showSmartResults: boolean;
|
|
163
|
-
resultsHeader?: string;
|
|
164
163
|
/**
|
|
165
164
|
* The maximum number of pages we will load when a privileged user clicks
|
|
166
165
|
* the "Manage" button on the search page. Limited to 15 pages.
|
|
@@ -125,7 +125,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
125
125
|
this.manageViewLabel = 'Select items to remove';
|
|
126
126
|
/** Whether to replace the default sort options with a slot for customization (default: false) */
|
|
127
127
|
this.enableSortOptionsSlot = false;
|
|
128
|
-
/** Whether to
|
|
128
|
+
/** Whether to expose a slot for a smart results carousel above the full results */
|
|
129
129
|
this.showSmartResults = false;
|
|
130
130
|
/**
|
|
131
131
|
* The maximum number of pages we will load when a privileged user clicks
|
|
@@ -528,7 +528,6 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
528
528
|
* tiles and sort/filter bar are shown.
|
|
529
529
|
*/
|
|
530
530
|
get rightColumnTemplate() {
|
|
531
|
-
var _a;
|
|
532
531
|
const rightColumnClasses = classMap({
|
|
533
532
|
column: true,
|
|
534
533
|
'full-width': !this.facetPaneVisible,
|
|
@@ -540,11 +539,9 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
540
539
|
? html `<slot name="smart-results"></slot>`
|
|
541
540
|
: nothing}
|
|
542
541
|
<section id="results">
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
</h2>`
|
|
547
|
-
: nothing}
|
|
542
|
+
<h2 class="results-section-heading">
|
|
543
|
+
<slot name="results-heading"></slot>
|
|
544
|
+
</h2>
|
|
548
545
|
<div id="cb-top-view">
|
|
549
546
|
<slot name="cb-top-slot"></slot>
|
|
550
547
|
</div>
|
|
@@ -1955,7 +1952,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1955
1952
|
min-height: 90vh;
|
|
1956
1953
|
border-right: 1px solid rgb(232, 232, 232);
|
|
1957
1954
|
margin-top: var(--rightColumnMarginTop, 0);
|
|
1958
|
-
padding-top: 2rem;
|
|
1955
|
+
padding-top: var(--rightColumnPaddingTop, 2rem);
|
|
1959
1956
|
background: #fff;
|
|
1960
1957
|
}
|
|
1961
1958
|
|
|
@@ -2157,7 +2154,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
2157
2154
|
max-height: 0;
|
|
2158
2155
|
transition: max-height 0.2s ease-in-out;
|
|
2159
2156
|
z-index: 1;
|
|
2160
|
-
margin-top: 5rem;
|
|
2157
|
+
margin-top: var(--facetsContainerMarginTop, 5rem);
|
|
2161
2158
|
padding-bottom: 2rem;
|
|
2162
2159
|
}
|
|
2163
2160
|
|
|
@@ -2231,6 +2228,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
2231
2228
|
|
|
2232
2229
|
#tile-blur-check {
|
|
2233
2230
|
margin: 0 5px 0 0;
|
|
2231
|
+
width: 15px;
|
|
2234
2232
|
}
|
|
2235
2233
|
|
|
2236
2234
|
circular-activity-indicator {
|
|
@@ -2470,9 +2468,6 @@ __decorate([
|
|
|
2470
2468
|
__decorate([
|
|
2471
2469
|
property({ type: Boolean, reflect: true })
|
|
2472
2470
|
], CollectionBrowser.prototype, "showSmartResults", void 0);
|
|
2473
|
-
__decorate([
|
|
2474
|
-
property({ type: String })
|
|
2475
|
-
], CollectionBrowser.prototype, "resultsHeader", void 0);
|
|
2476
2471
|
__decorate([
|
|
2477
2472
|
property({ type: Number })
|
|
2478
2473
|
], CollectionBrowser.prototype, "maxPagesToManage", void 0);
|