blacklight-spotlight 5.0.0.pre.alpha2 → 5.0.0.pre.alpha3

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spotlight/spotlight.esm.js +28 -29
  3. data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
  4. data/app/assets/javascripts/spotlight/spotlight.js +28 -29
  5. data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
  6. data/app/components/spotlight/analytics/dashboard_component.html.erb +4 -4
  7. data/app/components/spotlight/bulk_action_component.html.erb +1 -1
  8. data/app/components/spotlight/bulk_action_component.rb +1 -1
  9. data/app/components/spotlight/document_component.rb +1 -1
  10. data/app/components/spotlight/exhibit_navbar_component.html.erb +1 -1
  11. data/app/components/spotlight/save_search_component.html.erb +2 -4
  12. data/app/components/spotlight/save_search_component.rb +1 -1
  13. data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +1 -1
  14. data/app/javascript/spotlight/admin/blocks/browse_block.js +2 -2
  15. data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +2 -2
  16. data/app/javascript/spotlight/admin/blocks/resources_block.js +3 -3
  17. data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +4 -4
  18. data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +3 -4
  19. data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +6 -6
  20. data/app/javascript/spotlight/admin/users.js +2 -2
  21. data/app/javascript/spotlight/controllers/tag_selector_controller.js +2 -2
  22. data/app/javascript/spotlight/user/zpr_links.js +3 -3
  23. data/app/views/catalog/_add_tags.html.erb +2 -4
  24. data/app/views/catalog/_change_visibility.html.erb +2 -4
  25. data/app/views/catalog/_remove_tags.html.erb +3 -5
  26. data/app/views/shared/_curated_features_navbar.html.erb +1 -1
  27. data/app/views/shared/_user_util_links.html.erb +2 -2
  28. data/app/views/spotlight/admin_users/index.html.erb +5 -5
  29. data/app/views/spotlight/appearances/edit.html.erb +4 -4
  30. data/app/views/spotlight/browse/_search_box.html.erb +2 -2
  31. data/app/views/spotlight/browse/index.html.erb +1 -1
  32. data/app/views/spotlight/browse/show.html.erb +1 -1
  33. data/app/views/spotlight/bulk_updates/_download.html.erb +2 -2
  34. data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
  35. data/app/views/spotlight/bulk_updates/edit.html.erb +3 -3
  36. data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
  37. data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
  38. data/app/views/spotlight/catalog/_document_visibility_control.html.erb +1 -1
  39. data/app/views/spotlight/catalog/admin.html.erb +1 -1
  40. data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
  41. data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
  42. data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
  43. data/app/views/spotlight/exhibits/_languages.html.erb +1 -1
  44. data/app/views/spotlight/exhibits/edit.html.erb +6 -6
  45. data/app/views/spotlight/exhibits/index.html.erb +3 -3
  46. data/app/views/spotlight/featured_images/_form.html.erb +1 -1
  47. data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
  48. data/app/views/spotlight/locks/_lock.html.erb +1 -1
  49. data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
  50. data/app/views/spotlight/pages/_form.html.erb +5 -5
  51. data/app/views/spotlight/pages/_order_pages.html.erb +1 -1
  52. data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
  53. data/app/views/spotlight/resources/_external_resources_form.html.erb +0 -1
  54. data/app/views/spotlight/resources/new.html.erb +0 -1
  55. data/app/views/spotlight/roles/index.html.erb +1 -1
  56. data/app/views/spotlight/search_configurations/_default_per_page.html.erb +1 -1
  57. data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +1 -1
  58. data/app/views/spotlight/search_configurations/_facets.html.erb +1 -1
  59. data/app/views/spotlight/search_configurations/edit.html.erb +3 -3
  60. data/app/views/spotlight/searches/_form.html.erb +4 -4
  61. data/app/views/spotlight/searches/index.html.erb +4 -4
  62. data/app/views/spotlight/shared/_dd3_item.html.erb +2 -2
  63. data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +1 -1
  64. data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
  65. data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
  66. data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +2 -2
  67. data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -2
  68. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  69. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +3 -3
  70. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
  71. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +2 -2
  72. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
  73. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  74. data/app/views/spotlight/sites/_exhibit.html.erb +4 -4
  75. data/app/views/spotlight/sites/edit.html.erb +2 -2
  76. data/app/views/spotlight/sites/edit_exhibits.html.erb +4 -4
  77. data/app/views/spotlight/tags/index.html.erb +1 -1
  78. data/app/views/spotlight/translations/_browse_categories.html.erb +3 -3
  79. data/app/views/spotlight/translations/_import.html.erb +3 -3
  80. data/app/views/spotlight/translations/_page.html.erb +1 -1
  81. data/app/views/spotlight/translations/edit.html.erb +6 -6
  82. data/config/locales/spotlight.en.yml +2 -2
  83. data/lib/spotlight/version.rb +1 -1
  84. data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
  85. metadata +5 -7
  86. data/app/components/spotlight/blocks/heading_block_component.erb +0 -2
  87. data/app/components/spotlight/blocks/heading_block_component.rb +0 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6b768d28b08beb72ad790c25c5bc961dde7f12aa0b9e518f3d8ff04ea326de6
4
- data.tar.gz: 82ddfae5ccdd6b754a72050b5966dd3e11b4db6fda2a18f5bd2348a4c186e182
3
+ metadata.gz: f08b9914faa84fca91caf43454461702bee285962ba3f5c07e06279db23da4aa
4
+ data.tar.gz: d7e92615dc2366c47fa38c4b82c6c3a9d95251fed7d520508ac0db3aa8c1c4a9
5
5
  SHA512:
6
- metadata.gz: bc40beb8d7e6c7fe609279af38d5456112e32110e25f272fc8cb47274a212618f23aa14e50643a03abc93eb65b7f9013574e9435bab5dab68fdc2e6d79961c48
7
- data.tar.gz: 494367ee396448177230ec9347b3c92ac628ba384b699e23c5dae86bca834f6ffbc390fe57fe94ed849b6493a5e37e9c3a3af46103457ed1359f332ce64e1a2a
6
+ metadata.gz: c97c97ea723c9a91984ae53dc27e7279b7f24afdb301f581d7fba62c7d3c4328f9f06dd94e0d78b576df66b9b1a101a1bd324dc5f15ba3c4a9d5a68cbd8327c1
7
+ data.tar.gz: af86a630fea0cddfe8cceea6fa18655aa9fa723fac9d26d1cbfa3a1cbe1c3da52c1fbff05bf9cf35c985cd846ff0601a2b3c00f4406850ef2552c3fa63a0e573
@@ -3304,10 +3304,10 @@ class ZprLinks {
3304
3304
  modalDialog.addClass('modal-xl');
3305
3305
  modalContent.html('<div id="osd-modal-container"></div>');
3306
3306
  var controls = `<div class="controls d-flex justify-content-center justify-content-md-end">
3307
- <div class="custom-close-controls pr-3 pe-3 pt-3">
3308
- <button type="button" class="btn btn-dark" data-dismiss="modal" data-bs-dismiss="modal" aria-hidden="true">${Spotlight.ZprLinks.close}</button>
3307
+ <div class="custom-close-controls pe-3 pt-3">
3308
+ <button type="button" class="btn btn-dark" data-bs-dismiss="modal" aria-hidden="true">${Spotlight.ZprLinks.close}</button>
3309
3309
  </div>
3310
- <div class="zoom-controls mb-3 mr-md-3 me-md-3">
3310
+ <div class="zoom-controls mb-3 me-md-3">
3311
3311
  <button id="osd-zoom-in" type="button" class="btn btn-dark">${Spotlight.ZprLinks.zoomIn}</button>
3312
3312
  <button id="osd-zoom-out" type="button" class="btn btn-dark">${Spotlight.ZprLinks.zoomOut}</button>
3313
3313
  </div>
@@ -5147,7 +5147,7 @@ class Users {
5147
5147
  function edit_user(event) {
5148
5148
  event.preventDefault();
5149
5149
  $(this).closest('tr').hide();
5150
- const id = $(this).attr('data-target') || $(this).attr('data-bs-target');
5150
+ const id = $(this).attr('data-target');
5151
5151
  const edit_view = $("[data-edit-for='"+id+"']", container).show();
5152
5152
  $.each(edit_view.find('input[type="text"], select'), function() {
5153
5153
  // Cache original values incase editing is canceled
@@ -5178,7 +5178,7 @@ class Users {
5178
5178
  }
5179
5179
 
5180
5180
  function destroy_user(event) {
5181
- const id = $(this).attr('data-target') || $(this).attr('data-bs-target');
5181
+ const id = $(this).attr('data-target');
5182
5182
  $("[data-destroy-for='"+id+"']", container).val('1');
5183
5183
  }
5184
5184
 
@@ -5246,7 +5246,7 @@ class Users {
5246
5246
  <auto-complete src="${this.autocomplete_url()}" for="${autocompleteID}-popup" fetch-on-empty>
5247
5247
  <input type="text" name="${autocompleteID}" placeholder="${i18n.t("blocks:autocompleteable:placeholder")}" data-default-typeahead>
5248
5248
  <ul id="${autocompleteID}-popup"></ul>
5249
- <div id="${autocompleteID}-popup-feedback" class="sr-only visually-hidden"></div>
5249
+ <div id="${autocompleteID}-popup-feedback" class="visually-hidden"></div>
5250
5250
  </auto-complete>
5251
5251
  ` };
5252
5252
  }
@@ -5570,7 +5570,7 @@ Spotlight$1.Block.Resources = (function(){
5570
5570
  <div class="checkbox">
5571
5571
  <input name="item[${index}][display]" type="hidden" value="false" />
5572
5572
  <input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
5573
- <label class="sr-only visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5573
+ <label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5574
5574
  </div>
5575
5575
  <div class="pic">
5576
5576
  <img class="img-thumbnail" src="${(data.thumbnail_image_url || ((data.iiif_tilesource || "").replace("/info.json", "/full/!100,100/0/default.jpg")))}" />
@@ -5585,7 +5585,7 @@ Spotlight$1.Block.Resources = (function(){
5585
5585
  <div>${(data.slug || data.id)}</div>
5586
5586
  ${this._altTextFieldsHTML(index, data)}
5587
5587
  </div>
5588
- <div class="remove float-right float-end">
5588
+ <div class="remove float-end">
5589
5589
  <a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
5590
5590
  </div>
5591
5591
  </div>
@@ -5673,7 +5673,7 @@ Spotlight$1.Block.Resources = (function(){
5673
5673
  altTextHTML: function(index, data) {
5674
5674
  const { isDecorative, altText, altTextBackup, placeholderAttr, disabledAttr } = this._altTextData(data);
5675
5675
  return `<div class="mt-2 pt-2 d-flex">
5676
- <div class="me-2 mr-2">
5676
+ <div class="me-2">
5677
5677
  <label class="col-form-label pb-0 pt-1" for="${this.formId(this.alt_text_textarea + '_' + data.id)}">${i18n.t("blocks:resources:alt_text:alternative_text")}</label>
5678
5678
  <div class="form-check mb-1 justify-content-end">
5679
5679
  <input class="form-check-input" type="checkbox"
@@ -5773,7 +5773,7 @@ SirTrevor.Blocks.Browse = (function(){
5773
5773
  <div class="checkbox">
5774
5774
  <input name="item[${index}][display]" type="hidden" value="false" />
5775
5775
  <input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
5776
- <label class="sr-only visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5776
+ <label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5777
5777
  </div>
5778
5778
  <div class="pic">
5779
5779
  <img class="img-thumbnail" src="${(data.thumbnail_image_url || ((data.iiif_tilesource || "").replace("/info.json", "/full/!100,100/0/default.jpg")))}" />
@@ -5782,7 +5782,7 @@ SirTrevor.Blocks.Browse = (function(){
5782
5782
  <div class="title card-title">${(data.full_title || data.title)}</div>
5783
5783
  <div>${(data.slug || data.id)}</div>
5784
5784
  </div>
5785
- <div class="remove float-right float-end">
5785
+ <div class="remove float-end">
5786
5786
  <a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
5787
5787
  </div>
5788
5788
  </div>
@@ -5831,7 +5831,7 @@ SirTrevor.Blocks.BrowseGroupCategories = (function(){
5831
5831
  return `<auto-complete src="${this.autocomplete_url()}" for="${autocompleteID}-popup" fetch-on-empty>
5832
5832
  <input type="text" name="${autocompleteID}" placeholder="${i18n.t("blocks:browse_group_categories:autocomplete")}" data-default-typeahead>
5833
5833
  <ul id="${autocompleteID}-popup"></ul>
5834
- <div id="${autocompleteID}-popup-feedback" class="sr-only visually-hidden"></div>
5834
+ <div id="${autocompleteID}-popup-feedback" class="visually-hidden"></div>
5835
5835
  </auto-complete>`
5836
5836
  },
5837
5837
  autocomplete_template: function(obj) {
@@ -5866,7 +5866,7 @@ SirTrevor.Blocks.BrowseGroupCategories = (function(){
5866
5866
  <div class="checkbox">
5867
5867
  <input name="item[${index}][display]" type="hidden" value="false" />
5868
5868
  <input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
5869
- <label class="sr-only visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5869
+ <label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
5870
5870
  </div>
5871
5871
  <div class="main">
5872
5872
  <div class="title card-title">${data.title}</div>
@@ -6301,10 +6301,10 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
6301
6301
  var clickHandler = function (e) {
6302
6302
  var href;
6303
6303
  var $this = $(this);
6304
- var $target = $($this.attr('data-target') || $this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
6304
+ var $target = $($this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
6305
6305
  if (!$target.hasClass('carousel')) return
6306
6306
  var options = $.extend({}, $target.data(), $this.data());
6307
- var slideIndex = $this.attr('data-slide-to') || $this.attr('data-bs-slide-to');
6307
+ var slideIndex = $this.attr('data-bs-slide-to');
6308
6308
  if (slideIndex) options.interval = false;
6309
6309
 
6310
6310
  $.fn.carousel.call($target, options);
@@ -6317,8 +6317,8 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
6317
6317
  };
6318
6318
 
6319
6319
  $(this.inner).find('.carousel')
6320
- .on('click.bs.carousel.data-api', '[data-slide], [data-bs-slide]', clickHandler)
6321
- .on('click.bs.carousel.data-api', '[data-slide-to], [data-bs-slide-to]', clickHandler);
6320
+ .on('click.bs.carousel.data-api', '[data-bs-slide]', clickHandler)
6321
+ .on('click.bs.carousel.data-api', '[data-bs-slide-to]', clickHandler);
6322
6322
  }
6323
6323
 
6324
6324
  });
@@ -6361,10 +6361,10 @@ SirTrevor.Blocks.SolrDocumentsFeatures = (function(){
6361
6361
  var clickHandler = function (e) {
6362
6362
  var href;
6363
6363
  var $this = $(this);
6364
- var $target = $($this.attr('data-target') || $this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
6364
+ var $target = $($this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
6365
6365
  if (!$target.hasClass('carousel')) return
6366
6366
  var options = $.extend({}, $target.data(), $this.data());
6367
- var slideIndex = $this.attr('data-slide-to') || $this.attr('data-bs-slide-to');
6367
+ var slideIndex =$this.attr('data-bs-slide-to');
6368
6368
  if (slideIndex) options.interval = false;
6369
6369
 
6370
6370
  $.fn.carousel.call($target, options);
@@ -6377,8 +6377,7 @@ SirTrevor.Blocks.SolrDocumentsFeatures = (function(){
6377
6377
  };
6378
6378
 
6379
6379
  $(this.inner).find('.carousel')
6380
- .on('click.bs.carousel.data-api', '[data-slide], [data-bs-slide]', clickHandler)
6381
- .on('click.bs.carousel.data-api', '[data-slide-to], [data-bs-slide-to]', clickHandler);
6380
+ .on('click.bs.carousel.data-api', '[data-bs-slide-to]', clickHandler);
6382
6381
  }
6383
6382
 
6384
6383
  });
@@ -6481,24 +6480,24 @@ SirTrevor.Blocks.UploadedItems = (function(){
6481
6480
  <div class="checkbox">
6482
6481
  <input name="item[${index}][display]" type="hidden" value="false" />
6483
6482
  <input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + dataId)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
6484
- <label class="sr-only visually-hidden" for="${this.formId(this.display_checkbox + '_' + dataId)}">${i18n.t("blocks:resources:panel:display")}</label>
6483
+ <label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + dataId)}">${i18n.t("blocks:resources:panel:display")}</label>
6485
6484
  </div>
6486
6485
  <div class="pic">
6487
6486
  <img class="img-thumbnail" src="${dataUrl}" />
6488
6487
  </div>
6489
6488
  <div class="main form-horizontal">
6490
6489
  <div class="title card-title">${dataTitle}</div>
6491
- <div class="field row mr-3 me-3">
6490
+ <div class="field row me-3">
6492
6491
  <label for="${this.formId('caption_' + dataId)}" class="col-form-label col-md-3">${i18n.t("blocks:uploaded_items:caption")}</label>
6493
6492
  <input type="text" class="form-control col" id="${this.formId('caption_' + dataId)}" name="item[${index}][caption]" data-field="caption"/>
6494
6493
  </div>
6495
- <div class="field row mr-3 me-3">
6494
+ <div class="field row me-3">
6496
6495
  <label for="${this.formId('link_' + dataId)}" class="col-form-label col-md-3">${i18n.t("blocks:uploaded_items:link")}</label>
6497
6496
  <input type="text" class="form-control col" id="${this.formId('link_' + dataId)}" name="item[${index}][link]" data-field="link"/>
6498
6497
  </div>
6499
6498
  ${this._altTextFieldsHTML(index, data)}
6500
6499
  </div>
6501
- <div class="remove float-right float-end">
6500
+ <div class="remove float-end">
6502
6501
  <a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
6503
6502
  </div>
6504
6503
  </div>
@@ -6548,8 +6547,8 @@ SirTrevor.Blocks.UploadedItems = (function(){
6548
6547
  altTextHTML: function(index, data) {
6549
6548
  const { isDecorative, altText, altTextBackup, placeholderAttr, disabledAttr } = this._altTextData(data);
6550
6549
  return `
6551
- <div class="field row mr-3 me-3">
6552
- <div class="col-lg-3 ps-md-2 pl-md-2">
6550
+ <div class="field row me-3">
6551
+ <div class="col-lg-3 ps-md-2">
6553
6552
  <label class="col-form-label text-nowrap pb-0 pt-1 justify-content-md-start justify-content-lg-end d-flex" for="${this.formId(this.alt_text_textarea + '_' + data.id)}">${i18n.t("blocks:resources:alt_text:alternative_text")}</label>
6554
6553
  <div class="form-check d-flex justify-content-md-start justify-content-lg-end">
6555
6554
  <input class="form-check-input" type="checkbox"
@@ -7067,9 +7066,9 @@ class TagSelectorController extends Controller {
7067
7066
  type="button"
7068
7067
  data-action="${this.identifier}#deselect"
7069
7068
  data-tag="${tag}"
7070
- class="btn-close close ms-1 ml-1"
7069
+ class="btn-close close ms-1"
7071
7070
  aria-label="${this.translationsValue.remove} ${tag}"
7072
- ><span aria-hidden="true" class="visually-hidden">&times;</span></button>
7071
+ ></button>
7073
7072
  </span>
7074
7073
  </li>
7075
7074
  `