@skyux/layout 10.35.0 → 10.36.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.
package/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export { SkyBackToTopModule } from './lib/modules/back-to-top/back-to-top.module
6
6
  export { SkyBackToTopMessage } from './lib/modules/back-to-top/models/back-to-top-message';
7
7
  export { SkyBackToTopMessageType } from './lib/modules/back-to-top/models/back-to-top-message-type';
8
8
  export { SkyBackToTopOptions } from './lib/modules/back-to-top/models/back-to-top-options';
9
+ export { SkyBoxHeadingLevel } from './lib/modules/box/box-heading-level';
10
+ export { SkyBoxHeadingStyle } from './lib/modules/box/box-heading-style';
9
11
  export { SkyBoxModule } from './lib/modules/box/box.module';
10
12
  export { SkyCardModule } from './lib/modules/card/card.module';
11
13
  export { SkyDefinitionListModule } from './lib/modules/definition-list/definition-list.module';
@@ -1,9 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  /**
3
3
  * Specifies a header for the box.
4
+ * @deprecated Use `headingText` input on the `sky-box` component instead.
4
5
  */
5
6
  export declare class SkyBoxHeaderComponent {
6
7
  protected readonly boxHeaderId: string;
8
+ constructor();
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyBoxHeaderComponent, never>;
8
10
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyBoxHeaderComponent, "sky-box-header", never, {}, {}, never, ["*", ".sky-control-help"], false, never>;
9
11
  }
@@ -0,0 +1 @@
1
+ export type SkyBoxHeadingLevel = 2 | 3 | 4 | 5;
@@ -0,0 +1 @@
1
+ export type SkyBoxHeadingStyle = 2 | 3 | 4 | 5;
@@ -1,16 +1,62 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, TemplateRef } from '@angular/core';
2
2
  import { SkyBoxControlsComponent } from './box-controls.component';
3
+ import { SkyBoxHeadingLevel } from './box-heading-level';
4
+ import { SkyBoxHeadingStyle } from './box-heading-style';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
5
7
  * Provides a common look-and-feel for box content with options to display a common box header, specify body content, and display common box controls.
6
8
  */
7
9
  export declare class SkyBoxComponent {
8
10
  #private;
11
+ /**
12
+ * The text to display as the box's heading.
13
+ * @preview
14
+ */
15
+ set headingText(value: string | undefined);
16
+ get headingText(): string | undefined;
17
+ /**
18
+ * Indicates whether to hide the `headingText`.
19
+ * @preview
20
+ */
21
+ headingHidden: boolean;
22
+ /**
23
+ * The semantic heading level in the document structure. The default is 2.
24
+ * @preview
25
+ * @default 2
26
+ */
27
+ headingLevel: SkyBoxHeadingLevel;
28
+ /**
29
+ * The heading [font style](https://developer.blackbaud.com/skyux/design/styles/typography#headings).
30
+ * @preview
31
+ * @default 2
32
+ */
33
+ set headingStyle(value: SkyBoxHeadingStyle);
34
+ /**
35
+ * The content of the help popover. When specified, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
36
+ * button is added to the box heading. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
37
+ * when clicked using the specified content and optional title.
38
+ * @preview
39
+ */
40
+ helpPopoverContent: string | TemplateRef<unknown> | undefined;
41
+ /**
42
+ * The title of the help popover. This property only applies when `helpPopoverContent` is
43
+ * also specified.
44
+ * @preview
45
+ */
46
+ helpPopoverTitle: string | undefined;
47
+ /**
48
+ * A help key that identifies the global help content to display. When specified, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
49
+ * button is placed beside the box heading. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
50
+ * as configured by the application.
51
+ * @preview
52
+ */
53
+ helpKey: string | undefined;
9
54
  /**
10
55
  * The ARIA label for the box. This sets the box's `aria-label` attribute to provide a text equivalent for screen readers
11
56
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
12
57
  * If the box includes a visible label, use `ariaLabelledBy` instead.
13
58
  * For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
59
+ * @deprecated Use `headingText` instead.
14
60
  */
15
61
  ariaLabel: string | undefined;
16
62
  /**
@@ -19,6 +65,7 @@ export declare class SkyBoxComponent {
19
65
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
20
66
  * If the box does not include a visible label, use `ariaLabel` instead.
21
67
  * For more information about the `aria-labelledby` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-labelledby).
68
+ * @deprecated Use `headingText` instead.
22
69
  */
23
70
  ariaLabelledBy: string | undefined;
24
71
  /**
@@ -31,6 +78,11 @@ export declare class SkyBoxComponent {
31
78
  ariaRole: string | undefined;
32
79
  set boxHeaderRef(value: ElementRef | undefined);
33
80
  set boxControls(value: SkyBoxControlsComponent | undefined);
81
+ headerId: string;
82
+ protected headingClass: string;
34
83
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyBoxComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyBoxComponent, "sky-box", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; }, {}, ["boxHeaderRef", "boxControls"], ["sky-box-header", "sky-box-controls", "*"], false, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyBoxComponent, "sky-box", never, { "headingText": { "alias": "headingText"; "required": false; }; "headingHidden": { "alias": "headingHidden"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; "headingStyle": { "alias": "headingStyle"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; }, {}, ["boxHeaderRef", "boxControls"], ["sky-box-header", "sky-box-controls", "*"], false, never>;
85
+ static ngAcceptInputType_headingHidden: unknown;
86
+ static ngAcceptInputType_headingLevel: unknown;
87
+ static ngAcceptInputType_headingStyle: unknown;
36
88
  }
@@ -4,10 +4,11 @@ import * as i2 from "./box-header.component";
4
4
  import * as i3 from "./box-content.component";
5
5
  import * as i4 from "./box-controls.component";
6
6
  import * as i5 from "@angular/common";
7
- import * as i6 from "@skyux/theme";
8
- import * as i7 from "@skyux/core";
7
+ import * as i6 from "@skyux/help-inline";
8
+ import * as i7 from "@skyux/theme";
9
+ import * as i8 from "@skyux/core";
9
10
  export declare class SkyBoxModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyBoxModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyBoxModule, [typeof i1.SkyBoxComponent, typeof i2.SkyBoxHeaderComponent, typeof i3.SkyBoxContentComponent, typeof i4.SkyBoxControlsComponent], [typeof i5.CommonModule, typeof i6.SkyThemeModule, typeof i7.SkyTrimModule], [typeof i1.SkyBoxComponent, typeof i2.SkyBoxHeaderComponent, typeof i3.SkyBoxContentComponent, typeof i4.SkyBoxControlsComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyBoxModule, [typeof i1.SkyBoxComponent, typeof i2.SkyBoxHeaderComponent, typeof i3.SkyBoxContentComponent, typeof i4.SkyBoxControlsComponent], [typeof i5.CommonModule, typeof i6.SkyHelpInlineModule, typeof i7.SkyThemeModule, typeof i8.SkyTrimModule], [typeof i1.SkyBoxComponent, typeof i2.SkyBoxHeaderComponent, typeof i3.SkyBoxContentComponent, typeof i4.SkyBoxControlsComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyBoxModule>;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/layout",
3
- "version": "10.35.0",
3
+ "version": "10.36.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -43,18 +43,18 @@
43
43
  "@angular/forms": "^17.3.4",
44
44
  "@angular/platform-browser": "^17.3.4",
45
45
  "@angular/router": "^17.3.4",
46
- "@skyux-sdk/testing": "10.35.0",
47
- "@skyux/core": "10.35.0",
48
- "@skyux/forms": "10.35.0",
49
- "@skyux/help-inline": "10.35.0",
50
- "@skyux/i18n": "10.35.0",
51
- "@skyux/indicators": "10.35.0",
52
- "@skyux/modals": "10.35.0",
53
- "@skyux/router": "10.35.0",
54
- "@skyux/theme": "10.35.0"
46
+ "@skyux-sdk/testing": "10.36.0",
47
+ "@skyux/core": "10.36.0",
48
+ "@skyux/forms": "10.36.0",
49
+ "@skyux/help-inline": "10.36.0",
50
+ "@skyux/i18n": "10.36.0",
51
+ "@skyux/indicators": "10.36.0",
52
+ "@skyux/modals": "10.36.0",
53
+ "@skyux/router": "10.36.0",
54
+ "@skyux/theme": "10.36.0"
55
55
  },
56
56
  "dependencies": {
57
- "@skyux/icon": "10.35.0",
57
+ "@skyux/icon": "10.36.0",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "module": "fesm2022/skyux-layout.mjs",
@@ -1,5 +1,7 @@
1
1
  import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { TemplateRef } from '@angular/core';
2
3
  import { SkyComponentHarness } from '@skyux/core/testing';
4
+ import { SkyBoxHeadingLevel, SkyBoxHeadingStyle } from '@skyux/layout';
3
5
  import { SkyBoxHarnessFilters } from './box-harness.filters';
4
6
  export declare class SkyBoxHarness extends SkyComponentHarness {
5
7
  #private;
@@ -12,6 +14,35 @@ export declare class SkyBoxHarness extends SkyComponentHarness {
12
14
  * `SkyBoxHarness` that meets certain criteria
13
15
  */
14
16
  static with(filters: SkyBoxHarnessFilters): HarnessPredicate<SkyBoxHarness>;
17
+ /**
18
+ * Clicks the help inline button.
19
+ */
20
+ clickHelpInline(): Promise<void>;
21
+ /**
22
+ * Gets the help popover content.
23
+ */
24
+ getHelpPopoverContent(): Promise<TemplateRef<unknown> | string | undefined>;
25
+ /**
26
+ * Gets the help popover title.
27
+ */
28
+ getHelpPopoverTitle(): Promise<string | undefined>;
29
+ /**
30
+ * Gets the box's heading text. If `headingHidden` is true,
31
+ * the text will still be returned.
32
+ */
33
+ getHeadingText(): Promise<string | undefined>;
34
+ /**
35
+ * Whether the heading is hidden.
36
+ */
37
+ getHeadingHidden(): Promise<boolean>;
38
+ /**
39
+ * The semantic heading level used for the checkbox group. Returns undefined if heading level is not set.
40
+ */
41
+ getHeadingLevel(): Promise<SkyBoxHeadingLevel | undefined>;
42
+ /**
43
+ * The heading style used for the checkbox group.
44
+ */
45
+ getHeadingStyle(): Promise<SkyBoxHeadingStyle>;
15
46
  /**
16
47
  * Gets the aria-label property of the box
17
48
  */