openproject-primer_view_components 0.69.0 → 0.69.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/CHANGELOG.md +6 -0
- data/app/components/primer/alpha/action_menu/sub_menu.rb +1 -1
- data/app/components/primer/alpha/action_menu/sub_menu_item.rb +2 -3
- data/lib/primer/view_components/version.rb +1 -1
- data/static/arguments.json +1 -1
- data/static/info_arch.json +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: abcb1c38b8cdcfda727224b7b7bb339b7da1336c43164d9635319a226655b6c4
|
4
|
+
data.tar.gz: 772f6d6d34d6db479cac163aa14f1d7555ba196cb2159b6a94f3425ba02c560b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c67b25d5d36ccedbeab7b58bcfbd805202e711cf1b0c4c5c33a9ea03fae5f318b1292f400b4af29b4e8f75680d5ae1096b836707eef3d1f87f962d479a5e2cc
|
7
|
+
data.tar.gz: 2f43177f6562ad6eca9a2dd2658f0c0588384c244dc0a8d200cb216cbaff78979373e17c7442700905efa4ed6894ef0c351c0898ae2030ea700ee0d5d81aa26b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.69.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#314](https://github.com/opf/primer_view_components/pull/314) [`1ad044d`](https://github.com/opf/primer_view_components/commit/1ad044d10bb8365a73b66bbb35b785a4db873d83) Thanks [@camertron](https://github.com/camertron)! - Enable specifying a custom menu_id: for ActionMenu sub menus
|
8
|
+
|
3
9
|
## 0.69.0
|
4
10
|
|
5
11
|
### Minor Changes
|
@@ -47,7 +47,7 @@ module Primer
|
|
47
47
|
# @param overlay_arguments [Hash] Arguments to pass to the underlying <%= link_to_component(Primer::Alpha::Overlay) %>
|
48
48
|
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>.
|
49
49
|
def initialize(
|
50
|
-
menu_id
|
50
|
+
menu_id: self.class.generate_id,
|
51
51
|
anchor_align: DEFAULT_ANCHOR_ALIGN,
|
52
52
|
anchor_side: DEFAULT_ANCHOR_SIDE,
|
53
53
|
overlay_arguments: {},
|
@@ -11,10 +11,9 @@ module Primer
|
|
11
11
|
# ActionList::Item base class or to the SubMenu instance. Doing so prevents a form
|
12
12
|
# input from being emitted for sub-menu items, which prevents an extra empty value
|
13
13
|
# from being sent to the server on form submit.
|
14
|
-
@menu_id = self.class.generate_id
|
15
14
|
@sub_menu = SubMenu.allocate
|
16
|
-
system_arguments = @sub_menu.send(:initialize, **system_arguments
|
17
|
-
system_arguments[:id] = "#{@menu_id}-button"
|
15
|
+
system_arguments = @sub_menu.send(:initialize, **system_arguments)
|
16
|
+
system_arguments[:id] = "#{@sub_menu.menu_id}-button"
|
18
17
|
|
19
18
|
@form_arguments = form_arguments
|
20
19
|
|
data/static/arguments.json
CHANGED
data/static/info_arch.json
CHANGED
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.69.
|
4
|
+
version: 0.69.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-06-
|
12
|
+
date: 2025-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|