active_element 0.0.7 → 0.0.9

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: 67016d55c760a93c399b7d63708d5d8630cb01540c267fd67b1265d36bb79626
4
- data.tar.gz: 0177fb6d53c398aaee6dc568035379d4397c4be321c84de76619964e7a9cf325
3
+ metadata.gz: f4d28d28ac920165e5c9c80981ffa6c1d165cd6a625e41f887adf3f93534459f
4
+ data.tar.gz: bfa35553e5303ef8edec759eca6411a0af4c41dfd8b0eaea05334276ad7e121b
5
5
  SHA512:
6
- metadata.gz: 22672e0631bf9b14bbed0d44c1d52e975b24b12855bdb2d8b89099007cd248a370054bbae3525a5d83610df510242129c59d3825f0b81ab4ed3db27167c3b9c3
7
- data.tar.gz: 6c26e0ae71456eecd781cf0a111be6280c17f3348f5c26039cccd718c9246015cebabba31d093cb00987cf43c67c40a8eba9192893f403d0787b848f4ff4b4b3
6
+ metadata.gz: 9804b1aed67d46c950ab9a5a1352534f9c67766c519ff818bd9db885063e3aac6191e08d335783ff038d38dff50b31f5813d454448f52105b31ab2871a10ef2a
7
+ data.tar.gz: d93fb9ff37a73b9f4b648b5b63f37b0cd5c4a0650e06261f24ef4ffc094f3c099c43e661f38dca89a7348eb15aac63f94c029892e546c9ecb25751d4925bfa49
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_element (0.0.7)
4
+ active_element (0.0.9)
5
5
  bootstrap (~> 5.3.0alpha3)
6
6
  kaminari (~> 1.2)
7
7
  paintbrush (~> 0.1.2)
@@ -38,7 +38,7 @@
38
38
  getAntiCsrfToken,
39
39
  cloneElement,
40
40
  components: {},
41
- jsonData: {},
41
+ jsonData: window.ActiveElement?.jsonData || {},
42
42
  controller_path: document.querySelector('meta[name="active_element_controller_path"]').content
43
43
  };
44
44
 
@@ -2,7 +2,7 @@
2
2
  <% options[:option_groups].each do |group_title, group, group_options| %>
3
3
  <div class="p-3">
4
4
  <a name="<%= ActiveElement::Components::Util::I18n.class_name(group_title) %>"></a>
5
- <%= component.page_section_title group_title %>
5
+ <%= active_element.component.page_section_title group_title %>
6
6
  <%= form.fields_for field do |subform| %>
7
7
  <% group.each do |label, name, checked| %>
8
8
  <%= subform.check_box(name, checked: checked, class: 'me-2') %>
@@ -10,7 +10,7 @@
10
10
  <div>
11
11
  <ul style="list-style-type: none;">
12
12
  <% missing_permissions.each do |missing_permission| %>
13
- <li class="font-monospace"><%= missing_permission %></li>
13
+ <li class="font-monospace"><%= missing_permission[:with] %></li>
14
14
  <% end %>
15
15
  </ul>
16
16
  </div>
@@ -6,6 +6,10 @@
6
6
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" integrity="sha512-fD9DI5bZwQxOi7MhYWnnNPlvXdp/2Pj3XSTRrFs5FQa4mizyGLnJcN6tuvUS6LbmgN1ut+XGSABKvjN0H6Aoow==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
7
7
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js" integrity="sha512-2rNj2KJ+D8s1ceNasTIex6z4HWyOnEYLVC3FigGOmyQCZc2eBXKgOxQmo3oKLHyfcj53uz4QMsRCWNbLd32Q1g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
8
8
 
9
+ <script>
10
+ window.ActiveElement = window.ActiveElement || {};
11
+ </script>
12
+
9
13
  <%= stylesheet_link_tag 'active_element/application', 'data-turbolinks-track': 'reload' %>
10
14
 
11
15
  <% if Rails.application.assets.find_asset('application.css').present? %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveElement
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.9'
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.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-30 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap