Sha256: 08573268f333a68fc1f5b3421d64c776da0e2616c1d9a830af2e259537ccdbfc

Contents?: true

Size: 1.55 KB

Versions: 338

Compression:

Stored size: 1.55 KB

Contents

# frozen_string_literal: true

module Playbook
  module PbMultiLevelSelect
    class MultiLevelSelect < Playbook::KitBase
      prop :id
      prop :name
      prop :tree_data, type: Playbook::Props::Array,
                       default: []
      prop :return_all_selected, type: Playbook::Props::Boolean,
                                 default: false
      prop :selected_ids, type: Playbook::Props::Array,
                          default: []
      prop :input_display, type: Playbook::Props::Enum,
                           values: %w[pills none],
                           default: "pills"
      prop :input_name, type: Playbook::Props::String,
                        default: ""
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[multi single],
                     default: "multi"
      prop :pill_color, type: Playbook::Props::Enum,
                        values: %w[primary neutral success warning error info data_1 data_2 data_3 data_4 data_5 data_6 data_7 data_8 windows siding roofing doors gutters solar insulation accessories],
                        default: "primary"

      def classname
        generate_classname("pb_multi_level_select")
      end

      def multi_level_select_options
        {
          id: id,
          inputDisplay: input_display,
          name: name,
          treeData: tree_data,
          returnAllSelected: return_all_selected,
          selectedIds: selected_ids,
          input_name: input_name,
          variant: variant,
          pillColor: pill_color,
        }
      end
    end
  end
end

Version data entries

338 entries across 338 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb