@elxjs/ui 0.0.208 → 0.0.210
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/accordion/accordion.component.mjs +51 -9
- package/esm2022/lib/components/card-benefit/card-benefit.component.mjs +4 -6
- package/esm2022/lib/components/carousel/carousel.component.mjs +23 -9
- package/fesm2022/elxjs-ui.mjs +87 -29
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +13 -2
- package/lib/components/carousel/carousel.component.d.ts +2 -0
- package/package.json +1 -1
package/fesm2022/elxjs-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewChild, Input, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, ElementRef, ContentChildren, NgModule } from '@angular/core';
|
|
2
|
+
import { Component, ViewChild, Input, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, ChangeDetectionStrategy, ElementRef, ContentChildren, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { ReactiveFormsModule, NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
@@ -1122,22 +1122,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1122
1122
|
|
|
1123
1123
|
class EluxAccordion {
|
|
1124
1124
|
constructor() {
|
|
1125
|
+
this.openState = false;
|
|
1125
1126
|
this.leftArrow = false;
|
|
1127
|
+
this.disabled = false;
|
|
1128
|
+
this.toggled = new EventEmitter();
|
|
1126
1129
|
this.toggleEventEmitter = new EventEmitter();
|
|
1127
|
-
this.
|
|
1130
|
+
this.bodyId = `elux-accordion-body-${EluxAccordion.nextId++}`;
|
|
1131
|
+
}
|
|
1132
|
+
static { this.nextId = 0; }
|
|
1133
|
+
get isOpen() {
|
|
1134
|
+
return this.openState;
|
|
1135
|
+
}
|
|
1136
|
+
set isOpen(value) {
|
|
1137
|
+
this.openState = this.coerceBoolean(value);
|
|
1138
|
+
}
|
|
1139
|
+
get iconName() {
|
|
1140
|
+
return this.isOpen ? 'Chevron_Up.svg' : 'Chevron_Down.svg';
|
|
1141
|
+
}
|
|
1142
|
+
get ariaExpanded() {
|
|
1143
|
+
return this.isOpen ? 'true' : 'false';
|
|
1128
1144
|
}
|
|
1129
1145
|
toggle() {
|
|
1130
|
-
this.
|
|
1131
|
-
|
|
1146
|
+
if (this.disabled) {
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
this.setOpenState(!this.isOpen);
|
|
1150
|
+
}
|
|
1151
|
+
onHeaderKeydown(event) {
|
|
1152
|
+
if (this.disabled) {
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
1156
|
+
event.preventDefault();
|
|
1157
|
+
this.toggle();
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
setOpenState(value) {
|
|
1161
|
+
if (this.openState === value) {
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
this.openState = value;
|
|
1165
|
+
this.toggled.emit(this.openState);
|
|
1166
|
+
this.toggleEventEmitter.emit(this.openState);
|
|
1167
|
+
}
|
|
1168
|
+
coerceBoolean(value) {
|
|
1169
|
+
return value != null && `${value}` !== 'false';
|
|
1132
1170
|
}
|
|
1133
1171
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1134
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxAccordion, isStandalone: true, selector: "lib-elux-accordion", inputs: { leftArrow: "leftArrow" }, outputs: { toggleEventEmitter: "toggleEventEmitter" }, ngImport: i0, template: "<div class=\"accordion\">\n <div
|
|
1172
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxAccordion, isStandalone: true, selector: "lib-elux-accordion", inputs: { leftArrow: "leftArrow", disabled: "disabled", isOpen: "isOpen" }, outputs: { toggled: "toggled", toggleEventEmitter: "toggleEventEmitter" }, ngImport: i0, template: "<div class=\"accordion\">\n <div\n class=\"accordion-header\"\n [class.left-arrow]=\"leftArrow\"\n [class.disabled]=\"disabled\"\n [class.open]=\"isOpen\"\n role=\"button\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"bodyId\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <lib-elux-icon\n class=\"header-icon\"\n [class.start]=\"leftArrow\"\n [class.end]=\"!leftArrow\"\n [icon]=\"iconName\"\n [color]=\"'#011E41'\"\n [size]=\"'24'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <div class=\"accordion-title\">\n <ng-content select=\"[header]\"></ng-content>\n </div>\n </div>\n <div class=\"accordion-body\" [id]=\"bodyId\" [class.open]=\"isOpen\" [attr.aria-hidden]=\"!isOpen\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1,:host .accordion-header{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1,:host .accordion-header{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host .accordion{border:1px solid #ADB9C3}:host .accordion-header{display:flex;align-items:center;padding:16px;color:#011e41;cursor:pointer}:host .accordion-header:not(.left-arrow){justify-content:space-between}:host .accordion-header.disabled{cursor:not-allowed;opacity:.7}:host .accordion-title{order:1;flex:1}:host .header-icon{flex-shrink:0}:host .header-icon.start{order:0;margin-right:16px}:host .header-icon.end{order:2;margin-left:16px}:host .accordion-body{display:none;padding:16px}:host .accordion-body.open{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1135
1173
|
}
|
|
1136
1174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxAccordion, decorators: [{
|
|
1137
1175
|
type: Component,
|
|
1138
|
-
args: [{ selector: 'lib-elux-accordion', standalone: true, imports: [CommonModule,
|
|
1176
|
+
args: [{ selector: 'lib-elux-accordion', standalone: true, imports: [CommonModule, EluxIcon], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"accordion\">\n <div\n class=\"accordion-header\"\n [class.left-arrow]=\"leftArrow\"\n [class.disabled]=\"disabled\"\n [class.open]=\"isOpen\"\n role=\"button\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"bodyId\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <lib-elux-icon\n class=\"header-icon\"\n [class.start]=\"leftArrow\"\n [class.end]=\"!leftArrow\"\n [icon]=\"iconName\"\n [color]=\"'#011E41'\"\n [size]=\"'24'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <div class=\"accordion-title\">\n <ng-content select=\"[header]\"></ng-content>\n </div>\n </div>\n <div class=\"accordion-body\" [id]=\"bodyId\" [class.open]=\"isOpen\" [attr.aria-hidden]=\"!isOpen\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1,:host .accordion-header{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1,:host .accordion-header{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host .accordion{border:1px solid #ADB9C3}:host .accordion-header{display:flex;align-items:center;padding:16px;color:#011e41;cursor:pointer}:host .accordion-header:not(.left-arrow){justify-content:space-between}:host .accordion-header.disabled{cursor:not-allowed;opacity:.7}:host .accordion-title{order:1;flex:1}:host .header-icon{flex-shrink:0}:host .header-icon.start{order:0;margin-right:16px}:host .header-icon.end{order:2;margin-left:16px}:host .accordion-body{display:none;padding:16px}:host .accordion-body.open{display:block}\n"] }]
|
|
1139
1177
|
}], propDecorators: { leftArrow: [{
|
|
1140
1178
|
type: Input
|
|
1179
|
+
}], disabled: [{
|
|
1180
|
+
type: Input
|
|
1181
|
+
}], isOpen: [{
|
|
1182
|
+
type: Input
|
|
1183
|
+
}], toggled: [{
|
|
1184
|
+
type: Output
|
|
1141
1185
|
}], toggleEventEmitter: [{
|
|
1142
1186
|
type: Output
|
|
1143
1187
|
}] } });
|
|
@@ -1455,16 +1499,19 @@ class EluxCarouselComponent {
|
|
|
1455
1499
|
const deltaX = Math.abs(event.clientX - this.pointerStartX);
|
|
1456
1500
|
const deltaY = Math.abs(event.clientY - this.pointerStartY);
|
|
1457
1501
|
const isTouchLikePointer = this.pointerDownType !== 'mouse';
|
|
1502
|
+
const hasPassedThreshold = isTouchLikePointer
|
|
1503
|
+
? deltaX > this.touchDragThresholdPx
|
|
1504
|
+
: deltaX > this.dragThresholdPx;
|
|
1458
1505
|
if (isTouchLikePointer && deltaY > deltaX && deltaY > this.touchDragThresholdPx) {
|
|
1459
1506
|
this.isVerticalScroll = true;
|
|
1460
1507
|
this.isDragging = false;
|
|
1461
1508
|
this.setSlidesTransition(true);
|
|
1462
1509
|
return;
|
|
1463
1510
|
}
|
|
1464
|
-
if (
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1511
|
+
if (!hasPassedThreshold)
|
|
1512
|
+
return;
|
|
1513
|
+
event.preventDefault();
|
|
1514
|
+
this.updateDrag(event.clientX);
|
|
1468
1515
|
}
|
|
1469
1516
|
onPointerUp(event) {
|
|
1470
1517
|
if (this.activePointerId !== event.pointerId)
|
|
@@ -1492,11 +1539,13 @@ class EluxCarouselComponent {
|
|
|
1492
1539
|
if (this.activePointerId !== event.pointerId)
|
|
1493
1540
|
return;
|
|
1494
1541
|
if (this.isDragging) {
|
|
1495
|
-
this.
|
|
1496
|
-
this.endDrag();
|
|
1542
|
+
this.cancelDrag();
|
|
1497
1543
|
}
|
|
1498
1544
|
this.resetPointerState(event.pointerId);
|
|
1499
1545
|
}
|
|
1546
|
+
onNativeDragStart(event) {
|
|
1547
|
+
event.preventDefault();
|
|
1548
|
+
}
|
|
1500
1549
|
resetPointerState(pointerId) {
|
|
1501
1550
|
if (this.pointerDownType !== 'mouse' &&
|
|
1502
1551
|
this.slidesContainer?.nativeElement?.releasePointerCapture) {
|
|
@@ -1630,6 +1679,15 @@ class EluxCarouselComponent {
|
|
|
1630
1679
|
this.dragOffset = 0;
|
|
1631
1680
|
this.velocity = 0;
|
|
1632
1681
|
}
|
|
1682
|
+
cancelDrag() {
|
|
1683
|
+
if (!this.isDragging)
|
|
1684
|
+
return;
|
|
1685
|
+
this.isDragging = false;
|
|
1686
|
+
this.dragOffset = 0;
|
|
1687
|
+
this.velocity = 0;
|
|
1688
|
+
this.setSlidesTransition(true);
|
|
1689
|
+
this.updateOffset();
|
|
1690
|
+
}
|
|
1633
1691
|
setSlidesTransition(enabled) {
|
|
1634
1692
|
if (!this.slidesContainer)
|
|
1635
1693
|
return;
|
|
@@ -1693,11 +1751,11 @@ class EluxCarouselComponent {
|
|
|
1693
1751
|
});
|
|
1694
1752
|
}
|
|
1695
1753
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1696
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselComponent, isStandalone: true, selector: "lib-elux-carousel", inputs: { itemsPerSlide: "itemsPerSlide", gap: "gap", title: "title", theme: "theme" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "dotsContainer", first: true, predicate: ["dotsContainer"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"c-carousel-container\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-container.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;align-items:center;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:7px;width:7px;margin:0 5px;background-color:var(--carousel-dot-inactive);border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{width:10px;height:10px;background-color:var(--carousel-dot-active)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
1754
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselComponent, isStandalone: true, selector: "lib-elux-carousel", inputs: { itemsPerSlide: "itemsPerSlide", gap: "gap", title: "title", theme: "theme" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "dotsContainer", first: true, predicate: ["dotsContainer"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"c-carousel-container\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (dragstart)=\"onNativeDragStart($event)\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-container.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;align-items:center;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:7px;width:7px;margin:0 5px;background-color:var(--carousel-dot-inactive);border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{width:10px;height:10px;background-color:var(--carousel-dot-active)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
1697
1755
|
}
|
|
1698
1756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselComponent, decorators: [{
|
|
1699
1757
|
type: Component,
|
|
1700
|
-
args: [{ standalone: true, selector: 'lib-elux-carousel', imports: [CommonModule, EluxIcon], template: "<div\n class=\"c-carousel-container\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-container.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;align-items:center;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:7px;width:7px;margin:0 5px;background-color:var(--carousel-dot-inactive);border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{width:10px;height:10px;background-color:var(--carousel-dot-active)}\n"] }]
|
|
1758
|
+
args: [{ standalone: true, selector: 'lib-elux-carousel', imports: [CommonModule, EluxIcon], template: "<div\n class=\"c-carousel-container\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (dragstart)=\"onNativeDragStart($event)\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-container.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;align-items:center;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:7px;width:7px;margin:0 5px;background-color:var(--carousel-dot-inactive);border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{width:10px;height:10px;background-color:var(--carousel-dot-active)}\n"] }]
|
|
1701
1759
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { items: [{
|
|
1702
1760
|
type: ContentChildren,
|
|
1703
1761
|
args: ['carouselItem', { read: ElementRef }]
|
|
@@ -2429,19 +2487,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2429
2487
|
type: Input
|
|
2430
2488
|
}] } });
|
|
2431
2489
|
|
|
2432
|
-
class ElectroluxDesignSystemModule {
|
|
2433
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2434
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, imports: [CommonModule, EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxSwitch, EluxChip], exports: [EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxSwitch, EluxChip] }); }
|
|
2435
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, imports: [CommonModule, EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxChip] }); }
|
|
2436
|
-
}
|
|
2437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, decorators: [{
|
|
2438
|
-
type: NgModule,
|
|
2439
|
-
args: [{
|
|
2440
|
-
imports: [CommonModule, ...ElectroluxComponents],
|
|
2441
|
-
exports: [...ElectroluxComponents],
|
|
2442
|
-
}]
|
|
2443
|
-
}] });
|
|
2444
|
-
|
|
2445
2490
|
class EluxCardBenefit {
|
|
2446
2491
|
constructor(sanitizer) {
|
|
2447
2492
|
this.sanitizer = sanitizer;
|
|
@@ -2469,11 +2514,11 @@ class EluxCardBenefit {
|
|
|
2469
2514
|
return this.sanitizer.bypassSecurityTrustHtml(this.description || '');
|
|
2470
2515
|
}
|
|
2471
2516
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardBenefit, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2472
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardBenefit, isStandalone: true, selector: "lib-elux-card-benefit", inputs: { title: "title", image: "image", imageAlt: "imageAlt", icon: "icon", description: "description", link: "link", routerLink: "routerLink", buttonText: "buttonText" }, ngImport: i0, template: "<
|
|
2517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardBenefit, isStandalone: true, selector: "lib-elux-card-benefit", inputs: { title: "title", image: "image", imageAlt: "imageAlt", icon: "icon", description: "description", link: "link", routerLink: "routerLink", buttonText: "buttonText" }, ngImport: i0, template: "<ng-container *ngIf=\"routerLink; else externalCard\">\n <a class=\"card-benefit\" [routerLink]=\"routerLink\">\n <ng-container *ngTemplateOutlet=\"cardBenefitContent\"></ng-container>\n </a>\n</ng-container>\n\n<ng-template #externalCard>\n <a\n class=\"card-benefit\"\n [attr.href]=\"link || null\"\n [attr.target]=\"link ? '_blank' : null\"\n [attr.rel]=\"link ? 'noopener noreferrer' : null\"\n >\n <ng-container *ngTemplateOutlet=\"cardBenefitContent\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #cardBenefitContent>\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</ng-template>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxButton, selector: "lib-elux-button", inputs: ["disabled", "type", "typeButton", "content", "done", "routerLink", "link", "size", "icon", "iconAlign", "externalLink", "loading", "onlyfirstLetterUpper", "rounded"], outputs: ["onClick"] }] }); }
|
|
2473
2518
|
}
|
|
2474
2519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardBenefit, decorators: [{
|
|
2475
2520
|
type: Component,
|
|
2476
|
-
args: [{ standalone: true, imports: [RouterModule, CommonModule,
|
|
2521
|
+
args: [{ standalone: true, imports: [RouterModule, CommonModule, EluxButton], selector: 'lib-elux-card-benefit', template: "<ng-container *ngIf=\"routerLink; else externalCard\">\n <a class=\"card-benefit\" [routerLink]=\"routerLink\">\n <ng-container *ngTemplateOutlet=\"cardBenefitContent\"></ng-container>\n </a>\n</ng-container>\n\n<ng-template #externalCard>\n <a\n class=\"card-benefit\"\n [attr.href]=\"link || null\"\n [attr.target]=\"link ? '_blank' : null\"\n [attr.rel]=\"link ? 'noopener noreferrer' : null\"\n >\n <ng-container *ngTemplateOutlet=\"cardBenefitContent\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #cardBenefitContent>\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</ng-template>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"] }]
|
|
2477
2522
|
}], ctorParameters: () => [{ type: i1$2.DomSanitizer }], propDecorators: { title: [{
|
|
2478
2523
|
type: Input
|
|
2479
2524
|
}], image: [{
|
|
@@ -3159,6 +3204,19 @@ const ElectroluxComponents = [
|
|
|
3159
3204
|
EluxChip,
|
|
3160
3205
|
];
|
|
3161
3206
|
|
|
3207
|
+
class ElectroluxDesignSystemModule {
|
|
3208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3209
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, imports: [CommonModule, EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxSwitch, EluxChip], exports: [EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxSwitch, EluxChip] }); }
|
|
3210
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, imports: [CommonModule, EluxBreadcrumb, EluxButton, EluxDatepicker, EluxDropdown, EluxIcon, EluxPaginator, EluxStepBar, EluxToast, EluxDataTable, EluxAccordion, EluxModal, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxDropdownMultiple, EluxCarouselComponent, EluxChip] }); }
|
|
3211
|
+
}
|
|
3212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ElectroluxDesignSystemModule, decorators: [{
|
|
3213
|
+
type: NgModule,
|
|
3214
|
+
args: [{
|
|
3215
|
+
imports: [CommonModule, ...ElectroluxComponents],
|
|
3216
|
+
exports: [...ElectroluxComponents],
|
|
3217
|
+
}]
|
|
3218
|
+
}] });
|
|
3219
|
+
|
|
3162
3220
|
/**
|
|
3163
3221
|
* Generated bundle index. Do not edit.
|
|
3164
3222
|
*/
|