glimmer-dsl-swt 4.24.4.7 → 4.24.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -5
- data/VERSION +1 -1
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer/swt/custom/refined_table.rb +11 -2
- 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: 0fe762c944e91cd87d49690912e9bfe3513335ff8ac80d5248a485b597bc82fb
|
4
|
+
data.tar.gz: 0fc8caa7604fbc524020ab9b7c91f7cf5e1aa44055c116607a9103ef407b4b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e058691460ad791753d7040268e0ede146a075a32eb85b7c9b5bb12cc87316dfa90965b27f274741ac7c4c7c9fd7d03a5196dcffc5c5156918251c2cf41196
|
7
|
+
data.tar.gz: 3ed723eb74b7b225d7a082732cfbb0c50350221ab532576f6da14000cad1c8149bb0a5becd6db78f33b318b1e09ab8e12ff0bae9069578ce379428ff98250661
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.24.4.8
|
4
|
+
|
5
|
+
- Optimize `refined_table` sorting to avoid re-running upon navigating pages
|
6
|
+
- Fix issue with `refined_table` sorting breaking page remembering behavior upon entering a filter query
|
7
|
+
|
3
8
|
## 4.24.4.7
|
4
9
|
|
5
10
|
- Optimize performance of `refined_table` in filtering (it now caches results and replays them) and pagination (it now remembers last query page and avoids refiltering when paginating on the same query value)
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.24.4.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.24.4.8
|
2
2
|
## JRuby Desktop Development GUI Framework
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
4
4
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
@@ -21,7 +21,7 @@ Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) an
|
|
21
21
|
|
22
22
|
![Eclipse SWT RCP NASA Mars Rover](/images/glimmer-eclipse-swt-rcp-nasa-mars-rover.png)
|
23
23
|
|
24
|
-
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.24.4.
|
24
|
+
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.24.4.8 includes [SWT 4.24](https://download.eclipse.org/eclipse/downloads/drops4/R-4.24-202206070700/), which was released on June 7, 2022. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT.
|
25
25
|
|
26
26
|
**Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword. That was [originally conceived back in 2007](https://andymaleh.blogspot.com/2007/12/data-shining-in-glimmer.html).
|
27
27
|
|
@@ -338,7 +338,7 @@ jgem install glimmer-dsl-swt
|
|
338
338
|
|
339
339
|
Or this command if you want a specific version:
|
340
340
|
```
|
341
|
-
jgem install glimmer-dsl-swt -v 4.24.4.
|
341
|
+
jgem install glimmer-dsl-swt -v 4.24.4.8
|
342
342
|
```
|
343
343
|
|
344
344
|
`jgem` is JRuby's version of `gem` command.
|
@@ -366,7 +366,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
|
|
366
366
|
|
367
367
|
Add the following to `Gemfile`:
|
368
368
|
```
|
369
|
-
gem 'glimmer-dsl-swt', '~> 4.24.4.
|
369
|
+
gem 'glimmer-dsl-swt', '~> 4.24.4.8'
|
370
370
|
```
|
371
371
|
|
372
372
|
And, then run:
|
@@ -389,7 +389,7 @@ glimmer
|
|
389
389
|
```
|
390
390
|
|
391
391
|
```
|
392
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.24.4.
|
392
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.24.4.8
|
393
393
|
|
394
394
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
395
395
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.24.4.
|
1
|
+
4.24.4.8
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -53,8 +53,7 @@ module Glimmer
|
|
53
53
|
model_binding = new_widget_binding.model_binding
|
54
54
|
configure_sorting
|
55
55
|
observe(self, :model_array) do
|
56
|
-
|
57
|
-
@query_to_page_hash = {}
|
56
|
+
clear_query_cache
|
58
57
|
filter_and_paginate
|
59
58
|
end
|
60
59
|
@table_proxy.content {
|
@@ -241,6 +240,11 @@ module Glimmer
|
|
241
240
|
end
|
242
241
|
end
|
243
242
|
|
243
|
+
def clear_query_cache
|
244
|
+
@query_to_filtered_model_array_hash = {}
|
245
|
+
@query_to_page_hash = {}
|
246
|
+
end
|
247
|
+
|
244
248
|
def query_to_filtered_model_array_hash
|
245
249
|
@query_to_filtered_model_array_hash ||= {}
|
246
250
|
end
|
@@ -253,6 +257,9 @@ module Glimmer
|
|
253
257
|
|
254
258
|
def configure_sorting
|
255
259
|
@table_proxy.sort_strategy = lambda do
|
260
|
+
new_sort = @table_proxy.sort_block || @table_proxy.sort_by_block || @table_proxy.sort_property
|
261
|
+
new_sort_direction = @table_proxy.sort_direction
|
262
|
+
return if new_sort == @last_sort && new_sort_direction == @last_sort_direction
|
256
263
|
array = model_array.dup
|
257
264
|
array = array.sort_by(&:hash) # this ensures consistent subsequent sorting in case there are equivalent sorts to avoid an infinite loop
|
258
265
|
# Converting value to_s first to handle nil cases. Should work with numeric, boolean, and date fields
|
@@ -278,6 +285,8 @@ module Glimmer
|
|
278
285
|
end
|
279
286
|
sorted_array = sorted_array.reverse if @table_proxy.sort_direction == :descending
|
280
287
|
self.model_array = sorted_array
|
288
|
+
@last_sort = new_sort
|
289
|
+
@last_sort_direction = new_sort_direction
|
281
290
|
end
|
282
291
|
end
|
283
292
|
end
|