@skyux/core 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.
package/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export { SkyDockService } from './lib/modules/dock/dock.service';
24
24
  export { SkyDynamicComponentLocation } from './lib/modules/dynamic-component/dynamic-component-location';
25
25
  export { SkyDynamicComponentOptions } from './lib/modules/dynamic-component/dynamic-component-options';
26
26
  export { SkyDynamicComponentModule } from './lib/modules/dynamic-component/dynamic-component.module';
27
- export { SkyDynamicComponentService } from './lib/modules/dynamic-component/dynamic-component.service';
27
+ export { SkyDynamicComponentLegacyService, SkyDynamicComponentService, } from './lib/modules/dynamic-component/dynamic-component.service';
28
28
  export { SkyAppFormat } from './lib/modules/format/app-format';
29
29
  export { SkyIdModule } from './lib/modules/id/id.module';
30
30
  export { SkyIdService } from './lib/modules/id/id.service';
@@ -51,7 +51,7 @@ export { SkyOverlayConfig } from './lib/modules/overlay/overlay-config';
51
51
  export { SkyOverlayInstance } from './lib/modules/overlay/overlay-instance';
52
52
  export { SkyOverlayPosition } from './lib/modules/overlay/overlay-position';
53
53
  export { SkyOverlayModule } from './lib/modules/overlay/overlay.module';
54
- export { SkyOverlayService } from './lib/modules/overlay/overlay.service';
54
+ export { SkyOverlayLegacyService, SkyOverlayService, } from './lib/modules/overlay/overlay.service';
55
55
  export { SkyPercentPipeModule } from './lib/modules/percent-pipe/percent-pipe.module';
56
56
  export { SkyPercentPipe } from './lib/modules/percent-pipe/percent.pipe';
57
57
  export { SkyResizeObserverService } from './lib/modules/resize-observer/resize-observer.service';
@@ -1,9 +1,8 @@
1
- import { ElementRef, RendererFactory2 } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { SkyAffixer } from './affixer';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SkyAffixService {
5
5
  #private;
6
- constructor(rendererFactory: RendererFactory2);
7
6
  /**
8
7
  * Creates an instance of [[SkyAffixer]].
9
8
  * @param affixed The element to be affixed.
@@ -1,4 +1,5 @@
1
- import { Renderer2 } from '@angular/core';
1
+ import { ViewportRuler } from '@angular/cdk/overlay';
2
+ import { NgZone, Renderer2 } from '@angular/core';
2
3
  import { Observable } from 'rxjs';
3
4
  import { SkyAffixConfig } from './affix-config';
4
5
  import { SkyAffixOffsetChange } from './affix-offset-change';
@@ -20,7 +21,7 @@ export declare class SkyAffixer {
20
21
  * placement could not be found.
21
22
  */
22
23
  get placementChange(): Observable<SkyAffixPlacementChange>;
23
- constructor(affixedElement: HTMLElement, renderer: Renderer2);
24
+ constructor(affixedElement: HTMLElement, renderer: Renderer2, viewportRuler: ViewportRuler, zone: NgZone);
24
25
  /**
25
26
  * Affixes an element to a base element.
26
27
  * @param baseElement The base element.
@@ -1,5 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, Injector, Type, ViewContainerRef } from '@angular/core';
2
- import { SkyDockDomAdapterService } from './dock-dom-adapter.service';
1
+ import { Type, ViewContainerRef } from '@angular/core';
3
2
  import { SkyDockInsertComponentConfig } from './dock-insert-component-config';
4
3
  import { SkyDockItemReference } from './dock-item-reference';
5
4
  import { SkyDockOptions } from './dock-options';
@@ -10,10 +9,9 @@ import * as i0 from "@angular/core";
10
9
  export declare class SkyDockComponent {
11
10
  #private;
12
11
  target: ViewContainerRef | undefined;
13
- constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, injector: Injector, domAdapter: SkyDockDomAdapterService);
14
12
  insertComponent<T>(component: Type<T>, config?: SkyDockInsertComponentConfig): SkyDockItemReference<T>;
15
13
  removeItem(item: SkyDockItemReference<any>): void;
16
14
  setOptions(options: SkyDockOptions | undefined): void;
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyDockComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDockComponent, "sky-dock", never, {}, {}, never, never, false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyDockComponent, "sky-dock", never, {}, {}, never, never, true, never>;
19
17
  }
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./dock.component";
3
- import * as i2 from "@angular/common";
2
+ /**
3
+ * @deprecated The `SkyDockModule` is no longer needed and can be removed from your application.
4
+ */
4
5
  export declare class SkyDockModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyDockModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDockModule, [typeof i1.SkyDockComponent], [typeof i2.CommonModule], never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDockModule, never, never, never>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyDockModule>;
8
9
  }
@@ -22,3 +22,12 @@ export declare class SkyDynamicComponentService {
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyDynamicComponentService, never>;
23
23
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyDynamicComponentService>;
24
24
  }
25
+ /**
26
+ * Angular service for creating and rendering a dynamic component.
27
+ * @internal
28
+ * @deprecated Use `SkyDynamicComponentService` to create a standalone component instead.
29
+ */
30
+ export declare class SkyDynamicComponentLegacyService extends SkyDynamicComponentService {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyDynamicComponentLegacyService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyDynamicComponentLegacyService>;
33
+ }
@@ -1,3 +1,4 @@
1
+ import { EnvironmentInjector } from '@angular/core';
1
2
  import { SkyOverlayPosition } from './overlay-position';
2
3
  export interface SkyOverlayConfig {
3
4
  /**
@@ -16,6 +17,10 @@ export interface SkyOverlayConfig {
16
17
  * Whether window scrolling is enabled when the overlay is opened.
17
18
  */
18
19
  enableScroll?: boolean;
20
+ /**
21
+ * The environment injector for the overlay component.
22
+ */
23
+ environmentInjector?: EnvironmentInjector;
19
24
  /**
20
25
  * Whether the overlay's backdrop is visible.
21
26
  */
@@ -1,9 +1,5 @@
1
- import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, Injector, OnDestroy, OnInit, StaticProvider, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
- import { Router } from '@angular/router';
1
+ import { ComponentRef, ElementRef, EmbeddedViewRef, OnDestroy, OnInit, StaticProvider, TemplateRef, Type, ViewContainerRef } from '@angular/core';
3
2
  import { Observable, ReplaySubject } from 'rxjs';
4
- import { SkyCoreAdapterService } from '../adapter-service/adapter.service';
5
- import { SkyIdService } from '../id/id.service';
6
- import { SkyOverlayContext } from './overlay-context';
7
3
  import { SkyOverlayPosition } from './overlay-position';
8
4
  import * as i0 from "@angular/core";
9
5
  /**
@@ -23,12 +19,12 @@ export declare class SkyOverlayComponent implements OnInit, OnDestroy {
23
19
  overlayContentRef: ElementRef | undefined;
24
20
  overlayRef: ElementRef | undefined;
25
21
  targetRef: ViewContainerRef | undefined;
26
- constructor(changeDetector: ChangeDetectorRef, injector: Injector, coreAdapter: SkyCoreAdapterService, context: SkyOverlayContext, idSvc: SkyIdService, router?: Router);
22
+ constructor();
27
23
  ngOnInit(): void;
28
24
  ngOnDestroy(): void;
29
25
  attachComponent<C>(component: Type<C>, providers?: StaticProvider[]): ComponentRef<C>;
30
26
  attachTemplate<T>(templateRef: TemplateRef<T>, context: T): EmbeddedViewRef<T>;
31
27
  updateClipPath(clipPath: string | undefined): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayComponent, [null, null, null, null, null, { optional: true; }]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyOverlayComponent, "sky-overlay", never, {}, {}, never, never, false, never>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyOverlayComponent, "sky-overlay", never, {}, {}, never, never, true, never>;
34
30
  }
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./overlay.component";
3
- import * as i2 from "@angular/common";
2
+ /**
3
+ * @deprecated The `SkyOverlayModule` is no longer needed and can be removed from your application.
4
+ */
4
5
  export declare class SkyOverlayModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyOverlayModule, [typeof i1.SkyOverlayComponent], [typeof i2.CommonModule], never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyOverlayModule, never, never, never>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyOverlayModule>;
8
9
  }
@@ -1,3 +1,4 @@
1
+ import { SkyDynamicComponentLegacyService, SkyDynamicComponentService } from '../dynamic-component/dynamic-component.service';
1
2
  import { SkyOverlayConfig } from './overlay-config';
2
3
  import { SkyOverlayInstance } from './overlay-instance';
3
4
  import * as i0 from "@angular/core";
@@ -8,6 +9,7 @@ import * as i0 from "@angular/core";
8
9
  export declare class SkyOverlayService {
9
10
  #private;
10
11
  private static overlays;
12
+ constructor(dynamicComponentSvc: SkyDynamicComponentService);
11
13
  /**
12
14
  * Creates an empty overlay. Use the returned `SkyOverlayInstance` to append content.
13
15
  * @param config Configuration for the overlay.
@@ -25,3 +27,13 @@ export declare class SkyOverlayService {
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayService, never>;
26
28
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyOverlayService>;
27
29
  }
30
+ /**
31
+ * This service is used to create new overlays.
32
+ * @internal
33
+ * @deprecated Use `SkyOverlayService` to open a standalone component instead.
34
+ */
35
+ export declare class SkyOverlayLegacyService extends SkyOverlayService {
36
+ constructor(dynamicComponentSvc: SkyDynamicComponentLegacyService);
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyOverlayLegacyService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<SkyOverlayLegacyService>;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/core",
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",
@@ -41,7 +41,7 @@
41
41
  "@angular/core": "^16.2.1",
42
42
  "@angular/platform-browser": "^16.2.1",
43
43
  "@angular/router": "^16.2.1",
44
- "@skyux/i18n": "9.0.0-alpha.8"
44
+ "@skyux/i18n": "9.0.0-beta.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "tslib": "^2.6.2"