Sha256: 616787c6e3f01d4547b7df39ed2a3b01c3f15f6d3d1d58ceb40e2b704b329175

Contents?: true

Size: 597 Bytes

Versions: 32

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class FacetFieldListComponent < ::ViewComponent::Base
    def initialize(facet_field:, layout: nil)
      @facet_field = facet_field
      @layout = layout == false ? FacetFieldNoLayoutComponent : Blacklight::FacetFieldComponent
    end

    # Here for backwards compatibility only.
    # @private
    def render_facet_limit_list(*args)
      Deprecation.silence(Blacklight::FacetsHelperBehavior) do
        @view_context.render_facet_limit_list(*args)
      end
    end

    def render?
      @facet_field.paginator.items.any?
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
blacklight-7.22.2 app/components/blacklight/facet_field_list_component.rb
blacklight-7.22.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.22.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.21.2 app/components/blacklight/facet_field_list_component.rb
blacklight-7.21.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.21.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.20.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.20.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.19.2 app/components/blacklight/facet_field_list_component.rb
blacklight-7.19.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.19.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.18.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.18.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.17.2 app/components/blacklight/facet_field_list_component.rb
blacklight-7.17.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.17.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.16.0 app/components/blacklight/facet_field_list_component.rb
blacklight-7.15.2 app/components/blacklight/facet_field_list_component.rb
blacklight-7.15.1 app/components/blacklight/facet_field_list_component.rb
blacklight-7.15.0 app/components/blacklight/facet_field_list_component.rb