@internetarchive/collection-browser 3.1.1-alpha-webdev6778.7 → 3.1.1-alpha-webdev6778.9
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/app-root.js +606 -606
- package/dist/src/app-root.js.map +1 -1
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facet-row.js +140 -140
- package/dist/src/collection-facets/facet-row.js.map +1 -1
- package/dist/src/collection-facets/models.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/smart-facet-bar.js +75 -75
- package/dist/src/collection-facets/smart-facets/smart-facet-bar.js.map +1 -1
- package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js +54 -54
- package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source-interface.js.map +1 -1
- package/dist/src/data-source/collection-browser-data-source.js +1 -3
- package/dist/src/data-source/collection-browser-data-source.js.map +1 -1
- package/dist/src/data-source/models.js.map +1 -1
- package/dist/src/expanded-date-picker.js +52 -52
- package/dist/src/expanded-date-picker.js.map +1 -1
- package/dist/src/manage/manage-bar.js +77 -77
- package/dist/src/manage/manage-bar.js.map +1 -1
- package/dist/src/models.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js +376 -376
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/base-tile-component.js.map +1 -1
- package/dist/src/tiles/grid/account-tile.js +36 -36
- package/dist/src/tiles/grid/account-tile.js.map +1 -1
- package/dist/src/tiles/grid/search-tile.js +42 -42
- package/dist/src/tiles/grid/search-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +119 -119
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact.js +97 -97
- package/dist/src/tiles/list/tile-list-compact.js.map +1 -1
- package/dist/src/utils/analytics-events.js.map +1 -1
- package/dist/src/utils/format-date.js.map +1 -1
- package/dist/test/collection-browser.test.js +187 -187
- package/dist/test/collection-browser.test.js.map +1 -1
- package/dist/test/collection-facets/facet-row.test.js +23 -23
- package/dist/test/collection-facets/facet-row.test.js.map +1 -1
- package/dist/test/collection-facets.test.js +20 -20
- package/dist/test/collection-facets.test.js.map +1 -1
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js +37 -37
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +1 -1
- package/dist/test/tiles/grid/item-tile.test.js +64 -64
- package/dist/test/tiles/grid/item-tile.test.js.map +1 -1
- package/dist/test/tiles/list/tile-list-compact.test.js +57 -57
- package/dist/test/tiles/list/tile-list-compact.test.js.map +1 -1
- package/dist/test/utils/format-date.test.js.map +1 -1
- package/package.json +2 -2
- package/src/app-root.ts +1140 -1140
- package/src/collection-browser.ts +1 -1
- package/src/collection-facets/facet-row.ts +296 -296
- package/src/collection-facets/models.ts +10 -10
- package/src/collection-facets/smart-facets/smart-facet-bar.ts +437 -437
- package/src/collection-facets/smart-facets/smart-facet-dropdown.ts +185 -185
- package/src/data-source/collection-browser-data-source-interface.ts +333 -333
- package/src/data-source/collection-browser-data-source.ts +2 -4
- package/src/data-source/models.ts +43 -43
- package/src/expanded-date-picker.ts +191 -191
- package/src/manage/manage-bar.ts +247 -247
- package/src/models.ts +870 -870
- package/src/sort-filter-bar/sort-filter-bar.ts +1283 -1283
- package/src/tiles/base-tile-component.ts +53 -53
- package/src/tiles/grid/account-tile.ts +112 -112
- package/src/tiles/grid/search-tile.ts +90 -90
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +130 -130
- package/src/tiles/list/tile-list-compact.ts +236 -236
- package/src/utils/analytics-events.ts +29 -29
- package/src/utils/format-date.ts +42 -42
- package/test/collection-browser.test.ts +2359 -2359
- package/test/collection-facets/facet-row.test.ts +375 -375
- package/test/collection-facets.test.ts +928 -928
- package/test/sort-filter-bar/sort-filter-bar.test.ts +885 -885
- package/test/tiles/grid/item-tile.test.ts +464 -464
- package/test/tiles/list/tile-list-compact.test.ts +228 -228
- package/test/utils/format-date.test.ts +39 -39
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import { srOnlyStyle } from '../../../styles/sr-only';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Base tile styles
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const tileBackgroundColor = css`var(--tileBackgroundColor, #ffffff)`;
|
|
9
|
-
const tileCornerRadius = css`var(--tileCornerRadius, 4px)`;
|
|
10
|
-
|
|
11
|
-
export const baseTileStyles = css`
|
|
12
|
-
/* Include .sr-only styles for all tiles */
|
|
13
|
-
${srOnlyStyle}
|
|
14
|
-
|
|
15
|
-
.container {
|
|
16
|
-
background-color: ${tileBackgroundColor};
|
|
17
|
-
border: 1px #2c2c2c;
|
|
18
|
-
border-radius: ${tileCornerRadius};
|
|
19
|
-
box-shadow: var(--tileBoxShadow, 1px 1px 2px 0);
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
height: 100%;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
image-block {
|
|
28
|
-
display: block;
|
|
29
|
-
position: relative;
|
|
30
|
-
text-align: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.tile-details {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
height: 100%;
|
|
37
|
-
row-gap: 10px;
|
|
38
|
-
font-family: 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.item-info {
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
row-gap: 5px;
|
|
45
|
-
flex-grow: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#title {
|
|
49
|
-
padding: 0 5px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.created-by,
|
|
53
|
-
.date-sorted-by,
|
|
54
|
-
.volume-issue,
|
|
55
|
-
.archivist-since {
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: left;
|
|
58
|
-
align-items: flex-start;
|
|
59
|
-
padding: 0 5px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.truncated {
|
|
63
|
-
flex: 1;
|
|
64
|
-
color: #2c2c2c;
|
|
65
|
-
min-width: 0; /* Important for long words! */
|
|
66
|
-
text-align: left;
|
|
67
|
-
line-height: 15px;
|
|
68
|
-
text-overflow: ellipsis;
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
word-wrap: break-word;
|
|
71
|
-
-webkit-line-clamp: 3;
|
|
72
|
-
-webkit-box-orient: vertical;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
h4.truncated,
|
|
76
|
-
h3.truncated {
|
|
77
|
-
display: -webkit-box;
|
|
78
|
-
margin: 0px;
|
|
79
|
-
line-height: 15px;
|
|
80
|
-
font-size: 14px;
|
|
81
|
-
font-weight: 500;
|
|
82
|
-
padding-bottom: 1px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
span {
|
|
86
|
-
display: -webkit-box;
|
|
87
|
-
font-size: 1.4rem;
|
|
88
|
-
line-height: 15px;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
word-wrap: break-word;
|
|
91
|
-
-webkit-line-clamp: 1;
|
|
92
|
-
-webkit-box-orient: vertical;
|
|
93
|
-
padding-bottom: 1px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.container:hover > .tile-details > .item-info > #title > .truncated {
|
|
97
|
-
text-decoration: underline;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** this is a workaround for Safari 15 where the hover effects are not working */
|
|
101
|
-
#title:hover > .truncated {
|
|
102
|
-
text-decoration: underline;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.info-button {
|
|
106
|
-
position: absolute;
|
|
107
|
-
right: 10px;
|
|
108
|
-
top: 10px;
|
|
109
|
-
margin: 0;
|
|
110
|
-
padding: 0;
|
|
111
|
-
border: none;
|
|
112
|
-
border-radius: 50%;
|
|
113
|
-
display: flex;
|
|
114
|
-
justify-content: center;
|
|
115
|
-
align-items: center;
|
|
116
|
-
background: rgba(220, 220, 220, 0.5);
|
|
117
|
-
color: white;
|
|
118
|
-
font-size: 2.4rem;
|
|
119
|
-
font-weight: bold;
|
|
120
|
-
line-height: 1;
|
|
121
|
-
text-shadow: black 1px 1px 3px;
|
|
122
|
-
overflow: visible;
|
|
123
|
-
aspect-ratio: 1 / 1;
|
|
124
|
-
z-index: 1;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.hidden {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
130
|
-
`;
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { srOnlyStyle } from '../../../styles/sr-only';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Base tile styles
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const tileBackgroundColor = css`var(--tileBackgroundColor, #ffffff)`;
|
|
9
|
+
const tileCornerRadius = css`var(--tileCornerRadius, 4px)`;
|
|
10
|
+
|
|
11
|
+
export const baseTileStyles = css`
|
|
12
|
+
/* Include .sr-only styles for all tiles */
|
|
13
|
+
${srOnlyStyle}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
background-color: ${tileBackgroundColor};
|
|
17
|
+
border: 1px #2c2c2c;
|
|
18
|
+
border-radius: ${tileCornerRadius};
|
|
19
|
+
box-shadow: var(--tileBoxShadow, 1px 1px 2px 0);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
height: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
image-block {
|
|
28
|
+
display: block;
|
|
29
|
+
position: relative;
|
|
30
|
+
text-align: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tile-details {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
height: 100%;
|
|
37
|
+
row-gap: 10px;
|
|
38
|
+
font-family: 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.item-info {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
row-gap: 5px;
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#title {
|
|
49
|
+
padding: 0 5px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.created-by,
|
|
53
|
+
.date-sorted-by,
|
|
54
|
+
.volume-issue,
|
|
55
|
+
.archivist-since {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: left;
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
padding: 0 5px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.truncated {
|
|
63
|
+
flex: 1;
|
|
64
|
+
color: #2c2c2c;
|
|
65
|
+
min-width: 0; /* Important for long words! */
|
|
66
|
+
text-align: left;
|
|
67
|
+
line-height: 15px;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
word-wrap: break-word;
|
|
71
|
+
-webkit-line-clamp: 3;
|
|
72
|
+
-webkit-box-orient: vertical;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h4.truncated,
|
|
76
|
+
h3.truncated {
|
|
77
|
+
display: -webkit-box;
|
|
78
|
+
margin: 0px;
|
|
79
|
+
line-height: 15px;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
font-weight: 500;
|
|
82
|
+
padding-bottom: 1px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
span {
|
|
86
|
+
display: -webkit-box;
|
|
87
|
+
font-size: 1.4rem;
|
|
88
|
+
line-height: 15px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
word-wrap: break-word;
|
|
91
|
+
-webkit-line-clamp: 1;
|
|
92
|
+
-webkit-box-orient: vertical;
|
|
93
|
+
padding-bottom: 1px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.container:hover > .tile-details > .item-info > #title > .truncated {
|
|
97
|
+
text-decoration: underline;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** this is a workaround for Safari 15 where the hover effects are not working */
|
|
101
|
+
#title:hover > .truncated {
|
|
102
|
+
text-decoration: underline;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.info-button {
|
|
106
|
+
position: absolute;
|
|
107
|
+
right: 10px;
|
|
108
|
+
top: 10px;
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding: 0;
|
|
111
|
+
border: none;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
align-items: center;
|
|
116
|
+
background: rgba(220, 220, 220, 0.5);
|
|
117
|
+
color: white;
|
|
118
|
+
font-size: 2.4rem;
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
line-height: 1;
|
|
121
|
+
text-shadow: black 1px 1px 3px;
|
|
122
|
+
overflow: visible;
|
|
123
|
+
aspect-ratio: 1 / 1;
|
|
124
|
+
z-index: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hidden {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
`;
|