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.
- checksums.yaml +4 -4
- data/Gemfile.lock +100 -95
- data/app/assets/stylesheets/sass/tables/_table.sass +3 -3
- data/lib/ui_bibz/infos.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +5 -3
- data/test/ui/ux/tables/table_test.rb +2 -2
- data/ui_bibz.gemspec +2 -3
- data/vendor/assets/stylesheets/bootstrap.min.css +6 -0
- data/vendor/assets/stylesheets/fontawesome/all.min.css +9 -0
- data/vendor/assets/stylesheets/fontawesome/brands.css +1600 -0
- data/vendor/assets/stylesheets/fontawesome/fontawesome.css +6215 -0
- data/vendor/assets/stylesheets/fontawesome/regular.css +19 -0
- data/vendor/assets/stylesheets/fontawesome/solid.css +19 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- data/vendor/assets/stylesheets/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- metadata +34 -20
- /data/app/assets/stylesheets/{navigations → sass/navigations}/_nav.sass +0 -0
- /data/app/assets/stylesheets/{navigations → sass/navigations}/_navbar.sass +0 -0
- /data/app/assets/stylesheets/{navigations → sass/navigations}/_progress_bar.sass +0 -0
- /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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a3cd0a14c5ea1f6ff3cdda6ea0f1d8bfb4a292ac7bb7a73c95432ea02ce1976
|
4
|
+
data.tar.gz: e5c5dadd3eb4677741d9e1e0845f7c7c252e09a05445353559e1c271ea769480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
bootstrap
|
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 (
|
14
|
-
actionpack (=
|
15
|
-
activesupport (=
|
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 (
|
20
|
-
actionpack (=
|
21
|
-
activejob (=
|
22
|
-
activerecord (=
|
23
|
-
activestorage (=
|
24
|
-
activesupport (=
|
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 (
|
27
|
-
actionpack (=
|
28
|
-
actionview (=
|
29
|
-
activejob (=
|
30
|
-
activesupport (=
|
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 (
|
34
|
-
actionview (=
|
35
|
-
activesupport (=
|
33
|
+
actionpack (8.0.1)
|
34
|
+
actionview (= 8.0.1)
|
35
|
+
activesupport (= 8.0.1)
|
36
36
|
nokogiri (>= 1.8.5)
|
37
|
-
|
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 (
|
45
|
-
actionpack (=
|
46
|
-
activerecord (=
|
47
|
-
activestorage (=
|
48
|
-
activesupport (=
|
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 (
|
52
|
-
activesupport (=
|
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 (
|
58
|
-
activesupport (=
|
56
|
+
activejob (8.0.1)
|
57
|
+
activesupport (= 8.0.1)
|
59
58
|
globalid (>= 0.3.6)
|
60
|
-
activemodel (
|
61
|
-
activesupport (=
|
62
|
-
activerecord (
|
63
|
-
activemodel (=
|
64
|
-
activesupport (=
|
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 (
|
67
|
-
actionpack (=
|
68
|
-
activejob (=
|
69
|
-
activerecord (=
|
70
|
-
activesupport (=
|
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 (
|
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.
|
89
|
+
benchmark (0.4.0)
|
90
90
|
bigdecimal (3.1.8)
|
91
|
-
bootstrap
|
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.
|
104
|
+
date (3.4.1)
|
105
105
|
docile (1.4.1)
|
106
106
|
drb (2.2.1)
|
107
|
-
erubi (1.13.
|
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.
|
116
|
+
google-protobuf (4.29.2-x86_64-darwin)
|
117
117
|
bigdecimal
|
118
118
|
rake (>= 13)
|
119
|
-
google-protobuf (4.
|
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.
|
139
|
-
irb (1.14.
|
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.
|
142
|
+
json (2.9.1)
|
143
143
|
language_server-protocol (3.17.0.3)
|
144
|
-
logger (1.6.
|
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.
|
156
|
-
net-imap (0.5.
|
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.
|
166
|
+
nokogiri (1.17.2-x86_64-darwin)
|
167
167
|
racc (~> 1.4)
|
168
|
-
nokogiri (1.
|
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.
|
184
|
+
psych (5.2.2)
|
185
|
+
date
|
185
186
|
stringio
|
186
|
-
puma (6.
|
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.
|
195
|
+
rackup (2.2.1)
|
195
196
|
rack (>= 3)
|
196
|
-
rails (
|
197
|
-
actioncable (=
|
198
|
-
actionmailbox (=
|
199
|
-
actionmailer (=
|
200
|
-
actionpack (=
|
201
|
-
actiontext (=
|
202
|
-
actionview (=
|
203
|
-
activejob (=
|
204
|
-
activemodel (=
|
205
|
-
activerecord (=
|
206
|
-
activestorage (=
|
207
|
-
activesupport (=
|
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 (=
|
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.
|
215
|
+
rails-html-sanitizer (1.6.2)
|
215
216
|
loofah (~> 2.21)
|
216
|
-
nokogiri (
|
217
|
-
railties (
|
218
|
-
actionpack (=
|
219
|
-
activesupport (=
|
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.
|
228
|
+
rdoc (6.10.0)
|
228
229
|
psych (>= 4.0.0)
|
229
|
-
regexp_parser (2.9.
|
230
|
-
reline (0.
|
230
|
+
regexp_parser (2.9.3)
|
231
|
+
reline (0.6.0)
|
231
232
|
io-console (~> 0.5)
|
232
|
-
rexml (3.
|
233
|
-
rubocop (1.
|
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.
|
240
|
-
rubocop-ast (>= 1.
|
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, <
|
243
|
-
rubocop-ast (1.
|
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.
|
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.
|
258
|
+
sass-embedded (1.83.0-x86_64-darwin)
|
258
259
|
google-protobuf (~> 4.28)
|
259
|
-
sass-embedded (1.
|
260
|
+
sass-embedded (1.83.0-x86_64-linux-gnu)
|
260
261
|
google-protobuf (~> 4.28)
|
261
|
-
securerandom (0.
|
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.
|
272
|
-
sqlite3 (2.
|
273
|
-
stringio (3.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.
|
278
|
+
timeout (0.4.3)
|
278
279
|
tzinfo (2.0.6)
|
279
280
|
concurrent-ruby (~> 1.0)
|
280
|
-
unicode-display_width (
|
281
|
-
|
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
@@ -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&page=1&per_page=2&search=Name+fr&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
|
29
|
+
expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&page=1&per_page=2&search=Name+fr&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&page=1&per_page=2&search=Name+fr&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
|
100
|
+
expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&page=1&per_page=2&search=Name+fr&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 '
|
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
|