@internetarchive/collection-browser 0.3.2-alpha.1 → 0.3.2-alpha.3

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.
@@ -147,15 +147,15 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
147
147
  }
148
148
  render() {
149
149
  this.setPlaceholderType();
150
- return html `
151
- <div
152
- id="content-container"
153
- class=${this.mobileView ? 'mobile' : 'desktop'}
154
- >
150
+ return html `
151
+ <div
152
+ id="content-container"
153
+ class=${this.mobileView ? 'mobile' : 'desktop'}
154
+ >
155
155
  ${this.placeholderType
156
156
  ? this.emptyPlaceholderTemplate
157
- : this.collectionBrowserTemplate}
158
- </div>
157
+ : this.collectionBrowserTemplate}
158
+ </div>
159
159
  `;
160
160
  }
161
161
  setPlaceholderType() {
@@ -168,73 +168,73 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
168
168
  }
169
169
  }
170
170
  get emptyPlaceholderTemplate() {
171
- return html `
172
- <empty-placeholder
173
- .placeholderType=${this.placeholderType}
174
- ?isMobileView=${this.mobileView}
175
- ></empty-placeholder>
171
+ return html `
172
+ <empty-placeholder
173
+ .placeholderType=${this.placeholderType}
174
+ ?isMobileView=${this.mobileView}
175
+ ></empty-placeholder>
176
176
  `;
177
177
  }
178
178
  get collectionBrowserTemplate() {
179
- return html `<div
180
- id="left-column"
181
- class="column${this.isResizeToMobile ? ' preload' : ''}"
182
- >
183
- <div id="mobile-header-container">
184
- ${this.mobileView ? this.mobileFacetsTemplate : nothing}
185
- <div id="results-total">
186
- <span id="big-results-count">
179
+ return html `<div
180
+ id="left-column"
181
+ class="column${this.isResizeToMobile ? ' preload' : ''}"
182
+ >
183
+ <div id="mobile-header-container">
184
+ ${this.mobileView ? this.mobileFacetsTemplate : nothing}
185
+ <div id="results-total">
186
+ <span id="big-results-count">
187
187
  ${this.totalResults !== undefined
188
188
  ? this.totalResults.toLocaleString()
189
- : '-'}
190
- </span>
191
- <span id="big-results-label">
192
- ${this.totalResults === 1 ? 'Result' : 'Results'}
193
- </span>
194
- </div>
195
- </div>
196
- <div
197
- id="facets-container"
189
+ : '-'}
190
+ </span>
191
+ <span id="big-results-label">
192
+ ${this.totalResults === 1 ? 'Result' : 'Results'}
193
+ </span>
194
+ </div>
195
+ </div>
196
+ <div
197
+ id="facets-container"
198
198
  class=${!this.mobileView || this.mobileFacetsVisible
199
199
  ? 'expanded'
200
- : ''}
201
- >
202
- ${this.facetsTemplate}
203
- </div>
204
- </div>
205
- <div id="right-column" class="column">
206
- ${this.searchResultsLoading ? this.loadingTemplate : nothing}
207
- ${this.sortFilterBarTemplate}
200
+ : ''}
201
+ >
202
+ ${this.facetsTemplate}
203
+ </div>
204
+ </div>
205
+ <div id="right-column" class="column">
206
+ ${this.searchResultsLoading ? this.loadingTemplate : nothing}
207
+ ${this.sortFilterBarTemplate}
208
208
  ${this.displayMode === `list-compact`
209
209
  ? this.listHeaderTemplate
210
- : nothing}
211
- ${this.infiniteScrollerTemplate}
210
+ : nothing}
211
+ ${this.infiniteScrollerTemplate}
212
212
  </div>`;
213
213
  }
214
214
  get infiniteScrollerTemplate() {
215
- return html `<infinite-scroller
216
- class="${ifDefined(this.displayMode)}"
217
- .cellProvider=${this}
218
- .placeholderCellTemplate=${this.placeholderCellTemplate}
219
- @scrollThresholdReached=${this.scrollThresholdReached}
220
- @visibleCellsChanged=${this.visibleCellsChanged}
215
+ return html `<infinite-scroller
216
+ class="${ifDefined(this.displayMode)}"
217
+ .cellProvider=${this}
218
+ .placeholderCellTemplate=${this.placeholderCellTemplate}
219
+ @scrollThresholdReached=${this.scrollThresholdReached}
220
+ @visibleCellsChanged=${this.visibleCellsChanged}
221
221
  ></infinite-scroller>`;
222
222
  }
223
223
  get sortFilterBarTemplate() {
224
- return html `
225
- <sort-filter-bar
226
- .selectedSort=${this.selectedSort}
227
- .sortDirection=${this.sortDirection}
228
- .displayMode=${this.displayMode}
229
- .selectedTitleFilter=${this.selectedTitleFilter}
230
- .selectedCreatorFilter=${this.selectedCreatorFilter}
231
- .resizeObserver=${this.resizeObserver}
232
- @sortChanged=${this.userChangedSort}
233
- @displayModeChanged=${this.displayModeChanged}
234
- @titleLetterChanged=${this.titleLetterSelected}
235
- @creatorLetterChanged=${this.creatorLetterSelected}
236
- >
237
- </sort-filter-bar>
224
+ return html `
225
+ <sort-filter-bar
226
+ .selectedSort=${this.selectedSort}
227
+ .sortDirection=${this.sortDirection}
228
+ .displayMode=${this.displayMode}
229
+ .selectedTitleFilter=${this.selectedTitleFilter}
230
+ .selectedCreatorFilter=${this.selectedCreatorFilter}
231
+ .resizeObserver=${this.resizeObserver}
232
+ @sortChanged=${this.userChangedSort}
233
+ @displayModeChanged=${this.displayModeChanged}
234
+ @titleLetterChanged=${this.titleLetterSelected}
235
+ @creatorLetterChanged=${this.creatorLetterSelected}
236
+ >
237
+ </sort-filter-bar>
238
238
  `;
239
239
  }
240
240
  userChangedSort(e) {
@@ -335,88 +335,88 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
335
335
  this.fullYearAggregationLoading);
336
336
  }
337
337
  get mobileFacetsTemplate() {
338
- return html `
339
- <div id="mobile-filter-collapse">
340
- <h1
338
+ return html `
339
+ <div id="mobile-filter-collapse">
340
+ <h1
341
341
  @click=${() => {
342
342
  this.isResizeToMobile = false;
343
343
  this.mobileFacetsVisible = !this.mobileFacetsVisible;
344
- }}
344
+ }}
345
345
  @keyup=${() => {
346
346
  this.isResizeToMobile = false;
347
347
  this.mobileFacetsVisible = !this.mobileFacetsVisible;
348
- }}
349
- >
350
- <span class="collapser ${this.mobileFacetsVisible ? 'open' : ''}">
351
- ${chevronIcon}
352
- </span>
353
- Filters
354
- </h1>
355
- </div>
348
+ }}
349
+ >
350
+ <span class="collapser ${this.mobileFacetsVisible ? 'open' : ''}">
351
+ ${chevronIcon}
352
+ </span>
353
+ Filters
354
+ </h1>
355
+ </div>
356
356
  `;
357
357
  }
358
358
  get facetsTemplate() {
359
- return html `
360
- ${this.facetsLoading ? this.loadingTemplate : nothing}
361
- <collection-facets
362
- @facetsChanged=${this.facetsChanged}
363
- @histogramDateRangeUpdated=${this.histogramDateRangeUpdated}
364
- .searchService=${this.searchService}
365
- .searchType=${this.searchType}
366
- .aggregations=${this.aggregations}
367
- .fullYearsHistogramAggregation=${this.fullYearsHistogramAggregation}
368
- .previousSearchType=${this.previousSearchType}
369
- .minSelectedDate=${this.minSelectedDate}
370
- .maxSelectedDate=${this.maxSelectedDate}
371
- .selectedFacets=${this.selectedFacets}
372
- .collectionNameCache=${this.collectionNameCache}
373
- .languageCodeHandler=${this.languageCodeHandler}
374
- .showHistogramDatePicker=${this.showHistogramDatePicker}
375
- .fullQuery=${this.fullQuery}
376
- .modalManager=${this.modalManager}
377
- ?collapsableFacets=${this.mobileView}
378
- ?facetsLoading=${this.facetDataLoading}
379
- ?fullYearAggregationLoading=${this.fullYearAggregationLoading}
380
- .onFacetClick=${this.facetClickHandler}
381
- .analyticsHandler=${this.analyticsHandler}
382
- >
383
- </collection-facets>
359
+ return html `
360
+ ${this.facetsLoading ? this.loadingTemplate : nothing}
361
+ <collection-facets
362
+ @facetsChanged=${this.facetsChanged}
363
+ @histogramDateRangeUpdated=${this.histogramDateRangeUpdated}
364
+ .searchService=${this.searchService}
365
+ .searchType=${this.searchType}
366
+ .aggregations=${this.aggregations}
367
+ .fullYearsHistogramAggregation=${this.fullYearsHistogramAggregation}
368
+ .previousSearchType=${this.previousSearchType}
369
+ .minSelectedDate=${this.minSelectedDate}
370
+ .maxSelectedDate=${this.maxSelectedDate}
371
+ .selectedFacets=${this.selectedFacets}
372
+ .collectionNameCache=${this.collectionNameCache}
373
+ .languageCodeHandler=${this.languageCodeHandler}
374
+ .showHistogramDatePicker=${this.showHistogramDatePicker}
375
+ .fullQuery=${this.fullQuery}
376
+ .modalManager=${this.modalManager}
377
+ ?collapsableFacets=${this.mobileView}
378
+ ?facetsLoading=${this.facetDataLoading}
379
+ ?fullYearAggregationLoading=${this.fullYearAggregationLoading}
380
+ .onFacetClick=${this.facetClickHandler}
381
+ .analyticsHandler=${this.analyticsHandler}
382
+ >
383
+ </collection-facets>
384
384
  `;
385
385
  }
386
386
  get loadingTemplate() {
387
- return html `
388
- <div class="loading-cover">
389
- <circular-activity-indicator></circular-activity-indicator>
390
- </div>
387
+ return html `
388
+ <div class="loading-cover">
389
+ <circular-activity-indicator></circular-activity-indicator>
390
+ </div>
391
391
  `;
392
392
  }
393
393
  get listHeaderTemplate() {
394
- return html `
395
- <div id="list-header">
396
- <tile-dispatcher
397
- .tileDisplayMode=${'list-header'}
398
- .resizeObserver=${this.resizeObserver}
399
- .sortParam=${this.sortParam}
400
- .mobileBreakpoint=${this.mobileBreakpoint}
401
- .loggedIn=${this.loggedIn}
402
- >
403
- </tile-dispatcher>
404
- </div>
394
+ return html `
395
+ <div id="list-header">
396
+ <tile-dispatcher
397
+ .tileDisplayMode=${'list-header'}
398
+ .resizeObserver=${this.resizeObserver}
399
+ .sortParam=${this.sortParam}
400
+ .mobileBreakpoint=${this.mobileBreakpoint}
401
+ .loggedIn=${this.loggedIn}
402
+ >
403
+ </tile-dispatcher>
404
+ </div>
405
405
  `;
406
406
  }
407
407
  get queryDebuggingTemplate() {
408
408
  var _a, _b;
409
- return html `
410
- <div>
411
- <ul>
412
- <li>Base Query: ${this.baseQuery}</li>
413
- <li>Facet Query: ${this.facetQuery}</li>
414
- <li>Sort Filter Query: ${this.sortFilterQueries}</li>
415
- <li>Date Range Query: ${this.dateRangeQueryClause}</li>
416
- <li>Sort: ${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field} ${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}</li>
417
- <li>Full Query: ${this.fullQuery}</li>
418
- </ul>
419
- </div>
409
+ return html `
410
+ <div>
411
+ <ul>
412
+ <li>Base Query: ${this.baseQuery}</li>
413
+ <li>Facet Query: ${this.facetQuery}</li>
414
+ <li>Sort Filter Query: ${this.sortFilterQueries}</li>
415
+ <li>Date Range Query: ${this.dateRangeQueryClause}</li>
416
+ <li>Sort: ${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field} ${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}</li>
417
+ <li>Full Query: ${this.fullQuery}</li>
418
+ </ul>
419
+ </div>
420
420
  `;
421
421
  }
422
422
  histogramDateRangeUpdated(e) {
@@ -763,7 +763,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
763
763
  */
764
764
  get fullQueryNoDateKey() {
765
765
  var _a, _b;
766
- return `${this.fullQueryWithoutDate}-${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field}-${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}`;
766
+ return `${this.fullQueryWithoutDate}-${this.searchType}-${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field}-${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}`;
767
767
  }
768
768
  /**
769
769
  * This method is similar to fetching the facets above,
@@ -818,7 +818,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
818
818
  */
819
819
  get pageFetchQueryKey() {
820
820
  var _a, _b;
821
- return `${this.fullQuery}-${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field}-${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}`;
821
+ return `${this.fullQuery}-${this.searchType}-${(_a = this.sortParam) === null || _a === void 0 ? void 0 : _a.field}-${(_b = this.sortParam) === null || _b === void 0 ? void 0 : _b.direction}`;
822
822
  }
823
823
  async fetchPage(pageNumber) {
824
824
  var _a, _b, _c, _d, _e;
@@ -1041,20 +1041,20 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1041
1041
  const model = this.tileModelAtCellIndex(index);
1042
1042
  if (!model)
1043
1043
  return undefined;
1044
- return html `
1045
- <tile-dispatcher
1046
- .baseNavigationUrl=${this.baseNavigationUrl}
1047
- .baseImageUrl=${this.baseImageUrl}
1048
- .model=${model}
1049
- .tileDisplayMode=${this.displayMode}
1050
- .resizeObserver=${this.resizeObserver}
1051
- .collectionNameCache=${this.collectionNameCache}
1052
- .sortParam=${this.sortParam}
1053
- .mobileBreakpoint=${this.mobileBreakpoint}
1054
- .loggedIn=${this.loggedIn}
1055
- @resultSelected=${(e) => this.resultSelected(e)}
1056
- >
1057
- </tile-dispatcher>
1044
+ return html `
1045
+ <tile-dispatcher
1046
+ .baseNavigationUrl=${this.baseNavigationUrl}
1047
+ .baseImageUrl=${this.baseImageUrl}
1048
+ .model=${model}
1049
+ .tileDisplayMode=${this.displayMode}
1050
+ .resizeObserver=${this.resizeObserver}
1051
+ .collectionNameCache=${this.collectionNameCache}
1052
+ .sortParam=${this.sortParam}
1053
+ .mobileBreakpoint=${this.mobileBreakpoint}
1054
+ .loggedIn=${this.loggedIn}
1055
+ @resultSelected=${(e) => this.resultSelected(e)}
1056
+ >
1057
+ </tile-dispatcher>
1058
1058
  `;
1059
1059
  }
1060
1060
  /**
@@ -1066,212 +1066,212 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1066
1066
  this.fetchPage(this.pagesToRender);
1067
1067
  }
1068
1068
  };
1069
- CollectionBrowser.styles = css `
1070
- :host {
1071
- display: block;
1072
- }
1073
-
1074
- /**
1075
- * When page width resizes from desktop to mobile, use this class to
1076
- * disable expand/collapse transition when loading.
1077
- */
1078
- .preload * {
1079
- transition: none !important;
1080
- -webkit-transition: none !important;
1081
- -moz-transition: none !important;
1082
- -ms-transition: none !important;
1083
- -o-transition: none !important;
1084
- }
1085
-
1086
- #content-container {
1087
- display: flex;
1088
- }
1089
-
1090
- .collapser {
1091
- display: inline-block;
1092
- }
1093
-
1094
- .collapser svg {
1095
- width: 10px;
1096
- height: 10px;
1097
- transition: transform 0.2s ease-out;
1098
- }
1099
-
1100
- .collapser.open svg {
1101
- transform: rotate(90deg);
1102
- }
1103
-
1104
- #mobile-filter-collapse h1 {
1105
- cursor: pointer;
1106
- }
1107
-
1108
- #content-container.mobile {
1109
- display: block;
1110
- }
1111
-
1112
- .column {
1113
- padding-top: 2rem;
1114
- }
1115
-
1116
- #right-column {
1117
- flex: 1;
1118
- position: relative;
1119
- border-left: 1px solid rgb(232, 232, 232);
1120
- padding-left: 1rem;
1121
- }
1122
-
1123
- .mobile #right-column {
1124
- border-left: none;
1125
- padding: 0;
1126
- }
1127
-
1128
- #left-column {
1129
- width: 18rem;
1130
- min-width: 18rem; /* Prevents Safari from shrinking col at first draw */
1131
- padding-right: 12px;
1132
- padding-right: 1rem;
1133
- }
1134
-
1135
- .desktop #left-column::-webkit-scrollbar {
1136
- display: none;
1137
- }
1138
-
1139
- .mobile #left-column {
1140
- width: 100%;
1141
- padding: 0;
1142
- }
1143
-
1144
- .desktop #left-column {
1145
- top: 0;
1146
- position: sticky;
1147
- max-height: 100vh;
1148
- overflow: scroll;
1149
- -ms-overflow-style: none; /* hide scrollbar IE and Edge */
1150
- scrollbar-width: none; /* hide scrollbar Firefox */
1151
- }
1152
-
1153
- #mobile-header-container {
1154
- display: flex;
1155
- justify-content: space-between;
1156
- }
1157
-
1158
- #facets-container {
1159
- position: relative;
1160
- max-height: 0;
1161
- transition: max-height 0.2s ease-in-out;
1162
- z-index: 1;
1163
- padding-bottom: 2rem;
1164
- }
1165
-
1166
- .mobile #facets-container {
1167
- overflow: hidden;
1168
- padding-bottom: 0;
1169
- }
1170
-
1171
- #facets-container.expanded {
1172
- max-height: 2000px;
1173
- }
1174
-
1175
- #results-total {
1176
- display: flex;
1177
- align-items: center;
1178
- margin-bottom: 5rem;
1179
- }
1180
-
1181
- .mobile #results-total {
1182
- margin-bottom: 0;
1183
- }
1184
-
1185
- #big-results-count {
1186
- font-size: 2.4rem;
1187
- font-weight: 500;
1188
- margin-right: 5px;
1189
- }
1190
-
1191
- #big-results-label {
1192
- font-size: 1rem;
1193
- font-weight: 200;
1194
- text-transform: uppercase;
1195
- }
1196
-
1197
- #list-header {
1198
- max-height: 4.2rem;
1199
- }
1200
-
1201
- .loading-cover {
1202
- position: absolute;
1203
- top: 0;
1204
- left: 0;
1205
- width: 100%;
1206
- height: 100%;
1207
- display: flex;
1208
- justify-content: center;
1209
- z-index: 1;
1210
- padding-top: 50px;
1211
- }
1212
-
1213
- circular-activity-indicator {
1214
- width: 30px;
1215
- height: 30px;
1216
- }
1217
-
1218
- sort-filter-bar {
1219
- display: block;
1220
- margin-bottom: 4rem;
1221
- }
1222
-
1223
- infinite-scroller {
1224
- display: block;
1225
- --infiniteScrollerRowGap: var(--collectionBrowserRowGap, 1.7rem);
1226
- --infiniteScrollerColGap: var(--collectionBrowserColGap, 1.7rem);
1227
- }
1228
-
1229
- infinite-scroller.list-compact {
1230
- --infiniteScrollerCellMinWidth: var(
1231
- --collectionBrowserCellMinWidth,
1232
- 100%
1233
- );
1234
- --infiniteScrollerCellMinHeight: 34px; /* override infinite scroller component */
1235
- --infiniteScrollerCellMaxHeight: 56px;
1236
- --infiniteScrollerRowGap: 0px;
1237
- }
1238
-
1239
- infinite-scroller.list-detail {
1240
- --infiniteScrollerCellMinWidth: var(
1241
- --collectionBrowserCellMinWidth,
1242
- 100%
1243
- );
1244
- --infiniteScrollerCellMinHeight: var(
1245
- --collectionBrowserCellMinHeight,
1246
- 5rem
1247
- );
1248
- /*
1249
- 30px in spec, compensating for a -4px margin
1250
- to align title with top of item image
1251
- src/tiles/list/tile-list.ts
1252
- */
1253
- --infiniteScrollerRowGap: 34px;
1254
- }
1255
-
1256
- .mobile infinite-scroller.list-detail {
1257
- --infiniteScrollerRowGap: 24px;
1258
- }
1259
-
1260
- infinite-scroller.grid {
1261
- --infiniteScrollerCellMinWidth: var(
1262
- --collectionBrowserCellMinWidth,
1263
- 18rem
1264
- );
1265
- --infiniteScrollerCellMaxWidth: var(--collectionBrowserCellMaxWidth, 1fr);
1266
- --infiniteScrollerCellMinHeight: var(
1267
- --collectionBrowserCellMinHeight,
1268
- 29rem
1269
- );
1270
- --infiniteScrollerCellMaxHeight: var(
1271
- --collectionBrowserCellMaxHeight,
1272
- 29rem
1273
- );
1274
- }
1069
+ CollectionBrowser.styles = css `
1070
+ :host {
1071
+ display: block;
1072
+ }
1073
+
1074
+ /**
1075
+ * When page width resizes from desktop to mobile, use this class to
1076
+ * disable expand/collapse transition when loading.
1077
+ */
1078
+ .preload * {
1079
+ transition: none !important;
1080
+ -webkit-transition: none !important;
1081
+ -moz-transition: none !important;
1082
+ -ms-transition: none !important;
1083
+ -o-transition: none !important;
1084
+ }
1085
+
1086
+ #content-container {
1087
+ display: flex;
1088
+ }
1089
+
1090
+ .collapser {
1091
+ display: inline-block;
1092
+ }
1093
+
1094
+ .collapser svg {
1095
+ width: 10px;
1096
+ height: 10px;
1097
+ transition: transform 0.2s ease-out;
1098
+ }
1099
+
1100
+ .collapser.open svg {
1101
+ transform: rotate(90deg);
1102
+ }
1103
+
1104
+ #mobile-filter-collapse h1 {
1105
+ cursor: pointer;
1106
+ }
1107
+
1108
+ #content-container.mobile {
1109
+ display: block;
1110
+ }
1111
+
1112
+ .column {
1113
+ padding-top: 2rem;
1114
+ }
1115
+
1116
+ #right-column {
1117
+ flex: 1;
1118
+ position: relative;
1119
+ border-left: 1px solid rgb(232, 232, 232);
1120
+ padding-left: 1rem;
1121
+ }
1122
+
1123
+ .mobile #right-column {
1124
+ border-left: none;
1125
+ padding: 0;
1126
+ }
1127
+
1128
+ #left-column {
1129
+ width: 18rem;
1130
+ min-width: 18rem; /* Prevents Safari from shrinking col at first draw */
1131
+ padding-right: 12px;
1132
+ padding-right: 1rem;
1133
+ }
1134
+
1135
+ .desktop #left-column::-webkit-scrollbar {
1136
+ display: none;
1137
+ }
1138
+
1139
+ .mobile #left-column {
1140
+ width: 100%;
1141
+ padding: 0;
1142
+ }
1143
+
1144
+ .desktop #left-column {
1145
+ top: 0;
1146
+ position: sticky;
1147
+ max-height: 100vh;
1148
+ overflow: scroll;
1149
+ -ms-overflow-style: none; /* hide scrollbar IE and Edge */
1150
+ scrollbar-width: none; /* hide scrollbar Firefox */
1151
+ }
1152
+
1153
+ #mobile-header-container {
1154
+ display: flex;
1155
+ justify-content: space-between;
1156
+ }
1157
+
1158
+ #facets-container {
1159
+ position: relative;
1160
+ max-height: 0;
1161
+ transition: max-height 0.2s ease-in-out;
1162
+ z-index: 1;
1163
+ padding-bottom: 2rem;
1164
+ }
1165
+
1166
+ .mobile #facets-container {
1167
+ overflow: hidden;
1168
+ padding-bottom: 0;
1169
+ }
1170
+
1171
+ #facets-container.expanded {
1172
+ max-height: 2000px;
1173
+ }
1174
+
1175
+ #results-total {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ margin-bottom: 5rem;
1179
+ }
1180
+
1181
+ .mobile #results-total {
1182
+ margin-bottom: 0;
1183
+ }
1184
+
1185
+ #big-results-count {
1186
+ font-size: 2.4rem;
1187
+ font-weight: 500;
1188
+ margin-right: 5px;
1189
+ }
1190
+
1191
+ #big-results-label {
1192
+ font-size: 1rem;
1193
+ font-weight: 200;
1194
+ text-transform: uppercase;
1195
+ }
1196
+
1197
+ #list-header {
1198
+ max-height: 4.2rem;
1199
+ }
1200
+
1201
+ .loading-cover {
1202
+ position: absolute;
1203
+ top: 0;
1204
+ left: 0;
1205
+ width: 100%;
1206
+ height: 100%;
1207
+ display: flex;
1208
+ justify-content: center;
1209
+ z-index: 1;
1210
+ padding-top: 50px;
1211
+ }
1212
+
1213
+ circular-activity-indicator {
1214
+ width: 30px;
1215
+ height: 30px;
1216
+ }
1217
+
1218
+ sort-filter-bar {
1219
+ display: block;
1220
+ margin-bottom: 4rem;
1221
+ }
1222
+
1223
+ infinite-scroller {
1224
+ display: block;
1225
+ --infiniteScrollerRowGap: var(--collectionBrowserRowGap, 1.7rem);
1226
+ --infiniteScrollerColGap: var(--collectionBrowserColGap, 1.7rem);
1227
+ }
1228
+
1229
+ infinite-scroller.list-compact {
1230
+ --infiniteScrollerCellMinWidth: var(
1231
+ --collectionBrowserCellMinWidth,
1232
+ 100%
1233
+ );
1234
+ --infiniteScrollerCellMinHeight: 34px; /* override infinite scroller component */
1235
+ --infiniteScrollerCellMaxHeight: 56px;
1236
+ --infiniteScrollerRowGap: 0px;
1237
+ }
1238
+
1239
+ infinite-scroller.list-detail {
1240
+ --infiniteScrollerCellMinWidth: var(
1241
+ --collectionBrowserCellMinWidth,
1242
+ 100%
1243
+ );
1244
+ --infiniteScrollerCellMinHeight: var(
1245
+ --collectionBrowserCellMinHeight,
1246
+ 5rem
1247
+ );
1248
+ /*
1249
+ 30px in spec, compensating for a -4px margin
1250
+ to align title with top of item image
1251
+ src/tiles/list/tile-list.ts
1252
+ */
1253
+ --infiniteScrollerRowGap: 34px;
1254
+ }
1255
+
1256
+ .mobile infinite-scroller.list-detail {
1257
+ --infiniteScrollerRowGap: 24px;
1258
+ }
1259
+
1260
+ infinite-scroller.grid {
1261
+ --infiniteScrollerCellMinWidth: var(
1262
+ --collectionBrowserCellMinWidth,
1263
+ 18rem
1264
+ );
1265
+ --infiniteScrollerCellMaxWidth: var(--collectionBrowserCellMaxWidth, 1fr);
1266
+ --infiniteScrollerCellMinHeight: var(
1267
+ --collectionBrowserCellMinHeight,
1268
+ 29rem
1269
+ );
1270
+ --infiniteScrollerCellMaxHeight: var(
1271
+ --collectionBrowserCellMaxHeight,
1272
+ 29rem
1273
+ );
1274
+ }
1275
1275
  `;
1276
1276
  __decorate([
1277
1277
  property({ type: String })