@elxjs/ui 0.0.250 → 0.0.251

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.
@@ -236,6 +236,7 @@ class EluxDropdown {
236
236
  this.disabled = false;
237
237
  this.idInput = '';
238
238
  this.showSearch = false;
239
+ this.showSearchField = false;
239
240
  this.hidePlaceholder = false;
240
241
  this.optionSelected = new EventEmitter();
241
242
  this.isOpen = false;
@@ -307,6 +308,9 @@ class EluxDropdown {
307
308
  if (this.isOpen) {
308
309
  this.dropdownService.requestClose(this.idInput);
309
310
  }
311
+ if (this.showSearchField) {
312
+ this.optionsFiltered = this.options;
313
+ }
310
314
  }
311
315
  onDocumentClick(event) {
312
316
  const target = event.target;
@@ -338,7 +342,9 @@ class EluxDropdown {
338
342
  onChangeFilter(event) {
339
343
  const term = event?.target?.value?.toLowerCase() || '';
340
344
  this.optionsFiltered = this.options.filter((option) => option.text.toLowerCase().includes(term));
341
- this.optionsFiltered = this.options.filter((option) => option.text.toLowerCase().includes(term));
345
+ }
346
+ get hasFilter() {
347
+ return this.showSearch || this.showSearchField;
342
348
  }
343
349
  get isTouched() {
344
350
  return this.parentFormControl?.touched || this.parentFormControl?.dirty;
@@ -347,13 +353,13 @@ class EluxDropdown {
347
353
  return this.parentFormControl?.invalid;
348
354
  }
349
355
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxDropdown, deps: [{ token: i0.Injector }, { token: DropdownService }], target: i0.ɵɵFactoryTarget.Component }); }
350
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.35", type: EluxDropdown, isStandalone: true, selector: "lib-elux-dropdown", inputs: { placeholder: "placeholder", options: "options", selectedOption: "selectedOption", disabled: "disabled", idInput: "idInput", showSearch: "showSearch", hidePlaceholder: "hidePlaceholder" }, outputs: { optionSelected: "optionSelected" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, providers: [
356
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.35", type: EluxDropdown, isStandalone: true, selector: "lib-elux-dropdown", inputs: { placeholder: "placeholder", options: "options", selectedOption: "selectedOption", disabled: "disabled", idInput: "idInput", showSearch: "showSearch", showSearchField: "showSearchField", hidePlaceholder: "hidePlaceholder" }, outputs: { optionSelected: "optionSelected" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, providers: [
351
357
  {
352
358
  provide: NG_VALUE_ACCESSOR,
353
359
  useExisting: forwardRef(() => EluxDropdown),
354
360
  multi: true,
355
361
  },
356
- ], usesOnChanges: true, ngImport: i0, template: "<div class=\"custom-dropdown\">\n <input\n type=\"text\"\n class=\"selected-option\"\n [id]=\"idInput\"\n [readonly]=\"showSearch ? false : true\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [value]=\"selectedOptionText ? selectedOptionText : ''\"\n [ngClass]=\"{\n 'ng-invalid': isInvalid,\n 'ng-touched': isTouched,\n 'selected-option-border': !isInvalid || !isTouched,\n }\"\n (click)=\"toggleDropdown()\"\n (input)=\"onChangeFilter($event)\"\n />\n <lib-elux-icon\n class=\"arrow-icon noClick\"\n [color]=\"'#7A8A9B'\"\n [icon]=\"'Chevron_Down.svg'\"\n [ngClass]=\"{ 'arrow-rotate': isOpen }\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <ul class=\"dropdown-list\" *ngIf=\"isOpen\">\n <li *ngFor=\"let option of showSearch ? optionsFiltered : options\" (click)=\"selectOption(option)\">\n {{ option.text }}\n </li>\n </ul>\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,:host{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,:host{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host{color:\"darkest-grey\"}:host .noClick{pointer-events:none}:host .custom-dropdown{position:relative;width:100%}:host .selected-option{padding:10px 16px;cursor:pointer}:host .selected-option-border{border:1px solid #7A8A9B}:host .dropdown-list{list-style-type:none;padding:0;margin:0;border:1px solid #EAEBED;position:absolute;top:100%;width:100%;left:0;background-color:#fff;display:block;max-height:256px;overflow:auto;z-index:10}:host .dropdown-list::-webkit-scrollbar{width:4px}:host .dropdown-list::-webkit-scrollbar-track{background:#f4f5f7}:host .dropdown-list::-webkit-scrollbar-thumb{background:#adb9c3}:host .dropdown-list li{padding:13px 16px;cursor:pointer}:host .dropdown-list li:hover{background-color:#eaebed}:host .arrow-icon{display:flex;position:absolute;top:calc(50% - 8px);right:10px;cursor:pointer;transition:all .3s ease-in-out}:host .arrow-rotate{transform:rotate(180deg)}\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: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
362
+ ], usesOnChanges: true, ngImport: i0, template: "<div class=\"custom-dropdown\">\n <input\n type=\"text\"\n class=\"selected-option\"\n [id]=\"idInput\"\n [readonly]=\"showSearch ? false : true\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [value]=\"selectedOptionText ? selectedOptionText : ''\"\n [ngClass]=\"{\n 'ng-invalid': isInvalid,\n 'ng-touched': isTouched,\n 'selected-option-border': !isInvalid || !isTouched,\n }\"\n (click)=\"toggleDropdown()\"\n (input)=\"onChangeFilter($event)\"\n />\n <lib-elux-icon\n class=\"arrow-icon noClick\"\n [color]=\"'#7A8A9B'\"\n [icon]=\"'Chevron_Down.svg'\"\n [ngClass]=\"{ 'arrow-rotate': isOpen }\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <ul class=\"dropdown-list\" *ngIf=\"isOpen\">\n <li *ngIf=\"showSearchField\" class=\"search-item\">\n <input\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Buscar\"\n (click)=\"$event.stopPropagation()\"\n (input)=\"onChangeFilter($event)\"\n />\n </li>\n <li *ngFor=\"let option of hasFilter ? optionsFiltered : options\" (click)=\"selectOption(option)\">\n {{ option.text }}\n </li>\n </ul>\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,:host{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,:host{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host{color:\"darkest-grey\"}:host .noClick{pointer-events:none}:host .custom-dropdown{position:relative;width:100%}:host .selected-option{padding:10px 16px;cursor:pointer}:host .selected-option-border{border:1px solid #7A8A9B}:host .dropdown-list{list-style-type:none;padding:0;margin:0;border:1px solid #EAEBED;position:absolute;top:100%;width:100%;left:0;background-color:#fff;display:block;max-height:256px;overflow:auto;z-index:10}:host .dropdown-list::-webkit-scrollbar{width:4px}:host .dropdown-list::-webkit-scrollbar-track{background:#f4f5f7}:host .dropdown-list::-webkit-scrollbar-thumb{background:#adb9c3}:host .dropdown-list li{padding:13px 16px;cursor:pointer}:host .dropdown-list li:hover{background-color:#eaebed}:host .dropdown-list .search-item{padding:8px;cursor:default;position:sticky;top:0;background-color:#fff}:host .dropdown-list .search-item:hover{background-color:#fff}:host .search-input{width:100%;padding:8px 12px;border:1px solid #EAEBED;box-sizing:border-box}:host .arrow-icon{display:flex;position:absolute;top:calc(50% - 8px);right:10px;cursor:pointer;transition:all .3s ease-in-out}:host .arrow-rotate{transform:rotate(180deg)}\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: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
357
363
  }
358
364
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxDropdown, decorators: [{
359
365
  type: Component,
@@ -363,7 +369,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
363
369
  useExisting: forwardRef(() => EluxDropdown),
364
370
  multi: true,
365
371
  },
366
- ], template: "<div class=\"custom-dropdown\">\n <input\n type=\"text\"\n class=\"selected-option\"\n [id]=\"idInput\"\n [readonly]=\"showSearch ? false : true\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [value]=\"selectedOptionText ? selectedOptionText : ''\"\n [ngClass]=\"{\n 'ng-invalid': isInvalid,\n 'ng-touched': isTouched,\n 'selected-option-border': !isInvalid || !isTouched,\n }\"\n (click)=\"toggleDropdown()\"\n (input)=\"onChangeFilter($event)\"\n />\n <lib-elux-icon\n class=\"arrow-icon noClick\"\n [color]=\"'#7A8A9B'\"\n [icon]=\"'Chevron_Down.svg'\"\n [ngClass]=\"{ 'arrow-rotate': isOpen }\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <ul class=\"dropdown-list\" *ngIf=\"isOpen\">\n <li *ngFor=\"let option of showSearch ? optionsFiltered : options\" (click)=\"selectOption(option)\">\n {{ option.text }}\n </li>\n </ul>\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,:host{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,:host{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host{color:\"darkest-grey\"}:host .noClick{pointer-events:none}:host .custom-dropdown{position:relative;width:100%}:host .selected-option{padding:10px 16px;cursor:pointer}:host .selected-option-border{border:1px solid #7A8A9B}:host .dropdown-list{list-style-type:none;padding:0;margin:0;border:1px solid #EAEBED;position:absolute;top:100%;width:100%;left:0;background-color:#fff;display:block;max-height:256px;overflow:auto;z-index:10}:host .dropdown-list::-webkit-scrollbar{width:4px}:host .dropdown-list::-webkit-scrollbar-track{background:#f4f5f7}:host .dropdown-list::-webkit-scrollbar-thumb{background:#adb9c3}:host .dropdown-list li{padding:13px 16px;cursor:pointer}:host .dropdown-list li:hover{background-color:#eaebed}:host .arrow-icon{display:flex;position:absolute;top:calc(50% - 8px);right:10px;cursor:pointer;transition:all .3s ease-in-out}:host .arrow-rotate{transform:rotate(180deg)}\n"] }]
372
+ ], template: "<div class=\"custom-dropdown\">\n <input\n type=\"text\"\n class=\"selected-option\"\n [id]=\"idInput\"\n [readonly]=\"showSearch ? false : true\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [value]=\"selectedOptionText ? selectedOptionText : ''\"\n [ngClass]=\"{\n 'ng-invalid': isInvalid,\n 'ng-touched': isTouched,\n 'selected-option-border': !isInvalid || !isTouched,\n }\"\n (click)=\"toggleDropdown()\"\n (input)=\"onChangeFilter($event)\"\n />\n <lib-elux-icon\n class=\"arrow-icon noClick\"\n [color]=\"'#7A8A9B'\"\n [icon]=\"'Chevron_Down.svg'\"\n [ngClass]=\"{ 'arrow-rotate': isOpen }\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n ></lib-elux-icon>\n <ul class=\"dropdown-list\" *ngIf=\"isOpen\">\n <li *ngIf=\"showSearchField\" class=\"search-item\">\n <input\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Buscar\"\n (click)=\"$event.stopPropagation()\"\n (input)=\"onChangeFilter($event)\"\n />\n </li>\n <li *ngFor=\"let option of hasFilter ? optionsFiltered : options\" (click)=\"selectOption(option)\">\n {{ option.text }}\n </li>\n </ul>\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,:host{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,:host{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host{color:\"darkest-grey\"}:host .noClick{pointer-events:none}:host .custom-dropdown{position:relative;width:100%}:host .selected-option{padding:10px 16px;cursor:pointer}:host .selected-option-border{border:1px solid #7A8A9B}:host .dropdown-list{list-style-type:none;padding:0;margin:0;border:1px solid #EAEBED;position:absolute;top:100%;width:100%;left:0;background-color:#fff;display:block;max-height:256px;overflow:auto;z-index:10}:host .dropdown-list::-webkit-scrollbar{width:4px}:host .dropdown-list::-webkit-scrollbar-track{background:#f4f5f7}:host .dropdown-list::-webkit-scrollbar-thumb{background:#adb9c3}:host .dropdown-list li{padding:13px 16px;cursor:pointer}:host .dropdown-list li:hover{background-color:#eaebed}:host .dropdown-list .search-item{padding:8px;cursor:default;position:sticky;top:0;background-color:#fff}:host .dropdown-list .search-item:hover{background-color:#fff}:host .search-input{width:100%;padding:8px 12px;border:1px solid #EAEBED;box-sizing:border-box}:host .arrow-icon{display:flex;position:absolute;top:calc(50% - 8px);right:10px;cursor:pointer;transition:all .3s ease-in-out}:host .arrow-rotate{transform:rotate(180deg)}\n"] }]
367
373
  }], ctorParameters: () => [{ type: i0.Injector }, { type: DropdownService }], propDecorators: { placeholder: [{
368
374
  type: Input
369
375
  }], options: [{
@@ -376,6 +382,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
376
382
  type: Input
377
383
  }], showSearch: [{
378
384
  type: Input
385
+ }], showSearchField: [{
386
+ type: Input
379
387
  }], hidePlaceholder: [{
380
388
  type: Input
381
389
  }], optionSelected: [{
@@ -525,7 +533,7 @@ class EluxPaginator {
525
533
  }
526
534
  }
527
535
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
528
- 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", "hidePlaceholder"], outputs: ["optionSelected"] }] }); }
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"] }] }); }
529
537
  }
530
538
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: EluxPaginator, decorators: [{
531
539
  type: Component,