pg_rails 7.0.8.pre.alpha.34 → 7.0.8.pre.alpha.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10c2e13f12a7fb0f1530859b0c5d3dbd9ce1c58c77e7ee9a7394d2b20a23f32e
4
- data.tar.gz: 82241162ef062ce35d088541a07f96f805bbeb44b00609a0293fb109d013854b
3
+ metadata.gz: f1a6272c4bd0f9bd9904d6dc64c733aa31e1b85a4b17373c4b76ae90722d164e
4
+ data.tar.gz: d02f0465aef54497116f999ed39ecdf124ef624beeff0b848f8418cc514859a3
5
5
  SHA512:
6
- metadata.gz: ffdc024ebc7186a8e89796edc5c30b6532a4234633a1cc0904985b149676cb0fef63979f65c048e1c263b552757fec8ecd81690c228ae856a6f0f1ef957a5970
7
- data.tar.gz: 4c6b1eb208310e6948ec6894dea6c4b8a5456c359e2d554f761e6ebf92ebbb5cfcff2855e5e6550e20cec23b19d83249ed113ec3278e1facefad34b80271c233
6
+ metadata.gz: 8e1323b765a22b5170a6d58f71d582a9178584077fbde03bdaf94b6f7bb459565d6b56716016ebc2005b545e75cdbab74c029e36fd8e8b733b03430d195e727d
7
+ data.tar.gz: 6757f49d2d181e7417e36a8d12769554f4184ed5dbf93886fa433504232d0fd8dc06d6df22af269fe4f48d1badccc125708679990c0a989d90a76bee9137856e
@@ -34,7 +34,9 @@ div
34
34
  tr
35
35
  - atributos_para_listar.each do |att|
36
36
  th = encabezado att, ordenable: true
37
- th.text-end = @clase_modelo.new.decorate.export_link(request.url)
37
+ th.text-end
38
+ - unless @export_link == false
39
+ = @clase_modelo.new.decorate.export_link(request.url)
38
40
  tbody
39
41
  - @collection.each do |object|
40
42
  - object = object.decorate
@@ -8,6 +8,7 @@ es:
8
8
  created_at: Fecha de creación
9
9
  updated_at: Fecha de actualización
10
10
  discarded_at: Fecha de borrado
11
+ confirmed_at: Fecha de confirmación
11
12
  actualizado_por: Actualizado por
12
13
  creado_por: Creado por
13
14
  form:
@@ -73,6 +73,9 @@ $chevron-color: 200,200,200,.5;
73
73
  }
74
74
  }
75
75
  }
76
+ .offcanvas {
77
+ --bs-offcanvas-width: 250px;
78
+ }
76
79
  /* Layout */
77
80
  .with-sidebar {
78
81
  display: flex;
@@ -3,7 +3,6 @@
3
3
 
4
4
  import { createConsumer } from '@anycable/web'
5
5
 
6
-
7
6
  let cableProtocol = document.head.querySelector('meta[name=actioncable-protocol]')
8
7
  cableProtocol = cableProtocol && cableProtocol.content
9
8
  cableProtocol = cableProtocol || 'actioncable-v1-ext-json'
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".resend_confirmation_instructions") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
  <%= f.full_error :confirmation_token %>
6
6
 
7
7
  <div class="form-inputs">
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".change_your_password") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <%= f.input :reset_password_token, as: :hidden %>
7
7
  <%= f.full_error :reset_password_token %>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".forgot_your_password") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <div class="form-inputs">
7
7
  <%= f.input :email,
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".title", resource: devise_i18n_fix_model_name_case(resource.model_name.human, i18n_key: "registrations.edit.title")) %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
 
6
6
  <div class="form-inputs">
7
7
  <%= f.input :email, required: true, autofocus: true %>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t(".resend_unlock_instructions") %></h2>
2
2
 
3
3
  <%= pg_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= f.error_notification %>
4
+ <%= f.mensajes_de_error %>
5
5
  <%= f.full_error :unlock_token %>
6
6
 
7
7
  <div class="form-inputs">
@@ -16,11 +16,14 @@ html
16
16
 
17
17
  = stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
18
18
  = javascript_include_tag 'application', 'data-turbo-track': 'reload', type: 'module'
19
- meta name="actioncable-protocol" content="#{Rails.env.test? ? 'actioncable-v1-json' : 'actioncable-v1-ext-json'}"
19
+ meta(name="actioncable-protocol"
20
+ content="#{Rails.env.test? ? 'actioncable-v1-json' : 'actioncable-v1-ext-json'}")
20
21
  - if @rollbar_token.present?
21
22
  meta name="rollbar-token" content="#{@rollbar_token}"
22
23
  meta name="rollbar-env" content="#{Rails.env}"
23
24
  body
25
+ = render partial: 'pg_layout/sidebar_mobile'
26
+
24
27
  div class="#{ @sidebar == false ? '' : 'with-sidebar' }"
25
28
  - unless @sidebar == false
26
29
  = render partial: 'pg_layout/sidebar'
@@ -4,12 +4,17 @@
4
4
  <button data-controller="navbar" data-action="navbar#expandNavbar" class="btn btn-outline-primary me-2 d-none d-<%= @breakpoint_navbar_expand %>-inline-block">
5
5
  <i class="bi bi-list"></i>
6
6
  </button>
7
+
8
+ <button class="btn btn-outline-primary d-inline-block d-<%= @breakpoint_navbar_expand %>-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
9
+ <i class="bi bi-list"></i>
10
+ </button>
11
+
7
12
  <% end %>
8
13
  <!-- <a class="navbar-brand" href="#">Navbar</a> -->
9
- <button class="navbar-toggler btn btn-outline-primary me-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
14
+ <%# <button class="navbar-toggler btn btn-outline-primary me-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
10
15
  <i class="bi bi-list"></i>
11
16
  <!-- <span class="navbar-toggler-icon"></span> -->
12
- </button>
17
+ </button> %>
13
18
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
14
19
  <ul class="navbar-nav mb-2 mb-lg-0">
15
20
  <% @navbar.bar('topbar.before').each do |entry| %>
@@ -44,16 +49,6 @@
44
49
  </li>
45
50
  </ul>
46
51
  </li>
47
- <%# Los item de sidebar en mobile %>
48
- <% @navbar.bar('sidebar').each do |entry| %>
49
- <% next if @navbar.hide_entry?(entry) %>
50
- <% random_id = rand(99999).to_s %>
51
- <li class="nav-item d-md-none">
52
- <a class="nav-link" href="<%= entry[:path] %>" role="button">
53
- <%= entry[:title] %>
54
- </a>
55
- </li>
56
- <% end %>
57
52
  <% end %>
58
53
  </ul>
59
54
  <% unless user_signed_in? %>
@@ -0,0 +1,97 @@
1
+ <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
2
+ <div class="offcanvas-header">
3
+ <h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
4
+ <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
5
+ </div>
6
+ <div class="offcanvas-body">
7
+ <ul class="navbar-nav mb-2 mb-lg-0">
8
+ <% @navbar.bar('topbar.before').each do |entry| %>
9
+ <li class="nav-item">
10
+ <a class="nav-link" href="<%= entry[:path] %>">
11
+ <%= entry[:title] %>
12
+ </a>
13
+ </li>
14
+ <% end %>
15
+ <% if user_signed_in? %>
16
+ <li class="nav-item dropdown">
17
+ <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
18
+ <%= current_user %>
19
+ </a>
20
+ <ul class="dropdown-menu">
21
+ <% if policy(current_user).edit? %>
22
+ <li>
23
+ <%= link_to "Mi perfil", edit_user_registration_path, class: 'dropdown-item' %>
24
+ </li>
25
+ <% end %>
26
+ <% @navbar.bar('topbar.dropdown_user').each do |entry| %>
27
+ <% next if @navbar.hide_entry?(entry) %>
28
+ <li>
29
+ <a class="dropdown-item" href="<%= entry[:path] %>">
30
+ <%= entry[:title] %>
31
+ </a>
32
+ </li>
33
+ <% end %>
34
+
35
+ <li>
36
+ <%= link_to t("devise.sign_out"), destroy_user_session_path, data: { 'turbo-method': 'delete' }, class: 'dropdown-item' %>
37
+ </li>
38
+ </ul>
39
+ </li>
40
+ <% end %>
41
+ </ul>
42
+ <% unless user_signed_in? %>
43
+ <%= link_to t("devise.sign_up"), new_user_registration_path, class: 'btn btn-success' %>
44
+ <ul class="navbar-nav mb-2 mb-lg-0">
45
+ <li class="nav-item">
46
+ <%= link_to t("devise.sign_in"), new_user_session_path, class: 'nav-link' %>
47
+ </li>
48
+ </ul>
49
+ <% end %>
50
+ <% @navbar.extensiones.each do |extension| %>
51
+ <%= extension %>
52
+ <% end %>
53
+
54
+
55
+ <% if user_signed_in? %>
56
+ <div class="sidebar--large-items">
57
+ <hr>
58
+ <%# <div class="sidebar--small-items">
59
+ <ul class="list-unstyled ps-0">
60
+ <li class="mb-1 text-center">
61
+ <a href="javascript:void(0)" class="nav-link" data-bs-toggle="tooltip" data-bs-title="Agenda">
62
+ <i class="bi bi-calendar"></i>
63
+ </a>
64
+ </li>
65
+ </ul>
66
+ </div> %>
67
+ <div class="sidebar--large-items">
68
+ <ul class="list-unstyled ps-0">
69
+ <% @navbar.bar('sidebar').each do |entry| %>
70
+ <% next if @navbar.hide_entry?(entry) %>
71
+ <% random_id = rand(99999).to_s %>
72
+ <li class="mb-1">
73
+ <% if entry[:children].present? %>
74
+ <button class="btn btn-toggle d-inline-flex align-items-center rounded border-0 collapsed" data-bs-toggle="collapse" data-bs-target="#<%= 'collapse-' + random_id %>" aria-expanded="true">
75
+ <%= entry[:title] %>
76
+ </button>
77
+ <div class="collapse <%= @navbar.any_children_active?(entry, request) ? 'show' : '' %>" id="<%= 'collapse-' + random_id %>">
78
+ <ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
79
+ <% entry[:children].each do |child| %>
80
+ <% next if @navbar.hide_entry?(child) %>
81
+ <li><a href="<%= child[:path] %>" class="<%= @navbar.active_entry?(child, request) ? 'active' : '' %> d-inline-flex text-decoration-none rounded"><%= child[:title] %></a></li>
82
+ <% end %>
83
+ </ul>
84
+ </div>
85
+ <% else %>
86
+ <a href="<%= entry[:path] %>" class="<%= @navbar.active_entry?(entry, request) ? 'active' : '' %> d-inline-flex text-decoration-none ms-4"><%= entry[:title] %></a>
87
+ <% end %>
88
+ </li>
89
+ <% end %>
90
+ </ul>
91
+ <hr>
92
+ </div>
93
+ </div>
94
+ <% end %>
95
+
96
+ </div>
97
+ </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.34'
4
+ VERSION = '7.0.8-alpha.36'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.34
4
+ version: 7.0.8.pre.alpha.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -570,6 +570,20 @@ dependencies:
570
570
  - - "~>"
571
571
  - !ruby/object:Gem::Version
572
572
  version: 4.2.1
573
+ - !ruby/object:Gem::Dependency
574
+ name: stimulus-rails
575
+ requirement: !ruby/object:Gem::Requirement
576
+ requirements:
577
+ - - "~>"
578
+ - !ruby/object:Gem::Version
579
+ version: 1.3.3
580
+ type: :development
581
+ prerelease: false
582
+ version_requirements: !ruby/object:Gem::Requirement
583
+ requirements:
584
+ - - "~>"
585
+ - !ruby/object:Gem::Version
586
+ version: 1.3.3
573
587
  - !ruby/object:Gem::Dependency
574
588
  name: bullet
575
589
  requirement: !ruby/object:Gem::Requirement
@@ -985,6 +999,7 @@ files:
985
999
  - pg_layout/app/views/pg_layout/_flash_alert.html.slim
986
1000
  - pg_layout/app/views/pg_layout/_navbar.html.erb
987
1001
  - pg_layout/app/views/pg_layout/_sidebar.html.erb
1002
+ - pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
988
1003
  - pg_layout/lib/pg_layout.rb
989
1004
  - pg_layout/lib/pg_layout/engine.rb
990
1005
  - pg_layout/spec/lib/navbar_spec.rb