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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a2584b41297894dba06bf006787f62b41b8466f1dca9f7aee736a63de2bd25a
4
- data.tar.gz: da6d03fada8d478acef2ff731b977bd70e345e5bcc0cfa4fd8cb4adccc7ec38c
3
+ metadata.gz: 2610e85b330e8b9c6f3bf0f9708a9350e798d8bf5e492cf4d886186d7e5bc294
4
+ data.tar.gz: e6922f2b2fedeb74307e13283109b4d048e8e06957f3d6af72f3f485e559ba8f
5
5
  SHA512:
6
- metadata.gz: d29ffc9a5f8dcfebfe158d02e098614d264144670ec2cccb987759097e75e195339afb24e86a95d48bde02ca1d983731378410e66d6ca9f06a82fc6bd22e8a61
7
- data.tar.gz: 88843ce372b7a803ca93ce2e0e245165c0c3758d0db51f9e4f9f07cfff8a6eeb3e8bcdb03db8bdfbc24a23aed9c085597fb7931ccf3e272e40064ecd93d6f94c
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 600;
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 600;
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-popup" do %>
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: find_refine_inline_stored_filters_path,
12
+ url: find_refine_advanced_inline_stored_filters_path,
12
13
  method: :post,
13
14
  class: "refine--stored-filter-search-form",
14
15
  data: {
@@ -209,5 +209,6 @@ en:
209
209
  recommended: "Recommended"
210
210
  search_attributes: "Search Attributes"
211
211
  filter_attributes_tab_name: "FILTER ATTRIBUTES"
212
+ filter_saved_filters_tab_name: "SAVED FILTERS"
212
213
  load_button:
213
214
  load_filter: "Load Filter"
@@ -1,5 +1,5 @@
1
1
  module Refine
2
2
  module Rails
3
- VERSION = "2.11.9"
3
+ VERSION = "2.11.10"
4
4
  end
5
5
  end
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.9
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-28 00:00:00.000000000 Z
12
+ date: 2024-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails