ngx-data-loader
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -5,3 +5,3 @@ import { EventEmitter, OnInit, TemplateRef } from '@angular/core'; | ||
errorTemplate?: TemplateRef<any>; | ||
error: Error; | ||
error?: Error | null; | ||
reload: EventEmitter<void>; | ||
@@ -8,0 +8,0 @@ reloadFn: () => void; |
import { EventEmitter, OnChanges, OnInit, TemplateRef } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import { LoadingState } from './loading-state.interface'; | ||
import * as i0 from "@angular/core"; | ||
interface LoadingState<T> { | ||
loading: boolean; | ||
loaded: boolean; | ||
error: Error | null; | ||
data: T | null; | ||
} | ||
export declare class NgxDataLoaderComponent<T = any> implements OnInit, OnChanges { | ||
@@ -25,3 +20,3 @@ dataTemplate?: TemplateRef<any>; | ||
loadingStateChange: EventEmitter<LoadingState<T>>; | ||
vm$: Observable<LoadingState<T>>; | ||
loadingState$: Observable<LoadingState<T>>; | ||
private loadTrigger$; | ||
@@ -42,2 +37,1 @@ private readonly initialState; | ||
} | ||
export {}; |
@@ -6,7 +6,8 @@ import * as i0 from "@angular/core"; | ||
import * as i4 from "./data/data.component"; | ||
import * as i5 from "@angular/common"; | ||
import * as i5 from "./loading-state-template.pipe"; | ||
import * as i6 from "@angular/common"; | ||
export declare class NgxDataLoaderModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDataLoaderModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDataLoaderModule, [typeof i1.NgxDataLoaderComponent, typeof i2.SkeletonComponent, typeof i3.ErrorComponent, typeof i4.DataComponent], [typeof i5.CommonModule], [typeof i1.NgxDataLoaderComponent]>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDataLoaderModule, [typeof i1.NgxDataLoaderComponent, typeof i2.SkeletonComponent, typeof i3.ErrorComponent, typeof i4.DataComponent, typeof i5.LoadingStateTemplatePipe], [typeof i6.CommonModule], [typeof i1.NgxDataLoaderComponent]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<NgxDataLoaderModule>; | ||
} |
{ | ||
"name": "ngx-data-loader", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^14.1.0", |
@@ -7,2 +7,3 @@ # NgxDataLoader | ||
[![Build status](https://img.shields.io/github/workflow/status/rensjaspers/ngx-data-loader/Tests)](https://github.com/rensjaspers/ngx-data-loader/actions/workflows/main.yml) | ||
[![NPM version](https://img.shields.io/npm/v/ngx-data-loader.svg)](https://www.npmjs.com/package/ngx-data-loader) | ||
@@ -9,0 +10,0 @@ [![NPM downloads](https://img.shields.io/npm/dm/ngx-data-loader.svg)](https://www.npmjs.com/package/ngx-data-loader) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116329
24
820
124