@elxjs/ui 0.0.211 → 0.0.212
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.
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import { Component, Input } from '@angular/core';
|
|
3
3
|
import { EluxIcon } from '../icon';
|
|
4
|
+
import { RouterLink } from "@angular/router";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "@angular/common";
|
|
6
7
|
export class EluxCardProduct2 {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.productCode = 'Model';
|
|
9
10
|
this.productDescription = 'Product description';
|
|
10
|
-
this.productVoltage = '
|
|
11
|
+
this.productVoltage = '';
|
|
11
12
|
this.productImage = '/assets/images/placeholder.jpg';
|
|
12
|
-
this.redirectUrl = '
|
|
13
|
+
this.redirectUrl = '';
|
|
13
14
|
this.orientation = 'horizontal';
|
|
14
15
|
}
|
|
15
16
|
get isVertical() {
|
|
16
17
|
return this.orientation === 'vertical';
|
|
17
18
|
}
|
|
18
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
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
|
|
20
|
+
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}}:host{display:block;height:100%}.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"] }] }); }
|
|
20
21
|
}
|
|
21
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, decorators: [{
|
|
22
23
|
type: Component,
|
|
23
|
-
args: [{ selector: 'lib-elux-card-product-2', standalone: true, imports: [CommonModule, EluxIcon], template: "<div
|
|
24
|
+
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}}:host{display:block;height:100%}.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"] }]
|
|
24
25
|
}], propDecorators: { productCode: [{
|
|
25
26
|
type: Input
|
|
26
27
|
}], productDescription: [{
|
|
@@ -34,4 +35,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
34
35
|
}], orientation: [{
|
|
35
36
|
type: Input
|
|
36
37
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data: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x0XT1cInByb2R1Y3REZXNjcmlwdGlvbiB8IHRpdGxlY2FzZVwiXG4gICAgICAgICAgY2xhc3M9XCJwcm9kdWN0LWltYWdlIGltZy1mbHVpZFwiXG4gICAgICAgIC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cblxuICAgIDxkaXYgY2xhc3M9XCJwcm9kdWN0LWNvbnRlbnQtY29sdW1uXCI+XG4gICAgICA8ZGl2IGNsYXNzPVwicHJvZHVjdC1kZXRhaWxzXCI+XG4gICAgICAgIDxwIGNsYXNzPVwicHJvZHVjdC1jb2RlIG1iLTJcIj57eyBwcm9kdWN0Q29kZSB9fTwvcD5cbiAgICAgICAgPGgyIGNsYXNzPVwicHJvZHVjdC1uYW1lIG1iLTNcIj57eyBwcm9kdWN0RGVzY3JpcHRpb24gfCB0aXRsZWNhc2UgfX08L2gyPlxuICAgICAgICA8YVxuICAgICAgICAgICpuZ0lmPVwicmVkaXJlY3RVcmxcIlxuICAgICAgICAgIGhyZWY9XCJcIlxuICAgICAgICAgIFtyb3V0ZXJMaW5rXT1cInJlZGlyZWN0VXJsXCJcbiAgICAgICAgICBjbGFzcz1cImFjY2Vzcy1saW5rIGQtaW5saW5lLWZsZXggYWxpZ24taXRlbXMtY2VudGVyXCJcbiAgICAgICAgPlxuICAgICAgICAgIDxsaWItZWx1eC1pY29uIFtpY29uXT1cIidMaW5rLnN2ZydcIiBbY29sb3JdPVwiJyMwMTFlNDEnXCIgW3NpemVdPVwiJzE4J1wiIGNsYXNzPVwibWUtMlwiIC8+XG4gICAgICAgICAgQWNlc3NhciBzZXVzIHByb2R1dG9zIHJlZ2lzdHJhZG9zXG4gICAgICAgIDwvYT5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
package/fesm2022/elxjs-ui.mjs
CHANGED
|
@@ -4,7 +4,7 @@ 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';
|
|
6
6
|
import * as i1$1 from '@angular/router';
|
|
7
|
-
import { RouterModule } from '@angular/router';
|
|
7
|
+
import { RouterModule, RouterLink } from '@angular/router';
|
|
8
8
|
import { Subject, debounceTime } from 'rxjs';
|
|
9
9
|
import * as i1$2 from '@angular/platform-browser';
|
|
10
10
|
|
|
@@ -2464,20 +2464,20 @@ class EluxCardProduct2 {
|
|
|
2464
2464
|
constructor() {
|
|
2465
2465
|
this.productCode = 'Model';
|
|
2466
2466
|
this.productDescription = 'Product description';
|
|
2467
|
-
this.productVoltage = '
|
|
2467
|
+
this.productVoltage = '';
|
|
2468
2468
|
this.productImage = '/assets/images/placeholder.jpg';
|
|
2469
|
-
this.redirectUrl = '
|
|
2469
|
+
this.redirectUrl = '';
|
|
2470
2470
|
this.orientation = 'horizontal';
|
|
2471
2471
|
}
|
|
2472
2472
|
get isVertical() {
|
|
2473
2473
|
return this.orientation === 'vertical';
|
|
2474
2474
|
}
|
|
2475
2475
|
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
|
|
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}}:host{display:block;height:100%}.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"] }] }); }
|
|
2477
2477
|
}
|
|
2478
2478
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, decorators: [{
|
|
2479
2479
|
type: Component,
|
|
2480
|
-
args: [{ selector: 'lib-elux-card-product-2', standalone: true, imports: [CommonModule, EluxIcon], template: "<div
|
|
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}}:host{display:block;height:100%}.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"] }]
|
|
2481
2481
|
}], propDecorators: { productCode: [{
|
|
2482
2482
|
type: Input
|
|
2483
2483
|
}], productDescription: [{
|