@internetarchive/collection-browser 2.10.1-alpha-webdev7090.26 → 2.10.1-alpha-webdev7523.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 +0 -8
- package/dist/src/collection-browser.js +7 -33
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.js +1 -1
- package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/smart-facet-bar.d.ts +2 -3
- package/dist/src/collection-facets/smart-facets/smart-facet-bar.js +13 -37
- package/dist/src/collection-facets/smart-facets/smart-facet-bar.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/smart-facet-button.js +10 -26
- package/dist/src/collection-facets/smart-facets/smart-facet-button.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js +9 -19
- package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js.map +1 -1
- package/dist/src/tiles/item-image.js +1 -0
- package/dist/src/tiles/item-image.js.map +1 -1
- package/package.json +2 -2
- package/src/collection-browser.ts +7 -35
- package/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.ts +1 -4
- package/src/collection-facets/smart-facets/smart-facet-bar.ts +16 -38
- package/src/collection-facets/smart-facets/smart-facet-button.ts +10 -27
- package/src/collection-facets/smart-facets/smart-facet-dropdown.ts +10 -21
- package/src/tiles/item-image.ts +1 -0
- package/dist/src/assets/img/icons/close-circle-dark.d.ts +0 -2
- package/dist/src/assets/img/icons/close-circle-dark.js +0 -5
- package/dist/src/assets/img/icons/close-circle-dark.js.map +0 -1
- package/src/assets/img/icons/close-circle-dark.ts +0 -5
|
@@ -131,7 +131,6 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
131
131
|
enableSortOptionsSlot: boolean;
|
|
132
132
|
/** Whether to display a smart results carousel above the full results */
|
|
133
133
|
showSmartResults: boolean;
|
|
134
|
-
resultsHeader?: string;
|
|
135
134
|
/**
|
|
136
135
|
* The maximum number of pages we will load when a privileged user clicks
|
|
137
136
|
* the "Manage" button on the search page. Limited to 15 pages.
|
|
@@ -170,7 +169,6 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
170
169
|
private leftColumn?;
|
|
171
170
|
private collectionFacets?;
|
|
172
171
|
private manageBar?;
|
|
173
|
-
private smartFacetBar?;
|
|
174
172
|
analyticsHandler?: AnalyticsManagerInterface;
|
|
175
173
|
/** Whether layout size analytics have been sent already. */
|
|
176
174
|
private layoutSizeAnalyticsSent;
|
|
@@ -326,7 +324,6 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
326
324
|
* Handler when user request to bulk edit from /search/ page
|
|
327
325
|
*/
|
|
328
326
|
private handleManageItems;
|
|
329
|
-
refreshSmartFacets(): void;
|
|
330
327
|
/**
|
|
331
328
|
* Handler to show processing modal while removing item
|
|
332
329
|
*/
|
|
@@ -497,11 +494,6 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
497
494
|
* (e.g., metadata vs. full-text).
|
|
498
495
|
*/
|
|
499
496
|
private emitSearchTypeChanged;
|
|
500
|
-
/**
|
|
501
|
-
* Emits a `facetPaneVisibilityChanged` event indicating that the facet pane has
|
|
502
|
-
* been toggled open or closed.
|
|
503
|
-
*/
|
|
504
|
-
private emitFacetPaneVisibilityChanged;
|
|
505
497
|
/**
|
|
506
498
|
* Emits a `queryStateChanged` event indicating that one or more of this component's
|
|
507
499
|
* properties have changed in a way that could affect the set of search results.
|
|
@@ -334,7 +334,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
334
334
|
render() {
|
|
335
335
|
return html `
|
|
336
336
|
${this.showSmartFacetBar
|
|
337
|
-
? html
|
|
337
|
+
? html ` <smart-facet-bar
|
|
338
338
|
.query=${this.baseQuery}
|
|
339
339
|
.aggregations=${this.dataSource.aggregations}
|
|
340
340
|
.selectedFacets=${this.selectedFacets}
|
|
@@ -343,7 +343,6 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
343
343
|
@facetsChanged=${this.facetsChanged}
|
|
344
344
|
@filtersToggled=${() => {
|
|
345
345
|
this.facetPaneVisible = !this.facetPaneVisible;
|
|
346
|
-
this.emitFacetPaneVisibilityChanged();
|
|
347
346
|
}}
|
|
348
347
|
></smart-facet-bar>`
|
|
349
348
|
: nothing}
|
|
@@ -500,21 +499,18 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
500
499
|
* tiles and sort/filter bar are shown.
|
|
501
500
|
*/
|
|
502
501
|
get rightColumnTemplate() {
|
|
503
|
-
var _a;
|
|
504
|
-
const rightColumnClasses = classMap({
|
|
505
|
-
column: true,
|
|
506
|
-
'full-width': this.showSmartFacetBar && !this.facetPaneVisible,
|
|
507
|
-
'smart-results-spacing': !!this.showSmartResults,
|
|
508
|
-
});
|
|
509
502
|
return html `
|
|
510
|
-
<div
|
|
503
|
+
<div
|
|
504
|
+
id="right-column"
|
|
505
|
+
class="column ${this.showSmartResults ? 'smart-results-spacing' : ''}"
|
|
506
|
+
>
|
|
511
507
|
${this.showSmartResults
|
|
512
508
|
? html `<slot name="smart-results"></slot>`
|
|
513
509
|
: nothing}
|
|
514
510
|
<section id="results">
|
|
515
511
|
${this.showSmartResults
|
|
516
512
|
? html `<h2 class="results-section-heading">
|
|
517
|
-
${
|
|
513
|
+
${msg('All results')}
|
|
518
514
|
</h2>`
|
|
519
515
|
: nothing}
|
|
520
516
|
<div id="cb-top-view">
|
|
@@ -651,10 +647,6 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
651
647
|
},
|
|
652
648
|
}));
|
|
653
649
|
}
|
|
654
|
-
refreshSmartFacets() {
|
|
655
|
-
var _a;
|
|
656
|
-
(_a = this.smartFacetBar) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
657
|
-
}
|
|
658
650
|
/**
|
|
659
651
|
* Handler to show processing modal while removing item
|
|
660
652
|
*/
|
|
@@ -1315,15 +1307,6 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1315
1307
|
detail: this.searchType,
|
|
1316
1308
|
}));
|
|
1317
1309
|
}
|
|
1318
|
-
/**
|
|
1319
|
-
* Emits a `facetPaneVisibilityChanged` event indicating that the facet pane has
|
|
1320
|
-
* been toggled open or closed.
|
|
1321
|
-
*/
|
|
1322
|
-
emitFacetPaneVisibilityChanged() {
|
|
1323
|
-
this.dispatchEvent(new CustomEvent('facetPaneVisibilityChanged', {
|
|
1324
|
-
detail: this.facetPaneVisible,
|
|
1325
|
-
}));
|
|
1326
|
-
}
|
|
1327
1310
|
/**
|
|
1328
1311
|
* Emits a `queryStateChanged` event indicating that one or more of this component's
|
|
1329
1312
|
* properties have changed in a way that could affect the set of search results.
|
|
@@ -1811,16 +1794,13 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1811
1794
|
flex: 1;
|
|
1812
1795
|
position: relative;
|
|
1813
1796
|
min-height: 90vh;
|
|
1797
|
+
border-left: 1px solid rgb(232, 232, 232);
|
|
1814
1798
|
border-right: 1px solid rgb(232, 232, 232);
|
|
1815
1799
|
margin-top: var(--rightColumnMarginTop, 0);
|
|
1816
1800
|
padding-top: 2rem;
|
|
1817
1801
|
background: #fff;
|
|
1818
1802
|
}
|
|
1819
1803
|
|
|
1820
|
-
#left-column:not([hidden]) + #right-column {
|
|
1821
|
-
border-left: 1px solid rgb(232, 232, 232);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
1804
|
#right-column.smart-results-spacing {
|
|
1825
1805
|
padding-top: 0.5rem;
|
|
1826
1806
|
border-right: none;
|
|
@@ -2301,9 +2281,6 @@ __decorate([
|
|
|
2301
2281
|
__decorate([
|
|
2302
2282
|
property({ type: Boolean, reflect: true })
|
|
2303
2283
|
], CollectionBrowser.prototype, "showSmartResults", void 0);
|
|
2304
|
-
__decorate([
|
|
2305
|
-
property({ type: String })
|
|
2306
|
-
], CollectionBrowser.prototype, "resultsHeader", void 0);
|
|
2307
2284
|
__decorate([
|
|
2308
2285
|
property({ type: Number })
|
|
2309
2286
|
], CollectionBrowser.prototype, "maxPagesToManage", void 0);
|
|
@@ -2346,9 +2323,6 @@ __decorate([
|
|
|
2346
2323
|
__decorate([
|
|
2347
2324
|
query('manage-bar')
|
|
2348
2325
|
], CollectionBrowser.prototype, "manageBar", void 0);
|
|
2349
|
-
__decorate([
|
|
2350
|
-
query('smart-facet-bar')
|
|
2351
|
-
], CollectionBrowser.prototype, "smartFacetBar", void 0);
|
|
2352
2326
|
__decorate([
|
|
2353
2327
|
property({ type: Object, attribute: false })
|
|
2354
2328
|
], CollectionBrowser.prototype, "analyticsHandler", void 0);
|