ui_bibz 4.0.0.beta12 → 4.0.0.beta14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +128 -130
- data/app/assets/stylesheets/ui_bibz.sass +1 -0
- data/config/initializers/will_paginate.rb +1 -1
- data/lib/ui_bibz/concerns/models/searchable.rb +5 -2
- data/lib/ui_bibz/infos.rb +1 -1
- 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/vendor/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
- data/vendor/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
- data/vendor/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
- data/vendor/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
- data/vendor/assets/javascripts/fontawesome/all.js +3246 -3236
- data/vendor/assets/javascripts/fontawesome/all.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/brands.js +217 -208
- data/vendor/assets/javascripts/fontawesome/brands.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/conflict-detection.js +327 -347
- data/vendor/assets/javascripts/fontawesome/conflict-detection.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/fontawesome.js +1291 -1307
- data/vendor/assets/javascripts/fontawesome/fontawesome.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/regular.js +338 -331
- data/vendor/assets/javascripts/fontawesome/regular.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/solid.js +1403 -1393
- data/vendor/assets/javascripts/fontawesome/solid.min.js +2 -2
- data/vendor/assets/javascripts/fontawesome/v4-shims.js +206 -178
- data/vendor/assets/javascripts/fontawesome/v4-shims.min.js +2 -2
- data/vendor/assets/stylesheets/fontawesome/_core.scss +6 -6
- data/vendor/assets/stylesheets/fontawesome/_list.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +10 -0
- data/vendor/assets/stylesheets/fontawesome/brands.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +14 -14
- data/vendor/assets/stylesheets/fontawesome/regular.scss +2 -1
- data/vendor/assets/stylesheets/fontawesome/solid.scss +2 -1
- data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: accfe5e81a517a5bdb0bab43530ea4d9d6c80d5b75670f9451a7cfc567015998
|
4
|
+
data.tar.gz: 8e557d979fede0a2da459088e9e433e5977cd8504f114b7cb4b38449db7cfeec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
14
|
-
actionpack (= 7.
|
15
|
-
activesupport (= 7.
|
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.
|
20
|
-
actionpack (= 7.
|
21
|
-
activejob (= 7.
|
22
|
-
activerecord (= 7.
|
23
|
-
activestorage (= 7.
|
24
|
-
activesupport (= 7.
|
25
|
-
mail (>= 2.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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.
|
40
|
-
actionview (= 7.
|
41
|
-
activesupport (= 7.
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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.
|
57
|
-
activesupport (= 7.
|
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.
|
63
|
-
activesupport (= 7.
|
57
|
+
activejob (7.2.2)
|
58
|
+
activesupport (= 7.2.2)
|
64
59
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (7.
|
66
|
-
activesupport (= 7.
|
67
|
-
activerecord (7.
|
68
|
-
activemodel (= 7.
|
69
|
-
activesupport (= 7.
|
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.
|
72
|
-
actionpack (= 7.
|
73
|
-
activejob (= 7.
|
74
|
-
activerecord (= 7.
|
75
|
-
activesupport (= 7.
|
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.
|
72
|
+
activesupport (7.2.2)
|
78
73
|
base64
|
74
|
+
benchmark (>= 0.3)
|
79
75
|
bigdecimal
|
80
|
-
concurrent-ruby (~> 1.0, >= 1.
|
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
|
-
|
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.
|
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.
|
94
|
+
builder (3.3.0)
|
97
95
|
byebug (11.1.3)
|
98
|
-
childprocess (5.
|
99
|
-
|
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.
|
101
|
+
dartsass-rails (0.5.1)
|
103
102
|
railties (>= 6.0.0)
|
104
103
|
sass-embedded (~> 1.63)
|
105
|
-
date (3.
|
106
|
-
docile (1.4.
|
104
|
+
date (3.4.0)
|
105
|
+
docile (1.4.1)
|
107
106
|
drb (2.2.1)
|
108
|
-
erubi (1.
|
109
|
-
execjs (2.
|
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.
|
116
|
+
google-protobuf (4.28.3-x86_64-darwin)
|
117
|
+
bigdecimal
|
118
118
|
rake (>= 13)
|
119
|
-
google-protobuf (4.
|
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.
|
131
|
+
i18n (1.14.6)
|
131
132
|
concurrent-ruby (~> 1.0)
|
132
|
-
importmap-rails (2.0.
|
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.
|
139
|
+
irb (1.14.1)
|
139
140
|
rdoc (>= 4.0.0)
|
140
141
|
reline (>= 0.4.2)
|
141
|
-
json (2.
|
142
|
+
json (2.8.1)
|
142
143
|
language_server-protocol (3.17.0.3)
|
143
|
-
|
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.
|
154
|
-
|
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.
|
165
|
-
nokogiri (1.16.
|
165
|
+
nio4r (2.7.4)
|
166
|
+
nokogiri (1.16.7-x86_64-darwin)
|
166
167
|
racc (~> 1.4)
|
167
|
-
nokogiri (1.16.
|
168
|
+
nokogiri (1.16.7-x86_64-linux)
|
168
169
|
racc (~> 1.4)
|
169
|
-
overcommit (0.
|
170
|
+
overcommit (0.64.1)
|
170
171
|
childprocess (>= 0.6.3, < 6)
|
171
172
|
iniparse (~> 1.4)
|
172
|
-
rexml (
|
173
|
-
parallel (1.
|
174
|
-
parser (3.3.
|
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 (
|
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.
|
186
|
+
puma (6.4.3)
|
186
187
|
nio4r (~> 2.0)
|
187
|
-
racc (1.8.
|
188
|
-
rack (3.
|
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.
|
194
|
+
rackup (2.2.0)
|
194
195
|
rack (>= 3)
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
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.
|
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.
|
218
|
-
actionpack (= 7.
|
219
|
-
activesupport (= 7.
|
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.
|
227
|
+
rdoc (6.7.0)
|
228
228
|
psych (>= 4.0.0)
|
229
229
|
regexp_parser (2.9.2)
|
230
|
-
reline (0.5.
|
230
|
+
reline (0.5.10)
|
231
231
|
io-console (~> 0.5)
|
232
|
-
rexml (3.
|
233
|
-
|
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 (>=
|
241
|
-
|
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.
|
243
|
+
rubocop-ast (1.34.0)
|
246
244
|
parser (>= 3.3.1.0)
|
247
|
-
rubocop-minitest (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.
|
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.
|
251
|
+
rubocop-rails (2.27.0)
|
254
252
|
activesupport (>= 4.2.0)
|
255
253
|
rack (>= 1.1)
|
256
|
-
rubocop (>= 1.
|
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.
|
260
|
-
google-protobuf (
|
261
|
-
sass-embedded (1.
|
262
|
-
google-protobuf (
|
263
|
-
|
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.
|
269
|
+
simplecov-html (0.13.1)
|
271
270
|
simplecov_json_formatter (0.1.4)
|
272
|
-
sqlite3 (2.0
|
273
|
-
sqlite3 (2.0
|
274
|
-
stringio (3.1.
|
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.
|
278
|
-
tilt (2.
|
279
|
-
timeout (0.4.
|
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.
|
283
|
-
|
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.
|
288
|
-
yard (0.9.
|
289
|
-
zeitwerk (2.
|
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
|
@@ -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
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|