ui_bibz 4.0.0.beta12 → 4.0.0.beta14

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +128 -130
  3. data/app/assets/stylesheets/ui_bibz.sass +1 -0
  4. data/config/initializers/will_paginate.rb +1 -1
  5. data/lib/ui_bibz/concerns/models/searchable.rb +5 -2
  6. data/lib/ui_bibz/infos.rb +1 -1
  7. data/lib/ui_bibz/ui/base.rb +7 -3
  8. data/lib/ui_bibz/ui/ux/tables/components/actions.rb +3 -3
  9. data/lib/ui_bibz/ui/ux/tables/components/store.rb +4 -0
  10. data/lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb +1 -1
  11. data/vendor/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
  12. data/vendor/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
  13. data/vendor/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
  14. data/vendor/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
  15. data/vendor/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
  16. data/vendor/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
  17. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
  18. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
  19. data/vendor/assets/javascripts/fontawesome/all.js +3246 -3236
  20. data/vendor/assets/javascripts/fontawesome/all.min.js +2 -2
  21. data/vendor/assets/javascripts/fontawesome/brands.js +217 -208
  22. data/vendor/assets/javascripts/fontawesome/brands.min.js +2 -2
  23. data/vendor/assets/javascripts/fontawesome/conflict-detection.js +327 -347
  24. data/vendor/assets/javascripts/fontawesome/conflict-detection.min.js +2 -2
  25. data/vendor/assets/javascripts/fontawesome/fontawesome.js +1291 -1307
  26. data/vendor/assets/javascripts/fontawesome/fontawesome.min.js +2 -2
  27. data/vendor/assets/javascripts/fontawesome/regular.js +338 -331
  28. data/vendor/assets/javascripts/fontawesome/regular.min.js +2 -2
  29. data/vendor/assets/javascripts/fontawesome/solid.js +1403 -1393
  30. data/vendor/assets/javascripts/fontawesome/solid.min.js +2 -2
  31. data/vendor/assets/javascripts/fontawesome/v4-shims.js +206 -178
  32. data/vendor/assets/javascripts/fontawesome/v4-shims.min.js +2 -2
  33. data/vendor/assets/stylesheets/fontawesome/_core.scss +6 -6
  34. data/vendor/assets/stylesheets/fontawesome/_list.scss +1 -1
  35. data/vendor/assets/stylesheets/fontawesome/_variables.scss +10 -0
  36. data/vendor/assets/stylesheets/fontawesome/brands.scss +1 -1
  37. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +14 -14
  38. data/vendor/assets/stylesheets/fontawesome/regular.scss +2 -1
  39. data/vendor/assets/stylesheets/fontawesome/solid.scss +2 -1
  40. data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +1 -1
  41. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 211753863eab6ab2e1f723e09340b6c1904586c369f07f8b60bce0438d097613
4
- data.tar.gz: 7ff5b27f3ae1df57d57d80e64201cad70d23f734ca4ac7931ab147a3c6f7eede
3
+ metadata.gz: accfe5e81a517a5bdb0bab43530ea4d9d6c80d5b75670f9451a7cfc567015998
4
+ data.tar.gz: 8e557d979fede0a2da459088e9e433e5977cd8504f114b7cb4b38449db7cfeec
5
5
  SHA512:
6
- metadata.gz: bd43ac79c272c13064d03b94601c80126356c20c1f864387efb71204aee5aaaaf1fc7fc385274926aa7412ac98b28bf75ee63d4d6658014b61244639c9a40c76
7
- data.tar.gz: 85ee357f09385cf03b4892b5085b770626c70e423decafd259d08c6b5a183ba81e46d0e718555ebbe5330dc3f1f32c1d448a416b111b9dafe4334fc9a058f23f
6
+ metadata.gz: 26ee695f4be007519a334c72f8dd76424f9dfd4dc799a1c8c7cf93041eaf3a88abd94707f30d7297a1a0a9ec02fb5cba641a4c6269b89f2e1cba81042b8c4207
7
+ data.tar.gz: 48552e58d44501a3a3ca5fdfbfa42dde862f0016601b9c34be5cad5287e9644fedd155d82e2770b4b33ff97df477bee8e41ccba84eb136869350b64620e4e22b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (4.0.0.beta12)
4
+ ui_bibz (4.0.0.beta14)
5
5
  bootstrap-propshaft (~> 5.3.2.2)
6
6
  dartsass-rails
7
7
  rails (>= 7.1.0)
@@ -10,103 +10,102 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.1.3.3)
14
- actionpack (= 7.1.3.3)
15
- activesupport (= 7.1.3.3)
13
+ actioncable (7.2.2)
14
+ actionpack (= 7.2.2)
15
+ activesupport (= 7.2.2)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
18
  zeitwerk (~> 2.6)
19
- actionmailbox (7.1.3.3)
20
- actionpack (= 7.1.3.3)
21
- activejob (= 7.1.3.3)
22
- activerecord (= 7.1.3.3)
23
- activestorage (= 7.1.3.3)
24
- activesupport (= 7.1.3.3)
25
- mail (>= 2.7.1)
26
- net-imap
27
- net-pop
28
- net-smtp
29
- actionmailer (7.1.3.3)
30
- actionpack (= 7.1.3.3)
31
- actionview (= 7.1.3.3)
32
- activejob (= 7.1.3.3)
33
- activesupport (= 7.1.3.3)
34
- mail (~> 2.5, >= 2.5.4)
35
- net-imap
36
- net-pop
37
- net-smtp
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)
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)
31
+ mail (>= 2.8.0)
38
32
  rails-dom-testing (~> 2.2)
39
- actionpack (7.1.3.3)
40
- actionview (= 7.1.3.3)
41
- activesupport (= 7.1.3.3)
33
+ actionpack (7.2.2)
34
+ actionview (= 7.2.2)
35
+ activesupport (= 7.2.2)
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
- actiontext (7.1.3.3)
50
- actionpack (= 7.1.3.3)
51
- activerecord (= 7.1.3.3)
52
- activestorage (= 7.1.3.3)
53
- activesupport (= 7.1.3.3)
43
+ 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)
54
49
  globalid (>= 0.6.0)
55
50
  nokogiri (>= 1.8.5)
56
- actionview (7.1.3.3)
57
- activesupport (= 7.1.3.3)
51
+ actionview (7.2.2)
52
+ activesupport (= 7.2.2)
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.3.3)
63
- activesupport (= 7.1.3.3)
57
+ activejob (7.2.2)
58
+ activesupport (= 7.2.2)
64
59
  globalid (>= 0.3.6)
65
- activemodel (7.1.3.3)
66
- activesupport (= 7.1.3.3)
67
- activerecord (7.1.3.3)
68
- activemodel (= 7.1.3.3)
69
- activesupport (= 7.1.3.3)
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)
70
65
  timeout (>= 0.4.0)
71
- activestorage (7.1.3.3)
72
- actionpack (= 7.1.3.3)
73
- activejob (= 7.1.3.3)
74
- activerecord (= 7.1.3.3)
75
- activesupport (= 7.1.3.3)
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)
76
71
  marcel (~> 1.0)
77
- activesupport (7.1.3.3)
72
+ activesupport (7.2.2)
78
73
  base64
74
+ benchmark (>= 0.3)
79
75
  bigdecimal
80
- concurrent-ruby (~> 1.0, >= 1.0.2)
76
+ concurrent-ruby (~> 1.0, >= 1.3.1)
81
77
  connection_pool (>= 2.2.5)
82
78
  drb
83
79
  i18n (>= 1.6, < 2)
80
+ logger (>= 1.4.2)
84
81
  minitest (>= 5.1)
85
- mutex_m
86
- tzinfo (~> 2.0)
82
+ securerandom (>= 0.3)
83
+ tzinfo (~> 2.0, >= 2.0.5)
87
84
  ast (2.4.2)
88
- autoprefixer-rails (10.4.16.0)
85
+ autoprefixer-rails (10.4.19.0)
89
86
  execjs (~> 2)
90
87
  awesome_print (1.9.2)
91
88
  base64 (0.2.0)
89
+ benchmark (0.3.0)
92
90
  bigdecimal (3.1.8)
93
91
  bootstrap-propshaft (5.3.2.2)
94
92
  autoprefixer-rails (>= 9.1.0)
95
93
  popper_js (>= 2.11.8, < 3)
96
- builder (3.2.4)
94
+ builder (3.3.0)
97
95
  byebug (11.1.3)
98
- childprocess (5.0.0)
99
- concurrent-ruby (1.2.3)
96
+ childprocess (5.1.0)
97
+ logger (~> 1.5)
98
+ concurrent-ruby (1.3.4)
100
99
  connection_pool (2.4.1)
101
100
  crass (1.0.6)
102
- dartsass-rails (0.5.0)
101
+ dartsass-rails (0.5.1)
103
102
  railties (>= 6.0.0)
104
103
  sass-embedded (~> 1.63)
105
- date (3.3.4)
106
- docile (1.4.0)
104
+ date (3.4.0)
105
+ docile (1.4.1)
107
106
  drb (2.2.1)
108
- erubi (1.12.0)
109
- execjs (2.9.1)
107
+ erubi (1.13.0)
108
+ execjs (2.10.0)
110
109
  factory_bot (4.11.1)
111
110
  activesupport (>= 3.0.0)
112
111
  factory_bot_rails (4.11.1)
@@ -114,9 +113,11 @@ GEM
114
113
  railties (>= 3.0.0)
115
114
  globalid (1.2.1)
116
115
  activesupport (>= 6.1)
117
- google-protobuf (4.26.1-x86_64-darwin)
116
+ google-protobuf (4.28.3-x86_64-darwin)
117
+ bigdecimal
118
118
  rake (>= 13)
119
- google-protobuf (4.26.1-x86_64-linux)
119
+ google-protobuf (4.28.3-x86_64-linux)
120
+ bigdecimal
120
121
  rake (>= 13)
121
122
  haml (6.3.0)
122
123
  temple (>= 0.8.2)
@@ -127,20 +128,21 @@ GEM
127
128
  activesupport (>= 5.1)
128
129
  haml (>= 4.0.6)
129
130
  railties (>= 5.1)
130
- i18n (1.14.5)
131
+ i18n (1.14.6)
131
132
  concurrent-ruby (~> 1.0)
132
- importmap-rails (2.0.1)
133
+ importmap-rails (2.0.3)
133
134
  actionpack (>= 6.0.0)
134
135
  activesupport (>= 6.0.0)
135
136
  railties (>= 6.0.0)
136
137
  iniparse (1.5.0)
137
138
  io-console (0.7.2)
138
- irb (1.13.1)
139
+ irb (1.14.1)
139
140
  rdoc (>= 4.0.0)
140
141
  reline (>= 0.4.2)
141
- json (2.7.2)
142
+ json (2.8.1)
142
143
  language_server-protocol (3.17.0.3)
143
- loofah (2.22.0)
144
+ logger (1.6.1)
145
+ loofah (2.23.1)
144
146
  crass (~> 1.0.2)
145
147
  nokogiri (>= 1.12.0)
146
148
  mail (2.8.1)
@@ -150,9 +152,8 @@ GEM
150
152
  net-smtp
151
153
  marcel (1.0.4)
152
154
  mini_mime (1.1.5)
153
- minitest (5.23.0)
154
- mutex_m (0.2.0)
155
- net-imap (0.4.11)
155
+ minitest (5.25.1)
156
+ net-imap (0.5.0)
156
157
  date
157
158
  net-protocol
158
159
  net-pop (0.1.2)
@@ -161,52 +162,51 @@ GEM
161
162
  timeout
162
163
  net-smtp (0.5.0)
163
164
  net-protocol
164
- nio4r (2.7.3)
165
- nokogiri (1.16.5-x86_64-darwin)
165
+ nio4r (2.7.4)
166
+ nokogiri (1.16.7-x86_64-darwin)
166
167
  racc (~> 1.4)
167
- nokogiri (1.16.5-x86_64-linux)
168
+ nokogiri (1.16.7-x86_64-linux)
168
169
  racc (~> 1.4)
169
- overcommit (0.63.0)
170
+ overcommit (0.64.1)
170
171
  childprocess (>= 0.6.3, < 6)
171
172
  iniparse (~> 1.4)
172
- rexml (~> 3.2)
173
- parallel (1.24.0)
174
- parser (3.3.1.0)
173
+ rexml (>= 3.3.9)
174
+ parallel (1.26.3)
175
+ parser (3.3.6.0)
175
176
  ast (~> 2.4.1)
176
177
  racc
177
178
  popper_js (2.11.8)
178
- propshaft (0.9.0)
179
+ propshaft (1.1.0)
179
180
  actionpack (>= 7.0.0)
180
181
  activesupport (>= 7.0.0)
181
182
  rack
182
183
  railties (>= 7.0.0)
183
184
  psych (5.1.2)
184
185
  stringio
185
- puma (6.4.2)
186
+ puma (6.4.3)
186
187
  nio4r (~> 2.0)
187
- racc (1.8.0)
188
- rack (3.0.11)
188
+ racc (1.8.1)
189
+ rack (3.1.8)
189
190
  rack-session (2.0.0)
190
191
  rack (>= 3.0.0)
191
192
  rack-test (2.1.0)
192
193
  rack (>= 1.3)
193
- rackup (2.1.0)
194
+ rackup (2.2.0)
194
195
  rack (>= 3)
195
- webrick (~> 1.8)
196
- rails (7.1.3.3)
197
- actioncable (= 7.1.3.3)
198
- actionmailbox (= 7.1.3.3)
199
- actionmailer (= 7.1.3.3)
200
- actionpack (= 7.1.3.3)
201
- actiontext (= 7.1.3.3)
202
- actionview (= 7.1.3.3)
203
- activejob (= 7.1.3.3)
204
- activemodel (= 7.1.3.3)
205
- activerecord (= 7.1.3.3)
206
- activestorage (= 7.1.3.3)
207
- activesupport (= 7.1.3.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)
208
208
  bundler (>= 1.15.0)
209
- railties (= 7.1.3.3)
209
+ railties (= 7.2.2)
210
210
  rails-dom-testing (2.2.0)
211
211
  activesupport (>= 5.0.0)
212
212
  minitest
@@ -214,79 +214,77 @@ GEM
214
214
  rails-html-sanitizer (1.6.0)
215
215
  loofah (~> 2.21)
216
216
  nokogiri (~> 1.14)
217
- railties (7.1.3.3)
218
- actionpack (= 7.1.3.3)
219
- activesupport (= 7.1.3.3)
220
- irb
217
+ railties (7.2.2)
218
+ actionpack (= 7.2.2)
219
+ activesupport (= 7.2.2)
220
+ irb (~> 1.13)
221
221
  rackup (>= 1.0.0)
222
222
  rake (>= 12.2)
223
223
  thor (~> 1.0, >= 1.2.2)
224
224
  zeitwerk (~> 2.6)
225
225
  rainbow (3.1.1)
226
226
  rake (13.2.1)
227
- rdoc (6.6.3.1)
227
+ rdoc (6.7.0)
228
228
  psych (>= 4.0.0)
229
229
  regexp_parser (2.9.2)
230
- reline (0.5.7)
230
+ reline (0.5.10)
231
231
  io-console (~> 0.5)
232
- rexml (3.2.8)
233
- strscan (>= 3.0.9)
234
- rubocop (1.63.5)
232
+ rexml (3.3.9)
233
+ rubocop (1.68.0)
235
234
  json (~> 2.3)
236
235
  language_server-protocol (>= 3.17.0)
237
236
  parallel (~> 1.10)
238
237
  parser (>= 3.3.0.2)
239
238
  rainbow (>= 2.2.2, < 4.0)
240
- regexp_parser (>= 1.8, < 3.0)
241
- rexml (>= 3.2.5, < 4.0)
242
- rubocop-ast (>= 1.31.1, < 2.0)
239
+ regexp_parser (>= 2.4, < 3.0)
240
+ rubocop-ast (>= 1.32.2, < 2.0)
243
241
  ruby-progressbar (~> 1.7)
244
242
  unicode-display_width (>= 2.4.0, < 3.0)
245
- rubocop-ast (1.31.3)
243
+ rubocop-ast (1.34.0)
246
244
  parser (>= 3.3.1.0)
247
- rubocop-minitest (0.35.0)
245
+ rubocop-minitest (0.36.0)
248
246
  rubocop (>= 1.61, < 2.0)
249
247
  rubocop-ast (>= 1.31.1, < 2.0)
250
- rubocop-performance (1.21.0)
248
+ rubocop-performance (1.22.1)
251
249
  rubocop (>= 1.48.1, < 2.0)
252
250
  rubocop-ast (>= 1.31.1, < 2.0)
253
- rubocop-rails (2.25.0)
251
+ rubocop-rails (2.27.0)
254
252
  activesupport (>= 4.2.0)
255
253
  rack (>= 1.1)
256
- rubocop (>= 1.33.0, < 2.0)
254
+ rubocop (>= 1.52.0, < 2.0)
257
255
  rubocop-ast (>= 1.31.1, < 2.0)
258
256
  ruby-progressbar (1.13.0)
259
- sass-embedded (1.77.2-x86_64-darwin)
260
- google-protobuf (>= 3.25, < 5.0)
261
- sass-embedded (1.77.2-x86_64-linux-gnu)
262
- google-protobuf (>= 3.25, < 5.0)
263
- simple_form (5.3.0)
257
+ sass-embedded (1.80.6-x86_64-darwin)
258
+ google-protobuf (~> 4.28)
259
+ sass-embedded (1.80.6-x86_64-linux-gnu)
260
+ google-protobuf (~> 4.28)
261
+ securerandom (0.3.1)
262
+ simple_form (5.3.1)
264
263
  actionpack (>= 5.2)
265
264
  activemodel (>= 5.2)
266
265
  simplecov (0.22.0)
267
266
  docile (~> 1.1)
268
267
  simplecov-html (~> 0.11)
269
268
  simplecov_json_formatter (~> 0.1)
270
- simplecov-html (0.12.3)
269
+ simplecov-html (0.13.1)
271
270
  simplecov_json_formatter (0.1.4)
272
- sqlite3 (2.0.1-x86_64-darwin)
273
- sqlite3 (2.0.1-x86_64-linux-gnu)
274
- stringio (3.1.0)
275
- strscan (3.1.0)
271
+ sqlite3 (2.2.0-x86_64-darwin)
272
+ sqlite3 (2.2.0-x86_64-linux-gnu)
273
+ stringio (3.1.1)
276
274
  temple (0.10.3)
277
- thor (1.3.1)
278
- tilt (2.3.0)
279
- timeout (0.4.1)
275
+ thor (1.3.2)
276
+ tilt (2.4.0)
277
+ timeout (0.4.2)
280
278
  tzinfo (2.0.6)
281
279
  concurrent-ruby (~> 1.0)
282
- unicode-display_width (2.5.0)
283
- webrick (1.8.1)
280
+ unicode-display_width (2.6.0)
281
+ useragent (0.16.10)
284
282
  websocket-driver (0.7.6)
285
283
  websocket-extensions (>= 0.1.0)
286
284
  websocket-extensions (0.1.5)
287
- will_paginate (4.0.0)
288
- yard (0.9.36)
289
- zeitwerk (2.6.14)
285
+ will_paginate (4.0.1)
286
+ yard (0.9.37)
287
+ zeitwerk (2.7.1)
290
288
 
291
289
  PLATFORMS
292
290
  x86_64-darwin-22
@@ -3,6 +3,7 @@
3
3
  $fa-font-path: 'fontawesome'
4
4
  @import 'fontawesome/fontawesome'
5
5
  @import 'fontawesome/solid'
6
+ @import 'fontawesome/regular'
6
7
  @import 'fontawesome/brands'
7
8
  @import 'multi-select'
8
9
  @import 'bootstrap-multiselect'
@@ -17,7 +17,7 @@ module WillPaginate
17
17
  options[:next_label] = '&raquo;'
18
18
  options[:inner_window] = 2
19
19
 
20
- super(collection, options)
20
+ super
21
21
  end
22
22
 
23
23
  class BootstrapLinkRenderer < LinkRenderer
@@ -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
@@ -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.beta12'
15
+ VERSION = '4.0.0.beta14'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -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
- url.gsub(%r{(/id/?)}, "/#{record.id}/")
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 = nil)
24
- "#{name || 'id'}-#{Random.rand(99_999)}"
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', id: :id }, glyph: 'eye').render,
55
- UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(edit_name, url: { controller: @store.actions_controller, action: 'edit', id: :id }, glyph: 'edit').render,
56
- UiBibz::Ui::Core::Forms::Dropdowns::Components::DropdownLink.new(delete_name, { glyph: 'trash', url: { controller: @store.actions_controller, action: 'destroy', id: :id }, link_html_options: { data: { confirm: 'Are you sure?', method: :delete } } }).render
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
 
@@ -89,5 +89,9 @@ module UiBibz::Ui::Ux::Tables
89
89
  def param_id
90
90
  @store.param_id
91
91
  end
92
+
93
+ def id_key
94
+ @store.id_key
95
+ end
92
96
  end
93
97
  end
@@ -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, id: store.param_id }
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