@gettrx/core-components-angular 1.0.38 → 1.0.39

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.
@@ -113,11 +113,11 @@ export class GtrPaginationComponent {
113
113
  this._setTotalPages();
114
114
  }
115
115
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
116
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: i3.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i4.GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
116
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: i3.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i4.GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
117
117
  }
118
118
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
119
119
  type: Component,
120
- args: [{ selector: 'gtr-pagination', template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
120
+ args: [{ selector: 'gtr-pagination', template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
121
121
  }], propDecorators: { options: [{
122
122
  type: Input
123
123
  }], identifier: [{
@@ -8829,11 +8829,11 @@ class GtrPaginationComponent {
8829
8829
  this._setTotalPages();
8830
8830
  }
8831
8831
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8832
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
8832
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
8833
8833
  }
8834
8834
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
8835
8835
  type: Component,
8836
- args: [{ selector: 'gtr-pagination', template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
8836
+ args: [{ selector: 'gtr-pagination', template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
8837
8837
  }], propDecorators: { options: [{
8838
8838
  type: Input
8839
8839
  }], identifier: [{