@skyux/modals 9.0.0-alpha.8 → 9.0.0-beta.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.
Files changed (30) hide show
  1. package/documentation.json +605 -739
  2. package/esm2022/index.mjs +2 -2
  3. package/esm2022/lib/modules/confirm/confirm.component.mjs +17 -6
  4. package/esm2022/lib/modules/confirm/confirm.module.mjs +7 -28
  5. package/esm2022/lib/modules/confirm/confirm.service.mjs +3 -6
  6. package/esm2022/lib/modules/modal/modal-content.component.mjs +3 -3
  7. package/esm2022/lib/modules/modal/modal-footer.component.mjs +5 -3
  8. package/esm2022/lib/modules/modal/modal-header.component.mjs +5 -3
  9. package/esm2022/lib/modules/modal/modal-host.component.mjs +23 -31
  10. package/esm2022/lib/modules/modal/modal-is-dirty.directive.mjs +3 -2
  11. package/esm2022/lib/modules/modal/modal-scroll-shadow.directive.mjs +16 -18
  12. package/esm2022/lib/modules/modal/modal.component.mjs +43 -36
  13. package/esm2022/lib/modules/modal/modal.module.mjs +7 -41
  14. package/esm2022/lib/modules/modal/modal.service.mjs +41 -20
  15. package/esm2022/lib/modules/shared/sky-modals-resources.module.mjs +4 -2
  16. package/fesm2022/skyux-modals.mjs +899 -916
  17. package/fesm2022/skyux-modals.mjs.map +1 -1
  18. package/index.d.ts +1 -1
  19. package/lib/modules/confirm/confirm.component.d.ts +1 -1
  20. package/lib/modules/confirm/confirm.module.d.ts +4 -7
  21. package/lib/modules/modal/modal-content.component.d.ts +1 -1
  22. package/lib/modules/modal/modal-footer.component.d.ts +2 -2
  23. package/lib/modules/modal/modal-header.component.d.ts +1 -1
  24. package/lib/modules/modal/modal-host.component.d.ts +4 -14
  25. package/lib/modules/modal/modal-is-dirty.directive.d.ts +1 -1
  26. package/lib/modules/modal/modal-scroll-shadow.directive.d.ts +3 -6
  27. package/lib/modules/modal/modal.component.d.ts +3 -6
  28. package/lib/modules/modal/modal.module.d.ts +2 -10
  29. package/lib/modules/modal/modal.service.d.ts +11 -2
  30. package/package.json +5 -5
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  * Specifies content to display in the modal's footer.
5
5
  */
6
6
  export declare class SkyModalFooterComponent {
7
- protected errorsSvc: SkyModalErrorsService;
7
+ protected readonly errorsSvc: SkyModalErrorsService;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalFooterComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalFooterComponent, "sky-modal-footer", never, {}, {}, never, ["*"], false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalFooterComponent, "sky-modal-footer", never, {}, {}, never, ["*"], true, never>;
10
10
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  */
5
5
  export declare class SkyModalHeaderComponent {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalHeaderComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalHeaderComponent, "sky-modal-header", never, {}, {}, never, ["*", ".sky-control-help"], false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalHeaderComponent, "sky-modal-header", never, {}, {}, never, ["*", ".sky-control-help"], true, never>;
8
8
  }
@@ -1,7 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { SkyModalAdapterService } from './modal-adapter.service';
4
- import { SkyModalHostContext } from './modal-host-context';
1
+ import { OnDestroy, Type, ViewContainerRef } from '@angular/core';
5
2
  import { SkyModalInstance } from './modal-instance';
6
3
  import { SkyModalConfigurationInterface } from './modal.interface';
7
4
  import * as i0 from "@angular/core";
@@ -12,16 +9,9 @@ export declare class SkyModalHostComponent implements OnDestroy {
12
9
  #private;
13
10
  get modalOpen(): boolean;
14
11
  get backdropZIndex(): number;
15
- /**
16
- * Use `any` for backwards-compatibility with Angular 4-7.
17
- * See: https://github.com/angular/angular/issues/30654
18
- * TODO: Remove the `any` in a breaking change.
19
- * @internal
20
- */
21
12
  target: ViewContainerRef | undefined;
22
- constructor(adapter: SkyModalAdapterService, changeDetector: ChangeDetectorRef, modalHostContext: SkyModalHostContext, elRef: ElementRef, router?: Router);
23
13
  ngOnDestroy(): void;
24
- open(modalInstance: SkyModalInstance, component: any, config?: SkyModalConfigurationInterface): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalHostComponent, [null, null, null, null, { optional: true; }]>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalHostComponent, "sky-modal-host", never, {}, {}, never, never, false, never>;
14
+ open<T>(modalInstance: SkyModalInstance, component: Type<T>, config?: SkyModalConfigurationInterface): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalHostComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalHostComponent, "sky-modal-host", never, {}, {}, never, never, true, never>;
27
17
  }
@@ -14,5 +14,5 @@ export declare class SkyModalIsDirtyDirective implements OnInit, OnDestroy {
14
14
  ngOnInit(): void;
15
15
  ngOnDestroy(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalIsDirtyDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<SkyModalIsDirtyDirective, "sky-modal[isDirty]", never, { "isDirty": { "alias": "isDirty"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkyModalIsDirtyDirective, "sky-modal[isDirty]", never, { "isDirty": { "alias": "isDirty"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -1,6 +1,4 @@
1
- import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyMutationObserverService } from '@skyux/core';
3
- import { SkyThemeService } from '@skyux/theme';
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
4
2
  import { SkyModalScrollShadowEventArgs } from './modal-scroll-shadow-event-args';
5
3
  import * as i0 from "@angular/core";
6
4
  /**
@@ -11,11 +9,10 @@ import * as i0 from "@angular/core";
11
9
  export declare class SkyModalScrollShadowDirective implements OnInit, OnDestroy {
12
10
  #private;
13
11
  skyModalScrollShadow: EventEmitter<SkyModalScrollShadowEventArgs>;
14
- constructor(elRef: ElementRef, mutationObserverSvc: SkyMutationObserverService, ngZone: NgZone, themeSvc?: SkyThemeService);
15
12
  windowResize(): void;
16
13
  scroll(): void;
17
14
  ngOnInit(): void;
18
15
  ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalScrollShadowDirective, [null, null, null, { optional: true; }]>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<SkyModalScrollShadowDirective, "[skyModalScrollShadow]", never, {}, { "skyModalScrollShadow": "skyModalScrollShadow"; }, never, never, false, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalScrollShadowDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SkyModalScrollShadowDirective, "[skyModalScrollShadow]", never, {}, { "skyModalScrollShadow": "skyModalScrollShadow"; }, never, never, true, never>;
21
18
  }
@@ -1,8 +1,5 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyAppWindowRef, SkyCoreAdapterService, SkyDockService, SkyResizeObserverMediaQueryService } from '@skyux/core';
3
- import { SkyModalComponentAdapterService } from './modal-component-adapter.service';
4
2
  import { SkyModalError } from './modal-error';
5
- import { SkyModalHostService } from './modal-host.service';
6
3
  import { SkyModalScrollShadowEventArgs } from './modal-scroll-shadow-event-args';
7
4
  import * as i0 from "@angular/core";
8
5
  /**
@@ -43,7 +40,7 @@ export declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnIn
43
40
  scrollShadow: SkyModalScrollShadowEventArgs | undefined;
44
41
  size: string;
45
42
  modalContentWrapperElement: ElementRef | undefined;
46
- constructor(hostService: SkyModalHostService, elRef: ElementRef, windowRef: SkyAppWindowRef, componentAdapter: SkyModalComponentAdapterService, coreAdapter: SkyCoreAdapterService, dockService: SkyDockService, mediaQueryService?: SkyResizeObserverMediaQueryService);
43
+ constructor();
47
44
  onDocumentKeyUp(event: KeyboardEvent): void;
48
45
  onDocumentKeyDown(event: KeyboardEvent): void;
49
46
  ngOnInit(): void;
@@ -54,6 +51,6 @@ export declare class SkyModalComponent implements AfterViewInit, OnDestroy, OnIn
54
51
  windowResize(): void;
55
52
  scrollShadowChange(args: SkyModalScrollShadowEventArgs): void;
56
53
  viewkeeperEnabled(): boolean;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalComponent, [null, null, null, null, null, { host: true; }, { optional: true; }]>;
58
- 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"], false, never>;
54
+ 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>;
59
56
  }
@@ -3,17 +3,9 @@ import * as i1 from "./modal.component";
3
3
  import * as i2 from "./modal-content.component";
4
4
  import * as i3 from "./modal-footer.component";
5
5
  import * as i4 from "./modal-header.component";
6
- import * as i5 from "./modal-host.component";
7
- import * as i6 from "./modal-is-dirty.directive";
8
- import * as i7 from "./modal-scroll-shadow.directive";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@angular/router";
11
- import * as i10 from "@skyux/indicators";
12
- import * as i11 from "@skyux/core";
13
- import * as i12 from "../shared/sky-modals-resources.module";
14
- import * as i13 from "@skyux/theme";
6
+ import * as i5 from "./modal-is-dirty.directive";
15
7
  export declare class SkyModalModule {
16
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalModule, [typeof i1.SkyModalComponent, typeof i2.SkyModalContentComponent, typeof i3.SkyModalFooterComponent, typeof i4.SkyModalHeaderComponent, typeof i5.SkyModalHostComponent, typeof i6.SkyModalIsDirtyDirective, typeof i7.SkyModalScrollShadowDirective], [typeof i8.CommonModule, typeof i9.RouterModule, typeof i10.SkyIconModule, typeof i11.SkyIdModule, typeof i12.SkyModalsResourcesModule, typeof i10.SkyStatusIndicatorModule, typeof i13.SkyThemeModule, typeof i11.SkyTrimModule], [typeof i1.SkyModalComponent, typeof i2.SkyModalContentComponent, typeof i3.SkyModalFooterComponent, typeof i4.SkyModalHeaderComponent, typeof i6.SkyModalIsDirtyDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalModule, never, [typeof i1.SkyModalComponent, typeof i2.SkyModalContentComponent, typeof i3.SkyModalFooterComponent, typeof i4.SkyModalHeaderComponent, typeof i5.SkyModalIsDirtyDirective], [typeof i1.SkyModalComponent, typeof i2.SkyModalContentComponent, typeof i3.SkyModalFooterComponent, typeof i4.SkyModalHeaderComponent, typeof i5.SkyModalIsDirtyDirective]>;
18
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyModalModule>;
19
11
  }
@@ -1,10 +1,9 @@
1
- import { SkyDynamicComponentService } from '@skyux/core';
1
+ import { SkyDynamicComponentLegacyService, SkyDynamicComponentService } from '@skyux/core';
2
2
  import { SkyModalInstance } from './modal-instance';
3
3
  import { SkyModalConfigurationInterface } from './modal.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * A service that launches modals.
7
- * @dynamic
8
7
  */
9
8
  export declare class SkyModalService {
10
9
  #private;
@@ -24,3 +23,13 @@ export declare class SkyModalService {
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalService, never>;
25
24
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalService>;
26
25
  }
26
+ /**
27
+ * A service that launches modals.
28
+ * @internal
29
+ * @deprecated Use `SkyModalService` to open a standalone component instead.
30
+ */
31
+ export declare class SkyModalLegacyService extends SkyModalService {
32
+ constructor(dynamicComponentSvc: SkyDynamicComponentLegacyService);
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalLegacyService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalLegacyService>;
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "9.0.0-alpha.8",
3
+ "version": "9.0.0-beta.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,10 +40,10 @@
40
40
  "@angular/common": "^16.2.1",
41
41
  "@angular/core": "^16.2.1",
42
42
  "@angular/router": "^16.2.1",
43
- "@skyux/core": "9.0.0-alpha.8",
44
- "@skyux/i18n": "9.0.0-alpha.8",
45
- "@skyux/indicators": "9.0.0-alpha.8",
46
- "@skyux/theme": "9.0.0-alpha.8"
43
+ "@skyux/core": "9.0.0-beta.0",
44
+ "@skyux/i18n": "9.0.0-beta.0",
45
+ "@skyux/indicators": "9.0.0-beta.0",
46
+ "@skyux/theme": "9.0.0-beta.0"
47
47
  },
48
48
  "dependencies": {
49
49
  "tslib": "^2.6.2"