openproject-primer_view_components 0.46.0 → 0.46.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/primer/open_project/sub_header.rb +6 -12
- data/lib/primer/view_components/version.rb +1 -1
- 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: 52421c5977e63c54fa9795501418459324c0338850342dd2169a319dd60ca3c2
|
4
|
+
data.tar.gz: 51358821492139ed8d09bb4c3575b0c77c11990f23fbbe2747cf4416d1ad6737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9911c6965a9d6c909d70da6da23c7d1fc2be2eb8471abdc4e2c9dc95fdb0f02160e91d7960f7ec8a73460cd5152b5c58ecb1ea2173ab036fed18a7879fa9157c
|
7
|
+
data.tar.gz: '038b35746f2d0df2d73066bda8471c31ef18143718bd486f0fb2f3dc35e5af20e2d063ad7273caa9d118ae7a84f14f51e58e0b3c7ccaaf53377f88cdb3cd4b43'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.46.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#186](https://github.com/opf/primer_view_components/pull/186) [`4d5d599`](https://github.com/opf/primer_view_components/commit/4d5d5994e2995a5a3e159521c5accb0525e7c7b8) Thanks [@HDinger](https://github.com/HDinger)! - Do not overwrite custom data attributes
|
8
|
+
|
3
9
|
## 0.46.0
|
4
10
|
|
5
11
|
### Minor Changes
|
@@ -47,22 +47,16 @@ module Primer
|
|
47
47
|
system_arguments[:input_width] ||= :medium
|
48
48
|
|
49
49
|
system_arguments[:data] ||= {}
|
50
|
-
system_arguments[:data]
|
50
|
+
system_arguments[:data] = merge_data(
|
51
|
+
system_arguments,
|
52
|
+
{ data: { target: "sub-header.filterInput" } }
|
53
|
+
)
|
51
54
|
|
52
55
|
system_arguments[:show_clear_button] = true if system_arguments[:show_clear_button].nil?
|
53
56
|
|
54
57
|
if system_arguments[:show_clear_button]
|
55
|
-
system_arguments[:data]
|
56
|
-
|
57
|
-
{
|
58
|
-
data: {
|
59
|
-
action: <<~JS
|
60
|
-
input:sub-header#toggleFilterInputClearButton
|
61
|
-
focus:sub-header#toggleFilterInputClearButton
|
62
|
-
JS
|
63
|
-
}
|
64
|
-
}
|
65
|
-
)
|
58
|
+
system_arguments[:data][:action] ||= ""
|
59
|
+
system_arguments[:data][:action] += " input:sub-header#toggleFilterInputClearButton focus:sub-header#toggleFilterInputClearButton"
|
66
60
|
end
|
67
61
|
|
68
62
|
@mobile_filter_trigger = Primer::Beta::IconButton.new(icon: system_arguments[:leading_visual][:icon],
|