blacklight-spotlight 4.7.0 → 5.0.0.pre.alpha1

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 (152) 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 +3620 -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/breadcrumbs_component.html.erb +13 -19
  30. data/app/components/spotlight/bulk_action_component.rb +1 -1
  31. data/app/components/spotlight/document_component.rb +1 -1
  32. data/app/components/spotlight/save_search_component.rb +1 -1
  33. data/app/components/spotlight/select_image_component.html.erb +17 -0
  34. data/app/components/spotlight/select_image_component.rb +24 -0
  35. data/app/components/spotlight/skip_link_component.rb +16 -0
  36. data/app/components/spotlight/tag_selector_component.html.erb +40 -0
  37. data/app/components/spotlight/tag_selector_component.rb +41 -0
  38. data/app/components/spotlight/tag_selector_component.yml +6 -0
  39. data/app/components/spotlight/title_component.html.erb +8 -0
  40. data/app/components/spotlight/title_component.rb +22 -0
  41. data/app/controllers/spotlight/accessibility_controller.rb +2 -2
  42. data/app/controllers/spotlight/catalog_controller.rb +7 -2
  43. data/app/controllers/spotlight/contact_email_controller.rb +8 -2
  44. data/app/controllers/spotlight/languages_controller.rb +9 -4
  45. data/app/helpers/spotlight/application_helper.rb +7 -0
  46. data/app/helpers/spotlight/crop_helper.rb +4 -0
  47. data/app/helpers/spotlight/meta_helper.rb +59 -36
  48. data/app/javascript/spotlight/admin/blacklight_configuration.js +1 -1
  49. data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +70 -34
  50. data/app/javascript/spotlight/admin/blocks/block.js +1 -0
  51. data/app/javascript/spotlight/admin/blocks/browse_block.js +8 -12
  52. data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +14 -18
  53. data/app/javascript/spotlight/admin/blocks/pages_block.js +6 -10
  54. data/app/javascript/spotlight/admin/blocks/resources_block.js +33 -15
  55. data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +11 -6
  56. data/app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js +1 -0
  57. data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +4 -3
  58. data/app/javascript/spotlight/admin/copy_email_addresses.js +2 -0
  59. data/app/javascript/spotlight/admin/crop.js +45 -17
  60. data/app/javascript/spotlight/admin/croppable.js +8 -1
  61. data/app/javascript/spotlight/admin/croppable_modal.js +68 -0
  62. data/app/javascript/spotlight/admin/exhibits.js +15 -10
  63. data/app/javascript/spotlight/admin/form_observer.js +1 -1
  64. data/app/javascript/spotlight/admin/index.js +0 -10
  65. data/app/javascript/spotlight/admin/locks.js +15 -5
  66. data/app/javascript/spotlight/admin/pages.js +1 -1
  67. data/app/javascript/spotlight/admin/search_typeahead.js +62 -55
  68. data/app/javascript/spotlight/admin/spotlight_nestable.js +173 -50
  69. data/app/javascript/spotlight/admin/visibility_toggle.js +1 -11
  70. data/app/javascript/spotlight/controllers/index.js +8 -0
  71. data/app/javascript/spotlight/controllers/tag_selector_controller.js +203 -0
  72. data/app/javascript/spotlight/core.js +4 -6
  73. data/app/javascript/spotlight/index.js +2 -0
  74. data/app/javascript/spotlight/user/browse_group_categories.js +2 -0
  75. data/app/javascript/spotlight/user/carousel.js +3 -1
  76. data/app/javascript/spotlight/user/index.js +0 -2
  77. data/app/models/sir_trevor_rails/block.rb +5 -4
  78. data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +1 -1
  79. data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +1 -1
  80. data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +1 -1
  81. data/app/models/spotlight/page_configurations.rb +1 -1
  82. data/app/views/catalog/_add_tags.html.erb +2 -2
  83. data/app/views/catalog/_change_visibility.html.erb +1 -1
  84. data/app/views/catalog/_remove_tags.html.erb +2 -2
  85. data/app/views/layouts/spotlight/base.html.erb +24 -13
  86. data/app/views/layouts/spotlight/spotlight.html.erb +6 -6
  87. data/app/views/shared/_masthead.html.erb +4 -31
  88. data/app/views/shared/_site_sidebar.html.erb +1 -1
  89. data/app/views/shared/_user_util_links.html.erb +3 -1
  90. data/app/views/spotlight/accessibility/alt_text.html.erb +2 -2
  91. data/app/views/spotlight/admin_users/index.html.erb +3 -3
  92. data/app/views/spotlight/appearances/edit.html.erb +1 -1
  93. data/app/views/spotlight/browse/_search_box.html.erb +8 -8
  94. data/app/views/spotlight/browse/show.html.erb +1 -1
  95. data/app/views/spotlight/bulk_updates/_download.html.erb +1 -1
  96. data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
  97. data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
  98. data/app/views/spotlight/catalog/_edit_default.html.erb +2 -1
  99. data/app/views/spotlight/catalog/select_image.html.erb +1 -0
  100. data/app/views/spotlight/contacts/_form.html.erb +1 -1
  101. data/app/views/spotlight/exhibits/_contact.html.erb +5 -6
  102. data/app/views/spotlight/exhibits/_delete.html.erb +1 -1
  103. data/app/views/spotlight/exhibits/_languages.html.erb +3 -2
  104. data/app/views/spotlight/featured_images/_form.html.erb +6 -2
  105. data/app/views/spotlight/featured_images/_upload_form.html.erb +1 -1
  106. data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +1 -1
  107. data/app/views/spotlight/metadata_configurations/edit.html.erb +6 -6
  108. data/app/views/spotlight/pages/show.html.erb +1 -1
  109. data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
  110. data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
  111. data/app/views/spotlight/roles/index.html.erb +1 -1
  112. data/app/views/spotlight/searches/_form.html.erb +1 -1
  113. data/app/views/spotlight/shared/_dd3_item.html.erb +1 -1
  114. data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
  115. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  116. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +1 -1
  117. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  118. data/app/views/spotlight/tags/index.html.erb +2 -3
  119. data/app/views/spotlight/translations/_import.html.erb +2 -2
  120. data/config/importmap.rb +5 -0
  121. data/config/locales/spotlight.en.yml +2 -0
  122. data/config/routes.rb +5 -3
  123. data/lib/generators/spotlight/assets/generator_common_utilities.rb +36 -0
  124. data/lib/generators/spotlight/assets/importmap_generator.rb +87 -0
  125. data/lib/generators/spotlight/assets/propshaft_generator.rb +96 -0
  126. data/lib/generators/spotlight/assets_generator.rb +22 -0
  127. data/lib/generators/spotlight/install_generator.rb +8 -36
  128. data/lib/generators/spotlight/scaffold_resource_generator.rb +1 -1
  129. data/lib/generators/spotlight/templates/assets/spotlight.scss +6 -0
  130. data/lib/generators/spotlight/templates/javascript/jquery-shim.js +1 -0
  131. data/lib/spotlight/engine.rb +7 -6
  132. data/lib/spotlight/version.rb +1 -1
  133. data/spec/support/features/capybara_wait_metadata_helper.rb +13 -0
  134. data/spec/support/features/test_features_helpers.rb +16 -30
  135. data/vendor/assets/javascripts/tiny-slider.js +3 -0
  136. metadata +36 -87
  137. data/app/javascript/spotlight/admin/checkbox_submit.js +0 -75
  138. data/app/javascript/spotlight/admin/exhibit_tag_autocomplete.js +0 -39
  139. data/app/javascript/spotlight/user/report_a_problem.js +0 -30
  140. data/app/views/spotlight/browse/_tophat.html.erb +0 -1
  141. data/app/views/spotlight/catalog/_tophat_default.html.erb +0 -1
  142. data/app/views/spotlight/home_pages/_tophat.html.erb +0 -2
  143. data/app/views/spotlight/pages/_tophat.html.erb +0 -1
  144. data/lib/generators/spotlight/templates/spotlight.js +0 -1
  145. data/lib/generators/spotlight/templates/spotlight.scss +0 -5
  146. data/spec/support/features/capybara_default_max_wait_metadata_helper.rb +0 -20
  147. data/vendor/assets/javascripts/bootstrap-tagsinput.js +0 -530
  148. data/vendor/assets/javascripts/jquery.serializejson.js +0 -234
  149. data/vendor/assets/javascripts/nestable.js +0 -645
  150. data/vendor/assets/javascripts/sir-trevor.js +0 -23508
  151. data/vendor/assets/javascripts/typeahead.bundle.min.js +0 -7
  152. 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.0
4
+ version: 5.0.0.pre.alpha1
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-01-24 00:00:00.000000000 Z
14
+ date: 2025-02-13 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
@@ -865,6 +809,7 @@ files:
865
809
  - app/assets/javascripts/spotlight/spotlight.js.map
866
810
  - app/assets/stylesheets/spotlight/_accessibility.scss
867
811
  - app/assets/stylesheets/spotlight/_attachments.css
812
+ - app/assets/stylesheets/spotlight/_autocomplete.scss
868
813
  - app/assets/stylesheets/spotlight/_blacklight_configuration.scss
869
814
  - app/assets/stylesheets/spotlight/_blacklight_overrides.scss
870
815
  - app/assets/stylesheets/spotlight/_bootstrap_overrides.scss
@@ -892,6 +837,7 @@ files:
892
837
  - app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss
893
838
  - app/assets/stylesheets/spotlight/_slideshow_block.scss
894
839
  - app/assets/stylesheets/spotlight/_spotlight.scss
840
+ - app/assets/stylesheets/spotlight/_tag_selector.scss
895
841
  - app/assets/stylesheets/spotlight/_translations.scss
896
842
  - app/assets/stylesheets/spotlight/_upload.scss
897
843
  - app/assets/stylesheets/spotlight/_uploaded_items_block.scss
@@ -937,10 +883,18 @@ files:
937
883
  - app/components/spotlight/icon_component.rb
938
884
  - app/components/spotlight/save_search_component.html.erb
939
885
  - app/components/spotlight/save_search_component.rb
886
+ - app/components/spotlight/select_image_component.html.erb
887
+ - app/components/spotlight/select_image_component.rb
888
+ - app/components/spotlight/skip_link_component.rb
940
889
  - app/components/spotlight/solr_document_legacy_embed_component.html.erb
941
890
  - app/components/spotlight/solr_document_legacy_embed_component.rb
942
891
  - app/components/spotlight/tag_list_form_component.html.erb
943
892
  - app/components/spotlight/tag_list_form_component.rb
893
+ - app/components/spotlight/tag_selector_component.html.erb
894
+ - app/components/spotlight/tag_selector_component.rb
895
+ - app/components/spotlight/tag_selector_component.yml
896
+ - app/components/spotlight/title_component.html.erb
897
+ - app/components/spotlight/title_component.rb
944
898
  - app/components/spotlight/translations/subheading_component.html.erb
945
899
  - app/components/spotlight/translations/subheading_component.rb
946
900
  - app/controllers/concerns/spotlight/base.rb
@@ -1032,12 +986,11 @@ files:
1032
986
  - app/javascript/spotlight/admin/blocks/solr_documents_features_block.js
1033
987
  - app/javascript/spotlight/admin/blocks/solr_documents_grid_block.js
1034
988
  - app/javascript/spotlight/admin/blocks/uploaded_items_block.js
1035
- - app/javascript/spotlight/admin/checkbox_submit.js
1036
989
  - app/javascript/spotlight/admin/copy_email_addresses.js
1037
990
  - app/javascript/spotlight/admin/crop.js
1038
991
  - app/javascript/spotlight/admin/croppable.js
992
+ - app/javascript/spotlight/admin/croppable_modal.js
1039
993
  - app/javascript/spotlight/admin/edit_in_place.js
1040
- - app/javascript/spotlight/admin/exhibit_tag_autocomplete.js
1041
994
  - app/javascript/spotlight/admin/exhibits.js
1042
995
  - app/javascript/spotlight/admin/form_observer.js
1043
996
  - app/javascript/spotlight/admin/iiif.js
@@ -1057,13 +1010,14 @@ files:
1057
1010
  - app/javascript/spotlight/admin/translation_progress.js
1058
1011
  - app/javascript/spotlight/admin/users.js
1059
1012
  - app/javascript/spotlight/admin/visibility_toggle.js
1013
+ - app/javascript/spotlight/controllers/index.js
1014
+ - app/javascript/spotlight/controllers/tag_selector_controller.js
1060
1015
  - app/javascript/spotlight/core.js
1061
1016
  - app/javascript/spotlight/index.js
1062
1017
  - app/javascript/spotlight/user/browse_group_categories.js
1063
1018
  - app/javascript/spotlight/user/carousel.js
1064
1019
  - app/javascript/spotlight/user/clear_form_button.js
1065
1020
  - app/javascript/spotlight/user/index.js
1066
- - app/javascript/spotlight/user/report_a_problem.js
1067
1021
  - app/javascript/spotlight/user/zpr_links.js
1068
1022
  - app/jobs/concerns/spotlight/gather_documents.rb
1069
1023
  - app/jobs/concerns/spotlight/job_tracking.rb
@@ -1225,7 +1179,6 @@ files:
1225
1179
  - app/views/spotlight/browse/_search.html.erb
1226
1180
  - app/views/spotlight/browse/_search_box.html.erb
1227
1181
  - app/views/spotlight/browse/_search_title.html.erb
1228
- - app/views/spotlight/browse/_tophat.html.erb
1229
1182
  - app/views/spotlight/browse/index.html.erb
1230
1183
  - app/views/spotlight/browse/show.html.erb
1231
1184
  - app/views/spotlight/bulk_updates/_download.html.erb
@@ -1245,10 +1198,10 @@ files:
1245
1198
  - app/views/spotlight/catalog/_edit_sidecar.html.erb
1246
1199
  - app/views/spotlight/catalog/_index_compact_default.html.erb
1247
1200
  - app/views/spotlight/catalog/_reindex_progress_panel.html.erb
1248
- - app/views/spotlight/catalog/_tophat_default.html.erb
1249
1201
  - app/views/spotlight/catalog/admin.html.erb
1250
1202
  - app/views/spotlight/catalog/edit.html.erb
1251
1203
  - app/views/spotlight/catalog/index.iiif_json.jbuilder
1204
+ - app/views/spotlight/catalog/select_image.html.erb
1252
1205
  - app/views/spotlight/confirmation_mailer/confirmation_instructions.html.erb
1253
1206
  - app/views/spotlight/contact_forms/new.html.erb
1254
1207
  - app/views/spotlight/contact_mailer/report_problem.html.erb
@@ -1296,7 +1249,6 @@ files:
1296
1249
  - app/views/spotlight/home_pages/_empty.html.erb
1297
1250
  - app/views/spotlight/home_pages/_page_options.html.erb
1298
1251
  - app/views/spotlight/home_pages/_sidebar.html.erb
1299
- - app/views/spotlight/home_pages/_tophat.html.erb
1300
1252
  - app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb
1301
1253
  - app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb
1302
1254
  - app/views/spotlight/job_trackers/show.html.erb
@@ -1310,7 +1262,6 @@ files:
1310
1262
  - app/views/spotlight/pages/_order_pages.html.erb
1311
1263
  - app/views/spotlight/pages/_page.html.erb
1312
1264
  - app/views/spotlight/pages/_page_options.html.erb
1313
- - app/views/spotlight/pages/_tophat.html.erb
1314
1265
  - app/views/spotlight/pages/_view_type_group.html.erb
1315
1266
  - app/views/spotlight/pages/edit.html.erb
1316
1267
  - app/views/spotlight/pages/index.html.erb
@@ -1474,14 +1425,20 @@ files:
1474
1425
  - db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
1475
1426
  - db/migrate/20210506070809_add_indexes_for_featured_images.rb
1476
1427
  - lib/blacklight/spotlight.rb
1428
+ - lib/generators/spotlight/assets/generator_common_utilities.rb
1429
+ - lib/generators/spotlight/assets/importmap_generator.rb
1430
+ - lib/generators/spotlight/assets/propshaft_generator.rb
1431
+ - lib/generators/spotlight/assets_generator.rb
1477
1432
  - lib/generators/spotlight/install_generator.rb
1478
1433
  - lib/generators/spotlight/scaffold_resource_generator.rb
1434
+ - lib/generators/spotlight/templates/assets/spotlight.scss
1479
1435
  - lib/generators/spotlight/templates/catalog_controller.rb
1480
1436
  - lib/generators/spotlight/templates/config/initializers/oembed.rb
1481
1437
  - lib/generators/spotlight/templates/config/initializers/riiif.rb
1482
1438
  - lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb
1483
1439
  - lib/generators/spotlight/templates/config/initializers/translation.rb
1484
1440
  - lib/generators/spotlight/templates/config/sitemap.rb
1441
+ - lib/generators/spotlight/templates/javascript/jquery-shim.js
1485
1442
  - lib/generators/spotlight/templates/solr/conf/_rest_managed.json
1486
1443
  - lib/generators/spotlight/templates/solr/conf/admin-extra.html
1487
1444
  - lib/generators/spotlight/templates/solr/conf/elevate.xml
@@ -1498,8 +1455,6 @@ files:
1498
1455
  - lib/generators/spotlight/templates/solr/conf/xslt/example_atom.xsl
1499
1456
  - lib/generators/spotlight/templates/solr/conf/xslt/example_rss.xsl
1500
1457
  - lib/generators/spotlight/templates/solr/conf/xslt/luke.xsl
1501
- - lib/generators/spotlight/templates/spotlight.js
1502
- - lib/generators/spotlight/templates/spotlight.scss
1503
1458
  - lib/generators/spotlight/templates/spotlight_helper.rb
1504
1459
  - lib/migration/iiif.rb
1505
1460
  - lib/migration/page_language.rb
@@ -1543,7 +1498,7 @@ files:
1543
1498
  - spec/fixtures/updated-bulk-update-template.csv
1544
1499
  - spec/support/controllers/engine_helpers.rb
1545
1500
  - spec/support/disable_friendly_id_deprecation_warnings.rb
1546
- - spec/support/features/capybara_default_max_wait_metadata_helper.rb
1501
+ - spec/support/features/capybara_wait_metadata_helper.rb
1547
1502
  - spec/support/features/test_features_helpers.rb
1548
1503
  - spec/support/helpers/controller_level_helpers.rb
1549
1504
  - spec/support/stub_iiif_response.rb
@@ -1551,16 +1506,10 @@ files:
1551
1506
  - vendor/assets/images/sir-trevor-icons.svg
1552
1507
  - vendor/assets/javascripts/Leaflet.Editable.js
1553
1508
  - vendor/assets/javascripts/Path.Drag.js
1554
- - vendor/assets/javascripts/bootstrap-tagsinput.js
1555
- - vendor/assets/javascripts/jquery.serializejson.js
1556
1509
  - vendor/assets/javascripts/jquery.waitforimages.min.js
1557
1510
  - vendor/assets/javascripts/leaflet-iiif.js
1558
- - vendor/assets/javascripts/nestable.js
1559
1511
  - vendor/assets/javascripts/parameterize.js
1560
- - vendor/assets/javascripts/sir-trevor.js
1561
1512
  - vendor/assets/javascripts/tiny-slider.js
1562
- - vendor/assets/javascripts/typeahead.bundle.min.js
1563
- - vendor/assets/stylesheets/bootstrap-tagsinput.css
1564
1513
  - vendor/assets/stylesheets/sir-trevor/_icons.scss
1565
1514
  - vendor/assets/stylesheets/sir-trevor/_variables.scss
1566
1515
  - vendor/assets/stylesheets/sir-trevor/base.scss
@@ -1597,7 +1546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1597
1546
  - !ruby/object:Gem::Version
1598
1547
  version: '0'
1599
1548
  requirements: []
1600
- rubygems_version: 3.5.9
1549
+ rubygems_version: 3.5.11
1601
1550
  signing_key:
1602
1551
  specification_version: 4
1603
1552
  summary: Enable librarians, curators, and others who are responsible for digital collections
@@ -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