blacklight-spotlight 5.2.3 → 5.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6bffa5cc01c79775d653f9ce023b5b01b67121bebcfd1bf25250be0ede64f7a
4
- data.tar.gz: 165ce9fefbf94cf5dddf18a17bb33458a2effbaa80f98de11c6b325970e9e872
3
+ metadata.gz: 8118c7db4342112b0002fff061c080e3ff8ec95f4025e09f0d068e8be11ccc46
4
+ data.tar.gz: b8967991643c751413c61d1f58b1332cdeea8b95c49109605fbd6035939545e1
5
5
  SHA512:
6
- metadata.gz: ce3fb2ace861067957901c524e748e20024d739d11ba1725b0e24f9dcbcbc32bd84c78384095cdfd02455af101ce7707bd6e21b89b784d2ba2c0fa1e0bced2db
7
- data.tar.gz: 3eb6483e22c70346ceee3dc6cadb37457c2993252534a67e603d11c9e749e77dcda152ce2faeb5fd8692a11d47e1ac69e818188f3f7eedc7d9241f936627e971
6
+ metadata.gz: b38d413653acfc7576fec6c2448561bc614623c2158898f1bca25bf82d5d932f2df9261e9a4d3601b00879004637f2c6f999f5d6953ff284869e44410eb44d27
7
+ data.tar.gz: e25ebfb68db749f40047aa045ce51b358ae43a27e1523e5fc6f545e46279d8147a1a6ba7c3b9e7ef9146edbd182dd8d99ffb15cba6d7f7e9b311721d97a51864
@@ -5,10 +5,6 @@
5
5
  width: 100%;
6
6
  }
7
7
 
8
- .search-btn {
9
- max-height: 2.375rem;
10
- }
11
-
12
8
  .search_field {
13
9
  background: transparent;
14
10
  border: none;
@@ -145,13 +145,13 @@ $image-overlay-max-height: 300px;
145
145
  .btn-reset {
146
146
  background-color: transparent;
147
147
  display: none;
148
- margin-left: -42px;
149
- left: -40px;
148
+ margin-inline-start: -42px;
149
+ inset-inline-start: -40px;
150
150
  z-index: 20;
151
151
  }
152
152
 
153
153
  .search-btn {
154
- left: -40px;
154
+ inset-inline-start: -40px;
155
155
  z-index: 30;
156
156
  }
157
157
  }
@@ -122,7 +122,6 @@ form.edit_solr_document {
122
122
 
123
123
  .btn,
124
124
  .btn-group {
125
- margin-left: $spacer * 0.1;
126
125
  margin-top: $spacer * 0.25;
127
126
  }
128
127
  }
@@ -5,6 +5,7 @@
5
5
  margin-left: auto;
6
6
  margin-right: auto;
7
7
  max-width: 100%;
8
+ object-fit: contain;
8
9
  }
9
10
 
10
11
  .carousel-caption {
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ArrowAltCircleLeft
6
- class ArrowAltCircleLeftComponent < Spotlight::IconComponent
6
+ class ArrowAltCircleLeftComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
9
9
  <!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ArrowAltCircleRight
6
- class ArrowAltCircleRightComponent < Spotlight::IconComponent
6
+ class ArrowAltCircleRightComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
9
9
  <!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ArrowBackIos
6
- class ArrowBackIosComponent < Spotlight::IconComponent
6
+ class ArrowBackIosComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path opacity=".87" fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ArrowForwardIos
6
- class ArrowForwardIosComponent < Spotlight::IconComponent
6
+ class ArrowForwardIosComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path opacity=".87" fill="none" d="M24 24H0V0h24v24z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for CheckCircle
6
- class CheckCircleComponent < Spotlight::IconComponent
6
+ class CheckCircleComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Check
6
- class CheckComponent < Spotlight::IconComponent
6
+ class CheckComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ChevronRight
6
- class ChevronRightComponent < Spotlight::IconComponent
6
+ class ChevronRightComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Close
6
- class CloseComponent < Spotlight::IconComponent
6
+ class CloseComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
9
9
  <path d="M0 0h24v24H0V0z" fill="none"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Edit
6
- class EditComponent < Spotlight::IconComponent
6
+ class EditComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Error
6
- class ErrorComponent < Spotlight::IconComponent
6
+ class ErrorComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for HighlightOff
6
- class HighlightOffComponent < Spotlight::IconComponent
6
+ class HighlightOffComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
9
9
  <path d="M0 0h24v24H0V0z" fill="none"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Info
6
- class InfoComponent < Spotlight::IconComponent
6
+ class InfoComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path fill="none" d="M0 0h24v24H0V0z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for Warning
6
- class WarningComponent < Spotlight::IconComponent
6
+ class WarningComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
9
9
  <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ZoomIn
6
- class ZoomInComponent < Spotlight::IconComponent
6
+ class ZoomInComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
9
9
  <path d="M0 0h24v24H0V0z" fill="none"/>
@@ -3,7 +3,7 @@
3
3
  module Blacklight
4
4
  module Icons
5
5
  # Icon for ZoomOut
6
- class ZoomOutComponent < Spotlight::IconComponent
6
+ class ZoomOutComponent < Blacklight::Icons::IconComponent
7
7
  self.svg = <<~SVG
8
8
  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
9
9
  <path d="M0 0h24v24H0V0z" fill="none"/>
@@ -3,11 +3,11 @@
3
3
  module Spotlight
4
4
  # Displays the document
5
5
  class IconComponent < Blacklight::Icons::IconComponent
6
- if Blacklight.version < '7.39'
7
- # Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 7.39)
8
- def classes
9
- ((@classes || (super if defined?(super)) || []) - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
10
- end
6
+ def initialize(*args, **kwargs)
7
+ Spotlight.deprecator.warn(
8
+ 'Spotlight::IconComponent is deprecated and will be removed in a future version. Use Blacklight::Icons::IconComponent instead.'
9
+ )
10
+ super
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '5.2.3'
4
+ VERSION = '5.2.4'
5
5
  end
data/lib/spotlight.rb CHANGED
@@ -7,6 +7,6 @@ require 'spotlight/engine'
7
7
  # Spotlight
8
8
  module Spotlight
9
9
  def self.deprecator
10
- @deprecator ||= ActiveSupport::Deprecation.new('5.0', 'blacklight-spotlight')
10
+ @deprecator ||= ActiveSupport::Deprecation.new('6.0', 'blacklight-spotlight')
11
11
  end
12
12
  end
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: 5.2.3
4
+ version: 5.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer