@elxjs/ui 0.0.254 → 0.0.256

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,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, ViewChild, Component, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, ChangeDetectionStrategy, ElementRef, ContentChildren, inject, PLATFORM_ID, ViewChildren, NgModule } from '@angular/core';
2
+ import { Input, ViewChild, Component, EventEmitter, Output, Injectable, forwardRef, HostListener, booleanAttribute, PLATFORM_ID, Inject, Directive, ChangeDetectionStrategy, ElementRef, ContentChildren, inject, ViewChildren, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
- import { CommonModule, isPlatformBrowser } from '@angular/common';
4
+ import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
5
5
  import { ReactiveFormsModule, NgControl, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
6
6
  import * as i1$1 from '@angular/router';
7
7
  import { RouterModule, RouterLink } from '@angular/router';
@@ -481,12 +481,8 @@ class EluxPaginator {
481
481
  this.showPages();
482
482
  }
483
483
  goToSpecPage(page, event) {
484
- this.paginationEvents.emit({ type: 'goTo', page: page });
485
- this.current = page;
486
- this.showPages();
487
- setTimeout(() => {
488
- this.scrollToElement(event);
489
- }, 400);
484
+ this.scrollToElement(event);
485
+ this.goToPage(page);
490
486
  }
491
487
  showPages() {
492
488
  this.previousPages = [];
@@ -533,11 +529,11 @@ class EluxPaginator {
533
529
  }
534
530
  }
535
531
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
536
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.35", type: EluxPaginator, isStandalone: true, selector: "lib-elux-paginator", inputs: { length: "length", current: "current", anchor: "anchor", scrollTo: "scrollTo", totalItems: "totalItems", itemsPerPage: "itemsPerPage", itemsPerPageOptions: "itemsPerPageOptions", showPaginatorInfo: ["showPaginatorInfo", "showPaginatorInfo", booleanAttribute], itemLabel: "itemLabel", showingLabel: "showingLabel", ofLabel: "ofLabel", itemsPerPageLabel: "itemsPerPageLabel" }, outputs: { paginationEvents: "paginationEvents", itemsPerPageChange: "itemsPerPageChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"paginator-info\" *ngIf=\"showPaginatorInfo && totalItems !== undefined\">\n <span class=\"paginator-info-text\">\n {{ showingLabel }} {{ rangeStart }}-{{ rangeEnd }} {{ ofLabel }} {{ totalItems }} {{ itemLabel }}\n </span>\n <span class=\"paginator-info-per-page\">\n {{ itemsPerPageLabel }}\n <lib-elux-dropdown\n class=\"paginator-per-page-dropdown\"\n [options]=\"itemsPerPageOptionsList\"\n [selectedOption]=\"itemsPerPage\"\n [hidePlaceholder]=\"true\"\n (optionSelected)=\"onItemsPerPageSelected($event)\"\n ></lib-elux-dropdown>\n </span>\n</div>\n\n<nav>\n <ul class=\"paginator\" *ngIf=\"length > 5\">\n <li class=\"pagination-number\" *ngIf=\"current !== 1\">\n <div (click)=\"goFirst(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Left_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"last-page\" *ngIf=\"current !== 1\">\n <div (click)=\"prevPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pages-before pagination-number\" *ngFor=\"let page of previousPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"pagination-number current-page\">\n <div>\n {{ current }}\n </div>\n </li>\n\n <li class=\"pages-after pagination-number\" *ngFor=\"let page of nextPages\">\n <div (click)=\"goToSpecPage(page, $event); scrollToElement($event)\">{{ page }}</div>\n </li>\n\n <li class=\"next-page\" *ngIf=\"current !== length\">\n <div (click)=\"nextPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"></lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pagination-number\" *ngIf=\"current !== length\">\n <div (click)=\"goLast(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Right_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"></lib-elux-icon>\n </div>\n </li>\n </ul>\n\n <ul class=\"paginator\" *ngIf=\"length <= 5\">\n <li *ngFor=\"let page of pages\" class=\"pagination-number\" [ngClass]=\"current === page ? 'current-page' : ''\">\n <div (click)=\"goToSpecPage(page, $event);\">\n {{ page }}\n </div>\n </li>\n </ul>\n</nav>\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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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}:host .paginator-info{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:32px;color:#868687}:host .paginator-info .paginator-info-per-page{display:flex;align-items:center;white-space:nowrap;gap:4px}:host .paginator-info .paginator-per-page-dropdown{width:52px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .selected-option{height:28px;padding:0 18px 0 8px;font-size:14px;color:#515253;box-sizing:border-box}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .arrow-icon{top:calc(50% - 8px);right:2px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .dropdown-list li{color:#515253}:host nav{display:flex;justify-content:center}:host nav ul{padding:0;margin:0!important;display:flex;align-items:center}:host nav ul li{list-style:none;margin-right:8px;margin-left:8px;height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:24px;cursor:pointer}:host nav ul li.pagination-number div{background-color:transparent;border-radius:24px;height:24px;width:24px;text-align:center;line-height:16px;display:flex;align-items:center;justify-content:center}:host nav ul li.pagination-number.current-page div{background-color:#011e41;border-radius:24px;color:#fff}:host nav ul li.next-page,:host nav ul li.last-page{height:24px;width:24px}:host nav ul li.next-page div,:host nav ul li.last-page div{background-color:transparent;border-radius:24px;height:24px;width:24px;border:1px solid #011E41;text-align:center;line-height:14px;display:flex;justify-content:center;align-items:center}:host nav ul li.next-page div:hover,:host nav ul li.last-page div:hover{border-color:#011e41}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }, { kind: "component", type: EluxDropdown, selector: "lib-elux-dropdown", inputs: ["placeholder", "options", "selectedOption", "disabled", "idInput", "showSearch", "showSearchField", "hidePlaceholder"], outputs: ["optionSelected"] }] }); }
532
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.35", type: EluxPaginator, isStandalone: true, selector: "lib-elux-paginator", inputs: { length: "length", current: "current", anchor: "anchor", scrollTo: "scrollTo", totalItems: "totalItems", itemsPerPage: "itemsPerPage", itemsPerPageOptions: "itemsPerPageOptions", showPaginatorInfo: ["showPaginatorInfo", "showPaginatorInfo", booleanAttribute], itemLabel: "itemLabel", showingLabel: "showingLabel", ofLabel: "ofLabel", itemsPerPageLabel: "itemsPerPageLabel" }, outputs: { paginationEvents: "paginationEvents", itemsPerPageChange: "itemsPerPageChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"paginator-info\" *ngIf=\"showPaginatorInfo && totalItems !== undefined\">\n <span class=\"paginator-info-text\">\n {{ showingLabel }} {{ rangeStart }}-{{ rangeEnd }} {{ ofLabel }} {{ totalItems }} {{ itemLabel }}\n </span>\n <span class=\"paginator-info-per-page\">\n {{ itemsPerPageLabel }}\n <lib-elux-dropdown\n class=\"paginator-per-page-dropdown\"\n [options]=\"itemsPerPageOptionsList\"\n [selectedOption]=\"itemsPerPage\"\n [hidePlaceholder]=\"true\"\n (optionSelected)=\"onItemsPerPageSelected($event)\"\n ></lib-elux-dropdown>\n </span>\n</div>\n\n<nav>\n <ul class=\"paginator\" *ngIf=\"length > 5\">\n <li class=\"pagination-number\" *ngIf=\"current !== 1\">\n <div (click)=\"goFirst(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Left_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"last-page\" *ngIf=\"current !== 1\">\n <div (click)=\"prevPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pages-before pagination-number\" *ngFor=\"let page of previousPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"pagination-number current-page\">\n <div>\n {{ current }}\n </div>\n </li>\n\n <li class=\"pages-after pagination-number\" *ngFor=\"let page of nextPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"next-page\" *ngIf=\"current !== length\">\n <div (click)=\"nextPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"></lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pagination-number\" *ngIf=\"current !== length\">\n <div (click)=\"goLast(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Right_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"></lib-elux-icon>\n </div>\n </li>\n </ul>\n\n <ul class=\"paginator\" *ngIf=\"length <= 5\">\n <li *ngFor=\"let page of pages\" class=\"pagination-number\" [ngClass]=\"current === page ? 'current-page' : ''\">\n <div (click)=\"goToSpecPage(page, $event);\">\n {{ page }}\n </div>\n </li>\n </ul>\n</nav>\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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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}:host .paginator-info{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:32px;color:#868687}:host .paginator-info .paginator-info-per-page{display:flex;align-items:center;white-space:nowrap;gap:4px}:host .paginator-info .paginator-per-page-dropdown{width:52px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .selected-option{height:28px;padding:0 18px 0 8px;font-size:14px;color:#515253;box-sizing:border-box}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .arrow-icon{top:calc(50% - 8px);right:2px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .dropdown-list li{color:#515253}:host nav{display:flex;justify-content:center}:host nav ul{padding:0;margin:0!important;display:flex;align-items:center}:host nav ul li{list-style:none;margin-right:8px;margin-left:8px;height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:24px;cursor:pointer}:host nav ul li.pagination-number div{background-color:transparent;border-radius:24px;height:24px;width:24px;text-align:center;line-height:16px;display:flex;align-items:center;justify-content:center}:host nav ul li.pagination-number.current-page div{background-color:#011e41;border-radius:24px;color:#fff}:host nav ul li.next-page,:host nav ul li.last-page{height:24px;width:24px}:host nav ul li.next-page div,:host nav ul li.last-page div{background-color:transparent;border-radius:24px;height:24px;width:24px;border:1px solid #011E41;text-align:center;line-height:14px;display:flex;justify-content:center;align-items:center}:host nav ul li.next-page div:hover,:host nav ul li.last-page div:hover{border-color:#011e41}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }, { kind: "component", type: EluxDropdown, selector: "lib-elux-dropdown", inputs: ["placeholder", "options", "selectedOption", "disabled", "idInput", "showSearch", "showSearchField", "hidePlaceholder"], outputs: ["optionSelected"] }] }); }
537
533
  }
538
534
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxPaginator, decorators: [{
539
535
  type: Component,
540
- args: [{ selector: 'lib-elux-paginator', imports: [CommonModule, EluxIcon, EluxDropdown], template: "<div class=\"paginator-info\" *ngIf=\"showPaginatorInfo && totalItems !== undefined\">\n <span class=\"paginator-info-text\">\n {{ showingLabel }} {{ rangeStart }}-{{ rangeEnd }} {{ ofLabel }} {{ totalItems }} {{ itemLabel }}\n </span>\n <span class=\"paginator-info-per-page\">\n {{ itemsPerPageLabel }}\n <lib-elux-dropdown\n class=\"paginator-per-page-dropdown\"\n [options]=\"itemsPerPageOptionsList\"\n [selectedOption]=\"itemsPerPage\"\n [hidePlaceholder]=\"true\"\n (optionSelected)=\"onItemsPerPageSelected($event)\"\n ></lib-elux-dropdown>\n </span>\n</div>\n\n<nav>\n <ul class=\"paginator\" *ngIf=\"length > 5\">\n <li class=\"pagination-number\" *ngIf=\"current !== 1\">\n <div (click)=\"goFirst(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Left_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"last-page\" *ngIf=\"current !== 1\">\n <div (click)=\"prevPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pages-before pagination-number\" *ngFor=\"let page of previousPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"pagination-number current-page\">\n <div>\n {{ current }}\n </div>\n </li>\n\n <li class=\"pages-after pagination-number\" *ngFor=\"let page of nextPages\">\n <div (click)=\"goToSpecPage(page, $event); scrollToElement($event)\">{{ page }}</div>\n </li>\n\n <li class=\"next-page\" *ngIf=\"current !== length\">\n <div (click)=\"nextPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"></lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pagination-number\" *ngIf=\"current !== length\">\n <div (click)=\"goLast(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Right_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"></lib-elux-icon>\n </div>\n </li>\n </ul>\n\n <ul class=\"paginator\" *ngIf=\"length <= 5\">\n <li *ngFor=\"let page of pages\" class=\"pagination-number\" [ngClass]=\"current === page ? 'current-page' : ''\">\n <div (click)=\"goToSpecPage(page, $event);\">\n {{ page }}\n </div>\n </li>\n </ul>\n</nav>\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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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}:host .paginator-info{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:32px;color:#868687}:host .paginator-info .paginator-info-per-page{display:flex;align-items:center;white-space:nowrap;gap:4px}:host .paginator-info .paginator-per-page-dropdown{width:52px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .selected-option{height:28px;padding:0 18px 0 8px;font-size:14px;color:#515253;box-sizing:border-box}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .arrow-icon{top:calc(50% - 8px);right:2px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .dropdown-list li{color:#515253}:host nav{display:flex;justify-content:center}:host nav ul{padding:0;margin:0!important;display:flex;align-items:center}:host nav ul li{list-style:none;margin-right:8px;margin-left:8px;height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:24px;cursor:pointer}:host nav ul li.pagination-number div{background-color:transparent;border-radius:24px;height:24px;width:24px;text-align:center;line-height:16px;display:flex;align-items:center;justify-content:center}:host nav ul li.pagination-number.current-page div{background-color:#011e41;border-radius:24px;color:#fff}:host nav ul li.next-page,:host nav ul li.last-page{height:24px;width:24px}:host nav ul li.next-page div,:host nav ul li.last-page div{background-color:transparent;border-radius:24px;height:24px;width:24px;border:1px solid #011E41;text-align:center;line-height:14px;display:flex;justify-content:center;align-items:center}:host nav ul li.next-page div:hover,:host nav ul li.last-page div:hover{border-color:#011e41}\n"] }]
536
+ args: [{ selector: 'lib-elux-paginator', imports: [CommonModule, EluxIcon, EluxDropdown], template: "<div class=\"paginator-info\" *ngIf=\"showPaginatorInfo && totalItems !== undefined\">\n <span class=\"paginator-info-text\">\n {{ showingLabel }} {{ rangeStart }}-{{ rangeEnd }} {{ ofLabel }} {{ totalItems }} {{ itemLabel }}\n </span>\n <span class=\"paginator-info-per-page\">\n {{ itemsPerPageLabel }}\n <lib-elux-dropdown\n class=\"paginator-per-page-dropdown\"\n [options]=\"itemsPerPageOptionsList\"\n [selectedOption]=\"itemsPerPage\"\n [hidePlaceholder]=\"true\"\n (optionSelected)=\"onItemsPerPageSelected($event)\"\n ></lib-elux-dropdown>\n </span>\n</div>\n\n<nav>\n <ul class=\"paginator\" *ngIf=\"length > 5\">\n <li class=\"pagination-number\" *ngIf=\"current !== 1\">\n <div (click)=\"goFirst(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Left_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"last-page\" *ngIf=\"current !== 1\">\n <div (click)=\"prevPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"> </lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pages-before pagination-number\" *ngFor=\"let page of previousPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"pagination-number current-page\">\n <div>\n {{ current }}\n </div>\n </li>\n\n <li class=\"pages-after pagination-number\" *ngFor=\"let page of nextPages\">\n <div (click)=\"goToSpecPage(page, $event)\">{{ page }}</div>\n </li>\n\n <li class=\"next-page\" *ngIf=\"current !== length\">\n <div (click)=\"nextPage(); scrollToElement($event)\" title=\"next page\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\"></lib-elux-icon>\n </div>\n </li>\n\n <li class=\"pagination-number\" *ngIf=\"current !== length\">\n <div (click)=\"goLast(); scrollToElement($event)\">\n <lib-elux-icon [icon]=\"'Chevron_Right_Double.svg'\" [sizeType]=\"'px'\" [size]=\"'16'\"></lib-elux-icon>\n </div>\n </li>\n </ul>\n\n <ul class=\"paginator\" *ngIf=\"length <= 5\">\n <li *ngFor=\"let page of pages\" class=\"pagination-number\" [ngClass]=\"current === page ? 'current-page' : ''\">\n <div (click)=\"goToSpecPage(page, $event);\">\n {{ page }}\n </div>\n </li>\n </ul>\n</nav>\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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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,:host nav ul li.pagination-number div{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption,:host .paginator-info{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}:host .paginator-info{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:32px;color:#868687}:host .paginator-info .paginator-info-per-page{display:flex;align-items:center;white-space:nowrap;gap:4px}:host .paginator-info .paginator-per-page-dropdown{width:52px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .selected-option{height:28px;padding:0 18px 0 8px;font-size:14px;color:#515253;box-sizing:border-box}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .arrow-icon{top:calc(50% - 8px);right:2px}:host .paginator-info .paginator-per-page-dropdown ::ng-deep .dropdown-list li{color:#515253}:host nav{display:flex;justify-content:center}:host nav ul{padding:0;margin:0!important;display:flex;align-items:center}:host nav ul li{list-style:none;margin-right:8px;margin-left:8px;height:24px;width:24px;display:flex;align-items:center;justify-content:center;border-radius:24px;cursor:pointer}:host nav ul li.pagination-number div{background-color:transparent;border-radius:24px;height:24px;width:24px;text-align:center;line-height:16px;display:flex;align-items:center;justify-content:center}:host nav ul li.pagination-number.current-page div{background-color:#011e41;border-radius:24px;color:#fff}:host nav ul li.next-page,:host nav ul li.last-page{height:24px;width:24px}:host nav ul li.next-page div,:host nav ul li.last-page div{background-color:transparent;border-radius:24px;height:24px;width:24px;border:1px solid #011E41;text-align:center;line-height:14px;display:flex;justify-content:center;align-items:center}:host nav ul li.next-page div:hover,:host nav ul li.last-page div:hover{border-color:#011e41}\n"] }]
541
537
  }], ctorParameters: () => [], propDecorators: { length: [{
542
538
  type: Input
543
539
  }], current: [{
@@ -1118,6 +1114,153 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
1118
1114
  type: Output
1119
1115
  }] } });
1120
1116
 
1117
+ class DataTableValueObserver {
1118
+ constructor(document, platformId, zone) {
1119
+ this.document = document;
1120
+ this.zone = zone;
1121
+ this.callbacks = new Map();
1122
+ this.pending = new Set();
1123
+ this.onFontsLoaded = () => {
1124
+ this.callbacks.forEach(callback => this.schedule(callback));
1125
+ };
1126
+ this.window = isPlatformBrowser(platformId) ? document.defaultView : null;
1127
+ this.available = !!this.window && typeof ResizeObserver !== 'undefined';
1128
+ if (this.available) {
1129
+ this.observer = this.zone.runOutsideAngular(() => new ResizeObserver(entries => {
1130
+ for (const entry of entries) {
1131
+ const callback = this.callbacks.get(entry.target);
1132
+ if (callback)
1133
+ this.schedule(callback);
1134
+ }
1135
+ }));
1136
+ this.document.fonts?.addEventListener('loadingdone', this.onFontsLoaded);
1137
+ this.document.fonts?.ready.then(this.onFontsLoaded);
1138
+ }
1139
+ else if (this.window) {
1140
+ console.warn('ResizeObserver is unavailable; datatable values will be displayed in full.');
1141
+ }
1142
+ }
1143
+ observe(element, callback) {
1144
+ this.callbacks.set(element, callback);
1145
+ this.observer?.observe(element);
1146
+ this.schedule(callback);
1147
+ }
1148
+ unobserve(element, callback) {
1149
+ this.observer?.unobserve(element);
1150
+ this.callbacks.delete(element);
1151
+ this.pending.delete(callback);
1152
+ }
1153
+ schedule(callback) {
1154
+ if (!this.available || !this.window)
1155
+ return;
1156
+ this.pending.add(callback);
1157
+ if (this.frame !== undefined)
1158
+ return;
1159
+ this.zone.runOutsideAngular(() => {
1160
+ this.frame = this.window.requestAnimationFrame(() => {
1161
+ this.frame = undefined;
1162
+ const callbacks = Array.from(this.pending);
1163
+ this.pending.clear();
1164
+ callbacks.forEach(check => check());
1165
+ });
1166
+ });
1167
+ }
1168
+ ngOnDestroy() {
1169
+ this.observer?.disconnect();
1170
+ this.document.fonts?.removeEventListener('loadingdone', this.onFontsLoaded);
1171
+ if (this.frame !== undefined)
1172
+ this.window?.cancelAnimationFrame(this.frame);
1173
+ this.callbacks.clear();
1174
+ this.pending.clear();
1175
+ }
1176
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: DataTableValueObserver, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
1177
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: DataTableValueObserver }); }
1178
+ }
1179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: DataTableValueObserver, decorators: [{
1180
+ type: Injectable
1181
+ }], ctorParameters: () => [{ type: Document, decorators: [{
1182
+ type: Inject,
1183
+ args: [DOCUMENT]
1184
+ }] }, { type: undefined, decorators: [{
1185
+ type: Inject,
1186
+ args: [PLATFORM_ID]
1187
+ }] }, { type: i0.NgZone }] });
1188
+ class DataTableValueDirective {
1189
+ constructor(element, observer, changeDetector, zone) {
1190
+ this.element = element;
1191
+ this.observer = observer;
1192
+ this.changeDetector = changeDetector;
1193
+ this.zone = zone;
1194
+ this.expanded = false;
1195
+ this.toggled = false;
1196
+ this.truncated = false;
1197
+ this.measure = () => {
1198
+ if (this.expanded)
1199
+ return;
1200
+ const element = this.textElement;
1201
+ if (!element || !element.clientWidth)
1202
+ return;
1203
+ if (element.ownerDocument.defaultView?.getComputedStyle(element).webkitLineClamp === 'none')
1204
+ return;
1205
+ const truncated = element.scrollHeight > element.clientHeight;
1206
+ if (truncated !== this.truncated) {
1207
+ this.zone.run(() => {
1208
+ this.truncated = truncated;
1209
+ this.changeDetector.markForCheck();
1210
+ });
1211
+ }
1212
+ };
1213
+ this.canMeasure = observer.available;
1214
+ }
1215
+ ngOnInit() {
1216
+ const textElement = this.element.nativeElement.querySelector('.value-text');
1217
+ if (!textElement)
1218
+ throw new Error('Datatable value text element is missing.');
1219
+ this.textElement = textElement;
1220
+ if (this.canMeasure)
1221
+ this.observer.observe(this.textElement, this.measure);
1222
+ }
1223
+ ngOnChanges(changes) {
1224
+ if (changes['valueCell'] || changes['valueRow']) {
1225
+ this.expanded = false;
1226
+ this.toggled = false;
1227
+ this.truncated = false;
1228
+ }
1229
+ this.observer.schedule(this.measure);
1230
+ }
1231
+ toggle(event) {
1232
+ event.stopPropagation();
1233
+ this.expanded = !this.expanded;
1234
+ this.toggled = true;
1235
+ if (!this.expanded)
1236
+ this.observer.schedule(this.measure);
1237
+ }
1238
+ onClampAnimationEnd() {
1239
+ if (!this.expanded)
1240
+ this.observer.schedule(this.measure);
1241
+ }
1242
+ ngOnDestroy() {
1243
+ if (this.textElement)
1244
+ this.observer.unobserve(this.textElement, this.measure);
1245
+ this.textElement = undefined;
1246
+ }
1247
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: DataTableValueDirective, deps: [{ token: i0.ElementRef }, { token: DataTableValueObserver }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
1248
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.35", type: DataTableValueDirective, isStandalone: true, selector: "[libDatatableValue]", inputs: { valueCell: "valueCell", valueRow: "valueRow", valueText: "valueText" }, exportAs: ["datatableValue"], usesOnChanges: true, ngImport: i0 }); }
1249
+ }
1250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: DataTableValueDirective, decorators: [{
1251
+ type: Directive,
1252
+ args: [{
1253
+ selector: '[libDatatableValue]',
1254
+ exportAs: 'datatableValue',
1255
+ }]
1256
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: DataTableValueObserver }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { valueCell: [{
1257
+ type: Input
1258
+ }], valueRow: [{
1259
+ type: Input
1260
+ }], valueText: [{
1261
+ type: Input
1262
+ }] } });
1263
+
1121
1264
  class EluxDataTable {
1122
1265
  constructor() {
1123
1266
  this.columns = [];
@@ -1126,6 +1269,8 @@ class EluxDataTable {
1126
1269
  this.itemsPerPage = 15;
1127
1270
  this.backendPagination = false;
1128
1271
  this.emptyMessage = 'Nenhum item localizado com base nos critérios de busca.';
1272
+ this.viewMoreLabel = 'Ver mais';
1273
+ this.viewLessLabel = 'Ver menos';
1129
1274
  this.loading = false;
1130
1275
  this.hasPaginator = false;
1131
1276
  this.showPaginatorInfo = false;
@@ -1247,11 +1392,11 @@ class EluxDataTable {
1247
1392
  return classes;
1248
1393
  }
1249
1394
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxDataTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1250
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: EluxDataTable, isStandalone: true, selector: "lib-elux-datatable", inputs: { columns: "columns", rows: "rows", totalRows: "totalRows", itemsPerPage: "itemsPerPage", backendPagination: "backendPagination", emptyMessage: "emptyMessage", loading: "loading", isRowClickable: ["isRowClickable", "isRowClickable", booleanAttribute], isCellClickable: ["isCellClickable", "isCellClickable", booleanAttribute], hasPaginator: ["hasPaginator", "hasPaginator", booleanAttribute], showPaginatorInfo: ["showPaginatorInfo", "showPaginatorInfo", booleanAttribute] }, outputs: { currentPageChange: "currentPageChange", itemsPerPageChange: "itemsPerPageChange", onClick: "onClick", onChecked: "onChecked", ontInputChange: "ontInputChange", onAction: "onAction" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"table-container\">\n <div class=\"table-scroll\">\n <div class=\"table-header\">\n @for (column of columns; track $index) {\n <div class=\"header-row-cell\" [ngClass]=\"getHeaderClasses(column)\">\n {{column.text}}\n </div>\n }\n </div>\n\n @if (loading) {\n <div class=\"table-row justify-content-center\">\n <lib-elux-loading></lib-elux-loading>\n </div>\n } @else if (displayRows.length == 0) {\n <div class=\"table-row pt-3 pb-3\">\n {{emptyMessage}}\n </div>\n } @else {\n @for (row of displayRows; track $index) {\n <div class=\"table-row\" [ngClass]=\"{'clickable': isRowClickable}\" (click)=\"onRowClick($event, row, $index)\">\n @for (cell of row; track $index) {\n @switch (cell.type) {\n @case (\"redirect-internal\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n <a [routerLink]=\"cell.value.toString()\" class=\"route\">{{cell.name}}</a>\n </div>\n }\n @case (\"redirect-external\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n <a [href]=\"cell.value\" class=\"route\" target=\"_blank\">{{cell.name}}</a>\n </div>\n }\n @case (\"checkbox\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input type=\"checkbox\" [checked]=\"cell.value\" (change)=\"onCheckboxChange($event, row, cell, $index)\"\n [attr.disabled]=\"cell.disabled ? true : null\" />\n </div>\n }\n @case (\"input\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input step=\"\" type=\"text\" [value]=\"cell.value\" (blur)=\"onInputChange($event, row, cell, $index)\" />\n </div>\n }\n @case (\"input-number\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input step=\"\" type=\"number\" [value]=\"cell.value\" [min]=\"cell.min\" [max]=\"cell.max\"\n (blur)=\"onInputChange($event, row, cell, $index)\" />\n </div>\n }\n @case (\"input-quantity\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-quantity-input\n [value]=\"cell.value ?? 0\"\n [min]=\"cell.min ?? 0\"\n [max]=\"cell.max\"\n [step]=\"cell.step ?? 1\"\n [disabled]=\"!!cell.disabled\"\n (onChange)=\"onQuantityChange($event, row, cell, $index)\"\n ></lib-elux-quantity-input>\n </div>\n }\n @case (\"action\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-button\n [type]=\"cell.label ? (cell.buttonType ?? 'text') : 'icon-only'\"\n [compact]=\"true\"\n [icon]=\"cell.icon\"\n [content]=\"cell.label ?? ''\"\n [disabled]=\"!!cell.disabled\"\n [title]=\"cell.name ?? ''\"\n (onClick)=\"onActionClick($event, row, cell, $index)\"\n >\n </lib-elux-button>\n </div>\n }\n @default {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n {{cell.value}}\n </div>\n }\n }\n }\n </div>\n }\n }\n </div>\n\n @if (hasPaginator && effectiveTotalRows > itemsPerPage) {\n <div class=\"table-footer\">\n <lib-elux-paginator (paginationEvents)=\"onPageChange($event)\" (itemsPerPageChange)=\"onItemsPerPageChange($event)\"\n [anchor]=\"true\" [length]=\"paginatorTotalPages\" [current]=\"currentPage\" [totalItems]=\"effectiveTotalRows\"\n [itemsPerPage]=\"itemsPerPage\" [showPaginatorInfo]=\"showPaginatorInfo\">\n </lib-elux-paginator>\n </div>\n }\n\n</div>", 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}}.table-container{font-family:Electrolux Sans;display:flex;flex-direction:column;flex-wrap:nowrap;border-top:1px solid #ADB9C3}.table-scroll{display:flex;flex-direction:column;flex-wrap:nowrap}.table-row{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;padding:8px 16px}.table-header{display:flex;flex-direction:row;flex-wrap:nowrap;font-size:14px;font-weight:600;padding:16px;margin-bottom:16px;color:#515253;border-bottom:1px solid #ADB9C3}.header-row-cell{display:flex;flex:1;justify-content:start;align-items:center}.row-cell{display:flex;flex:1;justify-content:start;align-items:center;font-size:14px;height:45px;font-family:Electrolux Sans;color:#515253;word-break:break-word}.row-cell a{font-family:Electrolux Sans;font-weight:700;font-size:16px;color:#515253}.clickable{cursor:pointer;transition:all .15s ease-in-out}.clickable:hover{background-color:#dee7ea}.table-footer{display:flex;flex-direction:column;justify-content:center;margin-top:16px;padding:16px 0;align-items:center;border-top:1px solid #ADB9C3}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "component", type: EluxPaginator, selector: "lib-elux-paginator", inputs: ["length", "current", "anchor", "scrollTo", "totalItems", "itemsPerPage", "itemsPerPageOptions", "showPaginatorInfo", "itemLabel", "showingLabel", "ofLabel", "itemsPerPageLabel"], outputs: ["paginationEvents", "itemsPerPageChange"] }, { kind: "component", type: EluxLoading, selector: "lib-elux-loading", inputs: ["size", "white"] }, { kind: "component", type: EluxButton, selector: "lib-elux-button", inputs: ["disabled", "type", "typeButton", "content", "done", "routerLink", "link", "size", "compact", "icon", "iconSize", "iconAlign", "externalLink", "loading", "onlyfirstLetterUpper", "rounded"], outputs: ["onClick"] }, { kind: "component", type: EluxQuantityInput, selector: "lib-elux-quantity-input", inputs: ["value", "min", "max", "step", "disabled"], outputs: ["valueChange", "onChange"] }] }); }
1395
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: EluxDataTable, isStandalone: true, selector: "lib-elux-datatable", inputs: { columns: "columns", rows: "rows", totalRows: "totalRows", itemsPerPage: "itemsPerPage", backendPagination: "backendPagination", emptyMessage: "emptyMessage", viewMoreLabel: "viewMoreLabel", viewLessLabel: "viewLessLabel", loading: "loading", isRowClickable: ["isRowClickable", "isRowClickable", booleanAttribute], isCellClickable: ["isCellClickable", "isCellClickable", booleanAttribute], hasPaginator: ["hasPaginator", "hasPaginator", booleanAttribute], showPaginatorInfo: ["showPaginatorInfo", "showPaginatorInfo", booleanAttribute] }, outputs: { currentPageChange: "currentPageChange", itemsPerPageChange: "itemsPerPageChange", onClick: "onClick", onChecked: "onChecked", ontInputChange: "ontInputChange", onAction: "onAction" }, providers: [DataTableValueObserver], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-container\">\n <div class=\"table-scroll\">\n <table>\n <thead>\n <tr class=\"table-header\">\n @for (column of columns; track $index) {\n <th scope=\"col\">\n <div class=\"header-row-cell\" [ngClass]=\"getHeaderClasses(column)\">\n {{ column.text }}\n </div>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @if (loading) {\n <tr class=\"table-row\">\n <td [attr.colspan]=\"columns.length || 1\">\n <div class=\"d-flex justify-content-center\">\n <lib-elux-loading />\n </div>\n </td>\n </tr>\n } @else if (displayRows.length == 0) {\n <tr class=\"table-row\">\n <td [attr.colspan]=\"columns.length || 1\" class=\"pt-3 pb-3\">\n {{ emptyMessage }}\n </td>\n </tr>\n } @else {\n @for (row of displayRows; track $index) {\n <tr\n class=\"table-row\"\n [ngClass]=\"{ clickable: isRowClickable }\"\n (click)=\"onRowClick($event, row, $index)\"\n >\n @for (cell of row; track $index) {\n <td [attr.data-column]=\"columns[$index]?.text\">\n @switch (cell.type) {\n @case ('redirect-internal') {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <a [routerLink]=\"cell.value.toString()\" class=\"route\">{{ cell.name }}</a>\n </div>\n }\n @case ('redirect-external') {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <a [href]=\"cell.value\" class=\"route\" target=\"_blank\">{{ cell.name }}</a>\n </div>\n }\n @case ('checkbox') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n type=\"checkbox\"\n [checked]=\"cell.value\"\n (change)=\"onCheckboxChange($event, row, cell, $index)\"\n [attr.disabled]=\"cell.disabled ? true : null\"\n />\n </div>\n }\n @case ('input') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n step=\"\"\n type=\"text\"\n [value]=\"cell.value\"\n (blur)=\"onInputChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('input-number') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n step=\"\"\n type=\"number\"\n [value]=\"cell.value\"\n [min]=\"cell.min\"\n [max]=\"cell.max\"\n (blur)=\"onInputChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('input-quantity') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-quantity-input\n [value]=\"cell.value ?? 0\"\n [min]=\"cell.min ?? 0\"\n [max]=\"cell.max\"\n [step]=\"cell.step ?? 1\"\n [disabled]=\"!!cell.disabled\"\n (onChange)=\"onQuantityChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('action') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-button\n [type]=\"cell.label ? (cell.buttonType ?? 'text') : 'icon-only'\"\n [compact]=\"true\"\n [icon]=\"cell.icon\"\n [content]=\"cell.label ?? ''\"\n [disabled]=\"!!cell.disabled\"\n [title]=\"cell.name ?? ''\"\n (onClick)=\"onActionClick($event, row, cell, $index)\"\n />\n </div>\n }\n @default {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <div\n class=\"value-content\"\n libDatatableValue\n #value=\"datatableValue\"\n [valueCell]=\"cell\"\n [valueRow]=\"row\"\n [valueText]=\"cell.value\"\n >\n <div class=\"value-drawer\" [class.value-drawer-collapsed]=\"value.truncated && !value.expanded\">\n <div\n class=\"value-text\"\n [class.value-collapsed]=\"value.canMeasure && !value.expanded\"\n [class.value-animate-clamp]=\"value.toggled && !value.expanded\"\n (animationend)=\"value.onClampAnimationEnd()\"\n (animationcancel)=\"value.onClampAnimationEnd()\"\n >{{ cell.value }}</div>\n </div>\n @if (value.truncated || value.expanded) {\n <button\n type=\"button\"\n class=\"value-toggle\"\n [attr.aria-expanded]=\"value.expanded\"\n (click)=\"value.toggle($event)\"\n >\n <span>\n {{ value.expanded ? viewLessLabel : viewMoreLabel }}\n </span>\n @if (value.expanded) {\n <lib-elux-icon\n aria-hidden=\"true\"\n [icon]=\"'Chevron_Up.svg'\"\n [size]=\"'13'\"\n [sizeType]=\"'px'\"\n />\n } @else {\n <lib-elux-icon\n aria-hidden=\"true\"\n [icon]=\"'Chevron_Down.svg'\"\n [size]=\"'13'\"\n [sizeType]=\"'px'\"\n />\n }\n </button>\n }\n </div>\n </div>\n }\n }\n </td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n\n @if (hasPaginator && effectiveTotalRows > itemsPerPage) {\n <div class=\"table-footer\">\n <lib-elux-paginator\n (paginationEvents)=\"onPageChange($event)\"\n (itemsPerPageChange)=\"onItemsPerPageChange($event)\"\n [anchor]=\"true\"\n [length]=\"paginatorTotalPages\"\n [current]=\"currentPage\"\n [totalItems]=\"effectiveTotalRows\"\n [itemsPerPage]=\"itemsPerPage\"\n [showPaginatorInfo]=\"showPaginatorInfo\"\n />\n </div>\n }\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}}.table-container{font-family:Electrolux Sans;display:flex;flex-direction:column;flex-wrap:nowrap;border-top:1px solid #ADB9C3}.table-scroll{overflow-x:auto;container:datatable/inline-size}table{width:100%;border-collapse:collapse}.table-row>td{padding:8px}tbody tr:first-child>td{padding-top:24px}tr>:first-child{padding-left:16px}tr>:last-child{padding-right:16px}.table-header{font-size:14px;font-weight:600;color:#515253;border-bottom:1px solid #ADB9C3}.table-header>th{padding:16px 8px}.header-row-cell{display:flex;justify-content:start;align-items:center}.row-cell{display:flex;justify-content:start;align-items:center;font-size:14px;height:auto;min-height:45px;font-family:Electrolux Sans;color:#515253}.row-cell a{font-family:Electrolux Sans;font-weight:700;font-size:16px;color:#515253}.value-content{width:100%;min-width:0;overflow-wrap:anywhere}.value-drawer{overflow:hidden;block-size:auto}.value-drawer-collapsed{block-size:3lh}.value-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}@supports (interpolate-size: allow-keywords){.value-content{interpolate-size:allow-keywords}.value-drawer{transition:block-size .25s ease-in-out}.value-animate-clamp{animation:restore-value-clamp .25s steps(1,end)}}@keyframes restore-value-clamp{0%{-webkit-line-clamp:unset}to{-webkit-line-clamp:3}}@media(prefers-reduced-motion:reduce){.value-drawer{transition:none}.value-animate-clamp{animation:none}}.value-toggle{display:flex;align-items:center;gap:4px;margin-top:8px;margin-inline-start:auto;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.value-toggle lib-elux-icon{display:inline-flex}.clickable{cursor:pointer;transition:all .15s ease-in-out}.clickable:hover{background-color:#dee7ea}.table-footer{display:flex;flex-direction:column;justify-content:center;margin-top:16px;padding:16px 0;align-items:center;border-top:1px solid #ADB9C3}@container datatable (width <= 576px){table,tbody{display:block}thead{display:none}tbody .table-row{display:flex;flex-direction:column;margin-bottom:24px}tbody .table-row>td{display:block;box-sizing:border-box;min-width:0;width:100%;padding:8px 16px;border:1px solid #ADB9C3}tbody .table-row>td .row-cell{min-height:0}tbody .table-row>td+td{border-top:0}td[data-column]:not([data-column=\"\"]):before{content:attr(data-column);display:block;margin-bottom:8px;color:#515253;font-size:14px;font-weight:600;overflow-wrap:anywhere}.clickable:hover{background-color:inherit}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "component", type: EluxPaginator, selector: "lib-elux-paginator", inputs: ["length", "current", "anchor", "scrollTo", "totalItems", "itemsPerPage", "itemsPerPageOptions", "showPaginatorInfo", "itemLabel", "showingLabel", "ofLabel", "itemsPerPageLabel"], outputs: ["paginationEvents", "itemsPerPageChange"] }, { kind: "component", type: EluxLoading, selector: "lib-elux-loading", inputs: ["size", "white"] }, { kind: "component", type: EluxButton, selector: "lib-elux-button", inputs: ["disabled", "type", "typeButton", "content", "done", "routerLink", "link", "size", "compact", "icon", "iconSize", "iconAlign", "externalLink", "loading", "onlyfirstLetterUpper", "rounded"], outputs: ["onClick"] }, { kind: "component", type: EluxQuantityInput, selector: "lib-elux-quantity-input", inputs: ["value", "min", "max", "step", "disabled"], outputs: ["valueChange", "onChange"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }, { kind: "directive", type: DataTableValueDirective, selector: "[libDatatableValue]", inputs: ["valueCell", "valueRow", "valueText"], exportAs: ["datatableValue"] }] }); }
1251
1396
  }
1252
1397
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxDataTable, decorators: [{
1253
1398
  type: Component,
1254
- args: [{ selector: 'lib-elux-datatable', imports: [CommonModule, RouterModule, EluxPaginator, EluxLoading, EluxButton, EluxQuantityInput], template: "<div class=\"table-container\">\n <div class=\"table-scroll\">\n <div class=\"table-header\">\n @for (column of columns; track $index) {\n <div class=\"header-row-cell\" [ngClass]=\"getHeaderClasses(column)\">\n {{column.text}}\n </div>\n }\n </div>\n\n @if (loading) {\n <div class=\"table-row justify-content-center\">\n <lib-elux-loading></lib-elux-loading>\n </div>\n } @else if (displayRows.length == 0) {\n <div class=\"table-row pt-3 pb-3\">\n {{emptyMessage}}\n </div>\n } @else {\n @for (row of displayRows; track $index) {\n <div class=\"table-row\" [ngClass]=\"{'clickable': isRowClickable}\" (click)=\"onRowClick($event, row, $index)\">\n @for (cell of row; track $index) {\n @switch (cell.type) {\n @case (\"redirect-internal\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n <a [routerLink]=\"cell.value.toString()\" class=\"route\">{{cell.name}}</a>\n </div>\n }\n @case (\"redirect-external\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n <a [href]=\"cell.value\" class=\"route\" target=\"_blank\">{{cell.name}}</a>\n </div>\n }\n @case (\"checkbox\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input type=\"checkbox\" [checked]=\"cell.value\" (change)=\"onCheckboxChange($event, row, cell, $index)\"\n [attr.disabled]=\"cell.disabled ? true : null\" />\n </div>\n }\n @case (\"input\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input step=\"\" type=\"text\" [value]=\"cell.value\" (blur)=\"onInputChange($event, row, cell, $index)\" />\n </div>\n }\n @case (\"input-number\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input step=\"\" type=\"number\" [value]=\"cell.value\" [min]=\"cell.min\" [max]=\"cell.max\"\n (blur)=\"onInputChange($event, row, cell, $index)\" />\n </div>\n }\n @case (\"input-quantity\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-quantity-input\n [value]=\"cell.value ?? 0\"\n [min]=\"cell.min ?? 0\"\n [max]=\"cell.max\"\n [step]=\"cell.step ?? 1\"\n [disabled]=\"!!cell.disabled\"\n (onChange)=\"onQuantityChange($event, row, cell, $index)\"\n ></lib-elux-quantity-input>\n </div>\n }\n @case (\"action\") {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-button\n [type]=\"cell.label ? (cell.buttonType ?? 'text') : 'icon-only'\"\n [compact]=\"true\"\n [icon]=\"cell.icon\"\n [content]=\"cell.label ?? ''\"\n [disabled]=\"!!cell.disabled\"\n [title]=\"cell.name ?? ''\"\n (onClick)=\"onActionClick($event, row, cell, $index)\"\n >\n </lib-elux-button>\n </div>\n }\n @default {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\" (click)=\"onCellClick($event, row, cell, $index)\">\n {{cell.value}}\n </div>\n }\n }\n }\n </div>\n }\n }\n </div>\n\n @if (hasPaginator && effectiveTotalRows > itemsPerPage) {\n <div class=\"table-footer\">\n <lib-elux-paginator (paginationEvents)=\"onPageChange($event)\" (itemsPerPageChange)=\"onItemsPerPageChange($event)\"\n [anchor]=\"true\" [length]=\"paginatorTotalPages\" [current]=\"currentPage\" [totalItems]=\"effectiveTotalRows\"\n [itemsPerPage]=\"itemsPerPage\" [showPaginatorInfo]=\"showPaginatorInfo\">\n </lib-elux-paginator>\n </div>\n }\n\n</div>", 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}}.table-container{font-family:Electrolux Sans;display:flex;flex-direction:column;flex-wrap:nowrap;border-top:1px solid #ADB9C3}.table-scroll{display:flex;flex-direction:column;flex-wrap:nowrap}.table-row{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;padding:8px 16px}.table-header{display:flex;flex-direction:row;flex-wrap:nowrap;font-size:14px;font-weight:600;padding:16px;margin-bottom:16px;color:#515253;border-bottom:1px solid #ADB9C3}.header-row-cell{display:flex;flex:1;justify-content:start;align-items:center}.row-cell{display:flex;flex:1;justify-content:start;align-items:center;font-size:14px;height:45px;font-family:Electrolux Sans;color:#515253;word-break:break-word}.row-cell a{font-family:Electrolux Sans;font-weight:700;font-size:16px;color:#515253}.clickable{cursor:pointer;transition:all .15s ease-in-out}.clickable:hover{background-color:#dee7ea}.table-footer{display:flex;flex-direction:column;justify-content:center;margin-top:16px;padding:16px 0;align-items:center;border-top:1px solid #ADB9C3}\n"] }]
1399
+ args: [{ selector: 'lib-elux-datatable', imports: [CommonModule, RouterModule, EluxPaginator, EluxLoading, EluxButton, EluxQuantityInput, EluxIcon, DataTableValueDirective], providers: [DataTableValueObserver], template: "<div class=\"table-container\">\n <div class=\"table-scroll\">\n <table>\n <thead>\n <tr class=\"table-header\">\n @for (column of columns; track $index) {\n <th scope=\"col\">\n <div class=\"header-row-cell\" [ngClass]=\"getHeaderClasses(column)\">\n {{ column.text }}\n </div>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @if (loading) {\n <tr class=\"table-row\">\n <td [attr.colspan]=\"columns.length || 1\">\n <div class=\"d-flex justify-content-center\">\n <lib-elux-loading />\n </div>\n </td>\n </tr>\n } @else if (displayRows.length == 0) {\n <tr class=\"table-row\">\n <td [attr.colspan]=\"columns.length || 1\" class=\"pt-3 pb-3\">\n {{ emptyMessage }}\n </td>\n </tr>\n } @else {\n @for (row of displayRows; track $index) {\n <tr\n class=\"table-row\"\n [ngClass]=\"{ clickable: isRowClickable }\"\n (click)=\"onRowClick($event, row, $index)\"\n >\n @for (cell of row; track $index) {\n <td [attr.data-column]=\"columns[$index]?.text\">\n @switch (cell.type) {\n @case ('redirect-internal') {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <a [routerLink]=\"cell.value.toString()\" class=\"route\">{{ cell.name }}</a>\n </div>\n }\n @case ('redirect-external') {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <a [href]=\"cell.value\" class=\"route\" target=\"_blank\">{{ cell.name }}</a>\n </div>\n }\n @case ('checkbox') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n type=\"checkbox\"\n [checked]=\"cell.value\"\n (change)=\"onCheckboxChange($event, row, cell, $index)\"\n [attr.disabled]=\"cell.disabled ? true : null\"\n />\n </div>\n }\n @case ('input') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n step=\"\"\n type=\"text\"\n [value]=\"cell.value\"\n (blur)=\"onInputChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('input-number') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <input\n step=\"\"\n type=\"number\"\n [value]=\"cell.value\"\n [min]=\"cell.min\"\n [max]=\"cell.max\"\n (blur)=\"onInputChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('input-quantity') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-quantity-input\n [value]=\"cell.value ?? 0\"\n [min]=\"cell.min ?? 0\"\n [max]=\"cell.max\"\n [step]=\"cell.step ?? 1\"\n [disabled]=\"!!cell.disabled\"\n (onChange)=\"onQuantityChange($event, row, cell, $index)\"\n />\n </div>\n }\n @case ('action') {\n <div class=\"row-cell\" [ngClass]=\"getCellClasses(cell)\">\n <lib-elux-button\n [type]=\"cell.label ? (cell.buttonType ?? 'text') : 'icon-only'\"\n [compact]=\"true\"\n [icon]=\"cell.icon\"\n [content]=\"cell.label ?? ''\"\n [disabled]=\"!!cell.disabled\"\n [title]=\"cell.name ?? ''\"\n (onClick)=\"onActionClick($event, row, cell, $index)\"\n />\n </div>\n }\n @default {\n <div\n class=\"row-cell\"\n [ngClass]=\"getCellClasses(cell)\"\n (click)=\"onCellClick($event, row, cell, $index)\"\n >\n <div\n class=\"value-content\"\n libDatatableValue\n #value=\"datatableValue\"\n [valueCell]=\"cell\"\n [valueRow]=\"row\"\n [valueText]=\"cell.value\"\n >\n <div class=\"value-drawer\" [class.value-drawer-collapsed]=\"value.truncated && !value.expanded\">\n <div\n class=\"value-text\"\n [class.value-collapsed]=\"value.canMeasure && !value.expanded\"\n [class.value-animate-clamp]=\"value.toggled && !value.expanded\"\n (animationend)=\"value.onClampAnimationEnd()\"\n (animationcancel)=\"value.onClampAnimationEnd()\"\n >{{ cell.value }}</div>\n </div>\n @if (value.truncated || value.expanded) {\n <button\n type=\"button\"\n class=\"value-toggle\"\n [attr.aria-expanded]=\"value.expanded\"\n (click)=\"value.toggle($event)\"\n >\n <span>\n {{ value.expanded ? viewLessLabel : viewMoreLabel }}\n </span>\n @if (value.expanded) {\n <lib-elux-icon\n aria-hidden=\"true\"\n [icon]=\"'Chevron_Up.svg'\"\n [size]=\"'13'\"\n [sizeType]=\"'px'\"\n />\n } @else {\n <lib-elux-icon\n aria-hidden=\"true\"\n [icon]=\"'Chevron_Down.svg'\"\n [size]=\"'13'\"\n [sizeType]=\"'px'\"\n />\n }\n </button>\n }\n </div>\n </div>\n }\n }\n </td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n\n @if (hasPaginator && effectiveTotalRows > itemsPerPage) {\n <div class=\"table-footer\">\n <lib-elux-paginator\n (paginationEvents)=\"onPageChange($event)\"\n (itemsPerPageChange)=\"onItemsPerPageChange($event)\"\n [anchor]=\"true\"\n [length]=\"paginatorTotalPages\"\n [current]=\"currentPage\"\n [totalItems]=\"effectiveTotalRows\"\n [itemsPerPage]=\"itemsPerPage\"\n [showPaginatorInfo]=\"showPaginatorInfo\"\n />\n </div>\n }\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}}.table-container{font-family:Electrolux Sans;display:flex;flex-direction:column;flex-wrap:nowrap;border-top:1px solid #ADB9C3}.table-scroll{overflow-x:auto;container:datatable/inline-size}table{width:100%;border-collapse:collapse}.table-row>td{padding:8px}tbody tr:first-child>td{padding-top:24px}tr>:first-child{padding-left:16px}tr>:last-child{padding-right:16px}.table-header{font-size:14px;font-weight:600;color:#515253;border-bottom:1px solid #ADB9C3}.table-header>th{padding:16px 8px}.header-row-cell{display:flex;justify-content:start;align-items:center}.row-cell{display:flex;justify-content:start;align-items:center;font-size:14px;height:auto;min-height:45px;font-family:Electrolux Sans;color:#515253}.row-cell a{font-family:Electrolux Sans;font-weight:700;font-size:16px;color:#515253}.value-content{width:100%;min-width:0;overflow-wrap:anywhere}.value-drawer{overflow:hidden;block-size:auto}.value-drawer-collapsed{block-size:3lh}.value-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}@supports (interpolate-size: allow-keywords){.value-content{interpolate-size:allow-keywords}.value-drawer{transition:block-size .25s ease-in-out}.value-animate-clamp{animation:restore-value-clamp .25s steps(1,end)}}@keyframes restore-value-clamp{0%{-webkit-line-clamp:unset}to{-webkit-line-clamp:3}}@media(prefers-reduced-motion:reduce){.value-drawer{transition:none}.value-animate-clamp{animation:none}}.value-toggle{display:flex;align-items:center;gap:4px;margin-top:8px;margin-inline-start:auto;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.value-toggle lib-elux-icon{display:inline-flex}.clickable{cursor:pointer;transition:all .15s ease-in-out}.clickable:hover{background-color:#dee7ea}.table-footer{display:flex;flex-direction:column;justify-content:center;margin-top:16px;padding:16px 0;align-items:center;border-top:1px solid #ADB9C3}@container datatable (width <= 576px){table,tbody{display:block}thead{display:none}tbody .table-row{display:flex;flex-direction:column;margin-bottom:24px}tbody .table-row>td{display:block;box-sizing:border-box;min-width:0;width:100%;padding:8px 16px;border:1px solid #ADB9C3}tbody .table-row>td .row-cell{min-height:0}tbody .table-row>td+td{border-top:0}td[data-column]:not([data-column=\"\"]):before{content:attr(data-column);display:block;margin-bottom:8px;color:#515253;font-size:14px;font-weight:600;overflow-wrap:anywhere}.clickable:hover{background-color:inherit}}\n"] }]
1255
1400
  }], propDecorators: { columns: [{
1256
1401
  type: Input
1257
1402
  }], rows: [{
@@ -1264,6 +1409,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
1264
1409
  type: Input
1265
1410
  }], emptyMessage: [{
1266
1411
  type: Input
1412
+ }], viewMoreLabel: [{
1413
+ type: Input
1414
+ }], viewLessLabel: [{
1415
+ type: Input
1267
1416
  }], loading: [{
1268
1417
  type: Input
1269
1418
  }], isRowClickable: [{