openproject-primer_view_components 0.50.1 → 0.52.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 +23 -0
- data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
- data/app/assets/javascripts/components/primer/open_project/danger_confirmation_dialog_form_helper.d.ts +13 -0
- data/app/assets/javascripts/components/primer/primer.d.ts +2 -0
- data/app/assets/javascripts/components/primer/utils.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/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.html.erb +1 -4
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +2 -6
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +10 -43
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +31 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +37 -0
- data/app/components/primer/alpha/action_menu.rb +6 -0
- data/app/components/primer/alpha/select_panel_element.js +6 -19
- data/app/components/primer/alpha/select_panel_element.ts +9 -21
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +30 -30
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +2 -3
- data/app/components/primer/open_project/danger_confirmation_dialog/confirmation_check_box.rb +44 -0
- data/app/components/primer/open_project/danger_confirmation_dialog/form_wrapper.html.erb +7 -0
- data/app/components/primer/open_project/danger_confirmation_dialog/form_wrapper.rb +26 -0
- data/app/components/primer/open_project/danger_confirmation_dialog.html.erb +19 -0
- data/app/components/primer/open_project/danger_confirmation_dialog.rb +104 -0
- data/app/components/primer/open_project/danger_confirmation_dialog_form_helper.d.ts +13 -0
- data/app/components/primer/open_project/danger_confirmation_dialog_form_helper.js +44 -0
- data/app/components/primer/open_project/danger_confirmation_dialog_form_helper.ts +36 -0
- data/app/components/primer/open_project/feedback_dialog.html.erb +2 -2
- data/app/components/primer/open_project/feedback_dialog.rb +3 -3
- data/app/components/primer/primer.d.ts +2 -0
- data/app/components/primer/primer.js +2 -0
- data/app/components/primer/primer.ts +2 -0
- data/app/components/primer/utils.d.ts +1 -0
- data/app/components/primer/utils.js +16 -0
- data/app/components/primer/utils.ts +16 -0
- data/app/lib/primer/forms/acts_as_component.rb +9 -2
- data/app/lib/primer/forms/base.rb +0 -5
- data/app/lib/primer/forms/base_component.rb +5 -3
- data/app/lib/primer/forms/radio_button_group.html.erb +1 -1
- data/app/lib/primer/forms/utils.rb +16 -1
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +3 -5
- data/previews/primer/open_project/danger_confirmation_dialog_preview/playground.html.erb +13 -0
- data/previews/primer/open_project/danger_confirmation_dialog_preview/with_additional_details.html.erb +40 -0
- data/previews/primer/open_project/danger_confirmation_dialog_preview/with_form.html.erb +11 -0
- data/previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb +13 -0
- data/previews/primer/open_project/danger_confirmation_dialog_preview.rb +71 -0
- data/previews/primer/open_project/feedback_dialog_preview/playground.html.erb +3 -3
- data/previews/primer/open_project/feedback_dialog_preview/{additional_content.html.erb → with_additional_details.html.erb} +1 -1
- data/previews/primer/open_project/feedback_dialog_preview.rb +6 -6
- data/static/classes.json +6 -0
- data/static/info_arch.json +6 -6
- data/static/previews.json +4 -4
- metadata +30 -12
- /data/previews/primer/open_project/feedback_dialog_preview/{custom_footer.html.erb → with_custom_footer.html.erb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd140b594a3320327597c717407335fcb2a75d74160f81635780fe093f32a6db
|
4
|
+
data.tar.gz: a3d6b3886f9900157721df6a670b305360387f9969753a9f790605caa5c1faa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f9cb45a17f8e132c3eb41117a2a0300dff084738285eef44818b57b5da876472030691fcafe463e5c77a1050c21fb39a79df2e7107b5ab7a6f95872c8df0e6
|
7
|
+
data.tar.gz: 3887155c4ef530bf37c7aa5c5dc30ef87dfb14002939d427a761b16c6e8e676cf52168de0f263972ba39cb71fd03105b7252cd1f2134c2980d630af4fb2a003a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.52.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#219](https://github.com/opf/primer_view_components/pull/219) [`e3a93b7`](https://github.com/opf/primer_view_components/commit/e3a93b72299395d039758b1fda8ec78d51687127) Thanks [@myabc](https://github.com/myabc)! - [#60359] Harmonise FeedbackDialog slot naming: renames the `additional_content` slot to `additional_details` to make Feedback Dialog consistent with the newly introduced Danger Confirmation Dialog.
|
8
|
+
|
9
|
+
## 0.51.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [#214](https://github.com/opf/primer_view_components/pull/214) [`0d265ad`](https://github.com/opf/primer_view_components/commit/0d265ad5384099a1a3a8833cc25bee72d1c15684) Thanks [@myabc](https://github.com/myabc)! - [59468] Initial implementation of Danger Confirmation Dialog
|
14
|
+
This is an opinionated dialog that requires the user to confirm that they wish to perform a "potentially dangerous" action by clicking a checkbox. The submit button is disabled until the checkbox is clicked. A "potentially dangerous" action could be a destructive action that cannot be easily reverted, such as bulk delete.
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- [#3224](https://github.com/primer/view_components/pull/3224) [`3140ad9`](https://github.com/opf/primer_view_components/commit/3140ad99f59b2345a43774c369bcc35d7ddd04d3) Thanks [@camertron](https://github.com/camertron)! - Update check box styles for ActionList to match the rest of Primer
|
19
|
+
|
20
|
+
- [#3236](https://github.com/primer/view_components/pull/3236) [`eea9da6`](https://github.com/opf/primer_view_components/commit/eea9da6639c3fe81f328e7da8904d89df6b2467b) Thanks [@camertron](https://github.com/camertron)! - Improve template path detection for forms
|
21
|
+
|
22
|
+
- [#3235](https://github.com/primer/view_components/pull/3235) [`c765093`](https://github.com/opf/primer_view_components/commit/c765093790d53940b3d7810085441d3706d17229) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds `role="radiogroup"` on `fieldset` in radio group component
|
23
|
+
|
24
|
+
- [#3207](https://github.com/primer/view_components/pull/3207) [`5880922`](https://github.com/opf/primer_view_components/commit/5880922a563af6d51dc912616861cf3010a1d24a) Thanks [@camertron](https://github.com/camertron)! - Fix ActionMenu position issue when container is scrollable
|
25
|
+
|
3
26
|
## 0.50.1
|
4
27
|
|
5
28
|
### Patch Changes
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import '@oddbird/popover-polyfill';
|
2
2
|
import type { IncludeFragmentElement } from '@github/include-fragment-element';
|
3
|
+
import AnchoredPositionElement from '../../anchored_position';
|
3
4
|
type SelectVariant = 'none' | 'single' | 'multiple' | null;
|
4
5
|
type SelectedItem = {
|
5
6
|
label: string | null | undefined;
|
@@ -9,6 +10,7 @@ type SelectedItem = {
|
|
9
10
|
export declare class ActionMenuElement extends HTMLElement {
|
10
11
|
#private;
|
11
12
|
includeFragment: IncludeFragmentElement;
|
13
|
+
overlay: AnchoredPositionElement;
|
12
14
|
get selectVariant(): SelectVariant;
|
13
15
|
set selectVariant(variant: SelectVariant);
|
14
16
|
get dynamicLabelPrefix(): string;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare class DangerConfirmationDialogFormHelperElement extends HTMLElement {
|
2
|
+
#private;
|
3
|
+
checkbox: HTMLInputElement;
|
4
|
+
get submitButton(): HTMLButtonElement | HTMLInputElement;
|
5
|
+
connectedCallback(): void;
|
6
|
+
toggle(): void;
|
7
|
+
}
|
8
|
+
declare global {
|
9
|
+
interface Window {
|
10
|
+
DangerConfirmationDialogFormHelperElement: typeof DangerConfirmationDialogFormHelperElement;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export {};
|
@@ -8,6 +8,7 @@ import './dialog_helper';
|
|
8
8
|
import './focus_group';
|
9
9
|
import './scrollable_region';
|
10
10
|
import './shared_events';
|
11
|
+
import './utils';
|
11
12
|
import './alpha/modal_dialog';
|
12
13
|
import './beta/nav_list';
|
13
14
|
import './beta/nav_list_group_element';
|
@@ -27,3 +28,4 @@ import './alpha/select_panel_element';
|
|
27
28
|
import './open_project/page_header_element';
|
28
29
|
import './open_project/zen_mode_button';
|
29
30
|
import './open_project/sub_header_element';
|
31
|
+
import './open_project/danger_confirmation_dialog_form_helper';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const observeMutationsUntilConditionMet: (element: Element, condition: () => boolean, body: () => void) => void;
|