avo 3.15.4 → 3.15.5
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 +78 -78
- data/app/components/avo/field_wrapper_component.html.erb +2 -2
- data/app/components/avo/index/resource_table_component.html.erb +1 -1
- data/app/controllers/avo/actions_controller.rb +16 -6
- data/lib/avo/version.rb +1 -1
- data/public/avo-assets/avo.base.css +5 -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: 0c7ebad96126bfb455df4e3f71d7327332acd66dcf1050fe12fdde32ea5d9833
|
|
4
|
+
data.tar.gz: d85102e0405423931add6887459e9c94da3e82ce030ea103a3e59ee1a987f8f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6235fdab6f0fadf50edb877b6fde0d4b9bdd38e8afdbfa29f33d044e2cf3c084c2b4f41d2fba876dd559ded2087c13d3687d80e4740486b727738166da56a9cc
|
|
7
|
+
data.tar.gz: 0eb61e9ebfc9f15434e789cd4a134963d0798942eca7c2e73c235326878c07c0463b4b650bfd7c21a852d5b3408e6e66e13527ac08477d775f40c8d93befe2ec
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
avo (3.15.
|
|
4
|
+
avo (3.15.5)
|
|
5
5
|
actionview (>= 6.1)
|
|
6
6
|
active_link_to
|
|
7
7
|
activerecord (>= 6.1)
|
|
@@ -25,29 +25,29 @@ PATH
|
|
|
25
25
|
GEM
|
|
26
26
|
remote: https://rubygems.org/
|
|
27
27
|
specs:
|
|
28
|
-
actioncable (8.0.
|
|
29
|
-
actionpack (= 8.0.
|
|
30
|
-
activesupport (= 8.0.
|
|
28
|
+
actioncable (8.0.1)
|
|
29
|
+
actionpack (= 8.0.1)
|
|
30
|
+
activesupport (= 8.0.1)
|
|
31
31
|
nio4r (~> 2.0)
|
|
32
32
|
websocket-driver (>= 0.6.1)
|
|
33
33
|
zeitwerk (~> 2.6)
|
|
34
|
-
actionmailbox (8.0.
|
|
35
|
-
actionpack (= 8.0.
|
|
36
|
-
activejob (= 8.0.
|
|
37
|
-
activerecord (= 8.0.
|
|
38
|
-
activestorage (= 8.0.
|
|
39
|
-
activesupport (= 8.0.
|
|
34
|
+
actionmailbox (8.0.1)
|
|
35
|
+
actionpack (= 8.0.1)
|
|
36
|
+
activejob (= 8.0.1)
|
|
37
|
+
activerecord (= 8.0.1)
|
|
38
|
+
activestorage (= 8.0.1)
|
|
39
|
+
activesupport (= 8.0.1)
|
|
40
40
|
mail (>= 2.8.0)
|
|
41
|
-
actionmailer (8.0.
|
|
42
|
-
actionpack (= 8.0.
|
|
43
|
-
actionview (= 8.0.
|
|
44
|
-
activejob (= 8.0.
|
|
45
|
-
activesupport (= 8.0.
|
|
41
|
+
actionmailer (8.0.1)
|
|
42
|
+
actionpack (= 8.0.1)
|
|
43
|
+
actionview (= 8.0.1)
|
|
44
|
+
activejob (= 8.0.1)
|
|
45
|
+
activesupport (= 8.0.1)
|
|
46
46
|
mail (>= 2.8.0)
|
|
47
47
|
rails-dom-testing (~> 2.2)
|
|
48
|
-
actionpack (8.0.
|
|
49
|
-
actionview (= 8.0.
|
|
50
|
-
activesupport (= 8.0.
|
|
48
|
+
actionpack (8.0.1)
|
|
49
|
+
actionview (= 8.0.1)
|
|
50
|
+
activesupport (= 8.0.1)
|
|
51
51
|
nokogiri (>= 1.8.5)
|
|
52
52
|
rack (>= 2.2.4)
|
|
53
53
|
rack-session (>= 1.0.1)
|
|
@@ -55,15 +55,15 @@ GEM
|
|
|
55
55
|
rails-dom-testing (~> 2.2)
|
|
56
56
|
rails-html-sanitizer (~> 1.6)
|
|
57
57
|
useragent (~> 0.16)
|
|
58
|
-
actiontext (8.0.
|
|
59
|
-
actionpack (= 8.0.
|
|
60
|
-
activerecord (= 8.0.
|
|
61
|
-
activestorage (= 8.0.
|
|
62
|
-
activesupport (= 8.0.
|
|
58
|
+
actiontext (8.0.1)
|
|
59
|
+
actionpack (= 8.0.1)
|
|
60
|
+
activerecord (= 8.0.1)
|
|
61
|
+
activestorage (= 8.0.1)
|
|
62
|
+
activesupport (= 8.0.1)
|
|
63
63
|
globalid (>= 0.6.0)
|
|
64
64
|
nokogiri (>= 1.8.5)
|
|
65
|
-
actionview (8.0.
|
|
66
|
-
activesupport (= 8.0.
|
|
65
|
+
actionview (8.0.1)
|
|
66
|
+
activesupport (= 8.0.1)
|
|
67
67
|
builder (~> 3.1)
|
|
68
68
|
erubi (~> 1.11)
|
|
69
69
|
rails-dom-testing (~> 2.2)
|
|
@@ -73,22 +73,22 @@ GEM
|
|
|
73
73
|
addressable
|
|
74
74
|
active_median (0.5.0)
|
|
75
75
|
activesupport (>= 7)
|
|
76
|
-
activejob (8.0.
|
|
77
|
-
activesupport (= 8.0.
|
|
76
|
+
activejob (8.0.1)
|
|
77
|
+
activesupport (= 8.0.1)
|
|
78
78
|
globalid (>= 0.3.6)
|
|
79
|
-
activemodel (8.0.
|
|
80
|
-
activesupport (= 8.0.
|
|
81
|
-
activerecord (8.0.
|
|
82
|
-
activemodel (= 8.0.
|
|
83
|
-
activesupport (= 8.0.
|
|
79
|
+
activemodel (8.0.1)
|
|
80
|
+
activesupport (= 8.0.1)
|
|
81
|
+
activerecord (8.0.1)
|
|
82
|
+
activemodel (= 8.0.1)
|
|
83
|
+
activesupport (= 8.0.1)
|
|
84
84
|
timeout (>= 0.4.0)
|
|
85
|
-
activestorage (8.0.
|
|
86
|
-
actionpack (= 8.0.
|
|
87
|
-
activejob (= 8.0.
|
|
88
|
-
activerecord (= 8.0.
|
|
89
|
-
activesupport (= 8.0.
|
|
85
|
+
activestorage (8.0.1)
|
|
86
|
+
actionpack (= 8.0.1)
|
|
87
|
+
activejob (= 8.0.1)
|
|
88
|
+
activerecord (= 8.0.1)
|
|
89
|
+
activesupport (= 8.0.1)
|
|
90
90
|
marcel (~> 1.0)
|
|
91
|
-
activesupport (8.0.
|
|
91
|
+
activesupport (8.0.1)
|
|
92
92
|
base64
|
|
93
93
|
benchmark (>= 0.3)
|
|
94
94
|
bigdecimal
|
|
@@ -126,7 +126,7 @@ GEM
|
|
|
126
126
|
money-rails (~> 1.12)
|
|
127
127
|
avo-record_link_field (0.0.2)
|
|
128
128
|
aws-eventstream (1.3.0)
|
|
129
|
-
aws-partitions (1.
|
|
129
|
+
aws-partitions (1.1025.0)
|
|
130
130
|
aws-sdk-core (3.214.0)
|
|
131
131
|
aws-eventstream (~> 1, >= 1.3.0)
|
|
132
132
|
aws-partitions (~> 1, >= 1.992.0)
|
|
@@ -135,7 +135,7 @@ GEM
|
|
|
135
135
|
aws-sdk-kms (1.96.0)
|
|
136
136
|
aws-sdk-core (~> 3, >= 3.210.0)
|
|
137
137
|
aws-sigv4 (~> 1.5)
|
|
138
|
-
aws-sdk-s3 (1.176.
|
|
138
|
+
aws-sdk-s3 (1.176.1)
|
|
139
139
|
aws-sdk-core (~> 3, >= 3.210.0)
|
|
140
140
|
aws-sdk-kms (~> 1)
|
|
141
141
|
aws-sigv4 (~> 1.5)
|
|
@@ -188,7 +188,7 @@ GEM
|
|
|
188
188
|
crass (1.0.6)
|
|
189
189
|
cssbundling-rails (1.4.1)
|
|
190
190
|
railties (>= 6.0.0)
|
|
191
|
-
csv (3.3.
|
|
191
|
+
csv (3.3.1)
|
|
192
192
|
cuprite (0.15.1)
|
|
193
193
|
capybara (~> 3.0)
|
|
194
194
|
ferrum (~> 0.15.0)
|
|
@@ -198,7 +198,7 @@ GEM
|
|
|
198
198
|
database_cleaner-core (2.0.1)
|
|
199
199
|
date (3.4.1)
|
|
200
200
|
dead_end (4.0.0)
|
|
201
|
-
debug (1.
|
|
201
|
+
debug (1.10.0)
|
|
202
202
|
irb (~> 1.10)
|
|
203
203
|
reline (>= 0.3.8)
|
|
204
204
|
derailed_benchmarks (2.1.2)
|
|
@@ -223,9 +223,9 @@ GEM
|
|
|
223
223
|
warden (~> 1.2.3)
|
|
224
224
|
diff-lcs (1.5.1)
|
|
225
225
|
docile (1.4.1)
|
|
226
|
-
dotenv (3.1.
|
|
227
|
-
dotenv-rails (3.1.
|
|
228
|
-
dotenv (= 3.1.
|
|
226
|
+
dotenv (3.1.7)
|
|
227
|
+
dotenv-rails (3.1.7)
|
|
228
|
+
dotenv (= 3.1.7)
|
|
229
229
|
railties (>= 6.1)
|
|
230
230
|
drb (2.2.1)
|
|
231
231
|
dry-configurable (1.2.0)
|
|
@@ -338,7 +338,7 @@ GEM
|
|
|
338
338
|
activesupport (>= 3.0)
|
|
339
339
|
nokogiri (>= 1.6)
|
|
340
340
|
io-console (0.8.0)
|
|
341
|
-
irb (1.14.
|
|
341
|
+
irb (1.14.3)
|
|
342
342
|
rdoc (>= 4.0.0)
|
|
343
343
|
reline (>= 0.4.2)
|
|
344
344
|
iso (0.4.0)
|
|
@@ -347,7 +347,7 @@ GEM
|
|
|
347
347
|
jmespath (1.6.2)
|
|
348
348
|
jsbundling-rails (1.3.1)
|
|
349
349
|
railties (>= 6.0.0)
|
|
350
|
-
json (2.9.
|
|
350
|
+
json (2.9.1)
|
|
351
351
|
kramdown (2.5.1)
|
|
352
352
|
rexml (>= 3.3.9)
|
|
353
353
|
kramdown-parser-gfm (1.1.0)
|
|
@@ -360,7 +360,7 @@ GEM
|
|
|
360
360
|
listen (3.9.0)
|
|
361
361
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
362
362
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
363
|
-
logger (1.6.
|
|
363
|
+
logger (1.6.4)
|
|
364
364
|
loofah (2.23.1)
|
|
365
365
|
crass (~> 1.0.2)
|
|
366
366
|
nokogiri (>= 1.12.0)
|
|
@@ -391,7 +391,7 @@ GEM
|
|
|
391
391
|
money (~> 6.13)
|
|
392
392
|
railties (>= 3.0)
|
|
393
393
|
msgpack (1.7.5)
|
|
394
|
-
net-imap (0.5.
|
|
394
|
+
net-imap (0.5.2)
|
|
395
395
|
date
|
|
396
396
|
net-protocol
|
|
397
397
|
net-pop (0.1.2)
|
|
@@ -401,10 +401,10 @@ GEM
|
|
|
401
401
|
net-smtp (0.5.0)
|
|
402
402
|
net-protocol
|
|
403
403
|
nio4r (2.7.4)
|
|
404
|
-
nokogiri (1.17.
|
|
404
|
+
nokogiri (1.17.2)
|
|
405
405
|
mini_portile2 (~> 2.8.2)
|
|
406
406
|
racc (~> 1.4)
|
|
407
|
-
nokogiri (1.17.
|
|
407
|
+
nokogiri (1.17.2-x86_64-linux)
|
|
408
408
|
racc (~> 1.4)
|
|
409
409
|
orm_adapter (0.5.0)
|
|
410
410
|
pagy (9.3.3)
|
|
@@ -420,7 +420,7 @@ GEM
|
|
|
420
420
|
prettier_print (1.2.1)
|
|
421
421
|
prop_initializer (0.2.0)
|
|
422
422
|
zeitwerk (>= 2.6.18)
|
|
423
|
-
psych (5.2.
|
|
423
|
+
psych (5.2.2)
|
|
424
424
|
date
|
|
425
425
|
stringio
|
|
426
426
|
public_suffix (6.0.1)
|
|
@@ -434,20 +434,20 @@ GEM
|
|
|
434
434
|
rack (>= 1.3)
|
|
435
435
|
rackup (2.2.1)
|
|
436
436
|
rack (>= 3)
|
|
437
|
-
rails (8.0.
|
|
438
|
-
actioncable (= 8.0.
|
|
439
|
-
actionmailbox (= 8.0.
|
|
440
|
-
actionmailer (= 8.0.
|
|
441
|
-
actionpack (= 8.0.
|
|
442
|
-
actiontext (= 8.0.
|
|
443
|
-
actionview (= 8.0.
|
|
444
|
-
activejob (= 8.0.
|
|
445
|
-
activemodel (= 8.0.
|
|
446
|
-
activerecord (= 8.0.
|
|
447
|
-
activestorage (= 8.0.
|
|
448
|
-
activesupport (= 8.0.
|
|
437
|
+
rails (8.0.1)
|
|
438
|
+
actioncable (= 8.0.1)
|
|
439
|
+
actionmailbox (= 8.0.1)
|
|
440
|
+
actionmailer (= 8.0.1)
|
|
441
|
+
actionpack (= 8.0.1)
|
|
442
|
+
actiontext (= 8.0.1)
|
|
443
|
+
actionview (= 8.0.1)
|
|
444
|
+
activejob (= 8.0.1)
|
|
445
|
+
activemodel (= 8.0.1)
|
|
446
|
+
activerecord (= 8.0.1)
|
|
447
|
+
activestorage (= 8.0.1)
|
|
448
|
+
activesupport (= 8.0.1)
|
|
449
449
|
bundler (>= 1.15.0)
|
|
450
|
-
railties (= 8.0.
|
|
450
|
+
railties (= 8.0.1)
|
|
451
451
|
rails-controller-testing (1.0.5)
|
|
452
452
|
actionpack (>= 5.0.1.rc1)
|
|
453
453
|
actionview (>= 5.0.1.rc1)
|
|
@@ -456,15 +456,15 @@ GEM
|
|
|
456
456
|
activesupport (>= 5.0.0)
|
|
457
457
|
minitest
|
|
458
458
|
nokogiri (>= 1.6)
|
|
459
|
-
rails-html-sanitizer (1.6.
|
|
459
|
+
rails-html-sanitizer (1.6.2)
|
|
460
460
|
loofah (~> 2.21)
|
|
461
461
|
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)
|
|
462
462
|
rails-i18n (8.0.1)
|
|
463
463
|
i18n (>= 0.7, < 2)
|
|
464
464
|
railties (>= 8.0.0, < 9)
|
|
465
|
-
railties (8.0.
|
|
466
|
-
actionpack (= 8.0.
|
|
467
|
-
activesupport (= 8.0.
|
|
465
|
+
railties (8.0.1)
|
|
466
|
+
actionpack (= 8.0.1)
|
|
467
|
+
activesupport (= 8.0.1)
|
|
468
468
|
irb (~> 1.13)
|
|
469
469
|
rackup (>= 1.0.0)
|
|
470
470
|
rake (>= 12.2)
|
|
@@ -480,7 +480,7 @@ GEM
|
|
|
480
480
|
rb-inotify (0.11.1)
|
|
481
481
|
ffi (~> 1.0)
|
|
482
482
|
rbs (2.8.4)
|
|
483
|
-
rdoc (6.
|
|
483
|
+
rdoc (6.10.0)
|
|
484
484
|
psych (>= 4.0.0)
|
|
485
485
|
redis (5.3.0)
|
|
486
486
|
redis-client (>= 0.22.0)
|
|
@@ -492,14 +492,14 @@ GEM
|
|
|
492
492
|
rainbow (>= 2.0, < 4.0)
|
|
493
493
|
rexml (~> 3.1)
|
|
494
494
|
regexp_parser (2.9.3)
|
|
495
|
-
reline (0.
|
|
495
|
+
reline (0.6.0)
|
|
496
496
|
io-console (~> 0.5)
|
|
497
497
|
responders (3.1.1)
|
|
498
498
|
actionpack (>= 5.2)
|
|
499
499
|
railties (>= 5.2)
|
|
500
500
|
reverse_markdown (2.1.1)
|
|
501
501
|
nokogiri
|
|
502
|
-
rexml (3.
|
|
502
|
+
rexml (3.4.0)
|
|
503
503
|
ripper-tags (1.0.2)
|
|
504
504
|
rspec-core (3.13.2)
|
|
505
505
|
rspec-support (~> 3.13.0)
|
|
@@ -520,7 +520,7 @@ GEM
|
|
|
520
520
|
rspec-retry (0.6.2)
|
|
521
521
|
rspec-core (> 3.3)
|
|
522
522
|
rspec-support (3.13.2)
|
|
523
|
-
rubocop (1.69.
|
|
523
|
+
rubocop (1.69.2)
|
|
524
524
|
json (~> 2.3)
|
|
525
525
|
language_server-protocol (>= 3.17.0)
|
|
526
526
|
parallel (~> 1.10)
|
|
@@ -530,7 +530,7 @@ GEM
|
|
|
530
530
|
rubocop-ast (>= 1.36.2, < 2.0)
|
|
531
531
|
ruby-progressbar (~> 1.7)
|
|
532
532
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
533
|
-
rubocop-ast (1.
|
|
533
|
+
rubocop-ast (1.37.0)
|
|
534
534
|
parser (>= 3.3.1.0)
|
|
535
535
|
rubocop-performance (1.23.0)
|
|
536
536
|
rubocop (>= 1.48.1, < 2.0)
|
|
@@ -557,7 +557,7 @@ GEM
|
|
|
557
557
|
simplecov (>= 0.22.0)
|
|
558
558
|
tty-which (~> 0.5.0)
|
|
559
559
|
virtus (~> 2.0)
|
|
560
|
-
securerandom (0.4.
|
|
560
|
+
securerandom (0.4.1)
|
|
561
561
|
sexp_processor (4.17.3)
|
|
562
562
|
simplecov (0.22.0)
|
|
563
563
|
docile (~> 1.1)
|
|
@@ -616,16 +616,16 @@ GEM
|
|
|
616
616
|
prettier_print (>= 1.2.0)
|
|
617
617
|
terminal-table (3.0.2)
|
|
618
618
|
unicode-display_width (>= 1.1.1, < 3)
|
|
619
|
-
test-prof (1.4.
|
|
619
|
+
test-prof (1.4.3)
|
|
620
620
|
thor (1.3.2)
|
|
621
621
|
thread_safe (0.3.6)
|
|
622
622
|
tilt (2.4.0)
|
|
623
|
-
timeout (0.4.
|
|
623
|
+
timeout (0.4.3)
|
|
624
624
|
tty-which (0.5.0)
|
|
625
625
|
turbo-rails (2.0.11)
|
|
626
626
|
actionpack (>= 6.0.0)
|
|
627
627
|
railties (>= 6.0.0)
|
|
628
|
-
turbo_power (0.
|
|
628
|
+
turbo_power (0.7.0)
|
|
629
629
|
turbo-rails (>= 1.3.0)
|
|
630
630
|
tzinfo (2.0.6)
|
|
631
631
|
concurrent-ruby (~> 1.0)
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
<% end %>
|
|
18
18
|
<% if on_edit? && @field.is_required? %> <span class="text-red-600 ml-1">*</span> <% end %>
|
|
19
19
|
<% end %>
|
|
20
|
-
<%= content_tag :div, class: class_names("flex-1 flex flex-row md:min-h-inherit px-6",
|
|
20
|
+
<%= content_tag :div, class: class_names("flex-1 flex flex-row md:min-h-inherit px-6 overflow-x-auto",
|
|
21
21
|
@field.get_html(:classes, view: @view, element: :content),
|
|
22
22
|
{
|
|
23
23
|
"pb-4": stacked?,
|
|
24
24
|
"py-2": !compact?,
|
|
25
25
|
"py-1": compact?,
|
|
26
26
|
}), data: {slot: "value"} do %>
|
|
27
|
-
<div class="self-center w-full <% unless full_width? || compact? || stacked? %> md:w-8/12 has-sidebar:w-full <% end %>">
|
|
27
|
+
<div class="self-center w-full break-words <% unless full_width? || compact? || stacked? %> md:w-8/12 has-sidebar:w-full <% end %>">
|
|
28
28
|
<% if on_show? %>
|
|
29
29
|
<% if render_dash? %>
|
|
30
30
|
—
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
data-selected-resources="[]"
|
|
11
11
|
>
|
|
12
12
|
<% if @pagy.pages > 1 %>
|
|
13
|
-
<div class="absolute z-30 w-
|
|
13
|
+
<div class="absolute z-30 w-[calc(100%-2.5rem)] ml-10 pt-px hidden" data-item-select-all-target="selectAllOverlay">
|
|
14
14
|
<div class="bg-white flex items-center h-9 mt-0.5">
|
|
15
15
|
<div class="mt-1.5" data-item-select-all-target="unselectedMessage">
|
|
16
16
|
<%= selected_page_label %>
|
|
@@ -99,6 +99,10 @@ module Avo
|
|
|
99
99
|
# Flash the messages collected from the action
|
|
100
100
|
flash_messages
|
|
101
101
|
|
|
102
|
+
# Always execute turbo_stream.avo_close_modal on all responses, including redirects
|
|
103
|
+
# Exclude response types intended to keep the modal open
|
|
104
|
+
# This ensures the modal frame refreshes, preventing it from retaining the SRC of the previous action
|
|
105
|
+
# and avoids re-triggering that SRC during back navigation
|
|
102
106
|
respond_to do |format|
|
|
103
107
|
format.turbo_stream do
|
|
104
108
|
turbo_response = case @response[:type]
|
|
@@ -117,11 +121,14 @@ module Avo
|
|
|
117
121
|
|
|
118
122
|
turbo_stream.turbo_frame_set_src(Avo::MODAL_FRAME_ID, src)
|
|
119
123
|
when :redirect
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
[
|
|
125
|
+
turbo_stream.avo_close_modal,
|
|
126
|
+
turbo_stream.redirect_to(
|
|
127
|
+
Avo::ExecutionContext.new(target: @response[:path]).handle,
|
|
128
|
+
turbo_frame: @response[:redirect_args][:turbo_frame],
|
|
129
|
+
**@response[:redirect_args].except(:turbo_frame)
|
|
130
|
+
)
|
|
131
|
+
]
|
|
125
132
|
when :close_modal
|
|
126
133
|
# Close the modal and flash the messages
|
|
127
134
|
[
|
|
@@ -132,7 +139,10 @@ module Avo
|
|
|
132
139
|
# Reload the page
|
|
133
140
|
back_path = request.referer || params[:referrer].presence || resources_path(resource: @resource)
|
|
134
141
|
|
|
135
|
-
|
|
142
|
+
[
|
|
143
|
+
turbo_stream.avo_close_modal,
|
|
144
|
+
turbo_stream.redirect_to(back_path)
|
|
145
|
+
]
|
|
136
146
|
end
|
|
137
147
|
|
|
138
148
|
responses = if @action.appended_turbo_streams.present?
|
data/lib/avo/version.rb
CHANGED
|
@@ -3783,7 +3783,7 @@ body[data-theme=dark], body.dark {
|
|
|
3783
3783
|
--tw-contain-style:
|
|
3784
3784
|
}
|
|
3785
3785
|
|
|
3786
|
-
/*! tailwindcss v3.4.
|
|
3786
|
+
/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
|
|
3787
3787
|
*/
|
|
3788
3788
|
|
|
3789
3789
|
/*
|
|
@@ -8195,6 +8195,10 @@ tag.tagify__tag{
|
|
|
8195
8195
|
width:calc(100% + 1rem)
|
|
8196
8196
|
}
|
|
8197
8197
|
|
|
8198
|
+
.w-\[calc\(100\%-2\.5rem\)\]{
|
|
8199
|
+
width:calc(100% - 2.5rem)
|
|
8200
|
+
}
|
|
8201
|
+
|
|
8198
8202
|
.w-auto{
|
|
8199
8203
|
width:auto
|
|
8200
8204
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: avo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.15.
|
|
4
|
+
version: 3.15.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Marin
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2024-12-
|
|
13
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|