@internetarchive/collection-browser 2.14.1 → 2.14.2-alpha-webdev7679.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 +12 -0
- package/dist/src/collection-browser.js +14 -0
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets.d.ts +1 -0
- package/dist/src/collection-facets.js +6 -0
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source.js +6 -4
- package/dist/src/data-source/collection-browser-data-source.js.map +1 -1
- package/dist/src/data-source/collection-browser-query-state.d.ts +1 -0
- package/dist/src/data-source/collection-browser-query-state.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +1 -11
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/package.json +1 -1
- package/src/collection-browser.ts +17 -0
- package/src/collection-facets.ts +4 -0
- package/src/data-source/collection-browser-data-source.ts +6 -3
- package/src/data-source/collection-browser-query-state.ts +1 -0
- package/src/tiles/grid/item-tile.ts +2 -12
|
@@ -59,6 +59,13 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
59
59
|
minSelectedDate?: string;
|
|
60
60
|
maxSelectedDate?: string;
|
|
61
61
|
selectedFacets?: SelectedFacets;
|
|
62
|
+
/**
|
|
63
|
+
* Set of filters to be applied internally to searches, but not included in URL params or
|
|
64
|
+
* visibly selected facets. Use when this instance of collection browser is being shown
|
|
65
|
+
* in a filtered context, such as a single-mediatype tab, but the corresponding filters
|
|
66
|
+
* should not be exposed/changeable within that context.
|
|
67
|
+
*/
|
|
68
|
+
internalFilters?: SelectedFacets;
|
|
62
69
|
showSmartFacetBar: boolean;
|
|
63
70
|
/**
|
|
64
71
|
* Whether to show the date picker (above the facets)
|
|
@@ -94,6 +101,11 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
94
101
|
* If true, those options will be omitted (though the rest of the sort bar may still render).
|
|
95
102
|
*/
|
|
96
103
|
suppressDisplayModes: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Whether to suppress the display of the `mediatype` facet group, e.g., because this instance
|
|
106
|
+
* of collection browser is being shown in a filtered single-mediatype context.
|
|
107
|
+
*/
|
|
108
|
+
suppressMediatypeFacets: boolean;
|
|
97
109
|
/**
|
|
98
110
|
* What strategy to use for when/whether to load facet data for a search.
|
|
99
111
|
*
|
|
@@ -73,6 +73,11 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
73
73
|
* If true, those options will be omitted (though the rest of the sort bar may still render).
|
|
74
74
|
*/
|
|
75
75
|
this.suppressDisplayModes = false;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to suppress the display of the `mediatype` facet group, e.g., because this instance
|
|
78
|
+
* of collection browser is being shown in a filtered single-mediatype context.
|
|
79
|
+
*/
|
|
80
|
+
this.suppressMediatypeFacets = false;
|
|
76
81
|
/**
|
|
77
82
|
* What strategy to use for when/whether to load facet data for a search.
|
|
78
83
|
*
|
|
@@ -908,6 +913,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
908
913
|
?collapsableFacets=${this.mobileView}
|
|
909
914
|
?facetsLoading=${this.facetsLoading}
|
|
910
915
|
?fullYearAggregationLoading=${this.facetsLoading}
|
|
916
|
+
?suppressMediatypeFacets=${this.suppressMediatypeFacets}
|
|
911
917
|
@facetClick=${this.facetClickHandler}
|
|
912
918
|
@facetsChanged=${this.facetsChanged}
|
|
913
919
|
@histogramDateRangeUpdated=${this.histogramDateRangeUpdated}
|
|
@@ -1037,6 +1043,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1037
1043
|
this.searchType = queryState.searchType;
|
|
1038
1044
|
this.selectedFacets =
|
|
1039
1045
|
(_a = queryState.selectedFacets) !== null && _a !== void 0 ? _a : getDefaultSelectedFacets();
|
|
1046
|
+
this.internalFilters = queryState.internalFilters;
|
|
1040
1047
|
this.minSelectedDate = queryState.minSelectedDate;
|
|
1041
1048
|
this.maxSelectedDate = queryState.maxSelectedDate;
|
|
1042
1049
|
this.selectedSort = (_b = queryState.selectedSort) !== null && _b !== void 0 ? _b : SortField.default;
|
|
@@ -1352,6 +1359,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1352
1359
|
profileElement: this.profileElement,
|
|
1353
1360
|
searchType: this.searchType,
|
|
1354
1361
|
selectedFacets: this.selectedFacets,
|
|
1362
|
+
internalFilters: this.internalFilters,
|
|
1355
1363
|
minSelectedDate: this.minSelectedDate,
|
|
1356
1364
|
maxSelectedDate: this.maxSelectedDate,
|
|
1357
1365
|
selectedSort: this.selectedSort,
|
|
@@ -2252,6 +2260,9 @@ __decorate([
|
|
|
2252
2260
|
__decorate([
|
|
2253
2261
|
property({ type: Object })
|
|
2254
2262
|
], CollectionBrowser.prototype, "selectedFacets", void 0);
|
|
2263
|
+
__decorate([
|
|
2264
|
+
property({ type: Object })
|
|
2265
|
+
], CollectionBrowser.prototype, "internalFilters", void 0);
|
|
2255
2266
|
__decorate([
|
|
2256
2267
|
property({ type: Boolean })
|
|
2257
2268
|
], CollectionBrowser.prototype, "showSmartFacetBar", void 0);
|
|
@@ -2276,6 +2287,9 @@ __decorate([
|
|
|
2276
2287
|
__decorate([
|
|
2277
2288
|
property({ type: Boolean })
|
|
2278
2289
|
], CollectionBrowser.prototype, "suppressDisplayModes", void 0);
|
|
2290
|
+
__decorate([
|
|
2291
|
+
property({ type: Boolean })
|
|
2292
|
+
], CollectionBrowser.prototype, "suppressMediatypeFacets", void 0);
|
|
2279
2293
|
__decorate([
|
|
2280
2294
|
property({ type: String })
|
|
2281
2295
|
], CollectionBrowser.prototype, "facetLoadStrategy", void 0);
|