refine-rails 2.11.9 → 2.11.10
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 +26 -1
- data/app/assets/stylesheets/index.tailwind.css +25 -1
- data/app/views/refine/advanced_inline/criteria/index.html.erb +13 -0
- data/app/views/refine/advanced_inline/stored_filters/index.html.erb +3 -2
- data/config/locales/en/refine.en.yml +1 -0
- 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: 2610e85b330e8b9c6f3bf0f9708a9350e798d8bf5e492cf4d886186d7e5bc294
|
4
|
+
data.tar.gz: e6922f2b2fedeb74307e13283109b4d048e8e06957f3d6af72f3f485e559ba8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b3f9556bda09de1dcf458c1913598df1b59a2ca271d960e7e06843230a9f814807d930500e391cd46423c62e576254e8a34cf50d360e3a970c7b521f046f64
|
7
|
+
data.tar.gz: 435d20c8a5f1cb2a131d980465cc70b5aaa3a5ff7db2c80f282dfa530650b4410cc1edd811e66d593219d00b27fd5af86e8707add2b8d8e101ff77ca4d2bf3cf
|
@@ -1980,6 +1980,10 @@ input.refine--search-trigger[type="text"] {
|
|
1980
1980
|
gap: 5px;
|
1981
1981
|
}
|
1982
1982
|
|
1983
|
+
.refine--modal-header-actions .dialog__close {
|
1984
|
+
display: flex;
|
1985
|
+
}
|
1986
|
+
|
1983
1987
|
.refine--filter-condition-search {
|
1984
1988
|
position: relative;
|
1985
1989
|
margin-right: 10px;
|
@@ -2022,7 +2026,8 @@ input.refine--search-trigger[type="text"] {
|
|
2022
2026
|
.refine--advanced-condition-category-header {
|
2023
2027
|
display: flex;
|
2024
2028
|
padding: 10px 0 16px 0;
|
2025
|
-
font: 14px
|
2029
|
+
font-size: 14px;
|
2030
|
+
font-weight: 600;
|
2026
2031
|
color: #1a202e;
|
2027
2032
|
/* tailwind color cool-gray-900 */
|
2028
2033
|
}
|
@@ -2061,4 +2066,24 @@ input.refine--search-trigger[type="text"] {
|
|
2061
2066
|
.refine--condition-list-icon-container i {
|
2062
2067
|
margin: 0 auto;
|
2063
2068
|
font-size: 16px;
|
2069
|
+
}
|
2070
|
+
|
2071
|
+
.refine--inline-modal-container .refine--stored-filter-list-item{
|
2072
|
+
font-size: 14px;
|
2073
|
+
font-weight: 600;
|
2074
|
+
color: #1a202e;
|
2075
|
+
/* tailwind color cool-gray-900 */
|
2076
|
+
display: flex;
|
2077
|
+
gap: 10px;
|
2078
|
+
align-items: center;
|
2079
|
+
padding: 10px;
|
2080
|
+
border: 1px solid #e5e7eb;
|
2081
|
+
border-radius: 6px;
|
2082
|
+
background-color: #fff;
|
2083
|
+
}
|
2084
|
+
|
2085
|
+
.refine--inline-modal-container .refine--stored-filter-list-item:hover{
|
2086
|
+
background-color: #eee;
|
2087
|
+
color: #111;
|
2088
|
+
text-decoration: none;
|
2064
2089
|
}
|
@@ -1144,6 +1144,10 @@ input.refine--search-trigger[type="text"] {
|
|
1144
1144
|
gap: 5px;
|
1145
1145
|
}
|
1146
1146
|
|
1147
|
+
.refine--modal-header-actions .dialog__close {
|
1148
|
+
display: flex;
|
1149
|
+
}
|
1150
|
+
|
1147
1151
|
.refine--filter-condition-search {
|
1148
1152
|
position: relative;
|
1149
1153
|
margin-right: 10px;
|
@@ -1185,7 +1189,8 @@ input.refine--search-trigger[type="text"] {
|
|
1185
1189
|
.refine--advanced-condition-category-header {
|
1186
1190
|
display: flex;
|
1187
1191
|
padding: 10px 0 16px 0;
|
1188
|
-
font: 14px
|
1192
|
+
font-size: 14px;
|
1193
|
+
font-weight: 600;
|
1189
1194
|
color: #1a202e; /* tailwind color cool-gray-900 */
|
1190
1195
|
}
|
1191
1196
|
|
@@ -1223,4 +1228,23 @@ input.refine--search-trigger[type="text"] {
|
|
1223
1228
|
.refine--condition-list-icon-container i {
|
1224
1229
|
margin: 0 auto;
|
1225
1230
|
font-size: 16px;
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
.refine--inline-modal-container .refine--stored-filter-list-item{
|
1234
|
+
font-size: 14px;
|
1235
|
+
font-weight: 600;
|
1236
|
+
color: #1a202e; /* tailwind color cool-gray-900 */
|
1237
|
+
display: flex;
|
1238
|
+
gap: 10px;
|
1239
|
+
align-items: center;
|
1240
|
+
padding: 10px;
|
1241
|
+
border: 1px solid #e5e7eb;
|
1242
|
+
border-radius: 6px;
|
1243
|
+
background-color: #fff;
|
1244
|
+
}
|
1245
|
+
|
1246
|
+
.refine--inline-modal-container .refine--stored-filter-list-item:hover{
|
1247
|
+
background-color: #eee;
|
1248
|
+
color: #111;
|
1249
|
+
text-decoration: none;
|
1226
1250
|
}
|
@@ -44,6 +44,11 @@
|
|
44
44
|
<i class="fa fa-filter"></i>
|
45
45
|
<span class="pl-2"><%= t(".filter_attributes_tab_name") %></span>
|
46
46
|
</sl-tab>
|
47
|
+
|
48
|
+
<sl-tab slot="nav" panel="saved_filters">
|
49
|
+
<i class="fa fa-floppy-disks"></i>
|
50
|
+
<span class="pl-2"><%= t(".filter_saved_filters_tab_name") %></span>
|
51
|
+
</sl-tab>
|
47
52
|
|
48
53
|
<sl-tab-panel name="filter_attributes" class="refine--advanced-condition-select">
|
49
54
|
<% if uncategorized_conditions&.any? %>
|
@@ -72,6 +77,14 @@
|
|
72
77
|
</div>
|
73
78
|
<% end %>
|
74
79
|
</sl-tab-panel>
|
80
|
+
|
81
|
+
<sl-tab-panel name="saved_filters" class="refine--advanced-condition-select">
|
82
|
+
<%= turbo_frame_tag dom_id(@criterion, :load), src: refine_advanced_inline_stored_filters_path(@criterion.to_params), loading: :lazy do %>
|
83
|
+
<div class="flex items-center justify-center p-9">
|
84
|
+
<%= sl_component(:spinner, class: "sl-spinner--medium") %>
|
85
|
+
</div>
|
86
|
+
<% end %>
|
87
|
+
</sl-tab-panel>
|
75
88
|
</sl-tab-group>
|
76
89
|
</sl-dialog>
|
77
90
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= turbo_frame_tag dom_id(@criterion, :load), class: "refine--stored-filter-list-
|
1
|
+
<%= turbo_frame_tag dom_id(@criterion, :load), class: "refine--stored-filter-list-window" do %>
|
2
2
|
<div class="refine--stored-filter-list">
|
3
3
|
<% if @stored_filters.empty? %>
|
4
4
|
<a><%= t('.no_stored_filters') %></a>
|
@@ -6,9 +6,10 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
<% @stored_filters.each do |filter| %>
|
9
|
+
<%= puts filter.inspect %>
|
9
10
|
<%= form_with(
|
10
11
|
model: @criterion,
|
11
|
-
url:
|
12
|
+
url: find_refine_advanced_inline_stored_filters_path,
|
12
13
|
method: :post,
|
13
14
|
class: "refine--stored-filter-search-form",
|
14
15
|
data: {
|
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.10
|
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-10-
|
12
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|