@skyux/modals 13.14.2 → 13.15.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
@@ -537,6 +537,13 @@ declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnInit {
537
537
  set ariaLabelledBy(id: string | undefined);
538
538
  get ariaLabelledBy(): string | undefined;
539
539
  readonly layout: i0.InputSignal<"none" | "fit">;
540
+ /**
541
+ * Whether to hide the modal's header, including the heading from `headingText`,
542
+ * the help inline button if `helpKey` is provided, and the close button in the
543
+ * top right. Reserve this property for specific use cases where you need a
544
+ * banner image in place of the header.
545
+ */
546
+ readonly headingHidden: i0.InputSignalWithTransform<boolean, unknown>;
540
547
  ariaOwns: string | null;
541
548
  /**
542
549
  * @deprecated
@@ -563,7 +570,25 @@ declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnInit {
563
570
  scrollShadowChange(args: SkyScrollShadowEventArgs): void;
564
571
  viewkeeperEnabled(): boolean;
565
572
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalComponent, never>;
566
- 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; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; }, {}, never, ["sky-modal-header", "sky-modal-content", "sky-modal-footer"], true, never>;
573
+ 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; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "headingHidden": { "alias": "headingHidden"; "required": false; "isSignal": true; }; }, {}, never, ["sky-modal-header", "sky-modal-banner", "sky-modal-content", "sky-modal-footer"], true, never>;
574
+ }
575
+
576
+ /**
577
+ * Specifies content to display at the top of the modal. The content extends
578
+ * the full width of the modal without any padding or margin. In general, only
579
+ * use a banner when the modal's `headingHidden` input is set to `true`.
580
+ */
581
+ declare class SkyModalBannerComponent {
582
+ /**
583
+ * The banner image to display at the top of the modal. To fit the allotted
584
+ * space, the image must have a 5:3 aspect ratio. If it is wider, extra space
585
+ * appears under the image. If it is narrower, the bottom of the image is
586
+ * cropped.
587
+ */
588
+ readonly imageSrc: i0.InputSignal<string>;
589
+ protected readonly backgroundImage: i0.Signal<string | null>;
590
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalBannerComponent, never>;
591
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalBannerComponent, "sky-modal-banner", never, { "imageSrc": { "alias": "imageSrc"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
567
592
  }
568
593
 
569
594
  /**
@@ -610,7 +635,7 @@ declare class SkyModalIsDirtyDirective implements OnInit, OnDestroy {
610
635
 
611
636
  declare class SkyModalModule {
612
637
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalModule, never>;
613
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalModule, never, [typeof SkyModalComponent, typeof SkyModalContentComponent, typeof SkyModalFooterComponent, typeof SkyModalHeaderComponent, typeof SkyModalIsDirtyDirective], [typeof SkyModalComponent, typeof SkyModalContentComponent, typeof SkyModalFooterComponent, typeof SkyModalHeaderComponent, typeof SkyModalIsDirtyDirective]>;
638
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalModule, never, [typeof SkyModalComponent, typeof SkyModalBannerComponent, typeof SkyModalContentComponent, typeof SkyModalFooterComponent, typeof SkyModalHeaderComponent, typeof SkyModalIsDirtyDirective], [typeof SkyModalComponent, typeof SkyModalBannerComponent, typeof SkyModalContentComponent, typeof SkyModalFooterComponent, typeof SkyModalHeaderComponent, typeof SkyModalIsDirtyDirective]>;
614
639
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyModalModule>;
615
640
  }
616
641
 
@@ -643,5 +668,5 @@ declare class SkyConfirmComponent implements OnDestroy {
643
668
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyConfirmComponent, "sky-confirm", never, {}, {}, never, never, true, never>;
644
669
  }
645
670
 
646
- export { SkyConfirmInstance, SkyConfirmModule, SkyConfirmService, SkyConfirmType, SkyModalBeforeCloseHandler, SkyModalCloseArgs, SkyModalConfiguration, SkyModalErrorsService, SkyModalHostService, SkyModalInstance, SkyModalLegacyService, SkyModalModule, SkyModalService, SkyConfirmComponent as λ1, SkyModalContentComponent as λ2, SkyModalFooterComponent as λ3, SkyModalHeaderComponent as λ4, SkyModalComponent as λ5, SkyModalIsDirtyDirective as λ6 };
671
+ export { SkyConfirmInstance, SkyConfirmModule, SkyConfirmService, SkyConfirmType, SkyModalBeforeCloseHandler, SkyModalCloseArgs, SkyModalConfiguration, SkyModalErrorsService, SkyModalHostService, SkyModalInstance, SkyModalLegacyService, SkyModalModule, SkyModalService, SkyConfirmComponent as λ1, SkyModalContentComponent as λ2, SkyModalFooterComponent as λ3, SkyModalHeaderComponent as λ4, SkyModalComponent as λ5, SkyModalIsDirtyDirective as λ6, SkyModalBannerComponent as λ7 };
647
672
  export type { SkyConfirmButtonAction, SkyConfirmButtonConfig, SkyConfirmButtonStyleType, SkyConfirmCloseEventArgs, SkyConfirmConfig, SkyConfirmServiceInterface, SkyModalConfigurationInterface, SkyModalError, SkyModalServiceInterface };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "13.14.2",
3
+ "version": "13.15.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -17,15 +17,15 @@
17
17
  "homepage": "https://github.com/blackbaud/skyux#readme",
18
18
  "peerDependencies": {
19
19
  "@angular/cdk": "^20.2.14",
20
- "@angular/common": "^20.3.15",
21
- "@angular/core": "^20.3.15",
22
- "@angular/router": "^20.3.15",
23
- "@skyux/core": "13.14.2",
24
- "@skyux/help-inline": "13.14.2",
25
- "@skyux/i18n": "13.14.2",
26
- "@skyux/icon": "13.14.2",
27
- "@skyux/indicators": "13.14.2",
28
- "@skyux/theme": "13.14.2"
20
+ "@angular/common": "^20.3.17",
21
+ "@angular/core": "^20.3.17",
22
+ "@angular/router": "^20.3.17",
23
+ "@skyux/core": "13.15.0",
24
+ "@skyux/help-inline": "13.15.0",
25
+ "@skyux/i18n": "13.15.0",
26
+ "@skyux/icon": "13.15.0",
27
+ "@skyux/indicators": "13.15.0",
28
+ "@skyux/theme": "13.15.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "tslib": "^2.8.1"
@@ -221,6 +221,21 @@ declare class SkyModalTestingModule {
221
221
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyModalTestingModule>;
222
222
  }
223
223
 
224
+ /**
225
+ * Harness for interacting with a modal banner component in tests.
226
+ */
227
+ declare class SkyModalBannerHarness extends SkyComponentHarness {
228
+ /**
229
+ * @internal
230
+ */
231
+ static hostSelector: string;
232
+ /**
233
+ * Gets the image source URL from the banner's background image style.
234
+ * Returns `null` if no image source is set.
235
+ */
236
+ getImageSrc(): Promise<string | null>;
237
+ }
238
+
224
239
  /**
225
240
  * A set of criteria that can be used to filter a list of SkyModalHarness instances.
226
241
  */
@@ -241,6 +256,10 @@ declare class SkyModalHarness extends SkyComponentHarness {
241
256
  * `SkyModalHarness` that meets certain criteria
242
257
  */
243
258
  static with(filters: SkyModalHarnessFilters): HarnessPredicate<SkyModalHarness>;
259
+ /**
260
+ * Gets the modal banner harness, or `null` if no banner is present.
261
+ */
262
+ getBanner(): Promise<SkyModalBannerHarness | null>;
244
263
  /**
245
264
  * Clicks the help inline button.
246
265
  */
@@ -289,5 +308,5 @@ declare class SkyModalHarness extends SkyComponentHarness {
289
308
  isDirty(): Promise<boolean>;
290
309
  }
291
310
 
292
- export { SkyConfirmButtonHarness, SkyConfirmHarness, SkyConfirmTestingController, SkyConfirmTestingModule, SkyModalFixture, SkyModalHarness, SkyModalTestingController, SkyModalTestingModule };
311
+ export { SkyConfirmButtonHarness, SkyConfirmHarness, SkyConfirmTestingController, SkyConfirmTestingModule, SkyModalBannerHarness, SkyModalFixture, SkyModalHarness, SkyModalTestingController, SkyModalTestingModule };
293
312
  export type { SkyConfirmButtonHarnessFilters, SkyModalHarnessFilters };