ui_bibz 3.0.0.beta16 → 3.0.0.beta17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffa18823b220fe50b0aab6b3b25e06d184bc514266edaf8a24e47345e8816001
4
- data.tar.gz: c189f21d3f6ad9943f8fc9ce303eb9578d1159366a7fc3340d9a5fed8205d9ad
3
+ metadata.gz: 293f9667c9bfae713e8968aedb6fb67bb8f391b0ef8f57663e048be71589e4e5
4
+ data.tar.gz: 4b15c120616b00753011fd7f58e278dbe249cacd98e1642bac153b80b0e6b5de
5
5
  SHA512:
6
- metadata.gz: 53ef82ec6ccc0bd9f4036887402fef838f6e206d2ce59282fd3b9571eaa1b960767607e99286bb515e95d801c8c8a4c4f7750c219096bed99b49ccd55cabc37c
7
- data.tar.gz: 7e4f7f43e3fb0e1830eafc73b35c6901184586973db3d5964b06de5e27503edbee78d945f8203104effc617c3a4b0263a8903fd5d7cc0193a83a4e6c626b22ea
6
+ metadata.gz: a9d3053d5303bd6c9ff0c6de3dde049a08a75f25f94e70f3812031050328dd66dc14e3b6909a35f083993ee09b1782c615d3b00c0c8fd41e224bc50f223b4077
7
+ data.tar.gz: a167b60e21e64c303227f580ca599b95351ae1b5554a5c611fef8abc199abe9180c5aa44af7654a5b61ef777b21d81cb7e289389d3098bfd10f78a26a5597638
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (3.0.0.beta16)
4
+ ui_bibz (3.0.0.beta17)
5
5
  will-paginate-i18n
6
6
  will_paginate (~> 3.3.0)
7
7
  will_paginate-bootstrap4
@@ -9,56 +9,56 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (6.0.3.5)
13
- actionpack (= 6.0.3.5)
12
+ actioncable (6.0.3.6)
13
+ actionpack (= 6.0.3.6)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.3.5)
17
- actionpack (= 6.0.3.5)
18
- activejob (= 6.0.3.5)
19
- activerecord (= 6.0.3.5)
20
- activestorage (= 6.0.3.5)
21
- activesupport (= 6.0.3.5)
16
+ actionmailbox (6.0.3.6)
17
+ actionpack (= 6.0.3.6)
18
+ activejob (= 6.0.3.6)
19
+ activerecord (= 6.0.3.6)
20
+ activestorage (= 6.0.3.6)
21
+ activesupport (= 6.0.3.6)
22
22
  mail (>= 2.7.1)
23
- actionmailer (6.0.3.5)
24
- actionpack (= 6.0.3.5)
25
- actionview (= 6.0.3.5)
26
- activejob (= 6.0.3.5)
23
+ actionmailer (6.0.3.6)
24
+ actionpack (= 6.0.3.6)
25
+ actionview (= 6.0.3.6)
26
+ activejob (= 6.0.3.6)
27
27
  mail (~> 2.5, >= 2.5.4)
28
28
  rails-dom-testing (~> 2.0)
29
- actionpack (6.0.3.5)
30
- actionview (= 6.0.3.5)
31
- activesupport (= 6.0.3.5)
29
+ actionpack (6.0.3.6)
30
+ actionview (= 6.0.3.6)
31
+ activesupport (= 6.0.3.6)
32
32
  rack (~> 2.0, >= 2.0.8)
33
33
  rack-test (>= 0.6.3)
34
34
  rails-dom-testing (~> 2.0)
35
35
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.3.5)
37
- actionpack (= 6.0.3.5)
38
- activerecord (= 6.0.3.5)
39
- activestorage (= 6.0.3.5)
40
- activesupport (= 6.0.3.5)
36
+ actiontext (6.0.3.6)
37
+ actionpack (= 6.0.3.6)
38
+ activerecord (= 6.0.3.6)
39
+ activestorage (= 6.0.3.6)
40
+ activesupport (= 6.0.3.6)
41
41
  nokogiri (>= 1.8.5)
42
- actionview (6.0.3.5)
43
- activesupport (= 6.0.3.5)
42
+ actionview (6.0.3.6)
43
+ activesupport (= 6.0.3.6)
44
44
  builder (~> 3.1)
45
45
  erubi (~> 1.4)
46
46
  rails-dom-testing (~> 2.0)
47
47
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.3.5)
49
- activesupport (= 6.0.3.5)
48
+ activejob (6.0.3.6)
49
+ activesupport (= 6.0.3.6)
50
50
  globalid (>= 0.3.6)
51
- activemodel (6.0.3.5)
52
- activesupport (= 6.0.3.5)
53
- activerecord (6.0.3.5)
54
- activemodel (= 6.0.3.5)
55
- activesupport (= 6.0.3.5)
56
- activestorage (6.0.3.5)
57
- actionpack (= 6.0.3.5)
58
- activejob (= 6.0.3.5)
59
- activerecord (= 6.0.3.5)
60
- marcel (~> 0.3.1)
61
- activesupport (6.0.3.5)
51
+ activemodel (6.0.3.6)
52
+ activesupport (= 6.0.3.6)
53
+ activerecord (6.0.3.6)
54
+ activemodel (= 6.0.3.6)
55
+ activesupport (= 6.0.3.6)
56
+ activestorage (6.0.3.6)
57
+ actionpack (= 6.0.3.6)
58
+ activejob (= 6.0.3.6)
59
+ activerecord (= 6.0.3.6)
60
+ marcel (~> 1.0.0)
61
+ activesupport (6.0.3.6)
62
62
  concurrent-ruby (~> 1.0, >= 1.0.2)
63
63
  i18n (>= 0.7, < 2)
64
64
  minitest (~> 5.1)
@@ -107,15 +107,13 @@ GEM
107
107
  nokogiri (>= 1.5.9)
108
108
  mail (2.7.1)
109
109
  mini_mime (>= 0.1.1)
110
- marcel (0.3.3)
111
- mimemagic (~> 0.3.2)
110
+ marcel (1.0.0)
112
111
  method_source (1.0.0)
113
- mimemagic (0.3.5)
114
- mini_mime (1.0.2)
112
+ mini_mime (1.0.3)
115
113
  mini_portile2 (2.5.0)
116
114
  minitest (5.14.4)
117
115
  nio4r (2.5.7)
118
- nokogiri (1.11.1)
116
+ nokogiri (1.11.2)
119
117
  mini_portile2 (~> 2.5.0)
120
118
  racc (~> 1.4)
121
119
  overcommit (0.57.0)
@@ -128,29 +126,29 @@ GEM
128
126
  rack (2.2.3)
129
127
  rack-test (1.1.0)
130
128
  rack (>= 1.0, < 3)
131
- rails (6.0.3.5)
132
- actioncable (= 6.0.3.5)
133
- actionmailbox (= 6.0.3.5)
134
- actionmailer (= 6.0.3.5)
135
- actionpack (= 6.0.3.5)
136
- actiontext (= 6.0.3.5)
137
- actionview (= 6.0.3.5)
138
- activejob (= 6.0.3.5)
139
- activemodel (= 6.0.3.5)
140
- activerecord (= 6.0.3.5)
141
- activestorage (= 6.0.3.5)
142
- activesupport (= 6.0.3.5)
129
+ rails (6.0.3.6)
130
+ actioncable (= 6.0.3.6)
131
+ actionmailbox (= 6.0.3.6)
132
+ actionmailer (= 6.0.3.6)
133
+ actionpack (= 6.0.3.6)
134
+ actiontext (= 6.0.3.6)
135
+ actionview (= 6.0.3.6)
136
+ activejob (= 6.0.3.6)
137
+ activemodel (= 6.0.3.6)
138
+ activerecord (= 6.0.3.6)
139
+ activestorage (= 6.0.3.6)
140
+ activesupport (= 6.0.3.6)
143
141
  bundler (>= 1.3.0)
144
- railties (= 6.0.3.5)
142
+ railties (= 6.0.3.6)
145
143
  sprockets-rails (>= 2.0.0)
146
144
  rails-dom-testing (2.0.3)
147
145
  activesupport (>= 4.2.0)
148
146
  nokogiri (>= 1.6)
149
147
  rails-html-sanitizer (1.3.0)
150
148
  loofah (~> 2.3)
151
- railties (6.0.3.5)
152
- actionpack (= 6.0.3.5)
153
- activesupport (= 6.0.3.5)
149
+ railties (6.0.3.6)
150
+ actionpack (= 6.0.3.6)
151
+ activesupport (= 6.0.3.6)
154
152
  method_source
155
153
  rake (>= 0.8.7)
156
154
  thor (>= 0.20.3, < 2.0)
@@ -158,7 +156,7 @@ GEM
158
156
  rake (13.0.3)
159
157
  regexp_parser (2.1.1)
160
158
  rexml (3.2.4)
161
- rubocop (1.11.0)
159
+ rubocop (1.12.0)
162
160
  parallel (~> 1.10)
163
161
  parser (>= 3.0.0.0)
164
162
  rainbow (>= 2.2.2, < 4.0)
@@ -169,9 +167,9 @@ GEM
169
167
  unicode-display_width (>= 1.4.0, < 3.0)
170
168
  rubocop-ast (1.4.1)
171
169
  parser (>= 2.7.1.5)
172
- rubocop-minitest (0.10.3)
173
- rubocop (>= 0.87, < 2.0)
174
- rubocop-performance (1.10.1)
170
+ rubocop-minitest (0.11.1)
171
+ rubocop (>= 0.90, < 2.0)
172
+ rubocop-performance (1.10.2)
175
173
  rubocop (>= 0.90.0, < 2.0)
176
174
  rubocop-ast (>= 0.4.0)
177
175
  rubocop-rails (2.9.1)
@@ -213,7 +211,6 @@ GEM
213
211
  will_paginate (3.3.0)
214
212
  will_paginate-bootstrap4 (0.2.2)
215
213
  will_paginate (~> 3.0, >= 3.0.0)
216
- yard (0.9.26)
217
214
  zeitwerk (2.4.2)
218
215
 
219
216
  PLATFORMS
@@ -237,7 +234,6 @@ DEPENDENCIES
237
234
  simplecov
238
235
  sqlite3
239
236
  ui_bibz!
240
- yard
241
237
 
242
238
  BUNDLED WITH
243
239
  2.1.4
@@ -119,18 +119,18 @@ module UiBibz::Concerns::Models::Searchable
119
119
  if attribute.is_a?(Hash)
120
120
  if attribute == :as
121
121
  attribute.each_value do |value|
122
- sql_subquery << "lower(#{value}) LIKE :#{value}_#{i}"
122
+ sql_subquery << "lower(CAST(#{value} AS TEXT)) LIKE :#{value}_#{i}"
123
123
  sql_attributes = sql_attributes.merge({ "#{value}_#{i}".to_sym => "%#{pattern}%" })
124
124
  end
125
125
  else
126
126
  key_name = attribute.keys.first.to_s.pluralize
127
127
  attribute.each_value do |value|
128
- sql_subquery << "lower(#{key_name}.#{value}) LIKE :#{key_name}_#{value}_#{i}"
128
+ sql_subquery << "lower(CAST(#{key_name}.#{value} AS TEXT)) LIKE :#{key_name}_#{value}_#{i}"
129
129
  sql_attributes = sql_attributes.merge({ "#{key_name}_#{value}_#{i}".to_sym => "%#{pattern}%" })
130
130
  end
131
131
  end
132
132
  else
133
- sql_subquery << "lower(#{to_s.underscore.pluralize.split('/').last}.#{attribute}) LIKE :#{attribute}_#{i}"
133
+ sql_subquery << "lower(CAST(#{to_s.underscore.pluralize.split('/').last}.#{attribute} AS TEXT)) LIKE :#{attribute}_#{i}"
134
134
  sql_attributes = sql_attributes.merge({ "#{attribute}_#{i}".to_sym => "%#{pattern}%" })
135
135
  end
136
136
  end
data/lib/ui_bibz/infos.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module UiBibz
4
4
  NAME = 'Ui Bibz'
5
5
  SLUG = 'ui_bibz'
6
- BOOTSTRAP_VERSION = '5.0.0.beta2'
6
+ BOOTSTRAP_VERSION = '5.0.0.beta3'
7
7
  DESCRIPTION = "A Rails Interface Framework using Bootstrap #{BOOTSTRAP_VERSION}."
8
8
  SUMMARY = "Ui Bibz is an Ui Framework that allows you to build an interface very quickly and simply using Bootstrap #{BOOTSTRAP_VERSION}."
9
9
  LICENSE = 'MIT'
@@ -12,6 +12,6 @@ module UiBibz
12
12
  REPO = 'git+https://github.com/thooams/ui_bibz.git'
13
13
  EMAIL = 'thomas@hummel.link'
14
14
  AUTHOR = 'Thooams [Thomas HUMMEL]'
15
- VERSION = '3.0.0.beta16'
15
+ VERSION = '3.0.0.beta17'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -60,14 +60,12 @@ module UiBibzInputs
60
60
  end
61
61
 
62
62
  def collection
63
- @collection ||= begin
64
- if options[:grouped]
65
- grouped_collection.map { |collection| collection.try(:send, group_method) }.detect(&:present?) || []
66
- else
67
- collection = options.delete(:collection) || self.class.boolean_collection
68
- collection.respond_to?(:call) ? collection.call : collection.to_a
69
- end
70
- end
63
+ @collection ||= if options[:grouped]
64
+ grouped_collection.map { |collection| collection.try(:send, group_method) }.detect(&:present?) || []
65
+ else
66
+ collection = options.delete(:collection) || self.class.boolean_collection
67
+ collection.respond_to?(:call) ? collection.call : collection.to_a
68
+ end
71
69
  end
72
70
 
73
71
  def group_method
@@ -90,7 +90,7 @@ module UiBibz::Ui::Core::Boxes
90
90
  class Card < UiBibz::Ui::Core::Component
91
91
  include UiBibz::Ui::Concerns::CardItemableConcern
92
92
 
93
- # (see UiBibz::Ui::Core::Component#initialize)
93
+ # See UiBibz::Ui::Core::Component.initialize
94
94
  def initialize(content = nil, options = nil, html_options = nil, &block)
95
95
  super
96
96
  @items = @content.nil? ? [] : [UiBibz::Ui::Core::Boxes::Components::CardBody.new(@content).render]
@@ -86,7 +86,7 @@ module UiBibz::Ui::Core::Forms::Numbers
86
86
  end
87
87
 
88
88
  def content_formula_name
89
- content.to_s.split('').count { |i| i == ']' }.positive? ? content.to_s.gsub(/]$/, '_formula]') : "#{content}_formula"
89
+ content.to_s.chars.count { |i| i == ']' }.positive? ? content.to_s.gsub(/]$/, '_formula]') : "#{content}_formula"
90
90
  end
91
91
 
92
92
  def state
@@ -25,7 +25,6 @@ module UiBibz::Ui::Core::Forms::Selects
25
25
  # * +searchable+ - Boolean
26
26
  # * +select_all_option+ - Boolean
27
27
  # * +append+ - String, Html
28
- # * +non_selected_text+ - String
29
28
  # * +open+ - Boolean
30
29
  # * +theme+ - Symbol, defaut: +:dark+
31
30
  # * +prepend+ - String, Html
@@ -84,12 +83,10 @@ module UiBibz::Ui::Core::Forms::Selects
84
83
  clickable_opt_group
85
84
  collapsible_opt_group
86
85
  searchable
87
- non_selected_text
88
86
  select_all_options
89
87
  number_displayed
90
88
  dropdown_menu_classes
91
89
  dropdown_classes
92
- n_selected_text
93
90
  end
94
91
 
95
92
  def clickable_opt_group
@@ -104,10 +101,6 @@ module UiBibz::Ui::Core::Forms::Selects
104
101
  add_html_data('enable_filtering') if options[:searchable]
105
102
  end
106
103
 
107
- def n_selected_text
108
- add_html_data('n_selected_text', value: options[:n_selected_text]) if options[:n_selected_text]
109
- end
110
-
111
104
  def number_displayed
112
105
  add_html_data('number_displayed') if options[:number_displayed]
113
106
  end
@@ -116,10 +109,6 @@ module UiBibz::Ui::Core::Forms::Selects
116
109
  add_html_data('include_select_all_option') if options[:select_all_options]
117
110
  end
118
111
 
119
- def non_selected_text
120
- add_html_data('non_selected_text', value: options[:non_selected_text]) if options[:non_selected_text]
121
- end
122
-
123
112
  def dropdown_menu_classes
124
113
  classes = join_classes(theme, alignment, open)
125
114
  add_html_data('dropdown_menu_classes', value: classes.nil? ? nil : classes.join(' '))
@@ -76,13 +76,29 @@ module UiBibz::Ui::Core::Notifications
76
76
 
77
77
  # Add Body which is a component
78
78
  def body(content = nil, options = nil, html_options = nil, &block)
79
- @body = UiBibz::Ui::Core::Notifications::Components::ToastBody.new(content, options, html_options, &block).render
79
+ @body = if @header.nil?
80
+ content_tag :div, class: 'd-flex' do
81
+ concat UiBibz::Ui::Core::Notifications::Components::ToastBody.new(content, options, html_options, &block).render
82
+ concat close_html if (options || {})[:closable]
83
+ end
84
+ else
85
+ UiBibz::Ui::Core::Notifications::Components::ToastBody.new(content, options, html_options, &block).render
86
+ end
80
87
  end
81
88
 
82
89
  private
83
90
 
91
+ def only_body_html
92
+ @body = UiBibz::Ui::Core::Notifications::Components::ToastBody.new(content, options, html_options, &block).render
93
+ end
94
+
95
+ def close_html
96
+ content_tag :button, '', type: 'button', class: close_button_classes,
97
+ 'data-bs-dismiss' => 'toast', 'aria-label' => 'Close'
98
+ end
99
+
84
100
  def component_html_classes
85
- super << ['toast', status, white_text_color]
101
+ super << ['toast', status, white_text_color, align_items_center]
86
102
  end
87
103
 
88
104
  def component_html_options
@@ -98,10 +114,24 @@ module UiBibz::Ui::Core::Notifications
98
114
  "bg-#{options[:status]}" if options[:status]
99
115
  end
100
116
 
117
+ def align_items_center
118
+ 'align-items-center' if @header.nil?
119
+ end
120
+
101
121
  def white_text_color
102
122
  return if options[:status].nil?
103
123
 
104
124
  'text-white' unless %i[info warning info light].include?(options[:status])
105
125
  end
126
+
127
+ def white_btn_color
128
+ return if options[:status].nil?
129
+
130
+ 'btn-close-white' unless %i[info warning info light].include?(options[:status])
131
+ end
132
+
133
+ def close_button_classes
134
+ UiBibz::Utils::Screwdriver.join_classes('btn-close', 'me-2', 'm-auto', white_btn_color)
135
+ end
106
136
  end
107
137
  end
@@ -52,7 +52,7 @@ module UiBibz::Ui::Ux::Tables
52
52
  def defaults_actions
53
53
  [
54
54
  UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(show_name, url: { controller: @store.controller, action: 'show', id: :id }, glyph: 'eye').render,
55
- UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(edit_name, url: { controller: @store.controller, action: 'edit', id: :id }, glyph: 'pencil').render,
55
+ UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(edit_name, url: { controller: @store.controller, action: 'edit', id: :id }, glyph: 'edit').render,
56
56
  UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(delete_name, { glyph: 'trash', url: { controller: @store.controller, action: 'destroy', id: :id }, link_html_options: { data: { confirm: 'Are you sure?', method: :delete } } }).render
57
57
  ]
58
58
  end
@@ -23,11 +23,4 @@ class CheckboxFieldTest < ActionView::TestCase
23
23
 
24
24
  assert_equal expected, actual
25
25
  end
26
-
27
- test 'checkbox_field with html_options' do
28
- actual = UiBibz::Ui::Core::Forms::Choices::CheckboxField.new('John', { checked: true }, { data: { name: 'check' } }).render
29
- expected = "<div class=\"form-check\"><input type=\"checkbox\" name=\"John\" id=\"John\" value=\"1\" data-name=\"check\" class=\"form-check-input\" checked=\"checked\" /><label class=\"form-check-label\" for=\"John\">John</label></div>"
30
-
31
- assert_equal expected, actual
32
- end
33
26
  end
@@ -3,7 +3,7 @@
3
3
  require 'test_helper'
4
4
 
5
5
  class DropdownSelectFieldTest < ActionView::TestCase
6
- test 'Dropdown Select Field' do
6
+ test 'Multi Select Field' do
7
7
  options = options_for_select(Array.new(2) { |i| "option #{i}" })
8
8
  actual = UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new('example', multiple: true, option_tags: options).render
9
9
  expected = "<select name=\"example[]\" id=\"example\" data-dropdown-classes=\"dropdown\" class=\"btn-secondary multi-select-field\" multiple=\"multiple\"><option value=\"option 0\">option 0</option>
@@ -12,10 +12,10 @@ class DropdownSelectFieldTest < ActionView::TestCase
12
12
  assert_equal expected, actual
13
13
  end
14
14
 
15
- test 'Dropdown Select Field data html options' do
15
+ test 'Multi Select Field data html options' do
16
16
  grouped_options = { 'North America' => [['United statuss', 'US'], 'Canada'], 'Europe' => %w[Denmark Germany France] }
17
- actual = UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new('example', { multiple: true, option_tags: grouped_options_for_select(grouped_options), clickable_opt_group: true, collapsible_opt_group: true, searchable: true, non_selected_text: 'test', select_all_options: true, number_displayed: 2, status: :danger, n_selected_text: "items selected" }).render
18
- expected = "<select name=\"example[]\" id=\"example\" data-enable-clickable-opt-groups=\"true\" data-enable-collapsible-opt-groups=\"true\" data-enable-filtering=\"true\" data-non-selected-text=\"test\" data-include-select-all-option=\"true\" data-number-displayed=\"true\" data-dropdown-classes=\"dropdown\" data-n-selected-text=\"items selected\" class=\"btn-danger multi-select-field\" multiple=\"multiple\"><optgroup label=\"North America\"><option value=\"US\">United statuss</option>
17
+ actual = UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new('example', { multiple: true, option_tags: grouped_options_for_select(grouped_options), clickable_opt_group: true, collapsible_opt_group: true, searchable: true, select_all_options: true, number_displayed: 2, status: :danger }).render
18
+ expected = "<select name=\"example[]\" id=\"example\" data-enable-clickable-opt-groups=\"true\" data-enable-collapsible-opt-groups=\"true\" data-enable-filtering=\"true\" data-include-select-all-option=\"true\" data-number-displayed=\"true\" data-dropdown-classes=\"dropdown\" class=\"btn-danger multi-select-field\" multiple=\"multiple\"><optgroup label=\"North America\"><option value=\"US\">United statuss</option>
19
19
  <option value=\"Canada\">Canada</option></optgroup><optgroup label=\"Europe\"><option value=\"Denmark\">Denmark</option>
20
20
  <option value=\"Germany\">Germany</option>
21
21
  <option value=\"France\">France</option></optgroup></select>"
@@ -23,7 +23,7 @@ class DropdownSelectFieldTest < ActionView::TestCase
23
23
  assert_equal expected, actual
24
24
  end
25
25
 
26
- test 'Dropdown Select Field refresh option' do
26
+ test 'Multi select Field refresh option' do
27
27
  actual = UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new('test', { multiple: true, refresh: { target: { url: '/' } } }).render
28
28
  expected = "<div class=\"field-refresh input-group ui_surround_field\"><select name=\"test[]\" id=\"test\" data-dropdown-classes=\"dropdown\" class=\"btn-secondary multi-select-field\" multiple=\"multiple\"></select><span data-connect=\"{&quot;events&quot;:&quot;click&quot;,&quot;mode&quot;:&quot;remote&quot;,&quot;target&quot;:{&quot;selector&quot;:&quot;#test&quot;,&quot;url&quot;:&quot;/&quot;,&quot;data&quot;:[]}}\" class=\"btn-secondary ui-bibz-connect btn input-refresh-button\"><i class=\"glyph fas fa-sync-alt\"></i></span></div>"
29
29
 
@@ -9,7 +9,7 @@ class ToastTest < ActionView::TestCase
9
9
  t.header 'My header toast', glyph: 'eye', time: 'Now', class: 'my-header-toast'
10
10
  t.body 'My body toast', class: 'my-body-toast'
11
11
  end
12
- expected = "<div data-bs-autohide=\"true\" class=\"my-toast toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"my-header-toast toast-header\"><i class=\"me-2 glyph fas fa-eye\"></i><strong class=\"me-auto\">My header toast</strong><small class=\"text-muted\">Now</small><button class=\"ml-2 mb-1 btn-close\" data-bs-dismiss=\"toast\" aria-label=\"Close\"></button></div><div class=\"my-body-toast toast-body\">My body toast</div></div>"
12
+ expected = "<div data-bs-autohide=\"true\" class=\"my-toast toast align-items-center\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"my-header-toast toast-header\"><i class=\"me-2 glyph fas fa-eye\"></i><strong class=\"me-auto\">My header toast</strong><small class=\"text-muted\">Now</small><button class=\"ml-2 mb-1 btn-close\" data-bs-dismiss=\"toast\" aria-label=\"Close\"></button></div><div class=\"my-body-toast toast-body\">My body toast</div></div>"
13
13
 
14
14
  assert_equal expected, actual
15
15
  end
@@ -18,7 +18,7 @@ class ToastTest < ActionView::TestCase
18
18
  actual = ui_toast do
19
19
  'My body toast'
20
20
  end
21
- expected = "<div class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"toast-body\">My body toast</div></div>"
21
+ expected = "<div class=\"toast align-items-center\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"d-flex\"><div class=\"toast-body\">My body toast</div></div></div>"
22
22
 
23
23
  assert_equal expected, actual
24
24
  end
data/ui_bibz.gemspec CHANGED
@@ -47,5 +47,4 @@ Gem::Specification.new do |s|
47
47
  s.add_development_dependency 'simplecov'
48
48
  s.add_development_dependency 'simple_form'
49
49
  s.add_development_dependency 'sqlite3'
50
- s.add_development_dependency 'yard'
51
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta16
4
+ version: 3.0.0.beta17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams [Thomas HUMMEL]
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -240,21 +240,7 @@ dependencies:
240
240
  - - ">="
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
- - !ruby/object:Gem::Dependency
244
- name: yard
245
- requirement: !ruby/object:Gem::Requirement
246
- requirements:
247
- - - ">="
248
- - !ruby/object:Gem::Version
249
- version: '0'
250
- type: :development
251
- prerelease: false
252
- version_requirements: !ruby/object:Gem::Requirement
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- version: '0'
257
- description: A Rails Interface Framework using Bootstrap 5.0.0.beta2.
243
+ description: A Rails Interface Framework using Bootstrap 5.0.0.beta3.
258
244
  email: thomas@hummel.link
259
245
  executables:
260
246
  - test
@@ -560,8 +546,8 @@ files:
560
546
  - test/ui/core/forms/numbers/number_field_test.rb
561
547
  - test/ui/core/forms/numbers/range_field_test.rb
562
548
  - test/ui/core/forms/numbers/slider_field_test.rb
563
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
564
549
  - test/ui/core/forms/selects/multi_column_field_test.rb
550
+ - test/ui/core/forms/selects/multi_select_field_test.rb
565
551
  - test/ui/core/forms/selects/select_field_test.rb
566
552
  - test/ui/core/forms/surrounds/surround_field_test.rb
567
553
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
@@ -682,7 +668,7 @@ rubygems_version: 3.1.2
682
668
  signing_key:
683
669
  specification_version: 4
684
670
  summary: Ui Bibz is an Ui Framework that allows you to build an interface very quickly
685
- and simply using Bootstrap 5.0.0.beta2.
671
+ and simply using Bootstrap 5.0.0.beta3.
686
672
  test_files:
687
673
  - test/dummy/README.rdoc
688
674
  - test/dummy/Rakefile
@@ -773,8 +759,8 @@ test_files:
773
759
  - test/ui/core/forms/numbers/number_field_test.rb
774
760
  - test/ui/core/forms/numbers/range_field_test.rb
775
761
  - test/ui/core/forms/numbers/slider_field_test.rb
776
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
777
762
  - test/ui/core/forms/selects/multi_column_field_test.rb
763
+ - test/ui/core/forms/selects/multi_select_field_test.rb
778
764
  - test/ui/core/forms/selects/select_field_test.rb
779
765
  - test/ui/core/forms/surrounds/surround_field_test.rb
780
766
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb