@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
package/package.json
CHANGED
|
@@ -1684,21 +1684,10 @@ export class CollectionBrowser
|
|
|
1684
1684
|
this.analyticsHandler?.sendEvent({
|
|
1685
1685
|
category: this.searchContext,
|
|
1686
1686
|
action: analyticsActions.histogramChanged,
|
|
1687
|
-
label: this.dateRangeQueryClause,
|
|
1687
|
+
label: this.dataSource.dateRangeQueryClause,
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
1690
|
|
|
1691
|
-
/**
|
|
1692
|
-
* The Lucene query corresponding to the current date range.
|
|
1693
|
-
*/
|
|
1694
|
-
private get dateRangeQueryClause() {
|
|
1695
|
-
if (!this.minSelectedDate || !this.maxSelectedDate) {
|
|
1696
|
-
return undefined;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
return `year:[${this.minSelectedDate} TO ${this.maxSelectedDate}]`;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
1691
|
/**
|
|
1703
1692
|
* Emits an event indicating a change in whether the manage mode is shown.
|
|
1704
1693
|
*/
|