avo 2.11.2.pre.3 → 2.11.3.pre.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/avo.css +1 -0
- data/app/assets/stylesheets/css/scrollbar.css +30 -0
- data/app/components/avo/card_component.html.erb +8 -8
- data/app/components/avo/cards_list_component.html.erb +16 -0
- data/app/components/avo/cards_list_component.rb +13 -0
- data/app/components/avo/paginator_component.html.erb +35 -33
- data/app/components/avo/paginator_component.rb +3 -1
- data/app/components/avo/sidebar_component.html.erb +2 -2
- data/app/components/avo/tab_switcher_component.html.erb +1 -1
- data/app/components/avo/views/resource_edit_component.rb +20 -0
- data/app/components/avo/views/resource_index_component.html.erb +98 -50
- data/app/components/avo/views/resource_show_component.html.erb +11 -5
- data/app/controllers/avo/application_controller.rb +3 -2
- data/app/controllers/avo/associations_controller.rb +1 -1
- data/app/controllers/avo/base_controller.rb +15 -10
- data/app/controllers/avo/cards_controller.rb +18 -5
- data/app/controllers/avo/dashboards_controller.rb +4 -2
- data/app/javascript/avo.js +1 -1
- data/app/javascript/js/controllers/{dashboard_card_controller.js → card_controller.js} +0 -0
- data/app/javascript/js/controllers/fields/date_field_controller.js +7 -3
- data/app/javascript/js/controllers.js +2 -2
- data/app/views/avo/cards/_metric_card.html.erb +2 -2
- data/app/views/avo/dashboards/show.html.erb +2 -19
- data/app/views/layouts/avo/application.html.erb +1 -1
- data/config/routes.rb +3 -0
- data/lib/avo/base_card.rb +40 -21
- data/lib/avo/base_resource.rb +1 -0
- data/lib/avo/concerns/has_cards.rb +88 -0
- data/lib/avo/concerns/styles_cards.rb +48 -0
- data/lib/avo/dashboards/base_dashboard.rb +15 -50
- data/lib/avo/dashboards/base_divider.rb +5 -1
- data/lib/avo/dashboards/chartkick_card.rb +5 -4
- data/lib/avo/fields/base_field.rb +2 -6
- data/lib/avo/fields/date_time_field.rb +2 -2
- data/lib/avo/fields/field_extensions/visible_in_different_views.rb +12 -1
- data/lib/avo/fields/has_base_field.rb +2 -0
- data/lib/avo/hosts/dashboard_card.rb +1 -1
- data/lib/avo/tab.rb +3 -1
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/cards/partial_card_partial.tt +1 -1
- data/public/avo-assets/avo.css +125 -34
- data/public/avo-assets/avo.js +7 -7
- data/public/avo-assets/avo.js.map +3 -3
- metadata +8 -3
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: 2.11.
|
4
|
+
version: 2.11.3.pre.3
|
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: 2022-
|
12
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- app/assets/stylesheets/css/fonts.css
|
261
261
|
- app/assets/stylesheets/css/loader.css
|
262
262
|
- app/assets/stylesheets/css/pagination.css
|
263
|
+
- app/assets/stylesheets/css/scrollbar.css
|
263
264
|
- app/assets/stylesheets/css/search.css
|
264
265
|
- app/assets/stylesheets/css/sidebar.css
|
265
266
|
- app/assets/stylesheets/css/spinner.css
|
@@ -804,6 +805,8 @@ files:
|
|
804
805
|
- app/components/avo/button_component.rb
|
805
806
|
- app/components/avo/card_component.html.erb
|
806
807
|
- app/components/avo/card_component.rb
|
808
|
+
- app/components/avo/cards_list_component.html.erb
|
809
|
+
- app/components/avo/cards_list_component.rb
|
807
810
|
- app/components/avo/common_field_wrapper_component.html.erb
|
808
811
|
- app/components/avo/common_field_wrapper_component.rb
|
809
812
|
- app/components/avo/dashboards/divider_component.html.erb
|
@@ -1070,8 +1073,8 @@ files:
|
|
1070
1073
|
- app/javascript/js/controllers/attachments_controller.js
|
1071
1074
|
- app/javascript/js/controllers/base_controller.js
|
1072
1075
|
- app/javascript/js/controllers/boolean_filter_controller.js
|
1076
|
+
- app/javascript/js/controllers/card_controller.js
|
1073
1077
|
- app/javascript/js/controllers/copy_to_clipboard_controller.js
|
1074
|
-
- app/javascript/js/controllers/dashboard_card_controller.js
|
1075
1078
|
- app/javascript/js/controllers/fields/belongs_to_field_controller.js
|
1076
1079
|
- app/javascript/js/controllers/fields/code_field_controller.js
|
1077
1080
|
- app/javascript/js/controllers/fields/date_field_controller.js
|
@@ -1175,12 +1178,14 @@ files:
|
|
1175
1178
|
- lib/avo/base_resource_tool.rb
|
1176
1179
|
- lib/avo/concerns/fetches_things.rb
|
1177
1180
|
- lib/avo/concerns/handles_field_args.rb
|
1181
|
+
- lib/avo/concerns/has_cards.rb
|
1178
1182
|
- lib/avo/concerns/has_fields.rb
|
1179
1183
|
- lib/avo/concerns/has_html_attributes.rb
|
1180
1184
|
- lib/avo/concerns/has_model.rb
|
1181
1185
|
- lib/avo/concerns/has_stimulus_controllers.rb
|
1182
1186
|
- lib/avo/concerns/is_resource_item.rb
|
1183
1187
|
- lib/avo/concerns/model_class_constantized.rb
|
1188
|
+
- lib/avo/concerns/styles_cards.rb
|
1184
1189
|
- lib/avo/configuration.rb
|
1185
1190
|
- lib/avo/configuration/resource_configuration.rb
|
1186
1191
|
- lib/avo/dashboards/base_dashboard.rb
|