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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b709c407f6608c68093b59a4a9b86efe18c9d0f733c9e691abff9beb127b867
4
- data.tar.gz: 77c2f77d4b45c3e5caf1f07e64fcf6dfa0330d7b44c3960992f30039a791ed91
3
+ metadata.gz: 52421c5977e63c54fa9795501418459324c0338850342dd2169a319dd60ca3c2
4
+ data.tar.gz: 51358821492139ed8d09bb4c3575b0c77c11990f23fbbe2747cf4416d1ad6737
5
5
  SHA512:
6
- metadata.gz: f0121bf228358a9c5045e4598c069363b14f97e5cb2d3d07108376ed8b12e8e58c7dd017ae21c3ec8acd36c3937996cc6c94ddc6198e6dca763adc0b129bbc8a
7
- data.tar.gz: d8fb908c972817644d14dab0cde00c95b0b9a72abadafb7ab0c4dfb5178d97866f27a3e6a129c0320c0d5e584acec21bfc25ed24c5a0f1b2f3484d18005fa5c6
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][:target]= "sub-header.filterInput"
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] = merge_data(
56
- system_arguments,
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],
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 46
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.46.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source