@internetarchive/collection-browser 0.4.18-alpha.6 → 0.4.18
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 +1 -8
- package/dist/src/collection-browser.js +291 -318
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facets-template.js +0 -2
- package/dist/src/collection-facets/facets-template.js.map +1 -1
- package/dist/src/collection-facets/more-facets-content.js +70 -63
- package/dist/src/collection-facets/more-facets-content.js.map +1 -1
- package/dist/src/collection-facets/more-facets-pagination.js +55 -49
- package/dist/src/collection-facets/more-facets-pagination.js.map +1 -1
- package/dist/src/collection-facets/toggle-switch.js +56 -46
- package/dist/src/collection-facets/toggle-switch.js.map +1 -1
- package/dist/src/collection-facets.d.ts +1 -1
- package/dist/src/collection-facets.js +84 -94
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/sort-filter-bar/alpha-bar.d.ts +1 -2
- package/dist/src/sort-filter-bar/alpha-bar.js +25 -33
- package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.d.ts +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js +186 -198
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/grid/account-tile.js +1 -1
- package/dist/src/tiles/grid/account-tile.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.js +2 -2
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +2 -2
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +15 -5
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/grid/tile-stats.js +65 -58
- package/dist/src/tiles/grid/tile-stats.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.js +2 -3
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/dist/test/collection-facets.test.js +5 -8
- package/dist/test/collection-facets.test.js.map +1 -1
- package/dist/test/sort-filter-bar/alpha-bar.test.js +12 -12
- package/dist/test/sort-filter-bar/alpha-bar.test.js.map +1 -1
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js +2 -2
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +1 -1
- package/package.json +5 -5
- package/src/collection-browser.ts +293 -321
- package/src/collection-facets/facets-template.ts +0 -2
- package/src/collection-facets/more-facets-content.ts +70 -63
- package/src/collection-facets/more-facets-pagination.ts +55 -49
- package/src/collection-facets/toggle-switch.ts +61 -51
- package/src/collection-facets.ts +85 -96
- package/src/sort-filter-bar/alpha-bar.ts +18 -26
- package/src/sort-filter-bar/sort-filter-bar.ts +186 -200
- package/src/tiles/grid/account-tile.ts +1 -1
- package/src/tiles/grid/collection-tile.ts +2 -2
- package/src/tiles/grid/item-tile.ts +2 -2
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +15 -5
- package/src/tiles/grid/tile-stats.ts +73 -66
- package/src/tiles/tile-dispatcher.ts +0 -1
- package/test/collection-facets.test.ts +2 -10
- package/test/sort-filter-bar/alpha-bar.test.ts +12 -16
- package/test/sort-filter-bar/sort-filter-bar.test.ts +2 -2
- package/dist/src/styles/sr-only.d.ts +0 -1
- package/dist/src/styles/sr-only.js +0 -18
- package/dist/src/styles/sr-only.js.map +0 -1
- package/src/styles/sr-only.ts +0 -18
|
@@ -164,7 +164,6 @@ export class FacetsTemplate extends LitElement {
|
|
|
164
164
|
const hideText = `Hide ${titleText}`;
|
|
165
165
|
const unhideText = `Unhide ${titleText}`;
|
|
166
166
|
const showHideText = facetHidden ? unhideText : hideText;
|
|
167
|
-
const ariaLabel = `${titleText}, ${bucket.count} results`;
|
|
168
167
|
return html`
|
|
169
168
|
<div class="facet-row">
|
|
170
169
|
<div class="facet-checkbox">
|
|
@@ -204,7 +203,6 @@ export class FacetsTemplate extends LitElement {
|
|
|
204
203
|
for=${showOnlyCheckboxId}
|
|
205
204
|
class="facet-info-display"
|
|
206
205
|
title=${onlyShowText}
|
|
207
|
-
aria-label=${ariaLabel}
|
|
208
206
|
>
|
|
209
207
|
<div class="facet-title">${bucketTextDisplay}</div>
|
|
210
208
|
<div class="facet-count">
|
|
@@ -40,7 +40,6 @@ import {
|
|
|
40
40
|
analyticsCategories,
|
|
41
41
|
} from '../utils/analytics-events';
|
|
42
42
|
import './toggle-switch';
|
|
43
|
-
import { srOnlyStyle } from '../styles/sr-only';
|
|
44
43
|
|
|
45
44
|
@customElement('more-facets-content')
|
|
46
45
|
export class MoreFacetsContent extends LitElement {
|
|
@@ -457,73 +456,81 @@ export class MoreFacetsContent extends LitElement {
|
|
|
457
456
|
static get styles(): CSSResultGroup {
|
|
458
457
|
const modalSubmitButton = css`var(--primaryButtonBGColor, #194880)`;
|
|
459
458
|
|
|
460
|
-
return
|
|
461
|
-
|
|
462
|
-
css`
|
|
463
|
-
@media (max-width: 560px) {
|
|
464
|
-
section#more-facets {
|
|
465
|
-
max-height: 450px;
|
|
466
|
-
}
|
|
467
|
-
.facets-content {
|
|
468
|
-
overflow-y: auto;
|
|
469
|
-
height: 300px;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
459
|
+
return css`
|
|
460
|
+
@media (max-width: 560px) {
|
|
472
461
|
section#more-facets {
|
|
473
|
-
|
|
474
|
-
padding: 10px; /* leaves room for scroll bar to appear without overlaying on content */
|
|
462
|
+
max-height: 450px;
|
|
475
463
|
}
|
|
476
|
-
.
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
font-size: 1.8rem;
|
|
480
|
-
padding: 0 10px;
|
|
481
|
-
font-weight: bold;
|
|
464
|
+
.facets-content {
|
|
465
|
+
overflow-y: auto;
|
|
466
|
+
height: 300px;
|
|
482
467
|
}
|
|
468
|
+
}
|
|
469
|
+
section#more-facets {
|
|
470
|
+
overflow: auto;
|
|
471
|
+
padding: 10px; /* leaves room for scroll bar to appear without overlaying on content */
|
|
472
|
+
}
|
|
473
|
+
.header-content .title {
|
|
474
|
+
display: block;
|
|
475
|
+
text-align: left;
|
|
476
|
+
font-size: 1.8rem;
|
|
477
|
+
padding: 0 10px;
|
|
478
|
+
font-weight: bold;
|
|
479
|
+
}
|
|
483
480
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
481
|
+
.sort-label {
|
|
482
|
+
margin-left: 20px;
|
|
483
|
+
font-size: 1.3rem;
|
|
484
|
+
}
|
|
488
485
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
486
|
+
.sort-toggle {
|
|
487
|
+
font-weight: normal;
|
|
488
|
+
}
|
|
492
489
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
490
|
+
.facets-content {
|
|
491
|
+
font-size: 1.2rem;
|
|
492
|
+
max-height: 300px;
|
|
493
|
+
overflow: auto;
|
|
494
|
+
padding: 10px;
|
|
495
|
+
}
|
|
496
|
+
.facets-loader {
|
|
497
|
+
margin-bottom: 20px;
|
|
498
|
+
width: 70px;
|
|
499
|
+
display: block;
|
|
500
|
+
margin-left: auto;
|
|
501
|
+
margin-right: auto;
|
|
502
|
+
}
|
|
503
|
+
.btn {
|
|
504
|
+
border: none;
|
|
505
|
+
padding: 10px;
|
|
506
|
+
margin-bottom: 10px;
|
|
507
|
+
width: auto;
|
|
508
|
+
border-radius: 4px;
|
|
509
|
+
cursor: pointer;
|
|
510
|
+
}
|
|
511
|
+
.btn-cancel {
|
|
512
|
+
background-color: #2c2c2c;
|
|
513
|
+
color: white;
|
|
514
|
+
}
|
|
515
|
+
.btn-submit {
|
|
516
|
+
background-color: ${modalSubmitButton};
|
|
517
|
+
color: white;
|
|
518
|
+
}
|
|
519
|
+
.footer {
|
|
520
|
+
text-align: center;
|
|
521
|
+
margin-top: 10px;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.sr-only {
|
|
525
|
+
position: absolute;
|
|
526
|
+
width: 1px;
|
|
527
|
+
height: 1px;
|
|
528
|
+
padding: 0;
|
|
529
|
+
margin: -1px;
|
|
530
|
+
overflow: hidden;
|
|
531
|
+
clip: rect(0, 0, 0, 0);
|
|
532
|
+
border: 0;
|
|
533
|
+
}
|
|
534
|
+
`;
|
|
528
535
|
}
|
|
529
536
|
}
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
10
|
import arrowLeftIcon from '../assets/img/icons/arrow-left';
|
|
11
11
|
import arrowRightIcon from '../assets/img/icons/arrow-right';
|
|
12
|
-
import { srOnlyStyle } from '../styles/sr-only';
|
|
13
12
|
|
|
14
13
|
@customElement('more-facets-pagination')
|
|
15
14
|
export class MoreFacetsPagination extends LitElement {
|
|
@@ -241,53 +240,60 @@ export class MoreFacetsPagination extends LitElement {
|
|
|
241
240
|
}
|
|
242
241
|
|
|
243
242
|
static get styles(): CSSResultGroup {
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
243
|
+
return css`
|
|
244
|
+
.facets-pagination {
|
|
245
|
+
user-select: none;
|
|
246
|
+
margin-top: 10px;
|
|
247
|
+
background-color: #eee;
|
|
248
|
+
text-align: center;
|
|
249
|
+
}
|
|
250
|
+
.facets-pagination button {
|
|
251
|
+
border: none;
|
|
252
|
+
background: none;
|
|
253
|
+
}
|
|
254
|
+
.facets-pagination .arrow-icon {
|
|
255
|
+
width: 2.5rem;
|
|
256
|
+
vertical-align: middle;
|
|
257
|
+
}
|
|
258
|
+
.facets-pagination .arrow-icon svg {
|
|
259
|
+
height: 14px;
|
|
260
|
+
fill: #2c2c2c;
|
|
261
|
+
}
|
|
262
|
+
.facets-pagination button,
|
|
263
|
+
.facets-pagination i {
|
|
264
|
+
background: none;
|
|
265
|
+
border: 0;
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
border-radius: 4px;
|
|
268
|
+
margin: 10px 5px;
|
|
269
|
+
padding: 5px;
|
|
270
|
+
font-size: 1.4rem;
|
|
271
|
+
color: inherit;
|
|
272
|
+
vertical-align: baseline;
|
|
273
|
+
display: inline-block;
|
|
274
|
+
min-width: 2.5rem;
|
|
275
|
+
}
|
|
276
|
+
.facets-pagination i {
|
|
277
|
+
cursor: auto;
|
|
278
|
+
display: inline;
|
|
279
|
+
}
|
|
280
|
+
.facets-pagination button.current {
|
|
281
|
+
background: #2c2c2c;
|
|
282
|
+
color: white;
|
|
283
|
+
}
|
|
284
|
+
.page-numbers {
|
|
285
|
+
display: inline-block;
|
|
286
|
+
}
|
|
287
|
+
.sr-only {
|
|
288
|
+
position: absolute;
|
|
289
|
+
width: 1px;
|
|
290
|
+
height: 1px;
|
|
291
|
+
padding: 0;
|
|
292
|
+
margin: -1px;
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
clip: rect(0, 0, 0, 0);
|
|
295
|
+
border: 0;
|
|
296
|
+
}
|
|
297
|
+
`;
|
|
292
298
|
}
|
|
293
299
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css, html, LitElement, CSSResultGroup } from 'lit';
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
|
-
import { srOnlyStyle } from '../styles/sr-only';
|
|
4
3
|
|
|
5
4
|
export type Side = 'left' | 'right';
|
|
6
5
|
|
|
@@ -118,57 +117,68 @@ export class ToggleSwitch extends LitElement {
|
|
|
118
117
|
const knobTransitionDuration = css`var(--knobTransitionDuration, 0.25s)`;
|
|
119
118
|
const knobTransitionFn = css`var(--knobTransitionFn, ease)`;
|
|
120
119
|
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
120
|
+
return css`
|
|
121
|
+
#container {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
flex-wrap: nowrap;
|
|
125
|
+
font-size: ${labelFontSize};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
#switch-button {
|
|
129
|
+
width: ${switchWidth};
|
|
130
|
+
height: ${switchHeight};
|
|
131
|
+
margin: 0 ${switchMarginRight} 0 ${switchMarginLeft};
|
|
132
|
+
padding: 0;
|
|
133
|
+
border: ${switchBorderWidth} solid ${switchBorderColor};
|
|
134
|
+
border-radius: ${switchHeight};
|
|
135
|
+
box-sizing: content-box;
|
|
136
|
+
background: ${switchBgColor};
|
|
137
|
+
appearance: none;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
#switch-button.left #knob {
|
|
142
|
+
transform: translateX(0);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#switch-button.right #knob {
|
|
146
|
+
transform: translateX(calc(${switchWidth} - ${switchHeight}));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#switch-button:focus-visible {
|
|
150
|
+
outline: 2px solid black;
|
|
151
|
+
outline-offset: 2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
#knob {
|
|
155
|
+
display: block;
|
|
156
|
+
width: ${switchHeight};
|
|
157
|
+
height: ${switchHeight};
|
|
158
|
+
border-radius: 50%;
|
|
159
|
+
background: ${knobColor};
|
|
160
|
+
transition: transform ${knobTransitionDuration} ${knobTransitionFn};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.sr-only {
|
|
164
|
+
position: absolute !important;
|
|
165
|
+
width: 1px !important;
|
|
166
|
+
height: 1px !important;
|
|
167
|
+
margin: -1px !important;
|
|
168
|
+
padding: 0 !important;
|
|
169
|
+
border: 0 !important;
|
|
170
|
+
overflow: hidden !important;
|
|
171
|
+
white-space: nowrap !important;
|
|
172
|
+
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
173
|
+
-webkit-clip-path: inset(50%) !important;
|
|
174
|
+
clip-path: inset(50%) !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (prefers-reduced-motion: reduce) {
|
|
157
178
|
#knob {
|
|
158
|
-
|
|
159
|
-
width: ${switchHeight};
|
|
160
|
-
height: ${switchHeight};
|
|
161
|
-
border-radius: 50%;
|
|
162
|
-
background: ${knobColor};
|
|
163
|
-
transition: transform ${knobTransitionDuration} ${knobTransitionFn};
|
|
179
|
+
transition-duration: 0.001s !important; /* Imperceptibly fast */
|
|
164
180
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
#knob {
|
|
168
|
-
transition-duration: 0.001s !important; /* Imperceptibly fast */
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
`,
|
|
172
|
-
];
|
|
181
|
+
}
|
|
182
|
+
`;
|
|
173
183
|
}
|
|
174
184
|
}
|
package/src/collection-facets.ts
CHANGED
|
@@ -50,7 +50,6 @@ import {
|
|
|
50
50
|
analyticsActions,
|
|
51
51
|
analyticsCategories,
|
|
52
52
|
} from './utils/analytics-events';
|
|
53
|
-
import { srOnlyStyle } from './styles/sr-only';
|
|
54
53
|
|
|
55
54
|
@customElement('collection-facets')
|
|
56
55
|
export class CollectionFacets extends LitElement {
|
|
@@ -116,18 +115,15 @@ export class CollectionFacets extends LitElement {
|
|
|
116
115
|
private allowedFacetCount = 6;
|
|
117
116
|
|
|
118
117
|
render() {
|
|
119
|
-
const datePickerLabelId = 'date-picker-label';
|
|
120
118
|
return html`
|
|
121
119
|
<div id="container" class="${this.facetsLoading ? 'loading' : ''}">
|
|
122
120
|
${this.showHistogramDatePicker &&
|
|
123
121
|
(this.fullYearsHistogramAggregation || this.fullYearAggregationLoading)
|
|
124
122
|
? html`
|
|
125
|
-
<
|
|
126
|
-
<
|
|
127
|
-
Year Published <span class="sr-only">range filter</span>
|
|
128
|
-
</h3>
|
|
123
|
+
<div class="facet-group">
|
|
124
|
+
<h1>Year Published</h1>
|
|
129
125
|
${this.histogramTemplate}
|
|
130
|
-
</
|
|
126
|
+
</div>
|
|
131
127
|
`
|
|
132
128
|
: nothing}
|
|
133
129
|
${this.mergedFacets.map(facetGroup =>
|
|
@@ -371,27 +367,23 @@ export class CollectionFacets extends LitElement {
|
|
|
371
367
|
<span class="collapser ${isOpen ? 'open' : ''}"> ${chevronIcon} </span>
|
|
372
368
|
`;
|
|
373
369
|
|
|
374
|
-
const toggleCollapsed = () => {
|
|
375
|
-
const newOpenFacets = { ...this.openFacets };
|
|
376
|
-
newOpenFacets[key] = !isOpen;
|
|
377
|
-
this.openFacets = newOpenFacets;
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
const headerId = `facet-group-header-label-${facetGroup.key}`;
|
|
381
370
|
return html`
|
|
382
|
-
<
|
|
383
|
-
class="facet-group ${this.collapsableFacets ? 'mobile' : ''}"
|
|
384
|
-
aria-labelledby=${headerId}
|
|
385
|
-
>
|
|
371
|
+
<div class="facet-group ${this.collapsableFacets ? 'mobile' : ''}">
|
|
386
372
|
<div class="facet-group-header">
|
|
387
|
-
<
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
373
|
+
<h1
|
|
374
|
+
@click=${() => {
|
|
375
|
+
const newOpenFacets = { ...this.openFacets };
|
|
376
|
+
newOpenFacets[key] = !isOpen;
|
|
377
|
+
this.openFacets = newOpenFacets;
|
|
378
|
+
}}
|
|
379
|
+
@keyup=${() => {
|
|
380
|
+
const newOpenFacets = { ...this.openFacets };
|
|
381
|
+
newOpenFacets[key] = !isOpen;
|
|
382
|
+
this.openFacets = newOpenFacets;
|
|
383
|
+
}}
|
|
391
384
|
>
|
|
392
385
|
${this.collapsableFacets ? collapser : nothing} ${facetGroup.title}
|
|
393
|
-
|
|
394
|
-
</h3>
|
|
386
|
+
</h1>
|
|
395
387
|
</div>
|
|
396
388
|
<div class="facet-group-content ${isOpen ? 'open' : ''}">
|
|
397
389
|
${this.facetsLoading
|
|
@@ -401,7 +393,7 @@ export class CollectionFacets extends LitElement {
|
|
|
401
393
|
${this.searchMoreFacetsLink(facetGroup)}
|
|
402
394
|
`}
|
|
403
395
|
</div>
|
|
404
|
-
</
|
|
396
|
+
</div>
|
|
405
397
|
`;
|
|
406
398
|
}
|
|
407
399
|
|
|
@@ -527,90 +519,87 @@ export class CollectionFacets extends LitElement {
|
|
|
527
519
|
}
|
|
528
520
|
|
|
529
521
|
static get styles() {
|
|
530
|
-
return
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
opacity: 0.5;
|
|
535
|
-
}
|
|
522
|
+
return css`
|
|
523
|
+
#container.loading {
|
|
524
|
+
opacity: 0.5;
|
|
525
|
+
}
|
|
536
526
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
527
|
+
.histogram-loading-indicator {
|
|
528
|
+
width: 100%;
|
|
529
|
+
height: 2.25rem;
|
|
530
|
+
margin-top: 1.75rem;
|
|
531
|
+
font-size: 1.4rem;
|
|
532
|
+
text-align: center;
|
|
533
|
+
}
|
|
544
534
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
535
|
+
.collapser {
|
|
536
|
+
display: inline-block;
|
|
537
|
+
cursor: pointer;
|
|
538
|
+
width: 10px;
|
|
539
|
+
height: 10px;
|
|
540
|
+
}
|
|
551
541
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
542
|
+
.collapser svg {
|
|
543
|
+
transition: transform 0.2s ease-in-out;
|
|
544
|
+
}
|
|
555
545
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
546
|
+
.collapser.open svg {
|
|
547
|
+
transform: rotate(90deg);
|
|
548
|
+
}
|
|
559
549
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
550
|
+
.facet-group:not(:last-child) {
|
|
551
|
+
margin-bottom: 2rem;
|
|
552
|
+
}
|
|
563
553
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
554
|
+
.facet-group h1 {
|
|
555
|
+
margin-bottom: 0.7rem;
|
|
556
|
+
}
|
|
567
557
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
558
|
+
.facet-group.mobile h1 {
|
|
559
|
+
cursor: pointer;
|
|
560
|
+
}
|
|
571
561
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
562
|
+
.facet-group-header {
|
|
563
|
+
display: flex;
|
|
564
|
+
margin-bottom: 0.7rem;
|
|
565
|
+
justify-content: space-between;
|
|
566
|
+
border-bottom: 1px solid rgb(232, 232, 232);
|
|
567
|
+
}
|
|
578
568
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
569
|
+
.facet-group-content {
|
|
570
|
+
transition: max-height 0.2s ease-in-out;
|
|
571
|
+
}
|
|
582
572
|
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
573
|
+
.facet-group.mobile .facet-group-content {
|
|
574
|
+
max-height: 0;
|
|
575
|
+
overflow: hidden;
|
|
576
|
+
}
|
|
587
577
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
578
|
+
.facet-group.mobile .facet-group-content.open {
|
|
579
|
+
max-height: 2000px;
|
|
580
|
+
}
|
|
591
581
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
582
|
+
h1 {
|
|
583
|
+
font-size: 1.4rem;
|
|
584
|
+
font-weight: 200
|
|
585
|
+
padding-bottom: 3px;
|
|
586
|
+
margin: 0;
|
|
587
|
+
}
|
|
598
588
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
589
|
+
.more-link {
|
|
590
|
+
font-size: 1.2rem;
|
|
591
|
+
text-decoration: none;
|
|
592
|
+
padding: 0;
|
|
593
|
+
background: inherit;
|
|
594
|
+
border: 0;
|
|
595
|
+
color: var(--ia-theme-link-color, #4b64ff);
|
|
596
|
+
cursor: pointer;
|
|
597
|
+
}
|
|
608
598
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
];
|
|
599
|
+
.sorting-icon {
|
|
600
|
+
height: 15px;
|
|
601
|
+
cursor: pointer;
|
|
602
|
+
}
|
|
603
|
+
`;
|
|
615
604
|
}
|
|
616
605
|
}
|