openproject-primer_view_components 0.67.0 → 0.69.0

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +5 -0
  4. data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
  5. data/app/assets/javascripts/components/primer/open_project/tree_view/tree_view.d.ts +1 -0
  6. data/app/assets/javascripts/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.d.ts +1 -0
  7. data/app/assets/javascripts/primer_view_components.js +1 -1
  8. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  9. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +5 -0
  10. data/app/components/primer/alpha/action_menu/action_menu_element.js +111 -16
  11. data/app/components/primer/alpha/action_menu/action_menu_element.ts +136 -23
  12. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
  13. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +62 -0
  14. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +67 -0
  15. data/app/components/primer/alpha/action_menu/list.rb +3 -1
  16. data/app/components/primer/alpha/action_menu/list_wrapper.rb +31 -0
  17. data/app/components/primer/alpha/action_menu/menu.html.erb +24 -0
  18. data/app/components/primer/alpha/action_menu/menu.rb +136 -0
  19. data/app/components/primer/alpha/action_menu/primary_menu.rb +86 -0
  20. data/app/components/primer/alpha/action_menu/sub_menu.rb +74 -0
  21. data/app/components/primer/alpha/action_menu/sub_menu_item.html.erb +5 -0
  22. data/app/components/primer/alpha/action_menu/sub_menu_item.rb +54 -0
  23. data/app/components/primer/alpha/action_menu.html.erb +1 -26
  24. data/app/components/primer/alpha/action_menu.rb +44 -118
  25. data/app/components/primer/alpha/select_panel.rb +3 -3
  26. data/app/components/primer/open_project/border_box/collapsible_header.rb +0 -3
  27. data/app/components/primer/open_project/collapsible_section.rb +1 -7
  28. data/app/components/primer/open_project/page_header/title.rb +1 -1
  29. data/app/components/primer/open_project/tree_view/tree_view.d.ts +1 -0
  30. data/app/components/primer/open_project/tree_view/tree_view.js +34 -1
  31. data/app/components/primer/open_project/tree_view/tree_view.ts +37 -0
  32. data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.d.ts +1 -0
  33. data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.js +14 -0
  34. data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.ts +18 -0
  35. data/lib/primer/view_components/version.rb +1 -1
  36. data/previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb +13 -4
  37. data/previews/primer/alpha/action_menu_preview/opens_dialog.html.erb +20 -11
  38. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +13 -2
  39. data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +19 -0
  40. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +20 -11
  41. data/previews/primer/alpha/action_menu_preview/with_deferred_content.html.erb +24 -0
  42. data/previews/primer/alpha/action_menu_preview.rb +93 -29
  43. data/previews/primer/open_project/border_box/collapsible_header_preview/playground.html.erb +1 -1
  44. data/previews/primer/open_project/tree_view_preview/async_alpha.html.erb +12 -0
  45. data/previews/primer/open_project/tree_view_preview.rb +24 -0
  46. data/static/arguments.json +169 -68
  47. data/static/audited_at.json +4 -0
  48. data/static/constants.json +28 -8
  49. data/static/info_arch.json +794 -170
  50. data/static/previews.json +39 -0
  51. data/static/statuses.json +4 -0
  52. metadata +15 -2
data/static/previews.json CHANGED
@@ -826,6 +826,19 @@
826
826
  "color-contrast"
827
827
  ]
828
828
  }
829
+ },
830
+ {
831
+ "preview_path": "primer/alpha/action_menu/sub_menus",
832
+ "name": "sub_menus",
833
+ "snapshot": "false",
834
+ "skip_rules": {
835
+ "wont_fix": [
836
+ "region"
837
+ ],
838
+ "will_fix": [
839
+ "color-contrast"
840
+ ]
841
+ }
829
842
  }
830
843
  ]
831
844
  },
@@ -8988,6 +9001,19 @@
8988
9001
  ]
8989
9002
  }
8990
9003
  },
9004
+ {
9005
+ "preview_path": "primer/open_project/tree_view/async_alpha",
9006
+ "name": "async_alpha",
9007
+ "snapshot": "false",
9008
+ "skip_rules": {
9009
+ "wont_fix": [
9010
+ "region"
9011
+ ],
9012
+ "will_fix": [
9013
+ "color-contrast"
9014
+ ]
9015
+ }
9016
+ },
8991
9017
  {
8992
9018
  "preview_path": "primer/open_project/tree_view/leaf_node_playground",
8993
9019
  "name": "leaf_node_playground",
@@ -9026,6 +9052,19 @@
9026
9052
  "color-contrast"
9027
9053
  ]
9028
9054
  }
9055
+ },
9056
+ {
9057
+ "preview_path": "primer/open_project/tree_view/auto_expansion",
9058
+ "name": "auto_expansion",
9059
+ "snapshot": "false",
9060
+ "skip_rules": {
9061
+ "wont_fix": [
9062
+ "region"
9063
+ ],
9064
+ "will_fix": [
9065
+ "color-contrast"
9066
+ ]
9067
+ }
9029
9068
  }
9030
9069
  ]
9031
9070
  },
data/static/statuses.json CHANGED
@@ -12,6 +12,10 @@
12
12
  "Primer::Alpha::ActionMenu::Heading": "alpha",
13
13
  "Primer::Alpha::ActionMenu::List": "alpha",
14
14
  "Primer::Alpha::ActionMenu::ListWrapper": "alpha",
15
+ "Primer::Alpha::ActionMenu::Menu": "alpha",
16
+ "Primer::Alpha::ActionMenu::PrimaryMenu": "alpha",
17
+ "Primer::Alpha::ActionMenu::SubMenu": "alpha",
18
+ "Primer::Alpha::ActionMenu::SubMenuItem": "alpha",
15
19
  "Primer::Alpha::AutoComplete": "deprecated",
16
20
  "Primer::Alpha::AutoComplete::Item": "deprecated",
17
21
  "Primer::Alpha::Banner": "alpha",
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.67.0
4
+ version: 0.69.0
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-05-23 00:00:00.000000000 Z
12
+ date: 2025-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -86,6 +86,7 @@ files:
86
86
  - app/assets/javascripts/components/primer/alpha/action_bar_element.d.ts
87
87
  - app/assets/javascripts/components/primer/alpha/action_list.d.ts
88
88
  - app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts
89
+ - app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts
89
90
  - app/assets/javascripts/components/primer/alpha/dropdown.d.ts
90
91
  - app/assets/javascripts/components/primer/alpha/dropdown/menu.d.ts
91
92
  - app/assets/javascripts/components/primer/alpha/modal_dialog.d.ts
@@ -159,11 +160,20 @@ files:
159
160
  - app/components/primer/alpha/action_menu/action_menu_element.d.ts
160
161
  - app/components/primer/alpha/action_menu/action_menu_element.js
161
162
  - app/components/primer/alpha/action_menu/action_menu_element.ts
163
+ - app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts
164
+ - app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js
165
+ - app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts
162
166
  - app/components/primer/alpha/action_menu/group.rb
163
167
  - app/components/primer/alpha/action_menu/heading.rb
164
168
  - app/components/primer/alpha/action_menu/list.html.erb
165
169
  - app/components/primer/alpha/action_menu/list.rb
166
170
  - app/components/primer/alpha/action_menu/list_wrapper.rb
171
+ - app/components/primer/alpha/action_menu/menu.html.erb
172
+ - app/components/primer/alpha/action_menu/menu.rb
173
+ - app/components/primer/alpha/action_menu/primary_menu.rb
174
+ - app/components/primer/alpha/action_menu/sub_menu.rb
175
+ - app/components/primer/alpha/action_menu/sub_menu_item.html.erb
176
+ - app/components/primer/alpha/action_menu/sub_menu_item.rb
167
177
  - app/components/primer/alpha/auto_complete.css
168
178
  - app/components/primer/alpha/auto_complete.css.json
169
179
  - app/components/primer/alpha/auto_complete.css.map
@@ -934,9 +944,11 @@ files:
934
944
  - previews/primer/alpha/action_menu_preview/opens_dialog.html.erb
935
945
  - previews/primer/alpha/action_menu_preview/single_select_form.html.erb
936
946
  - previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb
947
+ - previews/primer/alpha/action_menu_preview/sub_menus.html.erb
937
948
  - previews/primer/alpha/action_menu_preview/submitting_forms.html.erb
938
949
  - previews/primer/alpha/action_menu_preview/two_menus.html.erb
939
950
  - previews/primer/alpha/action_menu_preview/with_actions.html.erb
951
+ - previews/primer/alpha/action_menu_preview/with_deferred_content.html.erb
940
952
  - previews/primer/alpha/auto_complete_preview.rb
941
953
  - previews/primer/alpha/banner_preview.rb
942
954
  - previews/primer/alpha/banner_preview/with_action_button.html.erb
@@ -1175,6 +1187,7 @@ files:
1175
1187
  - previews/primer/open_project/sub_header_preview/custom_filter_button.html.erb
1176
1188
  - previews/primer/open_project/sub_header_preview/dialog_buttons.html.erb
1177
1189
  - previews/primer/open_project/tree_view_preview.rb
1190
+ - previews/primer/open_project/tree_view_preview/async_alpha.html.erb
1178
1191
  - previews/primer/open_project/tree_view_preview/buttons.html.erb
1179
1192
  - previews/primer/open_project/tree_view_preview/default.html.erb
1180
1193
  - previews/primer/open_project/tree_view_preview/empty.html.erb