@internetarchive/collection-browser 3.3.2 → 3.3.4-alpha-webdev7761.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 (543) 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/index.d.ts +16 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/src/app-root.d.ts +105 -0
  13. package/dist/src/app-root.js +1076 -0
  14. package/dist/src/app-root.js.map +1 -0
  15. package/dist/src/assets/img/icons/arrow-left.d.ts +2 -0
  16. package/dist/src/assets/img/icons/arrow-left.js +10 -0
  17. package/dist/src/assets/img/icons/arrow-left.js.map +1 -0
  18. package/dist/src/assets/img/icons/arrow-right.d.ts +2 -0
  19. package/dist/src/assets/img/icons/arrow-right.js +10 -0
  20. package/dist/src/assets/img/icons/arrow-right.js.map +1 -0
  21. package/dist/src/assets/img/icons/chevron.d.ts +2 -0
  22. package/dist/src/assets/img/icons/chevron.js +4 -0
  23. package/dist/src/assets/img/icons/chevron.js.map +1 -0
  24. package/dist/src/assets/img/icons/close-circle-dark.d.ts +2 -0
  25. package/dist/src/assets/img/icons/close-circle-dark.js +5 -0
  26. package/dist/src/assets/img/icons/close-circle-dark.js.map +1 -0
  27. package/dist/src/assets/img/icons/contract.d.ts +2 -0
  28. package/dist/src/assets/img/icons/contract.js +9 -0
  29. package/dist/src/assets/img/icons/contract.js.map +1 -0
  30. package/dist/src/assets/img/icons/empty-query.d.ts +2 -0
  31. package/dist/src/assets/img/icons/empty-query.js +5 -0
  32. package/dist/src/assets/img/icons/empty-query.js.map +1 -0
  33. package/dist/src/assets/img/icons/expand.d.ts +2 -0
  34. package/dist/src/assets/img/icons/expand.js +9 -0
  35. package/dist/src/assets/img/icons/expand.js.map +1 -0
  36. package/dist/src/assets/img/icons/eye-closed.d.ts +2 -0
  37. package/dist/src/assets/img/icons/eye-closed.js +5 -0
  38. package/dist/src/assets/img/icons/eye-closed.js.map +1 -0
  39. package/dist/src/assets/img/icons/eye.d.ts +2 -0
  40. package/dist/src/assets/img/icons/eye.js +5 -0
  41. package/dist/src/assets/img/icons/eye.js.map +1 -0
  42. package/dist/src/assets/img/icons/favorite-filled.d.ts +1 -0
  43. package/dist/src/assets/img/icons/favorite-filled.js +10 -0
  44. package/dist/src/assets/img/icons/favorite-filled.js.map +1 -0
  45. package/dist/src/assets/img/icons/favorite-unfilled.d.ts +1 -0
  46. package/dist/src/assets/img/icons/favorite-unfilled.js +9 -0
  47. package/dist/src/assets/img/icons/favorite-unfilled.js.map +1 -0
  48. package/dist/src/assets/img/icons/filter.d.ts +2 -0
  49. package/dist/src/assets/img/icons/filter.js +10 -0
  50. package/dist/src/assets/img/icons/filter.js.map +1 -0
  51. package/dist/src/assets/img/icons/login-required.d.ts +1 -0
  52. package/dist/src/assets/img/icons/login-required.js +18 -0
  53. package/dist/src/assets/img/icons/login-required.js.map +1 -0
  54. package/dist/src/assets/img/icons/mediatype/account.d.ts +1 -0
  55. package/dist/src/assets/img/icons/mediatype/account.js +14 -0
  56. package/dist/src/assets/img/icons/mediatype/account.js.map +1 -0
  57. package/dist/src/assets/img/icons/mediatype/audio.d.ts +1 -0
  58. package/dist/src/assets/img/icons/mediatype/audio.js +14 -0
  59. package/dist/src/assets/img/icons/mediatype/audio.js.map +1 -0
  60. package/dist/src/assets/img/icons/mediatype/collection.d.ts +1 -0
  61. package/dist/src/assets/img/icons/mediatype/collection.js +12 -0
  62. package/dist/src/assets/img/icons/mediatype/collection.js.map +1 -0
  63. package/dist/src/assets/img/icons/mediatype/data.d.ts +1 -0
  64. package/dist/src/assets/img/icons/mediatype/data.js +15 -0
  65. package/dist/src/assets/img/icons/mediatype/data.js.map +1 -0
  66. package/dist/src/assets/img/icons/mediatype/etree.d.ts +1 -0
  67. package/dist/src/assets/img/icons/mediatype/etree.js +14 -0
  68. package/dist/src/assets/img/icons/mediatype/etree.js.map +1 -0
  69. package/dist/src/assets/img/icons/mediatype/film.d.ts +1 -0
  70. package/dist/src/assets/img/icons/mediatype/film.js +14 -0
  71. package/dist/src/assets/img/icons/mediatype/film.js.map +1 -0
  72. package/dist/src/assets/img/icons/mediatype/images.d.ts +1 -0
  73. package/dist/src/assets/img/icons/mediatype/images.js +13 -0
  74. package/dist/src/assets/img/icons/mediatype/images.js.map +1 -0
  75. package/dist/src/assets/img/icons/mediatype/radio.d.ts +1 -0
  76. package/dist/src/assets/img/icons/mediatype/radio.js +15 -0
  77. package/dist/src/assets/img/icons/mediatype/radio.js.map +1 -0
  78. package/dist/src/assets/img/icons/mediatype/search.d.ts +1 -0
  79. package/dist/src/assets/img/icons/mediatype/search.js +14 -0
  80. package/dist/src/assets/img/icons/mediatype/search.js.map +1 -0
  81. package/dist/src/assets/img/icons/mediatype/software.d.ts +1 -0
  82. package/dist/src/assets/img/icons/mediatype/software.js +13 -0
  83. package/dist/src/assets/img/icons/mediatype/software.js.map +1 -0
  84. package/dist/src/assets/img/icons/mediatype/texts.d.ts +1 -0
  85. package/dist/src/assets/img/icons/mediatype/texts.js +13 -0
  86. package/dist/src/assets/img/icons/mediatype/texts.js.map +1 -0
  87. package/dist/src/assets/img/icons/mediatype/tv-commercial.d.ts +1 -0
  88. package/dist/src/assets/img/icons/mediatype/tv-commercial.js +12 -0
  89. package/dist/src/assets/img/icons/mediatype/tv-commercial.js.map +1 -0
  90. package/dist/src/assets/img/icons/mediatype/tv-fact-check.d.ts +1 -0
  91. package/dist/src/assets/img/icons/mediatype/tv-fact-check.js +12 -0
  92. package/dist/src/assets/img/icons/mediatype/tv-fact-check.js.map +1 -0
  93. package/dist/src/assets/img/icons/mediatype/tv-quote.d.ts +1 -0
  94. package/dist/src/assets/img/icons/mediatype/tv-quote.js +12 -0
  95. package/dist/src/assets/img/icons/mediatype/tv-quote.js.map +1 -0
  96. package/dist/src/assets/img/icons/mediatype/tv.d.ts +1 -0
  97. package/dist/src/assets/img/icons/mediatype/tv.js +14 -0
  98. package/dist/src/assets/img/icons/mediatype/tv.js.map +1 -0
  99. package/dist/src/assets/img/icons/mediatype/video.d.ts +1 -0
  100. package/dist/src/assets/img/icons/mediatype/video.js +14 -0
  101. package/dist/src/assets/img/icons/mediatype/video.js.map +1 -0
  102. package/dist/src/assets/img/icons/mediatype/web.d.ts +1 -0
  103. package/dist/src/assets/img/icons/mediatype/web.js +13 -0
  104. package/dist/src/assets/img/icons/mediatype/web.js.map +1 -0
  105. package/dist/src/assets/img/icons/null-result.d.ts +2 -0
  106. package/dist/src/assets/img/icons/null-result.js +5 -0
  107. package/dist/src/assets/img/icons/null-result.js.map +1 -0
  108. package/dist/src/assets/img/icons/quote.d.ts +1 -0
  109. package/dist/src/assets/img/icons/quote.js +7 -0
  110. package/dist/src/assets/img/icons/quote.js.map +1 -0
  111. package/dist/src/assets/img/icons/restricted.d.ts +1 -0
  112. package/dist/src/assets/img/icons/restricted.js +13 -0
  113. package/dist/src/assets/img/icons/restricted.js.map +1 -0
  114. package/dist/src/assets/img/icons/reviews.d.ts +1 -0
  115. package/dist/src/assets/img/icons/reviews.js +11 -0
  116. package/dist/src/assets/img/icons/reviews.js.map +1 -0
  117. package/dist/src/assets/img/icons/upload.d.ts +1 -0
  118. package/dist/src/assets/img/icons/upload.js +12 -0
  119. package/dist/src/assets/img/icons/upload.js.map +1 -0
  120. package/dist/src/assets/img/icons/views.d.ts +1 -0
  121. package/dist/src/assets/img/icons/views.js +11 -0
  122. package/dist/src/assets/img/icons/views.js.map +1 -0
  123. package/dist/src/circular-activity-indicator.d.ts +5 -0
  124. package/dist/src/circular-activity-indicator.js +66 -0
  125. package/dist/src/circular-activity-indicator.js.map +1 -0
  126. package/dist/src/collection-browser.d.ts +692 -0
  127. package/dist/src/collection-browser.js +2669 -0
  128. package/dist/src/collection-browser.js.map +1 -0
  129. package/dist/src/collection-facets/facet-row.d.ts +30 -0
  130. package/dist/src/collection-facets/facet-row.js +266 -0
  131. package/dist/src/collection-facets/facet-row.js.map +1 -0
  132. package/dist/src/collection-facets/facet-tombstone-row.d.ts +5 -0
  133. package/dist/src/collection-facets/facet-tombstone-row.js +43 -0
  134. package/dist/src/collection-facets/facet-tombstone-row.js.map +1 -0
  135. package/dist/src/collection-facets/facets-template.d.ts +13 -0
  136. package/dist/src/collection-facets/facets-template.js +68 -0
  137. package/dist/src/collection-facets/facets-template.js.map +1 -0
  138. package/dist/src/collection-facets/models.d.ts +9 -0
  139. package/dist/src/collection-facets/models.js +10 -0
  140. package/dist/src/collection-facets/models.js.map +1 -0
  141. package/dist/src/collection-facets/more-facets-content.d.ts +109 -0
  142. package/dist/src/collection-facets/more-facets-content.js +547 -0
  143. package/dist/src/collection-facets/more-facets-content.js.map +1 -0
  144. package/dist/src/collection-facets/more-facets-pagination.d.ts +36 -0
  145. package/dist/src/collection-facets/more-facets-pagination.js +264 -0
  146. package/dist/src/collection-facets/more-facets-pagination.js.map +1 -0
  147. package/dist/src/collection-facets/smart-facets/dedupe.d.ts +10 -0
  148. package/dist/src/collection-facets/smart-facets/dedupe.js +35 -0
  149. package/dist/src/collection-facets/smart-facets/dedupe.js.map +1 -0
  150. package/dist/src/collection-facets/smart-facets/heuristics/browser-language/browser-language-heuristic.d.ts +5 -0
  151. package/dist/src/collection-facets/smart-facets/heuristics/browser-language/browser-language-heuristic.js +24 -0
  152. package/dist/src/collection-facets/smart-facets/heuristics/browser-language/browser-language-heuristic.js.map +1 -0
  153. package/dist/src/collection-facets/smart-facets/heuristics/index.d.ts +3 -0
  154. package/dist/src/collection-facets/smart-facets/heuristics/index.js +4 -0
  155. package/dist/src/collection-facets/smart-facets/heuristics/index.js.map +1 -0
  156. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-heuristic.d.ts +4 -0
  157. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-heuristic.js +14 -0
  158. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-heuristic.js.map +1 -0
  159. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-map.d.ts +6 -0
  160. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-map.js +68 -0
  161. package/dist/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-map.js.map +1 -0
  162. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.d.ts +9 -0
  163. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.js +69 -0
  164. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.js.map +1 -0
  165. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.d.ts +21 -0
  166. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.js +76 -0
  167. package/dist/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.js.map +1 -0
  168. package/dist/src/collection-facets/smart-facets/models.d.ts +30 -0
  169. package/dist/src/collection-facets/smart-facets/models.js +2 -0
  170. package/dist/src/collection-facets/smart-facets/models.js.map +1 -0
  171. package/dist/src/collection-facets/smart-facets/smart-facet-bar.d.ts +54 -0
  172. package/dist/src/collection-facets/smart-facets/smart-facet-bar.js +383 -0
  173. package/dist/src/collection-facets/smart-facets/smart-facet-bar.js.map +1 -0
  174. package/dist/src/collection-facets/smart-facets/smart-facet-button.d.ts +11 -0
  175. package/dist/src/collection-facets/smart-facets/smart-facet-button.js +133 -0
  176. package/dist/src/collection-facets/smart-facets/smart-facet-button.js.map +1 -0
  177. package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.d.ts +28 -0
  178. package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js +172 -0
  179. package/dist/src/collection-facets/smart-facets/smart-facet-dropdown.js.map +1 -0
  180. package/dist/src/collection-facets/smart-facets/smart-facet-equals.d.ts +2 -0
  181. package/dist/src/collection-facets/smart-facets/smart-facet-equals.js +13 -0
  182. package/dist/src/collection-facets/smart-facets/smart-facet-equals.js.map +1 -0
  183. package/dist/src/collection-facets/smart-facets/smart-facet-heuristics.d.ts +5 -0
  184. package/dist/src/collection-facets/smart-facets/smart-facet-heuristics.js +18 -0
  185. package/dist/src/collection-facets/smart-facets/smart-facet-heuristics.js.map +1 -0
  186. package/dist/src/collection-facets/toggle-switch.d.ts +41 -0
  187. package/dist/src/collection-facets/toggle-switch.js +174 -0
  188. package/dist/src/collection-facets/toggle-switch.js.map +1 -0
  189. package/dist/src/collection-facets.d.ts +113 -0
  190. package/dist/src/collection-facets.js +884 -0
  191. package/dist/src/collection-facets.js.map +1 -0
  192. package/dist/src/data-source/collection-browser-data-source-interface.d.ts +270 -0
  193. package/dist/src/data-source/collection-browser-data-source-interface.js +2 -0
  194. package/dist/src/data-source/collection-browser-data-source-interface.js.map +1 -0
  195. package/dist/src/data-source/collection-browser-data-source.d.ts +418 -0
  196. package/dist/src/data-source/collection-browser-data-source.js +1121 -0
  197. package/dist/src/data-source/collection-browser-data-source.js.map +1 -0
  198. package/dist/src/data-source/collection-browser-query-state.d.ts +48 -0
  199. package/dist/src/data-source/collection-browser-query-state.js +2 -0
  200. package/dist/src/data-source/collection-browser-query-state.js.map +1 -0
  201. package/dist/src/data-source/models.d.ts +43 -0
  202. package/dist/src/data-source/models.js +9 -0
  203. package/dist/src/data-source/models.js.map +1 -0
  204. package/dist/src/empty-placeholder.d.ts +23 -0
  205. package/dist/src/empty-placeholder.js +165 -0
  206. package/dist/src/empty-placeholder.js.map +1 -0
  207. package/dist/src/expanded-date-picker.d.ts +50 -0
  208. package/dist/src/expanded-date-picker.js +182 -0
  209. package/dist/src/expanded-date-picker.js.map +1 -0
  210. package/dist/src/language-code-handler/language-code-handler.d.ts +37 -0
  211. package/dist/src/language-code-handler/language-code-handler.js +27 -0
  212. package/dist/src/language-code-handler/language-code-handler.js.map +1 -0
  213. package/dist/src/language-code-handler/language-code-mapping.d.ts +1 -0
  214. package/dist/src/language-code-handler/language-code-mapping.js +563 -0
  215. package/dist/src/language-code-handler/language-code-mapping.js.map +1 -0
  216. package/dist/src/manage/manage-bar.d.ts +58 -0
  217. package/dist/src/manage/manage-bar.js +237 -0
  218. package/dist/src/manage/manage-bar.js.map +1 -0
  219. package/dist/src/manage/remove-items-modal-content.d.ts +9 -0
  220. package/dist/src/manage/remove-items-modal-content.js +104 -0
  221. package/dist/src/manage/remove-items-modal-content.js.map +1 -0
  222. package/dist/src/mediatype/mediatype-config.d.ts +11 -0
  223. package/dist/src/mediatype/mediatype-config.js +116 -0
  224. package/dist/src/mediatype/mediatype-config.js.map +1 -0
  225. package/dist/src/models.d.ts +298 -0
  226. package/dist/src/models.js +507 -0
  227. package/dist/src/models.js.map +1 -0
  228. package/dist/src/restoration-state-handler.d.ts +74 -0
  229. package/dist/src/restoration-state-handler.js +397 -0
  230. package/dist/src/restoration-state-handler.js.map +1 -0
  231. package/dist/src/sort-filter-bar/alpha-bar-tooltip.d.ts +6 -0
  232. package/dist/src/sort-filter-bar/alpha-bar-tooltip.js +60 -0
  233. package/dist/src/sort-filter-bar/alpha-bar-tooltip.js.map +1 -0
  234. package/dist/src/sort-filter-bar/alpha-bar.d.ts +21 -0
  235. package/dist/src/sort-filter-bar/alpha-bar.js +241 -0
  236. package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -0
  237. package/dist/src/sort-filter-bar/img/compact.d.ts +1 -0
  238. package/dist/src/sort-filter-bar/img/compact.js +5 -0
  239. package/dist/src/sort-filter-bar/img/compact.js.map +1 -0
  240. package/dist/src/sort-filter-bar/img/list.d.ts +1 -0
  241. package/dist/src/sort-filter-bar/img/list.js +5 -0
  242. package/dist/src/sort-filter-bar/img/list.js.map +1 -0
  243. package/dist/src/sort-filter-bar/img/sort-toggle-disabled.d.ts +1 -0
  244. package/dist/src/sort-filter-bar/img/sort-toggle-disabled.js +15 -0
  245. package/dist/src/sort-filter-bar/img/sort-toggle-disabled.js.map +1 -0
  246. package/dist/src/sort-filter-bar/img/sort-toggle-down.d.ts +1 -0
  247. package/dist/src/sort-filter-bar/img/sort-toggle-down.js +17 -0
  248. package/dist/src/sort-filter-bar/img/sort-toggle-down.js.map +1 -0
  249. package/dist/src/sort-filter-bar/img/sort-toggle-up.d.ts +1 -0
  250. package/dist/src/sort-filter-bar/img/sort-toggle-up.js +17 -0
  251. package/dist/src/sort-filter-bar/img/sort-toggle-up.js.map +1 -0
  252. package/dist/src/sort-filter-bar/img/sort-triangle.d.ts +1 -0
  253. package/dist/src/sort-filter-bar/img/sort-triangle.js +5 -0
  254. package/dist/src/sort-filter-bar/img/sort-triangle.js.map +1 -0
  255. package/dist/src/sort-filter-bar/img/tile.d.ts +1 -0
  256. package/dist/src/sort-filter-bar/img/tile.js +5 -0
  257. package/dist/src/sort-filter-bar/img/tile.js.map +1 -0
  258. package/dist/src/sort-filter-bar/sort-filter-bar.d.ts +278 -0
  259. package/dist/src/sort-filter-bar/sort-filter-bar.js +1161 -0
  260. package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -0
  261. package/dist/src/styles/ia-button.d.ts +2 -0
  262. package/dist/src/styles/ia-button.js +134 -0
  263. package/dist/src/styles/ia-button.js.map +1 -0
  264. package/dist/src/styles/item-image-styles.d.ts +8 -0
  265. package/dist/src/styles/item-image-styles.js +123 -0
  266. package/dist/src/styles/item-image-styles.js.map +1 -0
  267. package/dist/src/styles/sr-only.d.ts +1 -0
  268. package/dist/src/styles/sr-only.js +18 -0
  269. package/dist/src/styles/sr-only.js.map +1 -0
  270. package/dist/src/tiles/base-tile-component.d.ts +27 -0
  271. package/dist/src/tiles/base-tile-component.js +82 -0
  272. package/dist/src/tiles/base-tile-component.js.map +1 -0
  273. package/dist/src/tiles/collection-browser-loading-tile.d.ts +5 -0
  274. package/dist/src/tiles/collection-browser-loading-tile.js +29 -0
  275. package/dist/src/tiles/collection-browser-loading-tile.js.map +1 -0
  276. package/dist/src/tiles/grid/account-tile.d.ts +18 -0
  277. package/dist/src/tiles/grid/account-tile.js +111 -0
  278. package/dist/src/tiles/grid/account-tile.js.map +1 -0
  279. package/dist/src/tiles/grid/collection-tile.d.ts +15 -0
  280. package/dist/src/tiles/grid/collection-tile.js +160 -0
  281. package/dist/src/tiles/grid/collection-tile.js.map +1 -0
  282. package/dist/src/tiles/grid/item-tile.d.ts +41 -0
  283. package/dist/src/tiles/grid/item-tile.js +321 -0
  284. package/dist/src/tiles/grid/item-tile.js.map +1 -0
  285. package/dist/src/tiles/grid/search-tile.d.ts +10 -0
  286. package/dist/src/tiles/grid/search-tile.js +95 -0
  287. package/dist/src/tiles/grid/search-tile.js.map +1 -0
  288. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.d.ts +1 -0
  289. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +128 -0
  290. package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -0
  291. package/dist/src/tiles/grid/tile-stats.d.ts +58 -0
  292. package/dist/src/tiles/grid/tile-stats.js +204 -0
  293. package/dist/src/tiles/grid/tile-stats.js.map +1 -0
  294. package/dist/src/tiles/hover/hover-pane-controller.d.ts +228 -0
  295. package/dist/src/tiles/hover/hover-pane-controller.js +446 -0
  296. package/dist/src/tiles/hover/hover-pane-controller.js.map +1 -0
  297. package/dist/src/tiles/hover/tile-hover-pane.d.ts +20 -0
  298. package/dist/src/tiles/hover/tile-hover-pane.js +185 -0
  299. package/dist/src/tiles/hover/tile-hover-pane.js.map +1 -0
  300. package/dist/src/tiles/image-block.d.ts +19 -0
  301. package/dist/src/tiles/image-block.js +175 -0
  302. package/dist/src/tiles/image-block.js.map +1 -0
  303. package/dist/src/tiles/item-image.d.ts +40 -0
  304. package/dist/src/tiles/item-image.js +191 -0
  305. package/dist/src/tiles/item-image.js.map +1 -0
  306. package/dist/src/tiles/list/tile-list-compact-header.d.ts +6 -0
  307. package/dist/src/tiles/list/tile-list-compact-header.js +85 -0
  308. package/dist/src/tiles/list/tile-list-compact-header.js.map +1 -0
  309. package/dist/src/tiles/list/tile-list-compact.d.ts +19 -0
  310. package/dist/src/tiles/list/tile-list-compact.js +223 -0
  311. package/dist/src/tiles/list/tile-list-compact.js.map +1 -0
  312. package/dist/src/tiles/list/tile-list.d.ts +54 -0
  313. package/dist/src/tiles/list/tile-list.js +621 -0
  314. package/dist/src/tiles/list/tile-list.js.map +1 -0
  315. package/dist/src/tiles/models.d.ts +1 -0
  316. package/dist/src/tiles/models.js +2 -0
  317. package/dist/src/tiles/models.js.map +1 -0
  318. package/dist/src/tiles/overlay/icon-overlay.d.ts +8 -0
  319. package/dist/src/tiles/overlay/icon-overlay.js +55 -0
  320. package/dist/src/tiles/overlay/icon-overlay.js.map +1 -0
  321. package/dist/src/tiles/overlay/text-overlay.d.ts +9 -0
  322. package/dist/src/tiles/overlay/text-overlay.js +74 -0
  323. package/dist/src/tiles/overlay/text-overlay.js.map +1 -0
  324. package/dist/src/tiles/review-block.d.ts +12 -0
  325. package/dist/src/tiles/review-block.js +134 -0
  326. package/dist/src/tiles/review-block.js.map +1 -0
  327. package/dist/src/tiles/text-snippet-block.d.ts +27 -0
  328. package/dist/src/tiles/text-snippet-block.js +132 -0
  329. package/dist/src/tiles/text-snippet-block.js.map +1 -0
  330. package/dist/src/tiles/tile-dispatcher.d.ts +71 -0
  331. package/dist/src/tiles/tile-dispatcher.js +472 -0
  332. package/dist/src/tiles/tile-dispatcher.js.map +1 -0
  333. package/dist/src/tiles/tile-display-value-provider.d.ts +47 -0
  334. package/dist/src/tiles/tile-display-value-provider.js +95 -0
  335. package/dist/src/tiles/tile-display-value-provider.js.map +1 -0
  336. package/dist/src/tiles/tile-mediatype-icon.d.ts +27 -0
  337. package/dist/src/tiles/tile-mediatype-icon.js +130 -0
  338. package/dist/src/tiles/tile-mediatype-icon.js.map +1 -0
  339. package/dist/src/utils/analytics-events.d.ts +28 -0
  340. package/dist/src/utils/analytics-events.js +31 -0
  341. package/dist/src/utils/analytics-events.js.map +1 -0
  342. package/dist/src/utils/array-equals.d.ts +4 -0
  343. package/dist/src/utils/array-equals.js +11 -0
  344. package/dist/src/utils/array-equals.js.map +1 -0
  345. package/dist/src/utils/collapse-repeated-quotes.d.ts +11 -0
  346. package/dist/src/utils/collapse-repeated-quotes.js +14 -0
  347. package/dist/src/utils/collapse-repeated-quotes.js.map +1 -0
  348. package/dist/src/utils/facet-utils.d.ts +83 -0
  349. package/dist/src/utils/facet-utils.js +152 -0
  350. package/dist/src/utils/facet-utils.js.map +1 -0
  351. package/dist/src/utils/format-count.d.ts +7 -0
  352. package/dist/src/utils/format-count.js +76 -0
  353. package/dist/src/utils/format-count.js.map +1 -0
  354. package/dist/src/utils/format-date.d.ts +16 -0
  355. package/dist/src/utils/format-date.js +33 -0
  356. package/dist/src/utils/format-date.js.map +1 -0
  357. package/dist/src/utils/format-unit-size.d.ts +2 -0
  358. package/dist/src/utils/format-unit-size.js +34 -0
  359. package/dist/src/utils/format-unit-size.js.map +1 -0
  360. package/dist/src/utils/local-date-from-utc.d.ts +9 -0
  361. package/dist/src/utils/local-date-from-utc.js +16 -0
  362. package/dist/src/utils/local-date-from-utc.js.map +1 -0
  363. package/dist/src/utils/log.d.ts +7 -0
  364. package/dist/src/utils/log.js +14 -0
  365. package/dist/src/utils/log.js.map +1 -0
  366. package/dist/src/utils/resolve-mediatype.d.ts +8 -0
  367. package/dist/src/utils/resolve-mediatype.js +24 -0
  368. package/dist/src/utils/resolve-mediatype.js.map +1 -0
  369. package/dist/src/utils/sha1.d.ts +2 -0
  370. package/dist/src/utils/sha1.js +9 -0
  371. package/dist/src/utils/sha1.js.map +1 -0
  372. package/dist/test/collection-browser.test.d.ts +1 -0
  373. package/dist/test/collection-browser.test.js +1721 -0
  374. package/dist/test/collection-browser.test.js.map +1 -0
  375. package/dist/test/collection-facets/facet-row.test.d.ts +1 -0
  376. package/dist/test/collection-facets/facet-row.test.js +274 -0
  377. package/dist/test/collection-facets/facet-row.test.js.map +1 -0
  378. package/dist/test/collection-facets/facets-template.test.d.ts +1 -0
  379. package/dist/test/collection-facets/facets-template.test.js +101 -0
  380. package/dist/test/collection-facets/facets-template.test.js.map +1 -0
  381. package/dist/test/collection-facets/more-facets-content.test.d.ts +1 -0
  382. package/dist/test/collection-facets/more-facets-content.test.js +169 -0
  383. package/dist/test/collection-facets/more-facets-content.test.js.map +1 -0
  384. package/dist/test/collection-facets/more-facets-pagination.test.d.ts +1 -0
  385. package/dist/test/collection-facets/more-facets-pagination.test.js +132 -0
  386. package/dist/test/collection-facets/more-facets-pagination.test.js.map +1 -0
  387. package/dist/test/collection-facets/toggle-switch.test.d.ts +1 -0
  388. package/dist/test/collection-facets/toggle-switch.test.js +96 -0
  389. package/dist/test/collection-facets/toggle-switch.test.js.map +1 -0
  390. package/dist/test/collection-facets.test.d.ts +2 -0
  391. package/dist/test/collection-facets.test.js +745 -0
  392. package/dist/test/collection-facets.test.js.map +1 -0
  393. package/dist/test/data-source/collection-browser-data-source.test.d.ts +1 -0
  394. package/dist/test/data-source/collection-browser-data-source.test.js +102 -0
  395. package/dist/test/data-source/collection-browser-data-source.test.js.map +1 -0
  396. package/dist/test/empty-placeholder.test.d.ts +1 -0
  397. package/dist/test/empty-placeholder.test.js +63 -0
  398. package/dist/test/empty-placeholder.test.js.map +1 -0
  399. package/dist/test/expanded-date-picker.test.d.ts +1 -0
  400. package/dist/test/expanded-date-picker.test.js +130 -0
  401. package/dist/test/expanded-date-picker.test.js.map +1 -0
  402. package/dist/test/icon-overlay.test.d.ts +1 -0
  403. package/dist/test/icon-overlay.test.js +30 -0
  404. package/dist/test/icon-overlay.test.js.map +1 -0
  405. package/dist/test/image-block.test.d.ts +1 -0
  406. package/dist/test/image-block.test.js +218 -0
  407. package/dist/test/image-block.test.js.map +1 -0
  408. package/dist/test/item-image.test.d.ts +1 -0
  409. package/dist/test/item-image.test.js +196 -0
  410. package/dist/test/item-image.test.js.map +1 -0
  411. package/dist/test/manage/manage-bar.test.d.ts +2 -0
  412. package/dist/test/manage/manage-bar.test.js +106 -0
  413. package/dist/test/manage/manage-bar.test.js.map +1 -0
  414. package/dist/test/manage/remove-items-modal-content.test.d.ts +1 -0
  415. package/dist/test/manage/remove-items-modal-content.test.js +65 -0
  416. package/dist/test/manage/remove-items-modal-content.test.js.map +1 -0
  417. package/dist/test/mediatype-config.test.d.ts +1 -0
  418. package/dist/test/mediatype-config.test.js +11 -0
  419. package/dist/test/mediatype-config.test.js.map +1 -0
  420. package/dist/test/mocks/mock-analytics-handler.d.ts +10 -0
  421. package/dist/test/mocks/mock-analytics-handler.js +16 -0
  422. package/dist/test/mocks/mock-analytics-handler.js.map +1 -0
  423. package/dist/test/mocks/mock-search-responses.d.ts +31 -0
  424. package/dist/test/mocks/mock-search-responses.js +1241 -0
  425. package/dist/test/mocks/mock-search-responses.js.map +1 -0
  426. package/dist/test/mocks/mock-search-service.d.ts +16 -0
  427. package/dist/test/mocks/mock-search-service.js +65 -0
  428. package/dist/test/mocks/mock-search-service.js.map +1 -0
  429. package/dist/test/restoration-state-handler.test.d.ts +1 -0
  430. package/dist/test/restoration-state-handler.test.js +343 -0
  431. package/dist/test/restoration-state-handler.test.js.map +1 -0
  432. package/dist/test/review-block.test.d.ts +1 -0
  433. package/dist/test/review-block.test.js +48 -0
  434. package/dist/test/review-block.test.js.map +1 -0
  435. package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.d.ts +1 -0
  436. package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.js +13 -0
  437. package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.js.map +1 -0
  438. package/dist/test/sort-filter-bar/alpha-bar.test.d.ts +1 -0
  439. package/dist/test/sort-filter-bar/alpha-bar.test.js +74 -0
  440. package/dist/test/sort-filter-bar/alpha-bar.test.js.map +1 -0
  441. package/dist/test/sort-filter-bar/sort-filter-bar.test.d.ts +1 -0
  442. package/dist/test/sort-filter-bar/sort-filter-bar.test.js +609 -0
  443. package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +1 -0
  444. package/dist/test/text-overlay.test.d.ts +1 -0
  445. package/dist/test/text-overlay.test.js +42 -0
  446. package/dist/test/text-overlay.test.js.map +1 -0
  447. package/dist/test/text-snippet-block.test.d.ts +1 -0
  448. package/dist/test/text-snippet-block.test.js +63 -0
  449. package/dist/test/text-snippet-block.test.js.map +1 -0
  450. package/dist/test/tile-stats.test.d.ts +1 -0
  451. package/dist/test/tile-stats.test.js +128 -0
  452. package/dist/test/tile-stats.test.js.map +1 -0
  453. package/dist/test/tiles/grid/account-tile.test.d.ts +1 -0
  454. package/dist/test/tiles/grid/account-tile.test.js +96 -0
  455. package/dist/test/tiles/grid/account-tile.test.js.map +1 -0
  456. package/dist/test/tiles/grid/collection-tile.test.d.ts +1 -0
  457. package/dist/test/tiles/grid/collection-tile.test.js +96 -0
  458. package/dist/test/tiles/grid/collection-tile.test.js.map +1 -0
  459. package/dist/test/tiles/grid/item-tile.test.d.ts +1 -0
  460. package/dist/test/tiles/grid/item-tile.test.js +427 -0
  461. package/dist/test/tiles/grid/item-tile.test.js.map +1 -0
  462. package/dist/test/tiles/grid/search-tile.test.d.ts +1 -0
  463. package/dist/test/tiles/grid/search-tile.test.js +66 -0
  464. package/dist/test/tiles/grid/search-tile.test.js.map +1 -0
  465. package/dist/test/tiles/hover/hover-pane-controller.test.d.ts +1 -0
  466. package/dist/test/tiles/hover/hover-pane-controller.test.js +329 -0
  467. package/dist/test/tiles/hover/hover-pane-controller.test.js.map +1 -0
  468. package/dist/test/tiles/hover/tile-hover-pane.test.d.ts +1 -0
  469. package/dist/test/tiles/hover/tile-hover-pane.test.js +57 -0
  470. package/dist/test/tiles/hover/tile-hover-pane.test.js.map +1 -0
  471. package/dist/test/tiles/list/tile-list-compact.test.d.ts +1 -0
  472. package/dist/test/tiles/list/tile-list-compact.test.js +251 -0
  473. package/dist/test/tiles/list/tile-list-compact.test.js.map +1 -0
  474. package/dist/test/tiles/list/tile-list.test.d.ts +1 -0
  475. package/dist/test/tiles/list/tile-list.test.js +469 -0
  476. package/dist/test/tiles/list/tile-list.test.js.map +1 -0
  477. package/dist/test/tiles/tile-dispatcher.test.d.ts +1 -0
  478. package/dist/test/tiles/tile-dispatcher.test.js +231 -0
  479. package/dist/test/tiles/tile-dispatcher.test.js.map +1 -0
  480. package/dist/test/tiles/tile-display-value-provider.test.d.ts +1 -0
  481. package/dist/test/tiles/tile-display-value-provider.test.js +142 -0
  482. package/dist/test/tiles/tile-display-value-provider.test.js.map +1 -0
  483. package/dist/test/tiles/tile-mediatype-icon.test.d.ts +1 -0
  484. package/dist/test/tiles/tile-mediatype-icon.test.js +145 -0
  485. package/dist/test/tiles/tile-mediatype-icon.test.js.map +1 -0
  486. package/dist/test/utils/array-equals.test.d.ts +1 -0
  487. package/dist/test/utils/array-equals.test.js +27 -0
  488. package/dist/test/utils/array-equals.test.js.map +1 -0
  489. package/dist/test/utils/format-count.test.d.ts +1 -0
  490. package/dist/test/utils/format-count.test.js +24 -0
  491. package/dist/test/utils/format-count.test.js.map +1 -0
  492. package/dist/test/utils/format-date.test.d.ts +1 -0
  493. package/dist/test/utils/format-date.test.js +61 -0
  494. package/dist/test/utils/format-date.test.js.map +1 -0
  495. package/dist/test/utils/format-unit-size.test.d.ts +1 -0
  496. package/dist/test/utils/format-unit-size.test.js +18 -0
  497. package/dist/test/utils/format-unit-size.test.js.map +1 -0
  498. package/dist/test/utils/local-date-from-utc.test.d.ts +1 -0
  499. package/dist/test/utils/local-date-from-utc.test.js +27 -0
  500. package/dist/test/utils/local-date-from-utc.test.js.map +1 -0
  501. package/eslint.config.mjs +53 -53
  502. package/index.html +24 -24
  503. package/local.archive.org.cert +86 -86
  504. package/local.archive.org.key +27 -27
  505. package/package.json +118 -117
  506. package/renovate.json +6 -6
  507. package/src/collection-browser.ts +2954 -2829
  508. package/src/collection-facets/facet-row.ts +299 -296
  509. package/src/collection-facets/models.ts +10 -10
  510. package/src/collection-facets/more-facets-content.ts +639 -639
  511. package/src/collection-facets.ts +1005 -995
  512. package/src/data-source/collection-browser-data-source-interface.ts +345 -333
  513. package/src/data-source/collection-browser-data-source.ts +1441 -1401
  514. package/src/data-source/collection-browser-query-state.ts +59 -65
  515. package/src/data-source/models.ts +56 -43
  516. package/src/manage/manage-bar.ts +247 -247
  517. package/src/models.ts +866 -870
  518. package/src/restoration-state-handler.ts +542 -544
  519. package/src/tiles/base-tile-component.ts +65 -65
  520. package/src/tiles/grid/account-tile.ts +113 -113
  521. package/src/tiles/grid/collection-tile.ts +163 -163
  522. package/src/tiles/grid/item-tile.ts +340 -340
  523. package/src/tiles/grid/search-tile.ts +90 -90
  524. package/src/tiles/grid/styles/tile-grid-shared-styles.ts +130 -130
  525. package/src/tiles/hover/hover-pane-controller.ts +613 -517
  526. package/src/tiles/hover/tile-hover-pane.ts +184 -180
  527. package/src/tiles/list/tile-list-compact.ts +239 -239
  528. package/src/tiles/list/tile-list.ts +700 -700
  529. package/src/tiles/tile-dispatcher.ts +517 -490
  530. package/src/utils/format-date.ts +62 -62
  531. package/test/collection-browser.test.ts +2413 -2403
  532. package/test/collection-facets/facet-row.test.ts +375 -375
  533. package/test/collection-facets.test.ts +928 -928
  534. package/test/restoration-state-handler.test.ts +480 -510
  535. package/test/tiles/grid/item-tile.test.ts +520 -520
  536. package/test/tiles/hover/hover-pane-controller.test.ts +418 -353
  537. package/test/tiles/list/tile-list-compact.test.ts +282 -282
  538. package/test/tiles/list/tile-list.test.ts +552 -552
  539. package/test/tiles/tile-dispatcher.test.ts +283 -187
  540. package/test/utils/format-date.test.ts +89 -89
  541. package/tsconfig.json +20 -20
  542. package/web-dev-server.config.mjs +30 -30
  543. package/web-test-runner.config.mjs +41 -41
@@ -0,0 +1,692 @@
1
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
+ import type { AnalyticsManagerInterface } from '@internetarchive/analytics-manager';
3
+ import type { InfiniteScrollerCellProviderInterface } from '@internetarchive/infinite-scroller';
4
+ import { CollectionExtraInfo, PageElementName, SearchServiceInterface, SearchType, SortDirection, SortParam } from '@internetarchive/search-service';
5
+ import type { SharedResizeObserverInterface, SharedResizeObserverResizeHandlerInterface } from '@internetarchive/shared-resize-observer';
6
+ import '@internetarchive/infinite-scroller';
7
+ import type { ModalManagerInterface } from '@internetarchive/modal-manager';
8
+ import type { FeatureFeedbackServiceInterface } from '@internetarchive/feature-feedback';
9
+ import type { RecaptchaManagerInterface } from '@internetarchive/recaptcha-manager';
10
+ import { SelectedFacets, SortField, CollectionBrowserContext, TileModel, CollectionDisplayMode, FacetEventDetails, FacetLoadStrategy } from './models';
11
+ import { RestorationStateHandlerInterface } from './restoration-state-handler';
12
+ import type { CollectionBrowserQueryState, CollectionBrowserSearchInterface } from './data-source/collection-browser-query-state';
13
+ import type { CollectionBrowserDataSourceInterface } from './data-source/collection-browser-data-source-interface';
14
+ import './empty-placeholder';
15
+ import './tiles/tile-dispatcher';
16
+ import './tiles/collection-browser-loading-tile';
17
+ import './sort-filter-bar/sort-filter-bar';
18
+ import './manage/manage-bar';
19
+ import './collection-facets';
20
+ import './circular-activity-indicator';
21
+ import './collection-facets/smart-facets/smart-facet-bar';
22
+ export declare class CollectionBrowser extends LitElement implements InfiniteScrollerCellProviderInterface, SharedResizeObserverResizeHandlerInterface, CollectionBrowserSearchInterface {
23
+ baseNavigationUrl?: string;
24
+ baseImageUrl: string;
25
+ searchService?: SearchServiceInterface;
26
+ /**
27
+ * Which backend should be targeted by searches (e.g., metadata or FTS)
28
+ */
29
+ searchType: SearchType;
30
+ /**
31
+ * The identifier of the collection that searches should be performed within
32
+ */
33
+ withinCollection?: string;
34
+ /**
35
+ * The identifier (e.g., @person) of the user whose profile is being searched within
36
+ */
37
+ withinProfile?: string;
38
+ /**
39
+ * Which section of the profile page searches are for (e.g., uploads, reviews, ...)
40
+ */
41
+ profileElement?: PageElementName;
42
+ /**
43
+ * The base query to use for all searches, updated to match the current user query.
44
+ */
45
+ baseQuery?: string;
46
+ /**
47
+ * The base list of identifiers to fetch, if using the client_document_fetch feature
48
+ * of the search service.
49
+ *
50
+ * This approach allows many more identifiers to be retrieved than a query like
51
+ * `identifier:(foo OR bar OR ...)` would, but still may be more limited in what
52
+ * content is returned by the backend
53
+ */
54
+ identifiers?: string[];
55
+ /**
56
+ * Which mode to display result tiles in (grid, extended list, or compact list)
57
+ */
58
+ displayMode?: CollectionDisplayMode;
59
+ selectedSort: SortField;
60
+ selectedTitleFilter: string | null;
61
+ selectedCreatorFilter: string | null;
62
+ sortDirection: SortDirection | null;
63
+ defaultSortField: Exclude<SortField, SortField.default>;
64
+ defaultSortDirection: SortDirection | null;
65
+ pageSize: number;
66
+ currentPage?: number;
67
+ minSelectedDate?: string;
68
+ maxSelectedDate?: string;
69
+ selectedFacets?: SelectedFacets;
70
+ /**
71
+ * Set of filters to be applied internally to searches, but not included in URL params or
72
+ * visibly selected facets. Use when this instance of collection browser is being shown
73
+ * in a filtered context, such as a single-mediatype tab, but the corresponding filters
74
+ * should not be exposed/changeable within that context.
75
+ */
76
+ internalFilters?: SelectedFacets;
77
+ /**
78
+ * Whether to show smart facets (bubbles) along the top of the component
79
+ */
80
+ showSmartFacetBar: boolean;
81
+ /**
82
+ * Sets the label that is shown in front of the smart facets, if present.
83
+ */
84
+ smartFacetBarLabel?: string;
85
+ /**
86
+ * Whether to show the date picker (above the facets)
87
+ */
88
+ showHistogramDatePicker: boolean;
89
+ /**
90
+ * Whether placeholder views should be suppressed. If true, searches that produce an
91
+ * error or empty result set will simply show a blank results view instead of a placeholder.
92
+ */
93
+ suppressPlaceholders: boolean;
94
+ /**
95
+ * Whether the result count text should be suppressed.
96
+ * If true, no "X Results" message will be shown.
97
+ */
98
+ suppressResultCount: boolean;
99
+ /**
100
+ * Whether the scrolling result view should be suppressed entirely.
101
+ * If true, no infinite scroller (and thus no result tiles) will be rendered.
102
+ */
103
+ suppressResultTiles: boolean;
104
+ /**
105
+ * Whether to suppress persistence of the query to the URL.
106
+ * If true, the `query` param will not be added to the URL or updated on query changes.
107
+ */
108
+ suppressURLQuery: boolean;
109
+ /**
110
+ * Whether to suppress persistence of the `sin` search type param to the URL.
111
+ * If true, the `sin` param will not be added to the URL or updated on query changes.
112
+ */
113
+ suppressURLSinParam: boolean;
114
+ /**
115
+ * Whether to suppress display of the sort bar.
116
+ * If true, the entire sort bar (incl. display modes) will be omitted from rendering.
117
+ */
118
+ suppressSortBar: boolean;
119
+ /**
120
+ * Whether to suppress showing the display mode options in the sort bar.
121
+ * If true, those options will be omitted (though the rest of the sort bar may still render).
122
+ */
123
+ suppressDisplayModes: boolean;
124
+ /**
125
+ * Whether to suppress the display of the `mediatype` facet group, e.g., because this instance
126
+ * of collection browser is being shown in a filtered single-mediatype context.
127
+ */
128
+ suppressMediatypeFacets: boolean;
129
+ /**
130
+ * What strategy to use for when/whether to load facet data for a search.
131
+ *
132
+ * Defaults to `eager`, always loading facets immediately alongside search results.
133
+ *
134
+ * To eliminate facets that are never seen, this can be reduced to `lazy-mobile`, which
135
+ * will delay loading facets in the mobile view until the "Filters" accordion is opened.
136
+ * Facets are still loaded eagerly when viewing the desktop layout.
137
+ *
138
+ * To further reduce facet requests for patrons who do not need to use them, this can be
139
+ * again reduced to `opt-in`, which will also require desktop users to explicitly request
140
+ * that they be loaded (in addition to the lazy mobile behavior described above).
141
+ *
142
+ * To entirely suppress facets from being loaded, this may be set to `off`.
143
+ */
144
+ facetLoadStrategy: FacetLoadStrategy;
145
+ facetPaneVisible: boolean;
146
+ clearResultsOnEmptyQuery: boolean;
147
+ collectionPagePath: string;
148
+ /** describes where this component is being used */
149
+ searchContext: string;
150
+ pageContext: CollectionBrowserContext;
151
+ restorationStateHandler: RestorationStateHandlerInterface;
152
+ mobileBreakpoint: number;
153
+ loggedIn: boolean;
154
+ resizeObserver?: SharedResizeObserverInterface;
155
+ modalManager?: ModalManagerInterface;
156
+ featureFeedbackService?: FeatureFeedbackServiceInterface;
157
+ recaptchaManager?: RecaptchaManagerInterface;
158
+ /**
159
+ * Whether we are representing a TV collection, needing slightly different tile handling.
160
+ */
161
+ isTVCollection: boolean;
162
+ /**
163
+ * If item management UI active
164
+ */
165
+ isManageView: boolean;
166
+ manageViewLabel: string;
167
+ /** Whether to replace the default sort options with a slot for customization (default: false) */
168
+ enableSortOptionsSlot: boolean;
169
+ /** Whether to expose a slot for a smart results carousel above the full results */
170
+ showSmartResults: boolean;
171
+ /**
172
+ * The maximum number of pages we will load when a privileged user clicks
173
+ * the "Manage" button on the search page. Limited to 15 pages.
174
+ */
175
+ maxPagesToManage: number;
176
+ /**
177
+ * The results per page so we can paginate.
178
+ *
179
+ * This allows us to start in the middle of the search results and
180
+ * fetch data before or after the current page. If we don't have a key
181
+ * for the previous/next page, we'll fetch the next/previous page to populate it
182
+ */
183
+ dataSource: CollectionBrowserDataSourceInterface;
184
+ /**
185
+ * The page that the consumer wants to load.
186
+ */
187
+ initialPageNumber: number;
188
+ /**
189
+ * This the the number of pages that we want to show.
190
+ *
191
+ * The data isn't necessarily loaded for all of the pages, but this lets us
192
+ * know how many cells we should render.
193
+ */
194
+ private pagesToRender;
195
+ /**
196
+ * Whether the initial page fetch for a new query is currently in progress.
197
+ */
198
+ private searchResultsLoading;
199
+ private facetsLoading;
200
+ private totalResults?;
201
+ private mobileView;
202
+ /**
203
+ * Any temporarily overridden `on`/`off` state for the user's tile blurring preference if they
204
+ * have chosen to override it, or `no-override` if they have not.
205
+ */
206
+ private tileBlurOverrideState;
207
+ private collapsibleFacetsVisible;
208
+ private contentWidth?;
209
+ private placeholderType;
210
+ private contentContainer;
211
+ private leftColumn?;
212
+ private collectionFacets?;
213
+ private manageBar?;
214
+ private smartFacetBar?;
215
+ analyticsHandler?: AnalyticsManagerInterface;
216
+ /** Whether layout size analytics have been sent already. */
217
+ private layoutSizeAnalyticsSent;
218
+ /**
219
+ * When we're animated scrolling to the page, we don't want to fetch
220
+ * all of the pages as it scrolls so this lets us know if we're scrolling
221
+ */
222
+ private isScrollingToCell;
223
+ /**
224
+ * When page width resizes from desktop to mobile, set true to
225
+ * disable expand/collapse transition when loading.
226
+ */
227
+ private isResizeToMobile;
228
+ /**
229
+ * Flag indicating that a new data source is currently being installed.
230
+ * During the install, any URL persistence operation should replace the current entry
231
+ * instead of creating a new one.
232
+ */
233
+ private dataSourceInstallInProgress;
234
+ private leftColIntersectionObserver?;
235
+ private facetsIntersectionObserver?;
236
+ private placeholderCellTemplate;
237
+ constructor();
238
+ private tileModelAtCellIndex;
239
+ private get estimatedTileCount();
240
+ private infiniteScroller?;
241
+ private sessionIdGenPromise?;
242
+ /**
243
+ * Returns a promise resolving to a unique string that persists for the current browser session.
244
+ * Used in generating unique IDs for search requests, so that multiple requests coming from the
245
+ * same browser session can be identified.
246
+ */
247
+ getSessionId(): Promise<string>;
248
+ /**
249
+ * Go to the given page of results
250
+ *
251
+ * @param pageNumber
252
+ */
253
+ goToPage(pageNumber: number): Promise<void>;
254
+ /**
255
+ * Sets the state for whether the initial set of search results is loading in.
256
+ */
257
+ setSearchResultsLoading(loading: boolean): void;
258
+ /**
259
+ * Sets the state for whether facet data is loading in
260
+ */
261
+ setFacetsLoading(loading: boolean): void;
262
+ /**
263
+ * Sets the total number of results to be displayed for the current search
264
+ */
265
+ setTotalResultCount(totalResults: number): void;
266
+ /**
267
+ * Clears all selected/negated facets, date ranges, and letter filters.
268
+ *
269
+ * By default, the current sort field/direction are not cleared,
270
+ * but this can be overridden by setting the `sort` option to `true`.
271
+ *
272
+ * Similarly, it is possible to finely control what is cleared by
273
+ * setting any of the `facets`, `dateRange`, or `letterFilters` flags
274
+ * in the options object.
275
+ */
276
+ clearFilters({ facets, dateRange, letterFilters, sort, }?: {
277
+ facets?: boolean | undefined;
278
+ dateRange?: boolean | undefined;
279
+ letterFilters?: boolean | undefined;
280
+ sort?: boolean | undefined;
281
+ }): void;
282
+ /**
283
+ * Returns true if the current value of `this.selectedFacets` contains
284
+ * any facet buckets than have been selected or negated, or false otherwise.
285
+ */
286
+ private get hasCheckedFacets();
287
+ /**
288
+ * Returns true if there are any currently selected/negated facet buckets,
289
+ * any selected date range, or any selected letter filters. False otherwise.
290
+ *
291
+ * Ignores sorting options.
292
+ */
293
+ private get hasActiveFilters();
294
+ willUpdate(): void;
295
+ render(): TemplateResult<1>;
296
+ /**
297
+ * Determines what type of placeholder content should be shown instead of result tiles, if applicable.
298
+ * The placeholders indicate states where we have no results to show, which could be the result of:
299
+ * - No query is set (on the search page)
300
+ * - No results were returned for the most recent search
301
+ * - The collection being searched within has no viewable items
302
+ * - An error occurred on the most recent search attempt
303
+ */
304
+ private setPlaceholderType;
305
+ /**
306
+ * Template for the placeholder content to show when no results are available.
307
+ */
308
+ private get emptyPlaceholderTemplate();
309
+ /**
310
+ * Top-level template for rendering the left (facets) and right (results) columns.
311
+ */
312
+ private get collectionBrowserTemplate();
313
+ /**
314
+ * Template for either the mobile or desktop version of the left column, depending
315
+ * on current component state.
316
+ */
317
+ private get leftColumnTemplate();
318
+ /**
319
+ * Template for the mobile version of the "left column" (which in this case, appears
320
+ * *above* the search results rather than beside them), for rendering the
321
+ * accordion-style facets.
322
+ */
323
+ private get mobileLeftColumnTemplate();
324
+ /**
325
+ * Template for the desktop version of the left column, displaying the facets sidebar.
326
+ */
327
+ private get desktopLeftColumnTemplate();
328
+ /**
329
+ * Slot which is placed at top of the facets area for user-profile page
330
+ * - mainly used to render userlists
331
+ */
332
+ private get facetTopViewSlot();
333
+ /**
334
+ * Template for the "X Results" count at the top of the search results.
335
+ * Changes to the "Searching..." label if the search results are still loading.
336
+ */
337
+ private get resultsCountTemplate();
338
+ /**
339
+ * Template for the right column of the collection browser, where the result
340
+ * tiles and sort/filter bar are shown.
341
+ */
342
+ private get rightColumnTemplate();
343
+ /**
344
+ * Template for the infinite scroller widget that contains the result tiles.
345
+ */
346
+ private get infiniteScrollerTemplate();
347
+ /**
348
+ * Produces a `classMap` indicating which classes the infinite scroller should have
349
+ * given the current display mode & placeholder case.
350
+ */
351
+ private get infiniteScrollerClasses();
352
+ /**
353
+ * Template for the sort & filtering bar that appears atop the search results.
354
+ */
355
+ private get sortFilterBarTemplate();
356
+ /**
357
+ * Template for the Blurring toggle for admins to enable/disable blurring of
358
+ * sensitive content in result tiles.
359
+ */
360
+ private get tileBlurCheckboxTemplate();
361
+ /**
362
+ * Message to show in the manage view modal, depending on context.
363
+ */
364
+ private get manageViewModalMsg();
365
+ /**
366
+ * Template for the manage bar UI that appears atop the search results when we are
367
+ * showing the management view. This generally replaces the sort bar when present.
368
+ */
369
+ private get manageBarTemplate();
370
+ /**
371
+ * Handler for when the user requests to remove all checked items via the manage bar.
372
+ * Emits an `itemRemovalRequested` event with all checked tile models.
373
+ */
374
+ private handleRemoveItems;
375
+ /**
376
+ * Handler when user request to bulk edit from /search/ page
377
+ */
378
+ private handleManageItems;
379
+ refreshSmartFacets(): void;
380
+ /**
381
+ * Handler to show processing modal while removing item
382
+ */
383
+ showRemoveItemsProcessingModal(): void;
384
+ /**
385
+ * Handler to show error modal when item removal failed
386
+ */
387
+ showRemoveItemsErrorModal(): void;
388
+ /**
389
+ * Removes all tile models that are currently checked & adjusts the paging
390
+ * of the data source to account for any new gaps in the data.
391
+ */
392
+ removeCheckedTiles(): void;
393
+ /**
394
+ * Handler for when the tile blurring checkbox state is toggled
395
+ */
396
+ private tileBlurCheckboxChanged;
397
+ /**
398
+ * Whether result tiles should have the default blurring of sensitive content suppressed.
399
+ * First considers any override specified by the user, falling back to the setting in
400
+ * user preferences if not overridden.
401
+ */
402
+ private get shouldSuppressTileBlurring();
403
+ /**
404
+ * Handler for when the user changes the selected sort option or direction.
405
+ */
406
+ private userChangedSort;
407
+ /**
408
+ * Fires an analytics event for sorting changes.
409
+ * @param prevSortDirection Which sort direction was previously set.
410
+ */
411
+ private sendSortByAnalytics;
412
+ /**
413
+ * Handler for when the selected sort option is updated, whether by the user
414
+ * themselves or programmatically.
415
+ */
416
+ private selectedSortChanged;
417
+ /**
418
+ * An object representing the current sort field & direction.
419
+ */
420
+ get sortParam(): SortParam | null;
421
+ /**
422
+ * An object representing the default sort field & direction, if none are explicitly set.
423
+ */
424
+ get defaultSortParam(): SortParam | null;
425
+ /**
426
+ * Handler for when the display mode option is changed (grid/list/compact-list views).
427
+ */
428
+ private displayModeChanged;
429
+ /**
430
+ * Returns a query clause identifying the currently selected title filter,
431
+ * e.g., `firstTitle:X`.
432
+ */
433
+ private get titleQuery();
434
+ /**
435
+ * Returns a query clause identifying the currently selected creator filter,
436
+ * e.g., `firstCreator:X`.
437
+ */
438
+ private get creatorQuery();
439
+ /**
440
+ * Send Analytics when sorting by title's first letter
441
+ * labels: 'start-<ToLetter>' | 'clear-<FromLetter>' | '<FromLetter>-<ToLetter>'
442
+ */
443
+ private sendFilterByTitleAnalytics;
444
+ /**
445
+ * Send Analytics when filtering by creator's first letter
446
+ * labels: 'start-<ToLetter>' | 'clear-<FromLetter>' | '<FromLetter>-<ToLetter>'
447
+ */
448
+ private sendFilterByCreatorAnalytics;
449
+ /**
450
+ * Handler for changes to which letter is selected in the title alphabet bar.
451
+ */
452
+ private titleLetterSelected;
453
+ /**
454
+ * Handler for changes to which letter is selected in the creator alphabet bar.
455
+ */
456
+ private creatorLetterSelected;
457
+ /**
458
+ * The full template for how the facets should be structured in mobile view,
459
+ * including the collapsible container (with header) and the facets themselves.
460
+ */
461
+ private get mobileFacetsTemplate();
462
+ private selectedTVNetwork?;
463
+ private selectedTVShow?;
464
+ private tvNetworksDropdown?;
465
+ private tvShowsDropdown?;
466
+ private networksDropdownClicked;
467
+ private showsDropdownClicked;
468
+ private networksDropdownChanged;
469
+ private showsDropdownChanged;
470
+ private get tvDropdownFiltersTemplate();
471
+ /**
472
+ * The template for the facets component alone, without any surrounding wrappers.
473
+ */
474
+ private get facetsTemplate();
475
+ /**
476
+ * The HTML template for the "Clear all filters" button, or `nothing` if no
477
+ * filters are currently active.
478
+ *
479
+ * @param mobile Whether to style/shorten the button for mobile view
480
+ */
481
+ private clearFiltersBtnTemplate;
482
+ /**
483
+ * Template for the table header content that appears atop the compact list view.
484
+ */
485
+ private get listHeaderTemplate();
486
+ /**
487
+ * Handler for when the date picker's date range is changed.
488
+ */
489
+ private histogramDateRangeUpdated;
490
+ /**
491
+ * The Lucene query corresponding to the current date range.
492
+ */
493
+ private get dateRangeQueryClause();
494
+ /**
495
+ * Emits an event indicating a change in whether the manage mode is shown.
496
+ */
497
+ private emitManageModeChangedEvent;
498
+ /**
499
+ * Installs a new data source component and associated query state parameters into
500
+ * this component, causing it to efficiently update its views to represent the
501
+ * newly-provided data. In this way, one can reuse a single instance of
502
+ * <collection-browser> to handle multiple different sets of search results on
503
+ * a single page, each set of results being loaded & updated by its own data
504
+ * source.
505
+ *
506
+ * @param dataSource The data source component containing (or prepared to fetch)
507
+ * the tile data to be displayed.
508
+ * @param queryState The new query-related state that this component should
509
+ * represent, such as the search query, sort option, and any filters applied.
510
+ */
511
+ installDataSourceAndQueryState(dataSource: CollectionBrowserDataSourceInterface, queryState: CollectionBrowserQueryState): Promise<void>;
512
+ firstUpdated(): void;
513
+ /**
514
+ * Determines the initial size of the content container and whether or not
515
+ * the mobile layout should be used.
516
+ */
517
+ setInitialSize(): void;
518
+ /**
519
+ * Fires an analytics event indicating which type of layout was rendered:
520
+ * mobile or desktop.
521
+ */
522
+ private sendLayoutSizeAnalytics;
523
+ updated(changed: PropertyValues): void;
524
+ connectedCallback(): void;
525
+ disconnectedCallback(): void;
526
+ handleResize(entry: ResizeObserverEntry): void;
527
+ /**
528
+ * Ensures that if we have new results from the data source that are not yet
529
+ * displayed in the infinite scroller, that they are immediately reflected
530
+ * in the tile count.
531
+ */
532
+ private ensureAvailableTilesDisplayed;
533
+ /**
534
+ * Updates the data source with the current state of facet readiness for loading,
535
+ * so that they will begin to load in at the appropriate time according to the
536
+ * current facet loading strategy.
537
+ */
538
+ private updateFacetReadiness;
539
+ /**
540
+ * Sets up listeners for events that may require updating the left column height.
541
+ */
542
+ private setupLeftColumnScrollListeners;
543
+ /**
544
+ * Sets up listeners to control whether the facet sidebar shows its bottom fade-out.
545
+ * Note this uses a separate IntersectionObserver from the left column, because we
546
+ * don't need granular intersection thresholds for this.
547
+ */
548
+ private setupFacetsScrollListeners;
549
+ /**
550
+ * Updates the height of the left column according to its position on the page.
551
+ * Arrow function ensures proper `this` binding.
552
+ */
553
+ private updateLeftColumnHeight;
554
+ /**
555
+ * Toggles whether the fade-out is visible at the bottom of the facets.
556
+ * It should only be visible if the facets are not scrolled to the bottom.
557
+ * Arrow function ensures proper `this` binding.
558
+ */
559
+ private updateFacetFadeOut;
560
+ /**
561
+ * Emits a `baseQueryChanged` event indicating an update to the search query.
562
+ */
563
+ private emitBaseQueryChanged;
564
+ /**
565
+ * Emits a `searchTypeChanged` event indicating an update to the search type
566
+ * (e.g., metadata vs. full-text).
567
+ */
568
+ private emitSearchTypeChanged;
569
+ /**
570
+ * Emits a `facetPaneVisibilityChanged` event indicating that the facet pane has
571
+ * been toggled open or closed.
572
+ */
573
+ private emitFacetPaneVisibilityChanged;
574
+ /**
575
+ * Emits a `searchError` event indicating that the most recent search has encountered
576
+ * an error from the backend.
577
+ */
578
+ emitSearchError(): void;
579
+ /**
580
+ * Emits a `queryStateChanged` event indicating that one or more of this component's
581
+ * properties have changed in a way that could affect the set of search results.
582
+ */
583
+ emitQueryStateChanged(): void;
584
+ /**
585
+ * Emits an `emptyResults` event indicating that we have received an empty result set
586
+ * for the most recent query.
587
+ */
588
+ emitEmptyResults(): void;
589
+ private disconnectResizeObserver;
590
+ private setupResizeObserver;
591
+ /**
592
+ * When the visible cells change from the infinite scroller, we want to emit
593
+ * which page is currently visible so the consumer can update its UI or the URL
594
+ *
595
+ * @param e
596
+ * @returns
597
+ */
598
+ private visibleCellsChanged;
599
+ private initialQueryChangeHappened;
600
+ private historyPopOccurred;
601
+ private previousQueryKey?;
602
+ /**
603
+ * A Promise which, after each query change, resolves once the fetches for the initial
604
+ * search have completed. Waits for *both* the hits and aggregations fetches to finish.
605
+ *
606
+ * Ensure you await this component's `updateComplete` promise before awaiting this
607
+ * one, to ensure you do not await an obsolete promise from the previous update.
608
+ */
609
+ get initialSearchComplete(): Promise<boolean>;
610
+ /**
611
+ * Handler for whenever the component's properties change in a way that may require
612
+ * fetching new results.
613
+ */
614
+ private handleQueryChange;
615
+ private setupStateRestorationObserver;
616
+ private boundNavigationHandler?;
617
+ private historyNavigationHandler;
618
+ private restoreState;
619
+ private persistState;
620
+ /**
621
+ * Emits a `searchResultsLoadingChanged` event indicating that our loading state has
622
+ * changed (either we have started loading new results, or we have finished loading them).
623
+ */
624
+ private emitSearchResultsLoadingChanged;
625
+ /**
626
+ * Handler for when the set of selected facets changes.
627
+ */
628
+ facetsChanged(e: CustomEvent<SelectedFacets>): void;
629
+ /**
630
+ * Handler for when any facet is selected/unselected/hidden/unhidden.
631
+ * Fires analytics indicating the type of facet event that took place.
632
+ */
633
+ facetClickHandler({ detail: { facetType, bucket, negative }, }: CustomEvent<FacetEventDetails>): void;
634
+ private scrollToPage;
635
+ /**
636
+ * Whether sorting by relevance makes sense for the current state.
637
+ * Currently equivalent to having a non-empty query.
638
+ */
639
+ private get isRelevanceSortAvailable();
640
+ /**
641
+ * Sets the total number of tiles displayed in the infinite scroller.
642
+ */
643
+ setTileCount(count: number): void;
644
+ /**
645
+ * Applies any default sort option for the current collection, by checking
646
+ * for one in the collection's metadata. If none is found, defaults to sorting
647
+ * descending by:
648
+ * - Date Favorited for fav-* collections
649
+ * - Weekly views for all other collections
650
+ */
651
+ applyDefaultCollectionSort(collectionInfo?: CollectionExtraInfo): void;
652
+ /**
653
+ * Applies the default sort option for the current profile element
654
+ */
655
+ applyDefaultProfileSort(): void;
656
+ /**
657
+ * This is useful for determining whether we need to reload the scroller.
658
+ *
659
+ * When the fetch completes, we need to reload the scroller if the cells for that
660
+ * page are visible, but if the page is not currenlty visible, we don't need to reload
661
+ */
662
+ get currentVisiblePageNumbers(): number[];
663
+ /**
664
+ * Whether we are currently displaying results for a radio collection
665
+ */
666
+ private get isRadioCollection();
667
+ /**
668
+ * Refreshes all visible result cells in the infinite scroller.
669
+ */
670
+ refreshVisibleResults(): void;
671
+ /**
672
+ * Callback when a result is selected
673
+ */
674
+ resultSelected(event: CustomEvent<TileModel>): void;
675
+ cellForIndex(index: number): TemplateResult | undefined;
676
+ /**
677
+ * When the user scrolls near to the bottom of the page, fetch the next page
678
+ * increase the number of pages to render and start fetching data for the new page
679
+ */
680
+ private scrollThresholdReached;
681
+ /**
682
+ * Fetches search results for privileged users when in manage view.
683
+ *
684
+ * This method:
685
+ * 1. Checks if we're in search context and either haven't loaded results yet, or have already finished loading with > 100 total results
686
+ * 2. Resets the datasource pagination state
687
+ * 3. Fetches first page with limit based on maxPagesToManage threshold
688
+ * 4. Reloads the infinite scroller to display new results
689
+ */
690
+ private fetchManageableSearchResults;
691
+ static get styles(): import("lit").CSSResult[];
692
+ }