avo 3.17.9.tw4 → 3.17.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +0 -1
  4. data/app/assets/stylesheets/avo.base.css +101 -101
  5. data/app/assets/stylesheets/css/fields/progress.css +4 -4
  6. data/app/assets/stylesheets/css/fields/tiptap.css +4 -4
  7. data/app/assets/stylesheets/css/pagination.css +2 -2
  8. data/app/assets/stylesheets/css/search.css +4 -4
  9. data/app/assets/stylesheets/css/tailwindcss/base.css +1 -0
  10. data/app/assets/stylesheets/css/tailwindcss/components.css +1 -0
  11. data/app/assets/stylesheets/css/tailwindcss/utilities.css +1 -0
  12. data/app/assets/stylesheets/css/tooltips.css +1 -1
  13. data/app/components/avo/actions_component.html.erb +3 -3
  14. data/app/components/avo/alert_component.html.erb +2 -2
  15. data/app/components/avo/alert_component.rb +1 -1
  16. data/app/components/avo/backtrace_alert_component.html.erb +3 -3
  17. data/app/components/avo/button_component.rb +3 -3
  18. data/app/components/avo/divider_component.html.erb +2 -2
  19. data/app/components/avo/empty_state_component.html.erb +1 -1
  20. data/app/components/avo/field_wrapper_component.html.erb +1 -1
  21. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +1 -1
  22. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  23. data/app/components/avo/fields/boolean_group_field/edit_component.rb +1 -1
  24. data/app/components/avo/fields/common/files/view_type/list_item_component.html.erb +3 -3
  25. data/app/components/avo/fields/common/key_value_component.html.erb +3 -3
  26. data/app/components/avo/fields/common/progress_bar_component.html.erb +1 -1
  27. data/app/components/avo/fields/common/status_viewer_component.html.erb +7 -1
  28. data/app/components/avo/fields/date_field/edit_component.html.erb +1 -1
  29. data/app/components/avo/fields/date_time_field/edit_component.html.erb +1 -1
  30. data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -1
  31. data/app/components/avo/fields/tags_field/tag_component.html.erb +1 -1
  32. data/app/components/avo/fields/tiptap_field/edit_component.html.erb +1 -1
  33. data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -1
  34. data/app/components/avo/filters_component.html.erb +3 -3
  35. data/app/components/avo/index/grid_item_component.html.erb +2 -2
  36. data/app/components/avo/index/grid_item_component.rb +1 -1
  37. data/app/components/avo/index/resource_grid_component.html.erb +1 -1
  38. data/app/components/avo/index/resource_map_component.html.erb +1 -1
  39. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  40. data/app/components/avo/index/table_row_component.html.erb +3 -3
  41. data/app/components/avo/items/panel_component.html.erb +1 -1
  42. data/app/components/avo/media_library/item_details_component.html.erb +1 -1
  43. data/app/components/avo/modal_component.html.erb +1 -1
  44. data/app/components/avo/paginator_component.html.erb +2 -1
  45. data/app/components/avo/panel_component.html.erb +2 -2
  46. data/app/components/avo/profile_item_component.rb +1 -1
  47. data/app/components/avo/resource_sidebar_component.html.erb +1 -1
  48. data/app/components/avo/row_selector_component.html.erb +1 -1
  49. data/app/components/avo/sidebar/link_component.rb +1 -1
  50. data/app/components/avo/sidebar_component.html.erb +3 -3
  51. data/app/components/avo/sidebar_profile_component.html.erb +4 -4
  52. data/app/components/avo/tab_group_component.html.erb +1 -1
  53. data/app/helpers/avo/application_helper.rb +4 -4
  54. data/app/javascript/js/controllers/fields/key_value_controller.js +1 -1
  55. data/app/javascript/js/controllers/fields/tags_field_helpers.js +1 -1
  56. data/app/javascript/js/controllers/search_controller.js +2 -2
  57. data/app/views/avo/base/preview.html.erb +1 -1
  58. data/app/views/avo/debug/report.html.erb +1 -1
  59. data/app/views/avo/debug/status.html.erb +14 -19
  60. data/app/views/avo/home/_actions.html.erb +1 -1
  61. data/app/views/avo/home/_dashboards.html.erb +1 -1
  62. data/app/views/avo/home/_filters.html.erb +1 -1
  63. data/app/views/avo/home/_resources.html.erb +2 -2
  64. data/app/views/avo/home/failed_to_load.html.erb +1 -1
  65. data/app/views/avo/partials/_confirm_dialog.html.erb +4 -4
  66. data/app/views/avo/partials/_custom_tools_alert.html.erb +6 -6
  67. data/app/views/avo/partials/_navbar.html.erb +3 -3
  68. data/app/views/avo/partials/_resource_search.html.erb +1 -1
  69. data/app/views/avo/partials/_table_header.html.erb +2 -2
  70. data/app/views/avo/sidebar/_license_warning.html.erb +1 -1
  71. data/lib/avo/concerns/row_controls_configuration.rb +15 -16
  72. data/lib/avo/resources/items/holder.rb +1 -1
  73. data/lib/avo/version.rb +1 -1
  74. data/lib/generators/avo/resource_tool_generator.rb +1 -1
  75. data/lib/generators/avo/templates/cards/partial_card_partial.tt +1 -1
  76. data/lib/generators/avo/tool_generator.rb +2 -2
  77. data/lib/tasks/avo_tasks.rake +1 -1
  78. data/public/avo-assets/avo.base.css +12272 -10320
  79. data/public/avo-assets/avo.base.js +3 -3
  80. data/public/avo-assets/avo.base.js.map +2 -2
  81. data/tailwind.preset.js +20 -0
  82. metadata +6 -3
@@ -26,22 +26,21 @@ module Avo
26
26
  end
27
27
 
28
28
  def row_controls_classes
29
- float_classes = "bg-white
30
- group-hover:bg-gray-50
31
- sticky inset-auto right-0
32
-
33
- before:content-[''] before:absolute before:z-10 before:inset-auto before:left-0 before:top-0 before:mt-0 before:-translate-x-full before:w-3 before:h-full
34
- before:bg-gradient-to-r
35
- before:from-transparent before:to-white
36
- group-hover:before:from-transparent group-hover:before:to-gray-50
37
- "
38
-
39
- class_names(
40
- "text-right whitespace-nowrap px-3",
41
- "w-px": render_row_controls_on_the_left?,
42
- "opacity-0 group-hover:opacity-100": row_controls_configurations[:show_on_hover],
43
- "#{float_classes}": row_controls_configurations[:float]
44
- )
29
+ classes = "text-right whitespace-nowrap px-3"
30
+
31
+ if render_row_controls_on_the_left?
32
+ classes += " w-px"
33
+ end
34
+
35
+ if row_controls_configurations[:show_on_hover]
36
+ classes += " opacity-0 group-hover:opacity-100"
37
+ end
38
+
39
+ if row_controls_configurations[:float]
40
+ classes += " floating-row-controls sticky group-hover:bg-gray-50 bg-white inset-auto right-0"
41
+ end
42
+
43
+ classes
45
44
  end
46
45
  end
47
46
  end
@@ -25,7 +25,7 @@ class Avo::Resources::Items::Holder
25
25
  as = args.fetch(:as, nil)
26
26
 
27
27
  alert_type = :error
28
- message = "There's an invalid field configuration for this resource. <br/> <code class='px-1 py-px rounded-sm bg-red-600'>field :#{field_name}, as: :#{as}</code>"
28
+ message = "There's an invalid field configuration for this resource. <br/> <code class='px-1 py-px rounded bg-red-600'>field :#{field_name}, as: :#{as}</code>"
29
29
 
30
30
  if as == :markdown
31
31
  alert_type = :warning
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.17.9.tw4" unless const_defined?(:VERSION)
2
+ VERSION = "3.17.9" unless const_defined?(:VERSION)
3
3
  end
@@ -32,7 +32,7 @@ module Generators
32
32
  end
33
33
 
34
34
  def in_code(text)
35
- "<code class='p-1 rounded-sm bg-gray-500 text-white text-sm'>#{text}</code>"
35
+ "<code class='p-1 rounded bg-gray-500 text-white text-sm'>#{text}</code>"
36
36
  end
37
37
  end
38
38
  end
@@ -3,6 +3,6 @@
3
3
  Dashboard ID: <%%= @dashboard.id %>
4
4
  <br />
5
5
  <br />
6
- Customize this partial under <code class='p-1 rounded-sm bg-gray-500 text-white text-sm'>app/views/avo/cards/_<%= name.underscore %>.html.erb</code>
6
+ Customize this partial under <code class='p-1 rounded bg-gray-500 text-white text-sm'>app/views/avo/cards/_<%= name.underscore %>.html.erb</code>
7
7
  </div>
8
8
  </div>
@@ -41,7 +41,7 @@ module Generators
41
41
  # will generate the avo.lolo_path helper
42
42
  # THe fact that it will always generate the definded? and Avo::Engine.routes.draw wraps is unfortunate. We'd love a PR to fix that.
43
43
  route_contents = <<~ROUTE
44
-
44
+
45
45
  if defined? ::Avo
46
46
  Avo::Engine.routes.draw do
47
47
  # This route is not protected, secure it with authentication if needed.
@@ -69,7 +69,7 @@ module Generators
69
69
  end
70
70
 
71
71
  def in_code(text)
72
- "<code class='p-1 rounded-sm bg-gray-500 text-white text-sm'>#{text}</code>"
72
+ "<code class='p-1 rounded bg-gray-500 text-white text-sm'>#{text}</code>"
73
73
  end
74
74
  end
75
75
  end
@@ -135,5 +135,5 @@ task "avo:yarn_install" do
135
135
  # tailwind.preset.js needs this dependencies in order to be required
136
136
  # Ensure that versions remain updated and synchronized with those specified in package.json.
137
137
  puts "[Avo->] Adding yarn dependencies"
138
- `yarn add tailwindcss@^4.0.0 @tailwindcss/forms@^0.5.10 @tailwindcss/typography@^0.5.16 @tailwindcss/container-queries@^0.1.1 --cwd #{Avo::Engine.root}`
138
+ `yarn add tailwindcss@^3.4.17 @tailwindcss/forms@^0.5.10 @tailwindcss/typography@^0.5.16 @tailwindcss/container-queries@^0.1.1 --cwd #{Avo::Engine.root}`
139
139
  end