katalyst-tables 3.13.0 → 3.13.1
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/images/katalyst/tables/icons/sort-asc.svg +1 -3
- data/app/assets/images/katalyst/tables/icons/sort-desc.svg +1 -3
- data/app/assets/stylesheets/katalyst/tables/table.css +17 -16
- data/app/models/concerns/katalyst/tables/collection/has_params.rb +1 -2
- data/lib/katalyst/tables/collection/type/search.rb +1 -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: 23a8a8a1807a0f6355a6c8b8dfd8a79b8654b42f49f4e04ddffa95a152658ec5
|
|
4
|
+
data.tar.gz: b4b62f128a45aac4bd9fbb32218288ce861951a673c420075e91acff9f2243a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 428907f63918d7f3497729b1ebb7605028bd4e8d467ce2681941ce629532b9cab778e2f6d3420305fff6b0683deefa9197b69321f782b4ea9b442727643a4039
|
|
7
|
+
data.tar.gz: 5a484636e22f700bf9721c123855998dbfaa7b732939ad60f0e3af4bfde70292f156785c61acc63a39e6eb859845a03c68d329373875cd9985d395795f3ce0b2
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"
|
|
2
|
-
<path d="M8 1V15M8 15L15 8M8 15L1 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 1v14m0 0 7-7m-7 7L1 8"/></svg>
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"
|
|
2
|
-
<path d="M8 15V1M8 1L15 8M8 1L1 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 15V1m0 0 7 7M8 1 1 8"/></svg>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
/* Select */
|
|
79
79
|
|
|
80
80
|
:where([data-cell-type="selection"]) {
|
|
81
|
-
|
|
81
|
+
width: 2rem;
|
|
82
82
|
|
|
83
83
|
label {
|
|
84
84
|
display: block;
|
|
@@ -98,28 +98,29 @@
|
|
|
98
98
|
aspect-ratio: 1;
|
|
99
99
|
height: 1.5ex;
|
|
100
100
|
line-height: 1;
|
|
101
|
-
background:
|
|
102
|
-
background-size: contain;
|
|
101
|
+
background: currentColor;
|
|
103
102
|
transform: translateY(0.1ex);
|
|
104
103
|
margin-inline-start: var(--space-2xs, 0.5rem);
|
|
104
|
+
opacity: 0;
|
|
105
|
+
-webkit-mask: url("icons/sort-asc.svg") no-repeat center;
|
|
106
|
+
mask: url("icons/sort-asc.svg") no-repeat center;
|
|
107
|
+
transition: opacity var(--animation-duration, 125ms);
|
|
105
108
|
}
|
|
106
109
|
|
|
110
|
+
/* Unsorted + hover/focus: ghost arrow */
|
|
107
111
|
a:is(.sortable):hover::after,
|
|
108
|
-
a:is(.sortable):focus-visible::after
|
|
109
|
-
|
|
110
|
-
[data-sort="desc"] a:is(.sortable):hover::after,
|
|
111
|
-
[data-sort="desc"] a:is(.sortable):focus-visible::after {
|
|
112
|
-
background: currentColor;
|
|
113
|
-
-webkit-mask: url("/katalyst/tables/icons/sort-asc.svg") no-repeat center;
|
|
114
|
-
mask: url("/katalyst/tables/icons/sort-asc.svg") no-repeat center;
|
|
112
|
+
a:is(.sortable):focus-visible::after {
|
|
113
|
+
opacity: 0.3;
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
[data-sort
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
/* Sorted: solid state arrow */
|
|
117
|
+
[data-sort] a:is(.sortable)::after {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-sort="desc"] a:is(.sortable)::after {
|
|
122
|
+
-webkit-mask: url("icons/sort-desc.svg") no-repeat center;
|
|
123
|
+
mask: url("icons/sort-desc.svg") no-repeat center;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
/* Width and wrapping */
|
|
@@ -32,11 +32,10 @@ module Katalyst
|
|
|
32
32
|
|
|
33
33
|
# Returns a hash of the current attributes that have changed from defaults.
|
|
34
34
|
# This uses Refinements internally so it needs to be exposed publicly with this super call.
|
|
35
|
-
# rubocop:disable Lint/UselessMethodDefinition
|
|
35
|
+
# rubocop:disable-next Lint/UselessMethodDefinition
|
|
36
36
|
def to_params
|
|
37
37
|
super
|
|
38
38
|
end
|
|
39
|
-
# rubocop:enable Lint/UselessMethodDefinition
|
|
40
39
|
end
|
|
41
40
|
end
|
|
42
41
|
end
|
|
@@ -6,11 +6,10 @@ module Katalyst
|
|
|
6
6
|
module Type
|
|
7
7
|
class Search < Value
|
|
8
8
|
# @overwrite Value.initialize() to require scope
|
|
9
|
-
# rubocop:disable Lint/UselessMethodDefinition
|
|
9
|
+
# rubocop:disable-next Lint/UselessMethodDefinition
|
|
10
10
|
def initialize(scope:, **)
|
|
11
11
|
super
|
|
12
12
|
end
|
|
13
|
-
# rubocop:enable Lint/UselessMethodDefinition
|
|
14
13
|
|
|
15
14
|
def type
|
|
16
15
|
:search
|