@elxjs/ui 0.0.239 → 0.0.241
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/fesm2022/elxjs-ui.mjs +454 -7
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/index.d.ts +98 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -654,6 +654,101 @@ declare class EluxCarouselComponent implements AfterContentInit, OnDestroy {
|
|
|
654
654
|
static ɵcmp: i0.ɵɵComponentDeclaration<EluxCarouselComponent, "lib-elux-carousel", never, { "itemsPerSlide": { "alias": "itemsPerSlide"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "title": { "alias": "title"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "previousClickEventEmitter": "previousClickEventEmitter"; "nextClickEventEmitter": "nextClickEventEmitter"; "dotClickEventEmitter": "dotClickEventEmitter"; }, ["items"], ["*"], true, never>;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
type ProductItemD2C = {
|
|
658
|
+
name: string;
|
|
659
|
+
image: string;
|
|
660
|
+
};
|
|
661
|
+
type CarouselD2CTheme = 'theme1' | 'theme2';
|
|
662
|
+
declare class EluxCarouselD2CComponent implements AfterContentInit, OnDestroy {
|
|
663
|
+
private renderer;
|
|
664
|
+
items: QueryList<ElementRef>;
|
|
665
|
+
dotsContainer: ElementRef;
|
|
666
|
+
slidesContainer: ElementRef;
|
|
667
|
+
itemsPerSlide: number;
|
|
668
|
+
gap: number;
|
|
669
|
+
title: string;
|
|
670
|
+
theme: CarouselD2CTheme;
|
|
671
|
+
previousClickEventEmitter: EventEmitter<Event>;
|
|
672
|
+
nextClickEventEmitter: EventEmitter<Event>;
|
|
673
|
+
dotClickEventEmitter: EventEmitter<Event>;
|
|
674
|
+
currentStepIndex: number;
|
|
675
|
+
offset: number;
|
|
676
|
+
private isDragging;
|
|
677
|
+
private startX;
|
|
678
|
+
private currentX;
|
|
679
|
+
private initialOffset;
|
|
680
|
+
private dragOffset;
|
|
681
|
+
private containerWidth;
|
|
682
|
+
private maxOffset;
|
|
683
|
+
private minOffset;
|
|
684
|
+
private velocity;
|
|
685
|
+
private lastMoveTime;
|
|
686
|
+
private lastMoveX;
|
|
687
|
+
private pointerStartTime;
|
|
688
|
+
private pointerStartX;
|
|
689
|
+
private pointerStartY;
|
|
690
|
+
private pointerDownType;
|
|
691
|
+
private activePointerId;
|
|
692
|
+
private pointerCaptured;
|
|
693
|
+
private isVerticalScroll;
|
|
694
|
+
private clicksDisabled;
|
|
695
|
+
private clickListeners;
|
|
696
|
+
private itemsChangesSubscription;
|
|
697
|
+
private hasDragged;
|
|
698
|
+
private readonly resizeHandler;
|
|
699
|
+
private readonly windowPointerUpHandler;
|
|
700
|
+
private readonly windowPointerCancelHandler;
|
|
701
|
+
private readonly transitionDuration;
|
|
702
|
+
private readonly dragThresholdPx;
|
|
703
|
+
private readonly touchDragThresholdPx;
|
|
704
|
+
private readonly holdToDragThresholdMs;
|
|
705
|
+
private readonly touchDurationThresholdMs;
|
|
706
|
+
private readonly clickDisableDelayMs;
|
|
707
|
+
private readonly clearDraggedDelayMs;
|
|
708
|
+
private readonly slideChangeThresholdPx;
|
|
709
|
+
private readonly momentumThreshold;
|
|
710
|
+
private readonly edgeResistance;
|
|
711
|
+
constructor(renderer: Renderer2);
|
|
712
|
+
ngAfterContentInit(): void;
|
|
713
|
+
ngOnDestroy(): void;
|
|
714
|
+
private refreshLayout;
|
|
715
|
+
private calculateDimensions;
|
|
716
|
+
private updateLimits;
|
|
717
|
+
private getPageWidthPercent;
|
|
718
|
+
private getTotalSteps;
|
|
719
|
+
canGoNext(): boolean;
|
|
720
|
+
canGoPrevious(): boolean;
|
|
721
|
+
private onResize;
|
|
722
|
+
private setItemWidths;
|
|
723
|
+
onPointerDown(event: PointerEvent): void;
|
|
724
|
+
onPointerMove(event: PointerEvent): void;
|
|
725
|
+
onPointerUp(event: PointerEvent): void;
|
|
726
|
+
onPointerCancel(event: PointerEvent): void;
|
|
727
|
+
private onWindowPointerUp;
|
|
728
|
+
private onWindowPointerCancel;
|
|
729
|
+
onNativeDragStart(event: DragEvent): void;
|
|
730
|
+
private resetPointerState;
|
|
731
|
+
private addWindowPointerListeners;
|
|
732
|
+
private removeWindowPointerListeners;
|
|
733
|
+
private setupClickPrevention;
|
|
734
|
+
private startDrag;
|
|
735
|
+
private updateDrag;
|
|
736
|
+
private updateDragPosition;
|
|
737
|
+
private endDrag;
|
|
738
|
+
private cancelDrag;
|
|
739
|
+
private setSlidesTransition;
|
|
740
|
+
getStepIndexCount(): number[];
|
|
741
|
+
getCurrentStepIndex(): number;
|
|
742
|
+
goToFirstSlide(): void;
|
|
743
|
+
goToSlide(index: number): void;
|
|
744
|
+
prevSlide(): void;
|
|
745
|
+
nextSlide(): void;
|
|
746
|
+
updateOffset(): void;
|
|
747
|
+
private scrollActiveDotIntoView;
|
|
748
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EluxCarouselD2CComponent, never>;
|
|
749
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxCarouselD2CComponent, "lib-elux-carousel-d2c", never, { "itemsPerSlide": { "alias": "itemsPerSlide"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "title": { "alias": "title"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "previousClickEventEmitter": "previousClickEventEmitter"; "nextClickEventEmitter": "nextClickEventEmitter"; "dotClickEventEmitter": "dotClickEventEmitter"; }, ["items"], ["*"], true, never>;
|
|
750
|
+
}
|
|
751
|
+
|
|
657
752
|
declare class EluxCarouselFixedComponent implements AfterContentInit, OnDestroy {
|
|
658
753
|
private renderer;
|
|
659
754
|
items: QueryList<ElementRef>;
|
|
@@ -1088,9 +1183,9 @@ declare const ElectroluxComponents: Type<any>[];
|
|
|
1088
1183
|
|
|
1089
1184
|
declare class ElectroluxDesignSystemModule {
|
|
1090
1185
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElectroluxDesignSystemModule, never>;
|
|
1091
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElectroluxDesignSystemModule, never, [typeof i1.CommonModule, typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover], [typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover]>;
|
|
1186
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElectroluxDesignSystemModule, never, [typeof i1.CommonModule, typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxCarouselD2CComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover], [typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxCarouselD2CComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover]>;
|
|
1092
1187
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElectroluxDesignSystemModule>;
|
|
1093
1188
|
}
|
|
1094
1189
|
|
|
1095
|
-
export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardEcommerce, EluxCardEcommerceVertical, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxPopover, EluxStepBar, EluxSwitch, EluxToDoList, EluxToast, ToasterService };
|
|
1096
|
-
export type { BreadCrumbRoute, CarouselBleedTheme, CarouselTheme, DataTableAction, DataTableActionEvent, DataTableCell, DataTableCellClickEvent, DataTableCheckEvent, DataTableCheckbox, DataTableClickEvent, DataTableHeader, DataTableInput, DataTableInputNumber, DataTableInputQuantity, DataTableRedirect, DataTableRow, DataTableRowClickEvent, DataTableValue, DatatableInputEvent, Day, DefaultCell, DropdownOption, EluxCardEcommerceInstallment, EluxToDoItems, Month, Page, PaginationEvent, PopoverPosition, ProductItem, ServiceOrderCardData, Year };
|
|
1190
|
+
export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardEcommerce, EluxCardEcommerceVertical, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselD2CComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxPopover, EluxStepBar, EluxSwitch, EluxToDoList, EluxToast, ToasterService };
|
|
1191
|
+
export type { BreadCrumbRoute, CarouselBleedTheme, CarouselD2CTheme, CarouselTheme, DataTableAction, DataTableActionEvent, DataTableCell, DataTableCellClickEvent, DataTableCheckEvent, DataTableCheckbox, DataTableClickEvent, DataTableHeader, DataTableInput, DataTableInputNumber, DataTableInputQuantity, DataTableRedirect, DataTableRow, DataTableRowClickEvent, DataTableValue, DatatableInputEvent, Day, DefaultCell, DropdownOption, EluxCardEcommerceInstallment, EluxToDoItems, Month, Page, PaginationEvent, PopoverPosition, ProductItem, ProductItemD2C, ServiceOrderCardData, Year };
|