avo 2.49.0 → 3.0.0.beta1

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 (377) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +26 -25
  3. data/Gemfile.lock +179 -147
  4. data/README.md +1 -1
  5. data/app/assets/stylesheets/avo.base.css +0 -1
  6. data/app/assets/svgs/font.svg +1 -0
  7. data/app/assets/svgs/triangle-up.svg +1 -0
  8. data/app/components/avo/actions_component.html.erb +19 -5
  9. data/app/components/avo/actions_component.rb +37 -17
  10. data/app/components/avo/asset_manager/javascript_component.html.erb +3 -0
  11. data/app/components/avo/asset_manager/javascript_component.rb +13 -0
  12. data/app/components/avo/asset_manager/stylesheet_component.html.erb +3 -0
  13. data/app/components/avo/asset_manager/stylesheet_component.rb +13 -0
  14. data/app/components/avo/base_component.rb +15 -12
  15. data/app/components/avo/button_component.rb +20 -3
  16. data/app/components/avo/empty_state_component.rb +1 -1
  17. data/app/components/avo/field_wrapper_component.html.erb +1 -1
  18. data/app/components/avo/field_wrapper_component.rb +15 -26
  19. data/app/components/avo/fields/area_field/edit_component.html.erb +2 -2
  20. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +96 -118
  21. data/app/components/avo/fields/belongs_to_field/edit_component.rb +6 -17
  22. data/app/components/avo/fields/belongs_to_field/index_component.html.erb +1 -1
  23. data/app/components/avo/fields/belongs_to_field/show_component.rb +2 -2
  24. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  25. data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +3 -3
  26. data/app/components/avo/fields/common/badge_viewer_component.html.erb +24 -1
  27. data/app/components/avo/fields/common/badge_viewer_component.rb +0 -24
  28. data/app/components/avo/fields/common/boolean_group_component.html.erb +2 -2
  29. data/app/components/avo/fields/common/files/list_viewer_component.rb +3 -3
  30. data/app/components/avo/fields/common/files/view_type/{grid_item_component.html.erb → grid_component.html.erb} +2 -2
  31. data/app/components/avo/fields/common/files/view_type/{grid_item_component.rb → grid_component.rb} +4 -5
  32. data/app/components/avo/fields/common/files/view_type/{list_item_component.rb → list_component.rb} +1 -1
  33. data/app/components/avo/fields/edit_component.rb +1 -1
  34. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  35. data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
  36. data/app/components/avo/fields/has_one_field/index_component.html.erb +1 -1
  37. data/app/components/avo/fields/has_one_field/show_component.html.erb +3 -2
  38. data/app/components/avo/fields/has_one_field/show_component.rb +2 -2
  39. data/app/components/avo/fields/hidden_field/edit_component.html.erb +1 -2
  40. data/app/components/avo/fields/index_component.rb +5 -5
  41. data/app/components/avo/fields/preview_field/index_component.html.erb +10 -0
  42. data/app/components/avo/fields/preview_field/index_component.rb +4 -0
  43. data/app/components/avo/fields/select_field/edit_component.html.erb +1 -1
  44. data/app/components/avo/fields/show_component.rb +4 -1
  45. data/app/components/avo/fields/trix_field/edit_component.rb +1 -1
  46. data/app/components/avo/filters_component.html.erb +9 -3
  47. data/app/components/avo/filters_component.rb +4 -4
  48. data/app/components/avo/index/field_wrapper_component.rb +0 -12
  49. data/app/components/avo/index/grid_item_component.html.erb +13 -36
  50. data/app/components/avo/index/grid_item_component.rb +43 -16
  51. data/app/components/avo/index/resource_controls_component.html.erb +3 -81
  52. data/app/components/avo/index/resource_controls_component.rb +124 -17
  53. data/app/components/avo/index/resource_grid_component.html.erb +5 -3
  54. data/app/components/avo/index/resource_grid_component.rb +5 -2
  55. data/app/components/avo/index/resource_map_component.html.erb +1 -1
  56. data/app/components/avo/index/resource_map_component.rb +3 -3
  57. data/app/components/avo/index/resource_table_component.html.erb +5 -4
  58. data/app/components/avo/index/resource_table_component.rb +14 -20
  59. data/app/components/avo/index/table_row_component.html.erb +8 -4
  60. data/app/components/avo/index/table_row_component.rb +3 -2
  61. data/app/components/avo/item_switcher_component.rb +2 -2
  62. data/app/components/avo/modal_component.html.erb +7 -12
  63. data/app/components/avo/modal_component.rb +0 -21
  64. data/app/components/avo/paginator_component.html.erb +40 -29
  65. data/app/components/avo/paginator_component.rb +5 -23
  66. data/app/components/avo/panel_component.html.erb +8 -6
  67. data/app/components/avo/referrer_params_component.html.erb +1 -2
  68. data/app/components/avo/resource_component.rb +189 -14
  69. data/app/components/avo/resource_sidebar_component.html.erb +6 -2
  70. data/app/components/avo/resource_sidebar_component.rb +1 -1
  71. data/app/components/avo/sidebar/link_component.rb +1 -1
  72. data/app/components/avo/sidebar_component.html.erb +10 -3
  73. data/app/components/avo/sidebar_component.rb +5 -3
  74. data/app/components/avo/sidebar_profile_component.html.erb +15 -8
  75. data/app/components/avo/tab_group_component.html.erb +13 -7
  76. data/app/components/avo/tab_group_component.rb +1 -6
  77. data/app/components/avo/tab_switcher_component.html.erb +17 -40
  78. data/app/components/avo/tab_switcher_component.rb +4 -39
  79. data/app/components/avo/views/resource_edit_component.html.erb +12 -48
  80. data/app/components/avo/views/resource_edit_component.rb +7 -18
  81. data/app/components/avo/views/resource_index_component.html.erb +41 -47
  82. data/app/components/avo/views/resource_index_component.rb +62 -12
  83. data/app/components/avo/views/resource_show_component.html.erb +6 -149
  84. data/app/components/avo/views/resource_show_component.rb +6 -11
  85. data/app/controllers/avo/actions_controller.rb +27 -24
  86. data/app/controllers/avo/application_controller.rb +105 -151
  87. data/app/controllers/avo/associations_controller.rb +34 -43
  88. data/app/controllers/avo/attachments_controller.rb +4 -4
  89. data/app/controllers/avo/base_controller.rb +102 -102
  90. data/app/controllers/avo/debug_controller.rb +17 -5
  91. data/app/controllers/avo/home_controller.rb +1 -1
  92. data/app/controllers/avo/search_controller.rb +30 -51
  93. data/app/controllers/avo/team_users_controller.rb +4 -0
  94. data/app/controllers/concerns/avo/initializes_avo.rb +21 -0
  95. data/app/helpers/avo/application_helper.rb +15 -9
  96. data/app/helpers/avo/resources_helper.rb +1 -1
  97. data/app/helpers/avo/url_helpers.rb +27 -11
  98. data/app/javascript/avo.base.js +1 -0
  99. data/app/javascript/js/application.js +0 -3
  100. data/app/javascript/js/controllers/action_controller.js +5 -3
  101. data/app/javascript/js/controllers/actions_overflow_controller.js +62 -0
  102. data/app/javascript/js/controllers/fields/date_field_controller.js +3 -7
  103. data/app/javascript/js/controllers/fields/key_value_controller.js +1 -2
  104. data/app/javascript/js/controllers/filter_controller.js +1 -1
  105. data/app/javascript/js/controllers/input_autofocus_controller.js +12 -0
  106. data/app/javascript/js/controllers/preview_controller.js +24 -0
  107. data/app/javascript/js/controllers/search_controller.js +2 -2
  108. data/app/javascript/js/controllers/self_destroy_controller.js +7 -0
  109. data/app/javascript/js/controllers/toggle_controller.js +48 -0
  110. data/app/javascript/js/controllers.js +10 -6
  111. data/app/javascript/js/custom-stream-actions.js +15 -0
  112. data/app/views/avo/actions/keep_modal_open.turbo_stream.erb +5 -0
  113. data/app/views/avo/actions/show.html.erb +10 -7
  114. data/app/views/avo/associations/new.html.erb +2 -2
  115. data/app/views/avo/base/index.html.erb +3 -2
  116. data/app/views/avo/base/new.html.erb +2 -1
  117. data/app/views/avo/base/preview.html.erb +19 -0
  118. data/app/views/avo/base/show.html.erb +1 -1
  119. data/app/views/avo/debug/_valid_indicator.html.erb +9 -0
  120. data/app/views/avo/debug/report.html.erb +32 -17
  121. data/app/views/avo/debug/{index.html.erb → status.html.erb} +31 -14
  122. data/app/views/avo/partials/_custom_tools_alert.html.erb +2 -2
  123. data/app/views/avo/partials/_footer.html.erb +1 -1
  124. data/app/views/avo/partials/_javascript.html.erb +5 -0
  125. data/app/views/avo/partials/_logo.html.erb +1 -1
  126. data/app/views/avo/partials/_navbar.html.erb +3 -5
  127. data/app/views/avo/partials/_table_header.html.erb +5 -11
  128. data/app/views/layouts/avo/application.html.erb +4 -2
  129. data/avo.gemspec +11 -12
  130. data/bin/dev +1 -1
  131. data/bin/prod +0 -0
  132. data/config/i18n-tasks.yml +1 -1
  133. data/config/initializers/pagy.rb +0 -2
  134. data/config/master.key +1 -0
  135. data/config/routes.rb +6 -10
  136. data/db/factories.rb +7 -1
  137. data/lib/avo/action_model.rb +20 -0
  138. data/lib/avo/asset_manager.rb +30 -0
  139. data/lib/avo/base_action.rb +57 -42
  140. data/lib/avo/base_resource.rb +264 -227
  141. data/lib/avo/base_resource_tool.rb +9 -16
  142. data/lib/avo/concerns/breadcrumbs.rb +2 -2
  143. data/lib/avo/concerns/{can_replace_fields.rb → can_replace_items.rb} +5 -9
  144. data/lib/avo/concerns/filters_session_handler.rb +5 -3
  145. data/lib/avo/concerns/has_controls.rb +37 -0
  146. data/lib/avo/concerns/has_description.rb +23 -0
  147. data/lib/avo/concerns/has_item_type.rb +42 -0
  148. data/lib/avo/concerns/has_items.rb +325 -0
  149. data/lib/avo/concerns/{has_resource_stimulus_controllers.rb → has_stimulus_controllers.rb} +1 -1
  150. data/lib/avo/concerns/is_resource_item.rb +24 -36
  151. data/lib/avo/concerns/is_visible.rb +15 -0
  152. data/lib/avo/concerns/model_class_constantized.rb +0 -2
  153. data/lib/avo/concerns/visible_in_different_views.rb +126 -0
  154. data/lib/avo/configuration/branding.rb +0 -12
  155. data/lib/avo/configuration.rb +1 -37
  156. data/lib/avo/current.rb +39 -0
  157. data/lib/avo/dsl/field_parser.rb +1 -1
  158. data/lib/avo/dynamic_router.rb +18 -3
  159. data/lib/avo/engine.rb +35 -30
  160. data/lib/avo/error_manager.rb +25 -0
  161. data/lib/avo/execution_context.rb +10 -14
  162. data/lib/avo/fields/badge_field.rb +1 -1
  163. data/lib/avo/fields/base_field.rb +91 -106
  164. data/lib/avo/fields/belongs_to_field.rb +18 -22
  165. data/lib/avo/fields/concerns/file_authorization.rb +2 -2
  166. data/lib/avo/fields/concerns/handles_field_args.rb +49 -0
  167. data/lib/avo/fields/concerns/has_default.rb +1 -5
  168. data/lib/avo/fields/concerns/has_field_name.rb +22 -0
  169. data/lib/avo/fields/concerns/has_html_attributes.rb +110 -0
  170. data/lib/avo/fields/concerns/is_disabled.rb +1 -5
  171. data/lib/avo/fields/concerns/is_readonly.rb +1 -5
  172. data/lib/avo/fields/concerns/is_required.rb +5 -7
  173. data/lib/avo/fields/concerns/is_searchable.rb +13 -0
  174. data/lib/avo/fields/concerns/use_resource.rb +5 -1
  175. data/lib/avo/fields/country_field.rb +4 -0
  176. data/lib/avo/fields/date_time_field.rb +3 -14
  177. data/lib/avo/fields/field_manager.rb +55 -0
  178. data/lib/avo/fields/has_and_belongs_to_many_field.rb +1 -2
  179. data/lib/avo/fields/has_base_field.rb +12 -15
  180. data/lib/avo/fields/has_many_field.rb +5 -2
  181. data/lib/avo/fields/has_one_field.rb +6 -10
  182. data/lib/avo/fields/heading_field.rb +4 -1
  183. data/lib/avo/fields/hidden_field.rb +1 -1
  184. data/lib/avo/fields/id_field.rb +1 -1
  185. data/lib/avo/fields/location_field.rb +8 -8
  186. data/lib/avo/fields/password_field.rb +1 -1
  187. data/lib/avo/fields/preview_field.rb +14 -0
  188. data/lib/avo/fields/select_field.rb +12 -8
  189. data/lib/avo/fields/status_field.rb +4 -0
  190. data/lib/avo/filters/base_filter.rb +8 -4
  191. data/lib/avo/html/builder.rb +7 -8
  192. data/lib/avo/item_grapher.rb +78 -0
  193. data/lib/avo/licensing/h_q.rb +8 -67
  194. data/lib/avo/licensing/license.rb +1 -1
  195. data/lib/avo/licensing/pro_license.rb +1 -7
  196. data/lib/avo/loaders/fields_loader.rb +7 -1
  197. data/lib/avo/plugin.rb +16 -0
  198. data/lib/avo/plugin_manager.rb +56 -0
  199. data/lib/avo/prefixed_test_helpers.rb +20 -0
  200. data/lib/avo/reloader.rb +3 -0
  201. data/lib/avo/resources/controls/actions_list.rb +7 -12
  202. data/lib/avo/resources/controls/attach_button.rb +15 -0
  203. data/lib/avo/resources/controls/back_button.rb +1 -1
  204. data/lib/avo/resources/controls/base_control.rb +15 -49
  205. data/lib/avo/resources/controls/create_button.rb +15 -0
  206. data/lib/avo/resources/controls/delete_button.rb +5 -1
  207. data/lib/avo/resources/controls/detach_button.rb +4 -1
  208. data/lib/avo/resources/controls/edit_button.rb +4 -1
  209. data/lib/avo/resources/controls/order_controls.rb +8 -0
  210. data/lib/avo/resources/controls/save_button.rb +13 -0
  211. data/lib/avo/resources/controls/show_button.rb +15 -0
  212. data/lib/avo/resources/items/holder.rb +84 -0
  213. data/lib/avo/resources/items/item_group.rb +49 -0
  214. data/lib/avo/resources/items/main_panel.rb +2 -0
  215. data/lib/avo/resources/items/panel.rb +2 -0
  216. data/lib/avo/resources/items/row.rb +54 -0
  217. data/lib/avo/resources/items/sidebar.rb +47 -0
  218. data/lib/avo/resources/items/tab.rb +60 -0
  219. data/lib/avo/resources/items/tab_group.rb +68 -0
  220. data/lib/avo/resources/resource_manager.rb +174 -0
  221. data/lib/avo/services/authorization_service.rb +11 -110
  222. data/lib/avo/services/debug_service.rb +93 -0
  223. data/lib/avo/services/encryption_service.rb +5 -1
  224. data/lib/avo/services/telemetry_service.rb +85 -0
  225. data/lib/avo/test_helpers.rb +362 -0
  226. data/lib/avo/tools/tool_manager.rb +30 -0
  227. data/lib/avo/version.rb +1 -1
  228. data/lib/avo.rb +115 -24
  229. data/lib/generators/avo/action_generator.rb +8 -8
  230. data/lib/generators/avo/card_generator.rb +27 -0
  231. data/lib/generators/avo/filter_generator.rb +8 -8
  232. data/lib/generators/avo/resource_generator.rb +4 -4
  233. data/lib/generators/avo/scope_generator.rb +15 -0
  234. data/lib/generators/avo/tailwindcss/install_generator.rb +1 -15
  235. data/lib/generators/avo/templates/action.tt +8 -6
  236. data/lib/generators/avo/templates/cards/chartkick_card.tt +1 -1
  237. data/lib/generators/avo/templates/cards/chartkick_card_sample.tt +1 -1
  238. data/lib/generators/avo/templates/cards/metric_card.tt +1 -1
  239. data/lib/generators/avo/templates/cards/metric_card_sample.tt +1 -1
  240. data/lib/generators/avo/templates/cards/partial_card.tt +1 -1
  241. data/lib/generators/avo/templates/cards/partial_card_sample.tt +1 -1
  242. data/lib/generators/avo/templates/dashboards/dashboard.tt +5 -3
  243. data/lib/generators/avo/templates/field/%singular_name%_field.rb.tt +1 -1
  244. data/lib/generators/avo/templates/filters/boolean_filter.tt +1 -1
  245. data/lib/generators/avo/templates/filters/multiple_select_filter.tt +1 -1
  246. data/lib/generators/avo/templates/filters/select_filter.tt +1 -1
  247. data/lib/generators/avo/templates/filters/text_filter.tt +1 -1
  248. data/lib/generators/avo/templates/initializer/avo.tt +1 -9
  249. data/lib/generators/avo/templates/locales/avo.ar.yml +6 -6
  250. data/lib/generators/avo/templates/locales/avo.en.yml +4 -5
  251. data/lib/generators/avo/templates/locales/avo.fr.yml +1 -2
  252. data/lib/generators/avo/templates/locales/avo.nb.yml +1 -2
  253. data/lib/generators/avo/templates/locales/avo.nn.yml +1 -2
  254. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +1 -2
  255. data/lib/generators/avo/templates/locales/avo.pt.yml +1 -2
  256. data/lib/generators/avo/templates/locales/avo.ro.yml +6 -7
  257. data/lib/generators/avo/templates/locales/avo.tr.yml +1 -2
  258. data/lib/generators/avo/templates/resource/resource.tt +7 -7
  259. data/lib/generators/avo/templates/resource_tools/partial.tt +4 -4
  260. data/lib/generators/avo/templates/resource_tools/resource_tool.tt +1 -1
  261. data/lib/generators/avo/templates/scope.tt +6 -0
  262. data/lib/generators/avo/templates/tool/view.tt +2 -2
  263. data/lib/tasks/avo_tasks.rake +27 -0
  264. data/public/avo-assets/avo.base.css +1810 -1189
  265. data/public/avo-assets/avo.base.js +217 -307
  266. data/public/avo-assets/avo.base.js.map +3 -3
  267. data/public/avo-assets/avo.css +9744 -0
  268. data/public/avo-assets/avo.js +513 -0
  269. data/public/avo-assets/avo.js.map +7 -0
  270. metadata +102 -146
  271. data/app/assets/stylesheets/css/tags.css +0 -32
  272. data/app/components/avo/card_component.html.erb +0 -46
  273. data/app/components/avo/card_component.rb +0 -25
  274. data/app/components/avo/dashboards/divider_component.html.erb +0 -9
  275. data/app/components/avo/dashboards/divider_component.rb +0 -19
  276. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +0 -47
  277. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +0 -95
  278. data/app/components/avo/fields/tags_field/edit_component.html.erb +0 -35
  279. data/app/components/avo/fields/tags_field/edit_component.rb +0 -4
  280. data/app/components/avo/fields/tags_field/index_component.html.erb +0 -10
  281. data/app/components/avo/fields/tags_field/index_component.rb +0 -9
  282. data/app/components/avo/fields/tags_field/show_component.html.erb +0 -7
  283. data/app/components/avo/fields/tags_field/show_component.rb +0 -5
  284. data/app/components/avo/fields/tags_field/tag_component.html.erb +0 -9
  285. data/app/components/avo/fields/tags_field/tag_component.rb +0 -11
  286. data/app/components/avo/index/ordering/base_component.rb +0 -9
  287. data/app/components/avo/index/ordering/button_component.html.erb +0 -11
  288. data/app/components/avo/index/ordering/button_component.rb +0 -23
  289. data/app/components/avo/index/ordering/buttons_component.html.erb +0 -32
  290. data/app/components/avo/index/ordering/buttons_component.rb +0 -47
  291. data/app/components/avo/sidebar/item_switcher_component.html.erb +0 -16
  292. data/app/components/avo/sidebar/item_switcher_component.rb +0 -15
  293. data/app/controllers/avo/dashboards/cards_controller.rb +0 -37
  294. data/app/controllers/avo/dashboards_controller.rb +0 -22
  295. data/app/controllers/avo/reorder_controller.rb +0 -25
  296. data/app/javascript/js/controllers/base_controller.js +0 -22
  297. data/app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js +0 -51
  298. data/app/javascript/js/controllers/fields/tags_field_controller.js +0 -127
  299. data/app/javascript/js/controllers/toggle_panel_controller.js +0 -18
  300. data/app/views/avo/base/_new_via_belongs_to.html.erb +0 -12
  301. data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +0 -8
  302. data/app/views/avo/base/create_fail_action.turbo_stream.erb +0 -13
  303. data/app/views/avo/dashboards/cards/_chartkick_card.html.erb +0 -3
  304. data/app/views/avo/dashboards/cards/_metric_card.html.erb +0 -5
  305. data/app/views/avo/dashboards/cards/chartkick_missing.html.erb +0 -14
  306. data/app/views/avo/dashboards/cards/show.html.erb +0 -3
  307. data/app/views/avo/dashboards/show.html.erb +0 -38
  308. data/app/views/avo/partials/_flash_alerts.turbo_stream.erb +0 -3
  309. data/app/views/avo/partials/_global_search.html.erb +0 -19
  310. data/app/views/avo/sidebar/_license_warnings.html.erb +0 -6
  311. data/lib/avo/app.rb +0 -237
  312. data/lib/avo/base_card.rb +0 -161
  313. data/lib/avo/concerns/fetches_things.rb +0 -150
  314. data/lib/avo/concerns/handles_field_args.rb +0 -47
  315. data/lib/avo/concerns/has_action_stimulus_controllers.rb +0 -15
  316. data/lib/avo/concerns/has_editable_controls.rb +0 -34
  317. data/lib/avo/concerns/has_fields.rb +0 -334
  318. data/lib/avo/concerns/has_html_attributes.rb +0 -123
  319. data/lib/avo/concerns/pagination.rb +0 -53
  320. data/lib/avo/concerns/policy_helpers.rb +0 -31
  321. data/lib/avo/concerns/visible_in_dashboard.rb +0 -31
  322. data/lib/avo/concerns/visible_items.rb +0 -51
  323. data/lib/avo/dashboards/base_dashboard.rb +0 -89
  324. data/lib/avo/dashboards/base_divider.rb +0 -35
  325. data/lib/avo/dashboards/chartkick_card.rb +0 -77
  326. data/lib/avo/dashboards/dashboard_card.rb +0 -6
  327. data/lib/avo/dashboards/metric_card.rb +0 -9
  328. data/lib/avo/dashboards/partial_card.rb +0 -7
  329. data/lib/avo/fields/field_extensions/has_field_name.rb +0 -19
  330. data/lib/avo/fields/field_extensions/visible_in_different_views.rb +0 -111
  331. data/lib/avo/fields/tags_field.rb +0 -102
  332. data/lib/avo/grid_collector.rb +0 -42
  333. data/lib/avo/hosts/association_scope_host.rb +0 -8
  334. data/lib/avo/hosts/base_host.rb +0 -25
  335. data/lib/avo/hosts/card_visibility.rb +0 -20
  336. data/lib/avo/hosts/dashboard_card.rb +0 -22
  337. data/lib/avo/hosts/dashboard_visibility.rb +0 -19
  338. data/lib/avo/hosts/ordering.rb +0 -22
  339. data/lib/avo/hosts/record_host.rb +0 -7
  340. data/lib/avo/hosts/resource_record_host.rb +0 -7
  341. data/lib/avo/hosts/resource_view_record_host.rb +0 -7
  342. data/lib/avo/hosts/search_scope_host.rb +0 -7
  343. data/lib/avo/hosts/view_record_host.rb +0 -7
  344. data/lib/avo/hosts/visibility_host.rb +0 -12
  345. data/lib/avo/items_holder.rb +0 -96
  346. data/lib/avo/main_panel.rb +0 -3
  347. data/lib/avo/menu/base_item.rb +0 -25
  348. data/lib/avo/menu/builder.rb +0 -82
  349. data/lib/avo/menu/dashboard.rb +0 -22
  350. data/lib/avo/menu/group.rb +0 -2
  351. data/lib/avo/menu/link.rb +0 -6
  352. data/lib/avo/menu/menu.rb +0 -2
  353. data/lib/avo/menu/resource.rb +0 -22
  354. data/lib/avo/menu/section.rb +0 -2
  355. data/lib/avo/panel.rb +0 -24
  356. data/lib/avo/panel_builder.rb +0 -25
  357. data/lib/avo/resources/controls/action.rb +0 -38
  358. data/lib/avo/resources/controls/execution_context.rb +0 -58
  359. data/lib/avo/resources/controls/items_holder.rb +0 -19
  360. data/lib/avo/resources/controls/link_to.rb +0 -27
  361. data/lib/avo/row.rb +0 -26
  362. data/lib/avo/row_builder.rb +0 -24
  363. data/lib/avo/services/authorization_clients/nil_client.rb +0 -37
  364. data/lib/avo/services/authorization_clients/pundit_client.rb +0 -51
  365. data/lib/avo/sidebar.rb +0 -30
  366. data/lib/avo/sidebar_builder.rb +0 -24
  367. data/lib/avo/tab.rb +0 -72
  368. data/lib/avo/tab_builder.rb +0 -25
  369. data/lib/avo/tab_group.rb +0 -42
  370. data/lib/avo/tab_group_builder.rb +0 -43
  371. data/lib/avo/tools_manager.rb +0 -11
  372. data/lib/generators/avo/card/chartkick_generator.rb +0 -18
  373. data/lib/generators/avo/card/metric_generator.rb +0 -18
  374. data/lib/generators/avo/card/partial_generator.rb +0 -19
  375. data/lib/generators/avo/templates/locales/avo.es.yml +0 -126
  376. data/lib/generators/avo/templates/standalone_action.tt +0 -8
  377. /data/app/components/avo/fields/common/files/view_type/{list_item_component.html.erb → list_component.html.erb} +0 -0
data/Gemfile.lock CHANGED
@@ -1,10 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.49.0)
5
- actionview (>= 6.0)
4
+ avo (3.0.0.beta1)
5
+ actionview (>= 6.1)
6
6
  active_link_to
7
- activerecord (>= 6.0)
7
+ activerecord (>= 6.1)
8
+ activesupport (>= 6.1)
8
9
  addressable
9
10
  docile
10
11
  dry-initializer
@@ -13,47 +14,51 @@ PATH
13
14
  meta-tags
14
15
  pagy
15
16
  turbo-rails
16
- turbo_power (~> 0.5.0)
17
- view_component (>= 2.54.0)
17
+ view_component (>= 3.0.0)
18
18
  zeitwerk (>= 2.6.2)
19
19
 
20
+ PATH
21
+ remote: pluggy
22
+ specs:
23
+ pluggy (0.0.1)
24
+
20
25
  GEM
21
26
  remote: https://rubygems.org/
22
27
  specs:
23
- actioncable (6.1.7.6)
24
- actionpack (= 6.1.7.6)
25
- activesupport (= 6.1.7.6)
28
+ actioncable (6.1.7.3)
29
+ actionpack (= 6.1.7.3)
30
+ activesupport (= 6.1.7.3)
26
31
  nio4r (~> 2.0)
27
32
  websocket-driver (>= 0.6.1)
28
- actionmailbox (6.1.7.6)
29
- actionpack (= 6.1.7.6)
30
- activejob (= 6.1.7.6)
31
- activerecord (= 6.1.7.6)
32
- activestorage (= 6.1.7.6)
33
- activesupport (= 6.1.7.6)
33
+ actionmailbox (6.1.7.3)
34
+ actionpack (= 6.1.7.3)
35
+ activejob (= 6.1.7.3)
36
+ activerecord (= 6.1.7.3)
37
+ activestorage (= 6.1.7.3)
38
+ activesupport (= 6.1.7.3)
34
39
  mail (>= 2.7.1)
35
- actionmailer (6.1.7.6)
36
- actionpack (= 6.1.7.6)
37
- actionview (= 6.1.7.6)
38
- activejob (= 6.1.7.6)
39
- activesupport (= 6.1.7.6)
40
+ actionmailer (6.1.7.3)
41
+ actionpack (= 6.1.7.3)
42
+ actionview (= 6.1.7.3)
43
+ activejob (= 6.1.7.3)
44
+ activesupport (= 6.1.7.3)
40
45
  mail (~> 2.5, >= 2.5.4)
41
46
  rails-dom-testing (~> 2.0)
42
- actionpack (6.1.7.6)
43
- actionview (= 6.1.7.6)
44
- activesupport (= 6.1.7.6)
47
+ actionpack (6.1.7.3)
48
+ actionview (= 6.1.7.3)
49
+ activesupport (= 6.1.7.3)
45
50
  rack (~> 2.0, >= 2.0.9)
46
51
  rack-test (>= 0.6.3)
47
52
  rails-dom-testing (~> 2.0)
48
53
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
49
- actiontext (6.1.7.6)
50
- actionpack (= 6.1.7.6)
51
- activerecord (= 6.1.7.6)
52
- activestorage (= 6.1.7.6)
53
- activesupport (= 6.1.7.6)
54
+ actiontext (6.1.7.3)
55
+ actionpack (= 6.1.7.3)
56
+ activerecord (= 6.1.7.3)
57
+ activestorage (= 6.1.7.3)
58
+ activesupport (= 6.1.7.3)
54
59
  nokogiri (>= 1.8.5)
55
- actionview (6.1.7.6)
56
- activesupport (= 6.1.7.6)
60
+ actionview (6.1.7.3)
61
+ activesupport (= 6.1.7.3)
57
62
  builder (~> 3.1)
58
63
  erubi (~> 1.4)
59
64
  rails-dom-testing (~> 2.0)
@@ -63,22 +68,22 @@ GEM
63
68
  addressable
64
69
  active_median (0.3.3)
65
70
  activesupport (>= 5.2)
66
- activejob (6.1.7.6)
67
- activesupport (= 6.1.7.6)
71
+ activejob (6.1.7.3)
72
+ activesupport (= 6.1.7.3)
68
73
  globalid (>= 0.3.6)
69
- activemodel (6.1.7.6)
70
- activesupport (= 6.1.7.6)
71
- activerecord (6.1.7.6)
72
- activemodel (= 6.1.7.6)
73
- activesupport (= 6.1.7.6)
74
- activestorage (6.1.7.6)
75
- actionpack (= 6.1.7.6)
76
- activejob (= 6.1.7.6)
77
- activerecord (= 6.1.7.6)
78
- activesupport (= 6.1.7.6)
74
+ activemodel (6.1.7.3)
75
+ activesupport (= 6.1.7.3)
76
+ activerecord (6.1.7.3)
77
+ activemodel (= 6.1.7.3)
78
+ activesupport (= 6.1.7.3)
79
+ activestorage (6.1.7.3)
80
+ actionpack (= 6.1.7.3)
81
+ activejob (= 6.1.7.3)
82
+ activerecord (= 6.1.7.3)
83
+ activesupport (= 6.1.7.3)
79
84
  marcel (~> 1.0)
80
85
  mini_mime (>= 1.1.0)
81
- activesupport (6.1.7.6)
86
+ activesupport (6.1.7.3)
82
87
  concurrent-ruby (~> 1.0, >= 1.0.2)
83
88
  i18n (>= 1.6, < 2)
84
89
  minitest (>= 5.1)
@@ -86,9 +91,9 @@ GEM
86
91
  zeitwerk (~> 2.3)
87
92
  acts-as-taggable-on (9.0.1)
88
93
  activerecord (>= 6.0, < 7.1)
89
- acts_as_list (1.1.0)
94
+ acts_as_list (1.0.4)
90
95
  activerecord (>= 4.2)
91
- addressable (2.8.5)
96
+ addressable (2.8.1)
92
97
  public_suffix (>= 2.0.2, < 6.0)
93
98
  annotate (3.2.0)
94
99
  activerecord (>= 3.2, < 8.0)
@@ -109,30 +114,31 @@ GEM
109
114
  aws-sdk-kms (1.58.0)
110
115
  aws-sdk-core (~> 3, >= 3.127.0)
111
116
  aws-sigv4 (~> 1.1)
112
- aws-sdk-s3 (1.116.0)
117
+ aws-sdk-s3 (1.114.0)
113
118
  aws-sdk-core (~> 3, >= 3.127.0)
114
119
  aws-sdk-kms (~> 1)
115
120
  aws-sigv4 (~> 1.4)
116
121
  aws-sigv4 (1.5.1)
117
122
  aws-eventstream (~> 1, >= 1.0.2)
123
+ backport (1.2.0)
118
124
  bcrypt (3.1.18)
119
- better_html (1.0.16)
120
- actionview (>= 4.0)
121
- activesupport (>= 4.0)
125
+ benchmark (0.2.0)
126
+ better_html (2.0.1)
127
+ actionview (>= 6.0)
128
+ activesupport (>= 6.0)
122
129
  ast (~> 2.0)
123
130
  erubi (~> 1.4)
124
- html_tokenizer (~> 0.0.6)
125
131
  parser (>= 2.4)
126
132
  smart_properties
127
133
  bindex (0.8.1)
128
- bootsnap (1.16.0)
134
+ bootsnap (1.13.0)
129
135
  msgpack (~> 1.2)
130
- brakeman (5.4.0)
136
+ brakeman (5.3.1)
131
137
  builder (3.2.4)
132
138
  bump (0.10.0)
133
139
  bundler-integrity (1.0.9)
134
140
  byebug (11.1.3)
135
- capybara (3.39.2)
141
+ capybara (3.38.0)
136
142
  addressable
137
143
  matrix
138
144
  mini_mime (>= 0.1.3)
@@ -142,9 +148,9 @@ GEM
142
148
  regexp_parser (>= 1.5, < 3.0)
143
149
  xpath (~> 3.2)
144
150
  chartkick (4.2.1)
151
+ childprocess (4.1.0)
145
152
  concurrent-ruby (1.2.2)
146
- countries (4.2.3)
147
- i18n_data (~> 0.16.0)
153
+ countries (5.1.2)
148
154
  sixarm_ruby_unaccent (~> 1.1)
149
155
  crack (0.4.5)
150
156
  rexml
@@ -158,19 +164,21 @@ GEM
158
164
  database_cleaner-core (~> 2.0.0)
159
165
  database_cleaner-core (2.0.1)
160
166
  date (3.3.3)
161
- devise (4.9.0)
167
+ devise (4.8.1)
162
168
  bcrypt (~> 3.0)
163
169
  orm_adapter (~> 0.1)
164
170
  railties (>= 4.1.0)
165
171
  responders
166
172
  warden (~> 1.2.3)
167
173
  diff-lcs (1.5.0)
174
+ digest (3.1.1)
168
175
  docile (1.4.0)
169
176
  dotenv (2.8.1)
170
177
  dotenv-rails (2.8.1)
171
178
  dotenv (= 2.8.1)
172
179
  railties (>= 3.2)
173
180
  dry-initializer (3.1.1)
181
+ e2mmap (0.1.0)
174
182
  erb-formatter (0.3.0)
175
183
  erubi (1.12.0)
176
184
  factory_bot (6.2.1)
@@ -193,18 +201,17 @@ GEM
193
201
  activesupport (>= 5.2)
194
202
  hashdiff (1.0.1)
195
203
  hashids (1.0.6)
196
- highline (2.1.0)
204
+ highline (2.0.3)
197
205
  hightop (0.3.0)
198
206
  activesupport (>= 5.2)
199
207
  hotwire-livereload (1.2.3)
200
208
  listen (>= 3.0.0)
201
209
  rails (>= 6.0.0)
202
- html_tokenizer (0.0.7)
203
210
  htmlbeautifier (1.4.2)
204
- httparty (0.21.0)
205
- mini_mime (>= 1.0.0)
211
+ httparty (0.20.0)
212
+ mime-types (~> 3.0)
206
213
  multi_xml (>= 0.5.2)
207
- i18n (1.14.1)
214
+ i18n (1.12.0)
208
215
  concurrent-ruby (~> 1.0)
209
216
  i18n-tasks (1.0.12)
210
217
  activesupport (>= 4.0.2)
@@ -217,8 +224,6 @@ GEM
217
224
  rails-i18n
218
225
  rainbow (>= 2.2.2, < 4.0)
219
226
  terminal-table (>= 1.5.1)
220
- i18n_data (0.16.0)
221
- simple_po_parser (~> 1.1)
222
227
  image_processing (1.12.2)
223
228
  mini_magick (>= 4.9.5, < 5)
224
229
  ruby-vips (>= 2.0.17, < 3)
@@ -227,124 +232,130 @@ GEM
227
232
  nokogiri (>= 1.6)
228
233
  iso (0.4.0)
229
234
  i18n
235
+ jaro_winkler (1.5.4)
230
236
  jmespath (1.6.1)
231
237
  jsbundling-rails (1.0.3)
232
238
  railties (>= 6.0.0)
233
239
  json (2.6.2)
234
- launchy (2.5.2)
235
- addressable (~> 2.8)
236
- listen (3.8.0)
240
+ kramdown (2.4.0)
241
+ rexml
242
+ kramdown-parser-gfm (1.1.0)
243
+ kramdown (~> 2.0)
244
+ launchy (2.5.0)
245
+ addressable (~> 2.7)
246
+ listen (3.7.1)
237
247
  rb-fsevent (~> 0.10, >= 0.10.3)
238
248
  rb-inotify (~> 0.9, >= 0.9.10)
239
- loofah (2.21.3)
249
+ loofah (2.20.0)
240
250
  crass (~> 1.0.2)
241
- nokogiri (>= 1.12.0)
251
+ nokogiri (>= 1.5.9)
242
252
  mail (2.8.1)
243
253
  mini_mime (>= 0.1.1)
244
254
  net-imap
245
255
  net-pop
246
256
  net-smtp
247
- manifester (0.1.8)
248
- rails (>= 6.0)
249
- zeitwerk
250
257
  mapkick-rb (0.1.4)
251
258
  marcel (1.0.2)
252
259
  matrix (0.4.2)
253
- meta-tags (2.18.0)
260
+ meta-tags (2.17.0)
254
261
  actionpack (>= 3.2.0, < 7.1)
255
262
  method_source (1.0.0)
256
- mini_magick (4.12.0)
257
- mini_mime (1.1.5)
258
- mini_portile2 (2.8.4)
259
- minitest (5.19.0)
263
+ mime-types (3.4.1)
264
+ mime-types-data (~> 3.2015)
265
+ mime-types-data (3.2022.0105)
266
+ mini_magick (4.11.0)
267
+ mini_mime (1.1.2)
268
+ mini_portile2 (2.8.1)
269
+ minitest (5.18.0)
260
270
  msgpack (1.5.6)
261
271
  multi_xml (0.6.0)
262
- net-imap (0.3.7)
272
+ net-imap (0.3.4)
263
273
  date
264
274
  net-protocol
265
275
  net-pop (0.1.2)
266
276
  net-protocol
267
- net-protocol (0.2.1)
277
+ net-protocol (0.1.3)
268
278
  timeout
269
- net-smtp (0.3.3)
279
+ net-smtp (0.3.1)
280
+ digest
270
281
  net-protocol
282
+ timeout
271
283
  nio4r (2.5.9)
272
- nokogiri (1.16.0)
273
- mini_portile2 (~> 2.8.2)
284
+ nokogiri (1.14.3)
285
+ mini_portile2 (~> 2.8.0)
274
286
  racc (~> 1.4)
275
- nokogiri (1.16.0-x86_64-linux)
287
+ nokogiri (1.14.3-x86_64-linux)
276
288
  racc (~> 1.4)
277
289
  orm_adapter (0.5.0)
278
- pagy (6.0.4)
290
+ pagy (6.0.3)
279
291
  parallel (1.22.1)
280
- parser (3.2.0.0)
292
+ parser (3.1.2.1)
281
293
  ast (~> 2.4.1)
282
- pg (1.4.6)
294
+ pg (1.4.3)
283
295
  prefixed_ids (1.4.0)
284
296
  hashids (>= 1.0.0, < 2.0.0)
285
297
  rails (>= 6.0.0)
286
- public_suffix (5.0.3)
287
- puma (5.6.7)
298
+ public_suffix (5.0.1)
299
+ puma (6.0.2)
288
300
  nio4r (~> 2.0)
289
- pundit (2.2.0)
290
- activesupport (>= 3.0.0)
291
- racc (1.7.1)
292
- rack (2.2.8)
301
+ racc (1.6.2)
302
+ rack (2.2.6.4)
293
303
  rack-test (2.1.0)
294
304
  rack (>= 1.3)
295
- rails (6.1.7.6)
296
- actioncable (= 6.1.7.6)
297
- actionmailbox (= 6.1.7.6)
298
- actionmailer (= 6.1.7.6)
299
- actionpack (= 6.1.7.6)
300
- actiontext (= 6.1.7.6)
301
- actionview (= 6.1.7.6)
302
- activejob (= 6.1.7.6)
303
- activemodel (= 6.1.7.6)
304
- activerecord (= 6.1.7.6)
305
- activestorage (= 6.1.7.6)
306
- activesupport (= 6.1.7.6)
305
+ rails (6.1.7.3)
306
+ actioncable (= 6.1.7.3)
307
+ actionmailbox (= 6.1.7.3)
308
+ actionmailer (= 6.1.7.3)
309
+ actionpack (= 6.1.7.3)
310
+ actiontext (= 6.1.7.3)
311
+ actionview (= 6.1.7.3)
312
+ activejob (= 6.1.7.3)
313
+ activemodel (= 6.1.7.3)
314
+ activerecord (= 6.1.7.3)
315
+ activestorage (= 6.1.7.3)
316
+ activesupport (= 6.1.7.3)
307
317
  bundler (>= 1.15.0)
308
- railties (= 6.1.7.6)
318
+ railties (= 6.1.7.3)
309
319
  sprockets-rails (>= 2.0.0)
310
320
  rails-controller-testing (1.0.5)
311
321
  actionpack (>= 5.0.1.rc1)
312
322
  actionview (>= 5.0.1.rc1)
313
323
  activesupport (>= 5.0.1.rc1)
314
- rails-dom-testing (2.2.0)
315
- activesupport (>= 5.0.0)
316
- minitest
324
+ rails-dom-testing (2.0.3)
325
+ activesupport (>= 4.2.0)
317
326
  nokogiri (>= 1.6)
318
- rails-html-sanitizer (1.6.0)
319
- loofah (~> 2.21)
320
- nokogiri (~> 1.14)
327
+ rails-html-sanitizer (1.5.0)
328
+ loofah (~> 2.19, >= 2.19.1)
321
329
  rails-i18n (7.0.5)
322
330
  i18n (>= 0.7, < 2)
323
331
  railties (>= 6.0.0, < 8)
324
- railties (6.1.7.6)
325
- actionpack (= 6.1.7.6)
326
- activesupport (= 6.1.7.6)
332
+ railties (6.1.7.3)
333
+ actionpack (= 6.1.7.3)
334
+ activesupport (= 6.1.7.3)
327
335
  method_source
328
336
  rake (>= 12.2)
329
337
  thor (~> 1.0)
330
338
  rainbow (3.1.1)
331
339
  rake (13.0.6)
332
- ransack (4.0.0)
333
- activerecord (>= 6.1.5)
334
- activesupport (>= 6.1.5)
340
+ ransack (3.1.0)
341
+ activerecord (>= 6.0.4)
342
+ activesupport (>= 6.0.4)
335
343
  i18n
336
- rb-fsevent (0.11.2)
344
+ rb-fsevent (0.11.1)
337
345
  rb-inotify (0.10.1)
338
346
  ffi (~> 1.0)
339
- redis (4.8.1)
340
- regexp_parser (2.8.1)
347
+ redis (4.8.0)
348
+ regexp_parser (2.6.1)
341
349
  responders (3.0.1)
342
350
  actionpack (>= 5.0)
343
351
  railties (>= 5.0)
344
- rexml (3.2.6)
352
+ reverse_markdown (2.1.1)
353
+ nokogiri
354
+ rexml (3.2.5)
355
+ ripper-tags (0.9.1)
345
356
  rspec-core (3.11.0)
346
357
  rspec-support (~> 3.11.0)
347
- rspec-expectations (3.11.1)
358
+ rspec-expectations (3.11.0)
348
359
  diff-lcs (>= 1.2.0, < 2.0)
349
360
  rspec-support (~> 3.11.0)
350
361
  rspec-mocks (3.11.1)
@@ -359,7 +370,7 @@ GEM
359
370
  rspec-mocks (~> 3.10)
360
371
  rspec-support (~> 3.10)
361
372
  rspec-support (3.11.0)
362
- rubocop (1.35.1)
373
+ rubocop (1.35.0)
363
374
  json (~> 2.3)
364
375
  parallel (~> 1.10)
365
376
  parser (>= 3.1.2.1)
@@ -374,20 +385,20 @@ GEM
374
385
  rubocop-performance (1.14.3)
375
386
  rubocop (>= 1.7.0, < 2.0)
376
387
  rubocop-ast (>= 0.4.0)
377
- rubocop-shopify (2.5.0)
378
- rubocop (~> 1.25)
388
+ rubocop-shopify (2.9.0)
389
+ rubocop (~> 1.33)
379
390
  ruby-debug-ide (0.7.3)
380
391
  rake (>= 0.8.1)
381
392
  ruby-progressbar (1.11.0)
382
393
  ruby-vips (2.1.4)
383
394
  ffi (~> 1.12)
384
395
  rubyzip (2.3.2)
385
- selenium-webdriver (4.10.0)
396
+ selenium-webdriver (4.5.0)
397
+ childprocess (>= 0.5, < 5.0)
386
398
  rexml (~> 3.2, >= 3.2.5)
387
399
  rubyzip (>= 1.2.2, < 3.0)
388
400
  websocket (~> 1.0)
389
- simple_po_parser (1.1.6)
390
- simplecov (0.22.0)
401
+ simplecov (0.21.2)
391
402
  docile (~> 1.1)
392
403
  simplecov-html (~> 0.11)
393
404
  simplecov_json_formatter (~> 0.1)
@@ -398,7 +409,25 @@ GEM
398
409
  simplecov_json_formatter (0.1.4)
399
410
  sixarm_ruby_unaccent (1.2.0)
400
411
  smart_properties (1.17.0)
401
- spring (3.1.1)
412
+ solargraph (0.44.3)
413
+ backport (~> 1.2)
414
+ benchmark
415
+ bundler (>= 1.17.2)
416
+ diff-lcs (~> 1.4)
417
+ e2mmap
418
+ jaro_winkler (~> 1.5)
419
+ kramdown (~> 2.3)
420
+ kramdown-parser-gfm (~> 1.1)
421
+ parser (~> 3.0)
422
+ reverse_markdown (>= 1.0.5, < 3)
423
+ rubocop (>= 0.52)
424
+ thor (~> 1.0)
425
+ tilt (~> 2.0)
426
+ yard (~> 0.9, >= 0.9.24)
427
+ solargraph-rails (1.1.0)
428
+ activesupport
429
+ solargraph
430
+ spring (4.0.0)
402
431
  spring-commands-rspec (1.0.4)
403
432
  spring (>= 0.9.1)
404
433
  sprockets (4.2.0)
@@ -408,24 +437,23 @@ GEM
408
437
  actionpack (>= 5.2)
409
438
  activesupport (>= 5.2)
410
439
  sprockets (>= 3.0.0)
411
- standard (1.16.1)
412
- rubocop (= 1.35.1)
440
+ standard (1.16.0)
441
+ rubocop (= 1.35.0)
413
442
  rubocop-performance (= 1.14.3)
414
443
  terminal-table (3.0.2)
415
444
  unicode-display_width (>= 1.1.1, < 3)
416
445
  test-prof (1.0.10)
417
- thor (1.2.2)
418
- timeout (0.4.0)
446
+ thor (1.2.1)
447
+ tilt (2.0.11)
448
+ timeout (0.3.0)
419
449
  turbo-rails (1.4.0)
420
450
  actionpack (>= 6.0.0)
421
451
  activejob (>= 6.0.0)
422
452
  railties (>= 6.0.0)
423
- turbo_power (0.5.0)
424
- turbo-rails (~> 1.3)
425
453
  tzinfo (2.0.6)
426
454
  concurrent-ruby (~> 1.0)
427
- unicode-display_width (2.4.0)
428
- view_component (3.5.0)
455
+ unicode-display_width (2.2.0)
456
+ view_component (3.0.0)
429
457
  activesupport (>= 5.2.0, < 8.0)
430
458
  concurrent-ruby (~> 1.0)
431
459
  method_source (~> 1.0)
@@ -436,21 +464,24 @@ GEM
436
464
  activemodel (>= 6.0.0)
437
465
  bindex (>= 0.4.0)
438
466
  railties (>= 6.0.0)
439
- webdrivers (5.3.1)
467
+ webdrivers (5.2.0)
440
468
  nokogiri (~> 1.6)
441
469
  rubyzip (>= 1.3.0)
442
- selenium-webdriver (~> 4.0, < 4.11)
470
+ selenium-webdriver (~> 4.0)
443
471
  webmock (3.18.1)
444
472
  addressable (>= 2.8.0)
445
473
  crack (>= 0.3.2)
446
474
  hashdiff (>= 0.4.0, < 2.0.0)
475
+ webrick (1.7.0)
447
476
  websocket (1.2.9)
448
- websocket-driver (0.7.6)
477
+ websocket-driver (0.7.5)
449
478
  websocket-extensions (>= 0.1.0)
450
479
  websocket-extensions (0.1.5)
451
480
  xpath (3.2.0)
452
481
  nokogiri (~> 1.8)
453
- zeitwerk (2.6.11)
482
+ yard (0.9.28)
483
+ webrick (~> 1.7.0)
484
+ zeitwerk (2.6.7)
454
485
 
455
486
  PLATFORMS
456
487
  ruby
@@ -488,7 +519,7 @@ DEPENDENCIES
488
519
  gem-release
489
520
  groupdate
490
521
  hightop
491
- hotwire-livereload (~> 1.2)
522
+ hotwire-livereload (~> 1.2.3)
492
523
  htmlbeautifier
493
524
  httparty
494
525
  i18n-tasks (~> 1.0.12)
@@ -497,18 +528,18 @@ DEPENDENCIES
497
528
  jsbundling-rails
498
529
  launchy
499
530
  listen (>= 3.5.1)
500
- manifester
501
531
  mapkick-rb (~> 0.1.4)
502
532
  meta-tags
503
533
  net-smtp
504
534
  pg (>= 0.18, < 2.0)
535
+ pluggy!
505
536
  prefixed_ids
506
- puma (~> 5.6.4)
507
- pundit
537
+ puma (~> 6.0.2)
508
538
  rails (~> 6.1.0)
509
539
  rails-controller-testing
510
- ransack
540
+ ransack (~> 3.1.0)
511
541
  redis (~> 4.0)
542
+ ripper-tags
512
543
  rspec-rails (~> 4.0.0)
513
544
  rubocop
514
545
  rubocop-shopify
@@ -516,17 +547,18 @@ DEPENDENCIES
516
547
  selenium-webdriver
517
548
  simplecov
518
549
  simplecov-cobertura
550
+ solargraph
551
+ solargraph-rails
519
552
  spring
520
553
  spring-commands-rspec
521
554
  sprockets-rails
522
555
  standard
523
556
  test-prof
524
- turbo_power (~> 0.5.0)
525
557
  tzinfo-data
526
558
  web-console (>= 3.3.0)
527
- webdrivers (>= 5.3.0)
559
+ webdrivers
528
560
  webmock
529
561
  zeitwerk
530
562
 
531
563
  BUNDLED WITH
532
- 2.4.18
564
+ 2.4.6
data/README.md CHANGED
@@ -17,7 +17,7 @@ Avo is a beautiful next-generation framework that empowers you, the developer, t
17
17
  ✨ **Website**: [avohq.io](https://avohq.io)\
18
18
  📚 **Documentation**: [docs.avohq.io](https://docs.avohq.io)\
19
19
  🗺 **Roadmap**: [GitHub Roadmap](https://github.com/orgs/avo-hq/projects/3)\
20
- 🎸 **Demo app**: [Avodemo](https://main.avodemo.com/)\
20
+ 🎸 **Demo app**: [Avodemo](https://avodemo.herokuapp.com/)\
21
21
  🐤 **Twitter**: [avo_hq](https://twitter.com/avo_hq)\
22
22
  💬 **Community chat**: [discord](https://discord.gg/pkTF6y8)\
23
23
  🔧 **Issue tracker**: [GitHub issues](http://github.com/avo-hq/avo/issues)\
@@ -19,7 +19,6 @@
19
19
  @import './css/scrollbar.css';
20
20
  @import './css/sidebar.css';
21
21
  @import './css/spinner.css';
22
- @import './css/tags.css';
23
22
 
24
23
  @import './css/fields/status.css';
25
24
  @import './css/fields/code.css';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M432 432h-33.32l-135-389.24A16 16 0 0 0 248.55 32h-49.1a16 16 0 0 0-15.12 10.76L49.32 432H16a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16h-35.44l33.31-96h164.26l33.31 96H304a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16zM158.53 288L224 99.31 289.47 288z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="21" height="9" role="presentation"><g fill="none" fill-rule="evenodd"><path fill="#C9CBCF" fill-opacity="1" d="M1 9.092h19l-6.402-6.74c-1.717-1.806-4.485-1.8-6.196 0L1 9.093zM20.342 8l-6.02-6.336c-2.108-2.22-5.538-2.218-7.645 0L.658 8h19.684z"></path><path fill="currentcolor" d="M7.402 2.353c1.711-1.801 4.48-1.807 6.196 0L20 9.093H1l6.402-6.74z"></path></g></svg>
@@ -1,26 +1,40 @@
1
1
  <div class="relative flex flex-col w-full sm:w-auto js-actions-dropdown"
2
- data-controller="toggle-panel actions-picker"
2
+ data-component-name="<%= self.class.to_s.underscore %>"
3
+ data-controller="toggle actions-picker"
3
4
  data-actions-picker-enabled-class="text-black hover:bg-primary-500 hover:text-white"
4
5
  data-actions-picker-disabled-class="cursor-wait text-gray-500"
6
+ data-resource-name="<%= @resource.class.to_s %>"
7
+ <% if @resource.record.present? %> data-record-id="<%= @resource.record.id %>" <% end %>
5
8
  >
6
9
  <%= a_button style: @style,
7
10
  type: :button,
8
11
  color: @color,
12
+ size: size,
9
13
  class: "focus:outline-none",
10
14
  icon: 'arrow-circle-right',
11
15
  icon_class: 'transform rotate-90',
12
- 'data-action': "click->toggle-panel#togglePanel",
16
+ 'data-action': "click->toggle#togglePanel",
13
17
  'data-actions-dropdown-button': @resource.model_key do %>
14
18
  <%= label %>
15
19
  <% end %>
16
20
  <div
17
21
  class="absolute flex inset-auto xl:right-0 top-full bg-white w-full sm:w-auto sm:min-w-[300px] mt-2 z-40 shadow-modal rounded overflow-hidden hidden"
18
- data-toggle-panel-target="panel"
22
+ data-toggle-target="panel"
23
+ data-controller="actions-overflow"
24
+ data-actions-overflow-panel-list-value="<%= !@as_row_control %>"
25
+ data-actions-overflow-target="content"
26
+ data-transition-enter="transition ease-out duration-100"
27
+ data-transition-enter-start="transform opacity-0 -translate-y-1"
28
+ data-transition-enter-end="transform opacity-100 translate-y-0"
29
+ data-transition-leave="transition ease-in duration-75"
30
+ data-transition-leave-start="transform opacity-100 translate-y-0"
31
+ data-transition-leave-end="transform opacity-0 -translate-y-1"
19
32
  >
20
- <div class="w-full space divide-y">
33
+ <div data-target="actions-list" class="w-full space divide-y">
21
34
  <% actions.each_with_index do |action, index| %>
22
- <%= link_to action_path(action.param_id),
35
+ <%= link_to action_path(action),
23
36
  data: {
37
+ action_name: action.action_name,
24
38
  'turbo-frame': 'actions_show',
25
39
  'action': 'click->actions-picker#visitAction',
26
40
  'actions-picker-target': action.standalone ? 'standaloneAction' : 'resourceAction',