pg_rails 7.6.39 → 7.6.40

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: 2de59469aa32c2ef73f030ea848179b8941f67a1eb948b72b018cf2d9e7b1b95
4
- data.tar.gz: 4311903fb7f15aa7b070e2ac36ff530bc6e4a7750ac011a7843d34a85921483e
3
+ metadata.gz: cf260a16e98842bebe950a0d4c3253d6c63f2690a922ec767c04d8a99ae7a0f7
4
+ data.tar.gz: 57dfdff6f3042539d11089edccf7fa32df6c38f86d151256a1536f5efe6d073b
5
5
  SHA512:
6
- metadata.gz: 37288f9d151624cb72e6c7567e6fdb875d91b5945baf3d66e045c640fa500d3ff3f1a90cbd6bd76aa898562c0c6b8f9d09aceddd287975f456af068b3310cee3
7
- data.tar.gz: 63d8f3e1d03d521db97cae73cde5908342bbcd9dc44913289f516ee0c932b63fcdb6e626ed6a575556f04b651315293f7315b5d0e1ed69471f750dfa14fc2375
6
+ metadata.gz: e6fa99a2c8881e8f615839ce690c7cb9bf1d3c3ed3cf31f5490641bc253bd2de7b8826ee7c9c2374716dc8b85653db0d066d5bf5dcd4739d41bac81ff2938fbc
7
+ data.tar.gz: 65c53c5d31a893c6700347d16f9e3b2146a82b21ca2b5905fc214ab551ff844c9b9880118f59a1adc030cd8636fffd44908c5032482e28e3c1501dc14041af9e
@@ -1,4 +1,5 @@
1
1
  - content_for(:container_class) { 'container border p-0 my-3' }
2
2
  - content_for(:container_style) { 'max-width: 50em; xborder-left: 1px solid grey' }
3
+ - content_for(:padding_top_class) { 'pt-0' }
3
4
 
4
5
  = render template: 'pg_engine/base/index'
@@ -54,13 +54,16 @@ $chevron-color: 200,200,200,.5;
54
54
 
55
55
  .navbar__nav-button[aria-expanded=true] {
56
56
  font-weight: bold;
57
+ background-color: tint-color($primary, 5%);
57
58
  }
58
59
 
59
60
  // Child entries
60
- #sidebar .collapse-inner {
61
- background-color: tint-color($primary, 5%);
62
- padding-bottom: 0.1em;
63
- padding-top: 0.1em;
61
+ #sidebar, .offcanvas {
62
+ .collapse-inner {
63
+ background-color: tint-color($primary, 5%);
64
+ padding-bottom: 0.1em;
65
+ padding-top: 0.1em;
66
+ }
64
67
  }
65
68
 
66
69
  // Los small-items están deprecados
@@ -1,6 +1,8 @@
1
1
  - content_for :content do
2
2
  - klass = modal_targeted? ? '' : (yield(:container_class).presence || 'container-fluid')
3
- div class="pt-3 #{klass}" style=yield(:container_style)
3
+ - padding_top_class = yield(:padding_top_class).presence || 'pt-3'
4
+
5
+ div class="#{padding_top_class} #{klass}" style=yield(:container_style)
4
6
  = content_for?(:containerized_content) ? yield(:containerized_content) : yield
5
7
 
6
8
  = render template: 'layouts/pg_layout/base'
@@ -5,18 +5,18 @@ div id="sidebar" class="#{@navbar_opened_class} flex-shrink-0 d-none d-#{@breakp
5
5
  ul.list-unstyled.ps-0.mt-5
6
6
  - @navbar.sidebar.each do |entry|
7
7
  - next if @navbar.hide_entry?(entry)
8
+ - active = @navbar.active_entry?(entry, request)
8
9
  li.mb-1
9
10
  - if entry[:children].present?
10
11
  - entry_id = "nav-entry-#{entry[:orig_idx]}"
11
- - active = @navbar.active_entry?(entry, request)
12
12
  a class="d-inline-flex text-decoration-none navbar__nav-button #{ active ? '' : 'collapsed'} #{entry[:attributes]}" data-bs-toggle="collapse" href="##{entry_id}" role="button" aria-expanded="#{ active ? 'true' : 'false'}" aria-controls=entry_id
13
13
  = entry[:title]
14
14
  - if active
15
- span.bi.bi-chevron-down.ms-1 style="font-size: 0.7em"
15
+ span.bi.bi-chevron-down.ms-1.align-text-bottom style="font-size: 0.7em"
16
16
  - else
17
- span.bi.bi-chevron-right.ms-1 style="font-size: 0.7em"
17
+ span.bi.bi-chevron-right.ms-1.align-text-bottom style="font-size: 0.7em"
18
18
 
19
- .collapse data-turbo-temporary=('true' unless @navbar.active_entry?(entry, request)) class="#{ 'show' if @navbar.active_entry?(entry, request)}" id=entry_id
19
+ .collapse data-turbo-temporary=('true' unless active) class="#{ 'show' if active}" id=entry_id
20
20
  .collapse-inner
21
21
  - entry[:children].each do |child|
22
22
  - next if @navbar.hide_entry?(child)
@@ -24,5 +24,5 @@ div id="sidebar" class="#{@navbar_opened_class} flex-shrink-0 d-none d-#{@breakp
24
24
  a href=child[:path] class="d-inline-flex text-decoration-none navbar__nav-button #{@navbar.active_entry?(child, request) ? 'active' : ''} #{child[:attributes]}"
25
25
  = child[:title]
26
26
  - else
27
- a href=entry[:path] class="d-inline-flex text-decoration-none navbar__nav-button #{@navbar.active_entry?(entry, request) ? 'active' : ''} #{entry[:attributes]}"
27
+ a href=entry[:path] class="d-inline-flex text-decoration-none navbar__nav-button #{active ? 'active' : ''} #{entry[:attributes]}"
28
28
  = entry[:title]
@@ -9,9 +9,28 @@
9
9
  ul.list-unstyled.mt-4
10
10
  - @navbar.sidebar.each do |entry|
11
11
  - next if @navbar.hide_entry?(entry)
12
+ - active = @navbar.active_entry?(entry, request)
12
13
  li
13
- a href=entry[:path] class="navbar__nav-button pe-4 text-light #{@navbar.active_entry?(entry, request) ? 'active' : ''} #{entry[:attributes]}"
14
- = entry[:title]
14
+ - if entry[:children].present?
15
+ - entry_id = "nav-entry-#{entry[:orig_idx]}"
16
+
17
+ a class="d-inline-flex text-decoration-none navbar__nav-button text-light #{ active ? '' : 'collapsed'} #{entry[:attributes]}" data-bs-toggle="collapse" href="##{entry_id}" role="button" aria-expanded="#{ active ? 'true' : 'false'}" aria-controls=entry_id
18
+ = entry[:title]
19
+ - if active
20
+ span.bi.bi-chevron-down.ms-1.align-text-bottom style="font-size: 0.7em"
21
+ - else
22
+ span.bi.bi-chevron-right.ms-1.align-text-bottom style="font-size: 0.7em"
23
+
24
+ .collapse data-turbo-temporary=('true' unless active) class="#{ 'show' if active}" id=entry_id
25
+ .collapse-inner
26
+ - entry[:children].each do |child|
27
+ - next if @navbar.hide_entry?(child)
28
+ .mb-1
29
+ a href=child[:path] class="d-inline-flex text-decoration-none navbar__nav-button text-light #{@navbar.active_entry?(child, request) ? 'active' : ''} #{child[:attributes]}"
30
+ = child[:title]
31
+ - else
32
+ a href=entry[:path] class="navbar__nav-button pe-4 text-light #{active ? 'active' : ''} #{entry[:attributes]}"
33
+ = entry[:title]
15
34
  css:
16
35
  .offcanvas a { text-decoration: none; }
17
36
  .offcanvas li { xmargin-top: 0.75em; }
@@ -2,6 +2,6 @@
2
2
 
3
3
  # :nocov:
4
4
  module PgRails
5
- VERSION = '7.6.39'
5
+ VERSION = '7.6.40'
6
6
  end
7
7
  # :nocov:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.39
4
+ version: 7.6.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso