@elxjs/ui 0.0.228 → 0.0.230

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,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewChild, Input, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, ChangeDetectionStrategy, ElementRef, ContentChildren, NgModule } from '@angular/core';
2
+ import { Component, ViewChild, Input, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, ChangeDetectionStrategy, ElementRef, ContentChildren, inject, PLATFORM_ID, ViewChildren, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
4
+ import { CommonModule, isPlatformBrowser } 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
7
  import { RouterModule, RouterLink } from '@angular/router';
8
- import { Subject, debounceTime } from 'rxjs';
8
+ import { Subject, debounceTime, Subscription } from 'rxjs';
9
9
  import * as i1$2 from '@angular/platform-browser';
10
10
 
11
11
  class EluxIcon {
@@ -35,11 +35,11 @@ class EluxIcon {
35
35
  };
36
36
  }
37
37
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: EluxIcon, isStandalone: true, selector: "lib-elux-icon", inputs: { color: "color", useSubscription: "useSubscription", icon: "icon", description: "description", size: "size", height: "height", width: "width", sizeType: "sizeType" }, viewQueries: [{ propertyName: "iconSpan", first: true, predicate: ["iconSpan"], descendants: true }], ngImport: i0, template: "@if (icon) {\n<span #iconSpan class=\"icon\" [ngStyle]=\"iconMask()\"></span>\n}", styles: [".icon{display:inline-block;height:48px;width:48px;-webkit-mask-size:cover;mask-size:cover;vertical-align:middle}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }] }); }
38
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: EluxIcon, isStandalone: true, selector: "lib-elux-icon", inputs: { color: "color", useSubscription: "useSubscription", icon: "icon", description: "description", size: "size", height: "height", width: "width", sizeType: "sizeType" }, viewQueries: [{ propertyName: "iconSpan", first: true, predicate: ["iconSpan"], descendants: true }], ngImport: i0, template: "@if (icon) {\n<span #iconSpan class=\"icon\" [ngStyle]=\"iconMask()\"></span>\n}", styles: [".icon{display:flex;height:48px;width:48px;-webkit-mask-size:cover;mask-size:cover;vertical-align:middle}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }] }); }
39
39
  }
40
40
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxIcon, decorators: [{
41
41
  type: Component,
42
- args: [{ selector: 'lib-elux-icon', standalone: true, imports: [CommonModule, ReactiveFormsModule], template: "@if (icon) {\n<span #iconSpan class=\"icon\" [ngStyle]=\"iconMask()\"></span>\n}", styles: [".icon{display:inline-block;height:48px;width:48px;-webkit-mask-size:cover;mask-size:cover;vertical-align:middle}\n"] }]
42
+ args: [{ selector: 'lib-elux-icon', standalone: true, imports: [CommonModule, ReactiveFormsModule], template: "@if (icon) {\n<span #iconSpan class=\"icon\" [ngStyle]=\"iconMask()\"></span>\n}", styles: [".icon{display:flex;height:48px;width:48px;-webkit-mask-size:cover;mask-size:cover;vertical-align:middle}\n"] }]
43
43
  }], ctorParameters: () => [], propDecorators: { iconSpan: [{
44
44
  type: ViewChild,
45
45
  args: ['iconSpan']
@@ -2522,11 +2522,11 @@ class EluxCardProduct2 {
2522
2522
  this.redirectClick.emit(event);
2523
2523
  }
2524
2524
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2525
- 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", redirectText: "redirectText", orientation: "orientation" }, outputs: { redirectClick: "redirectClick" }, 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 (click)=\"onRedirectClick($event)\"\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 {{ redirectText }}\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"] }] }); }
2525
+ 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", redirectText: "redirectText", orientation: "orientation" }, outputs: { redirectClick: "redirectClick" }, 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 *ngIf=\"productCode\" class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 *ngIf=\"productDescription\" class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n (click)=\"onRedirectClick($event)\"\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 {{ redirectText }}\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;min-height:150px}.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"] }] }); }
2526
2526
  }
2527
2527
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardProduct2, decorators: [{
2528
2528
  type: Component,
2529
- 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 (click)=\"onRedirectClick($event)\"\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 {{ redirectText }}\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"] }]
2529
+ 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 *ngIf=\"productCode\" class=\"product-code mb-2\">{{ productCode }}</p>\n <h2 *ngIf=\"productDescription\" class=\"product-name mb-3\">{{ productDescription | titlecase }}</h2>\n <a\n *ngIf=\"redirectUrl\"\n href=\"\"\n [routerLink]=\"redirectUrl\"\n (click)=\"onRedirectClick($event)\"\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 {{ redirectText }}\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;min-height:150px}.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"] }]
2530
2530
  }], propDecorators: { productCode: [{
2531
2531
  type: Input
2532
2532
  }], productDescription: [{
@@ -3384,6 +3384,143 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
3384
3384
  type: Output
3385
3385
  }] } });
3386
3386
 
3387
+ class NumberedListComponent {
3388
+ constructor() {
3389
+ this.items = [];
3390
+ this.itemProgress = [];
3391
+ this.productsEcommerce = [];
3392
+ this.platformId = inject(PLATFORM_ID);
3393
+ this.subscriptions = new Subscription();
3394
+ this.animationFrameId = null;
3395
+ this.hasUserStartedScroll = false;
3396
+ this.viewedItems = new Set();
3397
+ }
3398
+ ngAfterViewInit() {
3399
+ this.initializeProgress();
3400
+ this.subscriptions.add(this.contentWrappers.changes.subscribe(() => {
3401
+ this.initializeProgress();
3402
+ if (this.hasUserStartedScroll) {
3403
+ this.scheduleProgressUpdate();
3404
+ }
3405
+ }));
3406
+ }
3407
+ ngOnChanges(changes) {
3408
+ if (!changes['data']) {
3409
+ return;
3410
+ }
3411
+ this.initializeProgress();
3412
+ if (this.hasUserStartedScroll) {
3413
+ this.scheduleProgressUpdate();
3414
+ }
3415
+ }
3416
+ ngOnDestroy() {
3417
+ this.subscriptions.unsubscribe();
3418
+ if (this.animationFrameId !== null && isPlatformBrowser(this.platformId)) {
3419
+ window.cancelAnimationFrame(this.animationFrameId);
3420
+ }
3421
+ }
3422
+ onWindowScroll() {
3423
+ if (!this.hasUserStartedScroll) {
3424
+ return;
3425
+ }
3426
+ this.scheduleProgressUpdate();
3427
+ }
3428
+ onWindowWheel() {
3429
+ this.startUserProgressTracking();
3430
+ }
3431
+ onWindowTouchMove() {
3432
+ this.startUserProgressTracking();
3433
+ }
3434
+ onWindowKeydown(event) {
3435
+ const scrollKeys = new Set(['ArrowDown', 'ArrowUp', 'PageDown', 'PageUp', 'Home', 'End', ' ']);
3436
+ if (!scrollKeys.has(event.key)) {
3437
+ return;
3438
+ }
3439
+ this.startUserProgressTracking();
3440
+ }
3441
+ onWindowResize() {
3442
+ this.scheduleProgressUpdate();
3443
+ }
3444
+ getLineProgress(index) {
3445
+ return `${Math.round((this.itemProgress[index] ?? 0) * 100)}%`;
3446
+ }
3447
+ isStepActive(index) {
3448
+ return (this.itemProgress[index] ?? 0) > 0;
3449
+ }
3450
+ isFinalIconActive(index) {
3451
+ return this.isStepActive(index);
3452
+ }
3453
+ initializeProgress() {
3454
+ const itemCount = this.items?.length ?? 0;
3455
+ this.itemProgress = Array.from({ length: itemCount }, (_, index) => this.itemProgress[index] ?? 0);
3456
+ }
3457
+ scheduleProgressUpdate() {
3458
+ if (!isPlatformBrowser(this.platformId) || this.animationFrameId !== null) {
3459
+ return;
3460
+ }
3461
+ this.animationFrameId = window.requestAnimationFrame(() => {
3462
+ this.animationFrameId = null;
3463
+ this.updateProgress();
3464
+ });
3465
+ }
3466
+ updateProgress() {
3467
+ if (!this.contentWrappers?.length) {
3468
+ return;
3469
+ }
3470
+ const activationLine = window.innerHeight * 0.4;
3471
+ this.itemProgress = this.contentWrappers.toArray().map((wrapperRef, index) => {
3472
+ const { top, height } = wrapperRef.nativeElement.getBoundingClientRect();
3473
+ if (height <= 0) {
3474
+ return this.itemProgress[index] ?? 0;
3475
+ }
3476
+ const currentProgress = this.clamp((activationLine - top) / height);
3477
+ const previousProgress = this.itemProgress[index] ?? 0;
3478
+ const newProgress = Math.max(previousProgress, currentProgress);
3479
+ if (newProgress > 0 && !this.viewedItems.has(index)) {
3480
+ this.viewedItems.add(index);
3481
+ }
3482
+ return newProgress;
3483
+ });
3484
+ }
3485
+ clamp(value) {
3486
+ return Math.min(Math.max(value, 0), 1);
3487
+ }
3488
+ startUserProgressTracking() {
3489
+ if (this.hasUserStartedScroll) {
3490
+ return;
3491
+ }
3492
+ this.hasUserStartedScroll = true;
3493
+ this.scheduleProgressUpdate();
3494
+ }
3495
+ ecommerceItem(product) { }
3496
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumberedListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3497
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: NumberedListComponent, isStandalone: true, selector: "lib-elux-numbered-list", inputs: { items: "items" }, host: { listeners: { "window:scroll": "onWindowScroll()", "window:wheel": "onWindowWheel()", "window:touchmove": "onWindowTouchMove()", "window:keydown": "onWindowKeydown($event)", "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "contentWrappers", predicate: ["contentWrapper"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"container\">\n @for (item of items; track item.order; let itemIndex = $index) {\n <div class=\"list__item\" [class.list__item--final]=\"item.variant === 'final'\">\n <div class=\"list__header\">\n @if (item.variant === 'final') {\n <span\n class=\"list__final-icon\"\n [class.list__final-icon--active]=\"isFinalIconActive(itemIndex)\"\n >\n <lib-elux-icon [icon]=\"'Check.svg'\" [height]=\"'16'\" [color]=\"'#fff'\" />\n </span>\n } @else {\n <span class=\"list__number\" [class.list__number--active]=\"isStepActive(itemIndex)\">\n {{ item.order }}\n </span>\n }\n <span class=\"list__item-title\">{{ item.title }}</span>\n </div>\n <div\n #contentWrapper\n class=\"list__content-wrapper\"\n [class.list__content-wrapper--no-line]=\"item.variant === 'final'\"\n >\n @if (item.variant !== 'final') {\n <span class=\"list__line\" [style.--line-progress]=\"getLineProgress(itemIndex)\"></span>\n }\n <div class=\"list__content\">\n @if (item.image) {\n <img [src]=\"item.image\" [alt]=\"item.title\" class=\"list__image\" />\n }\n <div class=\"list__text\" [innerHTML]=\"item.description\"></div>\n @if (item.hint) {\n <div class=\"list__hint mt-3\">\n <lib-elux-icon\n [icon]=\"'Info.svg'\"\n [height]=\"'21'\"\n [width]=\"'21'\"\n [color]=\"'#715C01'\"\n />\n <span [innerHTML]=\"item.hint\"></span>\n </div>\n }\n @if (item.relatedItemsCTA && item.relatedItems?.length) {\n <div class=\"mt-3\">\n <span class=\"body mt-3\" style=\"color: #111\">{{ item.relatedItemsCTA }}</span>\n @for (relatedProduct of item.relatedItems; track relatedProduct.model) {\n <a\n [href]=\"relatedProduct.url\"\n target=\"_blank\"\n class=\"d-flex flex-row ecommerce-item mt-3\"\n (click)=\"ecommerceItem(relatedProduct)\"\n >\n <div>\n <img\n width=\"64px\"\n height=\"64px\"\n [src]=\"relatedProduct.image\"\n [alt]=\"relatedProduct.name\"\n />\n </div>\n <div class=\"d-flex flex-column justify-content-center ml-3\">\n <span class=\"body\">{{ relatedProduct.name }}</span>\n </div>\n </a>\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n</div>\n", styles: [".container{--list-progress-color: #16a748}.list__number{width:24px;min-width:24px;height:24px;flex:0 0 24px;border-radius:50%;background-color:#adb9c3;color:#011e41;display:flex;align-items:center;justify-content:center;font-size:16px;font-style:normal;font-weight:600;line-height:20px;transition:background-color .18s ease,color .18s ease}.list__number--active{background-color:var(--list-progress-color);color:#fff}.list__image{width:100%;max-width:350px;height:auto;display:block;border-radius:8px;object-fit:cover;margin-bottom:16px}.list__final-icon{width:24px;height:24px;border-radius:50%;background-color:#011e41;display:flex;justify-content:center}.list__final-icon lib-elux-icon{display:flex;align-items:center}.list__final-icon--active{background-color:var(--list-progress-color)}.list__item-title{color:#011e41;font-size:16px;font-style:normal;font-weight:600;line-height:20px}.list__text{color:#515253;font-size:16px;font-style:normal;font-weight:400;line-height:21px}.list__hint{color:#262626;font-size:16px;font-style:normal;font-weight:400;line-height:21px}.list__item{margin-bottom:24px;max-width:700px}.list__header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.list__content-wrapper{display:flex;gap:28px;padding-left:12px}.list__content-wrapper--no-line{padding-left:40px}.list__line{--line-progress: 0%;position:relative;width:2px;flex:0 0 2px}.list__line:before,.list__line:after{content:\"\";position:absolute;top:0;left:50%;transform:translate(-50%);border-radius:999px}.list__line:before{width:1px;height:100%;background-color:#cfd8e0}.list__line:after{width:2px;height:var(--line-progress);background-color:var(--list-progress-color)}.list__content{width:100%}.list__hint{background-color:#fff7d6;color:#715c01;padding:16px;display:flex;align-items:flex-start;gap:16px}.ecommerce-item,.ecommerce-item:hover{text-decoration:none;color:inherit}@media (max-width: 991px){.ecommerce-item .body{max-width:200px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.feedback{background-color:#eaebed;border-radius:4px}::ng-deep .list__text ul{padding-inline-start:30px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
3498
+ }
3499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumberedListComponent, decorators: [{
3500
+ type: Component,
3501
+ args: [{ selector: 'lib-elux-numbered-list', standalone: true, imports: [CommonModule, EluxIcon], template: "<div class=\"container\">\n @for (item of items; track item.order; let itemIndex = $index) {\n <div class=\"list__item\" [class.list__item--final]=\"item.variant === 'final'\">\n <div class=\"list__header\">\n @if (item.variant === 'final') {\n <span\n class=\"list__final-icon\"\n [class.list__final-icon--active]=\"isFinalIconActive(itemIndex)\"\n >\n <lib-elux-icon [icon]=\"'Check.svg'\" [height]=\"'16'\" [color]=\"'#fff'\" />\n </span>\n } @else {\n <span class=\"list__number\" [class.list__number--active]=\"isStepActive(itemIndex)\">\n {{ item.order }}\n </span>\n }\n <span class=\"list__item-title\">{{ item.title }}</span>\n </div>\n <div\n #contentWrapper\n class=\"list__content-wrapper\"\n [class.list__content-wrapper--no-line]=\"item.variant === 'final'\"\n >\n @if (item.variant !== 'final') {\n <span class=\"list__line\" [style.--line-progress]=\"getLineProgress(itemIndex)\"></span>\n }\n <div class=\"list__content\">\n @if (item.image) {\n <img [src]=\"item.image\" [alt]=\"item.title\" class=\"list__image\" />\n }\n <div class=\"list__text\" [innerHTML]=\"item.description\"></div>\n @if (item.hint) {\n <div class=\"list__hint mt-3\">\n <lib-elux-icon\n [icon]=\"'Info.svg'\"\n [height]=\"'21'\"\n [width]=\"'21'\"\n [color]=\"'#715C01'\"\n />\n <span [innerHTML]=\"item.hint\"></span>\n </div>\n }\n @if (item.relatedItemsCTA && item.relatedItems?.length) {\n <div class=\"mt-3\">\n <span class=\"body mt-3\" style=\"color: #111\">{{ item.relatedItemsCTA }}</span>\n @for (relatedProduct of item.relatedItems; track relatedProduct.model) {\n <a\n [href]=\"relatedProduct.url\"\n target=\"_blank\"\n class=\"d-flex flex-row ecommerce-item mt-3\"\n (click)=\"ecommerceItem(relatedProduct)\"\n >\n <div>\n <img\n width=\"64px\"\n height=\"64px\"\n [src]=\"relatedProduct.image\"\n [alt]=\"relatedProduct.name\"\n />\n </div>\n <div class=\"d-flex flex-column justify-content-center ml-3\">\n <span class=\"body\">{{ relatedProduct.name }}</span>\n </div>\n </a>\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n</div>\n", styles: [".container{--list-progress-color: #16a748}.list__number{width:24px;min-width:24px;height:24px;flex:0 0 24px;border-radius:50%;background-color:#adb9c3;color:#011e41;display:flex;align-items:center;justify-content:center;font-size:16px;font-style:normal;font-weight:600;line-height:20px;transition:background-color .18s ease,color .18s ease}.list__number--active{background-color:var(--list-progress-color);color:#fff}.list__image{width:100%;max-width:350px;height:auto;display:block;border-radius:8px;object-fit:cover;margin-bottom:16px}.list__final-icon{width:24px;height:24px;border-radius:50%;background-color:#011e41;display:flex;justify-content:center}.list__final-icon lib-elux-icon{display:flex;align-items:center}.list__final-icon--active{background-color:var(--list-progress-color)}.list__item-title{color:#011e41;font-size:16px;font-style:normal;font-weight:600;line-height:20px}.list__text{color:#515253;font-size:16px;font-style:normal;font-weight:400;line-height:21px}.list__hint{color:#262626;font-size:16px;font-style:normal;font-weight:400;line-height:21px}.list__item{margin-bottom:24px;max-width:700px}.list__header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.list__content-wrapper{display:flex;gap:28px;padding-left:12px}.list__content-wrapper--no-line{padding-left:40px}.list__line{--line-progress: 0%;position:relative;width:2px;flex:0 0 2px}.list__line:before,.list__line:after{content:\"\";position:absolute;top:0;left:50%;transform:translate(-50%);border-radius:999px}.list__line:before{width:1px;height:100%;background-color:#cfd8e0}.list__line:after{width:2px;height:var(--line-progress);background-color:var(--list-progress-color)}.list__content{width:100%}.list__hint{background-color:#fff7d6;color:#715c01;padding:16px;display:flex;align-items:flex-start;gap:16px}.ecommerce-item,.ecommerce-item:hover{text-decoration:none;color:inherit}@media (max-width: 991px){.ecommerce-item .body{max-width:200px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.feedback{background-color:#eaebed;border-radius:4px}::ng-deep .list__text ul{padding-inline-start:30px!important}\n"] }]
3502
+ }], propDecorators: { contentWrappers: [{
3503
+ type: ViewChildren,
3504
+ args: ['contentWrapper']
3505
+ }], items: [{
3506
+ type: Input
3507
+ }], onWindowScroll: [{
3508
+ type: HostListener,
3509
+ args: ['window:scroll']
3510
+ }], onWindowWheel: [{
3511
+ type: HostListener,
3512
+ args: ['window:wheel']
3513
+ }], onWindowTouchMove: [{
3514
+ type: HostListener,
3515
+ args: ['window:touchmove']
3516
+ }], onWindowKeydown: [{
3517
+ type: HostListener,
3518
+ args: ['window:keydown', ['$event']]
3519
+ }], onWindowResize: [{
3520
+ type: HostListener,
3521
+ args: ['window:resize']
3522
+ }] } });
3523
+
3387
3524
  const ElectroluxComponents = [
3388
3525
  EluxBreadcrumb,
3389
3526
  EluxButton,
@@ -3422,5 +3559,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
3422
3559
  * Generated bundle index. Do not edit.
3423
3560
  */
3424
3561
 
3425
- export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxStepBar, EluxSwitch, EluxToast, ToasterService };
3562
+ export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxStepBar, EluxSwitch, EluxToast, NumberedListComponent, ToasterService };
3426
3563
  //# sourceMappingURL=elxjs-ui.mjs.map