@nativescript/angular 20.0.1-rc.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/nativescript-angular-polyfills.mjs +2 -2
- package/fesm2022/nativescript-angular-polyfills.mjs.map +1 -1
- package/fesm2022/nativescript-angular-testing.mjs +7 -7
- package/fesm2022/nativescript-angular.mjs +392 -226
- package/fesm2022/nativescript-angular.mjs.map +1 -1
- package/index.d.ts +51 -27
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _nativescript_core from '@nativescript/core';
|
|
2
|
-
import { View, LayoutBase, ContentView, Page, IDevice, Device, Color, GridLayout, Frame, ActionItem, NavigationButton, ListView, ObservableArray, ItemEventData, TabView, NavigatedData, ViewBase, RootLayout, ShowModalOptions, NavigationTransition, Folder, File, Switch, DatePicker, TimePicker, Slider, KeyframeAnimation } 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';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
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';
|
|
5
5
|
import * as _nativescript_angular from '@nativescript/angular';
|
|
@@ -700,13 +700,12 @@ declare function throwNoPortalAttachedError(): void;
|
|
|
700
700
|
* the visual tree.
|
|
701
701
|
*/
|
|
702
702
|
declare class DetachedLoader implements OnDestroy {
|
|
703
|
-
private resolver;
|
|
704
|
-
private changeDetector;
|
|
705
|
-
private containerRef;
|
|
706
|
-
private appRef;
|
|
707
703
|
vc: ViewContainerRef;
|
|
708
704
|
private disposeFunctions;
|
|
709
|
-
|
|
705
|
+
resolver: ComponentFactoryResolver;
|
|
706
|
+
changeDetector: ChangeDetectorRef;
|
|
707
|
+
containerRef: ViewContainerRef;
|
|
708
|
+
appRef: ApplicationRef;
|
|
710
709
|
createComponentPortal<T>(componentType: ComponentType<T>, customInjector?: Injector): ComponentPortal<T>;
|
|
711
710
|
createTemplatePortal<T>(templateRef: TemplateRef<T>, context?: T): TemplatePortal<T>;
|
|
712
711
|
private loadInAppRef;
|
|
@@ -776,36 +775,36 @@ declare function isActionItem(view: any): view is ActionItem;
|
|
|
776
775
|
declare function isNavigationButton(view: any): view is NavigationButton;
|
|
777
776
|
declare const actionBarMeta: ViewClassMeta;
|
|
778
777
|
declare class ActionBarComponent {
|
|
779
|
-
element: ElementRef
|
|
780
|
-
|
|
781
|
-
constructor(
|
|
782
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionBarComponent,
|
|
778
|
+
element: ElementRef<any>;
|
|
779
|
+
page: Page;
|
|
780
|
+
constructor();
|
|
781
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionBarComponent, never>;
|
|
783
782
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionBarComponent, "ActionBar", never, {}, {}, never, ["*"], true, never>;
|
|
784
783
|
}
|
|
785
784
|
declare class ActionBarScope {
|
|
786
|
-
|
|
787
|
-
constructor(
|
|
785
|
+
page: Page;
|
|
786
|
+
constructor();
|
|
788
787
|
onNavButtonInit(navBtn: NavigationButtonDirective): void;
|
|
789
788
|
onNavButtonDestroy(navBtn: NavigationButtonDirective): void;
|
|
790
789
|
onActionInit(item: ActionItemDirective): void;
|
|
791
790
|
onActionDestroy(item: ActionItemDirective): void;
|
|
792
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionBarScope,
|
|
791
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionBarScope, never>;
|
|
793
792
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionBarScope, "ActionBarExtension", never, {}, {}, never, never, true, never>;
|
|
794
793
|
}
|
|
795
794
|
declare class ActionItemDirective implements OnDestroy {
|
|
796
|
-
element: ElementRef
|
|
797
|
-
|
|
798
|
-
constructor(
|
|
795
|
+
element: ElementRef<any>;
|
|
796
|
+
ownerScope: ActionBarScope;
|
|
797
|
+
constructor();
|
|
799
798
|
ngOnDestroy(): void;
|
|
800
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionItemDirective,
|
|
799
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionItemDirective, never>;
|
|
801
800
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ActionItemDirective, "ActionItem", never, {}, {}, never, never, true, never>;
|
|
802
801
|
}
|
|
803
802
|
declare class NavigationButtonDirective implements OnDestroy {
|
|
804
|
-
element: ElementRef
|
|
805
|
-
|
|
806
|
-
constructor(
|
|
803
|
+
element: ElementRef<any>;
|
|
804
|
+
ownerScope: ActionBarScope;
|
|
805
|
+
constructor();
|
|
807
806
|
ngOnDestroy(): void;
|
|
808
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationButtonDirective,
|
|
807
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationButtonDirective, never>;
|
|
809
808
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationButtonDirective, "NavigationButton", never, {}, {}, never, never, true, never>;
|
|
810
809
|
}
|
|
811
810
|
|
|
@@ -864,7 +863,27 @@ declare class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterCon
|
|
|
864
863
|
loader: ViewContainerRef;
|
|
865
864
|
setupItemView: EventEmitter<SetupItemViewArgs<T>>;
|
|
866
865
|
itemTemplateQuery: TemplateRef<ItemContext<T>>;
|
|
866
|
+
stickyHeaderTemplateRef: TemplateRef<ItemContext<any>>;
|
|
867
867
|
fallbackItemTemplate: TemplateRef<ItemContext<T>>;
|
|
868
|
+
/**
|
|
869
|
+
* Sticky header template as supported by core ListView (string or NsTemplate).
|
|
870
|
+
* This allows direct string templates just like XML usage:
|
|
871
|
+
* `<ListView stickyHeaderTemplate="<GridLayout>...</GridLayout>">`.
|
|
872
|
+
*/
|
|
873
|
+
get stickyHeaderTemplate(): string | Template;
|
|
874
|
+
set stickyHeaderTemplate(value: string | Template);
|
|
875
|
+
get stickyHeader(): boolean;
|
|
876
|
+
set stickyHeader(value: boolean);
|
|
877
|
+
get stickyHeaderHeight(): CoreTypes.LengthType;
|
|
878
|
+
set stickyHeaderHeight(value: number);
|
|
879
|
+
get stickyHeaderTopPadding(): any;
|
|
880
|
+
set stickyHeaderTopPadding(value: any);
|
|
881
|
+
get sectioned(): boolean;
|
|
882
|
+
set sectioned(value: boolean);
|
|
883
|
+
get showSearch(): boolean;
|
|
884
|
+
set showSearch(value: boolean);
|
|
885
|
+
get searchAutoHide(): boolean;
|
|
886
|
+
set searchAutoHide(value: boolean);
|
|
868
887
|
get items(): T[] | ObservableArray<T>;
|
|
869
888
|
set items(value: T[] | ObservableArray<T>);
|
|
870
889
|
/**
|
|
@@ -885,10 +904,16 @@ declare class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterCon
|
|
|
885
904
|
private setItemTemplates;
|
|
886
905
|
registerTemplate(key: string, template: TemplateRef<ItemContext<T>>): void;
|
|
887
906
|
onItemLoading(args: ItemEventData): void;
|
|
907
|
+
private resolveSectionIndex;
|
|
908
|
+
private resolveRowIndex;
|
|
909
|
+
private getSectionItem;
|
|
910
|
+
private computeAbsoluteIndex;
|
|
911
|
+
private getCollectionLength;
|
|
912
|
+
private getFlatItem;
|
|
888
913
|
setupViewRef(viewRef: EmbeddedViewRef<ItemContext<T>>, data: T, index: number, nativeElement: View): void;
|
|
889
914
|
ngDoCheck(): void;
|
|
890
915
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent<any>, never>;
|
|
891
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "ListView", never, { "items": { "alias": "items"; "required": false; }; }, { "setupItemView": "setupItemView"; }, ["itemTemplateQuery"], never, true, never>;
|
|
916
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "ListView", never, { "stickyHeaderTemplate": { "alias": "stickyHeaderTemplate"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "stickyHeaderHeight": { "alias": "stickyHeaderHeight"; "required": false; }; "stickyHeaderTopPadding": { "alias": "stickyHeaderTopPadding"; "required": false; }; "sectioned": { "alias": "sectioned"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "searchAutoHide": { "alias": "searchAutoHide"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "setupItemView": "setupItemView"; }, ["itemTemplateQuery", "stickyHeaderTemplateRef"], never, true, never>;
|
|
892
917
|
}
|
|
893
918
|
type RootLocator = (nodes: Array<unknown>, nestLevel: number) => View;
|
|
894
919
|
declare function getItemViewRoot(viewRef: EmbeddedViewRef<unknown>, rootLocator?: RootLocator): View;
|
|
@@ -1338,17 +1363,16 @@ declare class NativeDialog implements OnDestroy {
|
|
|
1338
1363
|
* Button that will close the current dialog.
|
|
1339
1364
|
*/
|
|
1340
1365
|
declare class NativeDialogCloseDirective implements OnInit, OnChanges {
|
|
1341
|
-
dialogRef: NativeDialogRef<any>;
|
|
1342
|
-
private _elementRef;
|
|
1343
|
-
private _dialog;
|
|
1344
1366
|
/** Dialog close input. */
|
|
1345
1367
|
dialogResult: any;
|
|
1346
1368
|
_matDialogClose: any;
|
|
1347
|
-
|
|
1369
|
+
dialogRef: NativeDialogRef<any, any>;
|
|
1370
|
+
_elementRef: ElementRef<any>;
|
|
1371
|
+
_dialog: NativeDialog;
|
|
1348
1372
|
ngOnInit(): void;
|
|
1349
1373
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1350
1374
|
_onButtonClick(): void;
|
|
1351
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDialogCloseDirective,
|
|
1375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDialogCloseDirective, never>;
|
|
1352
1376
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NativeDialogCloseDirective, "[native-dialog-close], [nativeDialogClose]", ["nativeDialogClose"], { "dialogResult": { "alias": "native-dialog-close"; "required": false; }; "_matDialogClose": { "alias": "nativeDialogClose"; "required": false; }; }, {}, never, never, true, never>;
|
|
1353
1377
|
}
|
|
1354
1378
|
|