@internetarchive/collection-browser 2.18.2 → 2.18.3-alpha-webdev7768.0

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.
Files changed (48) hide show
  1. package/.editorconfig +29 -29
  2. package/.github/workflows/ci.yml +27 -27
  3. package/.github/workflows/gh-pages-main.yml +39 -39
  4. package/.github/workflows/npm-publish.yml +39 -39
  5. package/.github/workflows/pr-preview.yml +38 -38
  6. package/.husky/pre-commit +4 -4
  7. package/.prettierignore +1 -1
  8. package/LICENSE +661 -661
  9. package/README.md +83 -83
  10. package/dist/src/collection-browser.js +682 -682
  11. package/dist/src/collection-browser.js.map +1 -1
  12. package/dist/src/collection-facets.js +291 -274
  13. package/dist/src/collection-facets.js.map +1 -1
  14. package/dist/src/expanded-date-picker.d.ts +6 -4
  15. package/dist/src/expanded-date-picker.js +64 -55
  16. package/dist/src/expanded-date-picker.js.map +1 -1
  17. package/dist/src/models.js.map +1 -1
  18. package/dist/src/sort-filter-bar/sort-filter-bar.js +382 -382
  19. package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
  20. package/dist/src/tiles/grid/item-tile.js +139 -139
  21. package/dist/src/tiles/grid/item-tile.js.map +1 -1
  22. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +118 -118
  23. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
  24. package/dist/src/tiles/list/tile-list.js +289 -289
  25. package/dist/src/tiles/list/tile-list.js.map +1 -1
  26. package/dist/src/tiles/tile-dispatcher.js +200 -200
  27. package/dist/src/tiles/tile-dispatcher.js.map +1 -1
  28. package/dist/test/sort-filter-bar/sort-filter-bar.test.js +37 -37
  29. package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +1 -1
  30. package/eslint.config.mjs +53 -53
  31. package/index.html +24 -24
  32. package/local.archive.org.cert +86 -86
  33. package/local.archive.org.key +27 -27
  34. package/package.json +117 -117
  35. package/renovate.json +6 -6
  36. package/src/collection-browser.ts +2712 -2712
  37. package/src/collection-facets.ts +990 -966
  38. package/src/expanded-date-picker.ts +191 -175
  39. package/src/models.ts +822 -822
  40. package/src/sort-filter-bar/sort-filter-bar.ts +1189 -1189
  41. package/src/tiles/grid/item-tile.ts +339 -339
  42. package/src/tiles/grid/styles/tile-grid-shared-styles.ts +129 -129
  43. package/src/tiles/list/tile-list.ts +688 -688
  44. package/src/tiles/tile-dispatcher.ts +486 -486
  45. package/test/sort-filter-bar/sort-filter-bar.test.ts +692 -692
  46. package/tsconfig.json +20 -20
  47. package/web-dev-server.config.mjs +30 -30
  48. package/web-test-runner.config.mjs +41 -41
@@ -1,129 +1,129 @@
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: 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
- display: -webkit-box;
77
- margin: 0px;
78
- line-height: 15px;
79
- font-size: 14px;
80
- font-weight: 500;
81
- padding-bottom: 1px;
82
- }
83
-
84
- span {
85
- display: -webkit-box;
86
- font-size: 1.4rem;
87
- line-height: 15px;
88
- overflow: hidden;
89
- word-wrap: break-word;
90
- -webkit-line-clamp: 1;
91
- -webkit-box-orient: vertical;
92
- padding-bottom: 1px;
93
- }
94
-
95
- .container:hover > .tile-details > .item-info > #title > .truncated {
96
- text-decoration: underline;
97
- }
98
-
99
- /** this is a workaround for Safari 15 where the hover effects are not working */
100
- #title:hover > .truncated {
101
- text-decoration: underline;
102
- }
103
-
104
- .info-button {
105
- position: absolute;
106
- right: 10px;
107
- top: 10px;
108
- margin: 0;
109
- padding: 0;
110
- border: none;
111
- border-radius: 50%;
112
- display: flex;
113
- justify-content: center;
114
- align-items: center;
115
- background: rgba(220, 220, 220, 0.5);
116
- color: white;
117
- font-size: 2rem;
118
- font-weight: bold;
119
- line-height: 1;
120
- text-shadow: black 1px 1px 3px;
121
- overflow: visible;
122
- aspect-ratio: 1 / 1;
123
- z-index: 1;
124
- }
125
-
126
- .hidden {
127
- display: none;
128
- }
129
- `;
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
+ display: -webkit-box;
77
+ margin: 0px;
78
+ line-height: 15px;
79
+ font-size: 14px;
80
+ font-weight: 500;
81
+ padding-bottom: 1px;
82
+ }
83
+
84
+ span {
85
+ display: -webkit-box;
86
+ font-size: 1.4rem;
87
+ line-height: 15px;
88
+ overflow: hidden;
89
+ word-wrap: break-word;
90
+ -webkit-line-clamp: 1;
91
+ -webkit-box-orient: vertical;
92
+ padding-bottom: 1px;
93
+ }
94
+
95
+ .container:hover > .tile-details > .item-info > #title > .truncated {
96
+ text-decoration: underline;
97
+ }
98
+
99
+ /** this is a workaround for Safari 15 where the hover effects are not working */
100
+ #title:hover > .truncated {
101
+ text-decoration: underline;
102
+ }
103
+
104
+ .info-button {
105
+ position: absolute;
106
+ right: 10px;
107
+ top: 10px;
108
+ margin: 0;
109
+ padding: 0;
110
+ border: none;
111
+ border-radius: 50%;
112
+ display: flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ background: rgba(220, 220, 220, 0.5);
116
+ color: white;
117
+ font-size: 2rem;
118
+ font-weight: bold;
119
+ line-height: 1;
120
+ text-shadow: black 1px 1px 3px;
121
+ overflow: visible;
122
+ aspect-ratio: 1 / 1;
123
+ z-index: 1;
124
+ }
125
+
126
+ .hidden {
127
+ display: none;
128
+ }
129
+ `;