pg_rails 7.6.9 → 7.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_associable/app/assets/stylesheets/pg_associable.scss +10 -1
- data/pg_associable/app/helpers/pg_associable/helpers.rb +1 -2
- data/pg_associable/app/javascript/asociable_controller.tsx +0 -1
- data/pg_associable/app/views/pg_associable/_resultados_inline.html.slim +4 -3
- data/pg_engine/app/assets/stylesheets/pg_rails_b5.scss +6 -2
- data/pg_engine/app/components/inline_edit/inline_show_component.html.slim +1 -1
- data/pg_rails/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94ce6725dc3bda0f243cac15789f9b1e8bae483a2c7a27a03b90be4c574605cb
|
4
|
+
data.tar.gz: 1ddac002f2e007ab5a86bb66a3eb387a576fa3cedb7c177e9acd61e1d19136bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f79bbcb61c6b7ece9205bf9518c4c955796d209672882fdd337c54af8741cd07b7d1cca667537bd3271adddcedd94bb8acf1e9da25f13b2d5cb5c99b06ea3c
|
7
|
+
data.tar.gz: c8fba7e89d87b571085f923130bf5a081aaac7c345c910b47024317a06d9d84be18d887a6e526bd769fac1b4513cf1cb7fb9b23b61cafa3a847c53dde70bf6b4
|
@@ -82,17 +82,26 @@
|
|
82
82
|
.sub-wrapper {
|
83
83
|
overflow: auto;
|
84
84
|
box-shadow: 0px 9px 13px -3px rgba(0, 0, 0, 0.5);
|
85
|
+
z-index: 50;
|
85
86
|
// position: absolute;
|
86
87
|
// z-index: 1;
|
87
88
|
background-color: #{$body-bg};
|
88
89
|
border: 1px solid #a7b7bb;
|
89
90
|
border-top: none;
|
90
91
|
border-radius: 4px;
|
91
|
-
padding: 5px 0;
|
92
|
+
// padding: 5px 0;
|
92
93
|
width: 100%;
|
93
94
|
|
94
95
|
border-top-left-radius: 0;
|
95
96
|
border-top-right-radius: 0;
|
97
|
+
|
98
|
+
a[data-action="asociable#crearItem"] {
|
99
|
+
position: sticky;
|
100
|
+
bottom: 0;
|
101
|
+
background-color: #faf5ff;
|
102
|
+
outline: 1px solid #ababcc;
|
103
|
+
box-shadow: 20px 9px 13px 7px rgba(0, 0, 0, 0.5);
|
104
|
+
}
|
96
105
|
}
|
97
106
|
.modal-asociable .modal-footer {
|
98
107
|
justify-content: space-between;
|
@@ -16,10 +16,9 @@ module PgAssociable
|
|
16
16
|
query = params[:query]
|
17
17
|
timeout_id = params[:timeout_id]
|
18
18
|
@collection = search_in_scope(query)
|
19
|
-
@count = @collection.count
|
20
19
|
render turbo_stream:
|
21
20
|
turbo_stream.update("#{resultados_prefix}-#{params[:id]}",
|
22
|
-
partial:, locals: { collection: @collection, query:, timeout_id:,
|
21
|
+
partial:, locals: { collection: @collection, query:, timeout_id:, clase_modelo: })
|
23
22
|
end
|
24
23
|
|
25
24
|
def search_in_scope(query)
|
@@ -27,7 +27,6 @@ export default class extends Controller {
|
|
27
27
|
this.subWrapper.setAttribute('id', `resultados-inline-${this.elemId}`)
|
28
28
|
this.subWrapper.classList.add('sub-wrapper')
|
29
29
|
this.subWrapper.classList.add('position-absolute')
|
30
|
-
this.subWrapper.classList.add('z-1')
|
31
30
|
result.appendChild(this.subWrapper)
|
32
31
|
this.input.parentNode.appendChild(result)
|
33
32
|
|
@@ -1,9 +1,10 @@
|
|
1
|
-
/ # locals: (collection:, query:, timeout_id:,
|
1
|
+
/ # locals: (collection:, query:, timeout_id:, field_name: nil, clase_modelo: nil)
|
2
2
|
.resultados.inline tabindex="-1"
|
3
3
|
div data-controller="clear-timeout" data-timeout-id="#{timeout_id}"
|
4
4
|
ul.list-group.list-group-flush
|
5
|
+
- count = collection.count
|
5
6
|
- if count.positive?
|
6
|
-
.text-center.fst-italic style="font-size:0.7em"
|
7
|
+
.text-center.fst-italic.text-secondary.pt-1 style="font-size:0.7em"
|
7
8
|
| #{count} resultados para "#{query}"
|
8
9
|
- collection.each do |object|
|
9
10
|
= link_to object.to_s, 'javascript:void(0)',
|
@@ -14,7 +15,7 @@
|
|
14
15
|
li [class="list-group-item text-center text-warning-emphasis py-2" style="font-size: 0.85em"]
|
15
16
|
| No hay resultados para "#{query}"
|
16
17
|
|
17
|
-
- if policy(clase_modelo).new_from_associable?
|
18
|
+
- if clase_modelo.present? && policy(clase_modelo).new_from_associable?
|
18
19
|
/ TODO: unificar código repetido en asociable_controller.js
|
19
20
|
a [key="new" href="javascript:void(0)" class="list-group-item mt-3 text-center"
|
20
21
|
data-action="asociable#crearItem"]
|
@@ -211,6 +211,10 @@ input[type=datetime-local], input[type=datetime] {
|
|
211
211
|
border-bottom: 1px dotted #333;
|
212
212
|
padding-bottom: 1px;
|
213
213
|
|
214
|
+
.edit-link {
|
215
|
+
color: rgba(33, 37, 41, 0.21);
|
216
|
+
}
|
217
|
+
|
214
218
|
&:not(:has(.trix-content)) .edit-link {
|
215
219
|
margin-right: 0.25em;
|
216
220
|
}
|
@@ -221,8 +225,8 @@ input[type=datetime-local], input[type=datetime] {
|
|
221
225
|
border-bottom: 1px dotted #333;
|
222
226
|
}
|
223
227
|
|
224
|
-
|
225
|
-
i {
|
228
|
+
&:hover {
|
229
|
+
.edit-link i {
|
226
230
|
color: black;
|
227
231
|
}
|
228
232
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
data: { \
|
5
5
|
controller: :tooltip,
|
6
6
|
'bs-title': "Modificar #{@model.class.human_attribute_name(@attribute).downcase}" },
|
7
|
-
class: '
|
7
|
+
class: 'edit-link', style: 'font-size: 0.8em' do
|
8
8
|
i.bi.bi-pencil
|
9
9
|
span = @model.decorate.send(@attribute)
|
10
10
|
- else
|
data/pg_rails/lib/version.rb
CHANGED