avo 3.0.1.beta18 → 3.0.1.beta20

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -1
  4. data/app/assets/builds/avo.base.css +3235 -260
  5. data/app/components/avo/fields/common/badge_viewer_component.rb +1 -1
  6. data/app/components/avo/fields/common/files/list_viewer_component.rb +3 -3
  7. data/app/components/avo/fields/common/files/view_type/{grid_component.html.erb → grid_item_component.html.erb} +2 -2
  8. data/app/components/avo/fields/common/files/view_type/{grid_component.rb → grid_item_component.rb} +3 -2
  9. data/app/components/avo/fields/common/files/view_type/{list_component.rb → list_item_component.rb} +1 -1
  10. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  11. data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
  12. data/app/components/avo/index/resource_table_component.rb +1 -4
  13. data/app/components/avo/modal_component.html.erb +2 -2
  14. data/app/components/avo/views/resource_index_component.rb +2 -1
  15. data/app/controllers/avo/actions_controller.rb +1 -1
  16. data/app/controllers/avo/application_controller.rb +6 -2
  17. data/app/controllers/avo/base_controller.rb +1 -0
  18. data/app/controllers/avo/search_controller.rb +12 -2
  19. data/app/javascript/js/controllers/search_controller.js +2 -0
  20. data/app/views/avo/actions/show.html.erb +1 -1
  21. data/app/views/avo/partials/_resource_search.html.erb +1 -0
  22. data/lib/avo/base_resource.rb +19 -3
  23. data/lib/avo/fields/has_base_field.rb +8 -1
  24. data/lib/avo/fields/has_one_field.rb +1 -1
  25. data/lib/avo/services/encryption_service.rb +8 -12
  26. data/lib/avo/version.rb +1 -1
  27. data/lib/avo/view_inquirer.rb +2 -5
  28. data/lib/avo.rb +1 -1
  29. data/public/avo-assets/avo.base.js +1 -1
  30. data/public/avo-assets/avo.base.js.map +2 -2
  31. data/tailwind.preset.js +2 -1
  32. metadata +6 -6
  33. /data/app/components/avo/fields/common/files/view_type/{list_component.html.erb → list_item_component.html.erb} +0 -0
data/tailwind.preset.js CHANGED
@@ -3,6 +3,7 @@ const colors = require('tailwindcss/colors')
3
3
  const defaultTheme = require('tailwindcss/defaultTheme')
4
4
 
5
5
  const { primary, blue, gray } = require('./tailwind.custom')
6
+ const avoPath = require('child_process').execSync('bundle show avo', { encoding: 'utf-8' }).trim()
6
7
 
7
8
  function contentPaths(basePath) {
8
9
  return [
@@ -21,7 +22,7 @@ function contentPaths(basePath) {
21
22
  module.exports = {
22
23
  content: [
23
24
  ...contentPaths('./tmp/avo/packages/*'),
24
- ...contentPaths('.'),
25
+ ...contentPaths(avoPath),
25
26
  ],
26
27
  theme: {
27
28
  extend: {
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.0.1.beta18
4
+ version: 3.0.1.beta20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-04 00:00:00.000000000 Z
12
+ date: 2023-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -1400,10 +1400,10 @@ files:
1400
1400
  - app/components/avo/fields/common/files/controls_component.rb
1401
1401
  - app/components/avo/fields/common/files/list_viewer_component.html.erb
1402
1402
  - app/components/avo/fields/common/files/list_viewer_component.rb
1403
- - app/components/avo/fields/common/files/view_type/grid_component.html.erb
1404
- - app/components/avo/fields/common/files/view_type/grid_component.rb
1405
- - app/components/avo/fields/common/files/view_type/list_component.html.erb
1406
- - app/components/avo/fields/common/files/view_type/list_component.rb
1403
+ - app/components/avo/fields/common/files/view_type/grid_item_component.html.erb
1404
+ - app/components/avo/fields/common/files/view_type/grid_item_component.rb
1405
+ - app/components/avo/fields/common/files/view_type/list_item_component.html.erb
1406
+ - app/components/avo/fields/common/files/view_type/list_item_component.rb
1407
1407
  - app/components/avo/fields/common/gravatar_viewer_component.html.erb
1408
1408
  - app/components/avo/fields/common/gravatar_viewer_component.rb
1409
1409
  - app/components/avo/fields/common/heading_component.html.erb