blacklight 7.40.0 → 8.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. checksums.yaml +4 -4
  2. data/.env +2 -3
  3. data/.github/workflows/ruby.yml +36 -114
  4. data/.rubocop.yml +243 -14
  5. data/.rubocop_todo.yml +137 -429
  6. data/Gemfile +11 -6
  7. data/README.md +11 -3
  8. data/VERSION +1 -1
  9. data/app/assets/javascripts/blacklight/blacklight.esm.js +384 -0
  10. data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -0
  11. data/app/assets/javascripts/blacklight/blacklight.js +374 -493
  12. data/app/assets/javascripts/blacklight/blacklight.js.map +1 -0
  13. data/app/assets/stylesheets/blacklight/_autocomplete.scss +25 -0
  14. data/app/assets/stylesheets/blacklight/_blacklight_base.scss +1 -1
  15. data/app/assets/stylesheets/blacklight/_bookmark.scss +16 -0
  16. data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +8 -0
  17. data/app/assets/stylesheets/blacklight/_constraints.scss +4 -4
  18. data/app/assets/stylesheets/blacklight/_facets.scss +72 -44
  19. data/app/assets/stylesheets/blacklight/_header.scss +0 -15
  20. data/app/assets/stylesheets/blacklight/_icons.scss +0 -14
  21. data/app/assets/stylesheets/blacklight/_mixins.scss +20 -0
  22. data/app/assets/stylesheets/blacklight/_modal.scss +8 -2
  23. data/app/assets/stylesheets/blacklight/_search_form.scss +30 -3
  24. data/app/assets/stylesheets/blacklight/_search_history.scss +10 -1
  25. data/app/assets/stylesheets/blacklight/_search_results.scss +6 -2
  26. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +4 -1
  27. data/app/builders/blacklight/action_builder.rb +18 -9
  28. data/app/components/blacklight/advanced_search_form_component.html.erb +3 -3
  29. data/app/components/blacklight/advanced_search_form_component.rb +8 -10
  30. data/app/components/blacklight/constraints_component.rb +27 -37
  31. data/app/components/blacklight/document/action_component.rb +9 -9
  32. data/app/components/blacklight/document/actions_component.rb +2 -2
  33. data/app/components/blacklight/document/bookmark_component.html.erb +9 -0
  34. data/app/components/blacklight/document/bookmark_component.rb +4 -2
  35. data/app/components/blacklight/document/citation_component.rb +5 -3
  36. data/app/components/blacklight/document/group_component.rb +7 -3
  37. data/app/components/blacklight/document/sidebar_component.html.erb +2 -0
  38. data/app/components/blacklight/document/sidebar_component.rb +16 -0
  39. data/app/components/blacklight/document/thumbnail_component.html.erb +2 -7
  40. data/app/components/blacklight/document/thumbnail_component.rb +1 -9
  41. data/app/components/blacklight/document_component.html.erb +1 -1
  42. data/app/components/blacklight/document_component.rb +16 -78
  43. data/app/components/blacklight/document_metadata_component.html.erb +2 -4
  44. data/app/components/blacklight/document_metadata_component.rb +5 -10
  45. data/app/components/blacklight/facet_component.rb +3 -3
  46. data/app/components/blacklight/facet_field_checkboxes_component.html.erb +4 -4
  47. data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
  48. data/app/components/blacklight/facet_field_component.html.erb +4 -5
  49. data/app/components/blacklight/facet_field_component.rb +9 -2
  50. data/app/components/blacklight/facet_field_list_component.html.erb +3 -3
  51. data/app/components/blacklight/facet_field_list_component.rb +37 -5
  52. data/app/components/blacklight/facet_field_no_layout_component.rb +0 -2
  53. data/app/components/blacklight/facet_item_component.rb +1 -43
  54. data/app/components/blacklight/facet_item_pivot_component.rb +21 -23
  55. data/app/components/blacklight/header_component.rb +1 -1
  56. data/app/components/blacklight/hidden_search_state_component.rb +1 -2
  57. data/app/components/blacklight/icons/icon_component.rb +4 -9
  58. data/app/components/blacklight/icons/legacy_icon_component.rb +30 -0
  59. data/app/components/blacklight/icons/list_component.rb +16 -0
  60. data/app/components/blacklight/icons/search_component.rb +16 -0
  61. data/app/components/blacklight/metadata_field_component.html.erb +2 -2
  62. data/app/components/blacklight/metadata_field_component.rb +24 -8
  63. data/app/components/blacklight/metadata_field_layout_component.rb +4 -25
  64. data/app/components/blacklight/response/facet_group_component.html.erb +3 -5
  65. data/app/components/blacklight/response/facet_group_component.rb +29 -8
  66. data/app/components/blacklight/response/pagination_component.html.erb +1 -1
  67. data/app/components/blacklight/response/pagination_component.rb +2 -11
  68. data/app/components/blacklight/response/sort_component.html.erb +6 -1
  69. data/app/components/blacklight/response/sort_component.rb +1 -16
  70. data/app/components/blacklight/response/spellcheck_component.rb +18 -7
  71. data/app/components/blacklight/response/view_type_button_component.rb +3 -7
  72. data/app/components/blacklight/response/view_type_component.rb +4 -6
  73. data/app/components/blacklight/search/sidebar_component.html.erb +8 -0
  74. data/app/components/blacklight/search/sidebar_component.rb +17 -0
  75. data/app/components/blacklight/search_bar_component.html.erb +20 -15
  76. data/app/components/blacklight/search_bar_component.rb +2 -16
  77. data/app/components/blacklight/search_button_component.rb +3 -3
  78. data/app/components/blacklight/search_context_component.rb +43 -9
  79. data/app/components/blacklight/search_header_component.html.erb +2 -0
  80. data/app/components/blacklight/search_header_component.rb +6 -0
  81. data/app/components/blacklight/start_over_button_component.rb +5 -3
  82. data/app/components/blacklight/system/dropdown_component.rb +8 -5
  83. data/app/components/blacklight/system/flash_message_component.html.erb +4 -2
  84. data/app/components/blacklight/system/flash_message_component.rb +12 -3
  85. data/app/components/blacklight/system/modal_component.html.erb +1 -1
  86. data/app/components/blacklight/system/modal_component.rb +1 -3
  87. data/app/components/blacklight/top_navbar_component.html.erb +1 -1
  88. data/app/components/blacklight/top_navbar_component.rb +0 -4
  89. data/app/controllers/bookmarks_controller.rb +1 -0
  90. data/app/controllers/catalog_controller.rb +1 -0
  91. data/app/controllers/concerns/blacklight/bookmarks.rb +10 -9
  92. data/app/controllers/concerns/blacklight/catalog.rb +21 -83
  93. data/app/controllers/concerns/blacklight/controller.rb +3 -41
  94. data/app/controllers/concerns/blacklight/search_context.rb +25 -7
  95. data/app/controllers/concerns/blacklight/search_history.rb +2 -0
  96. data/app/controllers/concerns/blacklight/searchable.rb +12 -1
  97. data/app/controllers/concerns/blacklight/token_based_user.rb +13 -1
  98. data/app/controllers/search_history_controller.rb +1 -0
  99. data/app/helpers/blacklight/blacklight_helper_behavior.rb +12 -310
  100. data/app/helpers/blacklight/catalog_helper_behavior.rb +22 -139
  101. data/app/helpers/blacklight/component_helper_behavior.rb +2 -53
  102. data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -119
  103. data/app/helpers/blacklight/facets_helper_behavior.rb +4 -321
  104. data/app/helpers/blacklight/icon_helper_behavior.rb +5 -7
  105. data/app/helpers/blacklight/layout_helper_behavior.rb +4 -3
  106. data/app/helpers/blacklight/render_partials_helper_behavior.rb +11 -31
  107. data/app/helpers/blacklight/url_helper_behavior.rb +12 -97
  108. data/app/helpers/blacklight_helper.rb +1 -0
  109. data/app/helpers/catalog_helper.rb +1 -0
  110. data/app/javascript/blacklight/bookmark_toggle.js +13 -19
  111. data/app/javascript/blacklight/button_focus.js +12 -10
  112. data/app/javascript/blacklight/checkbox_submit.js +68 -123
  113. data/app/javascript/blacklight/core.js +5 -7
  114. data/app/javascript/blacklight/index.js +13 -0
  115. data/app/javascript/blacklight/modal.js +99 -164
  116. data/app/javascript/blacklight/modalForm.js +60 -0
  117. data/app/javascript/blacklight/search_context.js +46 -54
  118. data/app/models/blacklight/facet_paginator.rb +3 -2
  119. data/app/models/blacklight/icon.rb +4 -2
  120. data/app/models/bookmark.rb +0 -2
  121. data/app/models/concerns/blacklight/configurable.rb +5 -4
  122. data/app/models/concerns/blacklight/document/active_model_shim.rb +1 -10
  123. data/app/models/concerns/blacklight/document/cache_key.rb +1 -0
  124. data/app/models/concerns/blacklight/document/dublin_core.rb +2 -1
  125. data/app/models/concerns/blacklight/document/email.rb +1 -0
  126. data/app/models/concerns/blacklight/document/export.rb +2 -1
  127. data/app/models/concerns/blacklight/document/extensions.rb +1 -0
  128. data/app/models/concerns/blacklight/document/schema_org.rb +1 -0
  129. data/app/models/concerns/blacklight/document/semantic_fields.rb +2 -1
  130. data/app/models/concerns/blacklight/document/sms.rb +1 -0
  131. data/app/models/concerns/blacklight/suggest/response.rb +1 -0
  132. data/app/models/concerns/blacklight/user.rb +17 -8
  133. data/app/models/record_mailer.rb +13 -12
  134. data/app/models/search.rb +1 -7
  135. data/app/models/solr_document.rb +1 -0
  136. data/app/presenters/blacklight/clause_presenter.rb +1 -1
  137. data/app/presenters/blacklight/document_presenter.rb +23 -50
  138. data/app/presenters/blacklight/facet_field_presenter.rb +39 -14
  139. data/app/presenters/blacklight/facet_grouped_item_presenter.rb +1 -5
  140. data/app/presenters/blacklight/facet_item_pivot_presenter.rb +60 -0
  141. data/app/presenters/blacklight/facet_item_presenter.rb +3 -9
  142. data/app/presenters/blacklight/field_presenter.rb +1 -0
  143. data/app/presenters/blacklight/index_presenter.rb +2 -40
  144. data/app/presenters/blacklight/json_presenter.rb +7 -5
  145. data/app/presenters/blacklight/rendering/link_to_facet.rb +2 -5
  146. data/app/presenters/blacklight/show_presenter.rb +1 -9
  147. data/app/presenters/blacklight/thumbnail_presenter.rb +1 -1
  148. data/app/services/blacklight/bookmarks_search_builder.rb +22 -0
  149. data/app/services/blacklight/field_retriever.rb +12 -21
  150. data/app/services/blacklight/search_service.rb +10 -17
  151. data/app/values/blacklight/types.rb +0 -18
  152. data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +8 -1
  153. data/app/views/bookmarks/_tools.html.erb +7 -12
  154. data/app/views/catalog/_advanced_search_form.html.erb +0 -1
  155. data/app/views/catalog/_bookmark_control.html.erb +1 -1
  156. data/app/views/catalog/_citation.html.erb +1 -1
  157. data/app/views/catalog/_constraints.html.erb +1 -14
  158. data/app/views/catalog/_document.atom.builder +12 -14
  159. data/app/views/catalog/_document.html.erb +5 -3
  160. data/app/views/catalog/_document.rss.builder +2 -4
  161. data/app/views/catalog/_facet_layout.html.erb +2 -2
  162. data/app/views/catalog/_facets.html.erb +5 -4
  163. data/app/views/catalog/_home_text.html.erb +2 -14
  164. data/app/views/catalog/_per_page_widget.html.erb +10 -1
  165. data/app/views/catalog/_search_form.html.erb +2 -2
  166. data/app/views/catalog/_search_header.html.erb +1 -2
  167. data/app/views/catalog/_search_results.html.erb +2 -2
  168. data/app/views/catalog/_search_sidebar.html.erb +5 -1
  169. data/app/views/catalog/_show_main_content.html.erb +11 -16
  170. data/app/views/catalog/_show_sidebar.html.erb +2 -2
  171. data/app/views/catalog/_show_tools.html.erb +8 -14
  172. data/app/views/catalog/_view_type_group.html.erb +1 -1
  173. data/app/views/catalog/email.html.erb +2 -2
  174. data/app/views/catalog/email_success.html.erb +5 -6
  175. data/app/views/catalog/facet.html.erb +7 -5
  176. data/app/views/catalog/index.atom.builder +12 -14
  177. data/app/views/catalog/index.html.erb +4 -1
  178. data/app/views/catalog/index.json.jbuilder +19 -19
  179. data/app/views/catalog/index.rss.builder +1 -1
  180. data/app/views/catalog/opensearch.xml.builder +1 -1
  181. data/app/views/catalog/sms.html.erb +2 -2
  182. data/app/views/catalog/sms_success.html.erb +5 -6
  183. data/app/views/catalog/suggest.html.erb +3 -0
  184. data/app/views/kaminari/blacklight/_page.html.erb +2 -1
  185. data/app/views/layouts/blacklight/base.html.erb +13 -2
  186. data/app/views/search_history/index.html.erb +6 -2
  187. data/app/views/shared/_flash_messages.html.erb +1 -1
  188. data/app/views/shared/_modal.html.erb +3 -3
  189. data/blacklight.gemspec +7 -11
  190. data/config/importmap.rb +3 -0
  191. data/config/locales/blacklight.ar.yml +0 -1
  192. data/config/locales/blacklight.ca.yml +0 -1
  193. data/config/locales/blacklight.de.yml +0 -1
  194. data/config/locales/blacklight.en.yml +0 -2
  195. data/config/locales/blacklight.es.yml +0 -1
  196. data/config/locales/blacklight.fr.yml +0 -1
  197. data/config/locales/blacklight.hu.yml +0 -1
  198. data/config/locales/blacklight.it.yml +0 -1
  199. data/config/locales/blacklight.nl.yml +0 -1
  200. data/config/locales/blacklight.pt-BR.yml +0 -1
  201. data/config/locales/blacklight.sq.yml +0 -1
  202. data/config/locales/blacklight.zh.yml +0 -1
  203. data/config/routes.rb +3 -2
  204. data/db/migrate/20140202020201_create_searches.rb +1 -0
  205. data/db/migrate/20140202020202_create_bookmarks.rb +1 -0
  206. data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +1 -0
  207. data/docker-compose.yml +3 -2
  208. data/lib/blacklight/abstract_repository.rb +1 -6
  209. data/lib/blacklight/component.rb +47 -10
  210. data/lib/blacklight/configuration/context.rb +4 -4
  211. data/lib/blacklight/configuration/display_field.rb +7 -9
  212. data/lib/blacklight/configuration/facet_field.rb +17 -11
  213. data/lib/blacklight/configuration/field.rb +1 -0
  214. data/lib/blacklight/configuration/fields.rb +12 -15
  215. data/lib/blacklight/configuration/index_field.rb +1 -0
  216. data/lib/blacklight/configuration/null_display_field.rb +17 -0
  217. data/lib/blacklight/configuration/search_field.rb +1 -0
  218. data/lib/blacklight/configuration/show_field.rb +1 -0
  219. data/lib/blacklight/configuration/sort_field.rb +1 -0
  220. data/lib/blacklight/configuration/tool_config.rb +1 -0
  221. data/lib/blacklight/configuration/view_config.rb +14 -10
  222. data/lib/blacklight/configuration.rb +310 -365
  223. data/lib/blacklight/engine.rb +8 -24
  224. data/lib/blacklight/exceptions.rb +2 -2
  225. data/lib/blacklight/nested_open_struct_with_hash_access.rb +6 -12
  226. data/lib/blacklight/open_struct_with_hash_access.rb +23 -6
  227. data/lib/blacklight/parameters.rb +7 -21
  228. data/lib/blacklight/routes/exportable.rb +1 -0
  229. data/lib/blacklight/routes/searchable.rb +2 -1
  230. data/lib/blacklight/routes.rb +1 -0
  231. data/lib/blacklight/search_builder.rb +10 -10
  232. data/lib/blacklight/search_state/filter_field.rb +8 -25
  233. data/lib/blacklight/search_state/pivot_filter_field.rb +144 -0
  234. data/lib/blacklight/search_state.rb +23 -79
  235. data/lib/blacklight/solr/document.rb +1 -0
  236. data/lib/blacklight/solr/facet_paginator.rb +1 -0
  237. data/lib/blacklight/solr/repository.rb +4 -24
  238. data/lib/blacklight/solr/request.rb +1 -0
  239. data/lib/blacklight/solr/response/facets.rb +21 -5
  240. data/lib/blacklight/solr/response/group.rb +1 -0
  241. data/lib/blacklight/solr/response/group_response.rb +1 -0
  242. data/lib/blacklight/solr/response/more_like_this.rb +1 -0
  243. data/lib/blacklight/solr/response/pagination_methods.rb +4 -3
  244. data/lib/blacklight/solr/response/params.rb +5 -4
  245. data/lib/blacklight/solr/response/response.rb +1 -0
  246. data/lib/blacklight/solr/response/spelling.rb +1 -0
  247. data/lib/blacklight/solr/response.rb +16 -3
  248. data/lib/blacklight/solr/search_builder_behavior.rb +16 -35
  249. data/lib/blacklight/solr.rb +7 -0
  250. data/lib/blacklight/version.rb +1 -0
  251. data/lib/blacklight.rb +26 -14
  252. data/lib/generators/blacklight/assets/importmap_generator.rb +55 -0
  253. data/lib/generators/blacklight/assets/propshaft_generator.rb +25 -0
  254. data/lib/generators/blacklight/assets/sprockets_generator.rb +66 -0
  255. data/lib/generators/blacklight/assets_generator.rb +13 -86
  256. data/lib/generators/blacklight/controller_generator.rb +3 -2
  257. data/lib/generators/blacklight/document_generator.rb +1 -0
  258. data/lib/generators/blacklight/install_generator.rb +4 -3
  259. data/lib/generators/blacklight/models_generator.rb +1 -0
  260. data/lib/generators/blacklight/search_builder_generator.rb +1 -0
  261. data/lib/generators/blacklight/solr_generator.rb +1 -1
  262. data/lib/generators/blacklight/templates/catalog_controller.rb +34 -8
  263. data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +0 -69
  264. data/lib/generators/blacklight/test_support_generator.rb +4 -2
  265. data/lib/generators/blacklight/user_generator.rb +7 -9
  266. data/lib/railties/blacklight.rake +6 -7
  267. data/package.json +10 -13
  268. data/rollup.config.js +27 -0
  269. data/spec/components/blacklight/constraints_component_spec.rb +17 -13
  270. data/spec/components/blacklight/document/action_component_spec.rb +6 -1
  271. data/spec/components/blacklight/document_component_spec.rb +22 -131
  272. data/spec/components/blacklight/facet_component_spec.rb +3 -18
  273. data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +1 -2
  274. data/spec/components/blacklight/facet_field_list_component_spec.rb +7 -6
  275. data/spec/components/blacklight/facet_item_pivot_component_spec.rb +10 -9
  276. data/spec/components/blacklight/response/view_type_component_spec.rb +66 -0
  277. data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
  278. data/spec/components/blacklight/search_context_component_spec.rb +40 -0
  279. data/spec/controllers/blacklight/catalog/component_configuration_spec.rb +1 -6
  280. data/spec/controllers/blacklight/{base_spec.rb → catalog_spec.rb} +2 -2
  281. data/spec/controllers/bookmarks_controller_spec.rb +2 -3
  282. data/spec/controllers/catalog_controller_spec.rb +13 -135
  283. data/spec/features/advanced_search_spec.rb +0 -56
  284. data/spec/features/autocomplete_spec.rb +1 -1
  285. data/spec/features/axe_spec.rb +1 -6
  286. data/spec/features/bookmarks_spec.rb +1 -1
  287. data/spec/features/facets_spec.rb +1 -1
  288. data/spec/features/search_context_spec.rb +4 -10
  289. data/spec/features/search_results_spec.rb +0 -33
  290. data/spec/features/sitelinks_search_box.rb +13 -0
  291. data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +2 -138
  292. data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +0 -387
  293. data/spec/helpers/blacklight/icon_helper_behavior_spec.rb +8 -0
  294. data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +3 -20
  295. data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +5 -7
  296. data/spec/helpers/blacklight/url_helper_behavior_spec.rb +9 -131
  297. data/spec/helpers/blacklight_helper_spec.rb +8 -252
  298. data/spec/helpers/catalog_helper_spec.rb +7 -118
  299. data/spec/i18n_spec.rb +1 -0
  300. data/spec/integration/generators/blacklight/solr_generator_spec.rb +1 -1
  301. data/spec/lib/blacklight/component_spec.rb +27 -32
  302. data/spec/lib/blacklight/configuration/facet_field_spec.rb +27 -16
  303. data/spec/lib/blacklight/configuration/field_spec.rb +1 -1
  304. data/spec/lib/blacklight/configuration/view_config_spec.rb +1 -1
  305. data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +2 -2
  306. data/spec/lib/blacklight/parameters_spec.rb +1 -4
  307. data/spec/lib/blacklight/search_state/filter_field_spec.rb +4 -4
  308. data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +117 -0
  309. data/spec/lib/blacklight/search_state_spec.rb +80 -198
  310. data/spec/lib/tasks/blacklight_task_spec.rb +1 -0
  311. data/spec/models/blacklight/configuration_spec.rb +17 -51
  312. data/spec/models/blacklight/document/active_model_shim_spec.rb +2 -2
  313. data/spec/models/blacklight/icon_spec.rb +31 -15
  314. data/spec/models/blacklight/search_builder_spec.rb +9 -9
  315. data/spec/models/blacklight/solr/document_spec.rb +3 -3
  316. data/spec/models/blacklight/solr/repository_spec.rb +0 -45
  317. data/spec/models/blacklight/solr/response/facets_spec.rb +27 -27
  318. data/spec/models/blacklight/solr/response/group_response_spec.rb +1 -0
  319. data/spec/models/blacklight/solr/response/group_spec.rb +1 -0
  320. data/spec/models/blacklight/solr/response_spec.rb +9 -2
  321. data/spec/models/blacklight/solr/search_builder_spec.rb +24 -44
  322. data/spec/models/blacklight/user_spec.rb +22 -0
  323. data/spec/models/solr_document_spec.rb +2 -6
  324. data/spec/presenters/blacklight/clause_presenter_spec.rb +1 -0
  325. data/spec/presenters/blacklight/document_presenter_spec.rb +2 -3
  326. data/spec/presenters/blacklight/facet_field_presenter_spec.rb +85 -12
  327. data/spec/presenters/blacklight/facet_grouped_item_presenter_spec.rb +1 -0
  328. data/spec/presenters/blacklight/facet_item_presenter_spec.rb +14 -13
  329. data/spec/presenters/blacklight/field_presenter_spec.rb +0 -14
  330. data/spec/presenters/blacklight/index_presenter_spec.rb +2 -5
  331. data/spec/presenters/blacklight/json_presenter_spec.rb +1 -0
  332. data/spec/presenters/blacklight/link_alternate_presenter_spec.rb +3 -2
  333. data/spec/presenters/blacklight/show_presenter_spec.rb +20 -30
  334. data/spec/presenters/thumbnail_presenter_spec.rb +1 -1
  335. data/spec/requests/load_suggestions_spec.rb +16 -0
  336. data/spec/routing/catalog_routing_spec.rb +2 -1
  337. data/spec/services/blacklight/search_service_spec.rb +39 -76
  338. data/spec/spec_helper.rb +6 -4
  339. data/spec/support/controller_level_helpers.rb +1 -2
  340. data/spec/support/features/search_helpers.rb +39 -0
  341. data/spec/support/features/session_helpers.rb +1 -0
  342. data/spec/support/features.rb +3 -0
  343. data/spec/support/view_component_capybara_test_helpers.rb +8 -0
  344. data/spec/test_app_templates/Gemfile.extra +1 -0
  345. data/spec/test_app_templates/lib/generators/test_app_generator.rb +9 -2
  346. data/spec/views/catalog/_document.html.erb_spec.rb +3 -34
  347. data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +1 -1
  348. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -2
  349. data/spec/views/catalog/_search_header.erb_spec.rb +1 -0
  350. data/spec/views/catalog/_show_sidebar.erb_spec.rb +1 -0
  351. data/spec/views/catalog/_show_tools.html.erb_spec.rb +5 -66
  352. data/spec/views/catalog/_view_type_group.html.erb_spec.rb +17 -9
  353. data/spec/views/catalog/email_success.html.erb_spec.rb +2 -2
  354. data/spec/views/catalog/facet.html.erb_spec.rb +6 -3
  355. data/spec/views/catalog/index.atom.builder_spec.rb +17 -11
  356. data/spec/views/catalog/index.html.erb_spec.rb +5 -6
  357. data/spec/views/catalog/index.json.jbuilder_spec.rb +2 -2
  358. data/spec/views/catalog/show.html.erb_spec.rb +3 -25
  359. data/spec/views/catalog/sms_success.html.erb_spec.rb +2 -2
  360. data/tasks/blacklight.rake +11 -9
  361. data/template.demo.rb +7 -7
  362. metadata +78 -180
  363. data/.babelrc +0 -11
  364. data/app/assets/images/blacklight/list.svg +0 -1
  365. data/app/assets/images/blacklight/search.svg +0 -1
  366. data/app/assets/stylesheets/blacklight/_twitter_typeahead.scss +0 -37
  367. data/app/components/blacklight/content_areas_shim.rb +0 -13
  368. data/app/components/blacklight/search/per_page_component.html.erb +0 -2
  369. data/app/components/blacklight/search/per_page_component.rb +0 -50
  370. data/app/components/blacklight/system/dropdown_button_component.rb +0 -18
  371. data/app/controllers/concerns/blacklight/base.rb +0 -12
  372. data/app/controllers/concerns/blacklight/default_component_configuration.rb +0 -64
  373. data/app/controllers/concerns/blacklight/facet.rb +0 -69
  374. data/app/controllers/concerns/blacklight/search_fields.rb +0 -46
  375. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +0 -27
  376. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -188
  377. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +0 -97
  378. data/app/helpers/blacklight/suggest_helper_behavior.rb +0 -13
  379. data/app/javascript/blacklight/autocomplete.js +0 -36
  380. data/app/javascript/blacklight/facet_load.js +0 -22
  381. data/app/presenters/blacklight/search_bar_presenter.rb +0 -47
  382. data/app/views/catalog/_constraints_element.html.erb +0 -14
  383. data/app/views/catalog/_document_action.html.erb +0 -5
  384. data/app/views/catalog/_facet_group.html.erb +0 -5
  385. data/app/views/catalog/_facet_limit.html.erb +0 -3
  386. data/app/views/catalog/_index.html.erb +0 -1
  387. data/app/views/catalog/_index_header.html.erb +0 -22
  388. data/app/views/catalog/_previous_next_doc.html.erb +0 -2
  389. data/app/views/catalog/_show.html.erb +0 -6
  390. data/app/views/catalog/_show_header.html.erb +0 -2
  391. data/app/views/catalog/_thumbnail.html.erb +0 -1
  392. data/lib/blacklight/deprecations/engine_configuration.rb +0 -66
  393. data/lib/blacklight/deprecations/search_state_normalization.rb +0 -52
  394. data/spec/components/blacklight/header_component_spec.rb +0 -20
  395. data/spec/components/blacklight/icons/icon_component_spec.rb +0 -42
  396. data/spec/components/blacklight/response/pagination_component_spec.rb +0 -53
  397. data/spec/controllers/blacklight/facet_spec.rb +0 -33
  398. data/spec/controllers/blacklight/search_fields_spec.rb +0 -62
  399. data/spec/features/citation_spec.rb +0 -10
  400. data/spec/features/sitelinks_search_box_spec.rb +0 -13
  401. data/spec/features/sms_spec.rb +0 -12
  402. data/spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb +0 -26
  403. data/spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb +0 -92
  404. data/spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb +0 -101
  405. data/spec/helpers/blacklight/suggest_helper_behavior_spec.rb +0 -48
  406. data/spec/lib/blacklight/engine_spec.rb +0 -41
  407. data/spec/presenters/blacklight/search_bar_presenter_spec.rb +0 -94
  408. data/spec/services/blacklight/field_retriever_spec.rb +0 -17
  409. data/spec/support/view_component_test_helpers.rb +0 -35
  410. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  411. data/spec/views/catalog/_facet_group.html.erb_spec.rb +0 -84
  412. data/spec/views/catalog/_facets.html.erb_spec.rb +0 -15
  413. data/spec/views/catalog/_index.html.erb_spec.rb +0 -62
  414. data/spec/views/catalog/_index_header.html.erb_spec.rb +0 -35
  415. data/spec/views/catalog/_previous_next_doc.html.erb_spec.rb +0 -22
  416. data/spec/views/catalog/_show.html.erb_spec.rb +0 -62
  417. data/spec/views/catalog/_thumbnail.html.erb_spec.rb +0 -38
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.40.0
4
+ version: 8.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2024-10-25 00:00:00.000000000 Z
20
+ date: 2023-01-23 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '6.1'
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '7.3'
31
+ version: '8'
32
32
  type: :runtime
33
33
  prerelease: false
34
34
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,7 +38,7 @@ dependencies:
38
38
  version: '6.1'
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
- version: '7.3'
41
+ version: '8'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: globalid
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0.15'
84
- - !ruby/object:Gem::Dependency
85
- name: deprecation
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :runtime
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  - !ruby/object:Gem::Dependency
99
85
  name: i18n
100
86
  requirement: !ruby/object:Gem::Requirement
@@ -127,50 +113,16 @@ dependencies:
127
113
  name: view_component
128
114
  requirement: !ruby/object:Gem::Requirement
129
115
  requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '2.74'
133
- - - "<"
134
- - !ruby/object:Gem::Version
135
- version: '4'
136
- type: :runtime
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: '2.74'
143
- - - "<"
144
- - !ruby/object:Gem::Version
145
- version: '4'
146
- - !ruby/object:Gem::Dependency
147
- name: hashdiff
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- type: :runtime
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- - !ruby/object:Gem::Dependency
161
- name: zeitwerk
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
116
+ - - "~>"
165
117
  - !ruby/object:Gem::Version
166
- version: '0'
118
+ version: '2.66'
167
119
  type: :runtime
168
120
  prerelease: false
169
121
  version_requirements: !ruby/object:Gem::Requirement
170
122
  requirements:
171
- - - ">="
123
+ - - "~>"
172
124
  - !ruby/object:Gem::Version
173
- version: '0'
125
+ version: '2.66'
174
126
  - !ruby/object:Gem::Dependency
175
127
  name: rsolr
176
128
  requirement: !ruby/object:Gem::Requirement
@@ -195,14 +147,14 @@ dependencies:
195
147
  name: rspec-rails
196
148
  requirement: !ruby/object:Gem::Requirement
197
149
  requirements:
198
- - - ">="
150
+ - - "~>"
199
151
  - !ruby/object:Gem::Version
200
152
  version: '6.0'
201
153
  type: :development
202
154
  prerelease: false
203
155
  version_requirements: !ruby/object:Gem::Requirement
204
156
  requirements:
205
- - - ">="
157
+ - - "~>"
206
158
  - !ruby/object:Gem::Version
207
159
  version: '6.0'
208
160
  - !ruby/object:Gem::Dependency
@@ -247,6 +199,20 @@ dependencies:
247
199
  - - "~>"
248
200
  - !ruby/object:Gem::Version
249
201
  version: '3'
202
+ - !ruby/object:Gem::Dependency
203
+ name: webdrivers
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
250
216
  - !ruby/object:Gem::Dependency
251
217
  name: selenium-webdriver
252
218
  requirement: !ruby/object:Gem::Requirement
@@ -309,70 +275,42 @@ dependencies:
309
275
  requirements:
310
276
  - - "~>"
311
277
  - !ruby/object:Gem::Version
312
- version: '1.66'
313
- type: :development
314
- prerelease: false
315
- version_requirements: !ruby/object:Gem::Requirement
316
- requirements:
317
- - - "~>"
318
- - !ruby/object:Gem::Version
319
- version: '1.66'
320
- - !ruby/object:Gem::Dependency
321
- name: rubocop-capybara
322
- requirement: !ruby/object:Gem::Requirement
323
- requirements:
324
- - - "~>"
325
- - !ruby/object:Gem::Version
326
- version: '2.21'
278
+ version: '1.0'
327
279
  type: :development
328
280
  prerelease: false
329
281
  version_requirements: !ruby/object:Gem::Requirement
330
282
  requirements:
331
283
  - - "~>"
332
284
  - !ruby/object:Gem::Version
333
- version: '2.21'
285
+ version: '1.0'
334
286
  - !ruby/object:Gem::Dependency
335
287
  name: rubocop-rails
336
288
  requirement: !ruby/object:Gem::Requirement
337
289
  requirements:
338
- - - "~>"
290
+ - - ">="
339
291
  - !ruby/object:Gem::Version
340
- version: '2.6'
292
+ version: '0'
341
293
  type: :development
342
294
  prerelease: false
343
295
  version_requirements: !ruby/object:Gem::Requirement
344
296
  requirements:
345
- - - "~>"
297
+ - - ">="
346
298
  - !ruby/object:Gem::Version
347
- version: '2.6'
299
+ version: '0'
348
300
  - !ruby/object:Gem::Dependency
349
301
  name: rubocop-rspec
350
302
  requirement: !ruby/object:Gem::Requirement
351
303
  requirements:
352
- - - "~>"
353
- - !ruby/object:Gem::Version
354
- version: '3.0'
355
- type: :development
356
- prerelease: false
357
- version_requirements: !ruby/object:Gem::Requirement
358
- requirements:
359
- - - "~>"
360
- - !ruby/object:Gem::Version
361
- version: '3.0'
362
- - !ruby/object:Gem::Dependency
363
- name: rubocop-rspec_rails
364
- requirement: !ruby/object:Gem::Requirement
365
- requirements:
366
- - - "~>"
304
+ - - ">="
367
305
  - !ruby/object:Gem::Version
368
- version: '2.30'
306
+ version: '0'
369
307
  type: :development
370
308
  prerelease: false
371
309
  version_requirements: !ruby/object:Gem::Requirement
372
310
  requirements:
373
- - - "~>"
311
+ - - ">="
374
312
  - !ruby/object:Gem::Version
375
- version: '2.30'
313
+ version: '0'
376
314
  - !ruby/object:Gem::Dependency
377
315
  name: i18n-tasks
378
316
  requirement: !ruby/object:Gem::Requirement
@@ -412,7 +350,6 @@ executables: []
412
350
  extensions: []
413
351
  extra_rdoc_files: []
414
352
  files:
415
- - ".babelrc"
416
353
  - ".docker/app/Dockerfile"
417
354
  - ".docker/app/entrypoint.sh"
418
355
  - ".dockerignore"
@@ -432,11 +369,13 @@ files:
432
369
  - README.md
433
370
  - Rakefile
434
371
  - VERSION
435
- - app/assets/images/blacklight/list.svg
436
372
  - app/assets/images/blacklight/logo.png
437
- - app/assets/images/blacklight/search.svg
438
373
  - app/assets/images/favicon.ico
374
+ - app/assets/javascripts/blacklight/blacklight.esm.js
375
+ - app/assets/javascripts/blacklight/blacklight.esm.js.map
439
376
  - app/assets/javascripts/blacklight/blacklight.js
377
+ - app/assets/javascripts/blacklight/blacklight.js.map
378
+ - app/assets/stylesheets/blacklight/_autocomplete.scss
440
379
  - app/assets/stylesheets/blacklight/_balanced_list.scss
441
380
  - app/assets/stylesheets/blacklight/_blacklight_base.scss
442
381
  - app/assets/stylesheets/blacklight/_bookmark.scss
@@ -454,7 +393,6 @@ files:
454
393
  - app/assets/stylesheets/blacklight/_search_form.scss
455
394
  - app/assets/stylesheets/blacklight/_search_history.scss
456
395
  - app/assets/stylesheets/blacklight/_search_results.scss
457
- - app/assets/stylesheets/blacklight/_twitter_typeahead.scss
458
396
  - app/assets/stylesheets/blacklight/blacklight.scss
459
397
  - app/assets/stylesheets/blacklight/blacklight_defaults.scss
460
398
  - app/builders/blacklight/action_builder.rb
@@ -466,7 +404,6 @@ files:
466
404
  - app/components/blacklight/constraint_layout_component.rb
467
405
  - app/components/blacklight/constraints_component.html.erb
468
406
  - app/components/blacklight/constraints_component.rb
469
- - app/components/blacklight/content_areas_shim.rb
470
407
  - app/components/blacklight/document/action_component.html.erb
471
408
  - app/components/blacklight/document/action_component.rb
472
409
  - app/components/blacklight/document/actions_component.html.erb
@@ -479,6 +416,8 @@ files:
479
416
  - app/components/blacklight/document/group_component.rb
480
417
  - app/components/blacklight/document/more_like_this_component.html.erb
481
418
  - app/components/blacklight/document/more_like_this_component.rb
419
+ - app/components/blacklight/document/sidebar_component.html.erb
420
+ - app/components/blacklight/document/sidebar_component.rb
482
421
  - app/components/blacklight/document/thumbnail_component.html.erb
483
422
  - app/components/blacklight/document/thumbnail_component.rb
484
423
  - app/components/blacklight/document_component.html.erb
@@ -507,6 +446,9 @@ files:
507
446
  - app/components/blacklight/header_component.rb
508
447
  - app/components/blacklight/hidden_search_state_component.rb
509
448
  - app/components/blacklight/icons/icon_component.rb
449
+ - app/components/blacklight/icons/legacy_icon_component.rb
450
+ - app/components/blacklight/icons/list_component.rb
451
+ - app/components/blacklight/icons/search_component.rb
510
452
  - app/components/blacklight/metadata_field_component.html.erb
511
453
  - app/components/blacklight/metadata_field_component.rb
512
454
  - app/components/blacklight/metadata_field_layout_component.html.erb
@@ -523,18 +465,19 @@ files:
523
465
  - app/components/blacklight/response/view_type_button_component.rb
524
466
  - app/components/blacklight/response/view_type_component.html.erb
525
467
  - app/components/blacklight/response/view_type_component.rb
526
- - app/components/blacklight/search/per_page_component.html.erb
527
- - app/components/blacklight/search/per_page_component.rb
468
+ - app/components/blacklight/search/sidebar_component.html.erb
469
+ - app/components/blacklight/search/sidebar_component.rb
528
470
  - app/components/blacklight/search_bar_component.html.erb
529
471
  - app/components/blacklight/search_bar_component.rb
530
472
  - app/components/blacklight/search_button_component.rb
531
473
  - app/components/blacklight/search_context_component.html.erb
532
474
  - app/components/blacklight/search_context_component.rb
475
+ - app/components/blacklight/search_header_component.html.erb
476
+ - app/components/blacklight/search_header_component.rb
533
477
  - app/components/blacklight/search_history_constraint_layout_component.rb
534
478
  - app/components/blacklight/search_navbar_component.html.erb
535
479
  - app/components/blacklight/search_navbar_component.rb
536
480
  - app/components/blacklight/start_over_button_component.rb
537
- - app/components/blacklight/system/dropdown_button_component.rb
538
481
  - app/components/blacklight/system/dropdown_component.html.erb
539
482
  - app/components/blacklight/system/dropdown_component.rb
540
483
  - app/components/blacklight/system/flash_message_component.html.erb
@@ -545,14 +488,10 @@ files:
545
488
  - app/components/blacklight/top_navbar_component.rb
546
489
  - app/controllers/bookmarks_controller.rb
547
490
  - app/controllers/catalog_controller.rb
548
- - app/controllers/concerns/blacklight/base.rb
549
491
  - app/controllers/concerns/blacklight/bookmarks.rb
550
492
  - app/controllers/concerns/blacklight/catalog.rb
551
493
  - app/controllers/concerns/blacklight/controller.rb
552
- - app/controllers/concerns/blacklight/default_component_configuration.rb
553
- - app/controllers/concerns/blacklight/facet.rb
554
494
  - app/controllers/concerns/blacklight/search_context.rb
555
- - app/controllers/concerns/blacklight/search_fields.rb
556
495
  - app/controllers/concerns/blacklight/search_history.rb
557
496
  - app/controllers/concerns/blacklight/searchable.rb
558
497
  - app/controllers/concerns/blacklight/token_based_user.rb
@@ -562,23 +501,19 @@ files:
562
501
  - app/helpers/blacklight/component_helper_behavior.rb
563
502
  - app/helpers/blacklight/configuration_helper_behavior.rb
564
503
  - app/helpers/blacklight/facets_helper_behavior.rb
565
- - app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb
566
504
  - app/helpers/blacklight/icon_helper_behavior.rb
567
505
  - app/helpers/blacklight/layout_helper_behavior.rb
568
- - app/helpers/blacklight/render_constraints_helper_behavior.rb
569
506
  - app/helpers/blacklight/render_partials_helper_behavior.rb
570
- - app/helpers/blacklight/search_history_constraints_helper_behavior.rb
571
- - app/helpers/blacklight/suggest_helper_behavior.rb
572
507
  - app/helpers/blacklight/url_helper_behavior.rb
573
508
  - app/helpers/blacklight_helper.rb
574
509
  - app/helpers/catalog_helper.rb
575
- - app/javascript/blacklight/autocomplete.js
576
510
  - app/javascript/blacklight/bookmark_toggle.js
577
511
  - app/javascript/blacklight/button_focus.js
578
512
  - app/javascript/blacklight/checkbox_submit.js
579
513
  - app/javascript/blacklight/core.js
580
- - app/javascript/blacklight/facet_load.js
514
+ - app/javascript/blacklight/index.js
581
515
  - app/javascript/blacklight/modal.js
516
+ - app/javascript/blacklight/modalForm.js
582
517
  - app/javascript/blacklight/search_context.js
583
518
  - app/models/blacklight/facet_paginator.rb
584
519
  - app/models/blacklight/icon.rb
@@ -606,6 +541,7 @@ files:
606
541
  - app/presenters/blacklight/document_presenter.rb
607
542
  - app/presenters/blacklight/facet_field_presenter.rb
608
543
  - app/presenters/blacklight/facet_grouped_item_presenter.rb
544
+ - app/presenters/blacklight/facet_item_pivot_presenter.rb
609
545
  - app/presenters/blacklight/facet_item_presenter.rb
610
546
  - app/presenters/blacklight/field_presenter.rb
611
547
  - app/presenters/blacklight/inclusive_facet_item_presenter.rb
@@ -619,9 +555,9 @@ files:
619
555
  - app/presenters/blacklight/rendering/microdata.rb
620
556
  - app/presenters/blacklight/rendering/pipeline.rb
621
557
  - app/presenters/blacklight/rendering/terminator.rb
622
- - app/presenters/blacklight/search_bar_presenter.rb
623
558
  - app/presenters/blacklight/show_presenter.rb
624
559
  - app/presenters/blacklight/thumbnail_presenter.rb
560
+ - app/services/blacklight/bookmarks_search_builder.rb
625
561
  - app/services/blacklight/document_factory.rb
626
562
  - app/services/blacklight/field_retriever.rb
627
563
  - app/services/blacklight/search_params_yaml_coder.rb
@@ -637,18 +573,14 @@ files:
637
573
  - app/views/catalog/_bookmark_control.html.erb
638
574
  - app/views/catalog/_citation.html.erb
639
575
  - app/views/catalog/_constraints.html.erb
640
- - app/views/catalog/_constraints_element.html.erb
641
576
  - app/views/catalog/_did_you_mean.html.erb
642
577
  - app/views/catalog/_document.atom.builder
643
578
  - app/views/catalog/_document.html.erb
644
579
  - app/views/catalog/_document.rss.builder
645
- - app/views/catalog/_document_action.html.erb
646
580
  - app/views/catalog/_document_list.html.erb
647
581
  - app/views/catalog/_email_form.html.erb
648
- - app/views/catalog/_facet_group.html.erb
649
582
  - app/views/catalog/_facet_index_navigation.html.erb
650
583
  - app/views/catalog/_facet_layout.html.erb
651
- - app/views/catalog/_facet_limit.html.erb
652
584
  - app/views/catalog/_facet_pagination.html.erb
653
585
  - app/views/catalog/_facet_pivot.html.erb
654
586
  - app/views/catalog/_facets.html.erb
@@ -656,20 +588,15 @@ files:
656
588
  - app/views/catalog/_group.html.erb
657
589
  - app/views/catalog/_home.html.erb
658
590
  - app/views/catalog/_home_text.html.erb
659
- - app/views/catalog/_index.html.erb
660
- - app/views/catalog/_index_header.html.erb
661
591
  - app/views/catalog/_opensearch_response_metadata.html.erb
662
592
  - app/views/catalog/_paginate_compact.html.erb
663
593
  - app/views/catalog/_per_page_widget.html.erb
664
- - app/views/catalog/_previous_next_doc.html.erb
665
594
  - app/views/catalog/_results_pagination.html.erb
666
595
  - app/views/catalog/_search_form.html.erb
667
596
  - app/views/catalog/_search_header.html.erb
668
597
  - app/views/catalog/_search_results.html.erb
669
598
  - app/views/catalog/_search_results_header.html.erb
670
599
  - app/views/catalog/_search_sidebar.html.erb
671
- - app/views/catalog/_show.html.erb
672
- - app/views/catalog/_show_header.html.erb
673
600
  - app/views/catalog/_show_main_content.html.erb
674
601
  - app/views/catalog/_show_more_like_this.html.erb
675
602
  - app/views/catalog/_show_sidebar.html.erb
@@ -678,7 +605,6 @@ files:
678
605
  - app/views/catalog/_sort_and_per_page.html.erb
679
606
  - app/views/catalog/_sort_widget.html.erb
680
607
  - app/views/catalog/_start_over.html.erb
681
- - app/views/catalog/_thumbnail.html.erb
682
608
  - app/views/catalog/_view_type_group.html.erb
683
609
  - app/views/catalog/_zero_results.html.erb
684
610
  - app/views/catalog/advanced_search.html.erb
@@ -698,6 +624,7 @@ files:
698
624
  - app/views/catalog/show.json.jbuilder
699
625
  - app/views/catalog/sms.html.erb
700
626
  - app/views/catalog/sms_success.html.erb
627
+ - app/views/catalog/suggest.html.erb
701
628
  - app/views/kaminari/blacklight/_first_page.html.erb
702
629
  - app/views/kaminari/blacklight/_gap.html.erb
703
630
  - app/views/kaminari/blacklight/_last_page.html.erb
@@ -723,6 +650,7 @@ files:
723
650
  - app/views/shared/_user_util_links.html.erb
724
651
  - blacklight.gemspec
725
652
  - config/i18n-tasks.yml
653
+ - config/importmap.rb
726
654
  - config/locales/blacklight.ar.yml
727
655
  - config/locales/blacklight.ca.yml
728
656
  - config/locales/blacklight.de.yml
@@ -750,14 +678,13 @@ files:
750
678
  - lib/blacklight/configuration/field.rb
751
679
  - lib/blacklight/configuration/fields.rb
752
680
  - lib/blacklight/configuration/index_field.rb
681
+ - lib/blacklight/configuration/null_display_field.rb
753
682
  - lib/blacklight/configuration/null_field.rb
754
683
  - lib/blacklight/configuration/search_field.rb
755
684
  - lib/blacklight/configuration/show_field.rb
756
685
  - lib/blacklight/configuration/sort_field.rb
757
686
  - lib/blacklight/configuration/tool_config.rb
758
687
  - lib/blacklight/configuration/view_config.rb
759
- - lib/blacklight/deprecations/engine_configuration.rb
760
- - lib/blacklight/deprecations/search_state_normalization.rb
761
688
  - lib/blacklight/engine.rb
762
689
  - lib/blacklight/exceptions.rb
763
690
  - lib/blacklight/nested_open_struct_with_hash_access.rb
@@ -770,6 +697,7 @@ files:
770
697
  - lib/blacklight/search_builder.rb
771
698
  - lib/blacklight/search_state.rb
772
699
  - lib/blacklight/search_state/filter_field.rb
700
+ - lib/blacklight/search_state/pivot_filter_field.rb
773
701
  - lib/blacklight/solr.rb
774
702
  - lib/blacklight/solr/document.rb
775
703
  - lib/blacklight/solr/facet_paginator.rb
@@ -786,6 +714,9 @@ files:
786
714
  - lib/blacklight/solr/response/spelling.rb
787
715
  - lib/blacklight/solr/search_builder_behavior.rb
788
716
  - lib/blacklight/version.rb
717
+ - lib/generators/blacklight/assets/importmap_generator.rb
718
+ - lib/generators/blacklight/assets/propshaft_generator.rb
719
+ - lib/generators/blacklight/assets/sprockets_generator.rb
789
720
  - lib/generators/blacklight/assets_generator.rb
790
721
  - lib/generators/blacklight/controller_generator.rb
791
722
  - lib/generators/blacklight/document_generator.rb
@@ -822,6 +753,7 @@ files:
822
753
  - lib/generators/blacklight/user_generator.rb
823
754
  - lib/railties/blacklight.rake
824
755
  - package.json
756
+ - rollup.config.js
825
757
  - spec/components/blacklight/advanced_search_form_component_spec.rb
826
758
  - spec/components/blacklight/constraint_layout_component_spec.rb
827
759
  - spec/components/blacklight/constraints_component_spec.rb
@@ -834,21 +766,18 @@ files:
834
766
  - spec/components/blacklight/facet_field_list_component_spec.rb
835
767
  - spec/components/blacklight/facet_item_component_spec.rb
836
768
  - spec/components/blacklight/facet_item_pivot_component_spec.rb
837
- - spec/components/blacklight/header_component_spec.rb
838
769
  - spec/components/blacklight/hidden_search_state_component_spec.rb
839
- - spec/components/blacklight/icons/icon_component_spec.rb
840
770
  - spec/components/blacklight/metadata_field_component_spec.rb
841
- - spec/components/blacklight/response/pagination_component_spec.rb
842
771
  - spec/components/blacklight/response/spellcheck_component_spec.rb
772
+ - spec/components/blacklight/response/view_type_component_spec.rb
843
773
  - spec/components/blacklight/search_bar_component_spec.rb
774
+ - spec/components/blacklight/search_context_component_spec.rb
844
775
  - spec/components/blacklight/start_over_button_component_spec.rb
845
776
  - spec/components/blacklight/system/flash_message_component_spec.rb
846
777
  - spec/controllers/alternate_controller_spec.rb
847
778
  - spec/controllers/application_controller_spec.rb
848
- - spec/controllers/blacklight/base_spec.rb
849
779
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
850
- - spec/controllers/blacklight/facet_spec.rb
851
- - spec/controllers/blacklight/search_fields_spec.rb
780
+ - spec/controllers/blacklight/catalog_spec.rb
852
781
  - spec/controllers/bookmarks_controller_spec.rb
853
782
  - spec/controllers/catalog_controller_spec.rb
854
783
  - spec/controllers/search_history_controller_spec.rb
@@ -857,7 +786,6 @@ files:
857
786
  - spec/features/autocomplete_spec.rb
858
787
  - spec/features/axe_spec.rb
859
788
  - spec/features/bookmarks_spec.rb
860
- - spec/features/citation_spec.rb
861
789
  - spec/features/did_you_mean_spec.rb
862
790
  - spec/features/facet_missing_spec.rb
863
791
  - spec/features/facets_spec.rb
@@ -871,18 +799,13 @@ files:
871
799
  - spec/features/search_results_spec.rb
872
800
  - spec/features/search_sort_spec.rb
873
801
  - spec/features/search_spec.rb
874
- - spec/features/sitelinks_search_box_spec.rb
875
- - spec/features/sms_spec.rb
802
+ - spec/features/sitelinks_search_box.rb
876
803
  - spec/fixtures/sample_solr_documents.yml
877
804
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
878
805
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb
879
- - spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb
880
806
  - spec/helpers/blacklight/icon_helper_behavior_spec.rb
881
807
  - spec/helpers/blacklight/layout_helper_behavior_spec.rb
882
- - spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb
883
808
  - spec/helpers/blacklight/render_partials_helper_behavior_spec.rb
884
- - spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb
885
- - spec/helpers/blacklight/suggest_helper_behavior_spec.rb
886
809
  - spec/helpers/blacklight/url_helper_behavior_spec.rb
887
810
  - spec/helpers/blacklight_helper_spec.rb
888
811
  - spec/helpers/catalog_helper_spec.rb
@@ -892,11 +815,11 @@ files:
892
815
  - spec/lib/blacklight/configuration/facet_field_spec.rb
893
816
  - spec/lib/blacklight/configuration/field_spec.rb
894
817
  - spec/lib/blacklight/configuration/view_config_spec.rb
895
- - spec/lib/blacklight/engine_spec.rb
896
818
  - spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
897
819
  - spec/lib/blacklight/open_struct_with_hash_access_spec.rb
898
820
  - spec/lib/blacklight/parameters_spec.rb
899
821
  - spec/lib/blacklight/search_state/filter_field_spec.rb
822
+ - spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
900
823
  - spec/lib/blacklight/search_state_spec.rb
901
824
  - spec/lib/blacklight_spec.rb
902
825
  - spec/lib/tasks/blacklight_task_spec.rb
@@ -937,40 +860,32 @@ files:
937
860
  - spec/presenters/blacklight/index_presenter_spec.rb
938
861
  - spec/presenters/blacklight/json_presenter_spec.rb
939
862
  - spec/presenters/blacklight/link_alternate_presenter_spec.rb
940
- - spec/presenters/blacklight/search_bar_presenter_spec.rb
941
863
  - spec/presenters/blacklight/show_presenter_spec.rb
942
864
  - spec/presenters/pipeline_spec.rb
943
865
  - spec/presenters/thumbnail_presenter_spec.rb
866
+ - spec/requests/load_suggestions_spec.rb
944
867
  - spec/routing/catalog_routing_spec.rb
945
868
  - spec/routing/search_history_spec.rb
946
- - spec/services/blacklight/field_retriever_spec.rb
947
869
  - spec/services/blacklight/search_service_spec.rb
948
870
  - spec/spec_helper.rb
949
871
  - spec/support/controller_level_helpers.rb
950
872
  - spec/support/features.rb
873
+ - spec/support/features/search_helpers.rb
951
874
  - spec/support/features/session_helpers.rb
952
875
  - spec/support/presenter_test_helpers.rb
953
- - spec/support/view_component_test_helpers.rb
876
+ - spec/support/view_component_capybara_test_helpers.rb
954
877
  - spec/test_app_templates/Gemfile.extra
955
878
  - spec/test_app_templates/lib/generators/test_app_generator.rb
956
- - spec/views/catalog/_constraints.html.erb_spec.rb
957
879
  - spec/views/catalog/_document.html.erb_spec.rb
958
880
  - spec/views/catalog/_document_list.html.erb_spec.rb
959
- - spec/views/catalog/_facet_group.html.erb_spec.rb
960
881
  - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
961
882
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
962
- - spec/views/catalog/_facets.html.erb_spec.rb
963
- - spec/views/catalog/_index.html.erb_spec.rb
964
- - spec/views/catalog/_index_header.html.erb_spec.rb
965
883
  - spec/views/catalog/_paginate_compact.html.erb_spec.rb
966
- - spec/views/catalog/_previous_next_doc.html.erb_spec.rb
967
884
  - spec/views/catalog/_search_header.erb_spec.rb
968
- - spec/views/catalog/_show.html.erb_spec.rb
969
885
  - spec/views/catalog/_show_sidebar.erb_spec.rb
970
886
  - spec/views/catalog/_show_tools.html.erb_spec.rb
971
887
  - spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
972
888
  - spec/views/catalog/_sort_widget.html.erb_spec.rb
973
- - spec/views/catalog/_thumbnail.html.erb_spec.rb
974
889
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
975
890
  - spec/views/catalog/email_success.html.erb_spec.rb
976
891
  - spec/views/catalog/facet.html.erb_spec.rb
@@ -1000,11 +915,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
1000
915
  version: '2.7'
1001
916
  required_rubygems_version: !ruby/object:Gem::Requirement
1002
917
  requirements:
1003
- - - ">="
918
+ - - ">"
1004
919
  - !ruby/object:Gem::Version
1005
- version: '0'
920
+ version: 1.3.1
1006
921
  requirements: []
1007
- rubygems_version: 3.5.9
922
+ rubygems_version: 3.3.26
1008
923
  signing_key:
1009
924
  specification_version: 4
1010
925
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
@@ -1022,21 +937,18 @@ test_files:
1022
937
  - spec/components/blacklight/facet_field_list_component_spec.rb
1023
938
  - spec/components/blacklight/facet_item_component_spec.rb
1024
939
  - spec/components/blacklight/facet_item_pivot_component_spec.rb
1025
- - spec/components/blacklight/header_component_spec.rb
1026
940
  - spec/components/blacklight/hidden_search_state_component_spec.rb
1027
- - spec/components/blacklight/icons/icon_component_spec.rb
1028
941
  - spec/components/blacklight/metadata_field_component_spec.rb
1029
- - spec/components/blacklight/response/pagination_component_spec.rb
1030
942
  - spec/components/blacklight/response/spellcheck_component_spec.rb
943
+ - spec/components/blacklight/response/view_type_component_spec.rb
1031
944
  - spec/components/blacklight/search_bar_component_spec.rb
945
+ - spec/components/blacklight/search_context_component_spec.rb
1032
946
  - spec/components/blacklight/start_over_button_component_spec.rb
1033
947
  - spec/components/blacklight/system/flash_message_component_spec.rb
1034
948
  - spec/controllers/alternate_controller_spec.rb
1035
949
  - spec/controllers/application_controller_spec.rb
1036
- - spec/controllers/blacklight/base_spec.rb
1037
950
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
1038
- - spec/controllers/blacklight/facet_spec.rb
1039
- - spec/controllers/blacklight/search_fields_spec.rb
951
+ - spec/controllers/blacklight/catalog_spec.rb
1040
952
  - spec/controllers/bookmarks_controller_spec.rb
1041
953
  - spec/controllers/catalog_controller_spec.rb
1042
954
  - spec/controllers/search_history_controller_spec.rb
@@ -1045,7 +957,6 @@ test_files:
1045
957
  - spec/features/autocomplete_spec.rb
1046
958
  - spec/features/axe_spec.rb
1047
959
  - spec/features/bookmarks_spec.rb
1048
- - spec/features/citation_spec.rb
1049
960
  - spec/features/did_you_mean_spec.rb
1050
961
  - spec/features/facet_missing_spec.rb
1051
962
  - spec/features/facets_spec.rb
@@ -1059,18 +970,13 @@ test_files:
1059
970
  - spec/features/search_results_spec.rb
1060
971
  - spec/features/search_sort_spec.rb
1061
972
  - spec/features/search_spec.rb
1062
- - spec/features/sitelinks_search_box_spec.rb
1063
- - spec/features/sms_spec.rb
973
+ - spec/features/sitelinks_search_box.rb
1064
974
  - spec/fixtures/sample_solr_documents.yml
1065
975
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
1066
976
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb
1067
- - spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb
1068
977
  - spec/helpers/blacklight/icon_helper_behavior_spec.rb
1069
978
  - spec/helpers/blacklight/layout_helper_behavior_spec.rb
1070
- - spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb
1071
979
  - spec/helpers/blacklight/render_partials_helper_behavior_spec.rb
1072
- - spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb
1073
- - spec/helpers/blacklight/suggest_helper_behavior_spec.rb
1074
980
  - spec/helpers/blacklight/url_helper_behavior_spec.rb
1075
981
  - spec/helpers/blacklight_helper_spec.rb
1076
982
  - spec/helpers/catalog_helper_spec.rb
@@ -1080,11 +986,11 @@ test_files:
1080
986
  - spec/lib/blacklight/configuration/facet_field_spec.rb
1081
987
  - spec/lib/blacklight/configuration/field_spec.rb
1082
988
  - spec/lib/blacklight/configuration/view_config_spec.rb
1083
- - spec/lib/blacklight/engine_spec.rb
1084
989
  - spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
1085
990
  - spec/lib/blacklight/open_struct_with_hash_access_spec.rb
1086
991
  - spec/lib/blacklight/parameters_spec.rb
1087
992
  - spec/lib/blacklight/search_state/filter_field_spec.rb
993
+ - spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
1088
994
  - spec/lib/blacklight/search_state_spec.rb
1089
995
  - spec/lib/blacklight_spec.rb
1090
996
  - spec/lib/tasks/blacklight_task_spec.rb
@@ -1125,40 +1031,32 @@ test_files:
1125
1031
  - spec/presenters/blacklight/index_presenter_spec.rb
1126
1032
  - spec/presenters/blacklight/json_presenter_spec.rb
1127
1033
  - spec/presenters/blacklight/link_alternate_presenter_spec.rb
1128
- - spec/presenters/blacklight/search_bar_presenter_spec.rb
1129
1034
  - spec/presenters/blacklight/show_presenter_spec.rb
1130
1035
  - spec/presenters/pipeline_spec.rb
1131
1036
  - spec/presenters/thumbnail_presenter_spec.rb
1037
+ - spec/requests/load_suggestions_spec.rb
1132
1038
  - spec/routing/catalog_routing_spec.rb
1133
1039
  - spec/routing/search_history_spec.rb
1134
- - spec/services/blacklight/field_retriever_spec.rb
1135
1040
  - spec/services/blacklight/search_service_spec.rb
1136
1041
  - spec/spec_helper.rb
1137
1042
  - spec/support/controller_level_helpers.rb
1138
1043
  - spec/support/features.rb
1044
+ - spec/support/features/search_helpers.rb
1139
1045
  - spec/support/features/session_helpers.rb
1140
1046
  - spec/support/presenter_test_helpers.rb
1141
- - spec/support/view_component_test_helpers.rb
1047
+ - spec/support/view_component_capybara_test_helpers.rb
1142
1048
  - spec/test_app_templates/Gemfile.extra
1143
1049
  - spec/test_app_templates/lib/generators/test_app_generator.rb
1144
- - spec/views/catalog/_constraints.html.erb_spec.rb
1145
1050
  - spec/views/catalog/_document.html.erb_spec.rb
1146
1051
  - spec/views/catalog/_document_list.html.erb_spec.rb
1147
- - spec/views/catalog/_facet_group.html.erb_spec.rb
1148
1052
  - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
1149
1053
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
1150
- - spec/views/catalog/_facets.html.erb_spec.rb
1151
- - spec/views/catalog/_index.html.erb_spec.rb
1152
- - spec/views/catalog/_index_header.html.erb_spec.rb
1153
1054
  - spec/views/catalog/_paginate_compact.html.erb_spec.rb
1154
- - spec/views/catalog/_previous_next_doc.html.erb_spec.rb
1155
1055
  - spec/views/catalog/_search_header.erb_spec.rb
1156
- - spec/views/catalog/_show.html.erb_spec.rb
1157
1056
  - spec/views/catalog/_show_sidebar.erb_spec.rb
1158
1057
  - spec/views/catalog/_show_tools.html.erb_spec.rb
1159
1058
  - spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
1160
1059
  - spec/views/catalog/_sort_widget.html.erb_spec.rb
1161
- - spec/views/catalog/_thumbnail.html.erb_spec.rb
1162
1060
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
1163
1061
  - spec/views/catalog/email_success.html.erb_spec.rb
1164
1062
  - spec/views/catalog/facet.html.erb_spec.rb