@skyux/modals 10.31.0 → 10.32.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.
@@ -25,6 +25,7 @@ export declare class SkyModalInstance {
25
25
  * An event that the modal instance emits when users click
26
26
  * the <i class="fa fa-question-circle" aria-hidden="true"></i> button.
27
27
  * If a `helpKey` parameter was specified, the `helpOpened` event broadcasts the `helpKey`.
28
+ * @deprecated
28
29
  */
29
30
  get helpOpened(): Observable<string>;
30
31
  /**
@@ -74,6 +75,7 @@ export declare class SkyModalInstance {
74
75
  * @param helpKey Specifies a string to emit to subscribers of
75
76
  * the modal instance's `helpOpened` event. Consumers can inject the `SkyModalInstance` provider
76
77
  * into a component's constructor to call the `openHelp` function in the modal template.
78
+ * @deprecated
77
79
  */
78
80
  openHelp(helpKey: string): void;
79
81
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import { SkyModalError } from './modal-error';
3
3
  import { SkyModalScrollShadowEventArgs } from './modal-scroll-shadow-event-args';
4
4
  import * as i0 from "@angular/core";
@@ -15,26 +15,59 @@ export declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnIn
15
15
  */
16
16
  set formErrors(value: SkyModalError[] | undefined);
17
17
  /**
18
+ * The text to display as the modal's heading.
19
+ * @preview
20
+ */
21
+ headingText: string | undefined;
22
+ /**
23
+ * A help key that identifies the global help content to display. When specified, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline) button is
24
+ * added to the modal header. Clicking the button invokes global help as configured by the application.
25
+ * @preview
26
+ */
27
+ helpKey: string | undefined;
28
+ /**
29
+ * The content of the help popover. When specified, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
30
+ * button is added to the modal header. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
31
+ * when clicked using the specified content and optional title.
32
+ * @preview
33
+ */
34
+ helpPopoverContent: string | TemplateRef<unknown> | undefined;
35
+ /**
36
+ * The title of the help popover. This property only applies when `helpPopoverContent` is
37
+ * also specified.
38
+ * @preview
39
+ */
40
+ helpPopoverTitle: string | undefined;
41
+ /**
42
+ * Used by the confirm component to set a different role for the modal.
18
43
  * @internal
19
44
  */
20
45
  set ariaRole(value: string | undefined);
21
46
  ariaRoleOrDefault: string;
22
47
  /**
23
48
  * @internal
49
+ * @deprecated
24
50
  */
25
51
  tiledBody: boolean | undefined;
26
52
  /**
53
+ * Used by the confirm component to set descriptive text without using a
54
+ * modal header.
27
55
  * @internal
28
56
  */
29
57
  set ariaDescribedBy(id: string | undefined);
30
58
  get ariaDescribedBy(): string | undefined;
31
59
  /**
60
+ * Used by the confirm component to set descriptive text without using a
61
+ * modal header.
32
62
  * @internal
33
63
  */
34
64
  set ariaLabelledBy(id: string | undefined);
35
65
  get ariaLabelledBy(): string | undefined;
36
66
  ariaOwns: string | null;
37
- helpKey: string | undefined;
67
+ /**
68
+ * @deprecated
69
+ */
70
+ legacyHelpKey: string | undefined;
38
71
  modalState: string;
39
72
  modalZIndex: number | undefined;
40
73
  scrollShadow: SkyModalScrollShadowEventArgs | undefined;
@@ -46,11 +79,14 @@ export declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnIn
46
79
  ngOnInit(): void;
47
80
  ngAfterViewInit(): void;
48
81
  ngOnDestroy(): void;
82
+ /**
83
+ * @deprecated
84
+ */
49
85
  helpButtonClick(): void;
50
86
  closeButtonClick(): void;
51
87
  windowResize(): void;
52
88
  scrollShadowChange(args: SkyModalScrollShadowEventArgs): void;
53
89
  viewkeeperEnabled(): boolean;
54
90
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalComponent, "sky-modal", never, { "formErrors": { "alias": "formErrors"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "tiledBody": { "alias": "tiledBody"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; }, {}, never, ["sky-modal-header", "sky-modal-content", "sky-modal-footer"], true, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalComponent, "sky-modal", never, { "formErrors": { "alias": "formErrors"; "required": false; }; "headingText": { "alias": "headingText"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "tiledBody": { "alias": "tiledBody"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; }, {}, never, ["sky-modal-header", "sky-modal-content", "sky-modal-footer"], true, never>;
56
92
  }
@@ -27,6 +27,7 @@ export interface SkyModalConfigurationInterface {
27
27
  * with, such as buttons and forms. If you do not specify an ID, the default description is
28
28
  * the content of the `sky-modal-content` component.
29
29
  * For more information about the `aria-describedby` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-describedby).
30
+ * @deprecated Set `headingText` on the modal component instead.
30
31
  */
31
32
  ariaDescribedBy?: string;
32
33
  /**
@@ -36,6 +37,7 @@ export interface SkyModalConfigurationInterface {
36
37
  * This is typically a header element, and if you do not specify an ID, the default value
37
38
  * is the content of the `sky-modal-header` component.
38
39
  * For more information about the `aria-labelledby` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-labelledby).
40
+ * @deprecated Set `headingText` on the modal component instead.
39
41
  */
40
42
  ariaLabelledBy?: string;
41
43
  /**
@@ -56,12 +58,13 @@ export interface SkyModalConfigurationInterface {
56
58
  */
57
59
  tiledBody?: boolean;
58
60
  /**
59
- * @deprecated To display a help button in the modal header, include a help button element, such as `sky-help-inline`, in the `sky-modal-header` element and a `sky-control-help` CSS class on that help button element
60
61
  * The `helpKey` string. This property displays
61
62
  * the <i class="fa fa-question-circle" aria-hidden="true"></i> button in the modal header.
62
63
  * When users click this button, the `helpOpened` event broadcasts the `helpKey` parameter.
63
64
  * Blackbaud developers can use the Help Widget, which is for internal Blackbaud use only, to
64
65
  * [display help content in a flyout panel](https://docs.blackbaud.com/bb-help-docs/components/modal-header).
66
+ * @deprecated To display a help button in the modal header, set either the
67
+ * `helpKey` or `helpPopoverContent` inputs on the modal component.
65
68
  */
66
69
  helpKey?: string;
67
70
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "10.31.0",
3
+ "version": "10.32.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,13 +40,14 @@
40
40
  "@angular/common": "^17.3.4",
41
41
  "@angular/core": "^17.3.4",
42
42
  "@angular/router": "^17.3.4",
43
- "@skyux/core": "10.31.0",
44
- "@skyux/i18n": "10.31.0",
45
- "@skyux/indicators": "10.31.0",
46
- "@skyux/theme": "10.31.0"
43
+ "@skyux/core": "10.32.0",
44
+ "@skyux/help-inline": "10.32.0",
45
+ "@skyux/i18n": "10.32.0",
46
+ "@skyux/indicators": "10.32.0",
47
+ "@skyux/theme": "10.32.0"
47
48
  },
48
49
  "dependencies": {
49
- "@skyux/icon": "10.31.0",
50
+ "@skyux/icon": "10.32.0",
50
51
  "tslib": "^2.6.2"
51
52
  },
52
53
  "module": "fesm2022/skyux-modals.mjs",
@@ -1,4 +1,5 @@
1
1
  import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { TemplateRef } from '@angular/core';
2
3
  import { SkyComponentHarness } from '@skyux/core/testing';
3
4
  import { SkyModalHarnessFilters } from './modal-harness-filters';
4
5
  /**
@@ -16,17 +17,35 @@ export declare class SkyModalHarness extends SkyComponentHarness {
16
17
  */
17
18
  static with(filters: SkyModalHarnessFilters): HarnessPredicate<SkyModalHarness>;
18
19
  /**
19
- * Gets the aria-describedBy property of the modal
20
+ * Clicks the help inline button.
21
+ */
22
+ clickHelpInline(): Promise<void>;
23
+ /**
24
+ * Gets the aria-describedBy property of the modal.
25
+ * @deprecated
20
26
  */
21
27
  getAriaDescribedBy(): Promise<string | null>;
22
28
  /**
23
- * Gets the aria-labelledBy property of the modal
29
+ * Gets the aria-labelledBy property of the modal.
30
+ * @deprecated
24
31
  */
25
32
  getAriaLabelledBy(): Promise<string | null>;
26
33
  /**
27
34
  * Gets the role of the modal.
28
35
  */
29
36
  getAriaRole(): Promise<string | null>;
37
+ /**
38
+ * Gets the modal's heading text.
39
+ */
40
+ getHeadingText(): Promise<string | undefined>;
41
+ /**
42
+ * Gets the help popover content.
43
+ */
44
+ getHelpPopoverContent(): Promise<TemplateRef<unknown> | string | undefined>;
45
+ /**
46
+ * Gets the help popover title.
47
+ */
48
+ getHelpPopoverTitle(): Promise<string | undefined>;
30
49
  /**
31
50
  * Gets the modal size.
32
51
  */