headmin 0.5.2 → 0.5.3

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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/.lock-487e157d270f3062a98b7b2a012753708-1272821827 +0 -0
  3. data/Gemfile.lock +2 -2
  4. data/app/helpers/headmin/form_helper.rb +2 -2
  5. data/app/models/concerns/headmin/field.rb +2 -1
  6. data/app/models/concerns/headmin/fieldable.rb +10 -10
  7. data/app/views/examples/admin.html.erb +18 -18
  8. data/app/views/examples/auth.html.erb +3 -3
  9. data/app/views/headmin/_blocks.html.erb +2 -2
  10. data/app/views/headmin/_breadcrumbs.html.erb +3 -3
  11. data/app/views/headmin/_dropdown.html.erb +2 -2
  12. data/app/views/headmin/_filters.html.erb +7 -7
  13. data/app/views/headmin/_form.html.erb +2 -2
  14. data/app/views/headmin/_heading.html.erb +1 -1
  15. data/app/views/headmin/_index.html.erb +1 -1
  16. data/app/views/headmin/_notifications.html.erb +1 -1
  17. data/app/views/headmin/_pagination.html.erb +3 -3
  18. data/app/views/headmin/_popup.html.erb +4 -4
  19. data/app/views/headmin/_table.html.erb +2 -2
  20. data/app/views/headmin/_thumbnail.html.erb +1 -1
  21. data/app/views/headmin/dropdown/_button.html.erb +2 -2
  22. data/app/views/headmin/dropdown/_devise.html.erb +8 -8
  23. data/app/views/headmin/dropdown/_item.html.erb +2 -2
  24. data/app/views/headmin/dropdown/_list.html.erb +3 -3
  25. data/app/views/headmin/dropdown/_locale.html.erb +6 -6
  26. data/app/views/headmin/filters/_base.html.erb +20 -20
  27. data/app/views/headmin/filters/_boolean.html.erb +4 -4
  28. data/app/views/headmin/filters/_date.html.erb +4 -4
  29. data/app/views/headmin/filters/_flatpickr.html.erb +4 -4
  30. data/app/views/headmin/filters/_number.html.erb +4 -4
  31. data/app/views/headmin/filters/_options.html.erb +4 -4
  32. data/app/views/headmin/filters/_search.html.erb +3 -3
  33. data/app/views/headmin/filters/_text.html.erb +4 -4
  34. data/app/views/headmin/filters/filter/_button.html.erb +2 -2
  35. data/app/views/headmin/filters/filter/_null_select.html.erb +2 -2
  36. data/app/views/headmin/forms/_autocomplete.html.erb +2 -2
  37. data/app/views/headmin/forms/_blocks.html.erb +4 -4
  38. data/app/views/headmin/forms/_checkbox.html.erb +5 -5
  39. data/app/views/headmin/forms/_color.html.erb +5 -5
  40. data/app/views/headmin/forms/_date.html.erb +8 -8
  41. data/app/views/headmin/forms/_date_range.html.erb +3 -3
  42. data/app/views/headmin/forms/_datetime.html.erb +8 -8
  43. data/app/views/headmin/forms/_datetime_range.html.erb +3 -3
  44. data/app/views/headmin/forms/_email.html.erb +9 -9
  45. data/app/views/headmin/forms/_errors.html.erb +1 -1
  46. data/app/views/headmin/forms/_file.html.erb +16 -16
  47. data/app/views/headmin/forms/_flatpickr.html.erb +2 -2
  48. data/app/views/headmin/forms/_flatpickr_range.html.erb +8 -8
  49. data/app/views/headmin/forms/_hidden.html.erb +1 -1
  50. data/app/views/headmin/forms/_hint.html.erb +1 -1
  51. data/app/views/headmin/forms/_label.html.erb +1 -1
  52. data/app/views/headmin/forms/_media.html.erb +11 -11
  53. data/app/views/headmin/forms/_number.html.erb +8 -8
  54. data/app/views/headmin/forms/_password.html.erb +7 -7
  55. data/app/views/headmin/forms/_redactorx.html.erb +2 -2
  56. data/app/views/headmin/forms/_repeater.html.erb +20 -20
  57. data/app/views/headmin/forms/_search.html.erb +9 -9
  58. data/app/views/headmin/forms/_select.html.erb +8 -8
  59. data/app/views/headmin/forms/_switch.html.erb +2 -2
  60. data/app/views/headmin/forms/_text.html.erb +9 -9
  61. data/app/views/headmin/forms/_textarea.html.erb +7 -7
  62. data/app/views/headmin/forms/_url.html.erb +9 -9
  63. data/app/views/headmin/forms/_validation.html.erb +1 -1
  64. data/app/views/headmin/forms/_wysiwyg.html.erb +2 -2
  65. data/app/views/headmin/forms/fields/_base.html.erb +2 -2
  66. data/app/views/headmin/forms/fields/_file.html.erb +3 -3
  67. data/app/views/headmin/forms/fields/_files.html.erb +3 -3
  68. data/app/views/headmin/forms/fields/_group.html.erb +7 -7
  69. data/app/views/headmin/forms/fields/_list.html.erb +5 -5
  70. data/app/views/headmin/forms/fields/_text.html.erb +3 -3
  71. data/app/views/headmin/forms/media/_item.html.erb +4 -4
  72. data/app/views/headmin/forms/media/_validation.html.erb +4 -4
  73. data/app/views/headmin/forms/repeater/_row.html.erb +5 -5
  74. data/app/views/headmin/heading/_title.html.erb +2 -2
  75. data/app/views/headmin/layout/_main.html.erb +1 -1
  76. data/app/views/headmin/media/_item.html.erb +1 -1
  77. data/app/views/headmin/media/_media_item_modal.html.erb +12 -12
  78. data/app/views/headmin/media/_modal.html.erb +10 -10
  79. data/app/views/headmin/media/create.turbo_stream.erb +2 -2
  80. data/app/views/headmin/media/index.html.erb +1 -1
  81. data/app/views/headmin/media/update.turbo_stream.erb +1 -1
  82. data/app/views/headmin/nav/_dropdown.html.erb +7 -7
  83. data/app/views/headmin/nav/_item.html.erb +5 -5
  84. data/app/views/headmin/nav/item/_devise.html.erb +6 -6
  85. data/app/views/headmin/nav/item/_locale.html.erb +6 -6
  86. data/app/views/headmin/pagination/_per_page.html.erb +7 -7
  87. data/app/views/headmin/pagination/kaminari/_first_page.html.erb +2 -2
  88. data/app/views/headmin/pagination/kaminari/_gap.html.erb +1 -1
  89. data/app/views/headmin/pagination/kaminari/_last_page.html.erb +2 -2
  90. data/app/views/headmin/pagination/kaminari/_next_page.html.erb +3 -3
  91. data/app/views/headmin/pagination/kaminari/_page.html.erb +2 -2
  92. data/app/views/headmin/pagination/kaminari/_paginator.html.erb +1 -1
  93. data/app/views/headmin/pagination/kaminari/_prev_page.html.erb +2 -2
  94. data/app/views/headmin/table/_actions.html.erb +11 -11
  95. data/app/views/headmin/table/_body.html.erb +1 -1
  96. data/app/views/headmin/table/actions/_action.html.erb +4 -4
  97. data/app/views/headmin/table/actions/_delete.html.erb +2 -2
  98. data/app/views/headmin/table/actions/_export.html.erb +2 -2
  99. data/app/views/headmin/table/body/_association.html.erb +1 -1
  100. data/app/views/headmin/table/body/_boolean.erb +4 -4
  101. data/app/views/headmin/table/body/_date.html.erb +2 -2
  102. data/app/views/headmin/table/body/_row.html.erb +3 -3
  103. data/app/views/headmin/table/body/_string.html.erb +1 -1
  104. data/app/views/headmin/table/foot/_cell.html.erb +1 -1
  105. data/app/views/headmin/table/head/_cell.html.erb +1 -1
  106. data/app/views/headmin/table/head/cell/_asc.html.erb +2 -2
  107. data/app/views/headmin/table/head/cell/_default.html.erb +1 -1
  108. data/app/views/headmin/table/head/cell/_desc.html.erb +1 -1
  109. data/app/views/headmin/views/devise/confirmations/_new.html.erb +4 -4
  110. data/app/views/headmin/views/devise/passwords/_edit.html.erb +5 -5
  111. data/app/views/headmin/views/devise/passwords/_new.html.erb +4 -4
  112. data/app/views/headmin/views/devise/registrations/_edit.html.erb +10 -10
  113. data/app/views/headmin/views/devise/registrations/_new.html.erb +6 -6
  114. data/app/views/headmin/views/devise/sessions/_new.html.erb +5 -5
  115. data/app/views/headmin/views/devise/shared/_links.html.erb +11 -11
  116. data/app/views/headmin/views/devise/unlocks/_new.html.erb +4 -4
  117. data/lib/generators/templates/views/auth/confirmations/new.html.erb +1 -1
  118. data/lib/generators/templates/views/auth/mailer/confirmation_instructions.html.erb +1 -1
  119. data/lib/generators/templates/views/auth/mailer/email_changed.html.erb +1 -1
  120. data/lib/generators/templates/views/auth/mailer/password_change.html.erb +1 -1
  121. data/lib/generators/templates/views/auth/mailer/reset_password_instructions.html.erb +1 -1
  122. data/lib/generators/templates/views/auth/mailer/unlock_instructions.html.erb +1 -1
  123. data/lib/generators/templates/views/auth/passwords/edit.html.erb +1 -1
  124. data/lib/generators/templates/views/auth/passwords/new.html.erb +1 -1
  125. data/lib/generators/templates/views/auth/registrations/edit.html.erb +1 -1
  126. data/lib/generators/templates/views/auth/registrations/new.html.erb +1 -1
  127. data/lib/generators/templates/views/auth/sessions/new.html.erb +1 -1
  128. data/lib/generators/templates/views/auth/unlocks/new.html.erb +1 -1
  129. data/lib/generators/templates/views/layouts/auth.html.erb +3 -3
  130. data/lib/headmin/version.rb +1 -1
  131. data/package.json +1 -1
  132. metadata +3 -2
@@ -1,24 +1,24 @@
1
1
  <div>
2
2
  <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
3
- <%= render 'headmin/views/devise/shared/error_messages', resource: resource %>
3
+ <%= render "headmin/views/devise/shared/error_messages", resource: resource %>
4
4
 
5
- <%= render 'headmin/forms/email', form: f, attribute: :email, required: true, float: true %>
5
+ <%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
6
6
 
7
7
  <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
8
- <div><%= t('.waiting_confirmation', email: resource.unconfirmed_email) %></div>
8
+ <div><%= t(".waiting_confirmation", email: resource.unconfirmed_email) %></div>
9
9
  <% end %>
10
10
 
11
- <%= render 'headmin/forms/password', form: f, attribute: :password, required: true, float: true %>
12
- <%= render 'headmin/forms/password', form: f, attribute: :password_confirmation, required: true, float: true %>
13
- <%= render 'headmin/forms/password', form: f, attribute: :current_password, required: true, float: true %>
11
+ <%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
12
+ <%= render "headmin/forms/password", form: f, attribute: :password_confirmation, required: true, float: true %>
13
+ <%= render "headmin/forms/password", form: f, attribute: :current_password, required: true, float: true %>
14
14
 
15
- <%= f.submit t('.change'), class: 'btn btn-lg btn-primary w-100' %>
15
+ <%= f.submit t(".change"), class: "btn btn-lg btn-primary w-100" %>
16
16
  <% end %>
17
17
 
18
18
  <div class="mt-5">
19
- <h4><%= t('.cancel') %></h4>
19
+ <h4><%= t(".cancel") %></h4>
20
20
 
21
- <p><%= t('.unhappy') %></p>
22
- <%= button_to t('.cancel'), registration_path(resource_name), class: 'btn btn-lg btn-danger w-100', "data-turbo-confirm": "Are you sure?", "data-turbo-method": "delete" %>
21
+ <p><%= t(".unhappy") %></p>
22
+ <%= button_to t(".cancel"), registration_path(resource_name), class: "btn btn-lg btn-danger w-100", "data-turbo-confirm": "Are you sure?", "data-turbo-method": "delete" %>
23
23
  </div>
24
24
  </div>
@@ -1,11 +1,11 @@
1
1
  <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
2
- <%= render 'headmin/views/devise/shared/error_messages', resource: resource %>
2
+ <%= render "headmin/views/devise/shared/error_messages", resource: resource %>
3
3
 
4
- <%= render 'headmin/forms/email', form: f, attribute: :email, required: true, float: true %>
5
- <%= render 'headmin/forms/password', form: f, attribute: :password, required: true, float: true %>
6
- <%= render 'headmin/forms/password', form: f, attribute: :password_confirmation, required: true, float: true %>
4
+ <%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
5
+ <%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
6
+ <%= render "headmin/forms/password", form: f, attribute: :password_confirmation, required: true, float: true %>
7
7
 
8
- <%= f.submit t('.sign_up'), class: 'btn btn-lg btn-primary w-100' %>
8
+ <%= f.submit t(".sign_up"), class: "btn btn-lg btn-primary w-100" %>
9
9
 
10
- <%= render 'headmin/views/devise/shared/links' %>
10
+ <%= render "headmin/views/devise/shared/links" %>
11
11
  <% end %>
@@ -1,13 +1,13 @@
1
1
  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
2
2
 
3
- <%= render 'headmin/forms/email', form: f, attribute: :email, required: true, float: true %>
4
- <%= render 'headmin/forms/password', form: f, attribute: :password, required: true, float: true %>
3
+ <%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
4
+ <%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
5
5
 
6
6
  <% if devise_mapping.rememberable? %>
7
- <%= render 'headmin/forms/checkbox', form: f, attribute: :remember_me %>
7
+ <%= render "headmin/forms/checkbox", form: f, attribute: :remember_me %>
8
8
  <% end %>
9
9
 
10
- <%= f.submit t('.login'), class: 'btn btn-lg btn-primary w-100' %>
10
+ <%= f.submit t(".login"), class: "btn btn-lg btn-primary w-100" %>
11
11
 
12
- <%= render 'headmin/views/devise/shared/links' %>
12
+ <%= render "headmin/views/devise/shared/links" %>
13
13
  <% end %>
@@ -1,27 +1,27 @@
1
1
  <div class="bg-light mt-5 text-center">
2
- <%- if controller_name != 'sessions' %>
3
- <%= link_to t('.sign_in'), new_session_path(resource_name) %><br />
2
+ <%- if controller_name != "sessions" %>
3
+ <%= link_to t(".sign_in"), new_session_path(resource_name) %><br />
4
4
  <% end %>
5
5
 
6
- <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
7
- <%= link_to t('.sign_up'), new_registration_path(resource_name) %><br />
6
+ <%- if devise_mapping.registerable? && controller_name != "registrations" %>
7
+ <%= link_to t(".sign_up"), new_registration_path(resource_name) %><br />
8
8
  <% end %>
9
9
 
10
- <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
11
- <%= link_to t('.forgot_password'), new_password_path(resource_name) %><br />
10
+ <%- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
11
+ <%= link_to t(".forgot_password"), new_password_path(resource_name) %><br />
12
12
  <% end %>
13
13
 
14
- <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
15
- <%= link_to t('.confirmation'), new_confirmation_path(resource_name) %><br />
14
+ <%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
15
+ <%= link_to t(".confirmation"), new_confirmation_path(resource_name) %><br />
16
16
  <% end %>
17
17
 
18
- <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
19
- <%= link_to t('.unlock'), new_unlock_path(resource_name) %><br />
18
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
19
+ <%= link_to t(".unlock"), new_unlock_path(resource_name) %><br />
20
20
  <% end %>
21
21
 
22
22
  <%- if devise_mapping.omniauthable? %>
23
23
  <%- resource_class.omniauth_providers.each do |provider| %>
24
- <%= link_to t('.omniauth', provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), method: :post %><br />
24
+ <%= link_to t(".omniauth", provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), method: :post %><br />
25
25
  <% end %>
26
26
  <% end %>
27
27
  </div>
@@ -1,10 +1,10 @@
1
1
  <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: {method: :post}) do |f| %>
2
- <%= render 'headmin/views/devise/shared/error_messages', resource: resource %>
2
+ <%= render "headmin/views/devise/shared/error_messages", resource: resource %>
3
3
 
4
- <%= render 'headmin/forms/email', form: f, attribute: :email, required: true, float: true %>
4
+ <%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
5
5
 
6
- <%= f.submit t('.resend'), class: 'btn btn-lg btn-primary w-100' %>
6
+ <%= f.submit t(".resend"), class: "btn btn-lg btn-primary w-100" %>
7
7
 
8
- <%= render 'headmin/views/devise/shared/links' %>
8
+ <%= render "headmin/views/devise/shared/links" %>
9
9
 
10
10
  <% end %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/confirmations/new' %>
1
+ <%= render "headmin/views/devise/confirmations/new" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/mailer/confirmation_instructions' %>
1
+ <%= render "headmin/views/devise/mailer/confirmation_instructions" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/mailer/email_changed' %>
1
+ <%= render "headmin/views/devise/mailer/email_changed" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/mailer/password_change' %>
1
+ <%= render "headmin/views/devise/mailer/password_change" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/mailer/reset_password_instructions' %>
1
+ <%= render "headmin/views/devise/mailer/reset_password_instructions" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/mailer/unlock_instructions' %>
1
+ <%= render "headmin/views/devise/mailer/unlock_instructions" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/passwords/edit' %>
1
+ <%= render "headmin/views/devise/passwords/edit" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/passwords/new' %>
1
+ <%= render "headmin/views/devise/passwords/new" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/registrations/edit' %>
1
+ <%= render "headmin/views/devise/registrations/edit" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/registrations/new' %>
1
+ <%= render "headmin/views/devise/registrations/new" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/sessions/new' %>
1
+ <%= render "headmin/views/devise/sessions/new" %>
@@ -1 +1 @@
1
- <%= render 'headmin/views/devise/unlocks/new' %>
1
+ <%= render "headmin/views/devise/unlocks/new" %>
@@ -5,12 +5,12 @@
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <%= csrf_meta_tags %>
7
7
  <%= csp_meta_tag %>
8
- <%= stylesheet_pack_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' %>
9
- <%= javascript_pack_tag 'admin', 'data-turbolinks-track': 'reload' %>
8
+ <%= stylesheet_pack_tag "admin", media: "all", "data-turbolinks-track": "reload" %>
9
+ <%= javascript_pack_tag "admin", "data-turbolinks-track": "reload" %>
10
10
  </head>
11
11
  <body class="bg-light w-100 vh-100">
12
12
 
13
- <%= render 'headmin/notifications' %>
13
+ <%= render "headmin/notifications" %>
14
14
 
15
15
  <main class="d-flex justify-content-center align-items-center w-100 vh-100 p-3">
16
16
  <%= yield %>
@@ -1,3 +1,3 @@
1
1
  module Headmin
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "headmin",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Admin component library",
5
5
  "module": "app/assets/javascripts/headmin.js",
6
6
  "main": "app/assets/javascripts/headmin.js",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: headmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jef Vlamings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-30 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: closure_tree
@@ -76,6 +76,7 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - ".github/workflows/ci.yml"
78
78
  - ".gitignore"
79
+ - ".lock-487e157d270f3062a98b7b2a012753708-1272821827"
79
80
  - ".nvmrc"
80
81
  - ".ruby-version"
81
82
  - CHANGELOG.md