ui_bibz 4.0.0.beta12 → 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/Gemfile.lock +119 -121
- 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
- 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: 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/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,82 +10,78 @@ 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.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.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)
|
@@ -93,19 +89,20 @@ GEM
|
|
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.
|
103
|
+
docile (1.4.1)
|
107
104
|
drb (2.2.1)
|
108
|
-
erubi (1.
|
105
|
+
erubi (1.13.0)
|
109
106
|
execjs (2.9.1)
|
110
107
|
factory_bot (4.11.1)
|
111
108
|
activesupport (>= 3.0.0)
|
@@ -114,9 +111,11 @@ GEM
|
|
114
111
|
railties (>= 3.0.0)
|
115
112
|
globalid (1.2.1)
|
116
113
|
activesupport (>= 6.1)
|
117
|
-
google-protobuf (4.
|
114
|
+
google-protobuf (4.28.2-x86_64-darwin)
|
115
|
+
bigdecimal
|
118
116
|
rake (>= 13)
|
119
|
-
google-protobuf (4.
|
117
|
+
google-protobuf (4.28.2-x86_64-linux)
|
118
|
+
bigdecimal
|
120
119
|
rake (>= 13)
|
121
120
|
haml (6.3.0)
|
122
121
|
temple (>= 0.8.2)
|
@@ -127,19 +126,20 @@ GEM
|
|
127
126
|
activesupport (>= 5.1)
|
128
127
|
haml (>= 4.0.6)
|
129
128
|
railties (>= 5.1)
|
130
|
-
i18n (1.14.
|
129
|
+
i18n (1.14.6)
|
131
130
|
concurrent-ruby (~> 1.0)
|
132
|
-
importmap-rails (2.0.
|
131
|
+
importmap-rails (2.0.3)
|
133
132
|
actionpack (>= 6.0.0)
|
134
133
|
activesupport (>= 6.0.0)
|
135
134
|
railties (>= 6.0.0)
|
136
135
|
iniparse (1.5.0)
|
137
136
|
io-console (0.7.2)
|
138
|
-
irb (1.
|
137
|
+
irb (1.14.1)
|
139
138
|
rdoc (>= 4.0.0)
|
140
139
|
reline (>= 0.4.2)
|
141
140
|
json (2.7.2)
|
142
141
|
language_server-protocol (3.17.0.3)
|
142
|
+
logger (1.6.1)
|
143
143
|
loofah (2.22.0)
|
144
144
|
crass (~> 1.0.2)
|
145
145
|
nokogiri (>= 1.12.0)
|
@@ -150,9 +150,8 @@ GEM
|
|
150
150
|
net-smtp
|
151
151
|
marcel (1.0.4)
|
152
152
|
mini_mime (1.1.5)
|
153
|
-
minitest (5.
|
154
|
-
|
155
|
-
net-imap (0.4.11)
|
153
|
+
minitest (5.25.1)
|
154
|
+
net-imap (0.5.0)
|
156
155
|
date
|
157
156
|
net-protocol
|
158
157
|
net-pop (0.1.2)
|
@@ -162,30 +161,30 @@ GEM
|
|
162
161
|
net-smtp (0.5.0)
|
163
162
|
net-protocol
|
164
163
|
nio4r (2.7.3)
|
165
|
-
nokogiri (1.16.
|
164
|
+
nokogiri (1.16.7-x86_64-darwin)
|
166
165
|
racc (~> 1.4)
|
167
|
-
nokogiri (1.16.
|
166
|
+
nokogiri (1.16.7-x86_64-linux)
|
168
167
|
racc (~> 1.4)
|
169
|
-
overcommit (0.
|
168
|
+
overcommit (0.64.0)
|
170
169
|
childprocess (>= 0.6.3, < 6)
|
171
170
|
iniparse (~> 1.4)
|
172
171
|
rexml (~> 3.2)
|
173
|
-
parallel (1.
|
174
|
-
parser (3.3.
|
172
|
+
parallel (1.26.3)
|
173
|
+
parser (3.3.5.0)
|
175
174
|
ast (~> 2.4.1)
|
176
175
|
racc
|
177
176
|
popper_js (2.11.8)
|
178
|
-
propshaft (
|
177
|
+
propshaft (1.1.0)
|
179
178
|
actionpack (>= 7.0.0)
|
180
179
|
activesupport (>= 7.0.0)
|
181
180
|
rack
|
182
181
|
railties (>= 7.0.0)
|
183
182
|
psych (5.1.2)
|
184
183
|
stringio
|
185
|
-
puma (6.4.
|
184
|
+
puma (6.4.3)
|
186
185
|
nio4r (~> 2.0)
|
187
|
-
racc (1.8.
|
188
|
-
rack (3.
|
186
|
+
racc (1.8.1)
|
187
|
+
rack (3.1.8)
|
189
188
|
rack-session (2.0.0)
|
190
189
|
rack (>= 3.0.0)
|
191
190
|
rack-test (2.1.0)
|
@@ -193,20 +192,20 @@ GEM
|
|
193
192
|
rackup (2.1.0)
|
194
193
|
rack (>= 3)
|
195
194
|
webrick (~> 1.8)
|
196
|
-
rails (7.1.
|
197
|
-
actioncable (= 7.1.
|
198
|
-
actionmailbox (= 7.1.
|
199
|
-
actionmailer (= 7.1.
|
200
|
-
actionpack (= 7.1.
|
201
|
-
actiontext (= 7.1.
|
202
|
-
actionview (= 7.1.
|
203
|
-
activejob (= 7.1.
|
204
|
-
activemodel (= 7.1.
|
205
|
-
activerecord (= 7.1.
|
206
|
-
activestorage (= 7.1.
|
207
|
-
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)
|
208
207
|
bundler (>= 1.15.0)
|
209
|
-
railties (= 7.1.
|
208
|
+
railties (= 7.2.1.1)
|
210
209
|
rails-dom-testing (2.2.0)
|
211
210
|
activesupport (>= 5.0.0)
|
212
211
|
minitest
|
@@ -214,79 +213,78 @@ GEM
|
|
214
213
|
rails-html-sanitizer (1.6.0)
|
215
214
|
loofah (~> 2.21)
|
216
215
|
nokogiri (~> 1.14)
|
217
|
-
railties (7.1.
|
218
|
-
actionpack (= 7.1.
|
219
|
-
activesupport (= 7.1.
|
220
|
-
irb
|
216
|
+
railties (7.2.1.1)
|
217
|
+
actionpack (= 7.2.1.1)
|
218
|
+
activesupport (= 7.2.1.1)
|
219
|
+
irb (~> 1.13)
|
221
220
|
rackup (>= 1.0.0)
|
222
221
|
rake (>= 12.2)
|
223
222
|
thor (~> 1.0, >= 1.2.2)
|
224
223
|
zeitwerk (~> 2.6)
|
225
224
|
rainbow (3.1.1)
|
226
225
|
rake (13.2.1)
|
227
|
-
rdoc (6.
|
226
|
+
rdoc (6.7.0)
|
228
227
|
psych (>= 4.0.0)
|
229
228
|
regexp_parser (2.9.2)
|
230
|
-
reline (0.5.
|
229
|
+
reline (0.5.10)
|
231
230
|
io-console (~> 0.5)
|
232
|
-
rexml (3.
|
233
|
-
|
234
|
-
rubocop (1.63.5)
|
231
|
+
rexml (3.3.8)
|
232
|
+
rubocop (1.67.0)
|
235
233
|
json (~> 2.3)
|
236
234
|
language_server-protocol (>= 3.17.0)
|
237
235
|
parallel (~> 1.10)
|
238
236
|
parser (>= 3.3.0.2)
|
239
237
|
rainbow (>= 2.2.2, < 4.0)
|
240
|
-
regexp_parser (>=
|
241
|
-
|
242
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
238
|
+
regexp_parser (>= 2.4, < 3.0)
|
239
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
243
240
|
ruby-progressbar (~> 1.7)
|
244
241
|
unicode-display_width (>= 2.4.0, < 3.0)
|
245
|
-
rubocop-ast (1.
|
242
|
+
rubocop-ast (1.32.3)
|
246
243
|
parser (>= 3.3.1.0)
|
247
|
-
rubocop-minitest (0.
|
244
|
+
rubocop-minitest (0.36.0)
|
248
245
|
rubocop (>= 1.61, < 2.0)
|
249
246
|
rubocop-ast (>= 1.31.1, < 2.0)
|
250
|
-
rubocop-performance (1.
|
247
|
+
rubocop-performance (1.22.1)
|
251
248
|
rubocop (>= 1.48.1, < 2.0)
|
252
249
|
rubocop-ast (>= 1.31.1, < 2.0)
|
253
|
-
rubocop-rails (2.
|
250
|
+
rubocop-rails (2.26.2)
|
254
251
|
activesupport (>= 4.2.0)
|
255
252
|
rack (>= 1.1)
|
256
|
-
rubocop (>= 1.
|
253
|
+
rubocop (>= 1.52.0, < 2.0)
|
257
254
|
rubocop-ast (>= 1.31.1, < 2.0)
|
258
255
|
ruby-progressbar (1.13.0)
|
259
|
-
sass-embedded (1.
|
260
|
-
google-protobuf (
|
261
|
-
sass-embedded (1.
|
262
|
-
google-protobuf (
|
263
|
-
|
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)
|
264
262
|
actionpack (>= 5.2)
|
265
263
|
activemodel (>= 5.2)
|
266
264
|
simplecov (0.22.0)
|
267
265
|
docile (~> 1.1)
|
268
266
|
simplecov-html (~> 0.11)
|
269
267
|
simplecov_json_formatter (~> 0.1)
|
270
|
-
simplecov-html (0.
|
268
|
+
simplecov-html (0.13.1)
|
271
269
|
simplecov_json_formatter (0.1.4)
|
272
|
-
sqlite3 (2.0
|
273
|
-
sqlite3 (2.0
|
274
|
-
stringio (3.1.
|
275
|
-
strscan (3.1.0)
|
270
|
+
sqlite3 (2.1.0-x86_64-darwin)
|
271
|
+
sqlite3 (2.1.0-x86_64-linux-gnu)
|
272
|
+
stringio (3.1.1)
|
276
273
|
temple (0.10.3)
|
277
|
-
thor (1.3.
|
278
|
-
tilt (2.
|
274
|
+
thor (1.3.2)
|
275
|
+
tilt (2.4.0)
|
279
276
|
timeout (0.4.1)
|
280
277
|
tzinfo (2.0.6)
|
281
278
|
concurrent-ruby (~> 1.0)
|
282
|
-
unicode-display_width (2.
|
283
|
-
|
279
|
+
unicode-display_width (2.6.0)
|
280
|
+
useragent (0.16.10)
|
281
|
+
webrick (1.8.2)
|
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
|
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
|