avo 3.10.10 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -4
- data/Gemfile.lock +51 -49
- data/app/components/avo/actions_component.html.erb +10 -6
- data/app/components/avo/actions_component.rb +37 -55
- data/app/components/avo/button_component.rb +3 -3
- data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +8 -4
- data/app/components/avo/fields/belongs_to_field/show_component.rb +1 -1
- data/app/components/avo/fields/common/files/list_viewer_component.rb +1 -1
- data/app/components/avo/fields/has_one_field/show_component.rb +3 -3
- data/app/components/avo/index/resource_controls_component.rb +9 -5
- data/app/components/avo/paginator_component.html.erb +1 -1
- data/app/components/avo/paginator_component.rb +1 -1
- data/app/components/avo/panel_component.html.erb +6 -4
- data/app/components/avo/resource_component.rb +3 -2
- data/app/components/avo/resource_sidebar_component.html.erb +1 -1
- data/app/components/avo/views/resource_edit_component.html.erb +2 -2
- data/app/components/avo/views/resource_index_component.html.erb +2 -2
- data/app/components/avo/views/resource_index_component.rb +17 -4
- data/app/components/avo/views/resource_show_component.html.erb +2 -2
- data/app/controllers/avo/actions_controller.rb +1 -1
- data/app/controllers/avo/application_controller.rb +1 -1
- data/app/controllers/avo/associations_controller.rb +55 -18
- data/app/controllers/avo/base_controller.rb +7 -2
- data/app/controllers/avo/search_controller.rb +1 -1
- data/app/helpers/avo/application_helper.rb +1 -1
- data/app/javascript/avo.base.js +8 -0
- data/app/views/avo/actions/show.html.erb +3 -3
- data/app/views/avo/associations/new.html.erb +45 -20
- data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +1 -1
- data/app/views/layouts/avo/application.html.erb +1 -2
- data/config/initializers/pagy.rb +1 -1
- data/lib/avo/base_action.rb +1 -0
- data/lib/avo/engine.rb +8 -4
- data/lib/avo/fields/base_field.rb +2 -2
- data/lib/avo/fields/belongs_to_field.rb +14 -8
- data/lib/avo/fields/concerns/is_required.rb +1 -1
- data/lib/avo/fields/has_base_field.rb +3 -1
- data/lib/avo/fields/has_one_field.rb +1 -1
- data/lib/avo/fields_execution_context.rb +13 -0
- data/lib/avo/resources/base.rb +32 -22
- data/lib/avo/version.rb +1 -1
- data/lib/avo.rb +10 -8
- data/lib/generators/avo/templates/initializer/avo.tt +3 -3
- data/lib/generators/avo/templates/locales/avo.ar.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.de.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.es.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.fr.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.it.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ja.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nb.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nl.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nn.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pl.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pt.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ru.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.tr.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.uk.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.zh.yml +1 -0
- data/lib/tasks/avo_tasks.rake +1 -1
- data/public/avo-assets/avo.base.css +49 -2
- data/public/avo-assets/avo.base.js +129 -129
- data/public/avo-assets/avo.base.js.map +3 -3
- data/tailwind.preset.js +2 -3
- metadata +4 -3
- /data/{lib → app}/avo/base_resource.rb +0 -0
data/tailwind.preset.js
CHANGED
@@ -23,6 +23,7 @@ function contentPaths(basePath) {
|
|
23
23
|
module.exports = {
|
24
24
|
content: [
|
25
25
|
...contentPaths('./tmp/avo/packages/*'),
|
26
|
+
...contentPaths('./../avo-kanban/*'),
|
26
27
|
...contentPaths(avoPath),
|
27
28
|
],
|
28
29
|
theme: {
|
@@ -50,9 +51,6 @@ module.exports = {
|
|
50
51
|
'1/2': '50%',
|
51
52
|
full: '100%',
|
52
53
|
},
|
53
|
-
borderRadius: {
|
54
|
-
xl: '1rem',
|
55
|
-
},
|
56
54
|
boxShadow: {
|
57
55
|
row: '0 0 15px -5px rgba(0, 0, 0, 0.25)',
|
58
56
|
context: '0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 0 25px -5px rgba(0, 0, 0, 0.1)',
|
@@ -161,6 +159,7 @@ module.exports = {
|
|
161
159
|
addVariant('has-cover-photo', '.has-cover-photo & ')
|
162
160
|
addVariant('index-grid-view', '.index-grid-view & ')
|
163
161
|
addVariant('index-table-view', '.index-table-view & ')
|
162
|
+
addVariant('kanban-dragging', '.kanban-dragging & ')
|
164
163
|
}),
|
165
164
|
],
|
166
165
|
}
|
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.
|
4
|
+
version: 3.11.0
|
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-
|
13
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -1746,6 +1746,7 @@ files:
|
|
1746
1746
|
- app/assets/svgs/heroicons/solid/x.svg
|
1747
1747
|
- app/assets/svgs/heroicons/solid/zoom-in.svg
|
1748
1748
|
- app/assets/svgs/heroicons/solid/zoom-out.svg
|
1749
|
+
- app/avo/base_resource.rb
|
1749
1750
|
- app/components/avo/actions_component.html.erb
|
1750
1751
|
- app/components/avo/actions_component.rb
|
1751
1752
|
- app/components/avo/alert_component.html.erb
|
@@ -2173,7 +2174,6 @@ files:
|
|
2173
2174
|
- lib/avo.rb
|
2174
2175
|
- lib/avo/asset_manager.rb
|
2175
2176
|
- lib/avo/base_action.rb
|
2176
|
-
- lib/avo/base_resource.rb
|
2177
2177
|
- lib/avo/base_resource_tool.rb
|
2178
2178
|
- lib/avo/concerns/borrow_items_holder.rb
|
2179
2179
|
- lib/avo/concerns/breadcrumbs.rb
|
@@ -2260,6 +2260,7 @@ files:
|
|
2260
2260
|
- lib/avo/fields/time_field.rb
|
2261
2261
|
- lib/avo/fields/tiptap_field.rb
|
2262
2262
|
- lib/avo/fields/trix_field.rb
|
2263
|
+
- lib/avo/fields_execution_context.rb
|
2263
2264
|
- lib/avo/filters/base_filter.rb
|
2264
2265
|
- lib/avo/filters/boolean_filter.rb
|
2265
2266
|
- lib/avo/filters/multiple_select_filter.rb
|
File without changes
|