@gettrx/core-components-angular 1.0.38 → 1.0.40
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.
- package/esm2022/lib/atoms/display-value/gtr-display-value.component.mjs +27 -0
- package/esm2022/lib/atoms/display-value/gtr-display-value.module.mjs +20 -0
- package/esm2022/lib/atoms/display-value/index.mjs +2 -0
- package/esm2022/lib/atoms/display-value/public-api.mjs +3 -0
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/gettrx-core-components-angular.mjs +42 -4
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/display-value/gtr-display-value.component.d.ts +27 -0
- package/lib/atoms/display-value/gtr-display-value.module.d.ts +9 -0
- package/lib/atoms/display-value/index.d.ts +1 -0
- package/lib/atoms/display-value/public-api.d.ts +2 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "../skeleton/utils/gtr-skeleton.directive";
|
|
5
|
+
export class GtrDisplayValueComponent {
|
|
6
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDisplayValueComponent, selector: "gtr-display-value", inputs: { loading: "loading", label: "label", value: "value", contentType: "contentType", id: "id", dataTestId: "dataTestId", skeletonConfigs: "skeletonConfigs" }, ngImport: i0, template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\">\n <div *ngIf=\"label\" class=\"gtr-display-value-label\">{{ label }}</div>\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n <ng-container *ngIf=\"contentType !== 'projected'; else customContent\">\n <span class=\"gtr-display-value-content\" [innerHTML]=\"value\"></span\n ></ng-container>\n <ng-template #customContent>\n <span class=\"gtr-display-value-content\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n </ng-template>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }] }); }
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: 'gtr-display-value', template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\">\n <div *ngIf=\"label\" class=\"gtr-display-value-label\">{{ label }}</div>\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n <ng-container *ngIf=\"contentType !== 'projected'; else customContent\">\n <span class=\"gtr-display-value-content\" [innerHTML]=\"value\"></span\n ></ng-container>\n <ng-template #customContent>\n <span class=\"gtr-display-value-content\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n </ng-template>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"] }]
|
|
12
|
+
}], propDecorators: { loading: [{
|
|
13
|
+
type: Input
|
|
14
|
+
}], label: [{
|
|
15
|
+
type: Input
|
|
16
|
+
}], value: [{
|
|
17
|
+
type: Input
|
|
18
|
+
}], contentType: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], id: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], dataTestId: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], skeletonConfigs: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}] } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RyLWRpc3BsYXktdmFsdWUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZX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lbXBsYXRlPlxuICA8L25nLWNvbnRhaW5lcj5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { GtrDisplayValueComponent } from './gtr-display-value.component';
|
|
3
|
+
import { GtrSkeletonDirective } from './../skeleton/utils/gtr-skeleton.directive';
|
|
4
|
+
import { NgIf, NgTemplateOutlet } from '@angular/common';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class GtrDisplayValueModule {
|
|
7
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, declarations: [GtrDisplayValueComponent], imports: [NgTemplateOutlet, NgIf, GtrSkeletonDirective], exports: [GtrDisplayValueComponent] }); }
|
|
9
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, providers: [GtrSkeletonDirective] }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
declarations: [GtrDisplayValueComponent],
|
|
15
|
+
imports: [NgTemplateOutlet, NgIf, GtrSkeletonDirective],
|
|
16
|
+
exports: [GtrDisplayValueComponent],
|
|
17
|
+
providers: [GtrSkeletonDirective],
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RyLWRpc3BsYXktd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F5LXZhbHVlLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBHdHJTa2VsZXRvbkRpcmVjdGl2ZSB9IGZyb20gJy4vLi4vc2tlbGV0b24vdXRpbHMvZ3RyLXNrZWxldG9uLmRpcmVjdGl2ZSc7XG5pbXBvcnQgeyBOZ0lmLCBOZ1RlbXBsYXRlT3V0bGV0IH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbR3RyRGlzcGxheVZhbHVlQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW05nVGVtcGxhdGVPdXRsZXQsIE5nSWYsIEd0clNrZWxldG9uRGlyZWN0aXZlXSxcbiAgZXhwb3J0czogW0d0ckRpc3BsYXlWYWx1ZUNvbXBvbmVudF0sXG4gIHByb3ZpZGVyczogW0d0clNrZWxldG9uRGlyZWN0aXZlXSxcbn0pXG5leHBvcnQgY2xhc3MgR3RyRGlzcGxheVZhbHVlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './public-api';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2F0b21zL2Rpc3BsYXktdmFsdWUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GtrDisplayValueComponent } from './gtr-display-value.component';
|
|
2
|
+
export { GtrDisplayValueModule } from './gtr-display-value.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvYXRvbXMvZGlzcGxheS12YWx1ZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgR3RyRGlzcGxheVZhbHVlQ29tcG9uZW50IH0gZnJvbSAnLi9ndHItZGlzcGxheS12YWx1ZS5jb21wb25lbnQnO1xuZXhwb3J0IHsgR3RyRGlzcGxheVZhbHVlTW9kdWxlIH0gZnJvbSAnLi9ndHItZGlzcGxheS12YWx1ZS5tb2R1bGUnO1xuIl19
|
|
@@ -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: [{
|
package/esm2022/public-api.mjs
CHANGED
|
@@ -14,6 +14,7 @@ export * from './lib/atoms/popover';
|
|
|
14
14
|
export * from './lib/atoms/radio-button';
|
|
15
15
|
export * from './lib/atoms/skeleton';
|
|
16
16
|
export * from './lib/atoms/toaster';
|
|
17
|
+
export * from './lib/atoms/display-value';
|
|
17
18
|
export * from './lib/molecules/accordion';
|
|
18
19
|
export * from './lib/molecules/calendar';
|
|
19
20
|
export * from './lib/molecules/checkbox';
|
|
@@ -31,4 +32,4 @@ export * from './lib/molecules/stat-card';
|
|
|
31
32
|
export * from './lib/molecules/table';
|
|
32
33
|
export * from './lib/molecules/tabs';
|
|
33
34
|
export * from './lib/molecules/time-picker';
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw2QkFBNkIsQ0FBQztBQ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Bmcm9tICcuL2xpYi9tb2xlY3VsZXMvZHJvcGRvd24nO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL2ZpbGUtaW5wdXQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL2Zvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL251bWVyaWMtY291bnRlcic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2xlY3VsZXMvcGFnaW5hdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2xlY3VsZXMvc2VsZWN0JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vbGVjdWxlcy9zaGFyZWQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL3N0YXQtY2FyZCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2xlY3VsZXMvdGFibGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL3RhYnMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9sZWN1bGVzL3RpbWUtcGlja2VyJztcbiJdfQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, Input, HostBinding, booleanAttribute, NgModule, Directive, EventEmitter, Optional, Self, Output, ViewChild, HostListener, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, Inject, ContentChild, LOCALE_ID, ViewContainerRef, ViewEncapsulation, QueryList } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule, getLocaleDateFormat, FormatWidth,
|
|
4
|
+
import { CommonModule, NgTemplateOutlet, NgIf, getLocaleDateFormat, FormatWidth, NgStyle, NgClass, NgForOf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgFor, DOCUMENT, registerLocaleData, formatDate } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { Subject, Subscription, BehaviorSubject, throwError, takeUntil } from 'rxjs';
|
|
@@ -1885,6 +1885,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1885
1885
|
}]
|
|
1886
1886
|
}] });
|
|
1887
1887
|
|
|
1888
|
+
class GtrDisplayValueComponent {
|
|
1889
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1890
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDisplayValueComponent, selector: "gtr-display-value", inputs: { loading: "loading", label: "label", value: "value", contentType: "contentType", id: "id", dataTestId: "dataTestId", skeletonConfigs: "skeletonConfigs" }, ngImport: i0, template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\">\n <div *ngIf=\"label\" class=\"gtr-display-value-label\">{{ label }}</div>\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n <ng-container *ngIf=\"contentType !== 'projected'; else customContent\">\n <span class=\"gtr-display-value-content\" [innerHTML]=\"value\"></span\n ></ng-container>\n <ng-template #customContent>\n <span class=\"gtr-display-value-content\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n </ng-template>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }] }); }
|
|
1891
|
+
}
|
|
1892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueComponent, decorators: [{
|
|
1893
|
+
type: Component,
|
|
1894
|
+
args: [{ selector: 'gtr-display-value', template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\">\n <div *ngIf=\"label\" class=\"gtr-display-value-label\">{{ label }}</div>\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n <ng-container *ngIf=\"contentType !== 'projected'; else customContent\">\n <span class=\"gtr-display-value-content\" [innerHTML]=\"value\"></span\n ></ng-container>\n <ng-template #customContent>\n <span class=\"gtr-display-value-content\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n </ng-template>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"] }]
|
|
1895
|
+
}], propDecorators: { loading: [{
|
|
1896
|
+
type: Input
|
|
1897
|
+
}], label: [{
|
|
1898
|
+
type: Input
|
|
1899
|
+
}], value: [{
|
|
1900
|
+
type: Input
|
|
1901
|
+
}], contentType: [{
|
|
1902
|
+
type: Input
|
|
1903
|
+
}], id: [{
|
|
1904
|
+
type: Input
|
|
1905
|
+
}], dataTestId: [{
|
|
1906
|
+
type: Input
|
|
1907
|
+
}], skeletonConfigs: [{
|
|
1908
|
+
type: Input
|
|
1909
|
+
}] } });
|
|
1910
|
+
|
|
1911
|
+
class GtrDisplayValueModule {
|
|
1912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1913
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, declarations: [GtrDisplayValueComponent], imports: [NgTemplateOutlet, NgIf, GtrSkeletonDirective], exports: [GtrDisplayValueComponent] }); }
|
|
1914
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, providers: [GtrSkeletonDirective] }); }
|
|
1915
|
+
}
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDisplayValueModule, decorators: [{
|
|
1917
|
+
type: NgModule,
|
|
1918
|
+
args: [{
|
|
1919
|
+
declarations: [GtrDisplayValueComponent],
|
|
1920
|
+
imports: [NgTemplateOutlet, NgIf, GtrSkeletonDirective],
|
|
1921
|
+
exports: [GtrDisplayValueComponent],
|
|
1922
|
+
providers: [GtrSkeletonDirective],
|
|
1923
|
+
}]
|
|
1924
|
+
}] });
|
|
1925
|
+
|
|
1888
1926
|
class GtrAccordionComponent {
|
|
1889
1927
|
constructor() {
|
|
1890
1928
|
/**
|
|
@@ -8829,11 +8867,11 @@ class GtrPaginationComponent {
|
|
|
8829
8867
|
this._setTotalPages();
|
|
8830
8868
|
}
|
|
8831
8869
|
/** @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" }] }); }
|
|
8870
|
+
/** @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
8871
|
}
|
|
8834
8872
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
|
|
8835
8873
|
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"] }]
|
|
8874
|
+
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
8875
|
}], propDecorators: { options: [{
|
|
8838
8876
|
type: Input
|
|
8839
8877
|
}], identifier: [{
|
|
@@ -9780,5 +9818,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9780
9818
|
* Generated bundle index. Do not edit.
|
|
9781
9819
|
*/
|
|
9782
9820
|
|
|
9783
|
-
export { BreakpointInfix, GtrAccordionComponent, GtrAccordionModule, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrBadgeModule, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDirectiveModule, GtrButtonModule, GtrCalendarComponent, GtrCalendarModule, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrCheckboxModule, GtrComponentName, GtrDatePickerComponent, GtrDatePickerModule, GtrDateRangePickerComponent, GtrDateRangePickerModule, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownModule, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFileInputModule, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormModule, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrIconModule, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrInputModule, GtrModalComponent, GtrModalModule, GtrNumericCounterComponent, GtrNumericCounterModule, GtrPaginationComponent, GtrPaginationModule, GtrPopoverComponent, GtrPopoverModule, GtrRadioButtonComponent, GtrRadioButtonModule, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSelectModule, GtrSharedModule, GtrSkeletonComponent, GtrSkeletonDirective, GtrSkeletonModule, GtrStatCardComponent, GtrStatCardModule, GtrSwitchComponent, GtrSwitchModule, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableModule, GtrTableResponsiveComponent, GtrTabsModule, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTextareaModule, GtrTimePickerComponent, GtrTimePickerModule, GtrToasterComponent, GtrToasterModule, GtrToasterService, GtrTooltipComponent, GtrTooltipModule, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
9821
|
+
export { BreakpointInfix, GtrAccordionComponent, GtrAccordionModule, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrBadgeModule, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDirectiveModule, GtrButtonModule, GtrCalendarComponent, GtrCalendarModule, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrCheckboxModule, GtrComponentName, GtrDatePickerComponent, GtrDatePickerModule, GtrDateRangePickerComponent, GtrDateRangePickerModule, GtrDisplayValueComponent, GtrDisplayValueModule, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownModule, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFileInputModule, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormModule, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrIconModule, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrInputModule, GtrModalComponent, GtrModalModule, GtrNumericCounterComponent, GtrNumericCounterModule, GtrPaginationComponent, GtrPaginationModule, GtrPopoverComponent, GtrPopoverModule, GtrRadioButtonComponent, GtrRadioButtonModule, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSelectModule, GtrSharedModule, GtrSkeletonComponent, GtrSkeletonDirective, GtrSkeletonModule, GtrStatCardComponent, GtrStatCardModule, GtrSwitchComponent, GtrSwitchModule, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableModule, GtrTableResponsiveComponent, GtrTabsModule, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTextareaModule, GtrTimePickerComponent, GtrTimePickerModule, GtrToasterComponent, GtrToasterModule, GtrToasterService, GtrTooltipComponent, GtrTooltipModule, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
9784
9822
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|