blacklight 7.34.0 → 8.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. checksums.yaml +4 -4
  2. data/.env +2 -3
  3. data/.github/workflows/ruby.yml +32 -127
  4. data/.rubocop.yml +241 -2
  5. data/.rubocop_todo.yml +214 -270
  6. data/Gemfile +7 -10
  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 -489
  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/_facets.scss +72 -44
  18. data/app/assets/stylesheets/blacklight/_header.scss +0 -15
  19. data/app/assets/stylesheets/blacklight/_icons.scss +0 -14
  20. data/app/assets/stylesheets/blacklight/_mixins.scss +20 -0
  21. data/app/assets/stylesheets/blacklight/_modal.scss +8 -2
  22. data/app/assets/stylesheets/blacklight/_search_form.scss +30 -3
  23. data/app/assets/stylesheets/blacklight/_search_history.scss +10 -1
  24. data/app/assets/stylesheets/blacklight/_search_results.scss +6 -2
  25. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +4 -1
  26. data/app/builders/blacklight/action_builder.rb +18 -9
  27. data/app/components/blacklight/advanced_search_form_component.html.erb +2 -2
  28. data/app/components/blacklight/advanced_search_form_component.rb +8 -10
  29. data/app/components/blacklight/constraints_component.rb +27 -37
  30. data/app/components/blacklight/document/action_component.rb +9 -9
  31. data/app/components/blacklight/document/actions_component.rb +2 -2
  32. data/app/components/blacklight/document/bookmark_component.html.erb +9 -0
  33. data/app/components/blacklight/document/bookmark_component.rb +4 -2
  34. data/app/components/blacklight/document/citation_component.rb +5 -3
  35. data/app/components/blacklight/document/group_component.rb +7 -3
  36. data/app/components/blacklight/document/sidebar_component.html.erb +2 -0
  37. data/app/components/blacklight/document/sidebar_component.rb +16 -0
  38. data/app/components/blacklight/document/thumbnail_component.html.erb +2 -7
  39. data/app/components/blacklight/document/thumbnail_component.rb +1 -9
  40. data/app/components/blacklight/document_component.html.erb +4 -0
  41. data/app/components/blacklight/document_component.rb +14 -53
  42. data/app/components/blacklight/document_metadata_component.html.erb +2 -4
  43. data/app/components/blacklight/document_metadata_component.rb +5 -10
  44. data/app/components/blacklight/document_title_component.rb +4 -1
  45. data/app/components/blacklight/facet_component.rb +1 -1
  46. data/app/components/blacklight/facet_field_checkboxes_component.html.erb +3 -3
  47. data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
  48. data/app/components/blacklight/facet_field_component.html.erb +5 -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/legacy_icon_component.rb +30 -0
  58. data/app/components/blacklight/icons/list_component.rb +16 -0
  59. data/app/components/blacklight/icons/search_component.rb +16 -0
  60. data/app/components/blacklight/metadata_field_component.html.erb +2 -2
  61. data/app/components/blacklight/metadata_field_component.rb +24 -8
  62. data/app/components/blacklight/metadata_field_layout_component.rb +4 -25
  63. data/app/components/blacklight/response/facet_group_component.html.erb +3 -5
  64. data/app/components/blacklight/response/facet_group_component.rb +29 -8
  65. data/app/components/blacklight/response/pagination_component.html.erb +1 -1
  66. data/app/components/blacklight/response/pagination_component.rb +1 -5
  67. data/app/components/blacklight/response/sort_component.rb +1 -1
  68. data/app/components/blacklight/response/spellcheck_component.rb +17 -6
  69. data/app/components/blacklight/response/view_type_button_component.rb +2 -6
  70. data/app/components/blacklight/response/view_type_component.rb +3 -5
  71. data/app/components/blacklight/search/sidebar_component.html.erb +8 -0
  72. data/app/components/blacklight/search/sidebar_component.rb +17 -0
  73. data/app/components/blacklight/search_bar_component.html.erb +20 -15
  74. data/app/components/blacklight/search_bar_component.rb +2 -16
  75. data/app/components/blacklight/search_button_component.rb +3 -3
  76. data/app/components/blacklight/search_context_component.rb +43 -9
  77. data/app/components/blacklight/search_header_component.html.erb +2 -0
  78. data/app/components/blacklight/search_header_component.rb +6 -0
  79. data/app/components/blacklight/start_over_button_component.rb +5 -3
  80. data/app/components/blacklight/system/dropdown_component.rb +2 -2
  81. data/app/components/blacklight/system/flash_message_component.html.erb +3 -1
  82. data/app/components/blacklight/system/flash_message_component.rb +11 -2
  83. data/app/components/blacklight/system/modal_component.html.erb +1 -1
  84. data/app/components/blacklight/system/modal_component.rb +0 -2
  85. data/app/components/blacklight/top_navbar_component.html.erb +1 -1
  86. data/app/components/blacklight/top_navbar_component.rb +0 -4
  87. data/app/controllers/bookmarks_controller.rb +1 -0
  88. data/app/controllers/catalog_controller.rb +1 -0
  89. data/app/controllers/concerns/blacklight/bookmarks.rb +10 -5
  90. data/app/controllers/concerns/blacklight/catalog.rb +21 -75
  91. data/app/controllers/concerns/blacklight/controller.rb +3 -41
  92. data/app/controllers/concerns/blacklight/search_context.rb +25 -7
  93. data/app/controllers/concerns/blacklight/search_history.rb +2 -0
  94. data/app/controllers/concerns/blacklight/searchable.rb +12 -1
  95. data/app/controllers/concerns/blacklight/token_based_user.rb +1 -0
  96. data/app/controllers/search_history_controller.rb +1 -0
  97. data/app/helpers/blacklight/blacklight_helper_behavior.rb +12 -310
  98. data/app/helpers/blacklight/catalog_helper_behavior.rb +22 -137
  99. data/app/helpers/blacklight/component_helper_behavior.rb +2 -53
  100. data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -117
  101. data/app/helpers/blacklight/facets_helper_behavior.rb +4 -321
  102. data/app/helpers/blacklight/icon_helper_behavior.rb +5 -4
  103. data/app/helpers/blacklight/layout_helper_behavior.rb +1 -0
  104. data/app/helpers/blacklight/render_partials_helper_behavior.rb +11 -31
  105. data/app/helpers/blacklight/url_helper_behavior.rb +13 -97
  106. data/app/helpers/blacklight_helper.rb +1 -0
  107. data/app/helpers/catalog_helper.rb +1 -0
  108. data/app/javascript/blacklight/bookmark_toggle.js +13 -19
  109. data/app/javascript/blacklight/button_focus.js +12 -10
  110. data/app/javascript/blacklight/checkbox_submit.js +68 -122
  111. data/app/javascript/blacklight/core.js +6 -5
  112. data/app/javascript/blacklight/index.js +13 -0
  113. data/app/javascript/blacklight/modal.js +99 -164
  114. data/app/javascript/blacklight/modalForm.js +60 -0
  115. data/app/javascript/blacklight/search_context.js +45 -55
  116. data/app/models/blacklight/facet_paginator.rb +3 -2
  117. data/app/models/blacklight/icon.rb +4 -2
  118. data/app/models/bookmark.rb +0 -2
  119. data/app/models/concerns/blacklight/configurable.rb +5 -4
  120. data/app/models/concerns/blacklight/document/active_model_shim.rb +1 -0
  121. data/app/models/concerns/blacklight/document/cache_key.rb +1 -0
  122. data/app/models/concerns/blacklight/document/dublin_core.rb +2 -1
  123. data/app/models/concerns/blacklight/document/email.rb +1 -0
  124. data/app/models/concerns/blacklight/document/export.rb +2 -1
  125. data/app/models/concerns/blacklight/document/extensions.rb +1 -0
  126. data/app/models/concerns/blacklight/document/schema_org.rb +1 -0
  127. data/app/models/concerns/blacklight/document/semantic_fields.rb +1 -0
  128. data/app/models/concerns/blacklight/document/sms.rb +1 -0
  129. data/app/models/concerns/blacklight/suggest/response.rb +1 -0
  130. data/app/models/concerns/blacklight/user.rb +17 -8
  131. data/app/models/record_mailer.rb +13 -12
  132. data/app/models/search.rb +0 -1
  133. data/app/models/solr_document.rb +1 -0
  134. data/app/presenters/blacklight/clause_presenter.rb +1 -1
  135. data/app/presenters/blacklight/document_presenter.rb +13 -21
  136. data/app/presenters/blacklight/facet_field_presenter.rb +39 -14
  137. data/app/presenters/blacklight/facet_grouped_item_presenter.rb +1 -5
  138. data/app/presenters/blacklight/facet_item_pivot_presenter.rb +60 -0
  139. data/app/presenters/blacklight/facet_item_presenter.rb +3 -9
  140. data/app/presenters/blacklight/field_presenter.rb +1 -0
  141. data/app/presenters/blacklight/index_presenter.rb +2 -40
  142. data/app/presenters/blacklight/json_presenter.rb +7 -5
  143. data/app/presenters/blacklight/rendering/link_to_facet.rb +2 -5
  144. data/app/presenters/blacklight/show_presenter.rb +1 -9
  145. data/app/presenters/blacklight/thumbnail_presenter.rb +1 -1
  146. data/app/services/blacklight/bookmarks_search_builder.rb +22 -0
  147. data/app/services/blacklight/field_retriever.rb +1 -8
  148. data/app/services/blacklight/search_service.rb +8 -7
  149. data/app/values/blacklight/types.rb +0 -4
  150. data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +8 -1
  151. data/app/views/bookmarks/_tools.html.erb +7 -12
  152. data/app/views/catalog/_advanced_search_form.html.erb +0 -1
  153. data/app/views/catalog/_bookmark_control.html.erb +1 -1
  154. data/app/views/catalog/_constraints.html.erb +1 -14
  155. data/app/views/catalog/_document.atom.builder +12 -14
  156. data/app/views/catalog/_document.html.erb +5 -3
  157. data/app/views/catalog/_document.rss.builder +2 -4
  158. data/app/views/catalog/_facet_layout.html.erb +2 -2
  159. data/app/views/catalog/_facets.html.erb +5 -4
  160. data/app/views/catalog/_home_text.html.erb +2 -14
  161. data/app/views/catalog/_search_form.html.erb +2 -2
  162. data/app/views/catalog/_search_header.html.erb +1 -2
  163. data/app/views/catalog/_search_results.html.erb +2 -2
  164. data/app/views/catalog/_search_sidebar.html.erb +5 -1
  165. data/app/views/catalog/_show_main_content.html.erb +11 -16
  166. data/app/views/catalog/_show_sidebar.html.erb +2 -2
  167. data/app/views/catalog/_show_tools.html.erb +8 -14
  168. data/app/views/catalog/_view_type_group.html.erb +1 -1
  169. data/app/views/catalog/email_success.html.erb +5 -6
  170. data/app/views/catalog/facet.html.erb +7 -5
  171. data/app/views/catalog/index.atom.builder +12 -14
  172. data/app/views/catalog/index.html.erb +4 -1
  173. data/app/views/catalog/index.json.jbuilder +19 -19
  174. data/app/views/catalog/index.rss.builder +1 -1
  175. data/app/views/catalog/opensearch.xml.builder +1 -1
  176. data/app/views/catalog/sms_success.html.erb +5 -6
  177. data/app/views/catalog/suggest.html.erb +3 -0
  178. data/app/views/layouts/blacklight/base.html.erb +13 -2
  179. data/app/views/search_history/index.html.erb +6 -2
  180. data/app/views/shared/_modal.html.erb +3 -3
  181. data/blacklight.gemspec +8 -9
  182. data/config/importmap.rb +3 -0
  183. data/config/locales/blacklight.ar.yml +0 -1
  184. data/config/locales/blacklight.ca.yml +0 -1
  185. data/config/locales/blacklight.de.yml +0 -1
  186. data/config/locales/blacklight.en.yml +0 -2
  187. data/config/locales/blacklight.es.yml +0 -1
  188. data/config/locales/blacklight.fr.yml +0 -1
  189. data/config/locales/blacklight.hu.yml +0 -1
  190. data/config/locales/blacklight.it.yml +0 -1
  191. data/config/locales/blacklight.nl.yml +0 -1
  192. data/config/locales/blacklight.pt-BR.yml +0 -1
  193. data/config/locales/blacklight.sq.yml +0 -1
  194. data/config/locales/blacklight.zh.yml +0 -1
  195. data/config/routes.rb +3 -2
  196. data/db/migrate/20140202020201_create_searches.rb +1 -0
  197. data/db/migrate/20140202020202_create_bookmarks.rb +1 -0
  198. data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +1 -0
  199. data/docker-compose.yml +0 -1
  200. data/lib/blacklight/abstract_repository.rb +1 -0
  201. data/lib/blacklight/configuration/context.rb +4 -4
  202. data/lib/blacklight/configuration/display_field.rb +7 -9
  203. data/lib/blacklight/configuration/facet_field.rb +17 -11
  204. data/lib/blacklight/configuration/field.rb +1 -0
  205. data/lib/blacklight/configuration/fields.rb +12 -15
  206. data/lib/blacklight/configuration/index_field.rb +1 -0
  207. data/lib/blacklight/configuration/null_display_field.rb +17 -0
  208. data/lib/blacklight/configuration/search_field.rb +1 -0
  209. data/lib/blacklight/configuration/show_field.rb +1 -0
  210. data/lib/blacklight/configuration/sort_field.rb +1 -0
  211. data/lib/blacklight/configuration/tool_config.rb +1 -0
  212. data/lib/blacklight/configuration/view_config.rb +16 -6
  213. data/lib/blacklight/configuration.rb +294 -358
  214. data/lib/blacklight/engine.rb +8 -13
  215. data/lib/blacklight/exceptions.rb +2 -2
  216. data/lib/blacklight/nested_open_struct_with_hash_access.rb +6 -12
  217. data/lib/blacklight/open_struct_with_hash_access.rb +19 -17
  218. data/lib/blacklight/parameters.rb +7 -21
  219. data/lib/blacklight/routes/exportable.rb +1 -0
  220. data/lib/blacklight/routes/searchable.rb +2 -1
  221. data/lib/blacklight/routes.rb +1 -0
  222. data/lib/blacklight/search_builder.rb +10 -10
  223. data/lib/blacklight/search_state/filter_field.rb +8 -25
  224. data/lib/blacklight/search_state/pivot_filter_field.rb +144 -0
  225. data/lib/blacklight/search_state.rb +23 -79
  226. data/lib/blacklight/solr/document.rb +1 -0
  227. data/lib/blacklight/solr/facet_paginator.rb +1 -0
  228. data/lib/blacklight/solr/repository.rb +3 -14
  229. data/lib/blacklight/solr/request.rb +1 -0
  230. data/lib/blacklight/solr/response/facets.rb +21 -5
  231. data/lib/blacklight/solr/response/group.rb +1 -0
  232. data/lib/blacklight/solr/response/group_response.rb +1 -0
  233. data/lib/blacklight/solr/response/more_like_this.rb +1 -0
  234. data/lib/blacklight/solr/response/pagination_methods.rb +4 -3
  235. data/lib/blacklight/solr/response/params.rb +5 -4
  236. data/lib/blacklight/solr/response/response.rb +1 -0
  237. data/lib/blacklight/solr/response/spelling.rb +1 -0
  238. data/lib/blacklight/solr/response.rb +4 -3
  239. data/lib/blacklight/solr/search_builder_behavior.rb +17 -34
  240. data/lib/blacklight/solr.rb +1 -0
  241. data/lib/blacklight/version.rb +1 -0
  242. data/lib/blacklight.rb +7 -10
  243. data/lib/generators/blacklight/assets/importmap_generator.rb +55 -0
  244. data/lib/generators/blacklight/assets/propshaft_generator.rb +25 -0
  245. data/lib/generators/blacklight/assets/sprockets_generator.rb +66 -0
  246. data/lib/generators/blacklight/assets_generator.rb +13 -89
  247. data/lib/generators/blacklight/controller_generator.rb +3 -2
  248. data/lib/generators/blacklight/document_generator.rb +1 -0
  249. data/lib/generators/blacklight/install_generator.rb +4 -3
  250. data/lib/generators/blacklight/models_generator.rb +1 -0
  251. data/lib/generators/blacklight/search_builder_generator.rb +1 -0
  252. data/lib/generators/blacklight/solr_generator.rb +1 -1
  253. data/lib/generators/blacklight/templates/catalog_controller.rb +34 -8
  254. data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +0 -69
  255. data/lib/generators/blacklight/test_support_generator.rb +4 -2
  256. data/lib/generators/blacklight/user_generator.rb +7 -9
  257. data/lib/railties/blacklight.rake +6 -7
  258. data/package.json +10 -13
  259. data/rollup.config.js +27 -0
  260. data/spec/components/blacklight/constraints_component_spec.rb +17 -13
  261. data/spec/components/blacklight/document_component_spec.rb +23 -82
  262. data/spec/components/blacklight/facet_component_spec.rb +2 -7
  263. data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +1 -2
  264. data/spec/components/blacklight/facet_field_list_component_spec.rb +7 -6
  265. data/spec/components/blacklight/facet_item_pivot_component_spec.rb +10 -9
  266. data/spec/components/blacklight/response/view_type_component_spec.rb +66 -0
  267. data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
  268. data/spec/components/blacklight/search_context_component_spec.rb +40 -0
  269. data/spec/controllers/blacklight/catalog/component_configuration_spec.rb +1 -6
  270. data/spec/controllers/blacklight/{base_spec.rb → catalog_spec.rb} +2 -2
  271. data/spec/controllers/bookmarks_controller_spec.rb +2 -3
  272. data/spec/controllers/catalog_controller_spec.rb +13 -135
  273. data/spec/features/advanced_search_spec.rb +0 -56
  274. data/spec/features/autocomplete_spec.rb +1 -1
  275. data/spec/features/axe_spec.rb +1 -6
  276. data/spec/features/bookmarks_spec.rb +1 -1
  277. data/spec/features/facets_spec.rb +1 -1
  278. data/spec/features/search_context_spec.rb +4 -10
  279. data/spec/features/search_results_spec.rb +0 -33
  280. data/spec/features/sitelinks_search_box.rb +13 -0
  281. data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +2 -138
  282. data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +0 -387
  283. data/spec/helpers/blacklight/icon_helper_behavior_spec.rb +8 -0
  284. data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +5 -7
  285. data/spec/helpers/blacklight/url_helper_behavior_spec.rb +9 -131
  286. data/spec/helpers/blacklight_helper_spec.rb +3 -242
  287. data/spec/helpers/catalog_helper_spec.rb +7 -118
  288. data/spec/i18n_spec.rb +1 -0
  289. data/spec/integration/generators/blacklight/solr_generator_spec.rb +1 -1
  290. data/spec/lib/blacklight/configuration/facet_field_spec.rb +27 -16
  291. data/spec/lib/blacklight/configuration/field_spec.rb +1 -1
  292. data/spec/lib/blacklight/configuration/view_config_spec.rb +1 -1
  293. data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +2 -2
  294. data/spec/lib/blacklight/parameters_spec.rb +1 -4
  295. data/spec/lib/blacklight/search_state/filter_field_spec.rb +4 -4
  296. data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +117 -0
  297. data/spec/lib/blacklight/search_state_spec.rb +80 -198
  298. data/spec/lib/tasks/blacklight_task_spec.rb +1 -0
  299. data/spec/models/blacklight/configuration_spec.rb +17 -51
  300. data/spec/models/blacklight/document/active_model_shim_spec.rb +2 -2
  301. data/spec/models/blacklight/icon_spec.rb +31 -15
  302. data/spec/models/blacklight/search_builder_spec.rb +9 -9
  303. data/spec/models/blacklight/solr/document_spec.rb +3 -3
  304. data/spec/models/blacklight/solr/repository_spec.rb +0 -27
  305. data/spec/models/blacklight/solr/response/facets_spec.rb +27 -27
  306. data/spec/models/blacklight/solr/response/group_response_spec.rb +1 -0
  307. data/spec/models/blacklight/solr/response/group_spec.rb +1 -0
  308. data/spec/models/blacklight/solr/response_spec.rb +9 -2
  309. data/spec/models/blacklight/solr/search_builder_spec.rb +24 -31
  310. data/spec/models/blacklight/user_spec.rb +22 -0
  311. data/spec/presenters/blacklight/clause_presenter_spec.rb +1 -0
  312. data/spec/presenters/blacklight/document_presenter_spec.rb +2 -2
  313. data/spec/presenters/blacklight/facet_field_presenter_spec.rb +85 -12
  314. data/spec/presenters/blacklight/facet_grouped_item_presenter_spec.rb +1 -0
  315. data/spec/presenters/blacklight/facet_item_presenter_spec.rb +14 -13
  316. data/spec/presenters/blacklight/field_presenter_spec.rb +0 -14
  317. data/spec/presenters/blacklight/index_presenter_spec.rb +2 -4
  318. data/spec/presenters/blacklight/json_presenter_spec.rb +1 -0
  319. data/spec/presenters/blacklight/link_alternate_presenter_spec.rb +3 -2
  320. data/spec/presenters/blacklight/show_presenter_spec.rb +20 -29
  321. data/spec/presenters/thumbnail_presenter_spec.rb +1 -1
  322. data/spec/requests/load_suggestions_spec.rb +16 -0
  323. data/spec/routing/catalog_routing_spec.rb +2 -1
  324. data/spec/services/blacklight/search_service_spec.rb +31 -68
  325. data/spec/spec_helper.rb +6 -4
  326. data/spec/support/controller_level_helpers.rb +1 -2
  327. data/spec/support/features/search_helpers.rb +39 -0
  328. data/spec/support/features/session_helpers.rb +1 -0
  329. data/spec/support/features.rb +3 -0
  330. data/spec/support/view_component_capybara_test_helpers.rb +8 -0
  331. data/spec/test_app_templates/lib/generators/test_app_generator.rb +9 -2
  332. data/spec/views/catalog/_document.html.erb_spec.rb +3 -34
  333. data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +1 -1
  334. data/spec/views/catalog/_search_header.erb_spec.rb +1 -0
  335. data/spec/views/catalog/_show_sidebar.erb_spec.rb +1 -0
  336. data/spec/views/catalog/_show_tools.html.erb_spec.rb +5 -66
  337. data/spec/views/catalog/_view_type_group.html.erb_spec.rb +17 -9
  338. data/spec/views/catalog/email_success.html.erb_spec.rb +2 -2
  339. data/spec/views/catalog/facet.html.erb_spec.rb +6 -3
  340. data/spec/views/catalog/index.atom.builder_spec.rb +18 -11
  341. data/spec/views/catalog/index.html.erb_spec.rb +5 -6
  342. data/spec/views/catalog/index.json.jbuilder_spec.rb +2 -2
  343. data/spec/views/catalog/show.html.erb_spec.rb +3 -25
  344. data/spec/views/catalog/sms_success.html.erb_spec.rb +2 -2
  345. data/tasks/blacklight.rake +6 -4
  346. metadata +79 -126
  347. data/.babelrc +0 -11
  348. data/app/assets/images/blacklight/list.svg +0 -1
  349. data/app/assets/images/blacklight/search.svg +0 -1
  350. data/app/assets/stylesheets/blacklight/_twitter_typeahead.scss +0 -37
  351. data/app/components/blacklight/content_areas_shim.rb +0 -13
  352. data/app/controllers/concerns/blacklight/base.rb +0 -12
  353. data/app/controllers/concerns/blacklight/default_component_configuration.rb +0 -64
  354. data/app/controllers/concerns/blacklight/facet.rb +0 -69
  355. data/app/controllers/concerns/blacklight/search_fields.rb +0 -46
  356. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +0 -27
  357. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -188
  358. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +0 -97
  359. data/app/helpers/blacklight/suggest_helper_behavior.rb +0 -13
  360. data/app/javascript/blacklight/autocomplete.js +0 -36
  361. data/app/javascript/blacklight/facet_load.js +0 -22
  362. data/app/presenters/blacklight/search_bar_presenter.rb +0 -47
  363. data/app/views/catalog/_constraints_element.html.erb +0 -14
  364. data/app/views/catalog/_document_action.html.erb +0 -5
  365. data/app/views/catalog/_facet_group.html.erb +0 -5
  366. data/app/views/catalog/_facet_limit.html.erb +0 -3
  367. data/app/views/catalog/_index.html.erb +0 -1
  368. data/app/views/catalog/_index_header.html.erb +0 -22
  369. data/app/views/catalog/_previous_next_doc.html.erb +0 -2
  370. data/app/views/catalog/_show.html.erb +0 -6
  371. data/app/views/catalog/_show_header.html.erb +0 -2
  372. data/app/views/catalog/_thumbnail.html.erb +0 -1
  373. data/lib/blacklight/deprecations/engine_configuration.rb +0 -66
  374. data/lib/blacklight/deprecations/search_state_normalization.rb +0 -52
  375. data/spec/components/blacklight/header_component_spec.rb +0 -20
  376. data/spec/controllers/blacklight/facet_spec.rb +0 -33
  377. data/spec/controllers/blacklight/search_fields_spec.rb +0 -62
  378. data/spec/features/sitelinks_search_box_spec.rb +0 -13
  379. data/spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb +0 -26
  380. data/spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb +0 -92
  381. data/spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb +0 -101
  382. data/spec/helpers/blacklight/suggest_helper_behavior_spec.rb +0 -48
  383. data/spec/lib/blacklight/engine_spec.rb +0 -41
  384. data/spec/presenters/blacklight/search_bar_presenter_spec.rb +0 -94
  385. data/spec/support/view_component_test_helpers.rb +0 -35
  386. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  387. data/spec/views/catalog/_facet_group.html.erb_spec.rb +0 -84
  388. data/spec/views/catalog/_facets.html.erb_spec.rb +0 -15
  389. data/spec/views/catalog/_index.html.erb_spec.rb +0 -62
  390. data/spec/views/catalog/_index_header.html.erb_spec.rb +0 -35
  391. data/spec/views/catalog/_previous_next_doc.html.erb_spec.rb +0 -22
  392. data/spec/views/catalog/_show.html.erb_spec.rb +0 -62
  393. 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.34.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: 2023-10-04 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
@@ -25,20 +25,20 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '5.1'
28
+ version: '6.1'
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '7.1'
31
+ version: '8'
32
32
  type: :runtime
33
33
  prerelease: false
34
34
  version_requirements: !ruby/object:Gem::Requirement
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: '5.1'
38
+ version: '6.1'
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
- version: '7.1'
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,36 +113,16 @@ dependencies:
127
113
  name: view_component
128
114
  requirement: !ruby/object:Gem::Requirement
129
115
  requirements:
130
- - - ">="
116
+ - - "~>"
131
117
  - !ruby/object:Gem::Version
132
118
  version: '2.66'
133
- - - "<"
134
- - !ruby/object:Gem::Version
135
- version: '4'
136
119
  type: :runtime
137
120
  prerelease: false
138
121
  version_requirements: !ruby/object:Gem::Requirement
139
122
  requirements:
140
- - - ">="
123
+ - - "~>"
141
124
  - !ruby/object:Gem::Version
142
125
  version: '2.66'
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
126
  - !ruby/object:Gem::Dependency
161
127
  name: rsolr
162
128
  requirement: !ruby/object:Gem::Requirement
@@ -183,14 +149,14 @@ dependencies:
183
149
  requirements:
184
150
  - - "~>"
185
151
  - !ruby/object:Gem::Version
186
- version: '5.0'
152
+ version: '6.0'
187
153
  type: :development
188
154
  prerelease: false
189
155
  version_requirements: !ruby/object:Gem::Requirement
190
156
  requirements:
191
157
  - - "~>"
192
158
  - !ruby/object:Gem::Version
193
- version: '5.0'
159
+ version: '6.0'
194
160
  - !ruby/object:Gem::Dependency
195
161
  name: rspec-collection_matchers
196
162
  requirement: !ruby/object:Gem::Requirement
@@ -233,6 +199,20 @@ dependencies:
233
199
  - - "~>"
234
200
  - !ruby/object:Gem::Version
235
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'
236
216
  - !ruby/object:Gem::Dependency
237
217
  name: selenium-webdriver
238
218
  requirement: !ruby/object:Gem::Requirement
@@ -295,42 +275,42 @@ dependencies:
295
275
  requirements:
296
276
  - - "~>"
297
277
  - !ruby/object:Gem::Version
298
- version: '0.85'
278
+ version: '1.0'
299
279
  type: :development
300
280
  prerelease: false
301
281
  version_requirements: !ruby/object:Gem::Requirement
302
282
  requirements:
303
283
  - - "~>"
304
284
  - !ruby/object:Gem::Version
305
- version: '0.85'
285
+ version: '1.0'
306
286
  - !ruby/object:Gem::Dependency
307
287
  name: rubocop-rails
308
288
  requirement: !ruby/object:Gem::Requirement
309
289
  requirements:
310
- - - "~>"
290
+ - - ">="
311
291
  - !ruby/object:Gem::Version
312
- version: '2.6'
292
+ version: '0'
313
293
  type: :development
314
294
  prerelease: false
315
295
  version_requirements: !ruby/object:Gem::Requirement
316
296
  requirements:
317
- - - "~>"
297
+ - - ">="
318
298
  - !ruby/object:Gem::Version
319
- version: '2.6'
299
+ version: '0'
320
300
  - !ruby/object:Gem::Dependency
321
301
  name: rubocop-rspec
322
302
  requirement: !ruby/object:Gem::Requirement
323
303
  requirements:
324
- - - "~>"
304
+ - - ">="
325
305
  - !ruby/object:Gem::Version
326
- version: '1.43'
306
+ version: '0'
327
307
  type: :development
328
308
  prerelease: false
329
309
  version_requirements: !ruby/object:Gem::Requirement
330
310
  requirements:
331
- - - "~>"
311
+ - - ">="
332
312
  - !ruby/object:Gem::Version
333
- version: '1.43'
313
+ version: '0'
334
314
  - !ruby/object:Gem::Dependency
335
315
  name: i18n-tasks
336
316
  requirement: !ruby/object:Gem::Requirement
@@ -370,7 +350,6 @@ executables: []
370
350
  extensions: []
371
351
  extra_rdoc_files: []
372
352
  files:
373
- - ".babelrc"
374
353
  - ".docker/app/Dockerfile"
375
354
  - ".docker/app/entrypoint.sh"
376
355
  - ".dockerignore"
@@ -390,11 +369,13 @@ files:
390
369
  - README.md
391
370
  - Rakefile
392
371
  - VERSION
393
- - app/assets/images/blacklight/list.svg
394
372
  - app/assets/images/blacklight/logo.png
395
- - app/assets/images/blacklight/search.svg
396
373
  - app/assets/images/favicon.ico
374
+ - app/assets/javascripts/blacklight/blacklight.esm.js
375
+ - app/assets/javascripts/blacklight/blacklight.esm.js.map
397
376
  - app/assets/javascripts/blacklight/blacklight.js
377
+ - app/assets/javascripts/blacklight/blacklight.js.map
378
+ - app/assets/stylesheets/blacklight/_autocomplete.scss
398
379
  - app/assets/stylesheets/blacklight/_balanced_list.scss
399
380
  - app/assets/stylesheets/blacklight/_blacklight_base.scss
400
381
  - app/assets/stylesheets/blacklight/_bookmark.scss
@@ -412,7 +393,6 @@ files:
412
393
  - app/assets/stylesheets/blacklight/_search_form.scss
413
394
  - app/assets/stylesheets/blacklight/_search_history.scss
414
395
  - app/assets/stylesheets/blacklight/_search_results.scss
415
- - app/assets/stylesheets/blacklight/_twitter_typeahead.scss
416
396
  - app/assets/stylesheets/blacklight/blacklight.scss
417
397
  - app/assets/stylesheets/blacklight/blacklight_defaults.scss
418
398
  - app/builders/blacklight/action_builder.rb
@@ -424,7 +404,6 @@ files:
424
404
  - app/components/blacklight/constraint_layout_component.rb
425
405
  - app/components/blacklight/constraints_component.html.erb
426
406
  - app/components/blacklight/constraints_component.rb
427
- - app/components/blacklight/content_areas_shim.rb
428
407
  - app/components/blacklight/document/action_component.html.erb
429
408
  - app/components/blacklight/document/action_component.rb
430
409
  - app/components/blacklight/document/actions_component.html.erb
@@ -437,6 +416,8 @@ files:
437
416
  - app/components/blacklight/document/group_component.rb
438
417
  - app/components/blacklight/document/more_like_this_component.html.erb
439
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
440
421
  - app/components/blacklight/document/thumbnail_component.html.erb
441
422
  - app/components/blacklight/document/thumbnail_component.rb
442
423
  - app/components/blacklight/document_component.html.erb
@@ -465,6 +446,9 @@ files:
465
446
  - app/components/blacklight/header_component.rb
466
447
  - app/components/blacklight/hidden_search_state_component.rb
467
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
468
452
  - app/components/blacklight/metadata_field_component.html.erb
469
453
  - app/components/blacklight/metadata_field_component.rb
470
454
  - app/components/blacklight/metadata_field_layout_component.html.erb
@@ -481,11 +465,15 @@ files:
481
465
  - app/components/blacklight/response/view_type_button_component.rb
482
466
  - app/components/blacklight/response/view_type_component.html.erb
483
467
  - app/components/blacklight/response/view_type_component.rb
468
+ - app/components/blacklight/search/sidebar_component.html.erb
469
+ - app/components/blacklight/search/sidebar_component.rb
484
470
  - app/components/blacklight/search_bar_component.html.erb
485
471
  - app/components/blacklight/search_bar_component.rb
486
472
  - app/components/blacklight/search_button_component.rb
487
473
  - app/components/blacklight/search_context_component.html.erb
488
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
489
477
  - app/components/blacklight/search_history_constraint_layout_component.rb
490
478
  - app/components/blacklight/search_navbar_component.html.erb
491
479
  - app/components/blacklight/search_navbar_component.rb
@@ -500,14 +488,10 @@ files:
500
488
  - app/components/blacklight/top_navbar_component.rb
501
489
  - app/controllers/bookmarks_controller.rb
502
490
  - app/controllers/catalog_controller.rb
503
- - app/controllers/concerns/blacklight/base.rb
504
491
  - app/controllers/concerns/blacklight/bookmarks.rb
505
492
  - app/controllers/concerns/blacklight/catalog.rb
506
493
  - app/controllers/concerns/blacklight/controller.rb
507
- - app/controllers/concerns/blacklight/default_component_configuration.rb
508
- - app/controllers/concerns/blacklight/facet.rb
509
494
  - app/controllers/concerns/blacklight/search_context.rb
510
- - app/controllers/concerns/blacklight/search_fields.rb
511
495
  - app/controllers/concerns/blacklight/search_history.rb
512
496
  - app/controllers/concerns/blacklight/searchable.rb
513
497
  - app/controllers/concerns/blacklight/token_based_user.rb
@@ -517,23 +501,19 @@ files:
517
501
  - app/helpers/blacklight/component_helper_behavior.rb
518
502
  - app/helpers/blacklight/configuration_helper_behavior.rb
519
503
  - app/helpers/blacklight/facets_helper_behavior.rb
520
- - app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb
521
504
  - app/helpers/blacklight/icon_helper_behavior.rb
522
505
  - app/helpers/blacklight/layout_helper_behavior.rb
523
- - app/helpers/blacklight/render_constraints_helper_behavior.rb
524
506
  - app/helpers/blacklight/render_partials_helper_behavior.rb
525
- - app/helpers/blacklight/search_history_constraints_helper_behavior.rb
526
- - app/helpers/blacklight/suggest_helper_behavior.rb
527
507
  - app/helpers/blacklight/url_helper_behavior.rb
528
508
  - app/helpers/blacklight_helper.rb
529
509
  - app/helpers/catalog_helper.rb
530
- - app/javascript/blacklight/autocomplete.js
531
510
  - app/javascript/blacklight/bookmark_toggle.js
532
511
  - app/javascript/blacklight/button_focus.js
533
512
  - app/javascript/blacklight/checkbox_submit.js
534
513
  - app/javascript/blacklight/core.js
535
- - app/javascript/blacklight/facet_load.js
514
+ - app/javascript/blacklight/index.js
536
515
  - app/javascript/blacklight/modal.js
516
+ - app/javascript/blacklight/modalForm.js
537
517
  - app/javascript/blacklight/search_context.js
538
518
  - app/models/blacklight/facet_paginator.rb
539
519
  - app/models/blacklight/icon.rb
@@ -561,6 +541,7 @@ files:
561
541
  - app/presenters/blacklight/document_presenter.rb
562
542
  - app/presenters/blacklight/facet_field_presenter.rb
563
543
  - app/presenters/blacklight/facet_grouped_item_presenter.rb
544
+ - app/presenters/blacklight/facet_item_pivot_presenter.rb
564
545
  - app/presenters/blacklight/facet_item_presenter.rb
565
546
  - app/presenters/blacklight/field_presenter.rb
566
547
  - app/presenters/blacklight/inclusive_facet_item_presenter.rb
@@ -574,9 +555,9 @@ files:
574
555
  - app/presenters/blacklight/rendering/microdata.rb
575
556
  - app/presenters/blacklight/rendering/pipeline.rb
576
557
  - app/presenters/blacklight/rendering/terminator.rb
577
- - app/presenters/blacklight/search_bar_presenter.rb
578
558
  - app/presenters/blacklight/show_presenter.rb
579
559
  - app/presenters/blacklight/thumbnail_presenter.rb
560
+ - app/services/blacklight/bookmarks_search_builder.rb
580
561
  - app/services/blacklight/document_factory.rb
581
562
  - app/services/blacklight/field_retriever.rb
582
563
  - app/services/blacklight/search_params_yaml_coder.rb
@@ -592,18 +573,14 @@ files:
592
573
  - app/views/catalog/_bookmark_control.html.erb
593
574
  - app/views/catalog/_citation.html.erb
594
575
  - app/views/catalog/_constraints.html.erb
595
- - app/views/catalog/_constraints_element.html.erb
596
576
  - app/views/catalog/_did_you_mean.html.erb
597
577
  - app/views/catalog/_document.atom.builder
598
578
  - app/views/catalog/_document.html.erb
599
579
  - app/views/catalog/_document.rss.builder
600
- - app/views/catalog/_document_action.html.erb
601
580
  - app/views/catalog/_document_list.html.erb
602
581
  - app/views/catalog/_email_form.html.erb
603
- - app/views/catalog/_facet_group.html.erb
604
582
  - app/views/catalog/_facet_index_navigation.html.erb
605
583
  - app/views/catalog/_facet_layout.html.erb
606
- - app/views/catalog/_facet_limit.html.erb
607
584
  - app/views/catalog/_facet_pagination.html.erb
608
585
  - app/views/catalog/_facet_pivot.html.erb
609
586
  - app/views/catalog/_facets.html.erb
@@ -611,20 +588,15 @@ files:
611
588
  - app/views/catalog/_group.html.erb
612
589
  - app/views/catalog/_home.html.erb
613
590
  - app/views/catalog/_home_text.html.erb
614
- - app/views/catalog/_index.html.erb
615
- - app/views/catalog/_index_header.html.erb
616
591
  - app/views/catalog/_opensearch_response_metadata.html.erb
617
592
  - app/views/catalog/_paginate_compact.html.erb
618
593
  - app/views/catalog/_per_page_widget.html.erb
619
- - app/views/catalog/_previous_next_doc.html.erb
620
594
  - app/views/catalog/_results_pagination.html.erb
621
595
  - app/views/catalog/_search_form.html.erb
622
596
  - app/views/catalog/_search_header.html.erb
623
597
  - app/views/catalog/_search_results.html.erb
624
598
  - app/views/catalog/_search_results_header.html.erb
625
599
  - app/views/catalog/_search_sidebar.html.erb
626
- - app/views/catalog/_show.html.erb
627
- - app/views/catalog/_show_header.html.erb
628
600
  - app/views/catalog/_show_main_content.html.erb
629
601
  - app/views/catalog/_show_more_like_this.html.erb
630
602
  - app/views/catalog/_show_sidebar.html.erb
@@ -633,7 +605,6 @@ files:
633
605
  - app/views/catalog/_sort_and_per_page.html.erb
634
606
  - app/views/catalog/_sort_widget.html.erb
635
607
  - app/views/catalog/_start_over.html.erb
636
- - app/views/catalog/_thumbnail.html.erb
637
608
  - app/views/catalog/_view_type_group.html.erb
638
609
  - app/views/catalog/_zero_results.html.erb
639
610
  - app/views/catalog/advanced_search.html.erb
@@ -653,6 +624,7 @@ files:
653
624
  - app/views/catalog/show.json.jbuilder
654
625
  - app/views/catalog/sms.html.erb
655
626
  - app/views/catalog/sms_success.html.erb
627
+ - app/views/catalog/suggest.html.erb
656
628
  - app/views/kaminari/blacklight/_first_page.html.erb
657
629
  - app/views/kaminari/blacklight/_gap.html.erb
658
630
  - app/views/kaminari/blacklight/_last_page.html.erb
@@ -678,6 +650,7 @@ files:
678
650
  - app/views/shared/_user_util_links.html.erb
679
651
  - blacklight.gemspec
680
652
  - config/i18n-tasks.yml
653
+ - config/importmap.rb
681
654
  - config/locales/blacklight.ar.yml
682
655
  - config/locales/blacklight.ca.yml
683
656
  - config/locales/blacklight.de.yml
@@ -705,14 +678,13 @@ files:
705
678
  - lib/blacklight/configuration/field.rb
706
679
  - lib/blacklight/configuration/fields.rb
707
680
  - lib/blacklight/configuration/index_field.rb
681
+ - lib/blacklight/configuration/null_display_field.rb
708
682
  - lib/blacklight/configuration/null_field.rb
709
683
  - lib/blacklight/configuration/search_field.rb
710
684
  - lib/blacklight/configuration/show_field.rb
711
685
  - lib/blacklight/configuration/sort_field.rb
712
686
  - lib/blacklight/configuration/tool_config.rb
713
687
  - lib/blacklight/configuration/view_config.rb
714
- - lib/blacklight/deprecations/engine_configuration.rb
715
- - lib/blacklight/deprecations/search_state_normalization.rb
716
688
  - lib/blacklight/engine.rb
717
689
  - lib/blacklight/exceptions.rb
718
690
  - lib/blacklight/nested_open_struct_with_hash_access.rb
@@ -725,6 +697,7 @@ files:
725
697
  - lib/blacklight/search_builder.rb
726
698
  - lib/blacklight/search_state.rb
727
699
  - lib/blacklight/search_state/filter_field.rb
700
+ - lib/blacklight/search_state/pivot_filter_field.rb
728
701
  - lib/blacklight/solr.rb
729
702
  - lib/blacklight/solr/document.rb
730
703
  - lib/blacklight/solr/facet_paginator.rb
@@ -741,6 +714,9 @@ files:
741
714
  - lib/blacklight/solr/response/spelling.rb
742
715
  - lib/blacklight/solr/search_builder_behavior.rb
743
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
744
720
  - lib/generators/blacklight/assets_generator.rb
745
721
  - lib/generators/blacklight/controller_generator.rb
746
722
  - lib/generators/blacklight/document_generator.rb
@@ -777,6 +753,7 @@ files:
777
753
  - lib/generators/blacklight/user_generator.rb
778
754
  - lib/railties/blacklight.rake
779
755
  - package.json
756
+ - rollup.config.js
780
757
  - spec/components/blacklight/advanced_search_form_component_spec.rb
781
758
  - spec/components/blacklight/constraint_layout_component_spec.rb
782
759
  - spec/components/blacklight/constraints_component_spec.rb
@@ -789,19 +766,18 @@ files:
789
766
  - spec/components/blacklight/facet_field_list_component_spec.rb
790
767
  - spec/components/blacklight/facet_item_component_spec.rb
791
768
  - spec/components/blacklight/facet_item_pivot_component_spec.rb
792
- - spec/components/blacklight/header_component_spec.rb
793
769
  - spec/components/blacklight/hidden_search_state_component_spec.rb
794
770
  - spec/components/blacklight/metadata_field_component_spec.rb
795
771
  - spec/components/blacklight/response/spellcheck_component_spec.rb
772
+ - spec/components/blacklight/response/view_type_component_spec.rb
796
773
  - spec/components/blacklight/search_bar_component_spec.rb
774
+ - spec/components/blacklight/search_context_component_spec.rb
797
775
  - spec/components/blacklight/start_over_button_component_spec.rb
798
776
  - spec/components/blacklight/system/flash_message_component_spec.rb
799
777
  - spec/controllers/alternate_controller_spec.rb
800
778
  - spec/controllers/application_controller_spec.rb
801
- - spec/controllers/blacklight/base_spec.rb
802
779
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
803
- - spec/controllers/blacklight/facet_spec.rb
804
- - spec/controllers/blacklight/search_fields_spec.rb
780
+ - spec/controllers/blacklight/catalog_spec.rb
805
781
  - spec/controllers/bookmarks_controller_spec.rb
806
782
  - spec/controllers/catalog_controller_spec.rb
807
783
  - spec/controllers/search_history_controller_spec.rb
@@ -823,17 +799,13 @@ files:
823
799
  - spec/features/search_results_spec.rb
824
800
  - spec/features/search_sort_spec.rb
825
801
  - spec/features/search_spec.rb
826
- - spec/features/sitelinks_search_box_spec.rb
802
+ - spec/features/sitelinks_search_box.rb
827
803
  - spec/fixtures/sample_solr_documents.yml
828
804
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
829
805
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb
830
- - spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb
831
806
  - spec/helpers/blacklight/icon_helper_behavior_spec.rb
832
807
  - spec/helpers/blacklight/layout_helper_behavior_spec.rb
833
- - spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb
834
808
  - spec/helpers/blacklight/render_partials_helper_behavior_spec.rb
835
- - spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb
836
- - spec/helpers/blacklight/suggest_helper_behavior_spec.rb
837
809
  - spec/helpers/blacklight/url_helper_behavior_spec.rb
838
810
  - spec/helpers/blacklight_helper_spec.rb
839
811
  - spec/helpers/catalog_helper_spec.rb
@@ -843,11 +815,11 @@ files:
843
815
  - spec/lib/blacklight/configuration/facet_field_spec.rb
844
816
  - spec/lib/blacklight/configuration/field_spec.rb
845
817
  - spec/lib/blacklight/configuration/view_config_spec.rb
846
- - spec/lib/blacklight/engine_spec.rb
847
818
  - spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
848
819
  - spec/lib/blacklight/open_struct_with_hash_access_spec.rb
849
820
  - spec/lib/blacklight/parameters_spec.rb
850
821
  - spec/lib/blacklight/search_state/filter_field_spec.rb
822
+ - spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
851
823
  - spec/lib/blacklight/search_state_spec.rb
852
824
  - spec/lib/blacklight_spec.rb
853
825
  - spec/lib/tasks/blacklight_task_spec.rb
@@ -888,39 +860,32 @@ files:
888
860
  - spec/presenters/blacklight/index_presenter_spec.rb
889
861
  - spec/presenters/blacklight/json_presenter_spec.rb
890
862
  - spec/presenters/blacklight/link_alternate_presenter_spec.rb
891
- - spec/presenters/blacklight/search_bar_presenter_spec.rb
892
863
  - spec/presenters/blacklight/show_presenter_spec.rb
893
864
  - spec/presenters/pipeline_spec.rb
894
865
  - spec/presenters/thumbnail_presenter_spec.rb
866
+ - spec/requests/load_suggestions_spec.rb
895
867
  - spec/routing/catalog_routing_spec.rb
896
868
  - spec/routing/search_history_spec.rb
897
869
  - spec/services/blacklight/search_service_spec.rb
898
870
  - spec/spec_helper.rb
899
871
  - spec/support/controller_level_helpers.rb
900
872
  - spec/support/features.rb
873
+ - spec/support/features/search_helpers.rb
901
874
  - spec/support/features/session_helpers.rb
902
875
  - spec/support/presenter_test_helpers.rb
903
- - spec/support/view_component_test_helpers.rb
876
+ - spec/support/view_component_capybara_test_helpers.rb
904
877
  - spec/test_app_templates/Gemfile.extra
905
878
  - spec/test_app_templates/lib/generators/test_app_generator.rb
906
- - spec/views/catalog/_constraints.html.erb_spec.rb
907
879
  - spec/views/catalog/_document.html.erb_spec.rb
908
880
  - spec/views/catalog/_document_list.html.erb_spec.rb
909
- - spec/views/catalog/_facet_group.html.erb_spec.rb
910
881
  - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
911
882
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
912
- - spec/views/catalog/_facets.html.erb_spec.rb
913
- - spec/views/catalog/_index.html.erb_spec.rb
914
- - spec/views/catalog/_index_header.html.erb_spec.rb
915
883
  - spec/views/catalog/_paginate_compact.html.erb_spec.rb
916
- - spec/views/catalog/_previous_next_doc.html.erb_spec.rb
917
884
  - spec/views/catalog/_search_header.erb_spec.rb
918
- - spec/views/catalog/_show.html.erb_spec.rb
919
885
  - spec/views/catalog/_show_sidebar.erb_spec.rb
920
886
  - spec/views/catalog/_show_tools.html.erb_spec.rb
921
887
  - spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
922
888
  - spec/views/catalog/_sort_widget.html.erb_spec.rb
923
- - spec/views/catalog/_thumbnail.html.erb_spec.rb
924
889
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
925
890
  - spec/views/catalog/email_success.html.erb_spec.rb
926
891
  - spec/views/catalog/facet.html.erb_spec.rb
@@ -947,14 +912,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
947
912
  requirements:
948
913
  - - ">="
949
914
  - !ruby/object:Gem::Version
950
- version: '2.5'
915
+ version: '2.7'
951
916
  required_rubygems_version: !ruby/object:Gem::Requirement
952
917
  requirements:
953
- - - ">="
918
+ - - ">"
954
919
  - !ruby/object:Gem::Version
955
- version: '0'
920
+ version: 1.3.1
956
921
  requirements: []
957
- rubygems_version: 3.4.10
922
+ rubygems_version: 3.3.26
958
923
  signing_key:
959
924
  specification_version: 4
960
925
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
@@ -972,19 +937,18 @@ test_files:
972
937
  - spec/components/blacklight/facet_field_list_component_spec.rb
973
938
  - spec/components/blacklight/facet_item_component_spec.rb
974
939
  - spec/components/blacklight/facet_item_pivot_component_spec.rb
975
- - spec/components/blacklight/header_component_spec.rb
976
940
  - spec/components/blacklight/hidden_search_state_component_spec.rb
977
941
  - spec/components/blacklight/metadata_field_component_spec.rb
978
942
  - spec/components/blacklight/response/spellcheck_component_spec.rb
943
+ - spec/components/blacklight/response/view_type_component_spec.rb
979
944
  - spec/components/blacklight/search_bar_component_spec.rb
945
+ - spec/components/blacklight/search_context_component_spec.rb
980
946
  - spec/components/blacklight/start_over_button_component_spec.rb
981
947
  - spec/components/blacklight/system/flash_message_component_spec.rb
982
948
  - spec/controllers/alternate_controller_spec.rb
983
949
  - spec/controllers/application_controller_spec.rb
984
- - spec/controllers/blacklight/base_spec.rb
985
950
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
986
- - spec/controllers/blacklight/facet_spec.rb
987
- - spec/controllers/blacklight/search_fields_spec.rb
951
+ - spec/controllers/blacklight/catalog_spec.rb
988
952
  - spec/controllers/bookmarks_controller_spec.rb
989
953
  - spec/controllers/catalog_controller_spec.rb
990
954
  - spec/controllers/search_history_controller_spec.rb
@@ -1006,17 +970,13 @@ test_files:
1006
970
  - spec/features/search_results_spec.rb
1007
971
  - spec/features/search_sort_spec.rb
1008
972
  - spec/features/search_spec.rb
1009
- - spec/features/sitelinks_search_box_spec.rb
973
+ - spec/features/sitelinks_search_box.rb
1010
974
  - spec/fixtures/sample_solr_documents.yml
1011
975
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
1012
976
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb
1013
- - spec/helpers/blacklight/hash_as_hidden_fields_behavior_spec.rb
1014
977
  - spec/helpers/blacklight/icon_helper_behavior_spec.rb
1015
978
  - spec/helpers/blacklight/layout_helper_behavior_spec.rb
1016
- - spec/helpers/blacklight/render_constraints_helper_behavior_spec.rb
1017
979
  - spec/helpers/blacklight/render_partials_helper_behavior_spec.rb
1018
- - spec/helpers/blacklight/search_history_constraints_helper_behavior_spec.rb
1019
- - spec/helpers/blacklight/suggest_helper_behavior_spec.rb
1020
980
  - spec/helpers/blacklight/url_helper_behavior_spec.rb
1021
981
  - spec/helpers/blacklight_helper_spec.rb
1022
982
  - spec/helpers/catalog_helper_spec.rb
@@ -1026,11 +986,11 @@ test_files:
1026
986
  - spec/lib/blacklight/configuration/facet_field_spec.rb
1027
987
  - spec/lib/blacklight/configuration/field_spec.rb
1028
988
  - spec/lib/blacklight/configuration/view_config_spec.rb
1029
- - spec/lib/blacklight/engine_spec.rb
1030
989
  - spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
1031
990
  - spec/lib/blacklight/open_struct_with_hash_access_spec.rb
1032
991
  - spec/lib/blacklight/parameters_spec.rb
1033
992
  - spec/lib/blacklight/search_state/filter_field_spec.rb
993
+ - spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
1034
994
  - spec/lib/blacklight/search_state_spec.rb
1035
995
  - spec/lib/blacklight_spec.rb
1036
996
  - spec/lib/tasks/blacklight_task_spec.rb
@@ -1071,39 +1031,32 @@ test_files:
1071
1031
  - spec/presenters/blacklight/index_presenter_spec.rb
1072
1032
  - spec/presenters/blacklight/json_presenter_spec.rb
1073
1033
  - spec/presenters/blacklight/link_alternate_presenter_spec.rb
1074
- - spec/presenters/blacklight/search_bar_presenter_spec.rb
1075
1034
  - spec/presenters/blacklight/show_presenter_spec.rb
1076
1035
  - spec/presenters/pipeline_spec.rb
1077
1036
  - spec/presenters/thumbnail_presenter_spec.rb
1037
+ - spec/requests/load_suggestions_spec.rb
1078
1038
  - spec/routing/catalog_routing_spec.rb
1079
1039
  - spec/routing/search_history_spec.rb
1080
1040
  - spec/services/blacklight/search_service_spec.rb
1081
1041
  - spec/spec_helper.rb
1082
1042
  - spec/support/controller_level_helpers.rb
1083
1043
  - spec/support/features.rb
1044
+ - spec/support/features/search_helpers.rb
1084
1045
  - spec/support/features/session_helpers.rb
1085
1046
  - spec/support/presenter_test_helpers.rb
1086
- - spec/support/view_component_test_helpers.rb
1047
+ - spec/support/view_component_capybara_test_helpers.rb
1087
1048
  - spec/test_app_templates/Gemfile.extra
1088
1049
  - spec/test_app_templates/lib/generators/test_app_generator.rb
1089
- - spec/views/catalog/_constraints.html.erb_spec.rb
1090
1050
  - spec/views/catalog/_document.html.erb_spec.rb
1091
1051
  - spec/views/catalog/_document_list.html.erb_spec.rb
1092
- - spec/views/catalog/_facet_group.html.erb_spec.rb
1093
1052
  - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
1094
1053
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
1095
- - spec/views/catalog/_facets.html.erb_spec.rb
1096
- - spec/views/catalog/_index.html.erb_spec.rb
1097
- - spec/views/catalog/_index_header.html.erb_spec.rb
1098
1054
  - spec/views/catalog/_paginate_compact.html.erb_spec.rb
1099
- - spec/views/catalog/_previous_next_doc.html.erb_spec.rb
1100
1055
  - spec/views/catalog/_search_header.erb_spec.rb
1101
- - spec/views/catalog/_show.html.erb_spec.rb
1102
1056
  - spec/views/catalog/_show_sidebar.erb_spec.rb
1103
1057
  - spec/views/catalog/_show_tools.html.erb_spec.rb
1104
1058
  - spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
1105
1059
  - spec/views/catalog/_sort_widget.html.erb_spec.rb
1106
- - spec/views/catalog/_thumbnail.html.erb_spec.rb
1107
1060
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
1108
1061
  - spec/views/catalog/email_success.html.erb_spec.rb
1109
1062
  - spec/views/catalog/facet.html.erb_spec.rb
data/.babelrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "useBuiltIns": "entry",
7
- "corejs": "2.0"
8
- }
9
- ]
10
- ]
11
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>