maglevcms 3.0.2 → 3.1.0

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/maglev/tailwind.css +123 -105
  3. data/app/assets/javascripts/maglev/editor/controllers/app/forms/section_form_controller.js +31 -6
  4. data/app/assets/javascripts/maglev/editor/controllers/app/page_preview_controller.js +20 -6
  5. data/app/assets/stylesheets/maglev/application.css +47 -3
  6. data/app/components/maglev/uikit/app_layout/sidebar_component.html.erb +1 -1
  7. data/app/components/maglev/uikit/app_layout/topbar/logo_component.html.erb +1 -1
  8. data/app/components/maglev/uikit/app_layout/topbar/page_info_component.html.erb +2 -2
  9. data/app/components/maglev/uikit/breadcrumbs/breadcrumbs_component.html.erb +2 -2
  10. data/app/components/maglev/uikit/breadcrumbs/link_component.html.erb +2 -2
  11. data/app/components/maglev/uikit/button_group_component/button_group_component.html.erb +1 -1
  12. data/app/components/maglev/uikit/collapsible/item_component.html.erb +1 -1
  13. data/app/components/maglev/uikit/dropdown_component/dropdown_controller.js +13 -2
  14. data/app/components/maglev/uikit/form/checkbox_component.html.erb +2 -2
  15. data/app/components/maglev/uikit/form/color_field_component.html.erb +3 -3
  16. data/app/components/maglev/uikit/form/combobox/list_component.html.erb +1 -1
  17. data/app/components/maglev/uikit/form/combobox/option_component.html.erb +1 -1
  18. data/app/components/maglev/uikit/form/combobox_component.html.erb +1 -1
  19. data/app/components/maglev/uikit/form/link/email_link_component.html.erb +2 -2
  20. data/app/components/maglev/uikit/form/link/page_link_component.html.erb +2 -2
  21. data/app/components/maglev/uikit/form/link/static_page_link_component.html.erb +2 -2
  22. data/app/components/maglev/uikit/form/link/url_link_component.html.erb +2 -2
  23. data/app/components/maglev/uikit/form/richtext/block_button_component.html.erb +1 -1
  24. data/app/components/maglev/uikit/form/richtext/button_component.html.erb +2 -2
  25. data/app/components/maglev/uikit/form/richtext/toolbar_component.html.erb +1 -1
  26. data/app/components/maglev/uikit/form/search_form_component.html.erb +1 -1
  27. data/app/components/maglev/uikit/form/search_form_component.rb +1 -1
  28. data/app/components/maglev/uikit/form/select_component.html.erb +1 -1
  29. data/app/components/maglev/uikit/image_library/card_component.html.erb +1 -1
  30. data/app/components/maglev/uikit/list/insert_button_component.html.erb +1 -1
  31. data/app/components/maglev/uikit/list/list_item_component.html.erb +7 -5
  32. data/app/components/maglev/uikit/list/list_item_component.rb +2 -0
  33. data/app/components/maglev/uikit/locale_switcher_component/locale_switcher_component.html.erb +1 -1
  34. data/app/components/maglev/uikit/menu_dropdown_component.rb +3 -3
  35. data/app/components/maglev/uikit/modal_component/modal_component.html.erb +3 -3
  36. data/app/components/maglev/uikit/modal_component.rb +1 -1
  37. data/app/components/maglev/uikit/page_layout_component/back_link_component.html.erb +1 -1
  38. data/app/components/maglev/uikit/page_layout_component/page_layout_component.html.erb +2 -2
  39. data/app/components/maglev/uikit/page_layout_component.rb +3 -3
  40. data/app/components/maglev/uikit/pagination_component/pagination_component.html.erb +4 -4
  41. data/app/components/maglev/uikit/section_toolbar/top_left_corner_component.html.erb +4 -4
  42. data/app/components/maglev/uikit/section_toolbar/top_right_corner_component.html.erb +3 -3
  43. data/app/controllers/concerns/maglev/editor/errors_concern.rb +1 -1
  44. data/app/controllers/concerns/maglev/editor/lock_version_concern.rb +27 -0
  45. data/app/controllers/maglev/editor/section_blocks_controller.rb +3 -9
  46. data/app/controllers/maglev/editor/sections_controller.rb +3 -9
  47. data/app/helpers/maglev/application_helper.rb +6 -0
  48. data/app/services/concerns/maglev/content/helpers_concern.rb +1 -1
  49. data/app/views/layouts/maglev/editor/application.html.erb +1 -1
  50. data/app/views/maglev/editor/assets/index.html.erb +1 -1
  51. data/app/views/maglev/editor/pages/_preview.html.erb +3 -3
  52. data/app/views/maglev/editor/pages/_preview_empty_message.html.erb +1 -1
  53. data/app/views/maglev/editor/section_blocks/index/_tree.html.erb +3 -3
  54. data/app/views/maglev/editor/sections/_toolbar_list.html.erb +1 -1
  55. data/app/views/maglev/editor/sections/theme/_list.html.erb +4 -2
  56. data/lib/maglev/version.rb +1 -1
  57. metadata +12 -5
@@ -38,9 +38,9 @@
38
38
  <% end %>
39
39
 
40
40
  <% if @section.child_blocks_of(section_block.id).any? %>
41
- <div class="ml-5 mt-3">
42
- <%= render 'maglev/editor/section_blocks/index/tree',
43
- blocks: @section.child_blocks_of(section_block.id),
41
+ <div class="ms-5 mt-3">
42
+ <%= render 'maglev/editor/section_blocks/index/tree',
43
+ blocks: @section.child_blocks_of(section_block.id),
44
44
  parent_id: section_block.id
45
45
  %>
46
46
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="
2
- absolute inset-0 top-16 left-16 group-data-[expanded-page-layout]/page-layout:left-104 bg-transparent z-5 pointer-events-none mx-auto
2
+ absolute inset-0 top-16 start-16 group-data-[expanded-page-layout]/page-layout:start-104 bg-transparent z-5 pointer-events-none mx-auto
3
3
  group-data-[device=mobile]/device:w-[calc(375px*var(--page-preview-scale-ratio))] group-data-[device=tablet]/device:w-[calc(1024px*var(--page-preview-scale-ratio))]
4
4
  ">
5
5
  <% current_maglev_sections.each_with_index do |section, index| %>
@@ -25,9 +25,11 @@
25
25
  <% end %>
26
26
  <% end %>
27
27
 
28
- <% item.with_title_content(section.human_name) %>
28
+ <% item.with_title_content(section.human_name) %>
29
29
 
30
- <%= f.radio_button :section_type, section.id, class: 'sr-only peer' %>
30
+ <% item.with_leading do %>
31
+ <%= f.radio_button :section_type, section.id, class: 'sr-only peer' %>
32
+ <% end %>
31
33
  <% end %>
32
34
  <% end %>
33
35
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Maglev
4
- VERSION = '3.0.2'
4
+ VERSION = '3.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglevcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -121,16 +121,22 @@ dependencies:
121
121
  name: view_component
122
122
  requirement: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - "~>"
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 4.12.0
127
+ - - "<"
125
128
  - !ruby/object:Gem::Version
126
- version: 4.1.1
129
+ version: '5'
127
130
  type: :runtime
128
131
  prerelease: false
129
132
  version_requirements: !ruby/object:Gem::Requirement
130
133
  requirements:
131
- - - "~>"
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 4.12.0
137
+ - - "<"
132
138
  - !ruby/object:Gem::Version
133
- version: 4.1.1
139
+ version: '5'
134
140
  description: " MaglevCMS integrates a powerful website/page builder with a polished
135
141
  UX/UI into your Ruby on Rails application, backed by a flexible and robust CMS engine.\n"
136
142
  email:
@@ -359,6 +365,7 @@ files:
359
365
  - app/controllers/concerns/maglev/back_action_concern.rb
360
366
  - app/controllers/concerns/maglev/content_locale_concern.rb
361
367
  - app/controllers/concerns/maglev/editor/errors_concern.rb
368
+ - app/controllers/concerns/maglev/editor/lock_version_concern.rb
362
369
  - app/controllers/concerns/maglev/editor/preview_urls_concern.rb
363
370
  - app/controllers/concerns/maglev/editor/turbo_concern.rb
364
371
  - app/controllers/concerns/maglev/errors_concern.rb