active_element 0.0.8 → 0.0.10

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: 5242a7d475905339e70a49e13ec799e62d366d5b782906b26e1823a449c34bd4
4
- data.tar.gz: 2cb78e4a96025c197616390c4f0609d471b07c18490e51f9b942ad8eaab5caf6
3
+ metadata.gz: 6bb5a62660b8be1c2159d39aa81322af18d9f2df93306fe320853edec9e11cfe
4
+ data.tar.gz: 22e6d034873936f67c4bd674865119caf232b5894864dae02a1a21ecfddd331e
5
5
  SHA512:
6
- metadata.gz: 61a0cb96dead7dd521986de443e493a82f4ecfa943997ea20a31ff7aad3d06468c880309022ced85bc964d15465afca126f244ea95af725004fdf3c2004e7759
7
- data.tar.gz: 0730f46e7d2e91fa8167d4b3379473b3bc73c89db22a1d3029e10c4554b5a3bf315dbf0598fd2a4e012aa7fdb26070b566547c9baf7297c0997be3c7f6129833
6
+ metadata.gz: 662fbfb4a5e57396e6577f8b7d014fc1e47d9cc40481c13b20d21679ad5f2cb44822df29e07e0bf1cb086057dfacb219070e920bb083e9a91e2a470ee4709bad
7
+ data.tar.gz: dced5cd83abd57790c0908b13a175816b6a686a9ace98ff00017e4c3f7e876b88d3aeea5527d8d8753c3687a700a48e6e2c77f5db1aba84361774fae50b9a1e0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_element (0.0.8)
4
+ active_element (0.0.10)
5
5
  bootstrap (~> 5.3.0alpha3)
6
6
  kaminari (~> 1.2)
7
7
  paintbrush (~> 0.1.2)
@@ -149,7 +149,7 @@ GEM
149
149
  racc (~> 1.4)
150
150
  orm_adapter (0.5.0)
151
151
  paint (2.3.0)
152
- paintbrush (0.1.2)
152
+ paintbrush (0.1.3)
153
153
  parallel (1.23.0)
154
154
  parser (3.2.2.1)
155
155
  ast (~> 2.4.1)
@@ -192,7 +192,7 @@ GEM
192
192
  actionpack (>= 5.2)
193
193
  railties (>= 5.2)
194
194
  rexml (3.2.5)
195
- rouge (4.1.1)
195
+ rouge (4.1.2)
196
196
  rspec (3.12.0)
197
197
  rspec-core (~> 3.12.0)
198
198
  rspec-expectations (~> 3.12.0)
@@ -270,7 +270,7 @@ GEM
270
270
  i18n (>= 0.5)
271
271
  paint (~> 2.0)
272
272
  thor (1.2.2)
273
- tilt (2.1.0)
273
+ tilt (2.2.0)
274
274
  timeout (0.3.2)
275
275
  tzinfo (2.0.6)
276
276
  concurrent-ruby (~> 1.0)
@@ -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
 
@@ -6,6 +6,7 @@
6
6
  transition: height 0.5s ease-in-out, background-position 0.8s ease-in-out;
7
7
  background-position: right 1.2rem center;
8
8
  background-repeat: no-repeat;
9
+ z-index: 2000;
9
10
 
10
11
  &.shrink {
11
12
  height: 3rem;
@@ -19,6 +20,11 @@
19
20
  }
20
21
  }
21
22
 
23
+ .main.content {
24
+ top: 10rem;
25
+ position: relative;
26
+ }
27
+
22
28
  td.action-column {
23
29
  width: 2rem;
24
30
  }
@@ -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>
@@ -1,4 +1,4 @@
1
- <div class="application-menu sticky-top navbar navbar-dark bg-dark navbar-expand-lg">
1
+ <div class="application-menu position-fixed w-100 navbar navbar-dark bg-dark navbar-expand-lg">
2
2
  <%= render partial: 'active_element/theme/select' %>
3
3
  <div class="container p-0">
4
4
  <a class="navbar-brand" href="#"><%= ActiveElement.application_title %></a>
@@ -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? %>
@@ -45,7 +49,7 @@
45
49
 
46
50
  <%= render_active_element_hook 'active_element/before_content' %>
47
51
 
48
- <div class="content p-3 m-3">
52
+ <div class="main content position-relative ms-5 me-5">
49
53
  <%= yield %>
50
54
  </div>
51
55
 
@@ -33,10 +33,6 @@ module ActiveElement
33
33
 
34
34
  def boolean_value
35
35
  value_from_record
36
- component.controller.render_to_string(
37
- partial: 'active_element/components/fields/boolean',
38
- locals: { value: value_from_record }
39
- )
40
36
  end
41
37
 
42
38
  def geometry_value
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveElement
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.10'
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.8
4
+ version: 0.0.10
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-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap