openproject-primer_view_components 0.68.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +5 -0
- data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +5 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +111 -16
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +136 -23
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +62 -0
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +67 -0
- data/app/components/primer/alpha/action_menu/list.rb +3 -1
- data/app/components/primer/alpha/action_menu/list_wrapper.rb +31 -0
- data/app/components/primer/alpha/action_menu/menu.html.erb +24 -0
- data/app/components/primer/alpha/action_menu/menu.rb +136 -0
- data/app/components/primer/alpha/action_menu/primary_menu.rb +86 -0
- data/app/components/primer/alpha/action_menu/sub_menu.rb +74 -0
- data/app/components/primer/alpha/action_menu/sub_menu_item.html.erb +5 -0
- data/app/components/primer/alpha/action_menu/sub_menu_item.rb +54 -0
- data/app/components/primer/alpha/action_menu.html.erb +1 -26
- data/app/components/primer/alpha/action_menu.rb +44 -118
- data/app/components/primer/alpha/select_panel.rb +3 -3
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb +13 -4
- data/previews/primer/alpha/action_menu_preview/opens_dialog.html.erb +20 -11
- data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +13 -2
- data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +19 -0
- data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +20 -11
- data/previews/primer/alpha/action_menu_preview/with_deferred_content.html.erb +24 -0
- data/previews/primer/alpha/action_menu_preview.rb +93 -29
- data/static/arguments.json +169 -68
- data/static/audited_at.json +4 -0
- data/static/constants.json +27 -7
- data/static/info_arch.json +797 -199
- data/static/previews.json +13 -0
- data/static/statuses.json +4 -0
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43bf764ed97905f9c6226a0f863c3a02a153663bf08d4b2c55a0f7af555bc095
|
4
|
+
data.tar.gz: a970261d638430d7fbbda55eeb80032dc165d84fdb759e050bab65041a02ed2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20718b62cd0dd58529ba46d8ddfca0ffbff371917503a39fd4c5ce33886e268db115fb0057748107c73d737cd3c8aa59c59e8d3cda45e041674e6edd1187ed3d
|
7
|
+
data.tar.gz: c3d3f3f37ea5c171cc4c93d3345f45444a9bc10b7f456c11ea2c23d1bf572bbb87be4bc8018474be5faa71300862d3fd2521674d7377f7c9aa08694c1f505e78
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.69.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#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
|
8
|
+
|
3
9
|
## 0.68.0
|
4
10
|
|
5
11
|
### 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[];
|
data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts
ADDED
@@ -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 {};
|