openproject-primer_view_components 0.68.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -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/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +5 -0
  8. data/app/components/primer/alpha/action_menu/action_menu_element.js +111 -16
  9. data/app/components/primer/alpha/action_menu/action_menu_element.ts +136 -23
  10. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
  11. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +62 -0
  12. data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +67 -0
  13. data/app/components/primer/alpha/action_menu/list.rb +3 -1
  14. data/app/components/primer/alpha/action_menu/list_wrapper.rb +31 -0
  15. data/app/components/primer/alpha/action_menu/menu.html.erb +24 -0
  16. data/app/components/primer/alpha/action_menu/menu.rb +136 -0
  17. data/app/components/primer/alpha/action_menu/primary_menu.rb +86 -0
  18. data/app/components/primer/alpha/action_menu/sub_menu.rb +74 -0
  19. data/app/components/primer/alpha/action_menu/sub_menu_item.html.erb +5 -0
  20. data/app/components/primer/alpha/action_menu/sub_menu_item.rb +53 -0
  21. data/app/components/primer/alpha/action_menu.html.erb +1 -26
  22. data/app/components/primer/alpha/action_menu.rb +44 -118
  23. data/app/components/primer/alpha/select_panel.rb +3 -3
  24. data/lib/primer/view_components/version.rb +2 -2
  25. data/previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb +13 -4
  26. data/previews/primer/alpha/action_menu_preview/opens_dialog.html.erb +20 -11
  27. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +13 -2
  28. data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +19 -0
  29. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +20 -11
  30. data/previews/primer/alpha/action_menu_preview/with_deferred_content.html.erb +24 -0
  31. data/previews/primer/alpha/action_menu_preview.rb +93 -29
  32. data/static/arguments.json +169 -68
  33. data/static/audited_at.json +4 -0
  34. data/static/constants.json +27 -7
  35. data/static/info_arch.json +797 -199
  36. data/static/previews.json +13 -0
  37. data/static/statuses.json +4 -0
  38. metadata +14 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37cddb35cfc6e80947f930af6fdb68b13e97a52f95c5d40e905f755f563b46cb
4
- data.tar.gz: 9f2a26ba0db15b1b9df270ed67d9b001cfa205cbd7a1f96997d80f38639925bf
3
+ metadata.gz: abcb1c38b8cdcfda727224b7b7bb339b7da1336c43164d9635319a226655b6c4
4
+ data.tar.gz: 772f6d6d34d6db479cac163aa14f1d7555ba196cb2159b6a94f3425ba02c560b
5
5
  SHA512:
6
- metadata.gz: dbd393c09903bf997f8ea481ed5581f5249fd6ede1e61a83e8ab8db306792ae92fcef7aeeb46621354839a475b5cd32f1a74c044a6b83ee932fe286c6cca2023
7
- data.tar.gz: 56e5f4101765c78dd5f2d3460390c964c915f504468f2e5688624f228bd1cad00c1ab237b92f46f66ddad4503a75263472208225da2fe48a704f2951a034cfb2
6
+ metadata.gz: 5c67b25d5d36ccedbeab7b58bcfbd805202e711cf1b0c4c5c33a9ea03fae5f318b1292f400b4af29b4e8f75680d5ae1096b836707eef3d1f87f962d479a5e2cc
7
+ data.tar.gz: 2f43177f6562ad6eca9a2dd2658f0c0588384c244dc0a8d200cb216cbaff78979373e17c7442700905efa4ed6894ef0c351c0898ae2030ea700ee0d5d81aa26b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 0.69.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#289](https://github.com/opf/primer_view_components/pull/289) [`f60a9e6`](https://github.com/opf/primer_view_components/commit/f60a9e637d83a5f478c45da4c9516b445aec540a) Thanks [@camertron](https://github.com/camertron)! - Multi-level ActionMenu
14
+
3
15
  ## 0.68.0
4
16
 
5
17
  ### Minor Changes
@@ -11,6 +11,10 @@ export declare class ActionMenuElement extends HTMLElement {
11
11
  #private;
12
12
  includeFragment: IncludeFragmentElement;
13
13
  overlay: AnchoredPositionElement;
14
+ list: HTMLElement;
15
+ static validItemRoles: string[];
16
+ static validSelectors: string[];
17
+ static menuItemSelectors: string[];
14
18
  get selectVariant(): SelectVariant;
15
19
  set selectVariant(variant: SelectVariant);
16
20
  get dynamicLabelPrefix(): string;
@@ -18,6 +22,7 @@ export declare class ActionMenuElement extends HTMLElement {
18
22
  get dynamicLabel(): boolean;
19
23
  set dynamicLabel(value: boolean);
20
24
  get popoverElement(): HTMLElement | null;
25
+ get childPopoverElements(): HTMLElement[];
21
26
  get invokerElement(): HTMLButtonElement | null;
22
27
  get invokerLabel(): HTMLElement | null;
23
28
  get selectedItems(): SelectedItem[];
@@ -0,0 +1,17 @@
1
+ import AnchoredPositionElement from '../../anchored_position';
2
+ type StackEntry = {
3
+ element: AnchoredPositionElement;
4
+ abortController?: AbortController;
5
+ };
6
+ export declare class ActionMenuFocusZoneStack {
7
+ #private;
8
+ constructor();
9
+ get current(): StackEntry | undefined;
10
+ push(next: AnchoredPositionElement, options?: {
11
+ trapFocus: boolean;
12
+ }): void;
13
+ pop(target?: AnchoredPositionElement): void;
14
+ elementIsMenuItem(element: HTMLElement): boolean;
15
+ get isEmpty(): boolean;
16
+ }
17
+ export {};