active_element 0.0.17 → 0.0.18

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: 400b6c6c72f4bf41706eb1266704d9c7ae5a9807969ceb069dce935387db8012
4
- data.tar.gz: 716241936a61a2bab52158b538d50ea48880af24f38b0d292f2a2c581a180361
3
+ metadata.gz: 7c6d9d2e62cd64334ba324d02116adda1fb4177b3ada32e2634c69ddc8a59d42
4
+ data.tar.gz: d37225180b3932060de9cbbaa4d1e5c69a70ccf277aeaaa27fdd94a99b2327f9
5
5
  SHA512:
6
- metadata.gz: 1cc434c86434948327d8b1c768883a8a806a3440ddc866087627abcd576a777bdc0bab24cd91330336819bf8e12937c144da29d479b8dc1419bb28e6f7ee3dcc
7
- data.tar.gz: 0fc355d84b115702c99a162b2f2df2d8728948b192fe643a99db6bbd0abb58d085ede47af66f087f714bdd24731d8a82637b9bb6998e12be2d7c14a643703d4a
6
+ metadata.gz: 6f97e214aa565b0c47bcac56a11340a043ecf5f0d138229e9827f7a35f730cc66d44e0ce73666c8f7fe87126a30beb0fe06e8a16072eadcb4cf264fe579762f5
7
+ data.tar.gz: d30d2534b1418c8f9ad70dcca84b7a53587d5e171d7c9b8489d51667c4714f502de905382d7ec030566da90eb02f8c2141f76a888f7a52770b4a711fbf6576b7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_element (0.0.16)
4
+ active_element (0.0.18)
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.9.1)
153
+ net-imap (0.4.10)
154
154
  date
155
155
  net-protocol
156
156
  net-pop (0.1.2)
@@ -1,5 +1,9 @@
1
1
  <%= active_element.component.page_title record.model_name.to_s.titleize %>
2
2
 
3
+ <%= render_active_element_hook "#{controller_path}/before_edit" %>
4
+
3
5
  <%= active_element.component.form model: [namespace, record].compact,
4
6
  destroy: active_element.state.deletable?,
5
7
  fields: active_element.state.editable_fields %>
8
+
9
+ <%= render_active_element_hook "#{controller_path}/after_edit" %>
@@ -7,6 +7,8 @@
7
7
  fields: active_element.state.searchable_fields %>
8
8
  <% end %>
9
9
 
10
+ <%= render_active_element_hook "#{controller_path}/before_index" %>
11
+
10
12
  <% if active_element.state.search_required && search_filters.compact_blank.blank? %>
11
13
  <% if active_element.state.creatable? %>
12
14
  <%= active_element.component.new_button(collection.model&.new, float: 'end', class: 'mb-3') %>
@@ -21,3 +23,5 @@
21
23
  collection: collection,
22
24
  fields: active_element.state.listable_fields %>
23
25
  <% end %>
26
+
27
+ <%= render_active_element_hook "#{controller_path}/after_index" %>
@@ -1,4 +1,8 @@
1
1
  <%= active_element.component.page_title record.model_name.to_s.titleize %>
2
2
 
3
+ <%= render_active_element_hook "#{controller_path}/before_new" %>
4
+
3
5
  <%= active_element.component.form model: [namespace, record].compact,
4
6
  fields: active_element.state.editable_fields %>
7
+
8
+ <%= render_active_element_hook "#{controller_path}/after_new" %>
@@ -1,7 +1,10 @@
1
1
  <%= active_element.component.page_title record.model_name.to_s.titleize %>
2
2
 
3
+ <%= render_active_element_hook "#{controller_path}/before_show" %>
4
+
3
5
  <%= active_element.component.table item: record,
4
6
  edit: active_element.state.editable?,
5
7
  destroy: active_element.state.deletable?,
6
8
  fields: active_element.state.viewable_fields %>
7
9
 
10
+ <%= render_active_element_hook "#{controller_path}/after_show" %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveElement
4
- VERSION = '0.0.17'
4
+ VERSION = '0.0.18'
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.17
4
+ version: 0.0.18
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-01-20 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap