@elxjs/ui 0.0.215 → 0.0.217
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-article/card-article.component.mjs +2 -2
- package/esm2022/lib/components/card-manual/card-manual.component.mjs +3 -3
- package/esm2022/lib/components/card-product-2/card-product-2.component.mjs +3 -3
- package/esm2022/lib/components/carousel/carousel.component.mjs +42 -3
- package/esm2022/lib/components/carousel-bleed/carousel-bleed.component.mjs +43 -3
- package/fesm2022/elxjs-ui.mjs +89 -10
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/lib/components/carousel/carousel.component.d.ts +7 -0
- package/lib/components/carousel-bleed/carousel-bleed.component.d.ts +7 -0
- package/package.json +1 -1
package/fesm2022/elxjs-ui.mjs
CHANGED
|
@@ -1400,12 +1400,15 @@ class EluxCarouselComponent {
|
|
|
1400
1400
|
this.pointerStartY = 0;
|
|
1401
1401
|
this.pointerDownType = 'mouse';
|
|
1402
1402
|
this.activePointerId = null;
|
|
1403
|
+
this.pointerCaptured = false;
|
|
1403
1404
|
this.isVerticalScroll = false;
|
|
1404
1405
|
this.clicksDisabled = false;
|
|
1405
1406
|
this.clickListeners = [];
|
|
1406
1407
|
this.itemsChangesSubscription = null;
|
|
1407
1408
|
this.hasDragged = false;
|
|
1408
1409
|
this.resizeHandler = () => this.onResize();
|
|
1410
|
+
this.windowPointerUpHandler = (event) => this.onWindowPointerUp(event);
|
|
1411
|
+
this.windowPointerCancelHandler = (event) => this.onWindowPointerCancel(event);
|
|
1409
1412
|
this.transitionDuration = 'transform 0.4s ease-out';
|
|
1410
1413
|
this.dragThresholdPx = 5;
|
|
1411
1414
|
this.touchDragThresholdPx = 10;
|
|
@@ -1431,6 +1434,7 @@ class EluxCarouselComponent {
|
|
|
1431
1434
|
ngOnDestroy() {
|
|
1432
1435
|
this.itemsChangesSubscription?.unsubscribe();
|
|
1433
1436
|
this.itemsChangesSubscription = null;
|
|
1437
|
+
this.removeWindowPointerListeners();
|
|
1434
1438
|
// Clean up click listeners
|
|
1435
1439
|
this.clickListeners.forEach(unlisten => unlisten());
|
|
1436
1440
|
this.clickListeners = [];
|
|
@@ -1487,8 +1491,11 @@ class EluxCarouselComponent {
|
|
|
1487
1491
|
this.pointerStartX = event.clientX;
|
|
1488
1492
|
this.pointerStartY = event.clientY;
|
|
1489
1493
|
this.isVerticalScroll = false;
|
|
1490
|
-
|
|
1494
|
+
this.addWindowPointerListeners();
|
|
1495
|
+
this.pointerCaptured = false;
|
|
1496
|
+
if (event.pointerType !== 'mouse' && this.slidesContainer?.nativeElement?.setPointerCapture) {
|
|
1491
1497
|
this.slidesContainer.nativeElement.setPointerCapture(event.pointerId);
|
|
1498
|
+
this.pointerCaptured = true;
|
|
1492
1499
|
}
|
|
1493
1500
|
this.startDrag(event.clientX);
|
|
1494
1501
|
}
|
|
@@ -1542,15 +1549,47 @@ class EluxCarouselComponent {
|
|
|
1542
1549
|
}
|
|
1543
1550
|
this.resetPointerState(event.pointerId);
|
|
1544
1551
|
}
|
|
1552
|
+
onWindowPointerUp(event) {
|
|
1553
|
+
if (this.activePointerId !== event.pointerId)
|
|
1554
|
+
return;
|
|
1555
|
+
if (!this.isDragging) {
|
|
1556
|
+
this.resetPointerState(event.pointerId);
|
|
1557
|
+
return;
|
|
1558
|
+
}
|
|
1559
|
+
if (this.isVerticalScroll) {
|
|
1560
|
+
this.resetPointerState(event.pointerId);
|
|
1561
|
+
return;
|
|
1562
|
+
}
|
|
1563
|
+
this.endDrag();
|
|
1564
|
+
this.resetPointerState(event.pointerId);
|
|
1565
|
+
}
|
|
1566
|
+
onWindowPointerCancel(event) {
|
|
1567
|
+
if (this.activePointerId !== event.pointerId)
|
|
1568
|
+
return;
|
|
1569
|
+
if (this.isDragging) {
|
|
1570
|
+
this.cancelDrag();
|
|
1571
|
+
}
|
|
1572
|
+
this.resetPointerState(event.pointerId);
|
|
1573
|
+
}
|
|
1545
1574
|
onNativeDragStart(event) {
|
|
1546
1575
|
event.preventDefault();
|
|
1547
1576
|
}
|
|
1548
1577
|
resetPointerState(pointerId) {
|
|
1549
|
-
if (this.slidesContainer?.nativeElement?.releasePointerCapture) {
|
|
1578
|
+
if (this.pointerCaptured && this.slidesContainer?.nativeElement?.releasePointerCapture) {
|
|
1550
1579
|
this.slidesContainer.nativeElement.releasePointerCapture(pointerId);
|
|
1551
1580
|
}
|
|
1552
1581
|
this.activePointerId = null;
|
|
1582
|
+
this.pointerCaptured = false;
|
|
1553
1583
|
this.isVerticalScroll = false;
|
|
1584
|
+
this.removeWindowPointerListeners();
|
|
1585
|
+
}
|
|
1586
|
+
addWindowPointerListeners() {
|
|
1587
|
+
window.addEventListener('pointerup', this.windowPointerUpHandler, true);
|
|
1588
|
+
window.addEventListener('pointercancel', this.windowPointerCancelHandler, true);
|
|
1589
|
+
}
|
|
1590
|
+
removeWindowPointerListeners() {
|
|
1591
|
+
window.removeEventListener('pointerup', this.windowPointerUpHandler, true);
|
|
1592
|
+
window.removeEventListener('pointercancel', this.windowPointerCancelHandler, true);
|
|
1554
1593
|
}
|
|
1555
1594
|
setupClickPrevention() {
|
|
1556
1595
|
// Clean up existing listeners
|
|
@@ -2473,11 +2512,11 @@ class EluxCardProduct2 {
|
|
|
2473
2512
|
return this.orientation === 'vertical';
|
|
2474
2513
|
}
|
|
2475
2514
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2476
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardProduct2, isStandalone: true, selector: "lib-elux-card-product-2", inputs: { productCode: "productCode", productDescription: "productDescription", productVoltage: "productVoltage", productImage: "productImage", redirectUrl: "redirectUrl", orientation: "orientation" }, ngImport: i0, template: "<div class=\"product-card\" [ngClass]=\"{ 'is-vertical': isVertical, 'is-horizontal': !isVertical }\">\n <div class=\"background-blue product-layout\">\n <div class=\"product-image-column text-center background-white\">\n <div class=\"product-image-wrapper\">\n <span *ngIf=\"productVoltage\" class=\"voltage-badge\">{{ productVoltage }}</span>\n <img\n [src]=\"productImage\"\n [alt]=\"productDescription | titlecase\"\n class=\"product-image img-fluid\"\n />\n </div>\n </div>\n\n <div class=\"product-content-column\">\n <div class=\"product-details\">\n <p class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n class=\"access-link d-inline-flex align-items-center\"\n >\n <lib-elux-icon [icon]=\"'Link.svg'\" [color]=\"'#011e41'\" [size]=\"'18'\" class=\"me-2\" />\n Acessar seus produtos registrados\n </a>\n </div>\n </div>\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}}.product-card{box-shadow:0 4px 16px #0000001a;height:100%;display:flex;position:relative}.product-card .row{margin-left:0;margin-right:0}.product-card .product-layout{display:flex;flex:1;height:100%}.product-card .product-image-column,.product-card .product-content-column{width:100%}.product-card .product-content-column{display:flex;flex-direction:column}.product-card .background-blue{background-color:#e1e8eb}.product-card .background-white{background-color:#fff}.product-card .product-image-wrapper .voltage-badge{position:absolute;top:8px;left:8px;background-color:#3d5275;color:#fff;font-size:14px;font-weight:600;padding:4px 12px;border-radius:4px;z-index:1}.product-card .product-image-wrapper .product-image{width:100%;max-width:250px;height:auto;max-height:250px;object-fit:contain;display:block;margin:0 auto}.product-card .product-details{padding:16px;flex:1;margin:0}.product-card .product-details .product-code{color:#596b86;margin-bottom:8px;font-size:18px;font-style:normal;font-weight:400;line-height:21px}.product-card .product-details .product-name{color:#011e41;margin-bottom:16px;font-size:24px;font-style:normal;font-weight:600;line-height:29px}.product-card .product-details .access-link{color:#011e41;font-size:18px;font-style:normal;font-weight:400;line-height:27px;text-decoration:underline}.product-card.is-horizontal .product-layout{flex-direction:row;align-items:stretch;flex-wrap:nowrap}.product-card.is-horizontal .product-image-column{flex:0 0 33.333333%;max-width:33.333333%;display:flex;align-items:center;justify-content:center}.product-card.is-horizontal .product-content-column{flex:0 0 66.666667%;max-width:66.666667%}.product-card.is-horizontal .product-details{display:flex;flex-direction:column;justify-content:center}.product-card.is-vertical .product-layout{flex-direction:column;align-items:stretch}.product-card.is-vertical .product-image-column,.product-card.is-vertical .product-content-column{flex:0 0 100%;max-width:100%}.product-card.is-vertical .product-image-column{flex:0 0 auto}.product-card.is-vertical .product-content-column{flex:1 1 auto}.product-card.is-vertical .product-image-wrapper .product-image{max-height:230px}.product-card.is-vertical .product-details{padding:16px}.product-card.is-vertical .product-details .product-code{font-size:16px;line-height:19px}.product-card.is-vertical .product-details .product-name{font-size:18px;line-height:22px}.product-card.is-vertical .product-details .access-link{font-size:16px;line-height:24px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
2515
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardProduct2, isStandalone: true, selector: "lib-elux-card-product-2", inputs: { productCode: "productCode", productDescription: "productDescription", productVoltage: "productVoltage", productImage: "productImage", redirectUrl: "redirectUrl", orientation: "orientation" }, ngImport: i0, template: "<div class=\"product-card\" [ngClass]=\"{ 'is-vertical': isVertical, 'is-horizontal': !isVertical }\">\n <div class=\"background-blue product-layout\">\n <div class=\"product-image-column text-center background-white\">\n <div class=\"product-image-wrapper\">\n <span *ngIf=\"productVoltage\" class=\"voltage-badge\">{{ productVoltage }}</span>\n <img\n [src]=\"productImage\"\n [alt]=\"productDescription | titlecase\"\n class=\"product-image img-fluid\"\n />\n </div>\n </div>\n\n <div class=\"product-content-column\">\n <div class=\"product-details\">\n <p class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n class=\"access-link d-inline-flex align-items-center\"\n >\n <lib-elux-icon [icon]=\"'Link.svg'\" [color]=\"'#011e41'\" [size]=\"'18'\" class=\"me-2\" />\n Acessar seus produtos registrados\n </a>\n </div>\n </div>\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}}.product-card{box-shadow:0 4px 16px #0000001a;height:100%;display:flex;position:relative;transition:transform .3s ease,box-shadow .3s ease}.product-card:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.product-card .row{margin-left:0;margin-right:0}.product-card .product-layout{display:flex;flex:1;height:100%}.product-card .product-image-column,.product-card .product-content-column{width:100%}.product-card .product-content-column{display:flex;flex-direction:column}.product-card .background-blue{background-color:#e1e8eb}.product-card .background-white{background-color:#fff}.product-card .product-image-wrapper .voltage-badge{position:absolute;top:8px;left:8px;background-color:#3d5275;color:#fff;font-size:14px;font-weight:600;padding:4px 12px;border-radius:4px;z-index:1}.product-card .product-image-wrapper .product-image{width:100%;max-width:250px;height:auto;max-height:250px;object-fit:contain;display:block;margin:0 auto}.product-card .product-details{padding:16px;flex:1;margin:0}.product-card .product-details .product-code{color:#596b86;margin-bottom:8px;font-size:18px;font-style:normal;font-weight:400;line-height:21px}.product-card .product-details .product-name{color:#011e41;margin-bottom:16px;font-size:24px;font-style:normal;font-weight:600;line-height:29px}.product-card .product-details .access-link{color:#011e41;font-size:18px;font-style:normal;font-weight:400;line-height:27px;text-decoration:underline}.product-card.is-horizontal .product-layout{flex-direction:row;align-items:stretch;flex-wrap:nowrap}.product-card.is-horizontal .product-image-column{flex:0 0 33.333333%;max-width:33.333333%;display:flex;align-items:center;justify-content:center}.product-card.is-horizontal .product-content-column{flex:0 0 66.666667%;max-width:66.666667%}.product-card.is-horizontal .product-details{display:flex;flex-direction:column;justify-content:center}.product-card.is-vertical .product-layout{flex-direction:column;align-items:stretch}.product-card.is-vertical .product-image-column,.product-card.is-vertical .product-content-column{flex:0 0 100%;max-width:100%}.product-card.is-vertical .product-image-column{flex:0 0 auto}.product-card.is-vertical .product-content-column{flex:1 1 auto}.product-card.is-vertical .product-image-wrapper .product-image{max-height:230px}.product-card.is-vertical .product-details{padding:16px}.product-card.is-vertical .product-details .product-code{font-size:16px;line-height:19px}.product-card.is-vertical .product-details .product-name{font-size:18px;line-height:22px}.product-card.is-vertical .product-details .access-link{font-size:16px;line-height:24px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
2477
2516
|
}
|
|
2478
2517
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, decorators: [{
|
|
2479
2518
|
type: Component,
|
|
2480
|
-
args: [{ selector: 'lib-elux-card-product-2', standalone: true, imports: [CommonModule, EluxIcon, RouterLink], template: "<div class=\"product-card\" [ngClass]=\"{ 'is-vertical': isVertical, 'is-horizontal': !isVertical }\">\n <div class=\"background-blue product-layout\">\n <div class=\"product-image-column text-center background-white\">\n <div class=\"product-image-wrapper\">\n <span *ngIf=\"productVoltage\" class=\"voltage-badge\">{{ productVoltage }}</span>\n <img\n [src]=\"productImage\"\n [alt]=\"productDescription | titlecase\"\n class=\"product-image img-fluid\"\n />\n </div>\n </div>\n\n <div class=\"product-content-column\">\n <div class=\"product-details\">\n <p class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n class=\"access-link d-inline-flex align-items-center\"\n >\n <lib-elux-icon [icon]=\"'Link.svg'\" [color]=\"'#011e41'\" [size]=\"'18'\" class=\"me-2\" />\n Acessar seus produtos registrados\n </a>\n </div>\n </div>\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}}.product-card{box-shadow:0 4px 16px #0000001a;height:100%;display:flex;position:relative}.product-card .row{margin-left:0;margin-right:0}.product-card .product-layout{display:flex;flex:1;height:100%}.product-card .product-image-column,.product-card .product-content-column{width:100%}.product-card .product-content-column{display:flex;flex-direction:column}.product-card .background-blue{background-color:#e1e8eb}.product-card .background-white{background-color:#fff}.product-card .product-image-wrapper .voltage-badge{position:absolute;top:8px;left:8px;background-color:#3d5275;color:#fff;font-size:14px;font-weight:600;padding:4px 12px;border-radius:4px;z-index:1}.product-card .product-image-wrapper .product-image{width:100%;max-width:250px;height:auto;max-height:250px;object-fit:contain;display:block;margin:0 auto}.product-card .product-details{padding:16px;flex:1;margin:0}.product-card .product-details .product-code{color:#596b86;margin-bottom:8px;font-size:18px;font-style:normal;font-weight:400;line-height:21px}.product-card .product-details .product-name{color:#011e41;margin-bottom:16px;font-size:24px;font-style:normal;font-weight:600;line-height:29px}.product-card .product-details .access-link{color:#011e41;font-size:18px;font-style:normal;font-weight:400;line-height:27px;text-decoration:underline}.product-card.is-horizontal .product-layout{flex-direction:row;align-items:stretch;flex-wrap:nowrap}.product-card.is-horizontal .product-image-column{flex:0 0 33.333333%;max-width:33.333333%;display:flex;align-items:center;justify-content:center}.product-card.is-horizontal .product-content-column{flex:0 0 66.666667%;max-width:66.666667%}.product-card.is-horizontal .product-details{display:flex;flex-direction:column;justify-content:center}.product-card.is-vertical .product-layout{flex-direction:column;align-items:stretch}.product-card.is-vertical .product-image-column,.product-card.is-vertical .product-content-column{flex:0 0 100%;max-width:100%}.product-card.is-vertical .product-image-column{flex:0 0 auto}.product-card.is-vertical .product-content-column{flex:1 1 auto}.product-card.is-vertical .product-image-wrapper .product-image{max-height:230px}.product-card.is-vertical .product-details{padding:16px}.product-card.is-vertical .product-details .product-code{font-size:16px;line-height:19px}.product-card.is-vertical .product-details .product-name{font-size:18px;line-height:22px}.product-card.is-vertical .product-details .access-link{font-size:16px;line-height:24px}\n"] }]
|
|
2519
|
+
args: [{ selector: 'lib-elux-card-product-2', standalone: true, imports: [CommonModule, EluxIcon, RouterLink], template: "<div class=\"product-card\" [ngClass]=\"{ 'is-vertical': isVertical, 'is-horizontal': !isVertical }\">\n <div class=\"background-blue product-layout\">\n <div class=\"product-image-column text-center background-white\">\n <div class=\"product-image-wrapper\">\n <span *ngIf=\"productVoltage\" class=\"voltage-badge\">{{ productVoltage }}</span>\n <img\n [src]=\"productImage\"\n [alt]=\"productDescription | titlecase\"\n class=\"product-image img-fluid\"\n />\n </div>\n </div>\n\n <div class=\"product-content-column\">\n <div class=\"product-details\">\n <p class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n class=\"access-link d-inline-flex align-items-center\"\n >\n <lib-elux-icon [icon]=\"'Link.svg'\" [color]=\"'#011e41'\" [size]=\"'18'\" class=\"me-2\" />\n Acessar seus produtos registrados\n </a>\n </div>\n </div>\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}}.product-card{box-shadow:0 4px 16px #0000001a;height:100%;display:flex;position:relative;transition:transform .3s ease,box-shadow .3s ease}.product-card:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.product-card .row{margin-left:0;margin-right:0}.product-card .product-layout{display:flex;flex:1;height:100%}.product-card .product-image-column,.product-card .product-content-column{width:100%}.product-card .product-content-column{display:flex;flex-direction:column}.product-card .background-blue{background-color:#e1e8eb}.product-card .background-white{background-color:#fff}.product-card .product-image-wrapper .voltage-badge{position:absolute;top:8px;left:8px;background-color:#3d5275;color:#fff;font-size:14px;font-weight:600;padding:4px 12px;border-radius:4px;z-index:1}.product-card .product-image-wrapper .product-image{width:100%;max-width:250px;height:auto;max-height:250px;object-fit:contain;display:block;margin:0 auto}.product-card .product-details{padding:16px;flex:1;margin:0}.product-card .product-details .product-code{color:#596b86;margin-bottom:8px;font-size:18px;font-style:normal;font-weight:400;line-height:21px}.product-card .product-details .product-name{color:#011e41;margin-bottom:16px;font-size:24px;font-style:normal;font-weight:600;line-height:29px}.product-card .product-details .access-link{color:#011e41;font-size:18px;font-style:normal;font-weight:400;line-height:27px;text-decoration:underline}.product-card.is-horizontal .product-layout{flex-direction:row;align-items:stretch;flex-wrap:nowrap}.product-card.is-horizontal .product-image-column{flex:0 0 33.333333%;max-width:33.333333%;display:flex;align-items:center;justify-content:center}.product-card.is-horizontal .product-content-column{flex:0 0 66.666667%;max-width:66.666667%}.product-card.is-horizontal .product-details{display:flex;flex-direction:column;justify-content:center}.product-card.is-vertical .product-layout{flex-direction:column;align-items:stretch}.product-card.is-vertical .product-image-column,.product-card.is-vertical .product-content-column{flex:0 0 100%;max-width:100%}.product-card.is-vertical .product-image-column{flex:0 0 auto}.product-card.is-vertical .product-content-column{flex:1 1 auto}.product-card.is-vertical .product-image-wrapper .product-image{max-height:230px}.product-card.is-vertical .product-details{padding:16px}.product-card.is-vertical .product-details .product-code{font-size:16px;line-height:19px}.product-card.is-vertical .product-details .product-name{font-size:18px;line-height:22px}.product-card.is-vertical .product-details .access-link{font-size:16px;line-height:24px}\n"] }]
|
|
2481
2520
|
}], propDecorators: { productCode: [{
|
|
2482
2521
|
type: Input
|
|
2483
2522
|
}], productDescription: [{
|
|
@@ -2502,11 +2541,11 @@ class EluxCardArticle {
|
|
|
2502
2541
|
return title.length > this.BREAK_VALUE ? `${title.substring(0, this.BREAK_VALUE)}...` : title;
|
|
2503
2542
|
}
|
|
2504
2543
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardArticle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2505
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardArticle, isStandalone: true, selector: "lib-elux-card-article", inputs: { title: "title", routerLink: "routerLink", image: "image", imageAlt: "imageAlt" }, ngImport: i0, template: "<a [routerLink]=\"routerLink\" class=\"card-article\">\n <div class=\"card-article__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-article__image\" />\n </div>\n <div class=\"card-article__content\">\n <span class=\"card-article__title\">{{ truncateTitle(title) }}</span>\n <span class=\"card-article__link\">\n <lib-elux-icon [icon]=\"'Link.svg'\" size=\"18\"/>\n Acessar\n </span>\n </div>\n</a>", 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-article{display:flex;flex-direction:column;background-color:#
|
|
2544
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardArticle, isStandalone: true, selector: "lib-elux-card-article", inputs: { title: "title", routerLink: "routerLink", image: "image", imageAlt: "imageAlt" }, ngImport: i0, template: "<a [routerLink]=\"routerLink\" class=\"card-article\">\n <div class=\"card-article__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-article__image\" />\n </div>\n <div class=\"card-article__content\">\n <span class=\"card-article__title\">{{ truncateTitle(title) }}</span>\n <span class=\"card-article__link\">\n <lib-elux-icon [icon]=\"'Link.svg'\" size=\"18\"/>\n Acessar\n </span>\n </div>\n</a>", 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-article{display:flex;flex-direction:column;background-color:#d7dad5;border-radius:4px;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;height:100%;width:100%;min-width:160px;max-width:330px}.card-article:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-article__image-wrapper{width:100%;height:120px;overflow:hidden}.card-article__image{width:100%;height:100%;object-fit:cover;display:block}.card-article__content{height:150px;padding:24px;display:flex;flex-direction:column;justify-content:space-between}.card-article__title{color:#2b3227;font-size:16px;font-weight:600;line-height:19px}.card-article__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-article{width:100%;min-width:210px;max-width:350px}.card-article__image-wrapper{width:100%;height:200px;overflow:hidden}.card-article__title{font-size:20px;font-weight:600;line-height:24px}}\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: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
2506
2545
|
}
|
|
2507
2546
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardArticle, decorators: [{
|
|
2508
2547
|
type: Component,
|
|
2509
|
-
args: [{ standalone: true, imports: [RouterModule, CommonModule, EluxIcon], selector: 'lib-elux-card-article', template: "<a [routerLink]=\"routerLink\" class=\"card-article\">\n <div class=\"card-article__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-article__image\" />\n </div>\n <div class=\"card-article__content\">\n <span class=\"card-article__title\">{{ truncateTitle(title) }}</span>\n <span class=\"card-article__link\">\n <lib-elux-icon [icon]=\"'Link.svg'\" size=\"18\"/>\n Acessar\n </span>\n </div>\n</a>", 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-article{display:flex;flex-direction:column;background-color:#
|
|
2548
|
+
args: [{ standalone: true, imports: [RouterModule, CommonModule, EluxIcon], selector: 'lib-elux-card-article', template: "<a [routerLink]=\"routerLink\" class=\"card-article\">\n <div class=\"card-article__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-article__image\" />\n </div>\n <div class=\"card-article__content\">\n <span class=\"card-article__title\">{{ truncateTitle(title) }}</span>\n <span class=\"card-article__link\">\n <lib-elux-icon [icon]=\"'Link.svg'\" size=\"18\"/>\n Acessar\n </span>\n </div>\n</a>", 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-article{display:flex;flex-direction:column;background-color:#d7dad5;border-radius:4px;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;height:100%;width:100%;min-width:160px;max-width:330px}.card-article:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-article__image-wrapper{width:100%;height:120px;overflow:hidden}.card-article__image{width:100%;height:100%;object-fit:cover;display:block}.card-article__content{height:150px;padding:24px;display:flex;flex-direction:column;justify-content:space-between}.card-article__title{color:#2b3227;font-size:16px;font-weight:600;line-height:19px}.card-article__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-article{width:100%;min-width:210px;max-width:350px}.card-article__image-wrapper{width:100%;height:200px;overflow:hidden}.card-article__title{font-size:20px;font-weight:600;line-height:24px}}\n"] }]
|
|
2510
2549
|
}], propDecorators: { title: [{
|
|
2511
2550
|
type: Input
|
|
2512
2551
|
}], routerLink: [{
|
|
@@ -2631,11 +2670,11 @@ class EluxCardManual {
|
|
|
2631
2670
|
this.urlClickEvent.emit();
|
|
2632
2671
|
}
|
|
2633
2672
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardManual, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2634
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardManual, isStandalone: true, selector: "lib-elux-card-manual", inputs: { url: "url", text: "text" }, outputs: { urlClickEvent: "urlClickEvent" }, ngImport: i0, template: "<div class=\"elux-manual-link\">\n <div class=\"content\">\n <lib-elux-icon [color]=\"'#BB8C48'\" [icon]=\"'Document.svg'\" [size]=\"'24'\" />\n <span class=\"text\">{{ text || 'Arquivo para download' }}</span>\n </div>\n <a class=\"action\" target=\"_blank\" [href]=\"url\" (click)=\"urlClick()\">\n <lib-elux-button class=\"violet-button\" [content]=\"'Abrir'\" [type]=\"'basic'\" [rounded]=\"true\"></lib-elux-button>\n </a>\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}}.elux-manual-link{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:16px 16px 10px;border:1px solid;background:#fff;border-color:#eaebed;border-radius:8px;width:160px;height:120px}.elux-manual-link .content{display:flex;flex-direction:row;justify-content:space-between;gap:12px;text-align:left}.elux-manual-link .text{font-size:16px;line-height:20px;font-weight:600;color:#011e41}.elux-manual-link .action{display:flex;justify-content:center;text-decoration:none;width:100%}.elux-manual-link .action .violet-button{width:100%}.elux-manual-link .action .violet-button ::ng-deep .elux-button{height:34px;background-color:#797487}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
2673
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardManual, isStandalone: true, selector: "lib-elux-card-manual", inputs: { url: "url", text: "text" }, outputs: { urlClickEvent: "urlClickEvent" }, ngImport: i0, template: "<div class=\"elux-manual-link\">\n <div class=\"content\">\n <lib-elux-icon [color]=\"'#BB8C48'\" [icon]=\"'Document.svg'\" [size]=\"'24'\" />\n <span class=\"text\">{{ text || 'Arquivo para download' }}</span>\n </div>\n <a class=\"action\" target=\"_blank\" [href]=\"url\" (click)=\"urlClick()\">\n <lib-elux-button class=\"violet-button\" [content]=\"'Abrir'\" [type]=\"'basic'\" [rounded]=\"true\"></lib-elux-button>\n </a>\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}}.elux-manual-link{display:flex;flex-direction:column;align-items:center;justify-content:space-between;transition:transform .3s ease,box-shadow .3s ease;padding:16px 16px 10px;border:1px solid;background:#fff;border-color:#eaebed;border-radius:8px;width:160px;height:120px}.elux-manual-link:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.elux-manual-link .content{display:flex;flex-direction:row;justify-content:space-between;gap:12px;text-align:left}.elux-manual-link .text{font-size:16px;line-height:20px;font-weight:600;color:#011e41}.elux-manual-link .action{display:flex;justify-content:center;text-decoration:none;width:100%}.elux-manual-link .action .violet-button{width:100%}.elux-manual-link .action .violet-button ::ng-deep .elux-button{height:34px;background-color:#797487}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
2635
2674
|
}
|
|
2636
2675
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardManual, decorators: [{
|
|
2637
2676
|
type: Component,
|
|
2638
|
-
args: [{ standalone: true, imports: [CommonModule, EluxButton, EluxIcon], selector: 'lib-elux-card-manual', template: "<div class=\"elux-manual-link\">\n <div class=\"content\">\n <lib-elux-icon [color]=\"'#BB8C48'\" [icon]=\"'Document.svg'\" [size]=\"'24'\" />\n <span class=\"text\">{{ text || 'Arquivo para download' }}</span>\n </div>\n <a class=\"action\" target=\"_blank\" [href]=\"url\" (click)=\"urlClick()\">\n <lib-elux-button class=\"violet-button\" [content]=\"'Abrir'\" [type]=\"'basic'\" [rounded]=\"true\"></lib-elux-button>\n </a>\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}}.elux-manual-link{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:16px 16px 10px;border:1px solid;background:#fff;border-color:#eaebed;border-radius:8px;width:160px;height:120px}.elux-manual-link .content{display:flex;flex-direction:row;justify-content:space-between;gap:12px;text-align:left}.elux-manual-link .text{font-size:16px;line-height:20px;font-weight:600;color:#011e41}.elux-manual-link .action{display:flex;justify-content:center;text-decoration:none;width:100%}.elux-manual-link .action .violet-button{width:100%}.elux-manual-link .action .violet-button ::ng-deep .elux-button{height:34px;background-color:#797487}\n"] }]
|
|
2677
|
+
args: [{ standalone: true, imports: [CommonModule, EluxButton, EluxIcon], selector: 'lib-elux-card-manual', template: "<div class=\"elux-manual-link\">\n <div class=\"content\">\n <lib-elux-icon [color]=\"'#BB8C48'\" [icon]=\"'Document.svg'\" [size]=\"'24'\" />\n <span class=\"text\">{{ text || 'Arquivo para download' }}</span>\n </div>\n <a class=\"action\" target=\"_blank\" [href]=\"url\" (click)=\"urlClick()\">\n <lib-elux-button class=\"violet-button\" [content]=\"'Abrir'\" [type]=\"'basic'\" [rounded]=\"true\"></lib-elux-button>\n </a>\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}}.elux-manual-link{display:flex;flex-direction:column;align-items:center;justify-content:space-between;transition:transform .3s ease,box-shadow .3s ease;padding:16px 16px 10px;border:1px solid;background:#fff;border-color:#eaebed;border-radius:8px;width:160px;height:120px}.elux-manual-link:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.elux-manual-link .content{display:flex;flex-direction:row;justify-content:space-between;gap:12px;text-align:left}.elux-manual-link .text{font-size:16px;line-height:20px;font-weight:600;color:#011e41}.elux-manual-link .action{display:flex;justify-content:center;text-decoration:none;width:100%}.elux-manual-link .action .violet-button{width:100%}.elux-manual-link .action .violet-button ::ng-deep .elux-button{height:34px;background-color:#797487}\n"] }]
|
|
2639
2678
|
}], propDecorators: { url: [{
|
|
2640
2679
|
type: Input
|
|
2641
2680
|
}], text: [{
|
|
@@ -2740,6 +2779,7 @@ class EluxCarouselBleedComponent {
|
|
|
2740
2779
|
this.pointerStartY = 0;
|
|
2741
2780
|
this.pointerDownType = 'mouse';
|
|
2742
2781
|
this.activePointerId = null;
|
|
2782
|
+
this.pointerCaptured = false;
|
|
2743
2783
|
this.isVerticalScroll = false;
|
|
2744
2784
|
this.hasDragged = false;
|
|
2745
2785
|
this.clicksDisabled = false;
|
|
@@ -2747,6 +2787,8 @@ class EluxCarouselBleedComponent {
|
|
|
2747
2787
|
this.resizeRafId = null;
|
|
2748
2788
|
this.lastLeftOffset = 0;
|
|
2749
2789
|
this.lastScrollbarWidth = 0;
|
|
2790
|
+
this.windowPointerUpHandler = (event) => this.onWindowPointerUp(event);
|
|
2791
|
+
this.windowPointerCancelHandler = (event) => this.onWindowPointerCancel(event);
|
|
2750
2792
|
this.transitionDuration = 'transform 0.3s ease-out';
|
|
2751
2793
|
this.dragThresholdPx = 5;
|
|
2752
2794
|
this.touchDragThresholdPx = 10;
|
|
@@ -2801,6 +2843,7 @@ class EluxCarouselBleedComponent {
|
|
|
2801
2843
|
window.addEventListener('resize', this.scheduleResize);
|
|
2802
2844
|
}
|
|
2803
2845
|
ngOnDestroy() {
|
|
2846
|
+
this.removeWindowPointerListeners();
|
|
2804
2847
|
// Clean up click listeners
|
|
2805
2848
|
this.clickListeners.forEach(unlisten => unlisten());
|
|
2806
2849
|
this.clickListeners = [];
|
|
@@ -2884,8 +2927,11 @@ class EluxCarouselBleedComponent {
|
|
|
2884
2927
|
this.pointerStartX = event.clientX;
|
|
2885
2928
|
this.pointerStartY = event.clientY;
|
|
2886
2929
|
this.isVerticalScroll = false;
|
|
2887
|
-
|
|
2930
|
+
this.addWindowPointerListeners();
|
|
2931
|
+
this.pointerCaptured = false;
|
|
2932
|
+
if (event.pointerType !== 'mouse' && this.slidesContainer?.nativeElement?.setPointerCapture) {
|
|
2888
2933
|
this.slidesContainer.nativeElement.setPointerCapture(event.pointerId);
|
|
2934
|
+
this.pointerCaptured = true;
|
|
2889
2935
|
}
|
|
2890
2936
|
this.startDrag(event.clientX);
|
|
2891
2937
|
}
|
|
@@ -2937,12 +2983,45 @@ class EluxCarouselBleedComponent {
|
|
|
2937
2983
|
}
|
|
2938
2984
|
this.resetPointerState(event.pointerId);
|
|
2939
2985
|
}
|
|
2986
|
+
onWindowPointerUp(event) {
|
|
2987
|
+
if (this.activePointerId !== event.pointerId)
|
|
2988
|
+
return;
|
|
2989
|
+
if (!this.isDragging) {
|
|
2990
|
+
this.resetPointerState(event.pointerId);
|
|
2991
|
+
return;
|
|
2992
|
+
}
|
|
2993
|
+
if (this.isVerticalScroll) {
|
|
2994
|
+
this.resetPointerState(event.pointerId);
|
|
2995
|
+
return;
|
|
2996
|
+
}
|
|
2997
|
+
this.endDrag();
|
|
2998
|
+
this.resetPointerState(event.pointerId);
|
|
2999
|
+
}
|
|
3000
|
+
onWindowPointerCancel(event) {
|
|
3001
|
+
if (this.activePointerId !== event.pointerId)
|
|
3002
|
+
return;
|
|
3003
|
+
if (this.isDragging) {
|
|
3004
|
+
this.hasDragged = true;
|
|
3005
|
+
this.endDrag();
|
|
3006
|
+
}
|
|
3007
|
+
this.resetPointerState(event.pointerId);
|
|
3008
|
+
}
|
|
2940
3009
|
resetPointerState(pointerId) {
|
|
2941
|
-
if (this.slidesContainer?.nativeElement?.releasePointerCapture) {
|
|
3010
|
+
if (this.pointerCaptured && this.slidesContainer?.nativeElement?.releasePointerCapture) {
|
|
2942
3011
|
this.slidesContainer.nativeElement.releasePointerCapture(pointerId);
|
|
2943
3012
|
}
|
|
2944
3013
|
this.activePointerId = null;
|
|
3014
|
+
this.pointerCaptured = false;
|
|
2945
3015
|
this.isVerticalScroll = false;
|
|
3016
|
+
this.removeWindowPointerListeners();
|
|
3017
|
+
}
|
|
3018
|
+
addWindowPointerListeners() {
|
|
3019
|
+
window.addEventListener('pointerup', this.windowPointerUpHandler, true);
|
|
3020
|
+
window.addEventListener('pointercancel', this.windowPointerCancelHandler, true);
|
|
3021
|
+
}
|
|
3022
|
+
removeWindowPointerListeners() {
|
|
3023
|
+
window.removeEventListener('pointerup', this.windowPointerUpHandler, true);
|
|
3024
|
+
window.removeEventListener('pointercancel', this.windowPointerCancelHandler, true);
|
|
2946
3025
|
}
|
|
2947
3026
|
setupClickPrevention() {
|
|
2948
3027
|
// Clean up existing listeners
|