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 +4 -4
- data/lib/phlexi/table/components/sortable_header_cell.rb +11 -2
- data/lib/phlexi/table/theme.rb +10 -1
- data/lib/phlexi/table/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: c7f2796fd0b9bc9cd244f59185007f05e84c69611b24d0fa5f560b4cc3faad58
|
4
|
+
data.tar.gz: 5f33756a70709a8b640a830fae776eb6afa16681acef0e430a69194b1fa116a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
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",
|
data/lib/phlexi/table/theme.rb
CHANGED
@@ -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
|
data/lib/phlexi/table/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|