plutonium 0.15.14 → 0.15.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plutonium/ui/form/query.rb +4 -2
- data/lib/plutonium/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: e8676e0f548521718da0bac2431920bcb46f64e6944fad2b9124b2f50699d353
|
4
|
+
data.tar.gz: a5bf74da80df99ee51988e6969733e96aee41f2716f39d7e304ee40419cac35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a2afba6ce12397d76f1ba3d79ac1403950eefc87a8f4a7931d7c1f538fc1a593a2bbdeab2b9cbddebe4076c5add09cb40e114e1b4db39b2b4c5cc5dfd3a0877
|
7
|
+
data.tar.gz: 574d45c1ceaf7c47101de842139a3764e4b4ec0ec8e5947419733e5805684b597ba5a230cfc485e7510e2599d2b0d64ab4293ee0e2debc98c9dfa574125c981e
|
@@ -9,12 +9,12 @@ module Plutonium
|
|
9
9
|
def initialize(*, query_object:, page_size:, attributes: {}, **options, &)
|
10
10
|
options[:as] = :q
|
11
11
|
options[:method] = :get
|
12
|
-
attributes.deep_merge
|
12
|
+
attributes = mix(attributes.deep_merge(
|
13
13
|
id: :search_form,
|
14
14
|
class!: "space-y-2 mb-4",
|
15
15
|
controller: "form",
|
16
16
|
data: {controller: "form", turbo_frame: nil}
|
17
|
-
)
|
17
|
+
))
|
18
18
|
super(*, attributes:, **options, &)
|
19
19
|
|
20
20
|
@query_object = query_object
|
@@ -97,6 +97,8 @@ module Plutonium
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def render_filter_fields
|
100
|
+
return if query_object.filter_definitions.blank?
|
101
|
+
|
100
102
|
div(class: "flex flex-wrap items-center gap-4") do
|
101
103
|
span(class: "text-sm font-medium text-gray-900 dark:text-white") { "Filters:" }
|
102
104
|
div(class: "flex flex-wrap items-center gap-4 mr-auto") do
|
data/lib/plutonium/version.rb
CHANGED