activeadmin 2.6.1 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +262 -9
  3. data/CONTRIBUTING.md +8 -24
  4. data/README.md +4 -4
  5. data/app/assets/javascripts/active_admin/base.js +27 -22
  6. data/app/assets/stylesheets/active_admin/_base.scss +53 -37
  7. data/app/assets/stylesheets/active_admin/_forms.scss +0 -10
  8. data/app/assets/stylesheets/active_admin/_header.scss +37 -3
  9. data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
  10. data/app/assets/stylesheets/active_admin/components/_comments.scss +2 -2
  11. data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
  12. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
  13. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +12 -0
  14. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
  15. data/app/javascript/active_admin/initializers/has-many.js +4 -1
  16. data/app/javascript/active_admin/initializers/per-page.js +1 -1
  17. data/app/javascript/active_admin/lib/checkbox-toggler.js +3 -3
  18. data/app/javascript/active_admin/lib/dropdown-menu.js +1 -1
  19. data/app/javascript/active_admin/lib/modal-dialog.js +7 -7
  20. data/app/javascript/active_admin/lib/per-page.js +1 -1
  21. data/app/javascript/active_admin/lib/table-checkbox-toggler.js +1 -1
  22. data/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +1 -1
  23. data/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +2 -2
  24. data/app/views/active_admin/devise/shared/_links.erb +1 -1
  25. data/app/views/active_admin/page/index.html.arb +1 -0
  26. data/app/views/active_admin/resource/edit.html.arb +1 -0
  27. data/app/views/active_admin/resource/index.html.arb +1 -0
  28. data/app/views/active_admin/resource/new.html.arb +1 -0
  29. data/app/views/active_admin/resource/show.html.arb +1 -0
  30. data/app/views/layouts/active_admin.html.arb +1 -0
  31. data/app/views/layouts/active_admin_logged_out.html.erb +15 -5
  32. data/config/locales/ar.yml +6 -6
  33. data/config/locales/es-MX.yml +2 -1
  34. data/config/locales/es.yml +2 -2
  35. data/config/locales/it.yml +18 -0
  36. data/config/locales/ja.yml +3 -3
  37. data/config/locales/ko.yml +1 -1
  38. data/config/locales/nl.yml +1 -1
  39. data/config/locales/ro.yml +3 -2
  40. data/config/locales/vi.yml +5 -5
  41. data/docs/0-installation.md +27 -3
  42. data/docs/11-decorators.md +16 -5
  43. data/docs/2-resource-customization.md +10 -1
  44. data/docs/5-forms.md +7 -2
  45. data/docs/6-show-pages.md +12 -0
  46. data/docs/8-custom-actions.md +1 -1
  47. data/docs/Gemfile +3 -2
  48. data/docs/Gemfile.lock +138 -103
  49. data/docs/_includes/top-menu.html +1 -1
  50. data/docs/documentation.md +1 -1
  51. data/docs/index.html +6 -6
  52. data/lib/active_admin/abstract_view_factory.rb +1 -0
  53. data/lib/active_admin/application.rb +19 -19
  54. data/lib/active_admin/application_settings.rb +4 -3
  55. data/lib/active_admin/asset_registration.rb +1 -0
  56. data/lib/active_admin/authorization_adapter.rb +4 -3
  57. data/lib/active_admin/base_controller/authorization.rb +15 -13
  58. data/lib/active_admin/base_controller/menu.rb +1 -0
  59. data/lib/active_admin/base_controller.rb +6 -5
  60. data/lib/active_admin/batch_actions/controller.rb +4 -3
  61. data/lib/active_admin/batch_actions/resource_extension.rb +10 -8
  62. data/lib/active_admin/batch_actions/views/batch_action_form.rb +4 -3
  63. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +7 -6
  64. data/lib/active_admin/batch_actions/views/selection_cells.rb +4 -3
  65. data/lib/active_admin/batch_actions.rb +1 -0
  66. data/lib/active_admin/callbacks.rb +1 -0
  67. data/lib/active_admin/cancan_adapter.rb +2 -1
  68. data/lib/active_admin/collection_decorator.rb +32 -0
  69. data/lib/active_admin/component.rb +1 -0
  70. data/lib/active_admin/controller_action.rb +1 -0
  71. data/lib/active_admin/csv_builder.rb +6 -19
  72. data/lib/active_admin/dependency.rb +13 -12
  73. data/lib/active_admin/deprecation.rb +1 -0
  74. data/lib/active_admin/devise.rb +16 -5
  75. data/lib/active_admin/dsl.rb +2 -1
  76. data/lib/active_admin/dynamic_setting.rb +1 -0
  77. data/lib/active_admin/dynamic_settings_node.rb +3 -2
  78. data/lib/active_admin/engine.rb +13 -9
  79. data/lib/active_admin/error.rb +1 -2
  80. data/lib/active_admin/filters/active.rb +2 -1
  81. data/lib/active_admin/filters/active_filter.rb +6 -6
  82. data/lib/active_admin/filters/active_sidebar.rb +4 -30
  83. data/lib/active_admin/filters/dsl.rb +1 -0
  84. data/lib/active_admin/filters/forms.rb +7 -6
  85. data/lib/active_admin/filters/formtastic_addons.rb +2 -6
  86. data/lib/active_admin/filters/resource_extension.rb +2 -1
  87. data/lib/active_admin/filters.rb +8 -7
  88. data/lib/active_admin/form_builder.rb +25 -20
  89. data/lib/active_admin/generators/boilerplate.rb +2 -1
  90. data/lib/active_admin/helpers/collection.rb +2 -0
  91. data/lib/active_admin/helpers/i18n.rb +1 -0
  92. data/lib/active_admin/helpers/optional_display.rb +3 -2
  93. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
  94. data/lib/active_admin/helpers/scope_chain.rb +1 -0
  95. data/lib/active_admin/inputs/datepicker_input.rb +2 -1
  96. data/lib/active_admin/inputs/filters/base/search_method_select.rb +5 -4
  97. data/lib/active_admin/inputs/filters/base.rb +2 -1
  98. data/lib/active_admin/inputs/filters/boolean_input.rb +2 -1
  99. data/lib/active_admin/inputs/filters/check_boxes_input.rb +2 -1
  100. data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
  101. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
  102. data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
  103. data/lib/active_admin/inputs/filters/select_input.rb +3 -2
  104. data/lib/active_admin/inputs/filters/string_input.rb +1 -0
  105. data/lib/active_admin/inputs/filters/text_input.rb +1 -0
  106. data/lib/active_admin/inputs.rb +1 -0
  107. data/lib/active_admin/localizers/resource_localizer.rb +4 -3
  108. data/lib/active_admin/localizers.rb +2 -1
  109. data/lib/active_admin/menu.rb +7 -3
  110. data/lib/active_admin/menu_collection.rb +1 -0
  111. data/lib/active_admin/menu_item.rb +8 -7
  112. data/lib/active_admin/namespace.rb +14 -13
  113. data/lib/active_admin/namespace_settings.rb +9 -5
  114. data/lib/active_admin/order_clause.rb +2 -1
  115. data/lib/active_admin/orm/active_record/comments/comment.rb +4 -3
  116. data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
  117. data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
  118. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
  119. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +20 -19
  120. data/lib/active_admin/orm/active_record/comments/views.rb +3 -2
  121. data/lib/active_admin/orm/active_record/comments.rb +20 -19
  122. data/lib/active_admin/orm/active_record.rb +2 -1
  123. data/lib/active_admin/orm/mongoid.rb +1 -0
  124. data/lib/active_admin/page.rb +2 -1
  125. data/lib/active_admin/page_controller.rb +1 -0
  126. data/lib/active_admin/page_dsl.rb +1 -0
  127. data/lib/active_admin/page_presenter.rb +1 -0
  128. data/lib/active_admin/pundit_adapter.rb +47 -11
  129. data/lib/active_admin/resource/action_items.rb +6 -5
  130. data/lib/active_admin/resource/attributes.rb +2 -1
  131. data/lib/active_admin/resource/belongs_to.rb +3 -2
  132. data/lib/active_admin/resource/controllers.rb +2 -1
  133. data/lib/active_admin/resource/includes.rb +1 -0
  134. data/lib/active_admin/resource/menu.rb +5 -4
  135. data/lib/active_admin/resource/model.rb +1 -0
  136. data/lib/active_admin/resource/naming.rb +5 -4
  137. data/lib/active_admin/resource/ordering.rb +1 -0
  138. data/lib/active_admin/resource/page_presenters.rb +1 -0
  139. data/lib/active_admin/resource/pagination.rb +1 -0
  140. data/lib/active_admin/resource/routes.rb +6 -7
  141. data/lib/active_admin/resource/scope_to.rb +8 -7
  142. data/lib/active_admin/resource/scopes.rb +1 -0
  143. data/lib/active_admin/resource/sidebars.rb +2 -1
  144. data/lib/active_admin/resource.rb +20 -19
  145. data/lib/active_admin/resource_collection.rb +1 -0
  146. data/lib/active_admin/resource_controller/action_builder.rb +1 -0
  147. data/lib/active_admin/resource_controller/data_access.rb +31 -5
  148. data/lib/active_admin/resource_controller/decorators.rb +7 -28
  149. data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
  150. data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
  151. data/lib/active_admin/resource_controller/scoping.rb +1 -0
  152. data/lib/active_admin/resource_controller/sidebars.rb +1 -0
  153. data/lib/active_admin/resource_controller/streaming.rb +9 -7
  154. data/lib/active_admin/resource_controller.rb +13 -11
  155. data/lib/active_admin/resource_dsl.rb +11 -25
  156. data/lib/active_admin/router.rb +1 -0
  157. data/lib/active_admin/scope.rb +7 -6
  158. data/lib/active_admin/settings_node.rb +1 -0
  159. data/lib/active_admin/sidebar_section.rb +1 -0
  160. data/lib/active_admin/version.rb +2 -1
  161. data/lib/active_admin/view_factory.rb +18 -17
  162. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
  163. data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -0
  164. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +4 -3
  165. data/lib/active_admin/view_helpers/display_helper.rb +15 -7
  166. data/lib/active_admin/view_helpers/download_format_links_helper.rb +2 -1
  167. data/lib/active_admin/view_helpers/fields_for.rb +3 -2
  168. data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
  169. data/lib/active_admin/view_helpers/form_helper.rb +1 -0
  170. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
  171. data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
  172. data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
  173. data/lib/active_admin/view_helpers/title_helper.rb +1 -0
  174. data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
  175. data/lib/active_admin/view_helpers.rb +2 -1
  176. data/lib/active_admin/views/action_items.rb +1 -0
  177. data/lib/active_admin/views/components/active_admin_form.rb +7 -6
  178. data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
  179. data/lib/active_admin/views/components/attributes_table.rb +6 -5
  180. data/lib/active_admin/views/components/blank_slate.rb +2 -1
  181. data/lib/active_admin/views/components/columns.rb +1 -0
  182. data/lib/active_admin/views/components/dropdown_menu.rb +7 -9
  183. data/lib/active_admin/views/components/index_list.rb +4 -3
  184. data/lib/active_admin/views/components/menu.rb +2 -1
  185. data/lib/active_admin/views/components/menu_item.rb +5 -4
  186. data/lib/active_admin/views/components/paginated_collection.rb +19 -18
  187. data/lib/active_admin/views/components/panel.rb +2 -1
  188. data/lib/active_admin/views/components/scopes.rb +8 -5
  189. data/lib/active_admin/views/components/sidebar.rb +1 -0
  190. data/lib/active_admin/views/components/sidebar_section.rb +1 -0
  191. data/lib/active_admin/views/components/site_title.rb +2 -1
  192. data/lib/active_admin/views/components/status_tag.rb +12 -11
  193. data/lib/active_admin/views/components/table_for.rb +18 -17
  194. data/lib/active_admin/views/components/tabs.rb +4 -3
  195. data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
  196. data/lib/active_admin/views/footer.rb +3 -1
  197. data/lib/active_admin/views/header.rb +3 -2
  198. data/lib/active_admin/views/index_as_block.rb +1 -0
  199. data/lib/active_admin/views/index_as_blog.rb +2 -1
  200. data/lib/active_admin/views/index_as_grid.rb +2 -1
  201. data/lib/active_admin/views/index_as_table.rb +17 -16
  202. data/lib/active_admin/views/pages/base.rb +14 -9
  203. data/lib/active_admin/views/pages/form.rb +1 -0
  204. data/lib/active_admin/views/pages/index.rb +15 -13
  205. data/lib/active_admin/views/pages/layout.rb +1 -0
  206. data/lib/active_admin/views/pages/page.rb +1 -0
  207. data/lib/active_admin/views/pages/show.rb +1 -0
  208. data/lib/active_admin/views/tabbed_navigation.rb +3 -2
  209. data/lib/active_admin/views/title_bar.rb +2 -1
  210. data/lib/active_admin/views.rb +2 -1
  211. data/lib/active_admin.rb +61 -61
  212. data/lib/activeadmin.rb +2 -1
  213. data/lib/generators/active_admin/assets/assets_generator.rb +3 -2
  214. data/lib/generators/active_admin/assets/templates/active_admin.scss +2 -2
  215. data/lib/generators/active_admin/devise/devise_generator.rb +6 -5
  216. data/lib/generators/active_admin/install/install_generator.rb +15 -8
  217. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +9 -2
  218. data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
  219. data/lib/generators/active_admin/page/page_generator.rb +2 -1
  220. data/lib/generators/active_admin/page/templates/page.rb +1 -0
  221. data/lib/generators/active_admin/resource/resource_generator.rb +4 -3
  222. data/lib/generators/active_admin/webpacker/plugins/jquery.js +7 -0
  223. data/lib/generators/active_admin/webpacker/templates/active_admin.js +5 -0
  224. data/lib/generators/active_admin/webpacker/templates/active_admin.scss +17 -0
  225. data/lib/generators/active_admin/webpacker/templates/print.scss +2 -0
  226. data/lib/generators/active_admin/webpacker/webpacker_generator.rb +27 -0
  227. data/lib/ransack_ext.rb +9 -8
  228. metadata +32 -53
  229. /data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ce87c19dbaccfc28fd5c36d12f1ef679772a70bd1ae8a131182d277d3de4cb3
4
- data.tar.gz: d0b56716796cb013d8d874280366d8fb424366ee3979bf6549585ef505836d79
3
+ metadata.gz: 8fee30bf6175502c7e29f5cba45777a52fd9d72f9433f7f3911ba324a24638ef
4
+ data.tar.gz: 8ad44b1980960d2e8abb3f1406f90c3a0cd01255f0fcb30b6a56bf3cb8db1ab6
5
5
  SHA512:
6
- metadata.gz: fcda92e560081295c175f08b876594a5bc3ea38cfcb523a15e803a086c97306574801d279ffc2f553902a4aaf2e77eece4b4e065bb26a11f12e031b2d0a94257
7
- data.tar.gz: ca2e295171c638b40f376bf8fd56a7027c79d08a063b534a666b9761e5f4102b436bfc34cc99b3cf8bab7a12a586fe7c702f62661a885f1291974efb73b14490
6
+ metadata.gz: 39beb44c14375cec330f99a1d63d38959523a0bbbcf90e55f6b938a71a8d2624b9f8fdb110839b7272b346acdd533bc3f0fcd3a78ca3c3250bf401c807fb4b13
7
+ data.tar.gz: 9b4d5fb6d6d2238925e315c639bb6625703102d111c482399eb79b02cd6f203f7145770c2985795c2a3f60f6822f2757efe1e5c57a8c4ede3716e023e2efc50e
data/CHANGELOG.md CHANGED
@@ -2,7 +2,168 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 2.6.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.6.0..2.6.1)
5
+ ## 2.12.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.2..v2.12.0)
6
+
7
+ ### Enhancements
8
+
9
+ * Add Ransack 3 compatibility. [#7453] by [@tagliala]
10
+
11
+ ### Bug Fixes
12
+
13
+ * Fix pundit namespace detection. [#7144] by [@vlad-psh]
14
+
15
+ ### Documentation
16
+
17
+ * Don't mention webpacker as the default asset generator in Rails. [#7377] by [@jaynetics]
18
+
19
+ ### Performance
20
+
21
+ * Avoid duplicate work when downloading CSV. [#7336] by [@deivid-rodriguez]
22
+
23
+ ## 2.11.2 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.1..v2.11.2)
24
+
25
+ ### Bug Fixes
26
+
27
+ * Fix disappearing BOM option for `CSVBuilder`. [#7170] by [@Karoid]
28
+
29
+ ## 2.11.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.0..v2.11.1)
30
+
31
+ ### Enhancements
32
+
33
+ * Add turbolinks support to has many js. [#7384] by [@amiel]
34
+
35
+ ### Documentation
36
+
37
+ * Remove `insert_tag` from Form-Partial docs. [#7394] by [@TonyArra]
38
+
39
+ ## 2.11.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.1..v2.11.0)
40
+
41
+ ### Enhancements
42
+
43
+ * Add Rails 7 Support. [#7235] by [@tagliala]
44
+
45
+ ### Bug Fixes
46
+
47
+ * Fix form SCSS variables no longer being defined in the outermost scope, so no longer being accessible. [#7341] by [@gigorok]
48
+
49
+ ## 2.10.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.0..v2.10.1)
50
+
51
+ ### Enhancements
52
+
53
+ * Apply `box-sizing: border-box` globally. [#7349] by [@deivid-rodriguez]
54
+ * Vendor normalize 8.0.1. [#7350] by [@deivid-rodriguez]
55
+ * Remove deprecation warning using controller filters inside initializer. [#7340] by [@mgrunberg]
56
+
57
+ ### Bug Fixes
58
+
59
+ * Fix frozen string error when downloading CSV and streaming disabled. [#7332] by [@deivid-rodriguez]
60
+
61
+ ## 2.10.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.9.0..v2.10.0)
62
+
63
+ ### Enhancements
64
+
65
+ * Load favicon from Webpacker assets when use_webpacker is set to true. [#6954] by [@Fs00]
66
+ * Don't apply sorting to collection until after scoping. [#7205] by [@agrobbin]
67
+ * Resolve dart sass deprecation warning for division. [#7095] by [@tordans]
68
+ * Use `instrument` from the Notifications API instead of low level `publish`. [#7262] by [@sprql]
69
+ * Avoid mutating string literals. [#6936] by [@tomgilligan]
70
+ * Include print styles in main stylesheet. [#6922] by [@deivid-rodriguez]
71
+ * Use `POST` for OmniAuth links. [#6916] by [@deivid-rodriguez]
72
+ * Scope new record instantiation by authorization scope. [#6884] by [@ngouy]
73
+ * Make `permit_params` and `belongs_to` order independent. [#6906] by [@deivid-rodriguez]
74
+ * Use collection length instead of running COUNTs for limited collections. [#5660] by [@MmKolodziej]
75
+
76
+ ### Bug Fixes
77
+
78
+ * Show ransackable_scopes filters in search results. [#7127] by [@vlad-psh]
79
+
80
+ ### Translation Improvements
81
+
82
+ * Fix Dutch translation for password reset button. [#7181] by [@mvz]
83
+ * Add few key to RO pagination.entry. [#6915] by [@lubosch]
84
+ * Change misleading Korean translation. [#6873] by [@1000ship]
85
+
86
+ ### Documentation
87
+
88
+ * Replace deprecated update_attributes! with update!. [#6959] by [@sergey-alekseev]
89
+ * Clarify docs on user setup. [#6872] by [@javawizard]
90
+
91
+ ### Dependency Changes
92
+
93
+ * Drop rails 5.2 support. [#7293] by [@deivid-rodriguez]
94
+ * Drop support for Ruby 2.5. [#7236] by [@alejandroperea]
95
+
96
+ ## 2.9.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.8.1..v2.9.0)
97
+
98
+ ### Enhancements
99
+
100
+ * Support for Rails 6.1. [#6548] by [@deivid-rodriguez]
101
+ * Add ability to override "Remove" button text on has_many forms. [#6523] by [@littleforest]
102
+ * Drop git in gemspec. [#6462] by [@utkarsh2102]
103
+
104
+ ### Bug Fixes
105
+
106
+ * Pick up upstream fixes in devise templates. [#6536] by [@munen]
107
+
108
+ ### Documentation
109
+
110
+ * Fix `has_many` syntax in forms documentation. [#6583] by [@krzcho]
111
+ * Add example of using `default_main_content` in show pages. [#6487] by [@sjieg]
112
+
113
+ ### Dependency Changes
114
+
115
+ * Remove sassc and sprockets runtime dependencies. [#6584] by [@deivid-rodriguez]
116
+
117
+ ## 2.8.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.8.0..v2.8.1)
118
+
119
+ ### Bug Fixes
120
+
121
+ * Fix `permitted_param` generation for `belongs_to` when `:param` is used. [#6460] by [@deivid-rodriguez]
122
+ * Fix streaming CSV export. [#6451] by [@deivid-rodriguez]
123
+ * Fix input string filter no rendering dropdown input when its column name ends with a ransack predicate. [#6422] by [@Fivell]
124
+
125
+ ## 2.8.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.7.0..v2.8.0)
126
+
127
+ ### Enhancements
128
+
129
+ * Allow using PORO decorators. [#6249] by [@brunvez]
130
+ * Make sure `ActiveAdmin.routes` provides routes in a consistent order. [#6124] by [@jiikko]
131
+ * Use proper closing tags for HTML in ModalDialog component. [#6221] by [@javierjulio]
132
+
133
+ ### Bug Fixes
134
+
135
+ * Fix comment layout so regardless of size, each is aligned and spaced evenly. [#6393] by [@Ivanov-Anton]
136
+
137
+ ### Translation Improvements
138
+
139
+ * Fix several Arabic translations. [#6368] by [@mshalaby]
140
+ * Add missing `scope/all` italian translation. [#6341] by [@fuzziness]
141
+ * Improve Japanese translation. [#6315] by [@rn0rno]
142
+ * Fix es and es-MX sign_in and sign_up translation. [#6210] by [@roramirez]
143
+
144
+ ### Documentation
145
+
146
+ * Fix filter_columns_for_large_association and filter_method_for_large_association examples. [#6232] by [@ndbroadbent]
147
+
148
+ ### Dependency Changes
149
+
150
+ * Allow formtastic 4. [#6318] by [@deivid-rodriguez]
151
+ * Drop Ruby 2.4 support. [#6198] by [@deivid-rodriguez]
152
+
153
+ ## 2.7.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.6.1..v2.7.0)
154
+
155
+ ### Enhancements
156
+
157
+ * Extend menu to allow for nested submenus. [#5994] by [@taralbass]
158
+ * Add Webpacker compatibility with opt-in config switch and installation generator. [#5855] by [@sgara]
159
+
160
+ ### Bug Fixes
161
+
162
+ * Fix scopes renderer when resource has only optional scopes and their conditions are false. [#6149] by [@Looooong]
163
+ * Fix some missing wrapper markup in "logged out" layout. [#6086] by [@irmela]
164
+ * Fix some typos in Vietnamese translation. [#6099] by [@giapnhdev]
165
+
166
+ ## 2.6.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.6.0..v2.6.1)
6
167
 
7
168
  ### Bug Fixes
8
169
 
@@ -13,7 +174,7 @@
13
174
 
14
175
  ## 2.6.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.5.0..v2.6.0)
15
176
 
16
- ### Enhacements
177
+ ### Enhancements
17
178
 
18
179
  * Display multiple flash messages in separate elements. [#5929] by [@mirelon]
19
180
  * Make delete confirmation messages in French & Spanish gender-neutral. [#5946] by [@cprodhomme]
@@ -507,15 +668,17 @@ Please check [0-6-stable] for previous changes.
507
668
  [#5504]: https://github.com/activeadmin/activeadmin/pull/5504
508
669
  [#5517]: https://github.com/activeadmin/activeadmin/pull/5517
509
670
  [#5537]: https://github.com/activeadmin/activeadmin/pull/5537
671
+ [#5548]: https://github.com/activeadmin/activeadmin/pull/5548
510
672
  [#5555]: https://github.com/activeadmin/activeadmin/pull/5555
511
673
  [#5583]: https://github.com/activeadmin/activeadmin/pull/5583
674
+ [#5590]: https://github.com/activeadmin/activeadmin/pull/5590
512
675
  [#5608]: https://github.com/activeadmin/activeadmin/pull/5608
513
676
  [#5611]: https://github.com/activeadmin/activeadmin/pull/5611
514
677
  [#5627]: https://github.com/activeadmin/activeadmin/pull/5627
515
678
  [#5631]: https://github.com/activeadmin/activeadmin/pull/5631
516
679
  [#5632]: https://github.com/activeadmin/activeadmin/pull/5632
517
680
  [#5650]: https://github.com/activeadmin/activeadmin/pull/5650
518
- [#5590]: https://github.com/activeadmin/activeadmin/pull/5590
681
+ [#5660]: https://github.com/activeadmin/activeadmin/pull/5660
519
682
  [#5662]: https://github.com/activeadmin/activeadmin/pull/5662
520
683
  [#5710]: https://github.com/activeadmin/activeadmin/pull/5710
521
684
  [#5726]: https://github.com/activeadmin/activeadmin/pull/5726
@@ -533,32 +696,90 @@ Please check [0-6-stable] for previous changes.
533
696
  [#5822]: https://github.com/activeadmin/activeadmin/pull/5822
534
697
  [#5826]: https://github.com/activeadmin/activeadmin/pull/5826
535
698
  [#5831]: https://github.com/activeadmin/activeadmin/pull/5831
536
- [#5548]: https://github.com/activeadmin/activeadmin/pull/5548
537
699
  [#5842]: https://github.com/activeadmin/activeadmin/pull/5842
538
700
  [#5854]: https://github.com/activeadmin/activeadmin/pull/5854
701
+ [#5855]: https://github.com/activeadmin/activeadmin/pull/5855
702
+ [#5867]: https://github.com/activeadmin/activeadmin/pull/5867
703
+ [#5870]: https://github.com/activeadmin/activeadmin/pull/5870
539
704
  [#5874]: https://github.com/activeadmin/activeadmin/pull/5874
540
705
  [#5877]: https://github.com/activeadmin/activeadmin/pull/5877
541
706
  [#5886]: https://github.com/activeadmin/activeadmin/pull/5886
542
- [#5870]: https://github.com/activeadmin/activeadmin/pull/5870
707
+ [#5887]: https://github.com/activeadmin/activeadmin/pull/5887
543
708
  [#5894]: https://github.com/activeadmin/activeadmin/pull/5894
544
709
  [#5895]: https://github.com/activeadmin/activeadmin/pull/5895
545
- [#5867]: https://github.com/activeadmin/activeadmin/pull/5867
546
- [#5887]: https://github.com/activeadmin/activeadmin/pull/5887
710
+ [#5929]: https://github.com/activeadmin/activeadmin/pull/5929
547
711
  [#5931]: https://github.com/activeadmin/activeadmin/pull/5931
548
712
  [#5938]: https://github.com/activeadmin/activeadmin/pull/5938
549
- [#5929]: https://github.com/activeadmin/activeadmin/pull/5929
550
713
  [#5943]: https://github.com/activeadmin/activeadmin/pull/5943
551
714
  [#5946]: https://github.com/activeadmin/activeadmin/pull/5946
552
715
  [#5956]: https://github.com/activeadmin/activeadmin/pull/5956
553
716
  [#5957]: https://github.com/activeadmin/activeadmin/pull/5957
717
+ [#5994]: https://github.com/activeadmin/activeadmin/pull/5994
554
718
  [#6000]: https://github.com/activeadmin/activeadmin/pull/6000
555
719
  [#6002]: https://github.com/activeadmin/activeadmin/pull/6002
556
720
  [#6047]: https://github.com/activeadmin/activeadmin/pull/6047
557
-
721
+ [#6086]: https://github.com/activeadmin/activeadmin/pull/6086
722
+ [#6099]: https://github.com/activeadmin/activeadmin/pull/6099
723
+ [#6124]: https://github.com/activeadmin/activeadmin/pull/6124
724
+ [#6149]: https://github.com/activeadmin/activeadmin/pull/6149
725
+ [#6198]: https://github.com/activeadmin/activeadmin/pull/6198
726
+ [#6210]: https://github.com/activeadmin/activeadmin/pull/6210
727
+ [#6221]: https://github.com/activeadmin/activeadmin/pull/6221
728
+ [#6232]: https://github.com/activeadmin/activeadmin/pull/6232
729
+ [#6249]: https://github.com/activeadmin/activeadmin/pull/6249
730
+ [#6315]: https://github.com/activeadmin/activeadmin/pull/6315
731
+ [#6318]: https://github.com/activeadmin/activeadmin/pull/6318
732
+ [#6341]: https://github.com/activeadmin/activeadmin/pull/6341
733
+ [#6368]: https://github.com/activeadmin/activeadmin/pull/6368
734
+ [#6393]: https://github.com/activeadmin/activeadmin/pull/6393
735
+ [#6422]: https://github.com/activeadmin/activeadmin/pull/6422
736
+ [#6451]: https://github.com/activeadmin/activeadmin/pull/6451
737
+ [#6460]: https://github.com/activeadmin/activeadmin/pull/6460
738
+ [#6462]: https://github.com/activeadmin/activeadmin/pull/6462
739
+ [#6487]: https://github.com/activeadmin/activeadmin/pull/6487
740
+ [#6523]: https://github.com/activeadmin/activeadmin/pull/6523
741
+ [#6536]: https://github.com/activeadmin/activeadmin/pull/6536
742
+ [#6548]: https://github.com/activeadmin/activeadmin/pull/6548
743
+ [#6583]: https://github.com/activeadmin/activeadmin/pull/6583
744
+ [#6584]: https://github.com/activeadmin/activeadmin/pull/6584
745
+ [#6872]: https://github.com/activeadmin/activeadmin/pull/6872
746
+ [#6873]: https://github.com/activeadmin/activeadmin/pull/6873
747
+ [#6884]: https://github.com/activeadmin/activeadmin/pull/6884
748
+ [#6906]: https://github.com/activeadmin/activeadmin/pull/6906
749
+ [#6915]: https://github.com/activeadmin/activeadmin/pull/6915
750
+ [#6916]: https://github.com/activeadmin/activeadmin/pull/6916
751
+ [#6922]: https://github.com/activeadmin/activeadmin/pull/6922
752
+ [#6936]: https://github.com/activeadmin/activeadmin/pull/6936
753
+ [#6954]: https://github.com/activeadmin/activeadmin/pull/6954
754
+ [#6959]: https://github.com/activeadmin/activeadmin/pull/6959
755
+ [#7095]: https://github.com/activeadmin/activeadmin/pull/7095
756
+ [#7127]: https://github.com/activeadmin/activeadmin/pull/7127
757
+ [#7144]: https://github.com/activeadmin/activeadmin/pull/7144
758
+ [#7170]: https://github.com/activeadmin/activeadmin/pull/7170
759
+ [#7181]: https://github.com/activeadmin/activeadmin/pull/7181
760
+ [#7205]: https://github.com/activeadmin/activeadmin/pull/7205
761
+ [#7235]: https://github.com/activeadmin/activeadmin/pull/7235
762
+ [#7236]: https://github.com/activeadmin/activeadmin/pull/7236
763
+ [#7262]: https://github.com/activeadmin/activeadmin/pull/7262
764
+ [#7293]: https://github.com/activeadmin/activeadmin/pull/7293
765
+ [#7332]: https://github.com/activeadmin/activeadmin/pull/7332
766
+ [#7336]: https://github.com/activeadmin/activeadmin/pull/7336
767
+ [#7340]: https://github.com/activeadmin/activeadmin/pull/7340
768
+ [#7341]: https://github.com/activeadmin/activeadmin/pull/7341
769
+ [#7349]: https://github.com/activeadmin/activeadmin/pull/7349
770
+ [#7350]: https://github.com/activeadmin/activeadmin/pull/7350
771
+ [#7377]: https://github.com/activeadmin/activeadmin/pull/7377
772
+ [#7384]: https://github.com/activeadmin/activeadmin/pull/7384
773
+ [#7394]: https://github.com/activeadmin/activeadmin/pull/7394
774
+ [#7453]: https://github.com/activeadmin/activeadmin/pull/7453
775
+
776
+ [@1000ship]: https://github.com/1000ship
558
777
  [@5t111111]: https://github.com/5t111111
559
778
  [@aarek]: https://github.com/aarek
560
779
  [@adler99]: https://github.com/adler99
780
+ [@agrobbin]: https://github.com/agrobbin
561
781
  [@ajw725]: https://github.com/ajw725
782
+ [@alejandroperea]: https://github.com/alejandroperea
562
783
  [@alex-bogomolov]: https://github.com/alex-bogomolov
563
784
  [@amiel]: https://github.com/amiel
564
785
  [@amiuhle]: https://github.com/amiuhle
@@ -566,6 +787,7 @@ Please check [0-6-stable] for previous changes.
566
787
  [@bartoszkopinski]: https://github.com/bartoszkopinski
567
788
  [@blocknotes]: https://github.com/blocknotes
568
789
  [@bolshakov]: https://github.com/bolshakov
790
+ [@brunvez]: https://github.com/brunvez
569
791
  [@buren]: https://github.com/buren
570
792
  [@chancancode]: https://github.com/chancancode
571
793
  [@chrp]: https://github.com/chrp
@@ -584,6 +806,10 @@ Please check [0-6-stable] for previous changes.
584
806
  [@FabioRos]: https://github.com/FabioRos
585
807
  [@faucct]: https://github.com/faucct
586
808
  [@Fivell]: https://github.com/Fivell
809
+ [@Fs00]: https://github.com/Fs00
810
+ [@fuzziness]: https://github.com/fuzziness
811
+ [@giapnhdev]: https://github.com/giapnhdev
812
+ [@gigorok]: https://github.com/gigorok
587
813
  [@glebtv]: https://github.com/glebtv
588
814
  [@gonzedge]: https://github.com/gonzedge
589
815
  [@guigs]: https://github.com/guigs
@@ -592,26 +818,41 @@ Please check [0-6-stable] for previous changes.
592
818
  [@innparusu95]: https://github.com/innparusu95
593
819
  [@ionut998]: https://github.com/ionut998
594
820
  [@irmela]: https://github.com/irmela
821
+ [@Ivanov-Anton]: https://github.com/Ivanov-Anton
595
822
  [@jasl]: https://github.com/jasl
823
+ [@javawizard]: https://github.com/javawizard
596
824
  [@javierjulio]: https://github.com/javierjulio
597
825
  [@jawa]: https://github.com/jawa
826
+ [@jaynetics]: https://github.com/jaynetics
598
827
  [@JiiHu]: https://github.com/JiiHu
828
+ [@jiikko]: https://github.com/jiikko
599
829
  [@johnnyshields]: https://github.com/johnnyshields
600
830
  [@jscheid]: https://github.com/jscheid
601
831
  [@juril33t]: https://github.com/juril33t
602
832
  [@jwesorick]: https://github.com/jwesorick
833
+ [@Karoid]: https://github.com/Karoid
603
834
  [@kjeldahl]: https://github.com/kjeldahl
604
835
  [@ko-lem]: https://github.com/ko-lem
605
836
  [@kobeumut]: https://github.com/kobeumut
606
837
  [@Kris-LIBIS]: https://github.com/Kris-LIBIS
838
+ [@krzcho]: https://github.com/krzcho
607
839
  [@kwent]: https://github.com/kwent
608
840
  [@leio10]: https://github.com/leio10
841
+ [@littleforest]: https://github.com/littleforest
842
+ [@Looooong]: https://github.com/Looooong
843
+ [@lubosch]: https://github.com/lubosch
609
844
  [@markstory]: https://github.com/markstory
610
845
  [@mauriciopasquier]: https://github.com/mauriciopasquier
611
846
  [@mconiglio]: https://github.com/mconiglio
847
+ [@mgrunberg]: https://github.com/mgrunberg
612
848
  [@micred]: https://github.com/micred
613
849
  [@mirelon]: https://github.com/mirelon
850
+ [@MmKolodziej]: https://github.com/MmKolodziej
851
+ [@mshalaby]: https://github.com/mshalaby
852
+ [@munen]: https://github.com/munen
853
+ [@mvz]: https://github.com/mvz
614
854
  [@ndbroadbent]: https://github.com/ndbroadbent
855
+ [@ngouy]: https://github.com/ngouy
615
856
  [@Nguyenanh]: https://github.com/Nguyenanh
616
857
  [@orkhan]: https://github.com/orkhan
617
858
  [@panasyuk]: https://github.com/panasyuk
@@ -619,22 +860,34 @@ Please check [0-6-stable] for previous changes.
619
860
  [@potatosalad]: https://github.com/potatosalad
620
861
  [@pranas]: https://github.com/pranas
621
862
  [@renotocn]: https://github.com/renotocn
863
+ [@rn0rno]: https://github.com/rn0rno
622
864
  [@RobinvanderVliet]: https://github.com/RobinvanderVliet
623
865
  [@rogerkk]: https://github.com/rogerkk
866
+ [@roramirez]: https://github.com/roramirez
624
867
  [@seanlinsley]: https://github.com/seanlinsley
868
+ [@sergey-alekseev]: https://github.com/sergey-alekseev
625
869
  [@sgara]: https://github.com/sgara
626
870
  [@ShallmentMo]: https://github.com/ShallmentMo
627
871
  [@shekibobo]: https://github.com/shekibobo
628
872
  [@shouya]: https://github.com/shouya
873
+ [@sjieg]: https://github.com/sjieg
874
+ [@sprql]: https://github.com/sprql
629
875
  [@stefsava]: https://github.com/stefsava
630
876
  [@stereoscott]: https://github.com/stereoscott
877
+ [@tagliala]: https://github.com/tagliala
878
+ [@taralbass]: https://github.com/taralbass
631
879
  [@tiagotex]: https://github.com/tiagotex
632
880
  [@timoschilling]: https://github.com/timoschilling
633
881
  [@TimPetricola]: https://github.com/TimPetricola
882
+ [@tomgilligan]: https://github.com/tomgilligan
883
+ [@TonyArra]: https://github.com/TonyArra
884
+ [@tordans]: https://github.com/tordans
885
+ [@utkarsh2102]: https://github.com/utkarsh2102
634
886
  [@varyonic]: https://github.com/varyonic
635
887
  [@vcsjones]: https://github.com/vcsjones
636
888
  [@vfonic]: https://github.com/vfonic
637
889
  [@violeta-p]: https://github.com/violeta-p
890
+ [@vlad-psh]: https://github.com/vlad-psh
638
891
  [@WaKeMaTTa]: https://github.com/WaKeMaTTa
639
892
  [@wasifhossain]: https://github.com/wasifhossain
640
893
  [@westonganger]: https://github.com/westonganger
data/CONTRIBUTING.md CHANGED
@@ -115,22 +115,6 @@ checks as the rest of the project. `bin/rake lint` will give you feedback in
115
115
  this regard. You can check & fix style issues by running each linter
116
116
  individually. Run `bin/rake -T lint` to see the available linters.
117
117
 
118
- ### Add a changelog entry
119
-
120
- If your PR includes user-observable changes, you'll be asked to add a changelog
121
- entry following the existing changelog format.
122
-
123
- The changelog format is the following:
124
-
125
- * One line per PR describing your fix or enhancement.
126
- * Entries end with a dot, followed by "[#pr-number] by [@github-username]".
127
- * Entries are added under the "Unreleased" section at the top of the file, under
128
- the "Bug Fixes" or "Enhancements" subsection.
129
- * References to github usernames and pull requests use [shortcut reference
130
- links].
131
- * Your github username reference definition is included in the correct
132
- alphabetical position at the bottom of the file.
133
-
134
118
  ### Make a Pull Request
135
119
 
136
120
  At this point, you should switch back to your master branch and make sure it's
@@ -152,12 +136,12 @@ git push --set-upstream origin 325-add-japanese-translations
152
136
 
153
137
  Finally, go to GitHub and [make a Pull Request][] :D
154
138
 
155
- CircleCI will run our test suite against all supported Rails versions. We care
156
- about quality, so your PR won't be merged until all tests pass. It's unlikely,
157
- but it's possible that your changes pass tests in one Rails version but fail in
158
- another. In that case, you'll have to setup your development environment (as
159
- explained in step 3) to use the problematic Rails version, and investigate
160
- what's going on!
139
+ Github Actions will run our test suite against all supported Rails versions. We
140
+ care about quality, so your PR won't be merged until all tests pass. It's
141
+ unlikely, but it's possible that your changes pass tests in one Rails version
142
+ but fail in another. In that case, you'll have to setup your development
143
+ environment (as explained in step 3) to use the problematic Rails version, and
144
+ investigate what's going on!
161
145
 
162
146
  ### Keeping your Pull Request updated
163
147
 
@@ -190,12 +174,12 @@ met.
190
174
 
191
175
  Maintainers need to do the following to push out a release:
192
176
 
193
- * Make sure all pull requests are in and that changelog is current
194
177
  * Switch to the master branch and make sure it's up to date.
195
178
  * Make sure you have [chandler] properly configured. Chandler is used to
196
179
  automatically submit github release notes from the changelog right after
197
180
  pushing the gem to rubygems.
198
181
  * Run one of `bin/rake release:prepare_{prerelease,prepatch,patch,preminor,minor,premajor,major}`, push the result and create a PR.
182
+ * Review and merge the PR. The generated changelog in the PR should include all user visible changes you intend to ship.
199
183
  * Run `bin/rake release` from the target branch once the PR is merged.
200
184
 
201
185
  [chandler]: https://github.com/mattbrictson/chandler#2-configure-credentials
@@ -204,7 +188,7 @@ Maintainers need to do the following to push out a release:
204
188
  [fork Active Admin]: https://help.github.com/articles/fork-a-repo
205
189
  [make a pull request]: https://help.github.com/articles/creating-a-pull-request
206
190
  [git rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing
207
- [interactive rebase]: https://help.github.com/articles/interactive-rebase
191
+ [interactive rebase]: https://help.github.com/en/github/using-git/about-git-rebase
208
192
  [shortcut reference links]: https://github.github.com/gfm/#shortcut-reference-link
209
193
  [Rollup]: https://rollupjs.org/guide/en/#quick-start
210
194
  [Yarn]: https://yarnpkg.com/en/docs/install
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  creating elegant backends for website administration.
5
5
 
6
6
  [![Version ][rubygems_badge]][rubygems]
7
- [![Circle CI ][circle_badge]][circle]
7
+ [![Github Actions ][actions_badge]][actions]
8
8
  [![Coverage ][coverage_badge]][coverage]
9
9
  [![Tidelift ][tidelift_badge]][tidelift]
10
10
  [![Inch CI ][inch_badge]][inch]
@@ -93,15 +93,15 @@ Thanks to [Open Collective][opencollective contributors] and all our Open Collec
93
93
 
94
94
  [rubygems_badge]: http://img.shields.io/gem/v/activeadmin.svg
95
95
  [rubygems]: https://rubygems.org/gems/activeadmin
96
- [circle_badge]: https://circleci.com/gh/activeadmin/activeadmin/tree/master.svg?style=svg
97
- [circle]: https://circleci.com/gh/activeadmin/activeadmin/tree/master
96
+ [actions_badge]: https://github.com/activeadmin/activeadmin/workflows/ci/badge.svg
97
+ [actions]: https://github.com/activeadmin/activeadmin/actions
98
98
  [coverage_badge]: https://api.codeclimate.com/v1/badges/779e407d22bacff19733/test_coverage
99
99
  [coverage]: https://codeclimate.com/github/activeadmin/activeadmin/test_coverage
100
100
  [inch_badge]: http://inch-ci.org/github/activeadmin/activeadmin.svg?branch=master
101
101
  [inch]: http://inch-ci.org/github/activeadmin/activeadmin
102
102
  [tidelift_badge]: https://tidelift.com/badges/github/activeadmin/activeadmin
103
103
  [tidelift]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=readme
104
- [tidelift_enterprise]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=referral&utm_campaign=github&utm_content=enterprise
104
+ [tidelift_enterprise]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=referral&utm_campaign=enterprise
105
105
  [tidelift_support]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=referral&utm_campaign=github&utm_content=support
106
106
 
107
107
  [docs]: http://activeadmin.info/0-installation.html
@@ -11,7 +11,7 @@
11
11
  //= require_self
12
12
 
13
13
  (function(global, factory) {
14
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("jquery"), require("jquery-ui/ui/widgets/datepicker"), require("jquery-ui/ui/widgets/dialog"), require("jquery-ui/ui/widgets/sortable"), require("jquery-ui/ui/widgets/tabs"), require("jquery-ui/ui/widget"), require("jquery-ujs")) : typeof define === "function" && define.amd ? define([ "exports", "jquery", "jquery-ui/ui/widgets/datepicker", "jquery-ui/ui/widgets/dialog", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/tabs", "jquery-ui/ui/widget", "jquery-ujs" ], factory) : (global = global || self,
14
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("jquery"), require("jquery-ui/ui/widgets/datepicker"), require("jquery-ui/ui/widgets/dialog"), require("jquery-ui/ui/widgets/sortable"), require("jquery-ui/ui/widgets/tabs"), require("jquery-ui/ui/widget"), require("jquery-ujs")) : typeof define === "function" && define.amd ? define([ "exports", "jquery", "jquery-ui/ui/widgets/datepicker", "jquery-ui/ui/widgets/dialog", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/tabs", "jquery-ui/ui/widget", "jquery-ujs" ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
15
15
  factory(global.ActiveAdmin = {}));
16
16
  })(this, function(exports) {
17
17
  "use strict";
@@ -27,18 +27,17 @@
27
27
  function ModalDialog(message, inputs, callback) {
28
28
  var html = '<form id="dialog_confirm" title="' + message + '"><ul>';
29
29
  for (var name in inputs) {
30
- var elem, opts, wrapper;
30
+ var opts, wrapper;
31
31
  var type = inputs[name];
32
32
  if (/^(datepicker|checkbox|text|number)$/.test(type)) {
33
33
  wrapper = "input";
34
34
  } else if (type === "textarea") {
35
35
  wrapper = "textarea";
36
36
  } else if ($.isArray(type)) {
37
- var _ref = [ "select", "option", type, "" ];
37
+ var _ref = [ "select", type, "" ];
38
38
  wrapper = _ref[0];
39
- elem = _ref[1];
40
- opts = _ref[2];
41
- type = _ref[3];
39
+ opts = _ref[1];
40
+ type = _ref[2];
42
41
  } else {
43
42
  throw new Error("Unsupported input type: {" + name + ": " + type + "}");
44
43
  }
@@ -46,29 +45,28 @@
46
45
  html += "<li>\n <label>" + (name.charAt(0).toUpperCase() + name.slice(1)) + "</label>\n <" + wrapper + ' name="' + name + '" class="' + klass + '" type="' + type + '">' + (opts ? function() {
47
46
  var result = [];
48
47
  opts.forEach(function(v) {
49
- var $elem = $("<" + elem + "/>");
48
+ var $elem = $("<option></option>");
50
49
  if ($.isArray(v)) {
51
50
  $elem.text(v[0]).val(v[1]);
52
51
  } else {
53
52
  $elem.text(v);
54
53
  }
55
- result.push($elem.wrap("<div>").parent().html());
54
+ result.push($elem.wrap("<div></div>").parent().html());
56
55
  });
57
56
  return result;
58
57
  }().join("") : "") + ("</" + wrapper + ">") + "</li>";
59
58
  var _ref2 = [];
60
59
  wrapper = _ref2[0];
61
- elem = _ref2[1];
62
- opts = _ref2[2];
63
- type = _ref2[3];
64
- klass = _ref2[4];
60
+ opts = _ref2[1];
61
+ type = _ref2[2];
62
+ klass = _ref2[3];
65
63
  }
66
64
  html += "</ul></form>";
67
65
  var form = $(html).appendTo("body");
68
66
  $("body").trigger("modal_dialog:before_open", [ form ]);
69
67
  form.dialog({
70
68
  modal: true,
71
- open: function open(event, ui) {
69
+ open: function open(_event, _ui) {
72
70
  $("body").trigger("modal_dialog:after_open", [ form ]);
73
71
  },
74
72
  dialogClass: "active_admin_dialog",
@@ -83,7 +81,7 @@
83
81
  }
84
82
  });
85
83
  }
86
- var onDOMReady = function onDOMReady() {
84
+ var onDOMReady$2 = function onDOMReady() {
87
85
  $(".batch_actions_selector li a").off("click confirm:complete");
88
86
  $(".batch_actions_selector li a").on("click", function(event) {
89
87
  var _this = this;
@@ -127,7 +125,7 @@
127
125
  });
128
126
  }
129
127
  };
130
- $(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
128
+ $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
131
129
  var CheckboxToggler = function() {
132
130
  function CheckboxToggler(options, container) {
133
131
  this.options = options;
@@ -136,7 +134,7 @@
136
134
  this._bind();
137
135
  }
138
136
  var _proto = CheckboxToggler.prototype;
139
- _proto.option = function option(key, value) {};
137
+ _proto.option = function option(_key, _value) {};
140
138
  _proto._init = function _init() {
141
139
  if (!this.container) {
142
140
  throw new Error("Container element not found");
@@ -159,7 +157,7 @@
159
157
  return _this._didChangeToggleAllCheckbox();
160
158
  });
161
159
  };
162
- _proto._didChangeCheckbox = function _didChangeCheckbox(checkbox) {
160
+ _proto._didChangeCheckbox = function _didChangeCheckbox(_checkbox) {
163
161
  var numChecked = this.checkboxes.filter(":checked").length;
164
162
  var allChecked = numChecked === this.checkboxes.length;
165
163
  var someChecked = numChecked > 0 && numChecked < this.checkboxes.length;
@@ -394,7 +392,6 @@
394
392
  $(document).on("change", '.has_many_container[data-sortable] :input[name$="[_destroy]"]', function() {
395
393
  recompute_positions($(this).closest(".has_many"));
396
394
  });
397
- init_sortable();
398
395
  $(document).on("has_many_add:after", ".has_many_container", init_sortable);
399
396
  });
400
397
  var init_sortable = function init_sortable() {
@@ -428,6 +425,7 @@
428
425
  }
429
426
  });
430
427
  };
428
+ $(document).ready(init_sortable).on("page:load turbolinks:load", init_sortable);
431
429
  var PerPage = function() {
432
430
  function PerPage(element) {
433
431
  this.element = element;
@@ -464,7 +462,7 @@
464
462
  return PerPage;
465
463
  }();
466
464
  (function($) {
467
- $(document).on("change", ".pagination_per_page > select", function(event) {
465
+ $(document).on("change", ".pagination_per_page > select", function(_event) {
468
466
  PerPage._jQueryInterface.call($(this), "update");
469
467
  });
470
468
  $.fn["perPage"] = PerPage._jQueryInterface;
@@ -473,7 +471,14 @@
473
471
  function _inheritsLoose(subClass, superClass) {
474
472
  subClass.prototype = Object.create(superClass.prototype);
475
473
  subClass.prototype.constructor = subClass;
476
- subClass.__proto__ = superClass;
474
+ _setPrototypeOf(subClass, superClass);
475
+ }
476
+ function _setPrototypeOf(o, p) {
477
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
478
+ o.__proto__ = p;
479
+ return o;
480
+ };
481
+ return _setPrototypeOf(o, p);
477
482
  }
478
483
  var TableCheckboxToggler = function(_CheckboxToggler) {
479
484
  _inheritsLoose(TableCheckboxToggler, _CheckboxToggler);
@@ -503,10 +508,10 @@
503
508
  return TableCheckboxToggler;
504
509
  }(CheckboxToggler);
505
510
  $.widget.bridge("tableCheckboxToggler", TableCheckboxToggler);
506
- var onDOMReady$2 = function onDOMReady() {
511
+ var onDOMReady = function onDOMReady() {
507
512
  return $("#active_admin_content .tabs").tabs();
508
513
  };
509
- $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
514
+ $(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
510
515
  function modal_dialog(message, inputs, callback) {
511
516
  console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
512
517
  return ModalDialog(message, inputs, callback);