spotlight-frontend 4.0.3 → 4.2.0
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.
- package/app/assets/javascripts/spotlight/spotlight.esm.js +27 -24
- package/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- package/app/assets/javascripts/spotlight/spotlight.js +27 -24
- package/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- package/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +19 -1
- package/app/assets/stylesheets/spotlight/_catalog.scss +0 -12
- package/app/assets/stylesheets/spotlight/_header.scss +9 -0
- package/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +4 -4
- package/package.json +2 -2
- package/app/assets/images/blacklight/arrow-alt-circle-left.svg +0 -1
- package/app/assets/images/blacklight/arrow-alt-circle-right.svg +0 -1
- package/app/assets/images/blacklight/arrow_back_ios.svg +0 -1
- package/app/assets/images/blacklight/arrow_forward_ios.svg +0 -1
- package/app/assets/images/blacklight/check.svg +0 -1
- package/app/assets/images/blacklight/check_circle.svg +0 -1
- package/app/assets/images/blacklight/chevron_right.svg +0 -1
- package/app/assets/images/blacklight/close.svg +0 -1
- package/app/assets/images/blacklight/edit.svg +0 -1
- package/app/assets/images/blacklight/error.svg +0 -1
- package/app/assets/images/blacklight/highlight_off.svg +0 -1
- package/app/assets/images/blacklight/info.svg +0 -1
- package/app/assets/images/blacklight/warning.svg +0 -1
- package/app/assets/images/blacklight/zoom_in.svg +0 -1
- package/app/assets/images/blacklight/zoom_out.svg +0 -1
|
@@ -4050,29 +4050,6 @@ class AddNewButton {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
|
|
4053
|
-
class Appearance {
|
|
4054
|
-
connect(){
|
|
4055
|
-
$("[data-behavior='restore-default']").each(function(){
|
|
4056
|
-
var hidden = $("[data-default-value]", $(this));
|
|
4057
|
-
var value = $($("[data-in-place-edit-target]", $(this)).data('in-place-edit-target'), $(this));
|
|
4058
|
-
var button = $("[data-restore-default]", $(this));
|
|
4059
|
-
hidden.on('blur', function(){
|
|
4060
|
-
if( $(this).val() == $(this).data('default-value') ) {
|
|
4061
|
-
button.addClass('d-none');
|
|
4062
|
-
} else {
|
|
4063
|
-
button.removeClass('d-none');
|
|
4064
|
-
}
|
|
4065
|
-
});
|
|
4066
|
-
button.on('click', function(e){
|
|
4067
|
-
e.preventDefault();
|
|
4068
|
-
hidden.val(hidden.data('default-value'));
|
|
4069
|
-
value.text(hidden.data('default-value'));
|
|
4070
|
-
button.hide();
|
|
4071
|
-
});
|
|
4072
|
-
});
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
|
|
4076
4053
|
class BlacklightConfiguration {
|
|
4077
4054
|
connect() {
|
|
4078
4055
|
// Add Select/Deselect all button behavior
|
|
@@ -4629,6 +4606,33 @@ class EditInPlace {
|
|
|
4629
4606
|
return false;
|
|
4630
4607
|
});
|
|
4631
4608
|
});
|
|
4609
|
+
|
|
4610
|
+
$("[data-behavior='restore-default']").each(function(){
|
|
4611
|
+
var hidden = $("[data-default-value]", $(this));
|
|
4612
|
+
var value = $($("[data-in-place-edit-target]", $(this)).data('in-place-edit-target'), $(this));
|
|
4613
|
+
var button = $("[data-restore-default]", $(this));
|
|
4614
|
+
|
|
4615
|
+
hidden.on('keypress', function(e) {
|
|
4616
|
+
if(e.which == 13) {
|
|
4617
|
+
hidden.trigger('blur');
|
|
4618
|
+
return false;
|
|
4619
|
+
}
|
|
4620
|
+
});
|
|
4621
|
+
|
|
4622
|
+
hidden.on('blur', function(){
|
|
4623
|
+
if( $(this).val() == $(this).data('default-value') ) {
|
|
4624
|
+
button.addClass('d-none');
|
|
4625
|
+
} else {
|
|
4626
|
+
button.removeClass('d-none');
|
|
4627
|
+
}
|
|
4628
|
+
});
|
|
4629
|
+
button.on('click', function(e){
|
|
4630
|
+
e.preventDefault();
|
|
4631
|
+
hidden.val(hidden.data('default-value'));
|
|
4632
|
+
value.text(hidden.data('default-value'));
|
|
4633
|
+
button.hide();
|
|
4634
|
+
});
|
|
4635
|
+
});
|
|
4632
4636
|
}
|
|
4633
4637
|
}
|
|
4634
4638
|
|
|
@@ -7165,7 +7169,6 @@ class AdminIndex {
|
|
|
7165
7169
|
connect() {
|
|
7166
7170
|
new AddAnother().connect();
|
|
7167
7171
|
new AddNewButton().connect();
|
|
7168
|
-
new Appearance().connect();
|
|
7169
7172
|
new CopyEmailAddress().connect();
|
|
7170
7173
|
new Croppable().connect();
|
|
7171
7174
|
new EditInPlace().connect();
|