ui_bibz 4.0.0.beta14 → 4.0.0.beta16

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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +100 -95
  3. data/app/assets/stylesheets/sass/tables/_table.sass +3 -3
  4. data/lib/ui_bibz/infos.rb +1 -1
  5. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +5 -3
  6. data/test/ui/ux/tables/table_test.rb +2 -2
  7. data/ui_bibz.gemspec +2 -3
  8. data/vendor/assets/stylesheets/bootstrap.min.css +6 -0
  9. data/vendor/assets/stylesheets/fontawesome/all.min.css +9 -0
  10. data/vendor/assets/stylesheets/fontawesome/brands.css +1600 -0
  11. data/vendor/assets/stylesheets/fontawesome/fontawesome.css +6215 -0
  12. data/vendor/assets/stylesheets/fontawesome/regular.css +19 -0
  13. data/vendor/assets/stylesheets/fontawesome/solid.css +19 -0
  14. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  15. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  16. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  17. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  18. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  19. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  20. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
  21. data/vendor/assets/stylesheets/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
  22. metadata +34 -20
  23. /data/app/assets/stylesheets/{navigations → sass/navigations}/_nav.sass +0 -0
  24. /data/app/assets/stylesheets/{navigations → sass/navigations}/_navbar.sass +0 -0
  25. /data/app/assets/stylesheets/{navigations → sass/navigations}/_progress_bar.sass +0 -0
  26. /data/app/assets/stylesheets/{navigations → sass/navigations}/_toolbar.sass +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: accfe5e81a517a5bdb0bab43530ea4d9d6c80d5b75670f9451a7cfc567015998
4
- data.tar.gz: 8e557d979fede0a2da459088e9e433e5977cd8504f114b7cb4b38449db7cfeec
3
+ metadata.gz: 9a3cd0a14c5ea1f6ff3cdda6ea0f1d8bfb4a292ac7bb7a73c95432ea02ce1976
4
+ data.tar.gz: e5c5dadd3eb4677741d9e1e0845f7c7c252e09a05445353559e1c271ea769480
5
5
  SHA512:
6
- metadata.gz: 26ee695f4be007519a334c72f8dd76424f9dfd4dc799a1c8c7cf93041eaf3a88abd94707f30d7297a1a0a9ec02fb5cba641a4c6269b89f2e1cba81042b8c4207
7
- data.tar.gz: 48552e58d44501a3a3ca5fdfbfa42dde862f0016601b9c34be5cad5287e9644fedd155d82e2770b4b33ff97df477bee8e41ccba84eb136869350b64620e4e22b
6
+ metadata.gz: 3f095dc57b226e7b3780ada538344100980eeff55383a55498d24d04a4ff42a3041f4847444f2df11042b2342f3328af4a32e3e833f3502fae3c2b7b0a0db2eb
7
+ data.tar.gz: 94f43098fd85527dedd1afd1b1013a332348c659424e2ac7f28a83ddba125de6b91cebe85a1cd0562098d7251b0248ae41b86186406ef442a1ece212fd04cbfd
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (4.0.0.beta14)
5
- bootstrap-propshaft (~> 5.3.2.2)
4
+ ui_bibz (4.0.0.beta16)
5
+ bootstrap (~> 5.3.3)
6
6
  dartsass-rails
7
7
  rails (>= 7.1.0)
8
8
  will_paginate
@@ -10,66 +10,65 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.2.2)
14
- actionpack (= 7.2.2)
15
- activesupport (= 7.2.2)
13
+ actioncable (8.0.1)
14
+ actionpack (= 8.0.1)
15
+ activesupport (= 8.0.1)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
18
  zeitwerk (~> 2.6)
19
- actionmailbox (7.2.2)
20
- actionpack (= 7.2.2)
21
- activejob (= 7.2.2)
22
- activerecord (= 7.2.2)
23
- activestorage (= 7.2.2)
24
- activesupport (= 7.2.2)
19
+ actionmailbox (8.0.1)
20
+ actionpack (= 8.0.1)
21
+ activejob (= 8.0.1)
22
+ activerecord (= 8.0.1)
23
+ activestorage (= 8.0.1)
24
+ activesupport (= 8.0.1)
25
25
  mail (>= 2.8.0)
26
- actionmailer (7.2.2)
27
- actionpack (= 7.2.2)
28
- actionview (= 7.2.2)
29
- activejob (= 7.2.2)
30
- activesupport (= 7.2.2)
26
+ actionmailer (8.0.1)
27
+ actionpack (= 8.0.1)
28
+ actionview (= 8.0.1)
29
+ activejob (= 8.0.1)
30
+ activesupport (= 8.0.1)
31
31
  mail (>= 2.8.0)
32
32
  rails-dom-testing (~> 2.2)
33
- actionpack (7.2.2)
34
- actionview (= 7.2.2)
35
- activesupport (= 7.2.2)
33
+ actionpack (8.0.1)
34
+ actionview (= 8.0.1)
35
+ activesupport (= 8.0.1)
36
36
  nokogiri (>= 1.8.5)
37
- racc
38
- rack (>= 2.2.4, < 3.2)
37
+ rack (>= 2.2.4)
39
38
  rack-session (>= 1.0.1)
40
39
  rack-test (>= 0.6.3)
41
40
  rails-dom-testing (~> 2.2)
42
41
  rails-html-sanitizer (~> 1.6)
43
42
  useragent (~> 0.16)
44
- actiontext (7.2.2)
45
- actionpack (= 7.2.2)
46
- activerecord (= 7.2.2)
47
- activestorage (= 7.2.2)
48
- activesupport (= 7.2.2)
43
+ actiontext (8.0.1)
44
+ actionpack (= 8.0.1)
45
+ activerecord (= 8.0.1)
46
+ activestorage (= 8.0.1)
47
+ activesupport (= 8.0.1)
49
48
  globalid (>= 0.6.0)
50
49
  nokogiri (>= 1.8.5)
51
- actionview (7.2.2)
52
- activesupport (= 7.2.2)
50
+ actionview (8.0.1)
51
+ activesupport (= 8.0.1)
53
52
  builder (~> 3.1)
54
53
  erubi (~> 1.11)
55
54
  rails-dom-testing (~> 2.2)
56
55
  rails-html-sanitizer (~> 1.6)
57
- activejob (7.2.2)
58
- activesupport (= 7.2.2)
56
+ activejob (8.0.1)
57
+ activesupport (= 8.0.1)
59
58
  globalid (>= 0.3.6)
60
- activemodel (7.2.2)
61
- activesupport (= 7.2.2)
62
- activerecord (7.2.2)
63
- activemodel (= 7.2.2)
64
- activesupport (= 7.2.2)
59
+ activemodel (8.0.1)
60
+ activesupport (= 8.0.1)
61
+ activerecord (8.0.1)
62
+ activemodel (= 8.0.1)
63
+ activesupport (= 8.0.1)
65
64
  timeout (>= 0.4.0)
66
- activestorage (7.2.2)
67
- actionpack (= 7.2.2)
68
- activejob (= 7.2.2)
69
- activerecord (= 7.2.2)
70
- activesupport (= 7.2.2)
65
+ activestorage (8.0.1)
66
+ actionpack (= 8.0.1)
67
+ activejob (= 8.0.1)
68
+ activerecord (= 8.0.1)
69
+ activesupport (= 8.0.1)
71
70
  marcel (~> 1.0)
72
- activesupport (7.2.2)
71
+ activesupport (8.0.1)
73
72
  base64
74
73
  benchmark (>= 0.3)
75
74
  bigdecimal
@@ -81,14 +80,15 @@ GEM
81
80
  minitest (>= 5.1)
82
81
  securerandom (>= 0.3)
83
82
  tzinfo (~> 2.0, >= 2.0.5)
83
+ uri (>= 0.13.1)
84
84
  ast (2.4.2)
85
85
  autoprefixer-rails (10.4.19.0)
86
86
  execjs (~> 2)
87
87
  awesome_print (1.9.2)
88
88
  base64 (0.2.0)
89
- benchmark (0.3.0)
89
+ benchmark (0.4.0)
90
90
  bigdecimal (3.1.8)
91
- bootstrap-propshaft (5.3.2.2)
91
+ bootstrap (5.3.3)
92
92
  autoprefixer-rails (>= 9.1.0)
93
93
  popper_js (>= 2.11.8, < 3)
94
94
  builder (3.3.0)
@@ -101,10 +101,10 @@ GEM
101
101
  dartsass-rails (0.5.1)
102
102
  railties (>= 6.0.0)
103
103
  sass-embedded (~> 1.63)
104
- date (3.4.0)
104
+ date (3.4.1)
105
105
  docile (1.4.1)
106
106
  drb (2.2.1)
107
- erubi (1.13.0)
107
+ erubi (1.13.1)
108
108
  execjs (2.10.0)
109
109
  factory_bot (4.11.1)
110
110
  activesupport (>= 3.0.0)
@@ -113,10 +113,10 @@ GEM
113
113
  railties (>= 3.0.0)
114
114
  globalid (1.2.1)
115
115
  activesupport (>= 6.1)
116
- google-protobuf (4.28.3-x86_64-darwin)
116
+ google-protobuf (4.29.2-x86_64-darwin)
117
117
  bigdecimal
118
118
  rake (>= 13)
119
- google-protobuf (4.28.3-x86_64-linux)
119
+ google-protobuf (4.29.2-x86_64-linux)
120
120
  bigdecimal
121
121
  rake (>= 13)
122
122
  haml (6.3.0)
@@ -135,13 +135,13 @@ GEM
135
135
  activesupport (>= 6.0.0)
136
136
  railties (>= 6.0.0)
137
137
  iniparse (1.5.0)
138
- io-console (0.7.2)
139
- irb (1.14.1)
138
+ io-console (0.8.0)
139
+ irb (1.14.3)
140
140
  rdoc (>= 4.0.0)
141
141
  reline (>= 0.4.2)
142
- json (2.8.1)
142
+ json (2.9.1)
143
143
  language_server-protocol (3.17.0.3)
144
- logger (1.6.1)
144
+ logger (1.6.4)
145
145
  loofah (2.23.1)
146
146
  crass (~> 1.0.2)
147
147
  nokogiri (>= 1.12.0)
@@ -152,8 +152,8 @@ GEM
152
152
  net-smtp
153
153
  marcel (1.0.4)
154
154
  mini_mime (1.1.5)
155
- minitest (5.25.1)
156
- net-imap (0.5.0)
155
+ minitest (5.25.4)
156
+ net-imap (0.5.2)
157
157
  date
158
158
  net-protocol
159
159
  net-pop (0.1.2)
@@ -163,9 +163,9 @@ GEM
163
163
  net-smtp (0.5.0)
164
164
  net-protocol
165
165
  nio4r (2.7.4)
166
- nokogiri (1.16.7-x86_64-darwin)
166
+ nokogiri (1.17.2-x86_64-darwin)
167
167
  racc (~> 1.4)
168
- nokogiri (1.16.7-x86_64-linux)
168
+ nokogiri (1.17.2-x86_64-linux)
169
169
  racc (~> 1.4)
170
170
  overcommit (0.64.1)
171
171
  childprocess (>= 0.6.3, < 6)
@@ -181,9 +181,10 @@ GEM
181
181
  activesupport (>= 7.0.0)
182
182
  rack
183
183
  railties (>= 7.0.0)
184
- psych (5.1.2)
184
+ psych (5.2.2)
185
+ date
185
186
  stringio
186
- puma (6.4.3)
187
+ puma (6.5.0)
187
188
  nio4r (~> 2.0)
188
189
  racc (1.8.1)
189
190
  rack (3.1.8)
@@ -191,32 +192,32 @@ GEM
191
192
  rack (>= 3.0.0)
192
193
  rack-test (2.1.0)
193
194
  rack (>= 1.3)
194
- rackup (2.2.0)
195
+ rackup (2.2.1)
195
196
  rack (>= 3)
196
- rails (7.2.2)
197
- actioncable (= 7.2.2)
198
- actionmailbox (= 7.2.2)
199
- actionmailer (= 7.2.2)
200
- actionpack (= 7.2.2)
201
- actiontext (= 7.2.2)
202
- actionview (= 7.2.2)
203
- activejob (= 7.2.2)
204
- activemodel (= 7.2.2)
205
- activerecord (= 7.2.2)
206
- activestorage (= 7.2.2)
207
- activesupport (= 7.2.2)
197
+ rails (8.0.1)
198
+ actioncable (= 8.0.1)
199
+ actionmailbox (= 8.0.1)
200
+ actionmailer (= 8.0.1)
201
+ actionpack (= 8.0.1)
202
+ actiontext (= 8.0.1)
203
+ actionview (= 8.0.1)
204
+ activejob (= 8.0.1)
205
+ activemodel (= 8.0.1)
206
+ activerecord (= 8.0.1)
207
+ activestorage (= 8.0.1)
208
+ activesupport (= 8.0.1)
208
209
  bundler (>= 1.15.0)
209
- railties (= 7.2.2)
210
+ railties (= 8.0.1)
210
211
  rails-dom-testing (2.2.0)
211
212
  activesupport (>= 5.0.0)
212
213
  minitest
213
214
  nokogiri (>= 1.6)
214
- rails-html-sanitizer (1.6.0)
215
+ rails-html-sanitizer (1.6.2)
215
216
  loofah (~> 2.21)
216
- nokogiri (~> 1.14)
217
- railties (7.2.2)
218
- actionpack (= 7.2.2)
219
- activesupport (= 7.2.2)
217
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
218
+ railties (8.0.1)
219
+ actionpack (= 8.0.1)
220
+ activesupport (= 8.0.1)
220
221
  irb (~> 1.13)
221
222
  rackup (>= 1.0.0)
222
223
  rake (>= 12.2)
@@ -224,28 +225,28 @@ GEM
224
225
  zeitwerk (~> 2.6)
225
226
  rainbow (3.1.1)
226
227
  rake (13.2.1)
227
- rdoc (6.7.0)
228
+ rdoc (6.10.0)
228
229
  psych (>= 4.0.0)
229
- regexp_parser (2.9.2)
230
- reline (0.5.10)
230
+ regexp_parser (2.9.3)
231
+ reline (0.6.0)
231
232
  io-console (~> 0.5)
232
- rexml (3.3.9)
233
- rubocop (1.68.0)
233
+ rexml (3.4.0)
234
+ rubocop (1.69.2)
234
235
  json (~> 2.3)
235
236
  language_server-protocol (>= 3.17.0)
236
237
  parallel (~> 1.10)
237
238
  parser (>= 3.3.0.2)
238
239
  rainbow (>= 2.2.2, < 4.0)
239
- regexp_parser (>= 2.4, < 3.0)
240
- rubocop-ast (>= 1.32.2, < 2.0)
240
+ regexp_parser (>= 2.9.3, < 3.0)
241
+ rubocop-ast (>= 1.36.2, < 2.0)
241
242
  ruby-progressbar (~> 1.7)
242
- unicode-display_width (>= 2.4.0, < 3.0)
243
- rubocop-ast (1.34.0)
243
+ unicode-display_width (>= 2.4.0, < 4.0)
244
+ rubocop-ast (1.37.0)
244
245
  parser (>= 3.3.1.0)
245
246
  rubocop-minitest (0.36.0)
246
247
  rubocop (>= 1.61, < 2.0)
247
248
  rubocop-ast (>= 1.31.1, < 2.0)
248
- rubocop-performance (1.22.1)
249
+ rubocop-performance (1.23.0)
249
250
  rubocop (>= 1.48.1, < 2.0)
250
251
  rubocop-ast (>= 1.31.1, < 2.0)
251
252
  rubocop-rails (2.27.0)
@@ -254,11 +255,11 @@ GEM
254
255
  rubocop (>= 1.52.0, < 2.0)
255
256
  rubocop-ast (>= 1.31.1, < 2.0)
256
257
  ruby-progressbar (1.13.0)
257
- sass-embedded (1.80.6-x86_64-darwin)
258
+ sass-embedded (1.83.0-x86_64-darwin)
258
259
  google-protobuf (~> 4.28)
259
- sass-embedded (1.80.6-x86_64-linux-gnu)
260
+ sass-embedded (1.83.0-x86_64-linux-gnu)
260
261
  google-protobuf (~> 4.28)
261
- securerandom (0.3.1)
262
+ securerandom (0.4.1)
262
263
  simple_form (5.3.1)
263
264
  actionpack (>= 5.2)
264
265
  activemodel (>= 5.2)
@@ -268,17 +269,20 @@ GEM
268
269
  simplecov_json_formatter (~> 0.1)
269
270
  simplecov-html (0.13.1)
270
271
  simplecov_json_formatter (0.1.4)
271
- sqlite3 (2.2.0-x86_64-darwin)
272
- sqlite3 (2.2.0-x86_64-linux-gnu)
273
- stringio (3.1.1)
272
+ sqlite3 (2.4.1-x86_64-darwin)
273
+ sqlite3 (2.4.1-x86_64-linux-gnu)
274
+ stringio (3.1.2)
274
275
  temple (0.10.3)
275
276
  thor (1.3.2)
276
277
  tilt (2.4.0)
277
- timeout (0.4.2)
278
+ timeout (0.4.3)
278
279
  tzinfo (2.0.6)
279
280
  concurrent-ruby (~> 1.0)
280
- unicode-display_width (2.6.0)
281
- useragent (0.16.10)
281
+ unicode-display_width (3.1.2)
282
+ unicode-emoji (~> 4.0, >= 4.0.4)
283
+ unicode-emoji (4.0.4)
284
+ uri (1.0.2)
285
+ useragent (0.16.11)
282
286
  websocket-driver (0.7.6)
283
287
  websocket-extensions (>= 0.1.0)
284
288
  websocket-extensions (0.1.5)
@@ -289,6 +293,7 @@ GEM
289
293
  PLATFORMS
290
294
  x86_64-darwin-22
291
295
  x86_64-darwin-23
296
+ x86_64-darwin-24
292
297
  x86_64-linux
293
298
 
294
299
  DEPENDENCIES
@@ -16,10 +16,9 @@
16
16
  cursor: pointer
17
17
  .glyph
18
18
  margin: 0
19
+ input, span
20
+ border-color: $btn-color !important
19
21
 
20
- .table
21
- .action
22
- width: 135px
23
22
  .dropdown_select
24
23
  margin-bottom: 0px !important
25
24
  .progress
@@ -37,3 +36,4 @@
37
36
  strong
38
37
  padding-left: .25rem
39
38
  padding-right: .25rem
39
+
data/lib/ui_bibz/infos.rb CHANGED
@@ -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 = '4.0.0.beta14'
15
+ VERSION = '4.0.0.beta16'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -42,7 +42,7 @@ module UiBibz::Ui::Ux::Tables
42
42
  content_tag :div, html_options do
43
43
  concat content_tag(:span, UiBibz::Ui::Core::Icons::Glyph.new('magnifying-glass').render, class: 'input-group-text')
44
44
  concat tag(:input, type: 'search', value: search_content, name: 'search', class: 'form-control', placeholder: search_placeholder_field)
45
- concat tag(:input, type: 'hidden', name: 'store_id', value: store.id) unless store.id.nil? # if there is more one table in html page
45
+ concat tag(:input, type: 'hidden', name: 'store_id', value: store.id) unless store.id.nil? # if there is more one table in a html page
46
46
  concat tag(:input, type: 'hidden', name: 'link_type', value: 'search')
47
47
  concat content_tag(:span, UiBibz::Ui::Core::Icons::Glyph.new('times-circle').render, class: 'clear-search-btn input-group-text')
48
48
  end
@@ -54,7 +54,7 @@ module UiBibz::Ui::Ux::Tables
54
54
  store.parameters.with_indifferent_access.reject { |k, _| default_parameters?(k) }.each do |k, v|
55
55
  concat tag(:input, type: 'hidden', name: k, value: v)
56
56
  end
57
- concat tag(:input, type: 'hidden', name: 'store_id', value: store.id) unless store.id.nil? # if there is more one table in html page
57
+ concat tag(:input, type: 'hidden', name: 'store_id', value: store.id) unless store.id.nil? # if there is more one table in a html page
58
58
  concat tag(:input, type: 'hidden', name: 'link_type', value: 'search')
59
59
  concat tag(:input, type: 'search', value: search_content, name: 'search', class: 'form-control', placeholder: search_placeholder_field)
60
60
  concat clear_button
@@ -66,7 +66,9 @@ module UiBibz::Ui::Ux::Tables
66
66
  end
67
67
 
68
68
  def clear_button
69
- content_tag :button, UiBibz::Ui::Core::Icons::Glyph.new('times-circle', text: false, label: 'Clear Search').render, type: :button, class: 'btn btn-secondary input-group-btn clear-search-btn'
69
+ # content_tag :button, UiBibz::Ui::Core::Icons::Glyph.new('times-circle', text: false, label: 'Clear Search').render, type: :button, class: 'btn btn-secondary input-group-btn clear-search-btn'
70
+ text = UiBibz::Utils::Internationalization.new('ui_bibz.grid.searchable.clear_search', default: 'Clear Search').translate
71
+ UiBibz::Ui::Core::Forms::Buttons::Button.new(text, { glyph: 'times-circle', text: false, tooltip: true, outline: options[:outline] }, { type: :button, class: 'clear-search-btn input-group-btn' }).render
70
72
  end
71
73
 
72
74
  def component_html_classes
@@ -26,7 +26,7 @@ class TableTest < ActionView::TestCase
26
26
 
27
27
  test 'table search field' do
28
28
  actual = UiBibz::Ui::Ux::Tables::TableSearchField.new({ store: @users }).render
29
- expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fa-solid fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"store_id\" value=\"users\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"btn btn-secondary input-group-btn clear-search-btn\"><i class=\"glyph fa-solid fa-times-circle\"></i> <span class=\"visually-hidden\">Clear Search</span></button></div></form>"
29
+ expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fa-solid fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"store_id\" value=\"users\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"clear-search-btn input-group-btn btn-secondary btn\" data-bs-toggle=\"tooltip\" data-bs-title=\"Clear Search\"><i class=\"glyph fa-solid fa-times-circle\"></i> <span class=\"visually-hidden\">Clear Search</span></button></div></form>"
30
30
 
31
31
  assert_equal expected, actual
32
32
  end
@@ -97,7 +97,7 @@ class TableTest < ActionView::TestCase
97
97
  test 'table searchable' do
98
98
  options = { searchable: true }
99
99
  actual = UiBibz::Ui::Ux::Tables::Searchable.new(@store, options).render
100
- expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fa-solid fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"store_id\" value=\"users\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"btn btn-secondary input-group-btn clear-search-btn\"><i class=\"glyph fa-solid fa-times-circle\"></i> <span class=\"visually-hidden\">Clear Search</span></button></div></form><br class=\"ui-bibz-clear\" /></div>"
100
+ expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fa-solid fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"store_id\" value=\"users\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"clear-search-btn input-group-btn btn-secondary btn\" data-bs-toggle=\"tooltip\" data-bs-title=\"Clear Search\"><i class=\"glyph fa-solid fa-times-circle\"></i> <span class=\"visually-hidden\">Clear Search</span></button></div></form><br class=\"ui-bibz-clear\" /></div>"
101
101
 
102
102
  assert_equal expected, actual
103
103
  end
data/ui_bibz.gemspec CHANGED
@@ -26,10 +26,9 @@ Gem::Specification.new do |s|
26
26
  s.require_paths = %w[lib vendor]
27
27
 
28
28
  # Rails gems
29
- s.add_dependency 'rails', '>= 7.1.0'
30
- # Switch to bootstrap 5.3.3 as soon as possible
31
- s.add_dependency 'bootstrap-propshaft', '~> 5.3.2.2'
29
+ s.add_dependency 'bootstrap', '~> 5.3.3'
32
30
  s.add_dependency 'dartsass-rails'
31
+ s.add_dependency 'rails', '>= 7.1.0'
33
32
  s.add_dependency 'will_paginate'
34
33
  # Don't move factory_bot_rails to Gemfile else it will be loaded in test/dummy
35
34
  s.add_development_dependency 'factory_bot_rails', '~> 4.0' # rubocop:disable Gemspec/DevelopmentDependencies