@ngu/carousel
Advanced tools
Comparing version 7.1.3 to 7.2.0
@@ -1,3 +0,2 @@ | ||
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, IterableDiffers, NgZone, OnDestroy, OnInit, Renderer2, TrackByFunction } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, IterableDiffers, NgIterable, NgZone, OnDestroy, Renderer2, TrackByFunction } from '@angular/core'; | ||
import { NguCarouselConfig, NguCarouselStore } from './ngu-carousel'; | ||
@@ -7,4 +6,4 @@ import { NguWindowScrollListener } from './ngu-window-scroll-listener'; | ||
import * as i0 from "@angular/core"; | ||
type NguCarouselDataSource = Observable<any[]> | any[] | null | undefined; | ||
export declare class NguCarousel<T> extends NguCarouselStore implements OnInit, AfterContentInit, AfterViewInit, OnDestroy, DoCheck { | ||
type NguCarouselDataSource<T, U> = (U & NgIterable<T>) | null | undefined; | ||
export declare class NguCarousel<T, U extends NgIterable<T> = NgIterable<T>> extends NguCarouselStore implements AfterContentInit, AfterViewInit, OnDestroy, DoCheck { | ||
private _host; | ||
@@ -24,16 +23,7 @@ private _renderer; | ||
carouselLoad: EventEmitter<any>; | ||
onMove: EventEmitter<NguCarousel<T>>; | ||
onMove: EventEmitter<NguCarousel<T, NgIterable<T>>>; | ||
private _arrayChanges; | ||
get dataSource(): NguCarouselDataSource; | ||
set dataSource(data: NguCarouselDataSource); | ||
get dataSource(): NguCarouselDataSource<T, U>; | ||
set dataSource(data: NguCarouselDataSource<T, U>); | ||
private _dataSource; | ||
/** | ||
* `_dataSource` allows multiple values to be set considering nullable and | ||
* observable values. We shouldn't try to get `_dataSource.length` since it | ||
* might be `null|undefined` which will throw an error that property doesn't | ||
* exist on `undefined`. It will also always equal `undefined` on observable. | ||
* We should wait until the observable is unwrapped and then check the length | ||
* of the actual unwrapped data. | ||
*/ | ||
private _unwrappedData; | ||
private _defaultNodeDef; | ||
@@ -64,2 +54,3 @@ private _defDirectives; | ||
private _destroy$; | ||
private ngu_dirty; | ||
/** | ||
@@ -78,6 +69,4 @@ * Tracking function that will be used to check the differences in data changes. Used similarly | ||
constructor(_host: ElementRef<HTMLElement>, _renderer: Renderer2, _differs: IterableDiffers, _isBrowser: boolean, _cdr: ChangeDetectorRef, _ngZone: NgZone, _nguWindowScrollListener: NguWindowScrollListener, _nguCarouselHammerManager: NguCarouselHammerManager); | ||
ngOnInit(): void; | ||
ngDoCheck(): void; | ||
private _switchDataSource; | ||
private _observeRenderChanges; | ||
private renderNodeChanges; | ||
@@ -138,6 +127,6 @@ /** | ||
private _setupWindowResizeListener; | ||
static ngAcceptInputType_dataSource: NguCarouselDataSource; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NguCarousel<any>, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NguCarousel<any>, "ngu-carousel", never, { "inputs": "inputs"; "dataSource": "dataSource"; "trackBy": "trackBy"; }, { "carouselLoad": "carouselLoad"; "onMove": "onMove"; }, ["nextButton", "prevButton", "_defDirectives"], ["[NguCarouselPrev]", "[NguCarouselNext]", "[NguCarouselPoint]"], false, never>; | ||
static ngAcceptInputType_dataSource: NguCarouselDataSource<any, any>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NguCarousel<any, any>, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NguCarousel<any, any>, "ngu-carousel", never, { "inputs": { "alias": "inputs"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, { "carouselLoad": "carouselLoad"; "onMove": "onMove"; }, ["nextButton", "prevButton", "_defDirectives"], ["[NguCarouselPrev]", "[NguCarouselNext]", "[NguCarouselPoint]"], false, never>; | ||
} | ||
export {}; |
{ | ||
"name": "@ngu/carousel", | ||
"version": "7.1.3", | ||
"version": "7.2.0", | ||
"peerDependencies": { | ||
"@angular/common": "^15.0.0", | ||
"@angular/core": "^15.0.0", | ||
"@angular/animations": "^15.0.0", | ||
"@angular/common": "^16.0.0", | ||
"@angular/core": "^16.0.0", | ||
"@angular/animations": "^16.0.0", | ||
"hammerjs": "^2.0.0", | ||
@@ -12,3 +12,3 @@ "rxjs": "^7.0.0" | ||
"dependencies": { | ||
"tslib": "2.4.1" | ||
"tslib": "^2.5.0" | ||
}, | ||
@@ -28,7 +28,3 @@ "license": "MIT", | ||
], | ||
"module": "fesm2015/ngu-carousel.mjs", | ||
"es2020": "fesm2020/ngu-carousel.mjs", | ||
"esm2020": "esm2020/ngu-carousel.mjs", | ||
"fesm2020": "fesm2020/ngu-carousel.mjs", | ||
"fesm2015": "fesm2015/ngu-carousel.mjs", | ||
"module": "fesm2022/ngu-carousel.mjs", | ||
"typings": "index.d.ts", | ||
@@ -41,7 +37,5 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/ngu-carousel.mjs", | ||
"es2020": "./fesm2020/ngu-carousel.mjs", | ||
"es2015": "./fesm2015/ngu-carousel.mjs", | ||
"node": "./fesm2015/ngu-carousel.mjs", | ||
"default": "./fesm2020/ngu-carousel.mjs" | ||
"esm2022": "./esm2022/ngu-carousel.mjs", | ||
"esm": "./esm2022/ngu-carousel.mjs", | ||
"default": "./fesm2022/ngu-carousel.mjs" | ||
} | ||
@@ -48,0 +42,0 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4
348855
26
2497
1
+ Added@angular/animations@16.2.12(transitive)
+ Added@angular/common@16.2.12(transitive)
+ Added@angular/core@16.2.12(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@angular/animations@15.2.10(transitive)
- Removed@angular/common@15.2.10(transitive)
- Removed@angular/core@15.2.10(transitive)
- Removedtslib@2.4.1(transitive)
Updatedtslib@^2.5.0