Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngu/carousel

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngu/carousel - npm Package Compare versions

Comparing version 7.1.2 to 7.1.3

esm2020/lib/ngu-carousel/ngu-carousel-hammer-manager.mjs

58

lib/ngu-carousel/ngu-carousel.component.d.ts

@@ -1,9 +0,10 @@

import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit, Renderer2, TrackByFunction } from '@angular/core';
import { Subscription } from 'rxjs';
import { NguCarouselOutlet } from './../ngu-carousel.directive';
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, IterableDiffers, NgZone, OnDestroy, OnInit, Renderer2, TrackByFunction } from '@angular/core';
import { Observable } from 'rxjs';
import { NguCarouselConfig, NguCarouselStore } from './ngu-carousel';
import { NguWindowScrollListener } from './ngu-window-scroll-listener';
import { NguCarouselHammerManager } from './ngu-carousel-hammer-manager';
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 {
private _el;
private _host;
private _renderer;

@@ -15,12 +16,7 @@ private _differs;

private _nguWindowScrollListener;
_dataSubscription: Subscription;
_dataSource: any;
_dataDiffer: IterableDiffer<{}>;
styleid: string;
private directionSym;
private carouselCssNode;
private pointIndex;
private withAnim;
private _nguCarouselHammerManager;
/** Public property that may be accessed outside of the component. */
activePoint: number;
isHovered: boolean;
/** Public property that may be accessed outside of the component. */
pointNumbers: number[];
inputs: NguCarouselConfig;

@@ -30,7 +26,17 @@ carouselLoad: EventEmitter<any>;

private _arrayChanges;
get dataSource(): any;
set dataSource(data: any);
get dataSource(): NguCarouselDataSource;
set dataSource(data: NguCarouselDataSource);
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;
private _defDirectives;
_nodeOutlet: NguCarouselOutlet;
private _nodeOutlet;
/**

@@ -47,9 +53,13 @@ * The setter is used to catch the button if the button is wrapped with `ngIf`.

private carouselMain1;
private nguItemsContainer;
private _nguItemsContainer;
private _touchContainer;
private _intervalController$;
private carousel;
private _hammertime;
private _hammer;
private _withAnimation;
private _directionSymbol;
private _carouselCssNode;
private _dataDiffer;
private _styleid;
private _pointIndex;
private _destroy$;
pointNumbers: Array<any>;
/**

@@ -67,3 +77,3 @@ * Tracking function that will be used to check the differences in data changes. Used similarly

private readonly _nextButton$;
constructor(_el: ElementRef, _renderer: Renderer2, _differs: IterableDiffers, _isBrowser: boolean, _cdr: ChangeDetectorRef, _ngZone: NgZone, _nguWindowScrollListener: NguWindowScrollListener);
constructor(_host: ElementRef<HTMLElement>, _renderer: Renderer2, _differs: IterableDiffers, _isBrowser: boolean, _cdr: ChangeDetectorRef, _ngZone: NgZone, _nguWindowScrollListener: NguWindowScrollListener, _nguCarouselHammerManager: NguCarouselHammerManager);
ngOnInit(): void;

@@ -95,3 +105,3 @@ ngDoCheck(): void;

/** Used to reset the carousel */
reset(withOutAnimation?: boolean): void;
reset(withoutAnimation?: boolean): void;
/** Init carousel point */

@@ -102,3 +112,3 @@ private _carouselPoint;

/** this function is used to scoll the carousel when point is clicked */
moveTo(slide: number, withOutAnimation?: boolean): void;
moveTo(slide: number, withoutAnimation?: boolean): void;
/** set the style of the carousel based the inputs data */

@@ -130,4 +140,6 @@ private _carouselSize;

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>;
}
export {};
{
"name": "@ngu/carousel",
"version": "7.1.2",
"version": "7.1.3",
"peerDependencies": {

@@ -8,8 +8,5 @@ "@angular/common": "^15.0.0",

"@angular/animations": "^15.0.0",
"rxjs": "^7.0.0",
"zone.js": "^0.11.4"
"hammerjs": "^2.0.0",
"rxjs": "^7.0.0"
},
"optionalDependencies": {
"hammerjs": "^2.0.0"
},
"dependencies": {

@@ -16,0 +13,0 @@ "tslib": "2.4.1"

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc