avo 3.15.6 → 3.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +32 -29
- data/app/components/avo/field_wrapper_component.html.erb +2 -2
- data/lib/avo/resources/base.rb +4 -2
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/eject_generator.rb +1 -1
- data/public/avo-assets/avo.base.css +5 -7
- data/public/avo-assets/avo.base.js +102 -102
- data/public/avo-assets/avo.base.js.map +4 -4
- 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: 65ced447360d888fd5327e2493f2ee0e053dd6241c72e4bafdf54c07b7385a8a
|
4
|
+
data.tar.gz: 1bc11d985c740933c50a128204df0c0880e01fa9ed4ebed62069bb56f453e6f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ada818e8edb1599229fbabfa206f4cb5807397f6f63be8cb5b5fcdb89a0aba4b3982319ede140887e364e1ac173726a49c8975556b0e4a7b287db228980e902
|
7
|
+
data.tar.gz: dfa577e7383879e2fb5cf7338461c00f0be26de0b4203dfb9df803f66ea10b46c55b3202941259afe69a094d44ae274a6e4c181e7248112f37290a1363535e62
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (3.
|
4
|
+
avo (3.16.0)
|
5
5
|
actionview (>= 6.1)
|
6
6
|
active_link_to
|
7
7
|
activerecord (>= 6.1)
|
@@ -107,7 +107,7 @@ GEM
|
|
107
107
|
acts_as_list (1.2.4)
|
108
108
|
activerecord (>= 6.1)
|
109
109
|
activesupport (>= 6.1)
|
110
|
-
actual_db_schema (0.
|
110
|
+
actual_db_schema (0.8.0)
|
111
111
|
activerecord
|
112
112
|
activesupport
|
113
113
|
csv
|
@@ -126,8 +126,8 @@ 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.
|
130
|
-
aws-sdk-core (3.214.
|
129
|
+
aws-partitions (1.1031.0)
|
130
|
+
aws-sdk-core (3.214.1)
|
131
131
|
aws-eventstream (~> 1, >= 1.3.0)
|
132
132
|
aws-partitions (~> 1, >= 1.992.0)
|
133
133
|
aws-sigv4 (~> 1.9)
|
@@ -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.
|
138
|
+
aws-sdk-s3 (1.177.0)
|
139
139
|
aws-sdk-core (~> 3, >= 3.210.0)
|
140
140
|
aws-sdk-kms (~> 1)
|
141
141
|
aws-sigv4 (~> 1.5)
|
@@ -157,7 +157,7 @@ GEM
|
|
157
157
|
erubi (~> 1.4)
|
158
158
|
parser (>= 2.4)
|
159
159
|
smart_properties
|
160
|
-
bigdecimal (3.1.
|
160
|
+
bigdecimal (3.1.9)
|
161
161
|
bindex (0.8.1)
|
162
162
|
bootsnap (1.18.4)
|
163
163
|
msgpack (~> 1.2)
|
@@ -180,7 +180,7 @@ GEM
|
|
180
180
|
descendants_tracker (~> 0.0.1)
|
181
181
|
concurrent-ruby (1.3.4)
|
182
182
|
connection_pool (2.4.1)
|
183
|
-
countries (7.
|
183
|
+
countries (7.1.0)
|
184
184
|
unaccent (~> 0.3)
|
185
185
|
crack (1.0.0)
|
186
186
|
bigdecimal
|
@@ -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.2)
|
192
192
|
cuprite (0.15.1)
|
193
193
|
capybara (~> 3.0)
|
194
194
|
ferrum (~> 0.15.0)
|
@@ -231,15 +231,16 @@ GEM
|
|
231
231
|
dry-configurable (1.2.0)
|
232
232
|
dry-core (~> 1.0, < 2)
|
233
233
|
zeitwerk (~> 2.6)
|
234
|
-
dry-core (1.0
|
234
|
+
dry-core (1.1.0)
|
235
235
|
concurrent-ruby (~> 1.0)
|
236
236
|
logger
|
237
237
|
zeitwerk (~> 2.6)
|
238
|
-
dry-inflector (1.
|
239
|
-
dry-initializer (3.
|
240
|
-
dry-logic (1.
|
238
|
+
dry-inflector (1.2.0)
|
239
|
+
dry-initializer (3.2.0)
|
240
|
+
dry-logic (1.6.0)
|
241
|
+
bigdecimal
|
241
242
|
concurrent-ruby (~> 1.0)
|
242
|
-
dry-core (~> 1.
|
243
|
+
dry-core (~> 1.1)
|
243
244
|
zeitwerk (~> 2.6)
|
244
245
|
dry-schema (1.13.4)
|
245
246
|
concurrent-ruby (~> 1.0)
|
@@ -249,7 +250,7 @@ GEM
|
|
249
250
|
dry-logic (>= 1.4, < 2)
|
250
251
|
dry-types (>= 1.7, < 2)
|
251
252
|
zeitwerk (~> 2.6)
|
252
|
-
dry-types (1.
|
253
|
+
dry-types (1.8.0)
|
253
254
|
bigdecimal (~> 3.0)
|
254
255
|
concurrent-ruby (~> 1.0)
|
255
256
|
dry-core (~> 1.0)
|
@@ -266,7 +267,7 @@ GEM
|
|
266
267
|
rainbow
|
267
268
|
rubocop (>= 1)
|
268
269
|
smart_properties
|
269
|
-
erubi (1.13.
|
270
|
+
erubi (1.13.1)
|
270
271
|
event_stream_parser (1.0.0)
|
271
272
|
factory_bot (6.5.0)
|
272
273
|
activesupport (>= 5.0.0)
|
@@ -288,7 +289,7 @@ GEM
|
|
288
289
|
concurrent-ruby (~> 1.1)
|
289
290
|
webrick (~> 1.7)
|
290
291
|
websocket-driver (~> 0.7)
|
291
|
-
ffi (1.17.
|
292
|
+
ffi (1.17.1-x86_64-linux-gnu)
|
292
293
|
flay (2.13.3)
|
293
294
|
erubi (~> 1.10)
|
294
295
|
path_expander (~> 1.0)
|
@@ -303,7 +304,7 @@ GEM
|
|
303
304
|
fuubar (2.5.1)
|
304
305
|
rspec-core (~> 3.0)
|
305
306
|
ruby-progressbar (~> 1.4)
|
306
|
-
gem-release (2.2.
|
307
|
+
gem-release (2.2.4)
|
307
308
|
get_process_mem (0.2.7)
|
308
309
|
ffi (~> 1.0)
|
309
310
|
globalid (1.2.1)
|
@@ -317,7 +318,7 @@ GEM
|
|
317
318
|
hashids (1.0.6)
|
318
319
|
heapy (0.2.0)
|
319
320
|
thor
|
320
|
-
highline (3.1.
|
321
|
+
highline (3.1.2)
|
321
322
|
reline
|
322
323
|
hightop (0.5.0)
|
323
324
|
activesupport (>= 7)
|
@@ -369,7 +370,7 @@ GEM
|
|
369
370
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
370
371
|
rb-inotify (~> 0.9, >= 0.9.10)
|
371
372
|
logger (1.6.4)
|
372
|
-
loofah (2.
|
373
|
+
loofah (2.24.0)
|
373
374
|
crass (~> 1.0.2)
|
374
375
|
nokogiri (>= 1.12.0)
|
375
376
|
mail (2.8.1)
|
@@ -401,7 +402,7 @@ GEM
|
|
401
402
|
multipart-post (2.4.1)
|
402
403
|
net-http (0.6.0)
|
403
404
|
uri
|
404
|
-
net-imap (0.5.
|
405
|
+
net-imap (0.5.5)
|
405
406
|
date
|
406
407
|
net-protocol
|
407
408
|
net-pop (0.1.2)
|
@@ -411,7 +412,7 @@ GEM
|
|
411
412
|
net-smtp (0.5.0)
|
412
413
|
net-protocol
|
413
414
|
nio4r (2.7.4)
|
414
|
-
nokogiri (1.
|
415
|
+
nokogiri (1.18.1-x86_64-linux-gnu)
|
415
416
|
racc (~> 1.4)
|
416
417
|
orm_adapter (0.5.0)
|
417
418
|
pagy (9.3.3)
|
@@ -435,9 +436,10 @@ GEM
|
|
435
436
|
nio4r (~> 2.0)
|
436
437
|
racc (1.8.1)
|
437
438
|
rack (3.1.8)
|
438
|
-
rack-session (2.
|
439
|
+
rack-session (2.1.0)
|
440
|
+
base64 (>= 0.1.0)
|
439
441
|
rack (>= 3.0.0)
|
440
|
-
rack-test (2.
|
442
|
+
rack-test (2.2.0)
|
441
443
|
rack (>= 1.3)
|
442
444
|
rackup (2.2.1)
|
443
445
|
rack (>= 3)
|
@@ -498,7 +500,7 @@ GEM
|
|
498
500
|
parser (~> 3.3.0)
|
499
501
|
rainbow (>= 2.0, < 4.0)
|
500
502
|
rexml (~> 3.1)
|
501
|
-
regexp_parser (2.
|
503
|
+
regexp_parser (2.10.0)
|
502
504
|
reline (0.6.0)
|
503
505
|
io-console (~> 0.5)
|
504
506
|
responders (3.1.1)
|
@@ -539,7 +541,7 @@ GEM
|
|
539
541
|
unicode-display_width (>= 2.4.0, < 4.0)
|
540
542
|
rubocop-ast (1.37.0)
|
541
543
|
parser (>= 3.3.1.0)
|
542
|
-
rubocop-performance (1.23.
|
544
|
+
rubocop-performance (1.23.1)
|
543
545
|
rubocop (>= 1.48.1, < 2.0)
|
544
546
|
rubocop-ast (>= 1.31.1, < 2.0)
|
545
547
|
rubocop-shopify (2.15.1)
|
@@ -627,10 +629,10 @@ GEM
|
|
627
629
|
prettier_print (>= 1.2.0)
|
628
630
|
terminal-table (3.0.2)
|
629
631
|
unicode-display_width (>= 1.1.1, < 3)
|
630
|
-
test-prof (1.4.
|
632
|
+
test-prof (1.4.4)
|
631
633
|
thor (1.3.2)
|
632
634
|
thread_safe (0.3.6)
|
633
|
-
tilt (2.
|
635
|
+
tilt (2.5.0)
|
634
636
|
timeout (0.4.3)
|
635
637
|
tty-which (0.5.0)
|
636
638
|
turbo-rails (2.0.11)
|
@@ -644,7 +646,7 @@ GEM
|
|
644
646
|
unicode-display_width (2.6.0)
|
645
647
|
uri (1.0.2)
|
646
648
|
useragent (0.16.11)
|
647
|
-
view_component (3.
|
649
|
+
view_component (3.21.0)
|
648
650
|
activesupport (>= 5.2.0, < 8.1)
|
649
651
|
concurrent-ruby (~> 1.0)
|
650
652
|
method_source (~> 1.0)
|
@@ -664,7 +666,8 @@ GEM
|
|
664
666
|
crack (>= 0.3.2)
|
665
667
|
hashdiff (>= 0.4.0, < 2.0.0)
|
666
668
|
webrick (1.9.1)
|
667
|
-
websocket-driver (0.7.
|
669
|
+
websocket-driver (0.7.7)
|
670
|
+
base64
|
668
671
|
websocket-extensions (>= 0.1.0)
|
669
672
|
websocket-extensions (0.1.5)
|
670
673
|
xpath (3.2.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",
|
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
|
27
|
+
<div class="self-center w-full <% unless full_width? || compact? || stacked? %> md:w-8/12 has-sidebar:w-full <% end %>">
|
28
28
|
<% if on_show? %>
|
29
29
|
<div class="flex flex-row items-center group gap-x-1">
|
30
30
|
<% if render_dash? %>
|
data/lib/avo/resources/base.rb
CHANGED
@@ -54,7 +54,7 @@ module Avo
|
|
54
54
|
class_attribute :single_includes, default: []
|
55
55
|
class_attribute :single_attachments, default: []
|
56
56
|
class_attribute :authorization_policy
|
57
|
-
class_attribute :
|
57
|
+
class_attribute :custom_translation_key
|
58
58
|
class_attribute :default_view_type, default: :table
|
59
59
|
class_attribute :devise_password_optional, default: false
|
60
60
|
class_attribute :scopes_loader
|
@@ -176,8 +176,9 @@ module Avo
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def translation_key
|
179
|
-
|
179
|
+
custom_translation_key || "avo.resource_translations.#{class_name.underscore}"
|
180
180
|
end
|
181
|
+
alias_method :translation_key=, :custom_translation_key=
|
181
182
|
|
182
183
|
def name
|
183
184
|
name_from_translation_key(count: 1, default: class_name.underscore.humanize)
|
@@ -254,6 +255,7 @@ module Avo
|
|
254
255
|
delegate :to_param, to: :class
|
255
256
|
delegate :find_record, to: :class
|
256
257
|
delegate :model_key, to: :class
|
258
|
+
delegate :translation_key, to: :class
|
257
259
|
delegate :tab, to: :items_holder
|
258
260
|
|
259
261
|
def initialize(record: nil, view: nil, user: nil, params: nil)
|
data/lib/avo/version.rb
CHANGED
@@ -120,7 +120,7 @@ module Generators
|
|
120
120
|
# Get the component path for both, the rb and erb files
|
121
121
|
rb, erb = if (component_constant = component_to_eject.safe_constantize)
|
122
122
|
# If component is a constant, find the source location
|
123
|
-
source_location = component_constant.
|
123
|
+
source_location = component_constant.identifier
|
124
124
|
|
125
125
|
[source_location, source_location.gsub(".rb", ".html.erb")]
|
126
126
|
else
|
@@ -6472,7 +6472,7 @@ trix-toolbar .trix-button:not(:first-child) {
|
|
6472
6472
|
|
6473
6473
|
trix-toolbar .trix-button.trix-active {
|
6474
6474
|
background: #cbeefa;
|
6475
|
-
color:
|
6475
|
+
color: rgb(0, 0, 0);
|
6476
6476
|
}
|
6477
6477
|
|
6478
6478
|
trix-toolbar .trix-button:not(:disabled) {
|
@@ -6657,13 +6657,11 @@ trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
|
|
6657
6657
|
user-select: none;
|
6658
6658
|
}
|
6659
6659
|
|
6660
|
-
trix-editor [data-trix-mutable]::selection,
|
6661
|
-
trix-editor [data-trix-cursor-target]::selection,
|
6662
|
-
trix-editor [data-trix-mutable] ::selection {
|
6660
|
+
trix-editor [data-trix-mutable] ::selection, trix-editor [data-trix-mutable]::selection, trix-editor [data-trix-cursor-target]::selection {
|
6663
6661
|
background: none;
|
6664
6662
|
}
|
6665
6663
|
|
6666
|
-
trix-editor
|
6664
|
+
trix-editor [data-trix-mutable].attachment__caption-editor:focus::selection {
|
6667
6665
|
background: highlight;
|
6668
6666
|
}
|
6669
6667
|
|
@@ -6852,7 +6850,7 @@ trix-editor .attachment__metadata .attachment__size {
|
|
6852
6850
|
}
|
6853
6851
|
|
6854
6852
|
.trix-content [dir=rtl] blockquote,
|
6855
|
-
|
6853
|
+
.trix-content blockquote[dir=rtl] {
|
6856
6854
|
border-width: 0;
|
6857
6855
|
border-right-width: 0.3em;
|
6858
6856
|
margin-right: 0.3em;
|
@@ -6904,7 +6902,7 @@ trix-editor .attachment__metadata .attachment__size {
|
|
6904
6902
|
}
|
6905
6903
|
|
6906
6904
|
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
|
6907
|
-
content:
|
6905
|
+
content: " •";
|
6908
6906
|
}
|
6909
6907
|
|
6910
6908
|
.trix-content .attachment--preview {
|