blacklight-spotlight 5.0.0.pre.alpha1 → 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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/spotlight.esm.js +29 -29
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +32 -33
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/components/spotlight/analytics/dashboard_component.html.erb +4 -4
- data/app/components/spotlight/bulk_action_component.html.erb +1 -1
- data/app/components/spotlight/bulk_action_component.rb +1 -1
- data/app/components/spotlight/document_component.rb +1 -1
- data/app/components/spotlight/exhibit_navbar_component.html.erb +1 -1
- data/app/components/spotlight/save_search_component.html.erb +2 -4
- data/app/components/spotlight/save_search_component.rb +1 -1
- data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +1 -1
- data/app/javascript/spotlight/admin/blocks/browse_block.js +2 -2
- data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +2 -2
- data/app/javascript/spotlight/admin/blocks/resources_block.js +3 -3
- data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +4 -4
- data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +3 -4
- data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +6 -6
- data/app/javascript/spotlight/admin/users.js +2 -2
- data/app/javascript/spotlight/controllers/tag_selector_controller.js +2 -2
- data/app/javascript/spotlight/user/zpr_links.js +5 -3
- data/app/models/sir_trevor_rails/block.rb +1 -3
- data/app/services/spotlight/exhibit_import_export_service.rb +2 -2
- data/app/views/catalog/_add_tags.html.erb +2 -4
- data/app/views/catalog/_change_visibility.html.erb +2 -4
- data/app/views/catalog/_remove_tags.html.erb +3 -5
- data/app/views/shared/_curated_features_navbar.html.erb +1 -1
- data/app/views/shared/_user_util_links.html.erb +2 -2
- data/app/views/spotlight/admin_users/index.html.erb +5 -5
- data/app/views/spotlight/appearances/edit.html.erb +4 -4
- data/app/views/spotlight/browse/_search_box.html.erb +2 -2
- data/app/views/spotlight/browse/index.html.erb +1 -1
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_download.html.erb +2 -2
- data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/edit.html.erb +3 -3
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_document_visibility_control.html.erb +1 -1
- data/app/views/spotlight/catalog/admin.html.erb +1 -1
- data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
- data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/exhibits/_languages.html.erb +1 -1
- data/app/views/spotlight/exhibits/edit.html.erb +6 -6
- data/app/views/spotlight/exhibits/index.html.erb +3 -3
- data/app/views/spotlight/featured_images/_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/locks/_lock.html.erb +1 -1
- data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/pages/_form.html.erb +5 -5
- data/app/views/spotlight/pages/_order_pages.html.erb +1 -1
- data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
- data/app/views/spotlight/resources/_external_resources_form.html.erb +0 -1
- data/app/views/spotlight/resources/new.html.erb +0 -1
- data/app/views/spotlight/roles/index.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_default_per_page.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_facets.html.erb +1 -1
- data/app/views/spotlight/search_configurations/edit.html.erb +3 -3
- data/app/views/spotlight/searches/_form.html.erb +4 -4
- data/app/views/spotlight/searches/index.html.erb +4 -4
- data/app/views/spotlight/shared/_dd3_item.html.erb +2 -2
- data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +1 -1
- data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +3 -3
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
- data/app/views/spotlight/sites/_exhibit.html.erb +4 -4
- data/app/views/spotlight/sites/edit.html.erb +2 -2
- data/app/views/spotlight/sites/edit_exhibits.html.erb +4 -4
- data/app/views/spotlight/tags/index.html.erb +1 -1
- data/app/views/spotlight/translations/_browse_categories.html.erb +3 -3
- data/app/views/spotlight/translations/_import.html.erb +3 -3
- data/app/views/spotlight/translations/_page.html.erb +1 -1
- data/app/views/spotlight/translations/edit.html.erb +6 -6
- data/config/locales/spotlight.en.yml +2 -2
- data/lib/spotlight/version.rb +1 -1
- data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f08b9914faa84fca91caf43454461702bee285962ba3f5c07e06279db23da4aa
|
4
|
+
data.tar.gz: d7e92615dc2366c47fa38c4b82c6c3a9d95251fed7d520508ac0db3aa8c1c4a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97c97ea723c9a91984ae53dc27e7279b7f24afdb301f581d7fba62c7d3c4328f9f06dd94e0d78b576df66b9b1a101a1bd324dc5f15ba3c4a9d5a68cbd8327c1
|
7
|
+
data.tar.gz: af86a630fea0cddfe8cceea6fa18655aa9fa723fac9d26d1cbfa3a1cbe1c3da52c1fbff05bf9cf35c985cd846ff0601a2b3c00f4406850ef2552c3fa63a0e573
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import OpenSeadragon from 'openseadragon';
|
1
2
|
import Clipboard from 'clipboard';
|
2
3
|
import SirTrevor$1 from 'sir-trevor';
|
3
4
|
import Sortable from 'sortablejs';
|
@@ -3303,10 +3304,10 @@ class ZprLinks {
|
|
3303
3304
|
modalDialog.addClass('modal-xl');
|
3304
3305
|
modalContent.html('<div id="osd-modal-container"></div>');
|
3305
3306
|
var controls = `<div class="controls d-flex justify-content-center justify-content-md-end">
|
3306
|
-
<div class="custom-close-controls
|
3307
|
-
<button type="button" class="btn btn-dark" data-
|
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>
|
3308
3309
|
</div>
|
3309
|
-
<div class="zoom-controls mb-3
|
3310
|
+
<div class="zoom-controls mb-3 me-md-3">
|
3310
3311
|
<button id="osd-zoom-in" type="button" class="btn btn-dark">${Spotlight.ZprLinks.zoomIn}</button>
|
3311
3312
|
<button id="osd-zoom-out" type="button" class="btn btn-dark">${Spotlight.ZprLinks.zoomOut}</button>
|
3312
3313
|
</div>
|
@@ -5146,7 +5147,7 @@ class Users {
|
|
5146
5147
|
function edit_user(event) {
|
5147
5148
|
event.preventDefault();
|
5148
5149
|
$(this).closest('tr').hide();
|
5149
|
-
const id = $(this).attr('data-target')
|
5150
|
+
const id = $(this).attr('data-target');
|
5150
5151
|
const edit_view = $("[data-edit-for='"+id+"']", container).show();
|
5151
5152
|
$.each(edit_view.find('input[type="text"], select'), function() {
|
5152
5153
|
// Cache original values incase editing is canceled
|
@@ -5177,7 +5178,7 @@ class Users {
|
|
5177
5178
|
}
|
5178
5179
|
|
5179
5180
|
function destroy_user(event) {
|
5180
|
-
const id = $(this).attr('data-target')
|
5181
|
+
const id = $(this).attr('data-target');
|
5181
5182
|
$("[data-destroy-for='"+id+"']", container).val('1');
|
5182
5183
|
}
|
5183
5184
|
|
@@ -5245,7 +5246,7 @@ class Users {
|
|
5245
5246
|
<auto-complete src="${this.autocomplete_url()}" for="${autocompleteID}-popup" fetch-on-empty>
|
5246
5247
|
<input type="text" name="${autocompleteID}" placeholder="${i18n.t("blocks:autocompleteable:placeholder")}" data-default-typeahead>
|
5247
5248
|
<ul id="${autocompleteID}-popup"></ul>
|
5248
|
-
<div id="${autocompleteID}-popup-feedback" class="
|
5249
|
+
<div id="${autocompleteID}-popup-feedback" class="visually-hidden"></div>
|
5249
5250
|
</auto-complete>
|
5250
5251
|
` };
|
5251
5252
|
}
|
@@ -5569,7 +5570,7 @@ Spotlight$1.Block.Resources = (function(){
|
|
5569
5570
|
<div class="checkbox">
|
5570
5571
|
<input name="item[${index}][display]" type="hidden" value="false" />
|
5571
5572
|
<input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
|
5572
|
-
<label class="
|
5573
|
+
<label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
|
5573
5574
|
</div>
|
5574
5575
|
<div class="pic">
|
5575
5576
|
<img class="img-thumbnail" src="${(data.thumbnail_image_url || ((data.iiif_tilesource || "").replace("/info.json", "/full/!100,100/0/default.jpg")))}" />
|
@@ -5584,7 +5585,7 @@ Spotlight$1.Block.Resources = (function(){
|
|
5584
5585
|
<div>${(data.slug || data.id)}</div>
|
5585
5586
|
${this._altTextFieldsHTML(index, data)}
|
5586
5587
|
</div>
|
5587
|
-
<div class="remove float-
|
5588
|
+
<div class="remove float-end">
|
5588
5589
|
<a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
|
5589
5590
|
</div>
|
5590
5591
|
</div>
|
@@ -5672,7 +5673,7 @@ Spotlight$1.Block.Resources = (function(){
|
|
5672
5673
|
altTextHTML: function(index, data) {
|
5673
5674
|
const { isDecorative, altText, altTextBackup, placeholderAttr, disabledAttr } = this._altTextData(data);
|
5674
5675
|
return `<div class="mt-2 pt-2 d-flex">
|
5675
|
-
<div class="me-2
|
5676
|
+
<div class="me-2">
|
5676
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>
|
5677
5678
|
<div class="form-check mb-1 justify-content-end">
|
5678
5679
|
<input class="form-check-input" type="checkbox"
|
@@ -5772,7 +5773,7 @@ SirTrevor.Blocks.Browse = (function(){
|
|
5772
5773
|
<div class="checkbox">
|
5773
5774
|
<input name="item[${index}][display]" type="hidden" value="false" />
|
5774
5775
|
<input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
|
5775
|
-
<label class="
|
5776
|
+
<label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
|
5776
5777
|
</div>
|
5777
5778
|
<div class="pic">
|
5778
5779
|
<img class="img-thumbnail" src="${(data.thumbnail_image_url || ((data.iiif_tilesource || "").replace("/info.json", "/full/!100,100/0/default.jpg")))}" />
|
@@ -5781,7 +5782,7 @@ SirTrevor.Blocks.Browse = (function(){
|
|
5781
5782
|
<div class="title card-title">${(data.full_title || data.title)}</div>
|
5782
5783
|
<div>${(data.slug || data.id)}</div>
|
5783
5784
|
</div>
|
5784
|
-
<div class="remove float-
|
5785
|
+
<div class="remove float-end">
|
5785
5786
|
<a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
|
5786
5787
|
</div>
|
5787
5788
|
</div>
|
@@ -5830,7 +5831,7 @@ SirTrevor.Blocks.BrowseGroupCategories = (function(){
|
|
5830
5831
|
return `<auto-complete src="${this.autocomplete_url()}" for="${autocompleteID}-popup" fetch-on-empty>
|
5831
5832
|
<input type="text" name="${autocompleteID}" placeholder="${i18n.t("blocks:browse_group_categories:autocomplete")}" data-default-typeahead>
|
5832
5833
|
<ul id="${autocompleteID}-popup"></ul>
|
5833
|
-
<div id="${autocompleteID}-popup-feedback" class="
|
5834
|
+
<div id="${autocompleteID}-popup-feedback" class="visually-hidden"></div>
|
5834
5835
|
</auto-complete>`
|
5835
5836
|
},
|
5836
5837
|
autocomplete_template: function(obj) {
|
@@ -5865,7 +5866,7 @@ SirTrevor.Blocks.BrowseGroupCategories = (function(){
|
|
5865
5866
|
<div class="checkbox">
|
5866
5867
|
<input name="item[${index}][display]" type="hidden" value="false" />
|
5867
5868
|
<input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + data.id)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
|
5868
|
-
<label class="
|
5869
|
+
<label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + data.id)}">${i18n.t("blocks:resources:panel:display")}</label>
|
5869
5870
|
</div>
|
5870
5871
|
<div class="main">
|
5871
5872
|
<div class="title card-title">${data.title}</div>
|
@@ -6300,10 +6301,10 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
|
|
6300
6301
|
var clickHandler = function (e) {
|
6301
6302
|
var href;
|
6302
6303
|
var $this = $(this);
|
6303
|
-
var $target = $($this.attr('data-
|
6304
|
+
var $target = $($this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
|
6304
6305
|
if (!$target.hasClass('carousel')) return
|
6305
6306
|
var options = $.extend({}, $target.data(), $this.data());
|
6306
|
-
var slideIndex = $this.attr('data-
|
6307
|
+
var slideIndex = $this.attr('data-bs-slide-to');
|
6307
6308
|
if (slideIndex) options.interval = false;
|
6308
6309
|
|
6309
6310
|
$.fn.carousel.call($target, options);
|
@@ -6316,8 +6317,8 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
|
|
6316
6317
|
};
|
6317
6318
|
|
6318
6319
|
$(this.inner).find('.carousel')
|
6319
|
-
.on('click.bs.carousel.data-api', '[data-
|
6320
|
-
.on('click.bs.carousel.data-api', '[data-
|
6320
|
+
.on('click.bs.carousel.data-api', '[data-bs-slide]', clickHandler)
|
6321
|
+
.on('click.bs.carousel.data-api', '[data-bs-slide-to]', clickHandler);
|
6321
6322
|
}
|
6322
6323
|
|
6323
6324
|
});
|
@@ -6360,10 +6361,10 @@ SirTrevor.Blocks.SolrDocumentsFeatures = (function(){
|
|
6360
6361
|
var clickHandler = function (e) {
|
6361
6362
|
var href;
|
6362
6363
|
var $this = $(this);
|
6363
|
-
var $target = $($this.attr('data-
|
6364
|
+
var $target = $($this.attr('data-bs-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
|
6364
6365
|
if (!$target.hasClass('carousel')) return
|
6365
6366
|
var options = $.extend({}, $target.data(), $this.data());
|
6366
|
-
var slideIndex
|
6367
|
+
var slideIndex =$this.attr('data-bs-slide-to');
|
6367
6368
|
if (slideIndex) options.interval = false;
|
6368
6369
|
|
6369
6370
|
$.fn.carousel.call($target, options);
|
@@ -6376,8 +6377,7 @@ SirTrevor.Blocks.SolrDocumentsFeatures = (function(){
|
|
6376
6377
|
};
|
6377
6378
|
|
6378
6379
|
$(this.inner).find('.carousel')
|
6379
|
-
.on('click.bs.carousel.data-api', '[data-
|
6380
|
-
.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);
|
6381
6381
|
}
|
6382
6382
|
|
6383
6383
|
});
|
@@ -6480,24 +6480,24 @@ SirTrevor.Blocks.UploadedItems = (function(){
|
|
6480
6480
|
<div class="checkbox">
|
6481
6481
|
<input name="item[${index}][display]" type="hidden" value="false" />
|
6482
6482
|
<input name="item[${index}][display]" id="${this.formId(this.display_checkbox + '_' + dataId)}" type="checkbox" ${checked} class="item-grid-checkbox" value="true" />
|
6483
|
-
<label class="
|
6483
|
+
<label class="visually-hidden" for="${this.formId(this.display_checkbox + '_' + dataId)}">${i18n.t("blocks:resources:panel:display")}</label>
|
6484
6484
|
</div>
|
6485
6485
|
<div class="pic">
|
6486
6486
|
<img class="img-thumbnail" src="${dataUrl}" />
|
6487
6487
|
</div>
|
6488
6488
|
<div class="main form-horizontal">
|
6489
6489
|
<div class="title card-title">${dataTitle}</div>
|
6490
|
-
<div class="field row
|
6490
|
+
<div class="field row me-3">
|
6491
6491
|
<label for="${this.formId('caption_' + dataId)}" class="col-form-label col-md-3">${i18n.t("blocks:uploaded_items:caption")}</label>
|
6492
6492
|
<input type="text" class="form-control col" id="${this.formId('caption_' + dataId)}" name="item[${index}][caption]" data-field="caption"/>
|
6493
6493
|
</div>
|
6494
|
-
<div class="field row
|
6494
|
+
<div class="field row me-3">
|
6495
6495
|
<label for="${this.formId('link_' + dataId)}" class="col-form-label col-md-3">${i18n.t("blocks:uploaded_items:link")}</label>
|
6496
6496
|
<input type="text" class="form-control col" id="${this.formId('link_' + dataId)}" name="item[${index}][link]" data-field="link"/>
|
6497
6497
|
</div>
|
6498
6498
|
${this._altTextFieldsHTML(index, data)}
|
6499
6499
|
</div>
|
6500
|
-
<div class="remove float-
|
6500
|
+
<div class="remove float-end">
|
6501
6501
|
<a data-item-grid-panel-remove="true" href="#">${i18n.t("blocks:resources:panel:remove")}</a>
|
6502
6502
|
</div>
|
6503
6503
|
</div>
|
@@ -6547,8 +6547,8 @@ SirTrevor.Blocks.UploadedItems = (function(){
|
|
6547
6547
|
altTextHTML: function(index, data) {
|
6548
6548
|
const { isDecorative, altText, altTextBackup, placeholderAttr, disabledAttr } = this._altTextData(data);
|
6549
6549
|
return `
|
6550
|
-
<div class="field row
|
6551
|
-
<div class="col-lg-3 ps-md-2
|
6550
|
+
<div class="field row me-3">
|
6551
|
+
<div class="col-lg-3 ps-md-2">
|
6552
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>
|
6553
6553
|
<div class="form-check d-flex justify-content-md-start justify-content-lg-end">
|
6554
6554
|
<input class="form-check-input" type="checkbox"
|
@@ -7066,9 +7066,9 @@ class TagSelectorController extends Controller {
|
|
7066
7066
|
type="button"
|
7067
7067
|
data-action="${this.identifier}#deselect"
|
7068
7068
|
data-tag="${tag}"
|
7069
|
-
class="btn-close close ms-1
|
7069
|
+
class="btn-close close ms-1"
|
7070
7070
|
aria-label="${this.translationsValue.remove} ${tag}"
|
7071
|
-
|
7071
|
+
></button>
|
7072
7072
|
</span>
|
7073
7073
|
</li>
|
7074
7074
|
`
|