@internetarchive/collection-browser 4.5.0 → 4.5.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 +0 -4
- package/dist/src/collection-browser.js +1 -10
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source-interface.d.ts +5 -0
- package/dist/src/data-source/collection-browser-data-source-interface.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source.d.ts +1 -1
- package/dist/src/data-source/collection-browser-data-source.js +8 -6
- package/dist/src/data-source/collection-browser-data-source.js.map +1 -1
- package/dist/src/restoration-state-handler.js +2 -4
- package/dist/src/restoration-state-handler.js.map +1 -1
- package/dist/src/utils/date-filter-field.d.ts +6 -0
- package/dist/src/utils/date-filter-field.js +9 -0
- package/dist/src/utils/date-filter-field.js.map +1 -0
- package/dist/test/collection-browser.test.js +273 -192
- package/dist/test/collection-browser.test.js.map +1 -1
- package/package.json +1 -1
- package/src/collection-browser.ts +1 -12
- package/src/data-source/collection-browser-data-source-interface.ts +351 -345
- package/src/data-source/collection-browser-data-source.ts +1474 -1465
- package/src/restoration-state-handler.ts +550 -550
- package/src/utils/date-filter-field.ts +11 -0
- package/test/collection-browser.test.ts +2639 -2507
|
@@ -533,10 +533,6 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
|
|
|
533
533
|
* Handler for when the date picker's date range is changed.
|
|
534
534
|
*/
|
|
535
535
|
private histogramDateRangeUpdated;
|
|
536
|
-
/**
|
|
537
|
-
* The Lucene query corresponding to the current date range.
|
|
538
|
-
*/
|
|
539
|
-
private get dateRangeQueryClause();
|
|
540
536
|
/**
|
|
541
537
|
* Emits an event indicating a change in whether the manage mode is shown.
|
|
542
538
|
*/
|
|
@@ -1311,18 +1311,9 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
1311
1311
|
this.analyticsHandler?.sendEvent({
|
|
1312
1312
|
category: this.searchContext,
|
|
1313
1313
|
action: analyticsActions.histogramChanged,
|
|
1314
|
-
label: this.dateRangeQueryClause,
|
|
1314
|
+
label: this.dataSource.dateRangeQueryClause,
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
1317
|
-
/**
|
|
1318
|
-
* The Lucene query corresponding to the current date range.
|
|
1319
|
-
*/
|
|
1320
|
-
get dateRangeQueryClause() {
|
|
1321
|
-
if (!this.minSelectedDate || !this.maxSelectedDate) {
|
|
1322
|
-
return undefined;
|
|
1323
|
-
}
|
|
1324
|
-
return `year:[${this.minSelectedDate} TO ${this.maxSelectedDate}]`;
|
|
1325
|
-
}
|
|
1326
1317
|
/**
|
|
1327
1318
|
* Emits an event indicating a change in whether the manage mode is shown.
|
|
1328
1319
|
*/
|