@skyux/core 14.3.10 → 14.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/skyux-core.mjs +57 -47
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/skyux-core.d.ts +77 -79
package/fesm2022/skyux-core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule, Injectable, inject, RendererFactory2, NgZone, DOCUMENT, EventEmitter, Output, Input, Directive, effect, untracked, input, booleanAttribute, output,
|
|
2
|
+
import { NgModule, Injectable, inject, RendererFactory2, NgZone, DOCUMENT, EventEmitter, ElementRef, Output, Input, Directive, effect, untracked, input, booleanAttribute, output, DestroyRef, signal, computed, ChangeDetectionStrategy, Component, provideEnvironmentInitializer, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ViewContainerRef, ViewChild, InjectionToken, Renderer2, Optional, Inject, ApplicationRef, afterNextRender, Injector, Pipe, HostBinding, HostListener } from '@angular/core';
|
|
3
3
|
import { Subject, Subscription, ReplaySubject, fromEvent, of, Observable, filter, map, distinctUntilChanged, shareReplay, observeOn, animationFrameScheduler, takeUntil as takeUntil$1, BehaviorSubject, combineLatestWith, switchMap, merge, debounceTime as debounceTime$1 } from 'rxjs';
|
|
4
4
|
import { takeUntil, debounceTime, take } from 'rxjs/operators';
|
|
5
5
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
|
@@ -106,6 +106,7 @@ const SKY_TABBABLE_SELECTOR = [
|
|
|
106
106
|
].join(', ');
|
|
107
107
|
class SkyCoreAdapterService {
|
|
108
108
|
#renderer;
|
|
109
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyCoreAdapterService(...)`).
|
|
109
110
|
constructor(rendererFactory) {
|
|
110
111
|
this.#renderer = rendererFactory.createRenderer(undefined, null);
|
|
111
112
|
}
|
|
@@ -922,11 +923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
922
923
|
* Affixes the host element to a base element.
|
|
923
924
|
*/
|
|
924
925
|
class SkyAffixDirective {
|
|
925
|
-
|
|
926
|
-
#affixService;
|
|
927
|
-
#elementRef;
|
|
928
|
-
#ngUnsubscribe;
|
|
929
|
-
constructor(elementRef, affixService) {
|
|
926
|
+
constructor() {
|
|
930
927
|
/**
|
|
931
928
|
* Fires when the affixed element's offset changes.
|
|
932
929
|
*/
|
|
@@ -939,10 +936,14 @@ class SkyAffixDirective {
|
|
|
939
936
|
* Fires when the placement value changes.
|
|
940
937
|
*/
|
|
941
938
|
this.affixPlacementChange = new EventEmitter();
|
|
939
|
+
this.#affixService = inject(SkyAffixService);
|
|
940
|
+
this.#elementRef = inject(ElementRef);
|
|
942
941
|
this.#ngUnsubscribe = new Subject();
|
|
943
|
-
this.#elementRef = elementRef;
|
|
944
|
-
this.#affixService = affixService;
|
|
945
942
|
}
|
|
943
|
+
#affixer;
|
|
944
|
+
#affixService;
|
|
945
|
+
#elementRef;
|
|
946
|
+
#ngUnsubscribe;
|
|
946
947
|
ngOnInit() {
|
|
947
948
|
this.#affixer = this.#affixService.createAffixer(this.#elementRef);
|
|
948
949
|
this.#affixer.offsetChange
|
|
@@ -995,7 +996,7 @@ class SkyAffixDirective {
|
|
|
995
996
|
});
|
|
996
997
|
}
|
|
997
998
|
}
|
|
998
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAffixDirective, deps: [
|
|
999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
999
1000
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: SkyAffixDirective, isStandalone: true, 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 }); }
|
|
1000
1001
|
}
|
|
1001
1002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyAffixDirective, decorators: [{
|
|
@@ -1003,7 +1004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1003
1004
|
args: [{
|
|
1004
1005
|
selector: '[skyAffixTo]',
|
|
1005
1006
|
}]
|
|
1006
|
-
}],
|
|
1007
|
+
}], propDecorators: { skyAffixTo: [{
|
|
1007
1008
|
type: Input
|
|
1008
1009
|
}], affixAutoFitContext: [{
|
|
1009
1010
|
type: Input
|
|
@@ -1528,7 +1529,9 @@ class SkyDynamicComponentService {
|
|
|
1528
1529
|
#renderer;
|
|
1529
1530
|
#windowRef;
|
|
1530
1531
|
#environmentInjector = inject(EnvironmentInjector);
|
|
1532
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor signature retained for backwards-compatible typing/mocks; the service still relies on Angular DI for other dependencies. */
|
|
1531
1533
|
constructor(applicationRef, windowRef, rendererFactory) {
|
|
1534
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
1532
1535
|
this.#applicationRef = applicationRef;
|
|
1533
1536
|
this.#windowRef = windowRef;
|
|
1534
1537
|
// Based on suggestions from https://github.com/angular/angular/issues/17824
|
|
@@ -1656,14 +1659,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1656
1659
|
*/
|
|
1657
1660
|
class SkyDockDomAdapterService {
|
|
1658
1661
|
#currentDockHeight;
|
|
1659
|
-
#mutationSvc;
|
|
1662
|
+
#mutationSvc = inject(SkyMutationObserverService);
|
|
1660
1663
|
#ngUnsubscribe = new Subject();
|
|
1661
1664
|
#observer;
|
|
1662
1665
|
#renderer;
|
|
1663
1666
|
#styleElement;
|
|
1664
|
-
constructor(
|
|
1665
|
-
this.#
|
|
1666
|
-
this.#renderer = rendererFactory.createRenderer(undefined, null);
|
|
1667
|
+
constructor() {
|
|
1668
|
+
this.#renderer = inject(RendererFactory2).createRenderer(undefined, null);
|
|
1667
1669
|
}
|
|
1668
1670
|
ngOnDestroy() {
|
|
1669
1671
|
if (this.#observer) {
|
|
@@ -1720,12 +1722,12 @@ class SkyDockDomAdapterService {
|
|
|
1720
1722
|
#destroyStyleElement() {
|
|
1721
1723
|
this.#renderer.removeChild(document.head, this.#styleElement);
|
|
1722
1724
|
}
|
|
1723
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyDockDomAdapterService, deps: [
|
|
1725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyDockDomAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1724
1726
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyDockDomAdapterService }); }
|
|
1725
1727
|
}
|
|
1726
1728
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
|
|
1727
1729
|
type: Injectable
|
|
1728
|
-
}], ctorParameters: () => [
|
|
1730
|
+
}], ctorParameters: () => [] });
|
|
1729
1731
|
|
|
1730
1732
|
/**
|
|
1731
1733
|
* @internal
|
|
@@ -2038,14 +2040,14 @@ class SkyIdDirective {
|
|
|
2038
2040
|
return this.#_id;
|
|
2039
2041
|
}
|
|
2040
2042
|
#_id;
|
|
2041
|
-
constructor(
|
|
2043
|
+
constructor() {
|
|
2042
2044
|
// Generate and apply the ID before the template is rendered
|
|
2043
2045
|
// to avoid a changed-after-checked error.
|
|
2044
|
-
const id =
|
|
2045
|
-
|
|
2046
|
+
const id = inject(SkyIdService).generateId();
|
|
2047
|
+
inject(Renderer2).setAttribute(inject(ElementRef).nativeElement, 'id', id);
|
|
2046
2048
|
this.#_id = id;
|
|
2047
2049
|
}
|
|
2048
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIdDirective, deps: [
|
|
2050
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2049
2051
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: SkyIdDirective, isStandalone: true, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 }); }
|
|
2050
2052
|
}
|
|
2051
2053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIdDirective, decorators: [{
|
|
@@ -2054,7 +2056,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2054
2056
|
selector: '[skyId]',
|
|
2055
2057
|
exportAs: 'skyId',
|
|
2056
2058
|
}]
|
|
2057
|
-
}], ctorParameters: () => [
|
|
2059
|
+
}], ctorParameters: () => [] });
|
|
2058
2060
|
|
|
2059
2061
|
class SkyIdModule {
|
|
2060
2062
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -2263,7 +2265,9 @@ const previousWarnings = new Set();
|
|
|
2263
2265
|
class SkyLogService {
|
|
2264
2266
|
#applicationLogLevel;
|
|
2265
2267
|
#formatter;
|
|
2268
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyLogService(...)`). */
|
|
2266
2269
|
constructor(formatter, applicationLogLevel) {
|
|
2270
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
2267
2271
|
this.#formatter = formatter;
|
|
2268
2272
|
this.#applicationLogLevel = applicationLogLevel ?? SkyLogLevel.Error;
|
|
2269
2273
|
}
|
|
@@ -2666,6 +2670,7 @@ class SkyMediaQueryService {
|
|
|
2666
2670
|
initialValue: DEFAULT_BREAKPOINT$1,
|
|
2667
2671
|
});
|
|
2668
2672
|
// Keep NgZone as a constructor param so that consumer mocks don't encounter typing errors.
|
|
2673
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyMediaQueryService(...)`).
|
|
2669
2674
|
constructor(_zone) { }
|
|
2670
2675
|
ngOnDestroy() {
|
|
2671
2676
|
this.destroy();
|
|
@@ -2910,6 +2915,7 @@ class SkyNumberFormatUtility {
|
|
|
2910
2915
|
class SkyNumericService {
|
|
2911
2916
|
#resourcesSvc;
|
|
2912
2917
|
#symbolIndex;
|
|
2918
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyNumericService(...)`).
|
|
2913
2919
|
constructor(resourcesSvc) {
|
|
2914
2920
|
/**
|
|
2915
2921
|
* The browser's current locale.
|
|
@@ -3115,7 +3121,9 @@ class SkyNumericPipe {
|
|
|
3115
3121
|
#ngUnsubscribe = new Subject();
|
|
3116
3122
|
#numericSvc;
|
|
3117
3123
|
#providerLocale;
|
|
3124
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this pipe directly (e.g. `new SkyNumericPipe(...)`). */
|
|
3118
3125
|
constructor(localeProvider, numericSvc, changeDetector) {
|
|
3126
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
3119
3127
|
this.#numericSvc = numericSvc;
|
|
3120
3128
|
this.#changeDetector = changeDetector;
|
|
3121
3129
|
localeProvider
|
|
@@ -3274,8 +3282,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3274
3282
|
class SkyOverlayAdapterService {
|
|
3275
3283
|
#renderer;
|
|
3276
3284
|
#styleElement;
|
|
3277
|
-
constructor(
|
|
3278
|
-
this.#renderer =
|
|
3285
|
+
constructor() {
|
|
3286
|
+
this.#renderer = inject(RendererFactory2).createRenderer(undefined, null);
|
|
3279
3287
|
}
|
|
3280
3288
|
restrictBodyScroll() {
|
|
3281
3289
|
// Create a style element to avoid overwriting any existing inline body styles.
|
|
@@ -3330,7 +3338,7 @@ class SkyOverlayAdapterService {
|
|
|
3330
3338
|
});
|
|
3331
3339
|
siblingAriaHiddenCache.clear();
|
|
3332
3340
|
}
|
|
3333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyOverlayAdapterService, deps: [
|
|
3341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyOverlayAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3334
3342
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' }); }
|
|
3335
3343
|
}
|
|
3336
3344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
|
|
@@ -3338,7 +3346,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3338
3346
|
args: [{
|
|
3339
3347
|
providedIn: 'root',
|
|
3340
3348
|
}]
|
|
3341
|
-
}], ctorParameters: () => [
|
|
3349
|
+
}], ctorParameters: () => [] });
|
|
3342
3350
|
|
|
3343
3351
|
/**
|
|
3344
3352
|
* Contextual information for each overlay.
|
|
@@ -3557,7 +3565,9 @@ class SkyOverlayService {
|
|
|
3557
3565
|
#applicationRef = inject(ApplicationRef);
|
|
3558
3566
|
#dynamicComponentSvc;
|
|
3559
3567
|
#environmentInjector = inject(EnvironmentInjector);
|
|
3568
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor param retained for backwards-compatible typing/overrides; this service still relies on Angular DI via `inject()` for other dependencies. */
|
|
3560
3569
|
constructor(dynamicComponentSvc) {
|
|
3570
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
3561
3571
|
this.#dynamicComponentSvc = dynamicComponentSvc;
|
|
3562
3572
|
}
|
|
3563
3573
|
/**
|
|
@@ -3660,6 +3670,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3660
3670
|
*/
|
|
3661
3671
|
class SkyOverlayLegacyService extends SkyOverlayService {
|
|
3662
3672
|
/* istanbul ignore next */
|
|
3673
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor param retained for backwards-compatible typing/overrides.
|
|
3663
3674
|
constructor(dynamicComponentSvc) {
|
|
3664
3675
|
super(dynamicComponentSvc);
|
|
3665
3676
|
}
|
|
@@ -3684,6 +3695,7 @@ class SkyPercentPipe {
|
|
|
3684
3695
|
#locale;
|
|
3685
3696
|
#ngUnsubscribe = new Subject();
|
|
3686
3697
|
#value;
|
|
3698
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this pipe directly (e.g. `new SkyPercentPipe(...)`).
|
|
3687
3699
|
constructor(localeProvider) {
|
|
3688
3700
|
localeProvider
|
|
3689
3701
|
.getLocaleInfo()
|
|
@@ -4145,7 +4157,9 @@ class SkyScrollableHostService {
|
|
|
4145
4157
|
#windowRef;
|
|
4146
4158
|
#resizeObserverSvc;
|
|
4147
4159
|
#zone;
|
|
4160
|
+
/* eslint-disable @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyScrollableHostService(...)`). */
|
|
4148
4161
|
constructor(mutationObserverSvc, windowRef, resizeObserverSvc, zone) {
|
|
4162
|
+
/* eslint-enable @angular-eslint/prefer-inject */
|
|
4149
4163
|
this.#mutationObserverSvc = mutationObserverSvc;
|
|
4150
4164
|
this.#resizeObserverSvc = resizeObserverSvc;
|
|
4151
4165
|
this.#windowRef = windowRef;
|
|
@@ -4402,6 +4416,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4402
4416
|
*/
|
|
4403
4417
|
class SkyAppTitleService {
|
|
4404
4418
|
#title;
|
|
4419
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyAppTitleService(...)`).
|
|
4405
4420
|
constructor(title) {
|
|
4406
4421
|
this.#title = title;
|
|
4407
4422
|
}
|
|
@@ -4431,9 +4446,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4431
4446
|
class SkyTrimDirective {
|
|
4432
4447
|
#el;
|
|
4433
4448
|
#obs;
|
|
4434
|
-
constructor(
|
|
4435
|
-
this.#el =
|
|
4436
|
-
this.#obs =
|
|
4449
|
+
constructor() {
|
|
4450
|
+
this.#el = inject(ElementRef).nativeElement;
|
|
4451
|
+
this.#obs = inject(SkyMutationObserverService).create((mutations) => {
|
|
4437
4452
|
if (mutations.some((mutation) => mutation.target === this.#el.firstChild ||
|
|
4438
4453
|
mutation.target === this.#el.lastChild)) {
|
|
4439
4454
|
this.#trimNodes();
|
|
@@ -4483,7 +4498,7 @@ class SkyTrimDirective {
|
|
|
4483
4498
|
}
|
|
4484
4499
|
}
|
|
4485
4500
|
}
|
|
4486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyTrimDirective, deps: [
|
|
4501
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyTrimDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4487
4502
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: SkyTrimDirective, isStandalone: true, selector: "[skyTrim]", ngImport: i0 }); }
|
|
4488
4503
|
}
|
|
4489
4504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyTrimDirective, decorators: [{
|
|
@@ -4491,7 +4506,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4491
4506
|
args: [{
|
|
4492
4507
|
selector: '[skyTrim]',
|
|
4493
4508
|
}]
|
|
4494
|
-
}], ctorParameters: () => [
|
|
4509
|
+
}], ctorParameters: () => [] });
|
|
4495
4510
|
|
|
4496
4511
|
class SkyTrimModule {
|
|
4497
4512
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyTrimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -4826,6 +4841,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4826
4841
|
*/
|
|
4827
4842
|
class SkyViewkeeperService {
|
|
4828
4843
|
#hostOptions;
|
|
4844
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject -- constructor injection is required to maintain the public API for consumers who may instantiate this service directly (e.g. `new SkyViewkeeperService(...)`).
|
|
4829
4845
|
constructor(hostOptions) {
|
|
4830
4846
|
this.#hostOptions = hostOptions;
|
|
4831
4847
|
}
|
|
@@ -4866,21 +4882,17 @@ class SkyViewkeeperDirective {
|
|
|
4866
4882
|
}
|
|
4867
4883
|
#_skyViewkeeper;
|
|
4868
4884
|
#currentViewkeeperEls;
|
|
4869
|
-
#el;
|
|
4870
|
-
#mutationObserverSvc;
|
|
4885
|
+
#el = inject(ElementRef);
|
|
4886
|
+
#mutationObserverSvc = inject(SkyMutationObserverService);
|
|
4887
|
+
#scrollableHostSvc = inject(SkyScrollableHostService, {
|
|
4888
|
+
optional: true,
|
|
4889
|
+
});
|
|
4890
|
+
#viewkeeperSvc = inject(SkyViewkeeperService);
|
|
4891
|
+
#renderer = inject(RendererFactory2).createRenderer(undefined, null);
|
|
4871
4892
|
#observer;
|
|
4872
|
-
#scrollableHostSvc;
|
|
4873
4893
|
#scrollableHostWatchUnsubscribe;
|
|
4874
|
-
#viewkeepers = [];
|
|
4875
|
-
#viewkeeperSvc;
|
|
4876
|
-
#renderer = inject(RendererFactory2).createRenderer(undefined, null);
|
|
4877
4894
|
#shadowElement;
|
|
4878
|
-
|
|
4879
|
-
this.#el = el;
|
|
4880
|
-
this.#mutationObserverSvc = mutationObserverSvc;
|
|
4881
|
-
this.#viewkeeperSvc = viewkeeperSvc;
|
|
4882
|
-
this.#scrollableHostSvc = scrollableHostSvc;
|
|
4883
|
-
}
|
|
4895
|
+
#viewkeepers = [];
|
|
4884
4896
|
ngOnInit() {
|
|
4885
4897
|
this.#observer = this.#mutationObserverSvc.create(() => this.#detectElements());
|
|
4886
4898
|
this.#observer.observe(this.#el.nativeElement, {
|
|
@@ -4992,7 +5004,7 @@ class SkyViewkeeperDirective {
|
|
|
4992
5004
|
this.#currentViewkeeperEls = viewkeeperEls;
|
|
4993
5005
|
}
|
|
4994
5006
|
}
|
|
4995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyViewkeeperDirective, deps: [
|
|
5007
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyViewkeeperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4996
5008
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: SkyViewkeeperDirective, isStandalone: true, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper", skyViewkeeperOmitShadow: "skyViewkeeperOmitShadow" }, ngImport: i0 }); }
|
|
4997
5009
|
}
|
|
4998
5010
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
|
|
@@ -5000,9 +5012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
5000
5012
|
args: [{
|
|
5001
5013
|
selector: '[skyViewkeeper]',
|
|
5002
5014
|
}]
|
|
5003
|
-
}],
|
|
5004
|
-
type: Optional
|
|
5005
|
-
}] }], propDecorators: { skyViewkeeper: [{
|
|
5015
|
+
}], propDecorators: { skyViewkeeper: [{
|
|
5006
5016
|
type: Input
|
|
5007
5017
|
}], skyViewkeeperOmitShadow: [{
|
|
5008
5018
|
type: Input
|
|
@@ -5038,7 +5048,7 @@ class Version {
|
|
|
5038
5048
|
/**
|
|
5039
5049
|
* Represents the version of @skyux/core.
|
|
5040
5050
|
*/
|
|
5041
|
-
const VERSION = new Version('14.3.
|
|
5051
|
+
const VERSION = new Version('14.3.11');
|
|
5042
5052
|
|
|
5043
5053
|
/**
|
|
5044
5054
|
* Generated bundle index. Do not edit.
|