blacklight-spotlight 4.7.1 → 5.0.0.pre.alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -12
  3. data/Rakefile +8 -1
  4. data/app/assets/javascripts/spotlight/application.js +0 -1
  5. data/app/assets/javascripts/spotlight/spotlight.esm.js +3621 -3847
  6. data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
  7. data/app/assets/javascripts/spotlight/spotlight.js +3620 -3852
  8. data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
  9. data/app/assets/stylesheets/spotlight/_accessibility.scss +0 -9
  10. data/app/assets/stylesheets/spotlight/_autocomplete.scss +49 -0
  11. data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +0 -1
  12. data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +1 -6
  13. data/app/assets/stylesheets/spotlight/_browse.scss +2 -2
  14. data/app/assets/stylesheets/spotlight/_catalog.scss +40 -41
  15. data/app/assets/stylesheets/spotlight/_curation.scss +1 -1
  16. data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +7 -0
  17. data/app/assets/stylesheets/spotlight/_exhibits_index.scss +8 -5
  18. data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +3 -3
  19. data/app/assets/stylesheets/spotlight/_header.scss +13 -0
  20. data/app/assets/stylesheets/spotlight/_mixins.scss +3 -4
  21. data/app/assets/stylesheets/spotlight/_nestable.scss +2 -12
  22. data/app/assets/stylesheets/spotlight/_pages.scss +11 -9
  23. data/app/assets/stylesheets/spotlight/_report_a_problem.scss +1 -3
  24. data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +2 -2
  25. data/app/assets/stylesheets/spotlight/_spotlight.scss +2 -1
  26. data/app/assets/stylesheets/spotlight/_tag_selector.scss +34 -0
  27. data/app/assets/stylesheets/spotlight/_variables.scss +0 -8
  28. data/app/components/spotlight/analytics/dashboard_component.html.erb +3 -3
  29. data/app/components/spotlight/blocks/heading_block_component.erb +2 -0
  30. data/app/components/spotlight/blocks/heading_block_component.rb +36 -0
  31. data/app/components/spotlight/breadcrumbs_component.html.erb +13 -19
  32. data/app/components/spotlight/bulk_action_component.rb +1 -1
  33. data/app/components/spotlight/document_component.rb +1 -1
  34. data/app/components/spotlight/save_search_component.rb +1 -1
  35. data/app/components/spotlight/select_image_component.html.erb +17 -0
  36. data/app/components/spotlight/select_image_component.rb +24 -0
  37. data/app/components/spotlight/skip_link_component.rb +16 -0
  38. data/app/components/spotlight/tag_selector_component.html.erb +40 -0
  39. data/app/components/spotlight/tag_selector_component.rb +41 -0
  40. data/app/components/spotlight/tag_selector_component.yml +6 -0
  41. data/app/components/spotlight/title_component.html.erb +8 -0
  42. data/app/components/spotlight/title_component.rb +22 -0
  43. data/app/controllers/spotlight/accessibility_controller.rb +2 -2
  44. data/app/controllers/spotlight/catalog_controller.rb +7 -2
  45. data/app/controllers/spotlight/contact_email_controller.rb +8 -2
  46. data/app/controllers/spotlight/languages_controller.rb +9 -4
  47. data/app/helpers/spotlight/application_helper.rb +7 -0
  48. data/app/helpers/spotlight/crop_helper.rb +4 -0
  49. data/app/helpers/spotlight/meta_helper.rb +59 -36
  50. data/app/javascript/spotlight/admin/blacklight_configuration.js +1 -1
  51. data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +70 -34
  52. data/app/javascript/spotlight/admin/blocks/block.js +1 -0
  53. data/app/javascript/spotlight/admin/blocks/browse_block.js +8 -12
  54. data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +14 -18
  55. data/app/javascript/spotlight/admin/blocks/pages_block.js +6 -10
  56. data/app/javascript/spotlight/admin/blocks/resources_block.js +33 -15
  57. data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +11 -6
  58. data/app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js +1 -0
  59. data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +4 -3
  60. data/app/javascript/spotlight/admin/copy_email_addresses.js +2 -0
  61. data/app/javascript/spotlight/admin/crop.js +45 -17
  62. data/app/javascript/spotlight/admin/croppable.js +8 -1
  63. data/app/javascript/spotlight/admin/croppable_modal.js +68 -0
  64. data/app/javascript/spotlight/admin/exhibits.js +15 -10
  65. data/app/javascript/spotlight/admin/form_observer.js +1 -1
  66. data/app/javascript/spotlight/admin/index.js +0 -10
  67. data/app/javascript/spotlight/admin/locks.js +15 -5
  68. data/app/javascript/spotlight/admin/pages.js +1 -1
  69. data/app/javascript/spotlight/admin/search_typeahead.js +62 -55
  70. data/app/javascript/spotlight/admin/spotlight_nestable.js +173 -50
  71. data/app/javascript/spotlight/admin/visibility_toggle.js +1 -11
  72. data/app/javascript/spotlight/controllers/index.js +8 -0
  73. data/app/javascript/spotlight/controllers/tag_selector_controller.js +203 -0
  74. data/app/javascript/spotlight/core.js +4 -6
  75. data/app/javascript/spotlight/index.js +2 -0
  76. data/app/javascript/spotlight/user/browse_group_categories.js +2 -0
  77. data/app/javascript/spotlight/user/carousel.js +3 -1
  78. data/app/javascript/spotlight/user/index.js +0 -2
  79. data/app/javascript/spotlight/user/zpr_links.js +2 -0
  80. data/app/models/sir_trevor_rails/block.rb +4 -5
  81. data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +1 -1
  82. data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +1 -1
  83. data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +1 -1
  84. data/app/models/spotlight/page_configurations.rb +1 -1
  85. data/app/services/spotlight/exhibit_import_export_service.rb +2 -2
  86. data/app/views/catalog/_add_tags.html.erb +2 -2
  87. data/app/views/catalog/_change_visibility.html.erb +1 -1
  88. data/app/views/catalog/_remove_tags.html.erb +2 -2
  89. data/app/views/layouts/spotlight/base.html.erb +24 -13
  90. data/app/views/layouts/spotlight/spotlight.html.erb +6 -6
  91. data/app/views/shared/_masthead.html.erb +4 -31
  92. data/app/views/shared/_site_sidebar.html.erb +1 -1
  93. data/app/views/shared/_user_util_links.html.erb +3 -1
  94. data/app/views/spotlight/accessibility/alt_text.html.erb +2 -2
  95. data/app/views/spotlight/admin_users/index.html.erb +3 -3
  96. data/app/views/spotlight/appearances/edit.html.erb +1 -1
  97. data/app/views/spotlight/browse/_search_box.html.erb +8 -8
  98. data/app/views/spotlight/browse/show.html.erb +1 -1
  99. data/app/views/spotlight/bulk_updates/_download.html.erb +1 -1
  100. data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
  101. data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
  102. data/app/views/spotlight/catalog/_edit_default.html.erb +2 -1
  103. data/app/views/spotlight/catalog/select_image.html.erb +1 -0
  104. data/app/views/spotlight/contacts/_form.html.erb +1 -1
  105. data/app/views/spotlight/exhibits/_contact.html.erb +5 -6
  106. data/app/views/spotlight/exhibits/_delete.html.erb +1 -1
  107. data/app/views/spotlight/exhibits/_languages.html.erb +3 -2
  108. data/app/views/spotlight/featured_images/_form.html.erb +6 -2
  109. data/app/views/spotlight/featured_images/_upload_form.html.erb +1 -1
  110. data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +1 -1
  111. data/app/views/spotlight/metadata_configurations/edit.html.erb +6 -6
  112. data/app/views/spotlight/pages/show.html.erb +1 -1
  113. data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
  114. data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
  115. data/app/views/spotlight/roles/index.html.erb +1 -1
  116. data/app/views/spotlight/searches/_form.html.erb +1 -1
  117. data/app/views/spotlight/shared/_dd3_item.html.erb +1 -1
  118. data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
  119. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  120. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +1 -1
  121. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  122. data/app/views/spotlight/tags/index.html.erb +2 -3
  123. data/app/views/spotlight/translations/_import.html.erb +2 -2
  124. data/config/importmap.rb +5 -0
  125. data/config/locales/spotlight.en.yml +2 -0
  126. data/config/routes.rb +5 -3
  127. data/lib/generators/spotlight/assets/generator_common_utilities.rb +36 -0
  128. data/lib/generators/spotlight/assets/importmap_generator.rb +87 -0
  129. data/lib/generators/spotlight/assets/propshaft_generator.rb +96 -0
  130. data/lib/generators/spotlight/assets_generator.rb +22 -0
  131. data/lib/generators/spotlight/install_generator.rb +8 -36
  132. data/lib/generators/spotlight/scaffold_resource_generator.rb +1 -1
  133. data/lib/generators/spotlight/templates/assets/spotlight.scss +6 -0
  134. data/lib/generators/spotlight/templates/javascript/jquery-shim.js +1 -0
  135. data/lib/spotlight/engine.rb +7 -6
  136. data/lib/spotlight/version.rb +1 -1
  137. data/spec/support/features/capybara_wait_metadata_helper.rb +13 -0
  138. data/spec/support/features/test_features_helpers.rb +16 -30
  139. data/vendor/assets/javascripts/tiny-slider.js +3 -0
  140. metadata +37 -87
  141. data/app/assets/stylesheets/spotlight/#_accessibility.scss# +0 -12
  142. data/app/javascript/spotlight/admin/checkbox_submit.js +0 -75
  143. data/app/javascript/spotlight/admin/exhibit_tag_autocomplete.js +0 -39
  144. data/app/javascript/spotlight/user/report_a_problem.js +0 -30
  145. data/app/views/spotlight/browse/_tophat.html.erb +0 -1
  146. data/app/views/spotlight/catalog/_tophat_default.html.erb +0 -1
  147. data/app/views/spotlight/home_pages/_tophat.html.erb +0 -2
  148. data/app/views/spotlight/pages/_tophat.html.erb +0 -1
  149. data/lib/generators/spotlight/templates/spotlight.js +0 -1
  150. data/lib/generators/spotlight/templates/spotlight.scss +0 -5
  151. data/spec/support/features/capybara_default_max_wait_metadata_helper.rb +0 -20
  152. data/vendor/assets/javascripts/bootstrap-tagsinput.js +0 -530
  153. data/vendor/assets/javascripts/jquery.serializejson.js +0 -234
  154. data/vendor/assets/javascripts/nestable.js +0 -645
  155. data/vendor/assets/javascripts/sir-trevor.js +0 -23508
  156. data/vendor/assets/javascripts/typeahead.bundle.min.js +0 -7
  157. data/vendor/assets/stylesheets/bootstrap-tagsinput.css +0 -46
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.1
4
+ version: 5.0.0.pre.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2025-02-11 00:00:00.000000000 Z
14
+ date: 2025-02-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status
@@ -36,7 +36,7 @@ dependencies:
36
36
  version: '5.0'
37
37
  - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: '12'
39
+ version: '13'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -46,28 +46,14 @@ dependencies:
46
46
  version: '5.0'
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
- version: '12'
50
- - !ruby/object:Gem::Dependency
51
- name: autoprefixer-rails
52
- requirement: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- type: :runtime
58
- prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '0'
49
+ version: '13'
64
50
  - !ruby/object:Gem::Dependency
65
51
  name: blacklight
66
52
  requirement: !ruby/object:Gem::Requirement
67
53
  requirements:
68
54
  - - ">="
69
55
  - !ruby/object:Gem::Version
70
- version: '7.40'
56
+ version: 8.7.0
71
57
  - - "<"
72
58
  - !ruby/object:Gem::Version
73
59
  version: '9'
@@ -77,7 +63,7 @@ dependencies:
77
63
  requirements:
78
64
  - - ">="
79
65
  - !ruby/object:Gem::Version
80
- version: '7.40'
66
+ version: 8.7.0
81
67
  - - "<"
82
68
  - !ruby/object:Gem::Version
83
69
  version: '9'
@@ -149,20 +135,6 @@ dependencies:
149
135
  - - "~>"
150
136
  - !ruby/object:Gem::Version
151
137
  version: '2.2'
152
- - !ruby/object:Gem::Dependency
153
- name: clipboard-rails
154
- requirement: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '1.5'
159
- type: :runtime
160
- prerelease: false
161
- version_requirements: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '1.5'
166
138
  - !ruby/object:Gem::Dependency
167
139
  name: csv
168
140
  requirement: !ruby/object:Gem::Requirement
@@ -331,20 +303,6 @@ dependencies:
331
303
  - - ">="
332
304
  - !ruby/object:Gem::Version
333
305
  version: '0'
334
- - !ruby/object:Gem::Dependency
335
- name: leaflet-rails
336
- requirement: !ruby/object:Gem::Requirement
337
- requirements:
338
- - - ">="
339
- - !ruby/object:Gem::Version
340
- version: '0'
341
- type: :runtime
342
- prerelease: false
343
- version_requirements: !ruby/object:Gem::Requirement
344
- requirements:
345
- - - ">="
346
- - !ruby/object:Gem::Version
347
- version: '0'
348
306
  - !ruby/object:Gem::Dependency
349
307
  name: mini_magick
350
308
  requirement: !ruby/object:Gem::Requirement
@@ -393,14 +351,14 @@ dependencies:
393
351
  requirements:
394
352
  - - ">="
395
353
  - !ruby/object:Gem::Version
396
- version: '0'
354
+ version: 0.8.0
397
355
  type: :runtime
398
356
  prerelease: false
399
357
  version_requirements: !ruby/object:Gem::Requirement
400
358
  requirements:
401
359
  - - ">="
402
360
  - !ruby/object:Gem::Version
403
- version: '0'
361
+ version: 0.8.0
404
362
  - !ruby/object:Gem::Dependency
405
363
  name: ostruct
406
364
  requirement: !ruby/object:Gem::Requirement
@@ -436,7 +394,7 @@ dependencies:
436
394
  version: '11.0'
437
395
  - - "<"
438
396
  - !ruby/object:Gem::Version
439
- version: '16'
397
+ version: '17'
440
398
  type: :runtime
441
399
  prerelease: false
442
400
  version_requirements: !ruby/object:Gem::Requirement
@@ -446,27 +404,27 @@ dependencies:
446
404
  version: '11.0'
447
405
  - - "<"
448
406
  - !ruby/object:Gem::Version
449
- version: '16'
407
+ version: '17'
450
408
  - !ruby/object:Gem::Dependency
451
409
  name: rails
452
410
  requirement: !ruby/object:Gem::Requirement
453
411
  requirements:
454
412
  - - ">="
455
413
  - !ruby/object:Gem::Version
456
- version: '7.0'
414
+ version: '7.1'
457
415
  - - "<"
458
416
  - !ruby/object:Gem::Version
459
- version: '8'
417
+ version: '9'
460
418
  type: :runtime
461
419
  prerelease: false
462
420
  version_requirements: !ruby/object:Gem::Requirement
463
421
  requirements:
464
422
  - - ">="
465
423
  - !ruby/object:Gem::Version
466
- version: '7.0'
424
+ version: '7.1'
467
425
  - - "<"
468
426
  - !ruby/object:Gem::Version
469
- version: '8'
427
+ version: '9'
470
428
  - !ruby/object:Gem::Dependency
471
429
  name: redcarpet
472
430
  requirement: !ruby/object:Gem::Requirement
@@ -543,20 +501,6 @@ dependencies:
543
501
  - - ">="
544
502
  - !ruby/object:Gem::Version
545
503
  version: '0'
546
- - !ruby/object:Gem::Dependency
547
- name: tophat
548
- requirement: !ruby/object:Gem::Requirement
549
- requirements:
550
- - - ">="
551
- - !ruby/object:Gem::Version
552
- version: '0'
553
- type: :runtime
554
- prerelease: false
555
- version_requirements: !ruby/object:Gem::Requirement
556
- requirements:
557
- - - ">="
558
- - !ruby/object:Gem::Version
559
- version: '0'
560
504
  - !ruby/object:Gem::Dependency
561
505
  name: view_component
562
506
  requirement: !ruby/object:Gem::Requirement
@@ -863,9 +807,9 @@ files:
863
807
  - app/assets/javascripts/spotlight/spotlight.esm.js.map
864
808
  - app/assets/javascripts/spotlight/spotlight.js
865
809
  - app/assets/javascripts/spotlight/spotlight.js.map
866
- - app/assets/stylesheets/spotlight/#_accessibility.scss#
867
810
  - app/assets/stylesheets/spotlight/_accessibility.scss
868
811
  - app/assets/stylesheets/spotlight/_attachments.css
812
+ - app/assets/stylesheets/spotlight/_autocomplete.scss
869
813
  - app/assets/stylesheets/spotlight/_blacklight_configuration.scss
870
814
  - app/assets/stylesheets/spotlight/_blacklight_overrides.scss
871
815
  - app/assets/stylesheets/spotlight/_bootstrap_overrides.scss
@@ -893,6 +837,7 @@ files:
893
837
  - app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss
894
838
  - app/assets/stylesheets/spotlight/_slideshow_block.scss
895
839
  - app/assets/stylesheets/spotlight/_spotlight.scss
840
+ - app/assets/stylesheets/spotlight/_tag_selector.scss
896
841
  - app/assets/stylesheets/spotlight/_translations.scss
897
842
  - app/assets/stylesheets/spotlight/_upload.scss
898
843
  - app/assets/stylesheets/spotlight/_uploaded_items_block.scss
@@ -920,6 +865,8 @@ files:
920
865
  - app/components/spotlight/analytics/aggregation_component.rb
921
866
  - app/components/spotlight/analytics/dashboard_component.html.erb
922
867
  - app/components/spotlight/analytics/dashboard_component.rb
868
+ - app/components/spotlight/blocks/heading_block_component.erb
869
+ - app/components/spotlight/blocks/heading_block_component.rb
923
870
  - app/components/spotlight/breadcrumbs_component.html.erb
924
871
  - app/components/spotlight/breadcrumbs_component.rb
925
872
  - app/components/spotlight/bulk_action_component.html.erb
@@ -938,10 +885,18 @@ files:
938
885
  - app/components/spotlight/icon_component.rb
939
886
  - app/components/spotlight/save_search_component.html.erb
940
887
  - app/components/spotlight/save_search_component.rb
888
+ - app/components/spotlight/select_image_component.html.erb
889
+ - app/components/spotlight/select_image_component.rb
890
+ - app/components/spotlight/skip_link_component.rb
941
891
  - app/components/spotlight/solr_document_legacy_embed_component.html.erb
942
892
  - app/components/spotlight/solr_document_legacy_embed_component.rb
943
893
  - app/components/spotlight/tag_list_form_component.html.erb
944
894
  - app/components/spotlight/tag_list_form_component.rb
895
+ - app/components/spotlight/tag_selector_component.html.erb
896
+ - app/components/spotlight/tag_selector_component.rb
897
+ - app/components/spotlight/tag_selector_component.yml
898
+ - app/components/spotlight/title_component.html.erb
899
+ - app/components/spotlight/title_component.rb
945
900
  - app/components/spotlight/translations/subheading_component.html.erb
946
901
  - app/components/spotlight/translations/subheading_component.rb
947
902
  - app/controllers/concerns/spotlight/base.rb
@@ -1033,12 +988,11 @@ files:
1033
988
  - app/javascript/spotlight/admin/blocks/solr_documents_features_block.js
1034
989
  - app/javascript/spotlight/admin/blocks/solr_documents_grid_block.js
1035
990
  - app/javascript/spotlight/admin/blocks/uploaded_items_block.js
1036
- - app/javascript/spotlight/admin/checkbox_submit.js
1037
991
  - app/javascript/spotlight/admin/copy_email_addresses.js
1038
992
  - app/javascript/spotlight/admin/crop.js
1039
993
  - app/javascript/spotlight/admin/croppable.js
994
+ - app/javascript/spotlight/admin/croppable_modal.js
1040
995
  - app/javascript/spotlight/admin/edit_in_place.js
1041
- - app/javascript/spotlight/admin/exhibit_tag_autocomplete.js
1042
996
  - app/javascript/spotlight/admin/exhibits.js
1043
997
  - app/javascript/spotlight/admin/form_observer.js
1044
998
  - app/javascript/spotlight/admin/iiif.js
@@ -1058,13 +1012,14 @@ files:
1058
1012
  - app/javascript/spotlight/admin/translation_progress.js
1059
1013
  - app/javascript/spotlight/admin/users.js
1060
1014
  - app/javascript/spotlight/admin/visibility_toggle.js
1015
+ - app/javascript/spotlight/controllers/index.js
1016
+ - app/javascript/spotlight/controllers/tag_selector_controller.js
1061
1017
  - app/javascript/spotlight/core.js
1062
1018
  - app/javascript/spotlight/index.js
1063
1019
  - app/javascript/spotlight/user/browse_group_categories.js
1064
1020
  - app/javascript/spotlight/user/carousel.js
1065
1021
  - app/javascript/spotlight/user/clear_form_button.js
1066
1022
  - app/javascript/spotlight/user/index.js
1067
- - app/javascript/spotlight/user/report_a_problem.js
1068
1023
  - app/javascript/spotlight/user/zpr_links.js
1069
1024
  - app/jobs/concerns/spotlight/gather_documents.rb
1070
1025
  - app/jobs/concerns/spotlight/job_tracking.rb
@@ -1226,7 +1181,6 @@ files:
1226
1181
  - app/views/spotlight/browse/_search.html.erb
1227
1182
  - app/views/spotlight/browse/_search_box.html.erb
1228
1183
  - app/views/spotlight/browse/_search_title.html.erb
1229
- - app/views/spotlight/browse/_tophat.html.erb
1230
1184
  - app/views/spotlight/browse/index.html.erb
1231
1185
  - app/views/spotlight/browse/show.html.erb
1232
1186
  - app/views/spotlight/bulk_updates/_download.html.erb
@@ -1246,10 +1200,10 @@ files:
1246
1200
  - app/views/spotlight/catalog/_edit_sidecar.html.erb
1247
1201
  - app/views/spotlight/catalog/_index_compact_default.html.erb
1248
1202
  - app/views/spotlight/catalog/_reindex_progress_panel.html.erb
1249
- - app/views/spotlight/catalog/_tophat_default.html.erb
1250
1203
  - app/views/spotlight/catalog/admin.html.erb
1251
1204
  - app/views/spotlight/catalog/edit.html.erb
1252
1205
  - app/views/spotlight/catalog/index.iiif_json.jbuilder
1206
+ - app/views/spotlight/catalog/select_image.html.erb
1253
1207
  - app/views/spotlight/confirmation_mailer/confirmation_instructions.html.erb
1254
1208
  - app/views/spotlight/contact_forms/new.html.erb
1255
1209
  - app/views/spotlight/contact_mailer/report_problem.html.erb
@@ -1297,7 +1251,6 @@ files:
1297
1251
  - app/views/spotlight/home_pages/_empty.html.erb
1298
1252
  - app/views/spotlight/home_pages/_page_options.html.erb
1299
1253
  - app/views/spotlight/home_pages/_sidebar.html.erb
1300
- - app/views/spotlight/home_pages/_tophat.html.erb
1301
1254
  - app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb
1302
1255
  - app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb
1303
1256
  - app/views/spotlight/job_trackers/show.html.erb
@@ -1311,7 +1264,6 @@ files:
1311
1264
  - app/views/spotlight/pages/_order_pages.html.erb
1312
1265
  - app/views/spotlight/pages/_page.html.erb
1313
1266
  - app/views/spotlight/pages/_page_options.html.erb
1314
- - app/views/spotlight/pages/_tophat.html.erb
1315
1267
  - app/views/spotlight/pages/_view_type_group.html.erb
1316
1268
  - app/views/spotlight/pages/edit.html.erb
1317
1269
  - app/views/spotlight/pages/index.html.erb
@@ -1475,14 +1427,20 @@ files:
1475
1427
  - db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
1476
1428
  - db/migrate/20210506070809_add_indexes_for_featured_images.rb
1477
1429
  - lib/blacklight/spotlight.rb
1430
+ - lib/generators/spotlight/assets/generator_common_utilities.rb
1431
+ - lib/generators/spotlight/assets/importmap_generator.rb
1432
+ - lib/generators/spotlight/assets/propshaft_generator.rb
1433
+ - lib/generators/spotlight/assets_generator.rb
1478
1434
  - lib/generators/spotlight/install_generator.rb
1479
1435
  - lib/generators/spotlight/scaffold_resource_generator.rb
1436
+ - lib/generators/spotlight/templates/assets/spotlight.scss
1480
1437
  - lib/generators/spotlight/templates/catalog_controller.rb
1481
1438
  - lib/generators/spotlight/templates/config/initializers/oembed.rb
1482
1439
  - lib/generators/spotlight/templates/config/initializers/riiif.rb
1483
1440
  - lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb
1484
1441
  - lib/generators/spotlight/templates/config/initializers/translation.rb
1485
1442
  - lib/generators/spotlight/templates/config/sitemap.rb
1443
+ - lib/generators/spotlight/templates/javascript/jquery-shim.js
1486
1444
  - lib/generators/spotlight/templates/solr/conf/_rest_managed.json
1487
1445
  - lib/generators/spotlight/templates/solr/conf/admin-extra.html
1488
1446
  - lib/generators/spotlight/templates/solr/conf/elevate.xml
@@ -1499,8 +1457,6 @@ files:
1499
1457
  - lib/generators/spotlight/templates/solr/conf/xslt/example_atom.xsl
1500
1458
  - lib/generators/spotlight/templates/solr/conf/xslt/example_rss.xsl
1501
1459
  - lib/generators/spotlight/templates/solr/conf/xslt/luke.xsl
1502
- - lib/generators/spotlight/templates/spotlight.js
1503
- - lib/generators/spotlight/templates/spotlight.scss
1504
1460
  - lib/generators/spotlight/templates/spotlight_helper.rb
1505
1461
  - lib/migration/iiif.rb
1506
1462
  - lib/migration/page_language.rb
@@ -1544,7 +1500,7 @@ files:
1544
1500
  - spec/fixtures/updated-bulk-update-template.csv
1545
1501
  - spec/support/controllers/engine_helpers.rb
1546
1502
  - spec/support/disable_friendly_id_deprecation_warnings.rb
1547
- - spec/support/features/capybara_default_max_wait_metadata_helper.rb
1503
+ - spec/support/features/capybara_wait_metadata_helper.rb
1548
1504
  - spec/support/features/test_features_helpers.rb
1549
1505
  - spec/support/helpers/controller_level_helpers.rb
1550
1506
  - spec/support/stub_iiif_response.rb
@@ -1552,16 +1508,10 @@ files:
1552
1508
  - vendor/assets/images/sir-trevor-icons.svg
1553
1509
  - vendor/assets/javascripts/Leaflet.Editable.js
1554
1510
  - vendor/assets/javascripts/Path.Drag.js
1555
- - vendor/assets/javascripts/bootstrap-tagsinput.js
1556
- - vendor/assets/javascripts/jquery.serializejson.js
1557
1511
  - vendor/assets/javascripts/jquery.waitforimages.min.js
1558
1512
  - vendor/assets/javascripts/leaflet-iiif.js
1559
- - vendor/assets/javascripts/nestable.js
1560
1513
  - vendor/assets/javascripts/parameterize.js
1561
- - vendor/assets/javascripts/sir-trevor.js
1562
1514
  - vendor/assets/javascripts/tiny-slider.js
1563
- - vendor/assets/javascripts/typeahead.bundle.min.js
1564
- - vendor/assets/stylesheets/bootstrap-tagsinput.css
1565
1515
  - vendor/assets/stylesheets/sir-trevor/_icons.scss
1566
1516
  - vendor/assets/stylesheets/sir-trevor/_variables.scss
1567
1517
  - vendor/assets/stylesheets/sir-trevor/base.scss
@@ -1,12 +0,0 @@
1
- // Global accessibility overrides
2
-
3
- // Increase visibility of Firefox focus indicator
4
- @-moz-document url-prefix() {
5
- :focus {
6
- outline: $input-focus-border-color auto 5px;
7
- }
8
- }
9
-
10
- .btn:focus-visible {
11
- outline: $input-focus-border-color auto 5px;
12
- }
@@ -1,75 +0,0 @@
1
- /*
2
- NOTE: this is copied & adapted from BL8's checkbox_submit.js in order to have
3
- it accessible in a BL7-based spotlight. Once we drop support for BL7, this file
4
- can be deleted and we can change visibility_toggle.es6 to import CheckboxSubmit
5
- from Blacklight.
6
-
7
- See https://github.com/projectblacklight/blacklight/blob/main/app/javascript/blacklight/checkbox_submit.js
8
- */
9
- export default class CheckboxSubmit {
10
- constructor(form) {
11
- this.form = form
12
- }
13
-
14
- async clicked(evt) {
15
- this.spanTarget.innerHTML = this.form.getAttribute('data-inprogress')
16
- this.labelTarget.setAttribute('disabled', 'disabled');
17
- this.checkboxTarget.setAttribute('disabled', 'disabled');
18
- const csrfMeta = document.querySelector('meta[name=csrf-token]')
19
- const response = await fetch(this.formTarget.getAttribute('action'), {
20
- body: new FormData(this.formTarget),
21
- method: this.formTarget.getAttribute('method').toUpperCase(),
22
- headers: {
23
- 'Accept': 'application/json',
24
- 'X-Requested-With': 'XMLHttpRequest',
25
- 'X-CSRF-Token': csrfMeta ? csrfMeta.content : ''
26
- }
27
- })
28
- this.labelTarget.removeAttribute('disabled')
29
- this.checkboxTarget.removeAttribute('disabled')
30
- if (response.ok) {
31
- this.updateStateFor(!this.checked)
32
- // Not used for our case in Spotlight (visibility toggle)
33
- // const json = await response.json()
34
- // document.querySelector('[data-role=bookmark-counter]').innerHTML = json.bookmarks.count
35
- } else {
36
- alert('Error')
37
- }
38
- }
39
-
40
- get checked() {
41
- return (this.form.querySelectorAll('input[name=_method][value=delete]').length != 0)
42
- }
43
-
44
- get formTarget() {
45
- return this.form
46
- }
47
-
48
- get labelTarget() {
49
- return this.form.querySelector('[data-checkboxsubmit-target="label"]')
50
- }
51
-
52
- get checkboxTarget() {
53
- return this.form.querySelector('[data-checkboxsubmit-target="checkbox"]')
54
- }
55
-
56
- get spanTarget() {
57
- return this.form.querySelector('[data-checkboxsubmit-target="span"]')
58
- }
59
-
60
- updateStateFor(state) {
61
- this.checkboxTarget.checked = state
62
-
63
- if (state) {
64
- this.labelTarget.classList.add('checked')
65
- //Set the Rails hidden field that fakes an HTTP verb
66
- //properly for current state action.
67
- this.formTarget.querySelector('input[name=_method]').value = 'delete'
68
- this.spanTarget.innerHTML = this.form.getAttribute('data-present')
69
- } else {
70
- this.labelTarget.classList.remove('checked')
71
- this.formTarget.querySelector('input[name=_method]').value = 'put'
72
- this.spanTarget.innerHTML = this.form.getAttribute('data-absent')
73
- }
74
- }
75
- }
@@ -1,39 +0,0 @@
1
- export default class {
2
- connect() {
3
- $('[data-autocomplete-tag="true"]').each(function(_i, el) {
4
- var $el = $(el);
5
- // By default tags input binds on page ready to [data-role=tagsinput],
6
- // however, that doesn't work with Turbolinks. So we init manually:
7
- $el.tagsinput();
8
-
9
- var tags = new Bloodhound({
10
- datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); },
11
- queryTokenizer: Bloodhound.tokenizers.whitespace,
12
- limit: 100,
13
- prefetch: {
14
- url: $el.data('autocomplete-url'),
15
- ttl: 1,
16
- filter: function(list) {
17
- // Let the dom know that the response has been returned
18
- $el.attr('data-autocomplete-fetched', true);
19
- return $.map(list, function(tag) { return { name: tag }; });
20
- }
21
- }
22
- });
23
-
24
- tags.initialize();
25
-
26
- $el.tagsinput('input').typeahead({highlight: true, hint: false}, {
27
- name: 'tags',
28
- displayKey: 'name',
29
- source: tags.ttAdapter()
30
- }).bind('typeahead:selected', $.proxy(function (obj, datum) {
31
- $el.tagsinput('add', datum.name);
32
- $el.tagsinput('input').typeahead('val', '');
33
- })).bind('blur', function() {
34
- $el.tagsinput('add', $el.tagsinput('input').typeahead('val'));
35
- $el.tagsinput('input').typeahead('val', '');
36
- })
37
- })
38
- }
39
- }
@@ -1,30 +0,0 @@
1
- export default class {
2
- connect(){
3
- var container, target;
4
-
5
- function init() {
6
- const target_val = container.attr('data-target') || container.attr('data-bs-target');
7
- if (!target_val)
8
- return
9
-
10
- target = $("#" + target_val);
11
- container.on('click', open);
12
- target.find('[data-behavior="cancel-link"]').on('click', close);
13
- }
14
-
15
- function open(event) {
16
- event.preventDefault();
17
- target.slideToggle('slow');
18
- }
19
-
20
- function close(event) {
21
- event.preventDefault();
22
- target.slideUp('fast');
23
- }
24
-
25
- return $('[data-behavior="contact-link"]').each(function() {
26
- container = $(this);
27
- init();
28
- });
29
- }
30
- }
@@ -1 +0,0 @@
1
- <% add_browse_meta_content(@search) %>
@@ -1 +0,0 @@
1
- <% add_document_meta_content(@document) %>
@@ -1,2 +0,0 @@
1
- <% description current_exhibit.description %>
2
- <% add_exhibit_meta_content %>
@@ -1 +0,0 @@
1
- <% add_page_meta_content(@page) %>
@@ -1 +0,0 @@
1
- //= require spotlight/application
@@ -1,5 +0,0 @@
1
- @import 'bootstrap-tagsinput';
2
- @import 'bootstrap';
3
- @import 'sir-trevor/main';
4
- @import 'leaflet';
5
- @import 'spotlight/spotlight';
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module CapybaraDefaultMaxWaitMetadataHelper
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- before do |example|
8
- next unless example.metadata[:default_max_wait_time]
9
-
10
- @previous_wait_time = Capybara.default_max_wait_time
11
- Capybara.default_max_wait_time = example.metadata[:default_max_wait_time]
12
- end
13
-
14
- after do |example|
15
- next unless example.metadata[:default_max_wait_time]
16
-
17
- Capybara.default_max_wait_time = @previous_wait_time
18
- end
19
- end
20
- end