@gettrx/core-components-angular 1.0.31 → 1.0.32

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.
@@ -111,7 +111,7 @@ export class GtrPaginationComponent {
111
111
  this._setTotalPages();
112
112
  }
113
113
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
114
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { 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 *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\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\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\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)}.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"], outputs: ["valueChanged", "searchChanged", "gtrScroll", "gtrTouched"] }, { kind: "component", type: i3.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "pipe", type: i4.GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
114
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { 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 *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\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\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\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)}.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: "pipe", type: i4.GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
115
115
  }
116
116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
117
117
  type: Component,