@skyux/core 9.0.0-alpha.0 → 9.0.0-alpha.10

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 (71) hide show
  1. package/documentation.json +7981 -3515
  2. package/esm2022/index.mjs +47 -71
  3. package/esm2022/lib/modules/adapter-service/adapter.module.mjs +4 -4
  4. package/esm2022/lib/modules/adapter-service/adapter.service.mjs +3 -3
  5. package/esm2022/lib/modules/affix/affix.directive.mjs +3 -3
  6. package/esm2022/lib/modules/affix/affix.module.mjs +4 -4
  7. package/esm2022/lib/modules/affix/affix.service.mjs +3 -3
  8. package/esm2022/lib/modules/dock/dock-dom-adapter.service.mjs +3 -3
  9. package/esm2022/lib/modules/dock/dock.component.mjs +17 -24
  10. package/esm2022/lib/modules/dock/dock.module.mjs +9 -13
  11. package/esm2022/lib/modules/dock/dock.service.mjs +5 -8
  12. package/esm2022/lib/modules/dynamic-component/dynamic-component-options.mjs +1 -1
  13. package/esm2022/lib/modules/dynamic-component/dynamic-component.module.mjs +4 -4
  14. package/esm2022/lib/modules/dynamic-component/dynamic-component.service.mjs +27 -22
  15. package/esm2022/lib/modules/format/app-format.mjs +3 -3
  16. package/esm2022/lib/modules/id/id.directive.mjs +3 -3
  17. package/esm2022/lib/modules/id/id.module.mjs +4 -4
  18. package/esm2022/lib/modules/id/id.service.mjs +3 -3
  19. package/esm2022/lib/modules/layout-host/layout-host.service.mjs +3 -3
  20. package/esm2022/lib/modules/live-announcer/live-announcer.service.mjs +7 -5
  21. package/esm2022/lib/modules/log/log.module.mjs +4 -4
  22. package/esm2022/lib/modules/log/log.service.mjs +3 -3
  23. package/esm2022/lib/modules/media-query/media-query.module.mjs +4 -4
  24. package/esm2022/lib/modules/media-query/media-query.service.mjs +3 -3
  25. package/esm2022/lib/modules/mutation/mutation-observer-service.mjs +3 -3
  26. package/esm2022/lib/modules/numeric/numeric.module.mjs +6 -7
  27. package/esm2022/lib/modules/numeric/numeric.pipe.mjs +3 -3
  28. package/esm2022/lib/modules/numeric/numeric.service.mjs +5 -5
  29. package/esm2022/lib/modules/overlay/overlay-adapter.service.mjs +3 -3
  30. package/esm2022/lib/modules/overlay/overlay-config.mjs +1 -1
  31. package/esm2022/lib/modules/overlay/overlay.component.mjs +40 -41
  32. package/esm2022/lib/modules/overlay/overlay.module.mjs +9 -11
  33. package/esm2022/lib/modules/overlay/overlay.service.mjs +36 -28
  34. package/esm2022/lib/modules/percent-pipe/percent-pipe.module.mjs +4 -4
  35. package/esm2022/lib/modules/percent-pipe/percent.pipe.mjs +3 -3
  36. package/esm2022/lib/modules/resize-observer/resize-observer-media-query.service.mjs +39 -18
  37. package/esm2022/lib/modules/resize-observer/resize-observer.service.mjs +5 -5
  38. package/esm2022/lib/modules/scrollable-host/scrollable-host.service.mjs +3 -3
  39. package/esm2022/lib/modules/shared/sky-core-resources.module.mjs +8 -6
  40. package/esm2022/lib/modules/title/title.service.mjs +3 -3
  41. package/esm2022/lib/modules/trim/trim.directive.mjs +3 -3
  42. package/esm2022/lib/modules/trim/trim.module.mjs +4 -4
  43. package/esm2022/lib/modules/ui-config/ui-config.service.mjs +3 -3
  44. package/esm2022/lib/modules/viewkeeper/viewkeeper-host-options.mjs +3 -3
  45. package/esm2022/lib/modules/viewkeeper/viewkeeper.directive.mjs +3 -3
  46. package/esm2022/lib/modules/viewkeeper/viewkeeper.module.mjs +4 -4
  47. package/esm2022/lib/modules/viewkeeper/viewkeeper.service.mjs +3 -3
  48. package/esm2022/lib/modules/window/window-ref.mjs +3 -3
  49. package/esm2022/testing/core-testing.module.mjs +4 -4
  50. package/esm2022/testing/mock-media-query.service.mjs +3 -3
  51. package/esm2022/testing/mock-ui-config.service.mjs +3 -3
  52. package/esm2022/testing/public-api.mjs +7 -8
  53. package/esm2022/testing/resize-observer-mock.mjs +35 -0
  54. package/fesm2022/skyux-core-testing.mjs +46 -11
  55. package/fesm2022/skyux-core-testing.mjs.map +1 -1
  56. package/fesm2022/skyux-core.mjs +479 -455
  57. package/fesm2022/skyux-core.mjs.map +1 -1
  58. package/index.d.ts +70 -70
  59. package/lib/modules/dock/dock.component.d.ts +2 -4
  60. package/lib/modules/dock/dock.module.d.ts +4 -3
  61. package/lib/modules/dynamic-component/dynamic-component-options.d.ts +3 -3
  62. package/lib/modules/dynamic-component/dynamic-component.service.d.ts +11 -2
  63. package/lib/modules/numeric/numeric.module.d.ts +2 -3
  64. package/lib/modules/overlay/overlay-config.d.ts +5 -0
  65. package/lib/modules/overlay/overlay.component.d.ts +4 -8
  66. package/lib/modules/overlay/overlay.module.d.ts +4 -3
  67. package/lib/modules/overlay/overlay.service.d.ts +13 -4
  68. package/lib/modules/resize-observer/resize-observer-media-query.service.d.ts +4 -2
  69. package/package.json +8 -8
  70. package/testing/public-api.d.ts +8 -7
  71. package/testing/resize-observer-mock.d.ts +6 -0
@@ -1,25 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, Injectable, EventEmitter, Directive, Input, Output, Injector, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, createComponent, inject, InjectionToken, Optional, Inject, Pipe, ElementRef, HostBinding } from '@angular/core';
3
- import * as i5 from '@angular/common';
2
+ import { NgModule, Injectable, EventEmitter, Directive, Input, Output, inject, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ElementRef, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, InjectionToken, Optional, Inject, Pipe, HostBinding, ApplicationRef } from '@angular/core';
3
+ import * as i1$1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT } from '@angular/common';
5
5
  import { Subject, fromEvent, ReplaySubject, BehaviorSubject, Observable, of, concat, animationFrameScheduler } from 'rxjs';
6
6
  import { takeUntil, debounceTime, finalize, switchMap, map } from 'rxjs/operators';
7
7
  import * as i1 from '@skyux/i18n';
8
- import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
9
- import * as i4 from '@angular/router';
10
- import { NavigationStart } from '@angular/router';
11
- import * as i1$1 from '@angular/platform-browser';
8
+ import { SkyLibResourcesService, getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
9
+ import { Router, NavigationStart } from '@angular/router';
10
+ import * as i1$2 from '@angular/platform-browser';
12
11
 
13
12
  /**
14
13
  * @deprecated The `SkyCoreAdapterService` no longer needs the `SkyCoreAdapterModule`.
15
14
  * The `SkyCoreAdapterModule` can be removed from your project.
16
15
  */
17
16
  class SkyCoreAdapterModule {
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
19
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterModule }); }
20
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterModule }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
18
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterModule }); }
19
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterModule }); }
21
20
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
23
22
  type: NgModule,
24
23
  args: [{}]
25
24
  }] });
@@ -256,10 +255,10 @@ class SkyCoreAdapterService {
256
255
  element.getClientRects().length);
257
256
  return hasBounds;
258
257
  }
259
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
260
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' }); }
258
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
259
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' }); }
261
260
  }
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
261
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
263
262
  type: Injectable,
264
263
  args: [{
265
264
  providedIn: 'root',
@@ -779,10 +778,10 @@ class SkyAffixService {
779
778
  createAffixer(affixed) {
780
779
  return new SkyAffixer(affixed.nativeElement, this.#renderer);
781
780
  }
782
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
783
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixService, providedIn: 'root' }); }
781
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
782
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixService, providedIn: 'root' }); }
784
783
  }
785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixService, decorators: [{
784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixService, decorators: [{
786
785
  type: Injectable,
787
786
  args: [{
788
787
  providedIn: 'root',
@@ -866,10 +865,10 @@ class SkyAffixDirective {
866
865
  });
867
866
  }
868
867
  }
869
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive }); }
870
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixPosition: "affixPosition", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 }); }
868
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive }); }
869
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixPosition: "affixPosition", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 }); }
871
870
  }
872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixDirective, decorators: [{
871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixDirective, decorators: [{
873
872
  type: Directive,
874
873
  args: [{
875
874
  selector: '[skyAffixTo]',
@@ -901,11 +900,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
901
900
  }] } });
902
901
 
903
902
  class SkyAffixModule {
904
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
905
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] }); }
906
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixModule, imports: [CommonModule] }); }
903
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
904
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] }); }
905
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixModule, imports: [CommonModule] }); }
907
906
  }
908
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAffixModule, decorators: [{
907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAffixModule, decorators: [{
909
908
  type: NgModule,
910
909
  args: [{
911
910
  imports: [CommonModule],
@@ -988,6 +987,181 @@ var SkyDockLocation;
988
987
  SkyDockLocation[SkyDockLocation["ElementBottom"] = 2] = "ElementBottom";
989
988
  })(SkyDockLocation || (SkyDockLocation = {}));
990
989
 
990
+ /**
991
+ * @deprecated The `SkyDockModule` is no longer needed and can be removed from your application.
992
+ */
993
+ class SkyDockModule {
994
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
995
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyDockModule }); }
996
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockModule }); }
997
+ }
998
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockModule, decorators: [{
999
+ type: NgModule,
1000
+ args: [{}]
1001
+ }] });
1002
+
1003
+ /**
1004
+ * The location on the page where the dynamic component should be rendered.
1005
+ */
1006
+ var SkyDynamicComponentLocation;
1007
+ (function (SkyDynamicComponentLocation) {
1008
+ /**
1009
+ * Renders the dynamic component before a given element.
1010
+ */
1011
+ SkyDynamicComponentLocation[SkyDynamicComponentLocation["BeforeElement"] = 0] = "BeforeElement";
1012
+ /**
1013
+ * Renders the dynamic component as the last element inside the BODY element.
1014
+ */
1015
+ SkyDynamicComponentLocation[SkyDynamicComponentLocation["BodyBottom"] = 1] = "BodyBottom";
1016
+ /**
1017
+ * Renders the dynamic component as the first element inside the BODY element.
1018
+ */
1019
+ SkyDynamicComponentLocation[SkyDynamicComponentLocation["BodyTop"] = 2] = "BodyTop";
1020
+ /**
1021
+ * Renders the dynamic component as the last element inside a given element.
1022
+ */
1023
+ SkyDynamicComponentLocation[SkyDynamicComponentLocation["ElementBottom"] = 3] = "ElementBottom";
1024
+ /**
1025
+ * Renders the dynamic component as the first element inside a given element.
1026
+ */
1027
+ SkyDynamicComponentLocation[SkyDynamicComponentLocation["ElementTop"] = 4] = "ElementTop";
1028
+ })(SkyDynamicComponentLocation || (SkyDynamicComponentLocation = {}));
1029
+
1030
+ /**
1031
+ * @internal
1032
+ */
1033
+ function getWindow() {
1034
+ return window;
1035
+ }
1036
+ /**
1037
+ * The application window reference service references the global window variable.
1038
+ * After users inject SkyAppWindowRef into a component, they can use the service to interact with
1039
+ * window properties and event handlers by referencing its nativeWindow property.
1040
+ */
1041
+ class SkyAppWindowRef {
1042
+ /**
1043
+ * The global `window` variable.
1044
+ */
1045
+ get nativeWindow() {
1046
+ return getWindow();
1047
+ }
1048
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1049
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' }); }
1050
+ }
1051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppWindowRef, decorators: [{
1052
+ type: Injectable,
1053
+ args: [{
1054
+ providedIn: 'root',
1055
+ }]
1056
+ }] });
1057
+
1058
+ /**
1059
+ * Angular service for creating and rendering a dynamic component.
1060
+ * @internal
1061
+ */
1062
+ class SkyDynamicComponentService {
1063
+ #applicationRef;
1064
+ #renderer;
1065
+ #windowRef;
1066
+ #environmentInjector = inject(EnvironmentInjector);
1067
+ constructor(applicationRef, windowRef, rendererFactory) {
1068
+ this.#applicationRef = applicationRef;
1069
+ this.#windowRef = windowRef;
1070
+ // Based on suggestions from https://github.com/angular/angular/issues/17824
1071
+ // for accessing an instance of Renderer2 in a service since Renderer2 can't
1072
+ // be injected into a service. Passing undefined for both parameters results
1073
+ // in the default renderer which is what we want here.
1074
+ this.#renderer = rendererFactory.createRenderer(undefined, null);
1075
+ }
1076
+ /**
1077
+ * Creates an instance of the specified component and adds it to the specified location
1078
+ * on the page.
1079
+ */
1080
+ createComponent(componentType, options) {
1081
+ options ||= {
1082
+ location: SkyDynamicComponentLocation.BodyBottom,
1083
+ };
1084
+ const environmentInjector = createEnvironmentInjector(options.providers ?? [], options.environmentInjector ?? this.#environmentInjector);
1085
+ let componentRef;
1086
+ if (options.viewContainerRef) {
1087
+ componentRef = options.viewContainerRef.createComponent(componentType, {
1088
+ environmentInjector,
1089
+ });
1090
+ }
1091
+ else {
1092
+ componentRef = createComponent(componentType, {
1093
+ environmentInjector,
1094
+ });
1095
+ this.#applicationRef.attachView(componentRef.hostView);
1096
+ const el = this.#getRootNode(componentRef);
1097
+ const bodyEl = this.#windowRef.nativeWindow.document.body;
1098
+ switch (options.location) {
1099
+ case SkyDynamicComponentLocation.BeforeElement:
1100
+ if (!options.referenceEl) {
1101
+ throw new Error('[SkyDynamicComponentService] Could not create a component at location `SkyDynamicComponentLocation.BeforeElement` because a reference element was not provided.');
1102
+ }
1103
+ this.#renderer.insertBefore(options.referenceEl.parentElement, el, options.referenceEl);
1104
+ break;
1105
+ case SkyDynamicComponentLocation.ElementTop:
1106
+ if (!options.referenceEl) {
1107
+ throw new Error('[SkyDynamicComponentService] Could not create a component at location `SkyDynamicComponentLocation.ElementTop` because a reference element was not provided.');
1108
+ }
1109
+ this.#renderer.insertBefore(options.referenceEl, el, options.referenceEl.firstChild);
1110
+ break;
1111
+ case SkyDynamicComponentLocation.ElementBottom:
1112
+ this.#renderer.appendChild(options.referenceEl, el);
1113
+ break;
1114
+ case SkyDynamicComponentLocation.BodyTop:
1115
+ this.#renderer.insertBefore(bodyEl, el, bodyEl.firstChild);
1116
+ break;
1117
+ default:
1118
+ this.#renderer.appendChild(bodyEl, el);
1119
+ break;
1120
+ }
1121
+ }
1122
+ return componentRef;
1123
+ }
1124
+ /**
1125
+ * Removes a component ref from the page
1126
+ * @param componentRef Component ref for the component being removed
1127
+ */
1128
+ removeComponent(componentRef) {
1129
+ if (!componentRef) {
1130
+ return;
1131
+ }
1132
+ this.#applicationRef.detachView(componentRef.hostView);
1133
+ componentRef.destroy();
1134
+ }
1135
+ #getRootNode(componentRef) {
1136
+ // Technique for retrieving the component's root node taken from here:
1137
+ // https://malcoded.com/posts/angular-dynamic-components
1138
+ return componentRef.hostView.rootNodes[0];
1139
+ }
1140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ApplicationRef }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
1141
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'root' }); }
1142
+ }
1143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
1144
+ type: Injectable,
1145
+ args: [{
1146
+ providedIn: 'root',
1147
+ }]
1148
+ }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: SkyAppWindowRef }, { type: i0.RendererFactory2 }]; } });
1149
+ /**
1150
+ * Angular service for creating and rendering a dynamic component.
1151
+ * @internal
1152
+ * @deprecated Use `SkyDynamicComponentService` to create a standalone component instead.
1153
+ */
1154
+ class SkyDynamicComponentLegacyService extends SkyDynamicComponentService {
1155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1156
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, providedIn: 'any' }); }
1157
+ }
1158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentLegacyService, decorators: [{
1159
+ type: Injectable,
1160
+ args: [{
1161
+ providedIn: 'any',
1162
+ }]
1163
+ }] });
1164
+
991
1165
  /**
992
1166
  * @internal
993
1167
  */
@@ -995,10 +1169,10 @@ class SkyMutationObserverService {
995
1169
  create(callback) {
996
1170
  return new MutationObserver(callback);
997
1171
  }
998
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
999
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMutationObserverService, providedIn: 'root' }); }
1172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1173
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMutationObserverService, providedIn: 'root' }); }
1000
1174
  }
1001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMutationObserverService, decorators: [{
1175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMutationObserverService, decorators: [{
1002
1176
  type: Injectable,
1003
1177
  args: [{
1004
1178
  providedIn: 'root',
@@ -1074,10 +1248,10 @@ class SkyDockDomAdapterService {
1074
1248
  #destroyStyleElement() {
1075
1249
  this.#renderer.removeChild(document.head, this.#styleElement);
1076
1250
  }
1077
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: SkyMutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
1078
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockDomAdapterService }); }
1251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: SkyMutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
1252
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockDomAdapterService }); }
1079
1253
  }
1080
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
1254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
1081
1255
  type: Injectable
1082
1256
  }], ctorParameters: function () { return [{ type: SkyMutationObserverService }, { type: i0.RendererFactory2 }]; } });
1083
1257
 
@@ -1098,29 +1272,22 @@ function sortByStackOrder(a, b) {
1098
1272
  * @internal
1099
1273
  */
1100
1274
  class SkyDockComponent {
1101
- #changeDetector;
1102
- #domAdapter;
1103
- #elementRef;
1104
- #injector;
1105
1275
  #itemRefs = [];
1106
1276
  #options;
1107
- constructor(changeDetector, elementRef, injector, domAdapter) {
1108
- this.#changeDetector = changeDetector;
1109
- this.#elementRef = elementRef;
1110
- this.#injector = injector;
1111
- this.#domAdapter = domAdapter;
1112
- }
1277
+ #changeDetector = inject(ChangeDetectorRef);
1278
+ #domAdapter = inject(SkyDockDomAdapterService);
1279
+ #dynamicComponentSvc = inject(SkyDynamicComponentService);
1280
+ #elementRef = inject(ElementRef);
1281
+ #environmentInjector = inject(EnvironmentInjector);
1113
1282
  insertComponent(component, config = {}) {
1114
1283
  /*istanbul ignore if: untestable*/
1115
1284
  if (!this.target) {
1116
1285
  throw Error('[SkyDockComponent] Could not insert the component because the target element could not be found.');
1117
1286
  }
1118
- const injector = Injector.create({
1119
- providers: config.providers || [],
1120
- parent: this.#injector,
1121
- });
1122
- const componentRef = this.target.createComponent(component, {
1123
- injector,
1287
+ const componentRef = this.#dynamicComponentSvc.createComponent(component, {
1288
+ environmentInjector: this.#environmentInjector,
1289
+ providers: config.providers,
1290
+ viewContainerRef: this.target,
1124
1291
  });
1125
1292
  const stackOrder = config.stackOrder !== null && config.stackOrder !== undefined
1126
1293
  ? config.stackOrder
@@ -1182,13 +1349,13 @@ class SkyDockComponent {
1182
1349
  }
1183
1350
  return this.#itemRefs[0].stackOrder + 1;
1184
1351
  }
1185
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Injector }, { token: SkyDockDomAdapterService }], target: i0.ɵɵFactoryTarget.Component }); }
1186
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyDockComponent, selector: "sky-dock", providers: [SkyDockDomAdapterService], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1352
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1353
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkyDockComponent, isStandalone: true, selector: "sky-dock", providers: [SkyDockDomAdapterService], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1187
1354
  }
1188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockComponent, decorators: [{
1355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockComponent, decorators: [{
1189
1356
  type: Component,
1190
- args: [{ selector: 'sky-dock', providers: [SkyDockDomAdapterService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"] }]
1191
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
1357
+ args: [{ standalone: true, selector: 'sky-dock', providers: [SkyDockDomAdapterService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"] }]
1358
+ }], propDecorators: { target: [{
1192
1359
  type: ViewChild,
1193
1360
  args: ['target', {
1194
1361
  read: ViewContainerRef,
@@ -1196,177 +1363,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
1196
1363
  }]
1197
1364
  }] } });
1198
1365
 
1199
- class SkyDockModule {
1200
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1201
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyDockModule, declarations: [SkyDockComponent], imports: [CommonModule] }); }
1202
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockModule, providers: [SkyMutationObserverService], imports: [CommonModule] }); }
1203
- }
1204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockModule, decorators: [{
1205
- type: NgModule,
1206
- args: [{
1207
- imports: [CommonModule],
1208
- declarations: [SkyDockComponent],
1209
- providers: [SkyMutationObserverService],
1210
- }]
1211
- }] });
1212
-
1213
- /**
1214
- * The location on the page where the dynamic component should be rendered.
1215
- */
1216
- var SkyDynamicComponentLocation;
1217
- (function (SkyDynamicComponentLocation) {
1218
- /**
1219
- * Renders the dynamic component before a given element.
1220
- */
1221
- SkyDynamicComponentLocation[SkyDynamicComponentLocation["BeforeElement"] = 0] = "BeforeElement";
1222
- /**
1223
- * Renders the dynamic component as the last element inside the BODY element.
1224
- */
1225
- SkyDynamicComponentLocation[SkyDynamicComponentLocation["BodyBottom"] = 1] = "BodyBottom";
1226
- /**
1227
- * Renders the dynamic component as the first element inside the BODY element.
1228
- */
1229
- SkyDynamicComponentLocation[SkyDynamicComponentLocation["BodyTop"] = 2] = "BodyTop";
1230
- /**
1231
- * Renders the dynamic component as the last element inside a given element.
1232
- */
1233
- SkyDynamicComponentLocation[SkyDynamicComponentLocation["ElementBottom"] = 3] = "ElementBottom";
1234
- /**
1235
- * Renders the dynamic component as the first element inside a given element.
1236
- */
1237
- SkyDynamicComponentLocation[SkyDynamicComponentLocation["ElementTop"] = 4] = "ElementTop";
1238
- })(SkyDynamicComponentLocation || (SkyDynamicComponentLocation = {}));
1239
-
1240
- /**
1241
- * @internal
1242
- */
1243
- function getWindow() {
1244
- return window;
1245
- }
1246
- /**
1247
- * The application window reference service references the global window variable.
1248
- * After users inject SkyAppWindowRef into a component, they can use the service to interact with
1249
- * window properties and event handlers by referencing its nativeWindow property.
1250
- */
1251
- class SkyAppWindowRef {
1252
- /**
1253
- * The global `window` variable.
1254
- */
1255
- get nativeWindow() {
1256
- return getWindow();
1257
- }
1258
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1259
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' }); }
1260
- }
1261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppWindowRef, decorators: [{
1262
- type: Injectable,
1263
- args: [{
1264
- providedIn: 'root',
1265
- }]
1266
- }] });
1267
-
1268
- /**
1269
- * Angular service for creating and rendering a dynamic component.
1270
- * @internal
1271
- */
1272
- class SkyDynamicComponentService {
1273
- #applicationRef;
1274
- #environmentInjector;
1275
- #injector;
1276
- #renderer;
1277
- #windowRef;
1278
- constructor(applicationRef, injector, windowRef, rendererFactory, environmentInjector) {
1279
- this.#applicationRef = applicationRef;
1280
- this.#injector = injector;
1281
- this.#windowRef = windowRef;
1282
- this.#environmentInjector = environmentInjector;
1283
- // Based on suggestions from https://github.com/angular/angular/issues/17824
1284
- // for accessing an instance of Renderer2 in a service since Renderer2 can't
1285
- // be injected into a service. Passing undefined for both parameters results
1286
- // in the default renderer which is what we want here.
1287
- this.#renderer = rendererFactory.createRenderer(undefined, null);
1288
- }
1289
- /**
1290
- * Creates an instance of the specified component and adds it to the specified location
1291
- * on the page.
1292
- */
1293
- createComponent(componentType, options) {
1294
- options = options || {
1295
- location: SkyDynamicComponentLocation.BodyBottom,
1296
- };
1297
- const injector = Injector.create({
1298
- providers: options.providers || [],
1299
- parent: options.parentInjector || this.#injector,
1300
- });
1301
- let componentRef;
1302
- if (options.viewContainerRef) {
1303
- componentRef = options.viewContainerRef.createComponent(componentType, {
1304
- injector,
1305
- });
1306
- }
1307
- else {
1308
- componentRef = createComponent(componentType, {
1309
- environmentInjector: this.#environmentInjector,
1310
- elementInjector: injector,
1311
- });
1312
- this.#applicationRef.attachView(componentRef.hostView);
1313
- const el = this.#getRootNode(componentRef);
1314
- const bodyEl = this.#windowRef.nativeWindow.document.body;
1315
- switch (options.location) {
1316
- case SkyDynamicComponentLocation.BeforeElement:
1317
- if (!options.referenceEl) {
1318
- throw new Error('[SkyDynamicComponentService] Could not create a component at location `SkyDynamicComponentLocation.BeforeElement` because a reference element was not provided.');
1319
- }
1320
- this.#renderer.insertBefore(options.referenceEl.parentElement, el, options.referenceEl);
1321
- break;
1322
- case SkyDynamicComponentLocation.ElementTop:
1323
- if (!options.referenceEl) {
1324
- throw new Error('[SkyDynamicComponentService] Could not create a component at location `SkyDynamicComponentLocation.ElementTop` because a reference element was not provided.');
1325
- }
1326
- this.#renderer.insertBefore(options.referenceEl, el, options.referenceEl.firstChild);
1327
- break;
1328
- case SkyDynamicComponentLocation.ElementBottom:
1329
- this.#renderer.appendChild(options.referenceEl, el);
1330
- break;
1331
- case SkyDynamicComponentLocation.BodyTop:
1332
- this.#renderer.insertBefore(bodyEl, el, bodyEl.firstChild);
1333
- break;
1334
- default:
1335
- this.#renderer.appendChild(bodyEl, el);
1336
- break;
1337
- }
1338
- }
1339
- return componentRef;
1340
- }
1341
- /**
1342
- * Removes a component ref from the page
1343
- * @param componentRef Component ref for the component being removed
1344
- */
1345
- removeComponent(componentRef) {
1346
- if (!componentRef) {
1347
- return;
1348
- }
1349
- this.#applicationRef.detachView(componentRef.hostView);
1350
- componentRef.destroy();
1351
- }
1352
- #getRootNode(componentRef) {
1353
- // Technique for retrieving the component's root node taken from here:
1354
- // https://malcoded.com/posts/angular-dynamic-components
1355
- return componentRef.hostView.rootNodes[0];
1356
- }
1357
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
1358
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'any' }); }
1359
- }
1360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
1361
- type: Injectable,
1362
- args: [{
1363
- // Must be 'any' so that the component is created in the context of its module's injector.
1364
- // If set to 'root', the component's dependency injections would only be derived from the root
1365
- // injector and may lose context if the component is created within a lazy-loaded module.
1366
- providedIn: 'any',
1367
- }]
1368
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.Injector }, { type: SkyAppWindowRef }, { type: i0.RendererFactory2 }, { type: i0.EnvironmentInjector }]; } });
1369
-
1370
1366
  /**
1371
1367
  * This service docks components to specific areas on the page.
1372
1368
  */
@@ -1442,16 +1438,13 @@ class SkyDockService {
1442
1438
  this.#dynamicComponentSvc.removeComponent(SkyDockService.dockRef);
1443
1439
  SkyDockService.dockRef = undefined;
1444
1440
  }
1445
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1446
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockService, providedIn: 'any' }); }
1441
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1442
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockService, providedIn: 'root' }); }
1447
1443
  }
1448
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDockService, decorators: [{
1444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDockService, decorators: [{
1449
1445
  type: Injectable,
1450
1446
  args: [{
1451
- // Must be 'any' so that the dock component is created in the context of its module's injector.
1452
- // If set to 'root', the component's dependency injections would only be derived from the root
1453
- // injector and may loose context if the dock was opened from within a lazy-loaded module.
1454
- providedIn: 'any',
1447
+ providedIn: 'root',
1455
1448
  }]
1456
1449
  }], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
1457
1450
 
@@ -1461,11 +1454,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
1461
1454
  * The `SkyDynamicComponentModule` can be removed from your project.
1462
1455
  */
1463
1456
  class SkyDynamicComponentModule {
1464
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1465
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentModule }); }
1466
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentModule }); }
1457
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1458
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentModule }); }
1459
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentModule }); }
1467
1460
  }
1468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
1461
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
1469
1462
  type: NgModule,
1470
1463
  args: [{}]
1471
1464
  }] });
@@ -1476,10 +1469,10 @@ class SkyAppFormat {
1476
1469
  return args[parseInt(capture, 10)];
1477
1470
  });
1478
1471
  }
1479
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1480
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppFormat, providedIn: 'root' }); }
1472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1473
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppFormat, providedIn: 'root' }); }
1481
1474
  }
1482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppFormat, decorators: [{
1475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppFormat, decorators: [{
1483
1476
  type: Injectable,
1484
1477
  args: [{
1485
1478
  providedIn: 'root',
@@ -1498,10 +1491,10 @@ class SkyIdService {
1498
1491
  // elements with the same ID across sessions.
1499
1492
  return `sky-id-gen__${new Date().getTime()}__${idIndex}`;
1500
1493
  }
1501
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1502
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdService, providedIn: 'root' }); }
1494
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1495
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdService, providedIn: 'root' }); }
1503
1496
  }
1504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdService, decorators: [{
1497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdService, decorators: [{
1505
1498
  type: Injectable,
1506
1499
  args: [{
1507
1500
  providedIn: 'root',
@@ -1525,10 +1518,10 @@ class SkyIdDirective {
1525
1518
  renderer.setAttribute(elRef.nativeElement, 'id', id);
1526
1519
  this.#_id = id;
1527
1520
  }
1528
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SkyIdService }], target: i0.ɵɵFactoryTarget.Directive }); }
1529
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 }); }
1521
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SkyIdService }], target: i0.ɵɵFactoryTarget.Directive }); }
1522
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 }); }
1530
1523
  }
1531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdDirective, decorators: [{
1524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdDirective, decorators: [{
1532
1525
  type: Directive,
1533
1526
  args: [{
1534
1527
  selector: '[skyId]',
@@ -1537,11 +1530,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
1537
1530
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SkyIdService }]; } });
1538
1531
 
1539
1532
  class SkyIdModule {
1540
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1541
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] }); }
1542
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdModule }); }
1533
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1534
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] }); }
1535
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdModule }); }
1543
1536
  }
1544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyIdModule, decorators: [{
1537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyIdModule, decorators: [{
1545
1538
  type: NgModule,
1546
1539
  args: [{
1547
1540
  declarations: [SkyIdDirective],
@@ -1561,10 +1554,10 @@ class SkyLayoutHostService {
1561
1554
  setHostLayoutForChild(layout) {
1562
1555
  this.#hostLayoutForChild.next(layout);
1563
1556
  }
1564
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLayoutHostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1565
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLayoutHostService }); }
1557
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLayoutHostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1558
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLayoutHostService }); }
1566
1559
  }
1567
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLayoutHostService, decorators: [{
1560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLayoutHostService, decorators: [{
1568
1561
  type: Injectable
1569
1562
  }] });
1570
1563
 
@@ -1634,12 +1627,14 @@ class SkyLiveAnnouncerService {
1634
1627
  this.#document.body.appendChild(liveEl);
1635
1628
  return liveEl;
1636
1629
  }
1637
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLiveAnnouncerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1638
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLiveAnnouncerService, providedIn: 'root' }); }
1630
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLiveAnnouncerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1631
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLiveAnnouncerService, providedIn: 'root' }); }
1639
1632
  }
1640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLiveAnnouncerService, decorators: [{
1633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLiveAnnouncerService, decorators: [{
1641
1634
  type: Injectable,
1642
- args: [{ providedIn: 'root' }]
1635
+ args: [{
1636
+ providedIn: 'root',
1637
+ }]
1643
1638
  }], ctorParameters: function () { return []; } });
1644
1639
 
1645
1640
  /**
@@ -1647,11 +1642,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
1647
1642
  * The `SkyLogModule` can be removed from your project.
1648
1643
  */
1649
1644
  class SkyLogModule {
1650
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1651
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyLogModule }); }
1652
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogModule }); }
1645
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1646
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyLogModule }); }
1647
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogModule }); }
1653
1648
  }
1654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogModule, decorators: [{
1649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogModule, decorators: [{
1655
1650
  type: NgModule,
1656
1651
  args: [{}]
1657
1652
  }] });
@@ -1790,10 +1785,10 @@ class SkyLogService {
1790
1785
  }
1791
1786
  return key;
1792
1787
  }
1793
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogService, deps: [{ token: SkyAppFormat }, { token: SKY_LOG_LEVEL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1794
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogService, providedIn: 'root' }); }
1788
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogService, deps: [{ token: SkyAppFormat }, { token: SKY_LOG_LEVEL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1789
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogService, providedIn: 'root' }); }
1795
1790
  }
1796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyLogService, decorators: [{
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyLogService, decorators: [{
1797
1792
  type: Injectable,
1798
1793
  args: [{
1799
1794
  providedIn: 'root',
@@ -1810,11 +1805,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
1810
1805
  * The `SkyMediaQueryModule` can be removed from your project.
1811
1806
  */
1812
1807
  class SkyMediaQueryModule {
1813
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1814
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryModule }); }
1815
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryModule }); }
1808
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1809
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryModule }); }
1810
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryModule }); }
1816
1811
  }
1817
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
1812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
1818
1813
  type: NgModule,
1819
1814
  args: [{}]
1820
1815
  }] });
@@ -1928,16 +1923,17 @@ class SkyMediaQueryService {
1928
1923
  this.#currentBreakpoint = breakpoint;
1929
1924
  this.#currentSubject.next(breakpoint);
1930
1925
  }
1931
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
1932
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' }); }
1926
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
1927
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' }); }
1933
1928
  }
1934
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyMediaQueryService, decorators: [{
1929
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyMediaQueryService, decorators: [{
1935
1930
  type: Injectable,
1936
1931
  args: [{
1937
1932
  providedIn: 'root',
1938
1933
  }]
1939
1934
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
1940
1935
 
1936
+ /* istanbul ignore file */
1941
1937
  /**
1942
1938
  * NOTICE: DO NOT MODIFY THIS FILE!
1943
1939
  * The contents of this file were automatically generated by
@@ -1952,6 +1948,7 @@ const RESOURCES = {
1952
1948
  skyux_numeric_trillions_symbol: { message: 'T' },
1953
1949
  },
1954
1950
  };
1951
+ SkyLibResourcesService.addResources(RESOURCES);
1955
1952
  class SkyCoreResourcesProvider {
1956
1953
  getString(localeInfo, name) {
1957
1954
  return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
@@ -1961,9 +1958,9 @@ class SkyCoreResourcesProvider {
1961
1958
  * Import into any component library module that needs to use resource strings.
1962
1959
  */
1963
1960
  class SkyCoreResourcesModule {
1964
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1965
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] }); }
1966
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreResourcesModule, providers: [
1961
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1962
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] }); }
1963
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreResourcesModule, providers: [
1967
1964
  {
1968
1965
  provide: SKY_LIB_RESOURCES_PROVIDERS,
1969
1966
  useClass: SkyCoreResourcesProvider,
@@ -1971,7 +1968,7 @@ class SkyCoreResourcesModule {
1971
1968
  },
1972
1969
  ], imports: [SkyI18nModule] }); }
1973
1970
  }
1974
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
1971
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
1975
1972
  type: NgModule,
1976
1973
  args: [{
1977
1974
  exports: [SkyI18nModule],
@@ -2270,13 +2267,13 @@ class SkyNumericService {
2270
2267
  // TODO: Need to implement the async `getString` method in a breaking change.
2271
2268
  return this.#resourcesSvc.getStringForLocale({ locale: 'en_US' }, key);
2272
2269
  }
2273
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2274
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericService, providedIn: 'any' }); }
2270
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2271
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericService, providedIn: 'root' }); }
2275
2272
  }
2276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericService, decorators: [{
2273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericService, decorators: [{
2277
2274
  type: Injectable,
2278
2275
  args: [{
2279
- providedIn: 'any',
2276
+ providedIn: 'root',
2280
2277
  }]
2281
2278
  }], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }]; } });
2282
2279
 
@@ -2343,10 +2340,10 @@ class SkyNumericPipe {
2343
2340
  this.#formattedValue = this.#numericSvc.formatNumber(value, options);
2344
2341
  return this.#formattedValue;
2345
2342
  }
2346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
2347
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric", pure: false }); }
2343
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
2344
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric", pure: false }); }
2348
2345
  }
2349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericPipe, decorators: [{
2346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericPipe, decorators: [{
2350
2347
  type: Pipe,
2351
2348
  args: [{
2352
2349
  name: 'skyNumeric',
@@ -2355,16 +2352,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
2355
2352
  }], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0.ChangeDetectorRef }]; } });
2356
2353
 
2357
2354
  class SkyNumericModule {
2358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2359
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule], exports: [SkyNumericPipe] }); }
2360
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule] }); }
2355
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2356
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyCoreResourcesModule], exports: [SkyNumericPipe] }); }
2357
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [SkyCoreResourcesModule] }); }
2361
2358
  }
2362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyNumericModule, decorators: [{
2359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyNumericModule, decorators: [{
2363
2360
  type: NgModule,
2364
2361
  args: [{
2365
2362
  declarations: [SkyNumericPipe],
2366
2363
  providers: [SkyNumericPipe],
2367
- imports: [SkyI18nModule, SkyCoreResourcesModule],
2364
+ imports: [SkyCoreResourcesModule],
2368
2365
  exports: [SkyNumericPipe],
2369
2366
  }]
2370
2367
  }] });
@@ -2430,10 +2427,60 @@ class SkyOverlayInstance {
2430
2427
  }
2431
2428
  }
2432
2429
 
2430
+ /**
2431
+ * @deprecated The `SkyOverlayModule` is no longer needed and can be removed from your application.
2432
+ */
2433
+ class SkyOverlayModule {
2434
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2435
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayModule }); }
2436
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayModule }); }
2437
+ }
2438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayModule, decorators: [{
2439
+ type: NgModule,
2440
+ args: [{}]
2441
+ }] });
2442
+
2433
2443
  /**
2434
2444
  * @internal
2435
2445
  */
2436
- const SKY_STACKING_CONTEXT = new InjectionToken('SkyStackingContext');
2446
+ class SkyOverlayAdapterService {
2447
+ #renderer;
2448
+ #styleElement;
2449
+ constructor(rendererFactory) {
2450
+ this.#renderer = rendererFactory.createRenderer(undefined, null);
2451
+ }
2452
+ restrictBodyScroll() {
2453
+ // Create a style element to avoid overwriting any existing inline body styles.
2454
+ const styleElement = this.#renderer.createElement('style');
2455
+ const textNode = this.#renderer.createText('body { overflow: hidden }');
2456
+ // Apply a `data-` attribute to make unit testing easier.
2457
+ this.#renderer.setAttribute(styleElement, 'data-test-selector', 'sky-overlay-restrict-scroll-styles');
2458
+ this.#renderer.appendChild(styleElement, textNode);
2459
+ this.#renderer.appendChild(document.head, styleElement);
2460
+ if (this.#styleElement) {
2461
+ this.#destroyStyleElement();
2462
+ }
2463
+ this.#styleElement = styleElement;
2464
+ }
2465
+ releaseBodyScroll() {
2466
+ this.#destroyStyleElement();
2467
+ }
2468
+ #destroyStyleElement() {
2469
+ /* istanbul ignore else */
2470
+ if (this.#styleElement &&
2471
+ this.#styleElement.parentElement === document.head) {
2472
+ this.#renderer.removeChild(document.head, this.#styleElement);
2473
+ }
2474
+ }
2475
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
2476
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' }); }
2477
+ }
2478
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
2479
+ type: Injectable,
2480
+ args: [{
2481
+ providedIn: 'root',
2482
+ }]
2483
+ }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
2437
2484
 
2438
2485
  /**
2439
2486
  * Contextual information for each overlay.
@@ -2445,6 +2492,11 @@ class SkyOverlayContext {
2445
2492
  }
2446
2493
  }
2447
2494
 
2495
+ /**
2496
+ * @internal
2497
+ */
2498
+ const SKY_STACKING_CONTEXT = new InjectionToken('SkyStackingContext');
2499
+
2448
2500
  const POSITION_DEFAULT = 'fixed';
2449
2501
  /**
2450
2502
  * Omnibar is 1000.
@@ -2472,16 +2524,17 @@ class SkyOverlayComponent {
2472
2524
  }
2473
2525
  #backdropClick;
2474
2526
  #backdropClickObs;
2475
- #changeDetector;
2476
2527
  #closed;
2477
2528
  #closedObs;
2529
+ #ngUnsubscribe;
2530
+ #routerSubscription;
2531
+ #changeDetector;
2478
2532
  #context;
2479
2533
  #coreAdapter;
2480
- #injector;
2481
- #ngUnsubscribe;
2534
+ #environmentInjector;
2535
+ #idSvc;
2482
2536
  #router;
2483
- #routerSubscription;
2484
- constructor(changeDetector, injector, coreAdapter, context, idSvc, router) {
2537
+ constructor() {
2485
2538
  this.wrapperClass = '';
2486
2539
  this.enablePointerEvents = false;
2487
2540
  this.showBackdrop = false;
@@ -2489,12 +2542,13 @@ class SkyOverlayComponent {
2489
2542
  this.clipPath$ = new ReplaySubject(1);
2490
2543
  this.position = POSITION_DEFAULT;
2491
2544
  this.#ngUnsubscribe = new Subject();
2492
- this.#changeDetector = changeDetector;
2493
- this.#injector = injector;
2494
- this.#coreAdapter = coreAdapter;
2495
- this.#context = context;
2496
- this.#router = router;
2497
- this.id = idSvc.generateId();
2545
+ this.#changeDetector = inject(ChangeDetectorRef);
2546
+ this.#context = inject(SkyOverlayContext);
2547
+ this.#coreAdapter = inject(SkyCoreAdapterService);
2548
+ this.#environmentInjector = inject(EnvironmentInjector);
2549
+ this.#idSvc = inject(SkyIdService);
2550
+ this.#router = inject(Router, { optional: true });
2551
+ this.id = this.#idSvc.generateId();
2498
2552
  this.#backdropClick = new Subject();
2499
2553
  this.#closed = new Subject();
2500
2554
  this.#backdropClickObs = this.#backdropClick.asObservable();
@@ -2523,22 +2577,19 @@ class SkyOverlayComponent {
2523
2577
  throw new Error('[SkyOverlayComponent] Could not attach the component because the target element could not be found.');
2524
2578
  }
2525
2579
  this.targetRef.clear();
2526
- const injector = Injector.create({
2527
- providers: [
2528
- {
2529
- provide: SKY_STACKING_CONTEXT,
2530
- useValue: {
2531
- zIndex: new BehaviorSubject(parseInt(this.zIndex, 10))
2532
- .asObservable()
2533
- .pipe(takeUntil(this.#ngUnsubscribe)),
2534
- },
2580
+ const environmentInjector = createEnvironmentInjector([
2581
+ {
2582
+ provide: SKY_STACKING_CONTEXT,
2583
+ useValue: {
2584
+ zIndex: new BehaviorSubject(parseInt(this.zIndex, 10))
2585
+ .asObservable()
2586
+ .pipe(takeUntil(this.#ngUnsubscribe)),
2535
2587
  },
2536
- ...providers,
2537
- ],
2538
- parent: this.#injector,
2539
- });
2588
+ },
2589
+ ...providers,
2590
+ ], this.#environmentInjector);
2540
2591
  const componentRef = this.targetRef.createComponent(component, {
2541
- injector,
2592
+ environmentInjector,
2542
2593
  });
2543
2594
  // Run an initial change detection cycle after the component has been created.
2544
2595
  componentRef.changeDetectorRef.detectChanges();
@@ -2550,7 +2601,9 @@ class SkyOverlayComponent {
2550
2601
  throw new Error('[SkyOverlayComponent] Could not attach the template because the target element could not be found.');
2551
2602
  }
2552
2603
  this.targetRef.clear();
2553
- return this.targetRef.createEmbeddedView(templateRef, context);
2604
+ return this.targetRef.createEmbeddedView(templateRef, context, {
2605
+ injector: this.#environmentInjector,
2606
+ });
2554
2607
  }
2555
2608
  updateClipPath(clipPath) {
2556
2609
  this.clipPath$.next(clipPath);
@@ -2596,15 +2649,13 @@ class SkyOverlayComponent {
2596
2649
  this.#routerSubscription = undefined;
2597
2650
  }
2598
2651
  }
2599
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: SkyIdService }, { token: i4.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
2600
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SkyOverlayComponent, selector: "sky-overlay", host: { properties: { "id": "this.id" } }, viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2652
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2653
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SkyOverlayComponent, isStandalone: true, selector: "sky-overlay", host: { properties: { "id": "this.id" } }, viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2601
2654
  }
2602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayComponent, decorators: [{
2655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayComponent, decorators: [{
2603
2656
  type: Component,
2604
- args: [{ selector: 'sky-overlay', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"] }]
2605
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: SkyIdService }, { type: i4.Router, decorators: [{
2606
- type: Optional
2607
- }] }]; }, propDecorators: { id: [{
2657
+ args: [{ standalone: true, selector: 'sky-overlay', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], template: "<div\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"] }]
2658
+ }], ctorParameters: function () { return []; }, propDecorators: { id: [{
2608
2659
  type: HostBinding,
2609
2660
  args: ['id']
2610
2661
  }], overlayContentRef: [{
@@ -2627,77 +2678,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
2627
2678
  }]
2628
2679
  }] } });
2629
2680
 
2630
- class SkyOverlayModule {
2631
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2632
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [CommonModule] }); }
2633
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayModule, imports: [CommonModule] }); }
2634
- }
2635
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayModule, decorators: [{
2636
- type: NgModule,
2637
- args: [{
2638
- imports: [CommonModule],
2639
- declarations: [SkyOverlayComponent],
2640
- }]
2641
- }] });
2642
-
2643
- /**
2644
- * @internal
2645
- */
2646
- class SkyOverlayAdapterService {
2647
- #renderer;
2648
- #styleElement;
2649
- constructor(rendererFactory) {
2650
- this.#renderer = rendererFactory.createRenderer(undefined, null);
2651
- }
2652
- restrictBodyScroll() {
2653
- // Create a style element to avoid overwriting any existing inline body styles.
2654
- const styleElement = this.#renderer.createElement('style');
2655
- const textNode = this.#renderer.createText('body { overflow: hidden }');
2656
- // Apply a `data-` attribute to make unit testing easier.
2657
- this.#renderer.setAttribute(styleElement, 'data-test-selector', 'sky-overlay-restrict-scroll-styles');
2658
- this.#renderer.appendChild(styleElement, textNode);
2659
- this.#renderer.appendChild(document.head, styleElement);
2660
- if (this.#styleElement) {
2661
- this.#destroyStyleElement();
2662
- }
2663
- this.#styleElement = styleElement;
2664
- }
2665
- releaseBodyScroll() {
2666
- this.#destroyStyleElement();
2667
- }
2668
- #destroyStyleElement() {
2669
- /* istanbul ignore else */
2670
- if (this.#styleElement &&
2671
- this.#styleElement.parentElement === document.head) {
2672
- this.#renderer.removeChild(document.head, this.#styleElement);
2673
- }
2674
- }
2675
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
2676
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' }); }
2677
- }
2678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
2679
- type: Injectable,
2680
- args: [{
2681
- providedIn: 'root',
2682
- }]
2683
- }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
2684
-
2685
2681
  /**
2686
2682
  * This service is used to create new overlays.
2687
- * @dynamic
2683
+ * @internal
2688
2684
  */
2689
2685
  class SkyOverlayService {
2690
2686
  static { this.overlays = []; }
2691
- #adapter;
2692
- #applicationRef;
2693
- #componentFactoryResolver;
2694
- #injector;
2695
- // TODO: Replace deprecated `ComponentFactoryResolver`.
2696
- constructor(applicationRef, componentFactoryResolver, injector, adapter) {
2697
- this.#applicationRef = applicationRef;
2698
- this.#componentFactoryResolver = componentFactoryResolver;
2699
- this.#injector = injector;
2700
- this.#adapter = adapter;
2687
+ #adapter = inject(SkyOverlayAdapterService);
2688
+ #applicationRef = inject(ApplicationRef);
2689
+ #dynamicComponentSvc;
2690
+ #environmentInjector = inject(EnvironmentInjector);
2691
+ constructor(dynamicComponentSvc) {
2692
+ this.#dynamicComponentSvc = dynamicComponentSvc;
2701
2693
  }
2702
2694
  /**
2703
2695
  * Creates an empty overlay. Use the returned `SkyOverlayInstance` to append content.
@@ -2751,8 +2743,8 @@ class SkyOverlayService {
2751
2743
  }
2752
2744
  }
2753
2745
  #createOverlay(config) {
2754
- const injector = Injector.create({
2755
- parent: this.#injector,
2746
+ return this.#dynamicComponentSvc.createComponent(SkyOverlayComponent, {
2747
+ environmentInjector: this.#environmentInjector,
2756
2748
  providers: [
2757
2749
  {
2758
2750
  provide: SkyOverlayContext,
@@ -2760,14 +2752,6 @@ class SkyOverlayService {
2760
2752
  },
2761
2753
  ],
2762
2754
  });
2763
- const componentRef = this.#componentFactoryResolver
2764
- .resolveComponentFactory(SkyOverlayComponent)
2765
- .create(injector);
2766
- this.#applicationRef.attachView(componentRef.hostView);
2767
- const domElem = componentRef.hostView
2768
- .rootNodes[0];
2769
- document.body.appendChild(domElem);
2770
- return componentRef;
2771
2755
  }
2772
2756
  #prepareConfig(config = {}) {
2773
2757
  const defaults = {
@@ -2790,15 +2774,34 @@ class SkyOverlayService {
2790
2774
  }
2791
2775
  }
2792
2776
  }
2793
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyOverlayAdapterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2794
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayService, providedIn: 'root' }); }
2777
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2778
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayService, providedIn: 'root' }); }
2795
2779
  }
2796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyOverlayService, decorators: [{
2780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayService, decorators: [{
2797
2781
  type: Injectable,
2798
2782
  args: [{
2799
2783
  providedIn: 'root',
2800
2784
  }]
2801
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: SkyOverlayAdapterService }]; } });
2785
+ }], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
2786
+ /**
2787
+ * This service is used to create new overlays.
2788
+ * @internal
2789
+ * @deprecated Use `SkyOverlayService` to open a standalone component instead.
2790
+ */
2791
+ class SkyOverlayLegacyService extends SkyOverlayService {
2792
+ /* istanbul ignore next */
2793
+ constructor(dynamicComponentSvc) {
2794
+ super(dynamicComponentSvc);
2795
+ }
2796
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayLegacyService, deps: [{ token: SkyDynamicComponentLegacyService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2797
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayLegacyService, providedIn: 'any' }); }
2798
+ }
2799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyOverlayLegacyService, decorators: [{
2800
+ type: Injectable,
2801
+ args: [{
2802
+ providedIn: 'any',
2803
+ }]
2804
+ }], ctorParameters: function () { return [{ type: SkyDynamicComponentLegacyService }]; } });
2802
2805
 
2803
2806
  class SkyPercentPipe {
2804
2807
  get defaultLocale() {
@@ -2838,10 +2841,10 @@ class SkyPercentPipe {
2838
2841
  ? SkyNumberFormatUtility.formatNumber(locale, this.#value, SkyIntlNumberFormatStyle.Percent, format)
2839
2842
  : '';
2840
2843
  }
2841
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe }); }
2842
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false }); }
2844
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe }); }
2845
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false }); }
2843
2846
  }
2844
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipe, decorators: [{
2847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipe, decorators: [{
2845
2848
  type: Pipe,
2846
2849
  args: [{
2847
2850
  name: 'skyPercent',
@@ -2850,11 +2853,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
2850
2853
  }], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }]; } });
2851
2854
 
2852
2855
  class SkyPercentPipeModule {
2853
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2854
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] }); }
2855
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule] }); }
2856
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2857
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] }); }
2858
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule] }); }
2856
2859
  }
2857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
2860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
2858
2861
  type: NgModule,
2859
2862
  args: [{
2860
2863
  declarations: [SkyPercentPipe],
@@ -2927,13 +2930,13 @@ class SkyResizeObserverService {
2927
2930
  }
2928
2931
  });
2929
2932
  }
2930
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
2931
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverService, providedIn: 'any' }); }
2933
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
2934
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverService, providedIn: 'root' }); }
2932
2935
  }
2933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverService, decorators: [{
2936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverService, decorators: [{
2934
2937
  type: Injectable,
2935
2938
  args: [{
2936
- providedIn: 'any',
2939
+ providedIn: 'root',
2937
2940
  }]
2938
2941
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
2939
2942
 
@@ -2989,7 +2992,7 @@ class SkyResizeObserverMediaQueryService {
2989
2992
  * Sets the container element to watch. The `SkyResizeObserverMediaQueryService` will only observe one element at a
2990
2993
  * time. Any previous subscriptions will be unsubscribed when a new element is observed.
2991
2994
  */
2992
- observe(element) {
2995
+ observe(element, options) {
2993
2996
  if (this.#target) {
2994
2997
  if (this.#target === element) {
2995
2998
  return this;
@@ -2997,22 +3000,23 @@ class SkyResizeObserverMediaQueryService {
2997
3000
  this.unobserve();
2998
3001
  }
2999
3002
  this.#target = element;
3000
- this.#checkWidth(element);
3003
+ this.#checkWidth(element, options?.updateResponsiveClasses);
3001
3004
  this.#resizeObserverSvc
3002
3005
  .observe(element)
3003
3006
  .pipe(takeUntil(this.#ngUnsubscribe))
3004
3007
  .subscribe((value) => {
3005
3008
  const breakpoint = this.#checkBreakpoint(value.contentRect.width);
3006
- if (breakpoint && breakpoint !== this.current) {
3007
- this.#updateBreakpoint(breakpoint);
3009
+ if (breakpoint) {
3010
+ this.#updateBreakpoint(breakpoint, options?.updateResponsiveClasses);
3008
3011
  }
3009
3012
  });
3010
3013
  return this;
3011
3014
  }
3012
3015
  /**
3013
- * Stop watching the container element.
3016
+ * Stop watching the container element and remove any added classes.
3014
3017
  */
3015
3018
  unobserve() {
3019
+ this.#removeResponsiveClasses();
3016
3020
  this.#ngUnsubscribe.next();
3017
3021
  this.#ngUnsubscribe.complete();
3018
3022
  }
@@ -3026,29 +3030,49 @@ class SkyResizeObserverMediaQueryService {
3026
3030
  listener(value);
3027
3031
  });
3028
3032
  }
3029
- #updateBreakpoint(breakpoint) {
3033
+ #updateBreakpoint(breakpoint, updateResponsiveClasses) {
3034
+ if (updateResponsiveClasses) {
3035
+ this.#updateResponsiveClasses(this.current, breakpoint);
3036
+ }
3037
+ if (this.current !== breakpoint) {
3038
+ this.#currentBreakpointObs.next(breakpoint);
3039
+ }
3030
3040
  this.#currentBreakpoint = breakpoint;
3031
- this.#currentBreakpointObs.next(breakpoint);
3041
+ }
3042
+ #updateResponsiveClasses(oldBreakpoint, newBreakpoint) {
3043
+ const oldClass = this.#getClassForBreakpoint(oldBreakpoint);
3044
+ const newClass = this.#getClassForBreakpoint(newBreakpoint);
3045
+ const targetClassList = this.#target?.nativeElement?.classList;
3046
+ targetClassList?.remove(oldClass);
3047
+ targetClassList?.add(newClass);
3048
+ }
3049
+ #removeResponsiveClasses() {
3050
+ for (const breakpoint of Object.values(SkyMediaBreakpoints)) {
3051
+ if (typeof breakpoint === 'number') {
3052
+ const className = this.#getClassForBreakpoint(breakpoint);
3053
+ this.#target?.nativeElement?.classList?.remove(className);
3054
+ }
3055
+ }
3056
+ }
3057
+ #getClassForBreakpoint(breakpoint) {
3058
+ return `sky-responsive-container-${SkyMediaBreakpoints[breakpoint]}`;
3032
3059
  }
3033
3060
  #checkBreakpoint(width) {
3034
3061
  const breakpoint = this.#breakpoints.find((breakpoint) => breakpoint.check(width));
3035
3062
  return breakpoint ? breakpoint.name : undefined;
3036
3063
  }
3037
- #checkWidth(el) {
3064
+ #checkWidth(el, updateResponsiveClasses) {
3038
3065
  const width = el.nativeElement.offsetWidth || 0;
3039
3066
  const breakpoint = this.#checkBreakpoint(width);
3040
- if (breakpoint && breakpoint !== this.#currentBreakpoint) {
3041
- this.#updateBreakpoint(breakpoint);
3067
+ if (breakpoint) {
3068
+ this.#updateBreakpoint(breakpoint, updateResponsiveClasses);
3042
3069
  }
3043
3070
  }
3044
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverMediaQueryService, deps: [{ token: SkyResizeObserverService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3045
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverMediaQueryService, providedIn: 'any' }); }
3071
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, deps: [{ token: SkyResizeObserverService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3072
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService }); }
3046
3073
  }
3047
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyResizeObserverMediaQueryService, decorators: [{
3048
- type: Injectable,
3049
- args: [{
3050
- providedIn: 'any',
3051
- }]
3074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, decorators: [{
3075
+ type: Injectable
3052
3076
  }], ctorParameters: function () { return [{ type: SkyResizeObserverService }]; } });
3053
3077
 
3054
3078
  function notifySubscribers(subscribers, item) {
@@ -3255,10 +3279,10 @@ class SkyScrollableHostService {
3255
3279
  height: docElem.clientHeight,
3256
3280
  };
3257
3281
  }
3258
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: SkyMutationObserverService }, { token: SkyAppWindowRef }, { token: SkyResizeObserverService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3259
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' }); }
3282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: SkyMutationObserverService }, { token: SkyAppWindowRef }, { token: SkyResizeObserverService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3283
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' }); }
3260
3284
  }
3261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyScrollableHostService, decorators: [{
3285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyScrollableHostService, decorators: [{
3262
3286
  type: Injectable,
3263
3287
  args: [{
3264
3288
  providedIn: 'root',
@@ -3285,15 +3309,15 @@ class SkyAppTitleService {
3285
3309
  this.#title.setTitle(args.titleParts.join(' - '));
3286
3310
  }
3287
3311
  }
3288
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
3289
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' }); }
3312
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$2.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
3313
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' }); }
3290
3314
  }
3291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyAppTitleService, decorators: [{
3315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyAppTitleService, decorators: [{
3292
3316
  type: Injectable,
3293
3317
  args: [{
3294
3318
  providedIn: 'root',
3295
3319
  }]
3296
- }], ctorParameters: function () { return [{ type: i1$1.Title }]; } });
3320
+ }], ctorParameters: function () { return [{ type: i1$2.Title }]; } });
3297
3321
 
3298
3322
  /**
3299
3323
  * Trims whitespace in each text node that is a direct descendent of the current element.
@@ -3346,10 +3370,10 @@ class SkyTrimDirective {
3346
3370
  }
3347
3371
  this.#observe();
3348
3372
  }
3349
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }], target: i0.ɵɵFactoryTarget.Directive }); }
3350
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: SkyTrimDirective, selector: "[skyTrim]", ngImport: i0 }); }
3373
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }], target: i0.ɵɵFactoryTarget.Directive }); }
3374
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: SkyTrimDirective, selector: "[skyTrim]", ngImport: i0 }); }
3351
3375
  }
3352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimDirective, decorators: [{
3376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimDirective, decorators: [{
3353
3377
  type: Directive,
3354
3378
  args: [{
3355
3379
  selector: '[skyTrim]',
@@ -3357,11 +3381,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
3357
3381
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SkyMutationObserverService }]; } });
3358
3382
 
3359
3383
  class SkyTrimModule {
3360
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3361
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimModule, declarations: [SkyTrimDirective], exports: [SkyTrimDirective] }); }
3362
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimModule }); }
3384
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3385
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimModule, declarations: [SkyTrimDirective], exports: [SkyTrimDirective] }); }
3386
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimModule }); }
3363
3387
  }
3364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyTrimModule, decorators: [{
3388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyTrimModule, decorators: [{
3365
3389
  type: NgModule,
3366
3390
  args: [{
3367
3391
  declarations: [SkyTrimDirective],
@@ -3377,10 +3401,10 @@ class SkyUIConfigService {
3377
3401
  setConfig(key, value) {
3378
3402
  return of({});
3379
3403
  }
3380
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3381
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' }); }
3404
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3405
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' }); }
3382
3406
  }
3383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyUIConfigService, decorators: [{
3407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyUIConfigService, decorators: [{
3384
3408
  type: Injectable,
3385
3409
  args: [{
3386
3410
  providedIn: 'root',
@@ -3388,10 +3412,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
3388
3412
  }] });
3389
3413
 
3390
3414
  class SkyViewkeeperHostOptions {
3391
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3392
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperHostOptions }); }
3415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3416
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperHostOptions }); }
3393
3417
  }
3394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
3418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
3395
3419
  type: Injectable
3396
3420
  }] });
3397
3421
 
@@ -3701,10 +3725,10 @@ class SkyViewkeeperService {
3701
3725
  destroy(vk) {
3702
3726
  vk.destroy();
3703
3727
  }
3704
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3705
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' }); }
3728
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3729
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' }); }
3706
3730
  }
3707
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperService, decorators: [{
3731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperService, decorators: [{
3708
3732
  type: Injectable,
3709
3733
  args: [{
3710
3734
  providedIn: 'root',
@@ -3823,10 +3847,10 @@ class SkyViewkeeperDirective {
3823
3847
  this.#currentViewkeeperEls = viewkeeperEls;
3824
3848
  }
3825
3849
  }
3826
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
3827
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 }); }
3850
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
3851
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 }); }
3828
3852
  }
3829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
3853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
3830
3854
  type: Directive,
3831
3855
  args: [{
3832
3856
  selector: '[skyViewkeeper]',
@@ -3838,11 +3862,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
3838
3862
  }] } });
3839
3863
 
3840
3864
  class SkyViewkeeperModule {
3841
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3842
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] }); }
3843
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperModule }); }
3865
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3866
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] }); }
3867
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperModule }); }
3844
3868
  }
3845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
3869
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
3846
3870
  type: NgModule,
3847
3871
  args: [{
3848
3872
  declarations: [SkyViewkeeperDirective],
@@ -3854,5 +3878,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
3854
3878
  * Generated bundle index. Do not edit.
3855
3879
  */
3856
3880
 
3857
- export { NumericOptions, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyIdModule, SkyIdService, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogModule, SkyLogService, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, getWindow, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
3881
+ export { NumericOptions, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLegacyService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyIdModule, SkyIdService, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogModule, SkyLogService, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayLegacyService, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
3858
3882
  //# sourceMappingURL=skyux-core.mjs.map