ui_bibz 4.0.0.beta11 → 4.0.0.beta13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/Gemfile.lock +135 -134
- data/config/importmap.rb +1 -1
- data/config/initializers/will_paginate.rb +1 -1
- data/lib/ui_bibz/concerns/models/searchable.rb +5 -2
- data/lib/ui_bibz/infos.rb +2 -2
- data/lib/ui_bibz/ui/base.rb +7 -3
- data/lib/ui_bibz/ui/ux/tables/components/actions.rb +3 -3
- data/lib/ui_bibz/ui/ux/tables/components/store.rb +4 -0
- data/lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb +1 -1
- data/test/dummy/config/initializers/content_security_policy.rb +1 -0
- data/test/dummy/config/initializers/inflections.rb +1 -0
- data/test/dummy/config/initializers/permissions_policy.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 448cd48298164e039121bd045b698cb2a722721e6b1acfcb71f724953d32b0d7
|
4
|
+
data.tar.gz: 33db3f8f730d09cce09309af6f320555f5ef26f4a73d909315c6dd399ecfcd72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e207aeecb07c3bef259be6912519c456d3e21d308230a281bcbb9052733ad8053d2a1e4042aeba548f8e173671435dc8348324ac423d263a171775f7a448c65f
|
7
|
+
data.tar.gz: 2bc8a84a9c6035b4ddafa191872d4e7109bec23ec0201ac56017cd89ff431a45944788e71ef4974293ebc502a1096e1178ce6e1f77d72bee017ea11daabfd06c
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (4.0.0.
|
4
|
+
ui_bibz (4.0.0.beta13)
|
5
5
|
bootstrap-propshaft (~> 5.3.2.2)
|
6
6
|
dartsass-rails
|
7
7
|
rails (>= 7.1.0)
|
@@ -10,103 +10,99 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (7.1.
|
14
|
-
actionpack (= 7.1.
|
15
|
-
activesupport (= 7.1.
|
13
|
+
actioncable (7.2.1.1)
|
14
|
+
actionpack (= 7.2.1.1)
|
15
|
+
activesupport (= 7.2.1.1)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
18
|
zeitwerk (~> 2.6)
|
19
|
-
actionmailbox (7.1.
|
20
|
-
actionpack (= 7.1.
|
21
|
-
activejob (= 7.1.
|
22
|
-
activerecord (= 7.1.
|
23
|
-
activestorage (= 7.1.
|
24
|
-
activesupport (= 7.1.
|
25
|
-
mail (>= 2.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
activejob (= 7.1.3)
|
33
|
-
activesupport (= 7.1.3)
|
34
|
-
mail (~> 2.5, >= 2.5.4)
|
35
|
-
net-imap
|
36
|
-
net-pop
|
37
|
-
net-smtp
|
19
|
+
actionmailbox (7.2.1.1)
|
20
|
+
actionpack (= 7.2.1.1)
|
21
|
+
activejob (= 7.2.1.1)
|
22
|
+
activerecord (= 7.2.1.1)
|
23
|
+
activestorage (= 7.2.1.1)
|
24
|
+
activesupport (= 7.2.1.1)
|
25
|
+
mail (>= 2.8.0)
|
26
|
+
actionmailer (7.2.1.1)
|
27
|
+
actionpack (= 7.2.1.1)
|
28
|
+
actionview (= 7.2.1.1)
|
29
|
+
activejob (= 7.2.1.1)
|
30
|
+
activesupport (= 7.2.1.1)
|
31
|
+
mail (>= 2.8.0)
|
38
32
|
rails-dom-testing (~> 2.2)
|
39
|
-
actionpack (7.1.
|
40
|
-
actionview (= 7.1.
|
41
|
-
activesupport (= 7.1.
|
33
|
+
actionpack (7.2.1.1)
|
34
|
+
actionview (= 7.2.1.1)
|
35
|
+
activesupport (= 7.2.1.1)
|
42
36
|
nokogiri (>= 1.8.5)
|
43
37
|
racc
|
44
|
-
rack (>= 2.2.4)
|
38
|
+
rack (>= 2.2.4, < 3.2)
|
45
39
|
rack-session (>= 1.0.1)
|
46
40
|
rack-test (>= 0.6.3)
|
47
41
|
rails-dom-testing (~> 2.2)
|
48
42
|
rails-html-sanitizer (~> 1.6)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
43
|
+
useragent (~> 0.16)
|
44
|
+
actiontext (7.2.1.1)
|
45
|
+
actionpack (= 7.2.1.1)
|
46
|
+
activerecord (= 7.2.1.1)
|
47
|
+
activestorage (= 7.2.1.1)
|
48
|
+
activesupport (= 7.2.1.1)
|
54
49
|
globalid (>= 0.6.0)
|
55
50
|
nokogiri (>= 1.8.5)
|
56
|
-
actionview (7.1.
|
57
|
-
activesupport (= 7.1.
|
51
|
+
actionview (7.2.1.1)
|
52
|
+
activesupport (= 7.2.1.1)
|
58
53
|
builder (~> 3.1)
|
59
54
|
erubi (~> 1.11)
|
60
55
|
rails-dom-testing (~> 2.2)
|
61
56
|
rails-html-sanitizer (~> 1.6)
|
62
|
-
activejob (7.1.
|
63
|
-
activesupport (= 7.1.
|
57
|
+
activejob (7.2.1.1)
|
58
|
+
activesupport (= 7.2.1.1)
|
64
59
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (7.1.
|
66
|
-
activesupport (= 7.1.
|
67
|
-
activerecord (7.1.
|
68
|
-
activemodel (= 7.1.
|
69
|
-
activesupport (= 7.1.
|
60
|
+
activemodel (7.2.1.1)
|
61
|
+
activesupport (= 7.2.1.1)
|
62
|
+
activerecord (7.2.1.1)
|
63
|
+
activemodel (= 7.2.1.1)
|
64
|
+
activesupport (= 7.2.1.1)
|
70
65
|
timeout (>= 0.4.0)
|
71
|
-
activestorage (7.1.
|
72
|
-
actionpack (= 7.1.
|
73
|
-
activejob (= 7.1.
|
74
|
-
activerecord (= 7.1.
|
75
|
-
activesupport (= 7.1.
|
66
|
+
activestorage (7.2.1.1)
|
67
|
+
actionpack (= 7.2.1.1)
|
68
|
+
activejob (= 7.2.1.1)
|
69
|
+
activerecord (= 7.2.1.1)
|
70
|
+
activesupport (= 7.2.1.1)
|
76
71
|
marcel (~> 1.0)
|
77
|
-
activesupport (7.1.
|
72
|
+
activesupport (7.2.1.1)
|
78
73
|
base64
|
79
74
|
bigdecimal
|
80
|
-
concurrent-ruby (~> 1.0, >= 1.
|
75
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
81
76
|
connection_pool (>= 2.2.5)
|
82
77
|
drb
|
83
78
|
i18n (>= 1.6, < 2)
|
79
|
+
logger (>= 1.4.2)
|
84
80
|
minitest (>= 5.1)
|
85
|
-
|
86
|
-
tzinfo (~> 2.0)
|
81
|
+
securerandom (>= 0.3)
|
82
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
87
83
|
ast (2.4.2)
|
88
|
-
autoprefixer-rails (10.4.
|
84
|
+
autoprefixer-rails (10.4.19.0)
|
89
85
|
execjs (~> 2)
|
90
86
|
awesome_print (1.9.2)
|
91
87
|
base64 (0.2.0)
|
92
|
-
bigdecimal (3.1.
|
88
|
+
bigdecimal (3.1.8)
|
93
89
|
bootstrap-propshaft (5.3.2.2)
|
94
90
|
autoprefixer-rails (>= 9.1.0)
|
95
91
|
popper_js (>= 2.11.8, < 3)
|
96
|
-
builder (3.
|
92
|
+
builder (3.3.0)
|
97
93
|
byebug (11.1.3)
|
98
|
-
childprocess (5.
|
99
|
-
|
94
|
+
childprocess (5.1.0)
|
95
|
+
logger (~> 1.5)
|
96
|
+
concurrent-ruby (1.3.4)
|
100
97
|
connection_pool (2.4.1)
|
101
98
|
crass (1.0.6)
|
102
|
-
dartsass-rails (0.5.
|
99
|
+
dartsass-rails (0.5.1)
|
103
100
|
railties (>= 6.0.0)
|
104
101
|
sass-embedded (~> 1.63)
|
105
102
|
date (3.3.4)
|
106
|
-
docile (1.4.
|
107
|
-
drb (2.2.
|
108
|
-
|
109
|
-
erubi (1.12.0)
|
103
|
+
docile (1.4.1)
|
104
|
+
drb (2.2.1)
|
105
|
+
erubi (1.13.0)
|
110
106
|
execjs (2.9.1)
|
111
107
|
factory_bot (4.11.1)
|
112
108
|
activesupport (>= 3.0.0)
|
@@ -115,7 +111,12 @@ GEM
|
|
115
111
|
railties (>= 3.0.0)
|
116
112
|
globalid (1.2.1)
|
117
113
|
activesupport (>= 6.1)
|
118
|
-
google-protobuf (
|
114
|
+
google-protobuf (4.28.2-x86_64-darwin)
|
115
|
+
bigdecimal
|
116
|
+
rake (>= 13)
|
117
|
+
google-protobuf (4.28.2-x86_64-linux)
|
118
|
+
bigdecimal
|
119
|
+
rake (>= 13)
|
119
120
|
haml (6.3.0)
|
120
121
|
temple (>= 0.8.2)
|
121
122
|
thor
|
@@ -125,19 +126,20 @@ GEM
|
|
125
126
|
activesupport (>= 5.1)
|
126
127
|
haml (>= 4.0.6)
|
127
128
|
railties (>= 5.1)
|
128
|
-
i18n (1.14.
|
129
|
+
i18n (1.14.6)
|
129
130
|
concurrent-ruby (~> 1.0)
|
130
|
-
importmap-rails (2.0.
|
131
|
+
importmap-rails (2.0.3)
|
131
132
|
actionpack (>= 6.0.0)
|
132
133
|
activesupport (>= 6.0.0)
|
133
134
|
railties (>= 6.0.0)
|
134
135
|
iniparse (1.5.0)
|
135
136
|
io-console (0.7.2)
|
136
|
-
irb (1.
|
137
|
-
rdoc
|
137
|
+
irb (1.14.1)
|
138
|
+
rdoc (>= 4.0.0)
|
138
139
|
reline (>= 0.4.2)
|
139
|
-
json (2.7.
|
140
|
+
json (2.7.2)
|
140
141
|
language_server-protocol (3.17.0.3)
|
142
|
+
logger (1.6.1)
|
141
143
|
loofah (2.22.0)
|
142
144
|
crass (~> 1.0.2)
|
143
145
|
nokogiri (>= 1.12.0)
|
@@ -146,44 +148,43 @@ GEM
|
|
146
148
|
net-imap
|
147
149
|
net-pop
|
148
150
|
net-smtp
|
149
|
-
marcel (1.0.
|
151
|
+
marcel (1.0.4)
|
150
152
|
mini_mime (1.1.5)
|
151
|
-
minitest (5.
|
152
|
-
|
153
|
-
net-imap (0.4.10)
|
153
|
+
minitest (5.25.1)
|
154
|
+
net-imap (0.5.0)
|
154
155
|
date
|
155
156
|
net-protocol
|
156
157
|
net-pop (0.1.2)
|
157
158
|
net-protocol
|
158
159
|
net-protocol (0.2.2)
|
159
160
|
timeout
|
160
|
-
net-smtp (0.
|
161
|
+
net-smtp (0.5.0)
|
161
162
|
net-protocol
|
162
|
-
nio4r (2.7.
|
163
|
-
nokogiri (1.16.
|
163
|
+
nio4r (2.7.3)
|
164
|
+
nokogiri (1.16.7-x86_64-darwin)
|
164
165
|
racc (~> 1.4)
|
165
|
-
nokogiri (1.16.
|
166
|
+
nokogiri (1.16.7-x86_64-linux)
|
166
167
|
racc (~> 1.4)
|
167
|
-
overcommit (0.
|
168
|
+
overcommit (0.64.0)
|
168
169
|
childprocess (>= 0.6.3, < 6)
|
169
170
|
iniparse (~> 1.4)
|
170
171
|
rexml (~> 3.2)
|
171
|
-
parallel (1.
|
172
|
-
parser (3.3.0
|
172
|
+
parallel (1.26.3)
|
173
|
+
parser (3.3.5.0)
|
173
174
|
ast (~> 2.4.1)
|
174
175
|
racc
|
175
176
|
popper_js (2.11.8)
|
176
|
-
propshaft (
|
177
|
+
propshaft (1.1.0)
|
177
178
|
actionpack (>= 7.0.0)
|
178
179
|
activesupport (>= 7.0.0)
|
179
180
|
rack
|
180
181
|
railties (>= 7.0.0)
|
181
182
|
psych (5.1.2)
|
182
183
|
stringio
|
183
|
-
puma (6.4.
|
184
|
+
puma (6.4.3)
|
184
185
|
nio4r (~> 2.0)
|
185
|
-
racc (1.
|
186
|
-
rack (3.
|
186
|
+
racc (1.8.1)
|
187
|
+
rack (3.1.8)
|
187
188
|
rack-session (2.0.0)
|
188
189
|
rack (>= 3.0.0)
|
189
190
|
rack-test (2.1.0)
|
@@ -191,20 +192,20 @@ GEM
|
|
191
192
|
rackup (2.1.0)
|
192
193
|
rack (>= 3)
|
193
194
|
webrick (~> 1.8)
|
194
|
-
rails (7.1.
|
195
|
-
actioncable (= 7.1.
|
196
|
-
actionmailbox (= 7.1.
|
197
|
-
actionmailer (= 7.1.
|
198
|
-
actionpack (= 7.1.
|
199
|
-
actiontext (= 7.1.
|
200
|
-
actionview (= 7.1.
|
201
|
-
activejob (= 7.1.
|
202
|
-
activemodel (= 7.1.
|
203
|
-
activerecord (= 7.1.
|
204
|
-
activestorage (= 7.1.
|
205
|
-
activesupport (= 7.1.
|
195
|
+
rails (7.2.1.1)
|
196
|
+
actioncable (= 7.2.1.1)
|
197
|
+
actionmailbox (= 7.2.1.1)
|
198
|
+
actionmailer (= 7.2.1.1)
|
199
|
+
actionpack (= 7.2.1.1)
|
200
|
+
actiontext (= 7.2.1.1)
|
201
|
+
actionview (= 7.2.1.1)
|
202
|
+
activejob (= 7.2.1.1)
|
203
|
+
activemodel (= 7.2.1.1)
|
204
|
+
activerecord (= 7.2.1.1)
|
205
|
+
activestorage (= 7.2.1.1)
|
206
|
+
activesupport (= 7.2.1.1)
|
206
207
|
bundler (>= 1.15.0)
|
207
|
-
railties (= 7.1.
|
208
|
+
railties (= 7.2.1.1)
|
208
209
|
rails-dom-testing (2.2.0)
|
209
210
|
activesupport (>= 5.0.0)
|
210
211
|
minitest
|
@@ -212,78 +213,78 @@ GEM
|
|
212
213
|
rails-html-sanitizer (1.6.0)
|
213
214
|
loofah (~> 2.21)
|
214
215
|
nokogiri (~> 1.14)
|
215
|
-
railties (7.1.
|
216
|
-
actionpack (= 7.1.
|
217
|
-
activesupport (= 7.1.
|
218
|
-
irb
|
216
|
+
railties (7.2.1.1)
|
217
|
+
actionpack (= 7.2.1.1)
|
218
|
+
activesupport (= 7.2.1.1)
|
219
|
+
irb (~> 1.13)
|
219
220
|
rackup (>= 1.0.0)
|
220
221
|
rake (>= 12.2)
|
221
222
|
thor (~> 1.0, >= 1.2.2)
|
222
223
|
zeitwerk (~> 2.6)
|
223
224
|
rainbow (3.1.1)
|
224
|
-
rake (13.1
|
225
|
-
rdoc (6.
|
225
|
+
rake (13.2.1)
|
226
|
+
rdoc (6.7.0)
|
226
227
|
psych (>= 4.0.0)
|
227
|
-
regexp_parser (2.9.
|
228
|
-
reline (0.
|
228
|
+
regexp_parser (2.9.2)
|
229
|
+
reline (0.5.10)
|
229
230
|
io-console (~> 0.5)
|
230
|
-
rexml (3.
|
231
|
-
rubocop (1.
|
231
|
+
rexml (3.3.8)
|
232
|
+
rubocop (1.67.0)
|
232
233
|
json (~> 2.3)
|
233
234
|
language_server-protocol (>= 3.17.0)
|
234
235
|
parallel (~> 1.10)
|
235
236
|
parser (>= 3.3.0.2)
|
236
237
|
rainbow (>= 2.2.2, < 4.0)
|
237
|
-
regexp_parser (>=
|
238
|
-
|
239
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
238
|
+
regexp_parser (>= 2.4, < 3.0)
|
239
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
240
240
|
ruby-progressbar (~> 1.7)
|
241
241
|
unicode-display_width (>= 2.4.0, < 3.0)
|
242
|
-
rubocop-ast (1.
|
243
|
-
parser (>= 3.
|
244
|
-
rubocop-minitest (0.
|
245
|
-
rubocop (>= 1.
|
246
|
-
rubocop-ast (>= 1.
|
247
|
-
rubocop-performance (1.
|
242
|
+
rubocop-ast (1.32.3)
|
243
|
+
parser (>= 3.3.1.0)
|
244
|
+
rubocop-minitest (0.36.0)
|
245
|
+
rubocop (>= 1.61, < 2.0)
|
246
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
247
|
+
rubocop-performance (1.22.1)
|
248
248
|
rubocop (>= 1.48.1, < 2.0)
|
249
|
-
rubocop-ast (>= 1.
|
250
|
-
rubocop-rails (2.
|
249
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
250
|
+
rubocop-rails (2.26.2)
|
251
251
|
activesupport (>= 4.2.0)
|
252
252
|
rack (>= 1.1)
|
253
|
-
rubocop (>= 1.
|
254
|
-
rubocop-ast (>= 1.
|
253
|
+
rubocop (>= 1.52.0, < 2.0)
|
254
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
255
255
|
ruby-progressbar (1.13.0)
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
simple_form (5.3.
|
256
|
+
sass-embedded (1.80.3-x86_64-darwin)
|
257
|
+
google-protobuf (~> 4.28)
|
258
|
+
sass-embedded (1.80.3-x86_64-linux-gnu)
|
259
|
+
google-protobuf (~> 4.28)
|
260
|
+
securerandom (0.3.1)
|
261
|
+
simple_form (5.3.1)
|
262
262
|
actionpack (>= 5.2)
|
263
263
|
activemodel (>= 5.2)
|
264
264
|
simplecov (0.22.0)
|
265
265
|
docile (~> 1.1)
|
266
266
|
simplecov-html (~> 0.11)
|
267
267
|
simplecov_json_formatter (~> 0.1)
|
268
|
-
simplecov-html (0.
|
268
|
+
simplecov-html (0.13.1)
|
269
269
|
simplecov_json_formatter (0.1.4)
|
270
|
-
sqlite3 (1.
|
271
|
-
sqlite3 (1.
|
272
|
-
stringio (3.1.
|
270
|
+
sqlite3 (2.1.0-x86_64-darwin)
|
271
|
+
sqlite3 (2.1.0-x86_64-linux-gnu)
|
272
|
+
stringio (3.1.1)
|
273
273
|
temple (0.10.3)
|
274
|
-
thor (1.3.
|
275
|
-
tilt (2.
|
274
|
+
thor (1.3.2)
|
275
|
+
tilt (2.4.0)
|
276
276
|
timeout (0.4.1)
|
277
277
|
tzinfo (2.0.6)
|
278
278
|
concurrent-ruby (~> 1.0)
|
279
|
-
unicode-display_width (2.
|
280
|
-
|
279
|
+
unicode-display_width (2.6.0)
|
280
|
+
useragent (0.16.10)
|
281
|
+
webrick (1.8.2)
|
281
282
|
websocket-driver (0.7.6)
|
282
283
|
websocket-extensions (>= 0.1.0)
|
283
284
|
websocket-extensions (0.1.5)
|
284
|
-
will_paginate (4.0.
|
285
|
-
yard (0.9.
|
286
|
-
zeitwerk (2.
|
285
|
+
will_paginate (4.0.1)
|
286
|
+
yard (0.9.37)
|
287
|
+
zeitwerk (2.7.1)
|
287
288
|
|
288
289
|
PLATFORMS
|
289
290
|
x86_64-darwin-22
|
data/config/importmap.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
pin '@popperjs/core', to: 'https://unpkg.com/@popperjs/core@2.11.2/dist/esm/index.js', preload: true # use unpkg.com as ga.jspm.io contains a broken popper package
|
4
|
-
pin 'bootstrap', to: 'https://ga.jspm.io/npm:bootstrap@5.3.
|
4
|
+
pin 'bootstrap', to: 'https://ga.jspm.io/npm:bootstrap@5.3.3/dist/js/bootstrap.esm.js', preload: true
|
5
5
|
pin 'jquery', to: 'jquery-3.7.0.min.js', preload: true
|
6
6
|
pin 'bootstrap-multiselect', to: 'bootstrap-multiselect.min.js', preload: true
|
7
7
|
pin 'bootstrap-switch', to: 'bootstrap-switch.min.js', preload: true
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'ostruct'
|
4
|
+
|
3
5
|
module UiBibz::Concerns::Models::Searchable
|
4
6
|
extend ActiveSupport::Concern
|
5
7
|
|
@@ -18,7 +20,7 @@ module UiBibz::Concerns::Models::Searchable
|
|
18
20
|
{
|
19
21
|
controller: @params[:controller],
|
20
22
|
actions_controller: @arguments[:actions_controller] || @params[:controller],
|
21
|
-
param_id: @params[:id],
|
23
|
+
param_id: @params[@arguments[:id_key] || :id],
|
22
24
|
params: @params,
|
23
25
|
direction: @tmp_params[:direction],
|
24
26
|
search: @tmp_params[:search],
|
@@ -28,7 +30,8 @@ module UiBibz::Concerns::Models::Searchable
|
|
28
30
|
id: store_id,
|
29
31
|
records: search_sort_paginate,
|
30
32
|
searchable_attributes: @searchable_attributes,
|
31
|
-
model: create_model
|
33
|
+
model: create_model,
|
34
|
+
id_key: @arguments[:id_key] || :id
|
32
35
|
}
|
33
36
|
end
|
34
37
|
|
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.3.
|
6
|
+
BOOTSTRAP_VERSION = '5.3.3'
|
7
7
|
DESCRIPTION = "A Rails Interface Framework using Bootstrap #{BOOTSTRAP_VERSION}.".freeze
|
8
8
|
SUMMARY = "Ui Bibz is an Ui Framework that allows you to build an interface very quickly and simply using Bootstrap #{BOOTSTRAP_VERSION}.".freeze
|
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 = '4.0.0.
|
15
|
+
VERSION = '4.0.0.beta13'
|
16
16
|
AUTHORS = ['Thooams'].freeze
|
17
17
|
end
|
data/lib/ui_bibz/ui/base.rb
CHANGED
@@ -17,11 +17,15 @@ module UiBibz::Ui
|
|
17
17
|
|
18
18
|
# Add "id" in url to match with current record
|
19
19
|
def inject_url(url, record)
|
20
|
-
|
20
|
+
if defined?(record.uuid)
|
21
|
+
url.gsub(%r{(/uuid/?)}, "/#{record.uuid}/")
|
22
|
+
else
|
23
|
+
url.gsub(%r{(/id/?)}, "/#{record.id}/")
|
24
|
+
end
|
21
25
|
end
|
22
26
|
|
23
|
-
def generate_id(name =
|
24
|
-
"#{name
|
27
|
+
def generate_id(name = 'id')
|
28
|
+
"#{name}-#{Random.rand(99_999)}"
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
@@ -51,9 +51,9 @@ module UiBibz::Ui::Ux::Tables
|
|
51
51
|
|
52
52
|
def defaults_actions
|
53
53
|
[
|
54
|
-
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(show_name, url: { controller: @store.actions_controller, action: 'show'
|
55
|
-
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(edit_name, url: { controller: @store.actions_controller, action: 'edit'
|
56
|
-
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(delete_name, { glyph: 'trash', url: { controller: @store.actions_controller, action: 'destroy'
|
54
|
+
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(show_name, url: { controller: @store.actions_controller, action: 'show' }.merge({ @store.id_key => @store.id_key }), glyph: 'eye').render,
|
55
|
+
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(edit_name, url: { controller: @store.actions_controller, action: 'edit' }.merge({ @store.id_key => @store.id_key }), glyph: 'edit').render,
|
56
|
+
UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(delete_name, { glyph: 'trash', url: { controller: @store.actions_controller, action: 'destroy' }.merge({ @store.id_key => @store.id_key }), link_html_options: { data: { confirm: 'Are you sure?', method: :delete } } }).render
|
57
57
|
]
|
58
58
|
end
|
59
59
|
|
@@ -50,7 +50,7 @@ module UiBibz::Ui::Ux::Tables
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def url_parameters
|
53
|
-
{ controller: store.controller, action: store.action
|
53
|
+
{ controller: store.controller, action: store.action }.merge({ store.id_key => store.param_id })
|
54
54
|
end
|
55
55
|
|
56
56
|
def per_page_html
|
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: 4.0.0.
|
4
|
+
version: 4.0.0.beta13
|
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: 2024-
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '4.0'
|
83
|
-
description: A Rails Interface Framework using Bootstrap 5.3.
|
83
|
+
description: A Rails Interface Framework using Bootstrap 5.3.3.
|
84
84
|
email: thomas@hummel.link
|
85
85
|
executables:
|
86
86
|
- test
|
@@ -571,5 +571,5 @@ rubygems_version: 3.5.3
|
|
571
571
|
signing_key:
|
572
572
|
specification_version: 4
|
573
573
|
summary: Ui Bibz is an Ui Framework that allows you to build an interface very quickly
|
574
|
-
and simply using Bootstrap 5.3.
|
574
|
+
and simply using Bootstrap 5.3.3.
|
575
575
|
test_files: []
|