avo 2.12.1.pre.1 → 2.13.2.pre.1
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/README.md +2 -1
- data/app/assets/stylesheets/avo.css +1 -1
- data/app/assets/stylesheets/css/fields/progress.css +3 -3
- data/app/assets/stylesheets/css/pagination.css +0 -4
- data/app/assets/stylesheets/css/search.css +1 -1
- data/app/assets/stylesheets/css/sidebar.css +1 -1
- data/app/assets/stylesheets/css/tags.css +7 -0
- data/app/assets/svgs/failed_to_load.svg +4 -5
- data/app/assets/svgs/grid-empty-state.svg +10 -11
- data/app/assets/svgs/table-empty-state.svg +11 -12
- data/app/components/avo/actions_component.html.erb +5 -5
- data/app/components/avo/actions_component.rb +12 -3
- data/app/components/avo/button_component.rb +3 -5
- data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
- data/app/components/avo/fields/date_field/edit_component.html.erb +0 -3
- data/app/components/avo/fields/date_time_field/edit_component.html.erb +0 -2
- data/app/components/avo/fields/has_one_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -1
- data/app/components/avo/item_switcher_component.html.erb +1 -1
- data/app/components/avo/panel_component.html.erb +1 -1
- data/app/components/avo/panel_component.rb +3 -4
- data/app/components/avo/profile_item_component.html.erb +1 -1
- data/app/components/avo/resource_component.rb +6 -4
- data/app/components/avo/sidebar_component.html.erb +1 -1
- data/app/components/avo/views/resource_edit_component.html.erb +1 -1
- data/app/components/avo/views/resource_index_component.html.erb +1 -1
- data/app/components/avo/views/resource_index_component.rb +1 -1
- data/app/components/avo/views/resource_show_component.html.erb +138 -48
- data/app/components/avo/views/resource_show_component.rb +1 -0
- data/app/helpers/avo/resources_helper.rb +2 -2
- data/app/javascript/avo.js +0 -1
- data/app/javascript/js/controllers/fields/trix_field_controller.js +4 -3
- data/app/javascript/js/controllers/item_selector_controller.js +1 -1
- data/app/views/avo/associations/new.html.erb +2 -2
- data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
- data/app/views/avo/base/_text_filter.html.erb +1 -1
- data/app/views/avo/dashboards/show.html.erb +1 -1
- data/app/views/avo/debug/index.html.erb +1 -1
- data/app/views/avo/debug/report.html.erb +1 -0
- data/app/views/avo/home/index.html.erb +1 -1
- data/app/views/avo/partials/_branding.html.erb +5 -0
- data/app/views/avo/partials/_header.html.erb +1 -1
- data/app/views/avo/partials/_logo.html.erb +2 -2
- data/app/views/avo/private/_links_and_buttons.html.erb +1 -1
- data/app/views/avo/private/design.html.erb +5 -5
- data/app/views/layouts/avo/application.html.erb +2 -1
- data/lib/avo/base_resource.rb +5 -1
- data/lib/avo/concerns/has_editable_controls.rb +34 -0
- data/lib/avo/configuration/branding.rb +57 -0
- data/lib/avo/configuration.rb +5 -0
- data/lib/avo/fields/date_field.rb +1 -3
- data/lib/avo/fields/field_extensions/has_include_blank.rb +1 -1
- data/lib/avo/fields/key_value_field.rb +6 -6
- data/lib/avo/licensing/h_q.rb +12 -4
- data/lib/avo/licensing/pro_license.rb +2 -0
- data/lib/avo/menu/builder.rb +2 -0
- data/lib/avo/resources/controls/action.rb +32 -0
- data/lib/avo/resources/controls/actions_list.rb +19 -0
- data/lib/avo/resources/controls/back_button.rb +13 -0
- data/lib/avo/resources/controls/base_control.rb +59 -0
- data/lib/avo/resources/controls/delete_button.rb +13 -0
- data/lib/avo/resources/controls/detach_button.rb +13 -0
- data/lib/avo/resources/controls/edit_button.rb +13 -0
- data/lib/avo/resources/controls/execution_context.rb +58 -0
- data/lib/avo/resources/controls/items_holder.rb +19 -0
- data/lib/avo/resources/controls/link_to.rb +27 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/action.tt +1 -1
- data/lib/generators/avo/templates/initializer/avo.tt +14 -0
- data/lib/generators/avo/templates/resource_tools/partial.tt +1 -1
- data/lib/generators/avo/templates/standalone_action.tt +1 -1
- data/public/avo-assets/avo.css +760 -202
- data/public/avo-assets/avo.js +2 -2
- data/public/avo-assets/avo.js.map +2 -2
- metadata +15 -11
- data/app/components/avo/button_component.html.erb +0 -1
- data/app/helpers/avo/actions_helper.rb +0 -4
- data/app/helpers/avo/attachments_helper.rb +0 -4
- data/app/views/kaminari/_first_page.html.erb +0 -3
- data/app/views/kaminari/_last_page.html.erb +0 -3
- data/app/views/kaminari/_next_page.html.erb +0 -9
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_prev_page.html.erb +0 -9
- data/lib/avo/concerns/has_model.rb +0 -11
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.
|
4
|
+
version: 2.13.2.pre.1
|
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-08-
|
12
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -801,7 +801,6 @@ files:
|
|
801
801
|
- app/components/avo/base_component.rb
|
802
802
|
- app/components/avo/blank_field_component.html.erb
|
803
803
|
- app/components/avo/blank_field_component.rb
|
804
|
-
- app/components/avo/button_component.html.erb
|
805
804
|
- app/components/avo/button_component.rb
|
806
805
|
- app/components/avo/card_component.html.erb
|
807
806
|
- app/components/avo/card_component.rb
|
@@ -1057,9 +1056,7 @@ files:
|
|
1057
1056
|
- app/controllers/avo/reorder_controller.rb
|
1058
1057
|
- app/controllers/avo/resources_controller.rb
|
1059
1058
|
- app/controllers/avo/search_controller.rb
|
1060
|
-
- app/helpers/avo/actions_helper.rb
|
1061
1059
|
- app/helpers/avo/application_helper.rb
|
1062
|
-
- app/helpers/avo/attachments_helper.rb
|
1063
1060
|
- app/helpers/avo/resources_helper.rb
|
1064
1061
|
- app/helpers/avo/url_helpers.rb
|
1065
1062
|
- app/javascript/avo.js
|
@@ -1127,6 +1124,7 @@ files:
|
|
1127
1124
|
- app/views/avo/home/failed_to_load.html copy.erb
|
1128
1125
|
- app/views/avo/home/failed_to_load.html.erb
|
1129
1126
|
- app/views/avo/home/index.html.erb
|
1127
|
+
- app/views/avo/partials/_branding.html.erb
|
1130
1128
|
- app/views/avo/partials/_custom_tools_alert.html.erb
|
1131
1129
|
- app/views/avo/partials/_footer.html.erb
|
1132
1130
|
- app/views/avo/partials/_global_search.html.erb
|
@@ -1146,11 +1144,6 @@ files:
|
|
1146
1144
|
- app/views/avo/private/design.html.erb
|
1147
1145
|
- app/views/avo/sidebar/_license_warning.html.erb
|
1148
1146
|
- app/views/avo/sidebar/_license_warnings.html.erb
|
1149
|
-
- app/views/kaminari/_first_page.html.erb
|
1150
|
-
- app/views/kaminari/_last_page.html.erb
|
1151
|
-
- app/views/kaminari/_next_page.html.erb
|
1152
|
-
- app/views/kaminari/_page.html.erb
|
1153
|
-
- app/views/kaminari/_prev_page.html.erb
|
1154
1147
|
- app/views/layouts/avo/_filter_wrapper.html.erb
|
1155
1148
|
- app/views/layouts/avo/application.html.erb
|
1156
1149
|
- avo.gemspec
|
@@ -1176,13 +1169,14 @@ files:
|
|
1176
1169
|
- lib/avo/base_resource_tool.rb
|
1177
1170
|
- lib/avo/concerns/fetches_things.rb
|
1178
1171
|
- lib/avo/concerns/handles_field_args.rb
|
1172
|
+
- lib/avo/concerns/has_editable_controls.rb
|
1179
1173
|
- lib/avo/concerns/has_fields.rb
|
1180
1174
|
- lib/avo/concerns/has_html_attributes.rb
|
1181
|
-
- lib/avo/concerns/has_model.rb
|
1182
1175
|
- lib/avo/concerns/has_stimulus_controllers.rb
|
1183
1176
|
- lib/avo/concerns/is_resource_item.rb
|
1184
1177
|
- lib/avo/concerns/model_class_constantized.rb
|
1185
1178
|
- lib/avo/configuration.rb
|
1179
|
+
- lib/avo/configuration/branding.rb
|
1186
1180
|
- lib/avo/configuration/resource_configuration.rb
|
1187
1181
|
- lib/avo/dashboards/base_dashboard.rb
|
1188
1182
|
- lib/avo/dashboards/base_divider.rb
|
@@ -1269,6 +1263,16 @@ files:
|
|
1269
1263
|
- lib/avo/panel.rb
|
1270
1264
|
- lib/avo/panel_builder.rb
|
1271
1265
|
- lib/avo/reloader.rb
|
1266
|
+
- lib/avo/resources/controls/action.rb
|
1267
|
+
- lib/avo/resources/controls/actions_list.rb
|
1268
|
+
- lib/avo/resources/controls/back_button.rb
|
1269
|
+
- lib/avo/resources/controls/base_control.rb
|
1270
|
+
- lib/avo/resources/controls/delete_button.rb
|
1271
|
+
- lib/avo/resources/controls/detach_button.rb
|
1272
|
+
- lib/avo/resources/controls/edit_button.rb
|
1273
|
+
- lib/avo/resources/controls/execution_context.rb
|
1274
|
+
- lib/avo/resources/controls/items_holder.rb
|
1275
|
+
- lib/avo/resources/controls/link_to.rb
|
1272
1276
|
- lib/avo/services/authorization_service.rb
|
1273
1277
|
- lib/avo/services/uri_service.rb
|
1274
1278
|
- lib/avo/tab.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= output %>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<span class="first">
|
2
|
-
<%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: 'relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
|
3
|
-
</span>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<span class="last">
|
2
|
-
<%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote, class: 'ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
|
3
|
-
</span>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% if !current_page.last? %>
|
2
|
-
<%= link_to url, :id => 'pnnext',:remote => remote do %>
|
3
|
-
<button type="button" class="-ml-px relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
|
4
|
-
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
|
5
|
-
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
|
6
|
-
</svg>
|
7
|
-
</button>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<% url = resources_path(resource: @resource, page: page, keep_query_params: true) %>
|
2
|
-
<% if page.current? %>
|
3
|
-
<button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border bg-gray-100 text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 z-10 outline-none border-primary-300 active:bg-gray-100 transition ease-in-out duration-150">
|
4
|
-
<%= page %>
|
5
|
-
</button>
|
6
|
-
<% else %>
|
7
|
-
<%= link_to url, :remote => remote do %>
|
8
|
-
<button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
|
9
|
-
<%= page %>
|
10
|
-
</button>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% if !current_page.first? %>
|
2
|
-
<%= link_to url, :id => 'pnprev', :remote => remote do %>
|
3
|
-
<button type="button" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
|
4
|
-
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
|
5
|
-
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd"/>
|
6
|
-
</svg>
|
7
|
-
</button>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|