@datarailsshared/datarailsshared 1.6.75 → 1.6.77
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/datarailsshared-datarailsshared-1.6.77.tgz +0 -0
- package/esm2022/lib/dr-gallery/dr-gallery.component.mjs +45 -10
- package/fesm2022/datarailsshared-datarailsshared.mjs +54 -19
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-gallery/dr-gallery.component.d.ts +10 -3
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.75.tgz +0 -0
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DrGalleryComponent<T = any> {
|
|
3
|
+
export declare class DrGalleryComponent<T = any> implements AfterViewInit, OnDestroy {
|
|
4
4
|
private cdr;
|
|
5
5
|
template: TemplateRef<{
|
|
6
6
|
$implicit: T;
|
|
7
7
|
}>;
|
|
8
8
|
private _items;
|
|
9
9
|
private _itemsCount;
|
|
10
|
+
private autoplayTimer;
|
|
10
11
|
readonly defaultTransition = "250ms ease-in-out";
|
|
11
12
|
readonly noTransition = "0ms";
|
|
12
13
|
modeType: 'loop' | 'dynamic';
|
|
13
14
|
isOutsideBtns: boolean;
|
|
15
|
+
fadeIn: boolean;
|
|
16
|
+
autoPlay: boolean;
|
|
17
|
+
autoplayInterval: number;
|
|
14
18
|
set items(value: T[]);
|
|
15
19
|
set itemsCount(value: number);
|
|
16
20
|
get items(): T[];
|
|
@@ -26,6 +30,7 @@ export declare class DrGalleryComponent<T = any> {
|
|
|
26
30
|
private itemWidths;
|
|
27
31
|
constructor(cdr: ChangeDetectorRef);
|
|
28
32
|
ngAfterViewInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
29
34
|
private initializeCarousel;
|
|
30
35
|
private calculateItemOffsets;
|
|
31
36
|
getStyle(): Partial<CSSStyleDeclaration>;
|
|
@@ -36,6 +41,8 @@ export declare class DrGalleryComponent<T = any> {
|
|
|
36
41
|
get canGoNext(): boolean;
|
|
37
42
|
private resetIndexAfterDelay;
|
|
38
43
|
private updateTransform;
|
|
44
|
+
private startAutoplay;
|
|
45
|
+
private clearAutoplay;
|
|
39
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrGalleryComponent<any>, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrGalleryComponent<any>, "dr-gallery", never, { "modeType": { "alias": "modeType"; "required": false; }; "isOutsideBtns": { "alias": "isOutsideBtns"; "required": false; }; "items": { "alias": "items"; "required": false; }; "itemsCount": { "alias": "itemsCount"; "required": false; }; }, {}, ["template"], never, true, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrGalleryComponent<any>, "dr-gallery", never, { "modeType": { "alias": "modeType"; "required": false; }; "isOutsideBtns": { "alias": "isOutsideBtns"; "required": false; }; "fadeIn": { "alias": "fadeIn"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "autoplayInterval": { "alias": "autoplayInterval"; "required": false; }; "items": { "alias": "items"; "required": false; }; "itemsCount": { "alias": "itemsCount"; "required": false; }; }, {}, ["template"], never, true, never>;
|
|
41
48
|
}
|
package/package.json
CHANGED
|
Binary file
|