@internetarchive/collection-browser 4.8.1-webdev-9227.2 → 4.8.1-webdev-9227.4
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.js +4 -1
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facet-row-template.js +5 -2
- package/dist/src/collection-facets/facet-row-template.js.map +1 -1
- package/dist/src/locales/es.d.ts +1 -6
- package/dist/src/locales/es.js +1 -6
- package/dist/src/locales/es.js.map +1 -1
- package/dist/src/sort-filter-bar/alpha-bar-tooltip.js +4 -2
- package/dist/src/sort-filter-bar/alpha-bar-tooltip.js.map +1 -1
- package/dist/src/sort-filter-bar/alpha-bar.js +3 -1
- package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.js +4 -1
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/list/tile-list.js +11 -2
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/src/utils/format-count.d.ts +3 -1
- package/dist/src/utils/format-count.js +19 -59
- package/dist/src/utils/format-count.js.map +1 -1
- package/dist/src/utils/format-unit-size.d.ts +1 -1
- package/dist/src/utils/format-unit-size.js +3 -2
- package/dist/src/utils/format-unit-size.js.map +1 -1
- package/dist/src/utils/get-locale.d.ts +14 -0
- package/dist/src/utils/get-locale.js +20 -0
- package/dist/src/utils/get-locale.js.map +1 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ import { updateSelectedFacetBucket } from './utils/facet-utils';
|
|
|
15
15
|
import chevronIcon from './assets/img/icons/chevron';
|
|
16
16
|
import { srOnlyStyle } from './styles/sr-only';
|
|
17
17
|
import { sha1 } from './utils/sha1';
|
|
18
|
+
import { getLocale } from './utils/get-locale';
|
|
18
19
|
import '@internetarchive/elements/ia-combo-box/ia-combo-box';
|
|
19
20
|
import './empty-placeholder';
|
|
20
21
|
import './tiles/tile-dispatcher';
|
|
@@ -608,7 +609,9 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
|
|
|
608
609
|
return nothing;
|
|
609
610
|
const shouldShowSearching = this.searchResultsLoading || this.totalResults === undefined;
|
|
610
611
|
const classes = classMap({ filtered: this.hasActiveFilters });
|
|
611
|
-
const resultsCount = this.totalResults
|
|
612
|
+
const resultsCount = this.totalResults === undefined
|
|
613
|
+
? undefined
|
|
614
|
+
: new Intl.NumberFormat(getLocale()).format(this.totalResults);
|
|
612
615
|
const resultsLabel = this.totalResults === 1 ? msg('Result') : msg('Results');
|
|
613
616
|
// Added data-testid for Playwright testing
|
|
614
617
|
return html `
|