@skyux/core 12.0.0-alpha.11 → 12.0.0-alpha.12

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.
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { NgModule, Injectable, inject, RendererFactory2, NgZone, EventEmitter, Output, Input, Directive, EnvironmentInjector, createEnvironmentInjector, createComponent, ChangeDetectorRef, ElementRef, ViewContainerRef, ViewChild, ChangeDetectionStrategy, Component, InjectionToken, input, effect, Optional, Inject, ApplicationRef, afterNextRender, Injector, Pipe, HostBinding, Renderer2, HostListener } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common';
4
4
  import { DOCUMENT, CommonModule } from '@angular/common';
5
- import { Subject, Subscription, ReplaySubject, fromEvent, of, Observable, filter, map, distinctUntilChanged, shareReplay, throttle, animationFrames, take, takeUntil as takeUntil$1, BehaviorSubject, concat, animationFrameScheduler } from 'rxjs';
5
+ import { Subject, Subscription, ReplaySubject, fromEvent, of, Observable, filter, map, distinctUntilChanged, shareReplay, observeOn, animationFrameScheduler, takeUntil as takeUntil$1, BehaviorSubject, concat } from 'rxjs';
6
6
  import { takeUntil, debounceTime, switchMap, map as map$1 } from 'rxjs/operators';
7
7
  import { ViewportRuler } from '@angular/cdk/overlay';
8
8
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -2135,11 +2135,11 @@ const onError = (event) => {
2135
2135
  */
2136
2136
  class SkyResizeObserverService {
2137
2137
  #ngUnsubscribe = new Subject();
2138
- #resizeObserver = new ResizeObserver((entries) => this.#resizeSubject.next(entries));
2138
+ #zone = inject(NgZone);
2139
+ #resizeObserver = this.#zone.runOutsideAngular(() => new ResizeObserver((entries) => this.#zone.run(() => this.#resizeSubject.next(entries))));
2139
2140
  #resizeSubject = new Subject();
2140
2141
  #tracking = new Map();
2141
2142
  #window = inject(SkyAppWindowRef);
2142
- #zone = inject(NgZone);
2143
2143
  constructor() {
2144
2144
  this.#expectWindowError();
2145
2145
  // Because the resize observer is a native browser API, it does not shut down
@@ -2177,10 +2177,7 @@ class SkyResizeObserverService {
2177
2177
  // un-observes when all subscribers are gone.
2178
2178
  shareReplay({ bufferSize: 1, refCount: true }),
2179
2179
  // Only emit prior to an animation frame to prevent layout thrashing.
2180
- throttle(() => animationFrames().pipe(take(1)), {
2181
- leading: false,
2182
- trailing: true,
2183
- }), takeUntil$1(this.#ngUnsubscribe)));
2180
+ observeOn(animationFrameScheduler), takeUntil$1(this.#ngUnsubscribe)));
2184
2181
  }
2185
2182
  return this.#tracking.get(element.nativeElement);
2186
2183
  }
@@ -4115,14 +4112,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
4115
4112
  }]
4116
4113
  }] });
4117
4114
 
4118
- class SkyViewkeeperHostOptions {
4119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4120
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions }); }
4121
- }
4122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
4123
- type: Injectable
4124
- }] });
4125
-
4126
4115
  const CLS_VIEWKEEPER_FIXED = 'sky-viewkeeper-fixed';
4127
4116
  const EVT_AFTER_VIEWKEEPER_SYNC = 'afterViewkeeperSync';
4128
4117
  let styleEl;
@@ -4428,6 +4417,14 @@ class SkyViewkeeper {
4428
4417
  }
4429
4418
  }
4430
4419
 
4420
+ class SkyViewkeeperHostOptions {
4421
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4422
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions }); }
4423
+ }
4424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
4425
+ type: Injectable
4426
+ }] });
4427
+
4431
4428
  /**
4432
4429
  * Provides methods for creating and destroying viewkeeper instances.
4433
4430
  */
@@ -4618,11 +4615,11 @@ class Version {
4618
4615
  /**
4619
4616
  * Represents the version of @skyux/core.
4620
4617
  */
4621
- const VERSION = new Version('12.0.0-alpha.11');
4618
+ const VERSION = new Version('12.0.0-alpha.12');
4622
4619
 
4623
4620
  /**
4624
4621
  * Generated bundle index. Do not edit.
4625
4622
  */
4626
4623
 
4627
- export { NumericOptions, SKY_BREAKPOINTS, SKY_BREAKPOINT_OBSERVER, SKY_HELP_GLOBAL_OPTIONS, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyContainerBreakpointObserver, SkyContentInfoProvider, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLegacyService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyFileReaderService, SkyHelpService, SkyIdModule, SkyIdService, SkyLayoutHostDirective, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogLevel, SkyLogModule, SkyLogService, SkyMediaBreakpointObserver, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayLegacyService, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyResponsiveHostDirective, SkyScreenReaderLabelDirective, SkyScrollShadowDirective, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, VERSION, provideSkyBreakpointObserver, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
4624
+ export { NumericOptions, SKY_BREAKPOINTS, SKY_BREAKPOINT_OBSERVER, SKY_HELP_GLOBAL_OPTIONS, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyContainerBreakpointObserver, SkyContentInfoProvider, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDefaultInputProvider, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLegacyService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyFileReaderService, SkyHelpService, SkyIdModule, SkyIdService, SkyLayoutHostDirective, SkyLayoutHostService, SkyLiveAnnouncerService, SkyLogLevel, SkyLogModule, SkyLogService, SkyMediaBreakpointObserver, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayLegacyService, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyResponsiveHostDirective, SkyScreenReaderLabelDirective, SkyScrollShadowDirective, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeper, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, VERSION, provideSkyBreakpointObserver, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
4628
4625
  //# sourceMappingURL=skyux-core.mjs.map