avo 3.15.7 → 3.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c15daa95c12eff90f76db31c4a4ed6422fcf9e546bb1a31dac922199ab482ed0
4
- data.tar.gz: 110ec41fa9409216e39978dea9a4ac2980b9b4f34b998e70ea08591ef8c4292b
3
+ metadata.gz: 65ced447360d888fd5327e2493f2ee0e053dd6241c72e4bafdf54c07b7385a8a
4
+ data.tar.gz: 1bc11d985c740933c50a128204df0c0880e01fa9ed4ebed62069bb56f453e6f3
5
5
  SHA512:
6
- metadata.gz: f1b1848d10a08c985bf5dd71e5900aa1bfa8e02d5e1e47baafe6b49e4f68bdaa7bb72711443f66534de9a32a19f69f2a06608818110fb84bd8f30e73a3b5c3cb
7
- data.tar.gz: 919e92084b88fe024f559b6a9d5a07dcd0f4728e235e5227a89e9efc5d51976513e085c2e1f5941e2a0c86064b3049ff8f9ba85a1f546837e14dcc6d331d675e
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.15.7)
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.7.9)
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.1025.0)
130
- aws-sdk-core (3.214.0)
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.176.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.8)
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.0.0)
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.1)
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.2)
234
+ dry-core (1.1.0)
235
235
  concurrent-ruby (~> 1.0)
236
236
  logger
237
237
  zeitwerk (~> 2.6)
238
- dry-inflector (1.1.0)
239
- dry-initializer (3.1.1)
240
- dry-logic (1.5.0)
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.0, < 2)
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.7.2)
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.0)
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.0-x86_64-linux-gnu)
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.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.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.23.1)
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.2)
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.17.2-x86_64-linux)
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.0.0)
439
+ rack-session (2.1.0)
440
+ base64 (>= 0.1.0)
439
441
  rack (>= 3.0.0)
440
- rack-test (2.1.0)
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.9.3)
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.0)
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.3)
632
+ test-prof (1.4.4)
631
633
  thor (1.3.2)
632
634
  thread_safe (0.3.6)
633
- tilt (2.4.0)
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.20.0)
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.6)
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)
@@ -8686,10 +8686,6 @@ tag.tagify__tag{
8686
8686
  text-overflow:ellipsis
8687
8687
  }
8688
8688
 
8689
- .text-clip{
8690
- text-overflow:clip
8691
- }
8692
-
8693
8689
  .whitespace-nowrap{
8694
8690
  white-space:nowrap
8695
8691
  }
@@ -10465,10 +10461,6 @@ dialog#turbo-confirm{
10465
10461
  z-index:21
10466
10462
  }
10467
10463
 
10468
- .hover\:text-clip:hover{
10469
- text-overflow:clip
10470
- }
10471
-
10472
10464
  .hover\:border-amber-600:hover{
10473
10465
  --tw-border-opacity:1;
10474
10466
  border-color:rgb(217 119 6 / var(--tw-border-opacity, 1))
@@ -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 :translation_key
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
- @translation_key || "avo.resource_translations.#{class_name.underscore}"
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.15.7" unless const_defined?(:VERSION)
2
+ VERSION = "3.16.0" unless const_defined?(:VERSION)
3
3
  end
@@ -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.source_location
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: black;
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 .attachment__caption-editor:focus[data-trix-mutable]::selection {
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
- .trix-content blockquote[dir=rtl] {
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: ' \2022 ';
6905
+ content: " •";
6908
6906
  }
6909
6907
 
6910
6908
  .trix-content .attachment--preview {