activeadmin 4.0.0.beta15 → 4.0.0.beta16

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/UPGRADING.md +5 -3
  3. data/app/controllers/active_admin/resource_controller/data_access.rb +1 -1
  4. data/app/controllers/active_admin/resource_controller/streaming.rb +2 -2
  5. data/app/helpers/active_admin/form_helper.rb +1 -1
  6. data/app/views/active_admin/_site_header.html.erb +1 -1
  7. data/app/views/active_admin/kaminari/_gap.html.erb +1 -1
  8. data/app/views/active_admin/page/index.html.arb +1 -2
  9. data/app/views/active_admin/resource/_form.html.arb +0 -1
  10. data/app/views/active_admin/resource/_form_default.html.arb +0 -1
  11. data/app/views/active_admin/resource/_index_as_table_default.html.arb +0 -1
  12. data/app/views/active_admin/resource/_show_default.html.arb +0 -1
  13. data/app/views/active_admin/resource/edit.html.arb +0 -1
  14. data/app/views/active_admin/resource/index.html.arb +0 -1
  15. data/app/views/active_admin/resource/new.html.arb +0 -1
  16. data/app/views/active_admin/resource/show.html.arb +0 -1
  17. data/app/views/active_admin/shared/_sidebar_section.html.arb +0 -1
  18. data/app/views/layouts/active_admin.html.erb +1 -1
  19. data/config/importmap.rb +2 -2
  20. data/config/locales/ar.yml +135 -133
  21. data/config/locales/az.yml +103 -102
  22. data/config/locales/bg.yml +91 -90
  23. data/config/locales/bs.yml +95 -94
  24. data/config/locales/ca.yml +129 -128
  25. data/config/locales/cs.yml +82 -81
  26. data/config/locales/da.yml +102 -101
  27. data/config/locales/de.yml +130 -129
  28. data/config/locales/el.yml +94 -93
  29. data/config/locales/en-CA.yml +104 -103
  30. data/config/locales/en-GB.yml +104 -103
  31. data/config/locales/en.yml +134 -132
  32. data/config/locales/eo.yml +107 -106
  33. data/config/locales/es-MX.yml +70 -69
  34. data/config/locales/es.yml +129 -128
  35. data/config/locales/fa.yml +91 -90
  36. data/config/locales/fi.yml +84 -83
  37. data/config/locales/fr.yml +125 -124
  38. data/config/locales/he.yml +103 -102
  39. data/config/locales/hr.yml +95 -94
  40. data/config/locales/hu.yml +76 -75
  41. data/config/locales/id.yml +97 -96
  42. data/config/locales/it.yml +134 -132
  43. data/config/locales/ja.yml +109 -108
  44. data/config/locales/ko.yml +134 -132
  45. data/config/locales/lt.yml +106 -105
  46. data/config/locales/lv.yml +70 -69
  47. data/config/locales/mk.yml +100 -99
  48. data/config/locales/nb.yml +98 -97
  49. data/config/locales/nl.yml +113 -112
  50. data/config/locales/pl.yml +137 -136
  51. data/config/locales/pt-BR.yml +134 -105
  52. data/config/locales/pt-PT.yml +71 -70
  53. data/config/locales/ro.yml +74 -73
  54. data/config/locales/ru.yml +141 -140
  55. data/config/locales/sk.yml +131 -130
  56. data/config/locales/sv-SE.yml +126 -125
  57. data/config/locales/tr.yml +105 -104
  58. data/config/locales/uk.yml +140 -103
  59. data/config/locales/vi.yml +125 -124
  60. data/config/locales/zh-CN.yml +135 -133
  61. data/config/locales/zh-TW.yml +135 -133
  62. data/lib/active_admin/application.rb +2 -2
  63. data/lib/active_admin/batch_actions/resource_extension.rb +1 -1
  64. data/lib/active_admin/csv_builder.rb +1 -1
  65. data/lib/active_admin/dsl.rb +1 -1
  66. data/lib/active_admin/filters/active.rb +1 -1
  67. data/lib/active_admin/filters/active_filter.rb +1 -7
  68. data/lib/active_admin/filters/forms.rb +0 -3
  69. data/lib/active_admin/filters/resource_extension.rb +1 -1
  70. data/lib/active_admin/form_builder.rb +0 -4
  71. data/lib/active_admin/helpers/optional_display.rb +1 -1
  72. data/lib/active_admin/inputs/filters/base/search_method_select.rb +2 -2
  73. data/lib/active_admin/inputs/filters/select_input.rb +1 -3
  74. data/lib/active_admin/resource/action_items.rb +2 -2
  75. data/lib/active_admin/resource/belongs_to.rb +0 -1
  76. data/lib/active_admin/resource/naming.rb +1 -1
  77. data/lib/active_admin/resource.rb +1 -1
  78. data/lib/active_admin/resource_collection.rb +1 -1
  79. data/lib/active_admin/resource_dsl.rb +2 -2
  80. data/lib/active_admin/version.rb +1 -1
  81. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -1
  82. data/lib/active_admin/views/components/table_for.rb +1 -1
  83. data/lib/active_admin/views/index_as_table.rb +7 -2
  84. data/plugin.js +3 -12
  85. data/vendor/javascript/flowbite.js +1 -1
  86. metadata +8 -12
  87. data/lib/active_admin/views/components/tabs.rb +0 -40
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta15
4
+ version: 4.0.0.beta16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -12,10 +12,9 @@ authors:
12
12
  - Piers C
13
13
  - Sean Linsley
14
14
  - Timo Schilling
15
- autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
- date: 2024-12-07 00:00:00.000000000 Z
17
+ date: 1980-01-02 00:00:00.000000000 Z
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
21
20
  name: arbre
@@ -51,28 +50,28 @@ dependencies:
51
50
  requirements:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: '3.1'
53
+ version: '5.0'
55
54
  type: :runtime
56
55
  prerelease: false
57
56
  version_requirements: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
- version: '3.1'
60
+ version: '5.0'
62
61
  - !ruby/object:Gem::Dependency
63
62
  name: formtastic_i18n
64
63
  requirement: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - ">="
67
66
  - !ruby/object:Gem::Version
68
- version: '0.4'
67
+ version: '0.7'
69
68
  type: :runtime
70
69
  prerelease: false
71
70
  version_requirements: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
74
73
  - !ruby/object:Gem::Version
75
- version: '0.4'
74
+ version: '0.7'
76
75
  - !ruby/object:Gem::Dependency
77
76
  name: inherited_resources
78
77
  requirement: !ruby/object:Gem::Requirement
@@ -357,7 +356,6 @@ files:
357
356
  - lib/active_admin/views/components/scopes.rb
358
357
  - lib/active_admin/views/components/status_tag.rb
359
358
  - lib/active_admin/views/components/table_for.rb
360
- - lib/active_admin/views/components/tabs.rb
361
359
  - lib/active_admin/views/index_as_table.rb
362
360
  - lib/activeadmin.rb
363
361
  - lib/generators/active_admin/assets/assets_generator.rb
@@ -391,7 +389,6 @@ metadata:
391
389
  rubygems_mfa_required: 'true'
392
390
  source_code_uri: https://github.com/activeadmin/activeadmin
393
391
  wiki_uri: https://github.com/activeadmin/activeadmin/wiki
394
- post_install_message:
395
392
  rdoc_options: []
396
393
  require_paths:
397
394
  - lib
@@ -399,15 +396,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
399
396
  requirements:
400
397
  - - ">="
401
398
  - !ruby/object:Gem::Version
402
- version: '3.1'
399
+ version: '3.2'
403
400
  required_rubygems_version: !ruby/object:Gem::Requirement
404
401
  requirements:
405
402
  - - ">="
406
403
  - !ruby/object:Gem::Version
407
404
  version: '0'
408
405
  requirements: []
409
- rubygems_version: 3.5.15
410
- signing_key:
406
+ rubygems_version: 3.7.0
411
407
  specification_version: 4
412
408
  summary: Active Admin is a Ruby on Rails plugin for generating administration style
413
409
  interfaces. It abstracts common business application patterns to make it simple
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
- module ActiveAdmin
3
- module Views
4
- class Tabs < ActiveAdmin::Component
5
- builder_method :tabs
6
-
7
- def tab(title, options = {}, &block)
8
- title = title.to_s.titleize if title.is_a? Symbol
9
- @menu << build_menu_item(title, options, &block)
10
- @tabs_content << build_content_item(title, options, &block)
11
- end
12
-
13
- def build(attributes = {}, &block)
14
- super(attributes)
15
- add_class "tabs"
16
- @menu = nav(class: "tabs-nav", role: "tablist", "data-tabs-toggle": "#tabs-container-#{object_id}")
17
- @tabs_content = div(class: "tabs-content", id: "tabs-container-#{object_id}")
18
- end
19
-
20
- def build_menu_item(title, options, &block)
21
- fragment = options.fetch(:id, fragmentize(title))
22
- html_options = options.fetch(:html_options, {}).merge("data-tabs-target": "##{fragment}", role: "tab", "aria-controls": fragment, href: "#")
23
- a html_options do
24
- title
25
- end
26
- end
27
-
28
- def build_content_item(title, options, &block)
29
- options = options.reverse_merge(id: fragmentize(title), class: "hidden", role: "tabpanel", "aria-labelledby": "#{title}-tab")
30
- div(options, &block)
31
- end
32
-
33
- private
34
-
35
- def fragmentize(string)
36
- "tabs-#{string.parameterize}-#{object_id}"
37
- end
38
- end
39
- end
40
- end