@nativescript/angular 21.0.0 → 21.0.1-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/angular",
3
- "version": "21.0.0",
3
+ "version": "21.0.1-alpha.1",
4
4
  "homepage": "https://nativescript.org/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  import * as _nativescript_core from '@nativescript/core';
2
- import { View, LayoutBase, ContentView, Page, IDevice, Device, Color, GridLayout, Frame, ActionItem, NavigationButton, ListView, ObservableArray, Template, CoreTypes, ItemEventData, TabView, NavigatedData, ViewBase, RootLayout, ShowModalOptions, NavigationTransition, Folder, File, Switch, DatePicker, TimePicker, Slider, KeyframeAnimation } from '@nativescript/core';
2
+ import { View, ContentView, LayoutBase, IDevice, Page, Device, GridLayout, Color, Frame, ActionItem, NavigationButton, ListView, ObservableArray, Template, CoreTypes, ItemEventData, TabView, NavigatedData, ViewBase, RootLayout, ShowModalOptions, NavigationTransition, Folder, File, Switch, DatePicker, TimePicker, Slider, KeyframeAnimation } from '@nativescript/core';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, EmbeddedViewRef, ComponentRef, NgModuleRef, ApplicationRef, PlatformRef, Provider, EnvironmentProviders, ɵNgModuleFactory as _NgModuleFactory, Type, CompilerOptions, NgZone, Injector, NgModuleFactory, StaticProvider, Sanitizer, ApplicationConfig as ApplicationConfig$1, ViewContainerRef, ComponentFactoryResolver, TemplateRef, ElementRef, OnInit, OnDestroy, Renderer2, EventEmitter, ChangeDetectorRef, ComponentFactory, AfterViewInit, OnChanges, SimpleChanges, DoCheck, AfterContentInit, IterableDiffer, IterableDiffers, ErrorHandler, RendererStyleFlags2, RendererType2, RendererFactory2, QueryList, EnvironmentInjector, ModuleWithProviders, NgZoneOptions } from '@angular/core';
4
+ import { InjectionToken, EmbeddedViewRef, ComponentRef, NgModuleRef, ApplicationRef, Provider, EnvironmentProviders, PlatformRef, ɵNgModuleFactory as _NgModuleFactory, Type, CompilerOptions, NgZone, Injector, NgModuleFactory, StaticProvider, Sanitizer, ApplicationConfig as ApplicationConfig$1, ViewContainerRef, ComponentFactoryResolver, TemplateRef, ElementRef, OnInit, OnDestroy, Renderer2, EventEmitter, ChangeDetectorRef, ComponentFactory, AfterViewInit, OnChanges, SimpleChanges, DoCheck, AfterContentInit, IterableDiffer, IterableDiffers, ErrorHandler, RendererStyleFlags2, RendererType2, RendererFactory2, QueryList, EnvironmentInjector, ModuleWithProviders, NgZoneOptions } from '@angular/core';
5
5
  import * as _nativescript_angular from '@nativescript/angular';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable, Subject, BehaviorSubject } from 'rxjs';
@@ -1138,6 +1138,12 @@ declare class NSLocationStrategy extends LocationStrategy implements OnDestroy {
1138
1138
  _modalNavigationDepth: number;
1139
1139
  constructor(frameService: FrameService, startPath?: string);
1140
1140
  getState(): unknown;
1141
+ resetForHmr(): {
1142
+ outlets: number;
1143
+ states: number;
1144
+ callbacks: number;
1145
+ hadUrlTree: boolean;
1146
+ };
1141
1147
  path(): string;
1142
1148
  prepareExternalUrl(internal: string): string;
1143
1149
  pushState(state: any, title: string, url: string, queryParams: string): void;
@@ -1818,7 +1824,7 @@ declare class ModalDialogService {
1818
1824
  * and reattaches them on back.
1819
1825
  * Reuses routes as long as their route config is the same.
1820
1826
  */
1821
- declare class NSRouteReuseStrategy implements RouteReuseStrategy {
1827
+ declare class NSRouteReuseStrategy implements RouteReuseStrategy, OnDestroy {
1822
1828
  private location;
1823
1829
  private cacheByOutlet;
1824
1830
  constructor(location: NSLocationStrategy);
@@ -1837,6 +1843,8 @@ declare class NSRouteReuseStrategy implements RouteReuseStrategy {
1837
1843
  markCacheForPop(outletKey: string): void;
1838
1844
  clearMarkedCache(outletKey: string): void;
1839
1845
  clearModalCache(outletKey: string): void;
1846
+ clearAllCaches(): number;
1847
+ ngOnDestroy(): void;
1840
1848
  static ɵfac: i0.ɵɵFactoryDeclaration<NSRouteReuseStrategy, never>;
1841
1849
  static ɵprov: i0.ɵɵInjectableDeclaration<NSRouteReuseStrategy>;
1842
1850
  }