active_element 0.0.22 → 0.0.23

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9d94959c19253efbd6ed4d945304d6397d4d1ad1a9aa0d8bd23ef5329559980
4
- data.tar.gz: b3a0d8f7bc1d514c6cca342e7e8fadc37a818497c87ebf5e894c757186ae6b21
3
+ metadata.gz: d8ae4f6f2b316d246e1e839840c7a291dd038d20ed12706ca8aa3f5965ce2053
4
+ data.tar.gz: 7b895b021ddfd7635cbecfffc9e43a92efb5816efe1a629dc3290374259cc476
5
5
  SHA512:
6
- metadata.gz: 7a019e911c0d376c2a12f44e5d37ef697cf00a9a11d889c016784a2a3b41df9b0deb17f93c545ee0e2563d5f8a132a9f2c49cb0f900ed4bd926fa361cf67f81b
7
- data.tar.gz: f7e4b9a719611918516bb1d2601eb66eb77f87dc648dffe93cbdf1b5c7c96f829bf76098145e698b27b943fa8331128409ccb8fc089d32c0e8f4b91851afe514
6
+ metadata.gz: b75b45ef552b25e48c6ac8cfbc5489a7fe45066c14f13f172a169d6a8bb7d168d02668d494e065da8d1a9799b66f82047d37fbba6e46db22978b018eb31c2b22
7
+ data.tar.gz: fe6c78e7e9fecdeeaef7153ef44168b9caa6dfbca3cac02cba6dd3d9952d614eb03e9cd52d26b921b64f45e177ed58e653450b21159691475ef0aa8074c97fec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_element (0.0.22)
4
+ active_element (0.0.23)
5
5
  bootstrap (~> 5.3.0alpha3)
6
6
  kaminari (~> 1.2)
7
7
  paintbrush (~> 0.1.2)
@@ -150,7 +150,7 @@ GEM
150
150
  mini_mime (1.1.5)
151
151
  mini_portile2 (2.8.2)
152
152
  minitest (5.18.1)
153
- net-imap (0.4.11)
153
+ net-imap (0.4.12)
154
154
  date
155
155
  net-protocol
156
156
  net-pop (0.1.2)
@@ -51,3 +51,10 @@
51
51
  row_class_mapper: row_class_mapper } %>
52
52
  <% end %>
53
53
  <% end %>
54
+
55
+ <% if footer_pagination %>
56
+ <%=
57
+ render partial: 'active_element/components/table/pagination',
58
+ locals: { collection: collection, params: params, page_size: page_size, page_sizes: page_sizes }
59
+ %>
60
+ <% end %>
@@ -122,6 +122,7 @@
122
122
  <%= render_active_element_hook 'active_element/after_content' %>
123
123
 
124
124
  <% if !respond_to?(:javascript_importmap_tags) && Rails.application.assets&.find_asset('application.js').present? %>
125
+ <%= javascript_include_tag 'active_element/active_element', 'data-turbo-track': 'reload', 'data-turbolinks-track': 'reload' %>
125
126
  <%= javascript_include_tag 'application', 'data-turbo-track': 'reload', 'data-turbolinks-track': 'reload' %>
126
127
  <% end %>
127
128
  </body>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_element (0.0.21)
4
+ active_element (0.0.20)
5
5
  bootstrap (~> 5.3.0alpha3)
6
6
  kaminari (~> 1.2)
7
7
  paintbrush (~> 0.1.2)
@@ -15,7 +15,7 @@ module ActiveElement
15
15
  # rubocop:disable Metrics/MethodLength
16
16
  def initialize(controller, class_name:, collection:, fields:, params:, model_name: nil, style: nil,
17
17
  show: false, new: false, edit: false, destroy: false, paginate: true, group: nil,
18
- group_title: false, nested_for: nil, row_class: nil, title: nil, **_kwargs)
18
+ group_title: false, nested_for: nil, row_class: nil, title: nil, footer_pagination: nil, **_kwargs)
19
19
  @controller = controller
20
20
  @class_name = class_name
21
21
  @model_name = model_name
@@ -34,6 +34,7 @@ module ActiveElement
34
34
  @title = title
35
35
  @nested_for = nested_for
36
36
  verify_paginate_and_group
37
+ @footer_pagination = footer_pagination
37
38
  end
38
39
  # rubocop:enable Metrics/MethodLength
39
40
 
@@ -60,7 +61,8 @@ module ActiveElement
60
61
  page_sizes: [5, 10, 25, 50, 75, 100, 200],
61
62
  page_size: page_size,
62
63
  i18n: i18n,
63
- row_class_mapper: row_class_mapper
64
+ row_class_mapper: row_class_mapper,
65
+ footer_pagination: @footer_pagination && display_pagination?
64
66
  }
65
67
  end
66
68
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveElement
4
- VERSION = '0.0.22'
4
+ VERSION = '0.0.23'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_element
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-29 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap