phlexi-table 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea441f5dc6bff0752e14011507ba3274026a46f8900de536f7b1d253fff45c44
4
- data.tar.gz: 05dd06af33197b2f8847d2bfab878340cf23d28d9c824b53382497343ae1de13
3
+ metadata.gz: c7f2796fd0b9bc9cd244f59185007f05e84c69611b24d0fa5f560b4cc3faad58
4
+ data.tar.gz: 5f33756a70709a8b640a830fae776eb6afa16681acef0e430a69194b1fa116a6
5
5
  SHA512:
6
- metadata.gz: 5db97df1ef5cf3131212ee6ce6a9b043dffd5d97f68e783ceca071b95cbedbb3a7a57086d82d0285cd100714e6aa0994001615f99768a56154cd4296df2eac75
7
- data.tar.gz: 48935e08c5e0dfb4b9fb110ebe7a14cffc5d3a73930a0ad7779e89fbe3579c4a19ebe72062deaac07df84b8a47fe73351ee7a0e8555bdadf79c01e02ba72d9df
6
+ metadata.gz: f319147d3387d048567c1f6d0441dcf4849baabc56a183019897552796a905a88da59ec475a9b8a4aa3baca038973fce4cd98225ca0060879a7813bc0d2272f5
7
+ data.tar.gz: 419002167057a8ee7fa4e69aedc07d871b026bdbd5c32f15c0d286647e604c5dc4e081c1ff515e0eee66768160df9226289da465ed27c1b71dc1e0e76402eac0
@@ -21,10 +21,15 @@ module Phlexi
21
21
 
22
22
  sort_icon = themed(:sort_icon)
23
23
  sort_icon_active = themed(:sort_icon_active)
24
+ sort_icon_inactive = themed(:sort_icon_inactive)
24
25
 
25
26
  span(class: themed(:header_cell_sort_indicator)) {
26
27
  svg(
27
- class: tokens(sort_icon, -> { @sort_params[:direction] != "DESC" } => sort_icon_active),
28
+ class: tokens(
29
+ sort_icon,
30
+ -> { @sort_params[:direction] == "ASC" } => sort_icon_active,
31
+ -> { @sort_params[:direction] != "ASC" } => sort_icon_inactive
32
+ ),
28
33
  aria_hidden: "true",
29
34
  xmlns: "http://www.w3.org/2000/svg",
30
35
  fill: "none",
@@ -39,7 +44,11 @@ module Phlexi
39
44
  )
40
45
  end
41
46
  svg(
42
- class: tokens(sort_icon, -> { @sort_params[:direction] != "ASC" } => sort_icon_active),
47
+ class: tokens(
48
+ sort_icon,
49
+ -> { @sort_params[:direction] == "DESC" } => sort_icon_active,
50
+ -> { @sort_params[:direction] != "DESC" } => sort_icon_inactive
51
+ ),
43
52
  aria_hidden: "true",
44
53
  xmlns: "http://www.w3.org/2000/svg",
45
54
  fill: "none",
@@ -17,7 +17,16 @@ module Phlexi
17
17
  name_column: nil,
18
18
  align_start: nil,
19
19
  align_end: nil,
20
- selection_checkbox: nil
20
+ selection_checkbox: nil,
21
+ header_cell_content_wrapper: nil,
22
+ header_cell_sort_wrapper: nil,
23
+ sort_icon: nil,
24
+ sort_icon_active: nil,
25
+ sort_icon_inactive: nil,
26
+ header_cell_sort_indicator: nil,
27
+ sort_index_clear_link: nil,
28
+ sort_index_clear_link_text: nil,
29
+ sort_index_clear_link_icon: nil
21
30
  }.freeze
22
31
  end
23
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlexi
4
4
  module Table
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexi-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-15 00:00:00.000000000 Z
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex