@elxjs/ui 0.0.205 → 0.0.206
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/esm2022/lib/components/card-benefit/card-benefit.component.mjs +6 -3
- package/esm2022/lib/components/carousel/carousel.component.mjs +123 -131
- package/esm2022/lib/components/carousel-bleed/carousel-bleed.component.mjs +93 -128
- package/fesm2022/elxjs-ui.mjs +219 -259
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/lib/components/card-benefit/card-benefit.component.d.ts +2 -1
- package/lib/components/carousel/carousel.component.d.ts +27 -16
- package/lib/components/carousel-bleed/carousel-bleed.component.d.ts +22 -16
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare class EluxCardBenefit {
|
|
|
7
7
|
imageAlt: string;
|
|
8
8
|
icon: string;
|
|
9
9
|
description: string;
|
|
10
|
+
link: string;
|
|
10
11
|
routerLink: string;
|
|
11
12
|
buttonText: string;
|
|
12
13
|
private readonly BREAK_VALUE;
|
|
@@ -16,5 +17,5 @@ export declare class EluxCardBenefit {
|
|
|
16
17
|
truncateDescription(description: string): string;
|
|
17
18
|
get descriptionHtml(): SafeHtml;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<EluxCardBenefit, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EluxCardBenefit, "lib-elux-card-benefit", never, { "title": { "alias": "title"; "required": false; }; "image": { "alias": "image"; "required": false; }; "imageAlt": { "alias": "imageAlt"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "description": { "alias": "description"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxCardBenefit, "lib-elux-card-benefit", never, { "title": { "alias": "title"; "required": false; }; "image": { "alias": "image"; "required": false; }; "imageAlt": { "alias": "imageAlt"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "description": { "alias": "description"; "required": false; }; "link": { "alias": "link"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
21
|
}
|
|
@@ -15,7 +15,6 @@ export declare class EluxCarouselComponent implements AfterContentInit, OnDestro
|
|
|
15
15
|
previousClickEventEmitter: EventEmitter<Event>;
|
|
16
16
|
nextClickEventEmitter: EventEmitter<Event>;
|
|
17
17
|
dotClickEventEmitter: EventEmitter<Event>;
|
|
18
|
-
currentIndex: number;
|
|
19
18
|
currentStepIndex: number;
|
|
20
19
|
offset: number;
|
|
21
20
|
private isDragging;
|
|
@@ -24,43 +23,55 @@ export declare class EluxCarouselComponent implements AfterContentInit, OnDestro
|
|
|
24
23
|
private initialOffset;
|
|
25
24
|
private dragOffset;
|
|
26
25
|
private containerWidth;
|
|
27
|
-
private itemWidth;
|
|
28
26
|
private maxOffset;
|
|
29
27
|
private minOffset;
|
|
30
|
-
private animationId;
|
|
31
28
|
private velocity;
|
|
32
29
|
private lastMoveTime;
|
|
33
30
|
private lastMoveX;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
31
|
+
private pointerStartTime;
|
|
32
|
+
private pointerStartX;
|
|
33
|
+
private pointerStartY;
|
|
34
|
+
private pointerDownType;
|
|
35
|
+
private activePointerId;
|
|
37
36
|
private isVerticalScroll;
|
|
38
|
-
private wasDragging;
|
|
39
37
|
private clicksDisabled;
|
|
40
38
|
private clickListeners;
|
|
41
|
-
private
|
|
42
|
-
private
|
|
39
|
+
private itemsChangesSubscription;
|
|
40
|
+
private hasDragged;
|
|
41
|
+
private readonly resizeHandler;
|
|
42
|
+
private readonly transitionDuration;
|
|
43
|
+
private readonly dragThresholdPx;
|
|
44
|
+
private readonly touchDragThresholdPx;
|
|
45
|
+
private readonly holdToDragThresholdMs;
|
|
46
|
+
private readonly touchDurationThresholdMs;
|
|
47
|
+
private readonly clickDisableDelayMs;
|
|
48
|
+
private readonly clearDraggedDelayMs;
|
|
49
|
+
private readonly slideChangeThresholdPx;
|
|
50
|
+
private readonly momentumThreshold;
|
|
51
|
+
private readonly edgeResistance;
|
|
43
52
|
constructor(renderer: Renderer2);
|
|
44
53
|
ngAfterContentInit(): void;
|
|
45
54
|
ngOnDestroy(): void;
|
|
55
|
+
private refreshLayout;
|
|
46
56
|
private calculateDimensions;
|
|
47
57
|
private updateLimits;
|
|
58
|
+
private getPageWidthPercent;
|
|
59
|
+
private getTotalSteps;
|
|
48
60
|
canGoNext(): boolean;
|
|
49
61
|
canGoPrevious(): boolean;
|
|
50
62
|
private onResize;
|
|
51
63
|
private setItemWidths;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
onTouchMove(event: TouchEvent): void;
|
|
58
|
-
onTouchEnd(event: TouchEvent): void;
|
|
64
|
+
onPointerDown(event: PointerEvent): void;
|
|
65
|
+
onPointerMove(event: PointerEvent): void;
|
|
66
|
+
onPointerUp(event: PointerEvent): void;
|
|
67
|
+
onPointerCancel(event: PointerEvent): void;
|
|
68
|
+
private resetPointerState;
|
|
59
69
|
private setupClickPrevention;
|
|
60
70
|
private startDrag;
|
|
61
71
|
private updateDrag;
|
|
62
72
|
private updateDragPosition;
|
|
63
73
|
private endDrag;
|
|
74
|
+
private setSlidesTransition;
|
|
64
75
|
getStepIndexCount(): number[];
|
|
65
76
|
getCurrentStepIndex(): number;
|
|
66
77
|
goToFirstSlide(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EluxCarouselBleedComponent implements AfterContentInit, OnDestroy {
|
|
3
|
+
export declare class EluxCarouselBleedComponent implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
4
4
|
private renderer;
|
|
5
5
|
items: QueryList<ElementRef>;
|
|
6
6
|
slidesContainer: ElementRef;
|
|
@@ -14,7 +14,6 @@ export declare class EluxCarouselBleedComponent implements AfterContentInit, OnD
|
|
|
14
14
|
currentIndex: number;
|
|
15
15
|
translateX: number;
|
|
16
16
|
private isDragging;
|
|
17
|
-
private isMouseDown;
|
|
18
17
|
private startX;
|
|
19
18
|
private currentX;
|
|
20
19
|
private initialTranslateX;
|
|
@@ -25,18 +24,25 @@ export declare class EluxCarouselBleedComponent implements AfterContentInit, OnD
|
|
|
25
24
|
private velocity;
|
|
26
25
|
private lastMoveTime;
|
|
27
26
|
private lastMoveX;
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
27
|
+
private pointerStartTime;
|
|
28
|
+
private pointerStartX;
|
|
29
|
+
private pointerStartY;
|
|
30
|
+
private pointerDownType;
|
|
31
|
+
private activePointerId;
|
|
31
32
|
private isVerticalScroll;
|
|
32
|
-
private
|
|
33
|
+
private hasDragged;
|
|
33
34
|
private clicksDisabled;
|
|
34
35
|
private clickListeners;
|
|
35
|
-
private dragStarted;
|
|
36
|
-
private mouseDownTime;
|
|
37
36
|
private resizeRafId;
|
|
38
37
|
private lastLeftOffset;
|
|
39
38
|
private lastScrollbarWidth;
|
|
39
|
+
private readonly transitionDuration;
|
|
40
|
+
private readonly dragThresholdPx;
|
|
41
|
+
private readonly touchDragThresholdPx;
|
|
42
|
+
private readonly holdToDragThresholdMs;
|
|
43
|
+
private readonly touchDurationThresholdMs;
|
|
44
|
+
private readonly clickDisableDelayMs;
|
|
45
|
+
private readonly clearDraggedDelayMs;
|
|
40
46
|
constructor(renderer: Renderer2);
|
|
41
47
|
private calculateBleedOffsets;
|
|
42
48
|
private scheduleResize;
|
|
@@ -48,17 +54,17 @@ export declare class EluxCarouselBleedComponent implements AfterContentInit, OnD
|
|
|
48
54
|
ngAfterViewInit(): void;
|
|
49
55
|
private setItemWidths;
|
|
50
56
|
private isDragStartAllowed;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
onTouchMove(event: TouchEvent): void;
|
|
57
|
-
onTouchEnd(event: TouchEvent): void;
|
|
57
|
+
onPointerDown(event: PointerEvent): void;
|
|
58
|
+
onPointerMove(event: PointerEvent): void;
|
|
59
|
+
onPointerUp(event: PointerEvent): void;
|
|
60
|
+
onPointerCancel(event: PointerEvent): void;
|
|
61
|
+
private resetPointerState;
|
|
58
62
|
private setupClickPrevention;
|
|
63
|
+
private startDrag;
|
|
59
64
|
private updateDrag;
|
|
60
65
|
private updateDragPosition;
|
|
61
66
|
private endDrag;
|
|
67
|
+
private setSlidesTransition;
|
|
62
68
|
private getMaxIndex;
|
|
63
69
|
canGoNext(): boolean;
|
|
64
70
|
private getPageStep;
|