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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -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/components/primer/open_project/tree_view/tree_view.d.ts +1 -0
- data/app/assets/javascripts/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.d.ts +1 -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/app/components/primer/open_project/border_box/collapsible_header.rb +0 -3
- data/app/components/primer/open_project/collapsible_section.rb +1 -7
- data/app/components/primer/open_project/page_header/title.rb +1 -1
- data/app/components/primer/open_project/tree_view/tree_view.d.ts +1 -0
- data/app/components/primer/open_project/tree_view/tree_view.js +34 -1
- data/app/components/primer/open_project/tree_view/tree_view.ts +37 -0
- data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.d.ts +1 -0
- data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.js +14 -0
- data/app/components/primer/open_project/tree_view/tree_view_sub_tree_node_element.ts +18 -0
- 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/previews/primer/open_project/border_box/collapsible_header_preview/playground.html.erb +1 -1
- data/previews/primer/open_project/tree_view_preview/async_alpha.html.erb +12 -0
- data/previews/primer/open_project/tree_view_preview.rb +24 -0
- data/static/arguments.json +169 -68
- data/static/audited_at.json +4 -0
- data/static/constants.json +28 -8
- data/static/info_arch.json +794 -170
- data/static/previews.json +39 -0
- data/static/statuses.json +4 -0
- metadata +15 -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,23 @@
|
|
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
|
+
|
9
|
+
## 0.68.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [#308](https://github.com/opf/primer_view_components/pull/308) [`a19f27f`](https://github.com/opf/primer_view_components/commit/a19f27f898742f0376c0a71edc676c047a22f85c) Thanks [@camertron](https://github.com/camertron)! - [TreeView] Bubble expanded state from children to parents, i.e. automatically expand ancestors of expanded nodes
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- [#311](https://github.com/opf/primer_view_components/pull/311) [`0db76dc`](https://github.com/opf/primer_view_components/commit/0db76dc5002ddf1d799fe83f91e592f66147b897) Thanks [@bsatarnejad](https://github.com/bsatarnejad)! - set the fallback heading fallback to h2 in page header title
|
18
|
+
|
19
|
+
- [#312](https://github.com/opf/primer_view_components/pull/312) [`1062b1c`](https://github.com/opf/primer_view_components/commit/1062b1c4c542fa3485faf1cce16764eefa39e303) Thanks [@HDinger](https://github.com/HDinger)! - Revert String enforcment for CollapsibleHeader and CollapsibleSection
|
20
|
+
|
3
21
|
## 0.67.0
|
4
22
|
|
5
23
|
### 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 {};
|
@@ -22,6 +22,7 @@ export declare class TreeViewElement extends HTMLElement {
|
|
22
22
|
getNodeCheckedValue(node: Element): TreeViewCheckedValue;
|
23
23
|
nodeHasCheckBox(node: Element): boolean;
|
24
24
|
nodeHasNativeAction(node: Element): boolean;
|
25
|
+
expandAncestorsForNode(node: HTMLElement): void;
|
25
26
|
infoFromNode(node: Element, newCheckedValue?: TreeViewCheckedValue): TreeViewNodeInfo | null;
|
26
27
|
}
|
27
28
|
declare global {
|
@@ -28,6 +28,7 @@ export declare class TreeViewSubTreeNodeElement extends HTMLElement {
|
|
28
28
|
get nodes(): NodeListOf<Element>;
|
29
29
|
eachDirectDescendantNode(): Generator<Element>;
|
30
30
|
eachDescendantNode(): Generator<Element>;
|
31
|
+
eachAncestorSubTreeNode(): Generator<TreeViewSubTreeNodeElement>;
|
31
32
|
get isEmpty(): boolean;
|
32
33
|
get treeView(): TreeViewElement | null;
|
33
34
|
toggleChecked(): void;
|