@elxjs/ui 0.0.204 → 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.
@@ -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
  }
@@ -10,11 +10,11 @@ export declare class EluxCarouselComponent implements AfterContentInit, OnDestro
10
10
  dotsContainer: ElementRef;
11
11
  slidesContainer: ElementRef;
12
12
  itemsPerSlide: number;
13
+ gap: number;
13
14
  title: string;
14
15
  previousClickEventEmitter: EventEmitter<Event>;
15
16
  nextClickEventEmitter: EventEmitter<Event>;
16
17
  dotClickEventEmitter: EventEmitter<Event>;
17
- currentIndex: number;
18
18
  currentStepIndex: number;
19
19
  offset: number;
20
20
  private isDragging;
@@ -23,43 +23,55 @@ export declare class EluxCarouselComponent implements AfterContentInit, OnDestro
23
23
  private initialOffset;
24
24
  private dragOffset;
25
25
  private containerWidth;
26
- private itemWidth;
27
26
  private maxOffset;
28
27
  private minOffset;
29
- private animationId;
30
28
  private velocity;
31
29
  private lastMoveTime;
32
30
  private lastMoveX;
33
- private touchStartTime;
34
- private touchStartX;
35
- private touchStartY;
31
+ private pointerStartTime;
32
+ private pointerStartX;
33
+ private pointerStartY;
34
+ private pointerDownType;
35
+ private activePointerId;
36
36
  private isVerticalScroll;
37
- private wasDragging;
38
37
  private clicksDisabled;
39
38
  private clickListeners;
40
- private dragStarted;
41
- private mouseDownTime;
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;
42
52
  constructor(renderer: Renderer2);
43
53
  ngAfterContentInit(): void;
44
54
  ngOnDestroy(): void;
55
+ private refreshLayout;
45
56
  private calculateDimensions;
46
57
  private updateLimits;
58
+ private getPageWidthPercent;
59
+ private getTotalSteps;
47
60
  canGoNext(): boolean;
48
61
  canGoPrevious(): boolean;
49
62
  private onResize;
50
63
  private setItemWidths;
51
- onMouseDown(event: MouseEvent): void;
52
- onMouseMove(event: MouseEvent): void;
53
- onMouseUp(event: MouseEvent): void;
54
- onMouseLeave(event: MouseEvent): void;
55
- onTouchStart(event: TouchEvent): void;
56
- onTouchMove(event: TouchEvent): void;
57
- 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;
58
69
  private setupClickPrevention;
59
70
  private startDrag;
60
71
  private updateDrag;
61
72
  private updateDragPosition;
62
73
  private endDrag;
74
+ private setSlidesTransition;
63
75
  getStepIndexCount(): number[];
64
76
  getCurrentStepIndex(): number;
65
77
  goToFirstSlide(): void;
@@ -69,5 +81,5 @@ export declare class EluxCarouselComponent implements AfterContentInit, OnDestro
69
81
  updateOffset(): void;
70
82
  private scrollActiveDotIntoView;
71
83
  static ɵfac: i0.ɵɵFactoryDeclaration<EluxCarouselComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<EluxCarouselComponent, "lib-elux-carousel", never, { "itemsPerSlide": { "alias": "itemsPerSlide"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "previousClickEventEmitter": "previousClickEventEmitter"; "nextClickEventEmitter": "nextClickEventEmitter"; "dotClickEventEmitter": "dotClickEventEmitter"; }, ["items"], ["*"], true, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<EluxCarouselComponent, "lib-elux-carousel", never, { "itemsPerSlide": { "alias": "itemsPerSlide"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "previousClickEventEmitter": "previousClickEventEmitter"; "nextClickEventEmitter": "nextClickEventEmitter"; "dotClickEventEmitter": "dotClickEventEmitter"; }, ["items"], ["*"], true, never>;
73
85
  }
@@ -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 touchStartTime;
29
- private touchStartX;
30
- private touchStartY;
27
+ private pointerStartTime;
28
+ private pointerStartX;
29
+ private pointerStartY;
30
+ private pointerDownType;
31
+ private activePointerId;
31
32
  private isVerticalScroll;
32
- private wasDragging;
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
- onMouseDown(event: MouseEvent): void;
52
- onMouseMove(event: MouseEvent): void;
53
- onMouseUp(event: MouseEvent): void;
54
- onMouseLeave(event: MouseEvent): void;
55
- onTouchStart(event: TouchEvent): void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elxjs/ui",
3
- "version": "0.0.204",
3
+ "version": "0.0.206",
4
4
  "license": "UNLICENSED",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.2.13",