refine-rails 2.11.2 → 2.11.4
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 +4 -4
- data/app/assets/stylesheets/index.css +20 -1
- data/app/assets/stylesheets/index.tailwind.css +20 -1
- data/app/views/refine/inline/filters/_criterion.html.erb +1 -1
- data/app/views/refine/inline/filters/_group.html.erb +8 -0
- data/app/views/refine/inline/filters/_show.html.erb +11 -4
- data/lib/refine/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1421ece0ebb5f98fc900504e64ffe00792141506999a2103542c59b1ecfdf8c
|
4
|
+
data.tar.gz: d5877f85705a36f7fc669755875b753e616bd4592d68f584a7ec4cd3092b588a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00c6859c614af6b424d39f676c6a5c9f180231076803a13fd4be5a384e486adb4b10fd8bbea360964b67a368932896b527fe21a5a811db2a981206cd43e93500
|
7
|
+
data.tar.gz: 968fd2f3d6e8c3aae8cde871db0c4e8d88764fb9c5ea3b924e607a49398109013b2d0c294115c6b6c221c8770d42e4551fd0c94e4a6460e64ef88153081a7b51
|
@@ -1219,7 +1219,14 @@
|
|
1219
1219
|
}
|
1220
1220
|
|
1221
1221
|
.refine--groups-wrapper {
|
1222
|
-
|
1222
|
+
display: flex;
|
1223
|
+
gap: 10px;
|
1224
|
+
row-gap: 15px;
|
1225
|
+
align-items: center;
|
1226
|
+
flex-wrap: wrap;
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
.refine--or-group {
|
1223
1230
|
display: flex;
|
1224
1231
|
gap: 10px;
|
1225
1232
|
row-gap: 15px;
|
@@ -1234,6 +1241,13 @@
|
|
1234
1241
|
align-items: center;
|
1235
1242
|
}
|
1236
1243
|
|
1244
|
+
@media (max-width: 960px) {
|
1245
|
+
.refine--filter-control-group {
|
1246
|
+
justify-content: end;
|
1247
|
+
width: 25%;
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
|
1237
1251
|
.refine--group-join, .refine--condition-join {
|
1238
1252
|
position: relative;
|
1239
1253
|
padding: 5px 0;
|
@@ -1246,6 +1260,11 @@
|
|
1246
1260
|
}
|
1247
1261
|
}
|
1248
1262
|
|
1263
|
+
.refine--group-join-stack {
|
1264
|
+
width: 100%;
|
1265
|
+
text-align: left;
|
1266
|
+
}
|
1267
|
+
|
1249
1268
|
.refine--group {
|
1250
1269
|
display: flex;
|
1251
1270
|
gap: 10px;
|
@@ -398,7 +398,14 @@
|
|
398
398
|
}
|
399
399
|
|
400
400
|
.refine--groups-wrapper {
|
401
|
-
|
401
|
+
display: flex;
|
402
|
+
gap: 10px;
|
403
|
+
row-gap: 15px;
|
404
|
+
align-items: center;
|
405
|
+
flex-wrap: wrap;
|
406
|
+
}
|
407
|
+
|
408
|
+
.refine--or-group {
|
402
409
|
display: flex;
|
403
410
|
gap: 10px;
|
404
411
|
row-gap: 15px;
|
@@ -413,6 +420,13 @@
|
|
413
420
|
align-items: center;
|
414
421
|
}
|
415
422
|
|
423
|
+
@media (max-width: 960px) {
|
424
|
+
.refine--filter-control-group {
|
425
|
+
justify-content: end;
|
426
|
+
width: 25%;
|
427
|
+
}
|
428
|
+
}
|
429
|
+
|
416
430
|
.refine--group-join, .refine--condition-join {
|
417
431
|
position: relative;
|
418
432
|
padding: 5px 0;
|
@@ -425,6 +439,11 @@
|
|
425
439
|
}
|
426
440
|
}
|
427
441
|
|
442
|
+
.refine--group-join-stack {
|
443
|
+
width: 100%;
|
444
|
+
text-align: left;
|
445
|
+
}
|
446
|
+
|
428
447
|
.refine--group {
|
429
448
|
display: flex;
|
430
449
|
gap: 10px;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= link_to refine_inline_criterion_path(criterion.position, criterion.to_params), class: "refine--remove-condition", data: {turbo_method: :delete, controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
10
10
|
<span class="material-icons-outlined refine--icon-sm">clear</span>
|
11
11
|
<% end %>
|
12
|
-
<%= link_to edit_refine_inline_criterion_path(criterion.position, criterion.to_params), class:"refine--condition-pill-button", data: {controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
12
|
+
<%= link_to edit_refine_inline_criterion_path(criterion.position, criterion.to_params), class:"refine--condition-pill-button", data: {controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit refine--popup#show"} do %>
|
13
13
|
<div class="refine--condition-pill-name"><%= criterion.condition_display %></div>
|
14
14
|
<div class="refine--condition-value-clause"><%= criterion.clause_display %></div>
|
15
15
|
<div class="refine--condition-value-self" title="<%= criterion.human_readable_value %>">
|
@@ -1,4 +1,12 @@
|
|
1
|
+
<% render_stack ||= false %>
|
2
|
+
|
3
|
+
<% if render_stack %>
|
4
|
+
<div class="refine--or-group">
|
5
|
+
<% end %>
|
1
6
|
<% group.each.with_index do |criterion, i| %>
|
2
7
|
<%= render "refine/inline/filters/criterion", criterion: criterion, placement: i, size: group.length %>
|
3
8
|
<% end %>
|
4
9
|
<%= render "refine/inline/filters/and_button", position: group.last.position + 1, show_label: (group_count < 2 && condition_count < 2) %>
|
10
|
+
<% if render_stack %>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
root_data = (defined?(data) && data) || {}
|
5
5
|
|
6
|
+
render_stack = defined?(render_stack) ? render_stack : false
|
6
7
|
main_row_class = class_names "refine--filter-row" => true,
|
7
8
|
"refine--has-many-groups" => groups.many?
|
8
9
|
%>
|
@@ -15,12 +16,18 @@
|
|
15
16
|
<div class="refine--groups-wrapper">
|
16
17
|
<% groups.each.with_index do |group, i| %>
|
17
18
|
<% unless i == 0 %>
|
18
|
-
|
19
|
+
<% if render_stack %>
|
20
|
+
<div class="refine--group-join-stack">
|
19
21
|
<% end %>
|
20
|
-
|
21
|
-
<% if
|
22
|
-
|
22
|
+
<div class="refine--group-join"><%= t("refine.inline.filters.or") %></div>
|
23
|
+
<% if render_stack %>
|
24
|
+
</div>
|
23
25
|
<% end %>
|
26
|
+
<% end %>
|
27
|
+
<%= render "refine/inline/filters/group", group: group, group_count: groups.count, condition_count: group.count, render_stack: render_stack %>
|
28
|
+
<% if i == groups.length - 1 %>
|
29
|
+
<%= render "refine/inline/filters/or_button", position: @refine_filter.blueprint.length %>
|
30
|
+
<% end %>
|
24
31
|
<% end %>
|
25
32
|
|
26
33
|
</div>
|
data/lib/refine/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refine-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colleen Schnettler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-09-
|
12
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|