@gettrx/core-components-angular 1.0.6 → 1.0.7

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.
Files changed (45) hide show
  1. package/esm2022/lib/atoms/badge/gtr-badge.component.mjs +3 -3
  2. package/esm2022/lib/atoms/input/gtr-input.component.mjs +3 -3
  3. package/esm2022/lib/atoms/textarea/gtr-textarea.component.mjs +3 -3
  4. package/esm2022/lib/molecules/calendar/calendar/gtr-calendar.component.mjs +10 -6
  5. package/esm2022/lib/molecules/calendar/gtr-calendar.utils.mjs +4 -4
  6. package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +5 -4
  7. package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +11 -5
  8. package/esm2022/lib/molecules/date-range-picker/gtr-date-range-picker.module.mjs +2 -4
  9. package/esm2022/lib/molecules/form/input-group/gtr-input-group.component.mjs +6 -2
  10. package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.mjs +3 -3
  11. package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +3 -3
  12. package/esm2022/lib/molecules/stat-card/gtr-stat-card.component.mjs +8 -5
  13. package/esm2022/lib/molecules/table/gtr-create-component.pipe.mjs +88 -0
  14. package/esm2022/lib/molecules/table/gtr-fetch-attribute.pipe.mjs +21 -0
  15. package/esm2022/lib/molecules/table/gtr-table.component.mjs +138 -0
  16. package/esm2022/lib/molecules/table/gtr-table.interface.mjs +8 -0
  17. package/esm2022/lib/molecules/table/gtr-table.module.mjs +20 -0
  18. package/esm2022/lib/molecules/table/index.mjs +2 -0
  19. package/esm2022/lib/molecules/table/public_api.mjs +5 -0
  20. package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +148 -0
  21. package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +185 -0
  22. package/esm2022/lib/molecules/time-picker/gtr-time-picker.component.mjs +2 -2
  23. package/esm2022/public-api.mjs +2 -2
  24. package/fesm2022/gettrx-core-components-angular.mjs +601 -34
  25. package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
  26. package/lib/atoms/badge/gtr-badge.component.d.ts +1 -0
  27. package/lib/atoms/input/gtr-input.component.d.ts +1 -1
  28. package/lib/atoms/textarea/gtr-textarea.component.d.ts +1 -1
  29. package/lib/molecules/calendar/calendar/gtr-calendar.component.d.ts +2 -2
  30. package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +8 -1
  31. package/lib/molecules/date-range-picker/gtr-date-range-picker.module.d.ts +1 -1
  32. package/lib/molecules/form/input-group/gtr-input-group.component.d.ts +2 -1
  33. package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts +1 -1
  34. package/lib/molecules/stat-card/gtr-stat-card.component.d.ts +1 -0
  35. package/lib/molecules/table/gtr-create-component.pipe.d.ts +17 -0
  36. package/lib/molecules/table/gtr-fetch-attribute.pipe.d.ts +9 -0
  37. package/lib/molecules/table/gtr-table.component.d.ts +83 -0
  38. package/lib/molecules/table/gtr-table.interface.d.ts +78 -0
  39. package/lib/molecules/table/gtr-table.module.d.ts +9 -0
  40. package/lib/molecules/table/index.d.ts +1 -0
  41. package/lib/molecules/table/public_api.d.ts +5 -0
  42. package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +53 -0
  43. package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +75 -0
  44. package/package.json +3 -3
  45. package/public-api.d.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input, HostBinding, booleanAttribute, EventEmitter, Optional, Self, Output, ViewChild, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, Inject, ContentChild, QueryList } from '@angular/core';
4
- import { fromEvent, Subject, Subscription, BehaviorSubject, throwError } from 'rxjs';
3
+ import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input, HostBinding, booleanAttribute, EventEmitter, Optional, Self, Output, ViewChild, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, Inject, ContentChild, ViewContainerRef, ViewEncapsulation, QueryList } from '@angular/core';
4
+ import { fromEvent, Subject, Subscription, BehaviorSubject, throwError, takeUntil } from 'rxjs';
5
5
  import { defineCustomElement as defineCustomElement$1 } from '@gettrx/core-components/components/gtr2-accordion.js';
6
6
  import { defineCustomElement as defineCustomElement$2 } from '@gettrx/core-components/components/gtr2-accordion-wrapper.js';
7
7
  import { defineCustomElement as defineCustomElement$3 } from '@gettrx/core-components/components/gtr2-badge.js';
@@ -976,11 +976,11 @@ class GtrBadgeComponent {
976
976
  this.id = this.testid;
977
977
  }
978
978
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
979
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { shape: "shape", type: "type", color: "color", ariaLabel: ["aria-label", "ariaLabel"], hidden: ["hidden", "hidden", booleanAttribute], position: "position", id: "id", testid: "testid", positionProperty: "positionProperty", backgroundColor: ["background-color", "backgroundColor"], iconName: ["icon-name", "iconName"] }, ngImport: i0, template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
979
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { shape: "shape", type: "type", color: "color", ariaLabel: ["aria-label", "ariaLabel"], hidden: ["hidden", "hidden", booleanAttribute], position: "position", id: "id", testid: "testid", positionProperty: "positionProperty", backgroundColor: ["background-color", "backgroundColor"], iconName: ["icon-name", "iconName"] }, ngImport: i0, template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
980
980
  }
981
981
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, decorators: [{
982
982
  type: Component,
983
- args: [{ selector: 'gtr-badge', template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"] }]
983
+ args: [{ selector: 'gtr-badge', template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"] }]
984
984
  }], ctorParameters: function () { return []; }, propDecorators: { shape: [{
985
985
  type: Input
986
986
  }], type: [{
@@ -1899,11 +1899,11 @@ class GtrInputComponent {
1899
1899
  : false;
1900
1900
  }
1901
1901
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
1902
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\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"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
1902
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\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"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
1903
1903
  }
1904
1904
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, decorators: [{
1905
1905
  type: Component,
1906
- args: [{ selector: 'gtr-input', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <div select=\"[slot='custom-error']\"></div>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"] }]
1906
+ args: [{ selector: 'gtr-input', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:var(--gtr-input-readonly-height);padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"] }]
1907
1907
  }], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
1908
1908
  type: Optional
1909
1909
  }, {
@@ -2178,11 +2178,11 @@ class GtrTextareaComponent {
2178
2178
  };
2179
2179
  }
2180
2180
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
2181
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { value: "value", placeholder: "placeholder", loading: "loading", textareaLabel: "textareaLabel", disabled: "disabled", textAreaWrapperId: "textAreaWrapperId", readonly: "readonly", isValid: "isValid", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation" }, outputs: { textareaChanged: "textareaChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <slot name=\"custom-error\"></slot>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\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"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
2181
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { value: "value", placeholder: "placeholder", loading: "loading", textareaLabel: "textareaLabel", disabled: "disabled", textAreaWrapperId: "textAreaWrapperId", readonly: "readonly", isValid: "isValid", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation" }, outputs: { textareaChanged: "textareaChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\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"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
2182
2182
  }
2183
2183
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, decorators: [{
2184
2184
  type: Component,
2185
- args: [{ selector: 'gtr-textarea', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <slot name=\"custom-error\"></slot>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"] }]
2185
+ args: [{ selector: 'gtr-textarea', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"] }]
2186
2186
  }], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
2187
2187
  type: Optional
2188
2188
  }, {
@@ -3255,9 +3255,9 @@ const isLastDayOfMonth = (date) => {
3255
3255
  return test.getMonth() !== month;
3256
3256
  };
3257
3257
  const isSameDateAs = (date, date2) => {
3258
- return (date.getDate() == date2.getDate() &&
3259
- date.getMonth() == date2.getMonth() &&
3260
- date.getFullYear() == date2.getFullYear());
3258
+ return (date?.getDate() == date2?.getDate() &&
3259
+ date?.getMonth() == date2?.getMonth() &&
3260
+ date?.getFullYear() == date2?.getFullYear());
3261
3261
  };
3262
3262
  const isStartDate = (date, start, end) => {
3263
3263
  return date && start && end && isSameDateAs(start, date) && start < end;
@@ -4231,8 +4231,10 @@ class GtrCalendarComponent {
4231
4231
  * Max selectable date.
4232
4232
  */
4233
4233
  set maxDate(value) {
4234
- this._maxDate = !!value ? tryDate(value, 'maxDate') : null;
4235
- this.calendarService.update({ maxDate: this._maxDate });
4234
+ if (isValidDate(value) && !isSameDateAs(this.maxDate, value)) {
4235
+ this._maxDate = !!value ? tryDate(value, 'maxDate') : null;
4236
+ this.calendarService.update({ maxDate: this._maxDate });
4237
+ }
4236
4238
  }
4237
4239
  get maxDate() {
4238
4240
  return this._maxDate;
@@ -4241,8 +4243,10 @@ class GtrCalendarComponent {
4241
4243
  * Min selectable date.
4242
4244
  */
4243
4245
  set minDate(value) {
4244
- this._minDate = value ? tryDate(value, 'minDate') : null;
4245
- this.calendarService.update({ minDate: this._minDate });
4246
+ if (isValidDate(value) && !isSameDateAs(this.minDate, value)) {
4247
+ this._minDate = value ? tryDate(value, 'minDate') : null;
4248
+ this.calendarService.update({ minDate: this._minDate });
4249
+ }
4246
4250
  }
4247
4251
  get minDate() {
4248
4252
  return this._minDate;
@@ -6364,6 +6368,7 @@ class GtrInputGroupComponent {
6364
6368
  return {
6365
6369
  'input-group': true,
6366
6370
  [`input-group-${this.sizing}`]: !!this.sizing,
6371
+ [`input-group-invalid`]: this.invalid,
6367
6372
  };
6368
6373
  }
6369
6374
  constructor() {
@@ -6371,9 +6376,10 @@ class GtrInputGroupComponent {
6371
6376
  * Size the component small or large.
6372
6377
  */
6373
6378
  this.sizing = '';
6379
+ this.invalid = false;
6374
6380
  }
6375
6381
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6376
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
6382
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing", invalid: "invalid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
6377
6383
  }
6378
6384
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, decorators: [{
6379
6385
  type: Component,
@@ -6384,6 +6390,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
6384
6390
  }]
6385
6391
  }], ctorParameters: function () { return []; }, propDecorators: { sizing: [{
6386
6392
  type: Input
6393
+ }], invalid: [{
6394
+ type: Input
6387
6395
  }], hostClasses: [{
6388
6396
  type: HostBinding,
6389
6397
  args: ['class']
@@ -7443,7 +7451,7 @@ class GtrTimePickerComponent {
7443
7451
  useExisting: forwardRef((() => GtrTimePickerComponent)),
7444
7452
  multi: true,
7445
7453
  },
7446
- ], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
7454
+ ], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
7447
7455
  }
7448
7456
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerComponent, decorators: [{
7449
7457
  type: Component,
@@ -7532,6 +7540,7 @@ class GtrDateRangePickerComponent {
7532
7540
  this.breakpointObserver = breakpointObserver;
7533
7541
  this.id = '';
7534
7542
  this.testid = '';
7543
+ this.required = false;
7535
7544
  /**
7536
7545
  * Set the format of day name.
7537
7546
  * @default 'numeric'
@@ -8071,13 +8080,13 @@ class GtrDateRangePickerComponent {
8071
8080
  this.endDate = time ?? this.endDate;
8072
8081
  }
8073
8082
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, deps: [{ token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
8074
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDateRangePickerComponent, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", rangesType: "rangesType", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
8083
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDateRangePickerComponent, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", required: "required", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", rangesType: "rangesType", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", invalid: "invalid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
8075
8084
  {
8076
8085
  provide: NG_VALUE_ACCESSOR,
8077
8086
  useExisting: forwardRef((() => GtrDateRangePickerComponent)),
8078
8087
  multi: true,
8079
8088
  },
8080
- ], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "calendarComponent", first: true, predicate: GtrCalendarComponent, descendants: true }, { propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
8089
+ ], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "calendarComponent", first: true, predicate: GtrCalendarComponent, descendants: true }, { propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
8081
8090
  }
8082
8091
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, decorators: [{
8083
8092
  type: Component,
@@ -8087,11 +8096,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8087
8096
  useExisting: forwardRef((() => GtrDateRangePickerComponent)),
8088
8097
  multi: true,
8089
8098
  },
8090
- ], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
8099
+ ], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
8091
8100
  }], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { id: [{
8092
8101
  type: Input
8093
8102
  }], testid: [{
8094
8103
  type: Input
8104
+ }], required: [{
8105
+ type: Input
8095
8106
  }], dayFormat: [{
8096
8107
  type: Input
8097
8108
  }], calendars: [{
@@ -8130,6 +8141,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8130
8141
  type: Input
8131
8142
  }], valid: [{
8132
8143
  type: Input
8144
+ }], invalid: [{
8145
+ type: Input
8133
8146
  }], visible: [{
8134
8147
  type: Input
8135
8148
  }], startDate: [{
@@ -8251,8 +8264,7 @@ class GtrDateRangePickerModule {
8251
8264
  GtrInputGroupComponent,
8252
8265
  GtrFormControlDirective,
8253
8266
  GtrInputGroupTextDirective,
8254
- GtrIconModule,
8255
- GtrButtonDirective], exports: [GtrDateRangePickerComponent] }); }
8267
+ GtrIconModule], exports: [GtrDateRangePickerComponent] }); }
8256
8268
  /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, imports: [ReactiveFormsModule,
8257
8269
  GtrCalendarComponent,
8258
8270
  GtrTimePickerComponent,
@@ -8278,7 +8290,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8278
8290
  GtrFormControlDirective,
8279
8291
  GtrInputGroupTextDirective,
8280
8292
  GtrIconModule,
8281
- GtrButtonDirective,
8282
8293
  ],
8283
8294
  exports: [GtrDateRangePickerComponent],
8284
8295
  }]
@@ -8330,7 +8341,7 @@ class GtrDatePickerComponent extends GtrDateRangePickerComponent {
8330
8341
  useExisting: forwardRef((() => GtrDatePickerComponent)),
8331
8342
  multi: true,
8332
8343
  },
8333
- ], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
8344
+ ], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
8334
8345
  }
8335
8346
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerComponent, decorators: [{
8336
8347
  type: Component,
@@ -8340,7 +8351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8340
8351
  useExisting: forwardRef((() => GtrDatePickerComponent)),
8341
8352
  multi: true,
8342
8353
  },
8343
- ], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
8354
+ ], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}\n"] }]
8344
8355
  }], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { placeholder: [{
8345
8356
  type: Input
8346
8357
  }], startDateChange: [{
@@ -8872,12 +8883,12 @@ class GtrFormatSelectedValuePipe {
8872
8883
  }
8873
8884
  }
8874
8885
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8875
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "GtrFormatSelectedValue" }); }
8886
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "gtrFormatSelectedValue" }); }
8876
8887
  }
8877
8888
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, decorators: [{
8878
8889
  type: Pipe,
8879
8890
  args: [{
8880
- name: 'GtrFormatSelectedValue',
8891
+ name: 'gtrFormatSelectedValue',
8881
8892
  standalone: true,
8882
8893
  }]
8883
8894
  }] });
@@ -9248,7 +9259,7 @@ class GtrSelectComponent {
9248
9259
  useExisting: forwardRef((() => GtrSelectComponent)),
9249
9260
  multi: true,
9250
9261
  },
9251
- ], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\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: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "GtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
9262
+ ], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\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: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
9252
9263
  }
9253
9264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, decorators: [{
9254
9265
  type: Component,
@@ -9258,7 +9269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
9258
9269
  useExisting: forwardRef((() => GtrSelectComponent)),
9259
9270
  multi: true,
9260
9271
  },
9261
- ], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
9272
+ ], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
9262
9273
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inputLabel: [{
9263
9274
  type: Input
9264
9275
  }], placeholder: [{
@@ -9592,8 +9603,8 @@ class GtrStatCardComponent {
9592
9603
  */
9593
9604
  if (this.labelContainer &&
9594
9605
  this.dateSelectOptions &&
9595
- this.iconContainer &&
9596
- e.target !== this.iconContainer.nativeElement &&
9606
+ this.dateSelectWrapper &&
9607
+ !this.dateSelectWrapper?.nativeElement?.contains(e.target) &&
9597
9608
  e.target !== this.dateSelectOptions.nativeElement &&
9598
9609
  e.target !== this.labelContainer.nativeElement) {
9599
9610
  if (this.dateSelectOptions?.nativeElement?.classList.contains('open')) {
@@ -9617,17 +9628,20 @@ class GtrStatCardComponent {
9617
9628
  this.closeDateSelect();
9618
9629
  }
9619
9630
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
9620
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrStatCardComponent, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:#6e6b7b;font-size:11px;font-style:normal;font-weight:400;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:#6e6b7b;font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
9631
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrStatCardComponent, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectWrapper", first: true, predicate: ["dateSelectWrapper"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
9621
9632
  }
9622
9633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, decorators: [{
9623
9634
  type: Component,
9624
- args: [{ selector: 'gtr-stat-card', template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:#6e6b7b;font-size:11px;font-style:normal;font-weight:400;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:#6e6b7b;font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"] }]
9635
+ args: [{ selector: 'gtr-stat-card', template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"] }]
9625
9636
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { iconContainer: [{
9626
9637
  type: ViewChild,
9627
9638
  args: ['iconContainer']
9628
9639
  }], labelContainer: [{
9629
9640
  type: ViewChild,
9630
9641
  args: ['labelContainer']
9642
+ }], dateSelectWrapper: [{
9643
+ type: ViewChild,
9644
+ args: ['dateSelectWrapper']
9631
9645
  }], showSkeletonLoading: [{
9632
9646
  type: Input,
9633
9647
  args: [{ required: false }]
@@ -9684,6 +9698,559 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
9684
9698
  }]
9685
9699
  }] });
9686
9700
 
9701
+ class GtrCreateComponentPipe {
9702
+ constructor() {
9703
+ this.closed$ = new Subject();
9704
+ }
9705
+ transform(component, container, isDestroy = false) {
9706
+ if (!container) {
9707
+ return;
9708
+ }
9709
+ if (isDestroy) {
9710
+ this.destroyComponent();
9711
+ }
9712
+ else {
9713
+ container.changes.subscribe(() => {
9714
+ // The container has been added to the DOM
9715
+ container.toArray().map((ref) => {
9716
+ const dynamicComponent = this.createDynamicComponent(component.name, ref);
9717
+ if (dynamicComponent) {
9718
+ this.componentRef = dynamicComponent;
9719
+ }
9720
+ if (component.properties.length) {
9721
+ this.updateInstance(component.properties);
9722
+ }
9723
+ if (component.events.length) {
9724
+ this.detectChanges(this.componentRef, component.events);
9725
+ }
9726
+ if (component.text && this.componentRef) {
9727
+ this.componentRef.location.nativeElement.innerText = component.text;
9728
+ }
9729
+ });
9730
+ });
9731
+ }
9732
+ }
9733
+ createDynamicComponent(component, viewRef) {
9734
+ if (!viewRef) {
9735
+ return null;
9736
+ }
9737
+ viewRef.clear();
9738
+ return viewRef.createComponent(component);
9739
+ }
9740
+ updateInstance(instances) {
9741
+ instances.map((item) => {
9742
+ Object.keys(item).map((key) => {
9743
+ if (this.componentRef?.instance[key])
9744
+ this.componentRef.instance[key] = item[key];
9745
+ });
9746
+ });
9747
+ }
9748
+ detectChanges(ref, events) {
9749
+ events.map((event) => {
9750
+ // get `@Output` emitter from the component
9751
+ if (ref.instance[event]) {
9752
+ ref.instance[event]
9753
+ .pipe(takeUntil(this.closed$))
9754
+ .subscribe((event) => this.eventHandler(event));
9755
+ }
9756
+ });
9757
+ // add `click` event handler to the component
9758
+ // fromEvent(ref.location.nativeElement, 'click')
9759
+ // .pipe(takeUntil(this.closed$))
9760
+ // .subscribe((event: any) => this.clickHandler(event));
9761
+ // ref.instance.geneSelection.subscribe(event => {
9762
+ // this.geneSelection.emit(event);
9763
+ // });
9764
+ // const comp = (this.compRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement
9765
+ // this.cdr.detectChanges()
9766
+ }
9767
+ clickHandler(event) {
9768
+ console.log(event);
9769
+ }
9770
+ eventHandler(event) {
9771
+ console.log(event);
9772
+ }
9773
+ destroyComponent() {
9774
+ // viewRef.clear();
9775
+ this.closed$.next(''); // <-- close open subscriptions
9776
+ this.componentRef?.destroy();
9777
+ }
9778
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9779
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, isStandalone: true, name: "gtrCreateComponent" }); }
9780
+ }
9781
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, decorators: [{
9782
+ type: Pipe,
9783
+ args: [{ name: 'gtrCreateComponent', standalone: true }]
9784
+ }], ctorParameters: function () { return []; } });
9785
+
9786
+ class GtrFetchAttributePipe {
9787
+ constructor() { }
9788
+ transform(column, attribute, index, data) {
9789
+ if (column[attribute]) {
9790
+ return column[attribute];
9791
+ }
9792
+ if (data[index][attribute]) {
9793
+ return data[index][attribute];
9794
+ }
9795
+ return '';
9796
+ }
9797
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9798
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, isStandalone: true, name: "gtrFetchAttribute" }); }
9799
+ }
9800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, decorators: [{
9801
+ type: Pipe,
9802
+ args: [{ name: 'gtrFetchAttribute', standalone: true }]
9803
+ }], ctorParameters: function () { return []; } });
9804
+
9805
+ class GtrTableResponsiveComponent {
9806
+ constructor(cdRef, attributesPipe) {
9807
+ this.cdRef = cdRef;
9808
+ this.attributesPipe = attributesPipe;
9809
+ this.isLoading = false;
9810
+ /**
9811
+ * Set the hide/show state of checbox.
9812
+ * @default 'boolean'
9813
+ * @type CheckBox State
9814
+ */
9815
+ this.enableSelection = true;
9816
+ /**
9817
+ * Table columns
9818
+ */
9819
+ this.columns = [];
9820
+ /**
9821
+ * Table data
9822
+ */
9823
+ this.data = [];
9824
+ /**
9825
+ * Table data
9826
+ */
9827
+ this.tableResponsiveId = '';
9828
+ /**
9829
+ * The selection changed eventemitter
9830
+ */
9831
+ this.onSelection = new EventEmitter();
9832
+ /**
9833
+ * Action eventemitter
9834
+ */
9835
+ this.onAction = new EventEmitter();
9836
+ /**
9837
+ * Sorting eventemitter
9838
+ */
9839
+ this.onSort = new EventEmitter();
9840
+ }
9841
+ /**
9842
+ * To check screen size
9843
+ */
9844
+ onResize(event) {
9845
+ event.target.innerWidth;
9846
+ }
9847
+ ngAfterViewChecked() {
9848
+ this.cdRef.detectChanges();
9849
+ }
9850
+ fetchSelection() {
9851
+ return this.data.every((x) => x.isSelected);
9852
+ }
9853
+ /**
9854
+ * The method is used to emit Select All state
9855
+ */
9856
+ selectAll(event) {
9857
+ this.data.map((x) => (x.isSelected = event.detail.checked));
9858
+ this.onSelection.emit({
9859
+ all: event.detail.checked,
9860
+ selectedRows: this.data.filter((x) => x.isSelected),
9861
+ });
9862
+ }
9863
+ /**
9864
+ * The method is used to emit selected rows
9865
+ */
9866
+ selectionDone(event, item) {
9867
+ item['isSelected'] = event.detail.checked;
9868
+ const dataToEmit = {
9869
+ all: false,
9870
+ row: item,
9871
+ selectedRows: this.data.filter((x) => x.isSelected),
9872
+ };
9873
+ if (event.detail.checked) {
9874
+ dataToEmit['lastSelected'] = item;
9875
+ }
9876
+ this.onSelection.emit(dataToEmit);
9877
+ }
9878
+ /**
9879
+ * The method is used to emit action
9880
+ */
9881
+ actionDone(value, row, action) {
9882
+ action.value = value;
9883
+ this.onAction.emit({ id: row.id, action });
9884
+ }
9885
+ getActions(columns) {
9886
+ return columns?.find((x) => x.actions);
9887
+ }
9888
+ /**
9889
+ * The method is used to check show/hidden state of row
9890
+ */
9891
+ checkRowHiddenState(row, column, expandAttributes, i) {
9892
+ if (!expandAttributes) {
9893
+ return;
9894
+ }
9895
+ const includedColumns = row.columnsData.some((x) => !x.hide);
9896
+ if (this.attributesPipe.transform(column, 'priority', i, this.columns) === 'HIGH' ||
9897
+ (Object.keys(expandAttributes).length && expandAttributes.isExpanded) ||
9898
+ !Object.keys(expandAttributes).length ||
9899
+ (Object.keys(expandAttributes).length &&
9900
+ includedColumns.length - 1 < expandAttributes.expandAfter)) {
9901
+ return true;
9902
+ }
9903
+ return false;
9904
+ }
9905
+ /**
9906
+ * The method is used to toggle show/hide state of row
9907
+ */
9908
+ expandRow(row) {
9909
+ if (Object.keys(row.expand).length) {
9910
+ row.expand.isExpanded = !row.expand.isExpanded;
9911
+ }
9912
+ }
9913
+ ngOnDestroy() { }
9914
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableResponsiveComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: GtrFetchAttributePipe }], target: i0.ɵɵFactoryTarget.Component }); }
9915
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableResponsiveComponent, isStandalone: true, selector: "gtr-table-responsive", inputs: { isLoading: "isLoading", enableSelection: "enableSelection", columns: "columns", data: "data", tableResponsiveId: "tableResponsiveId" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
9916
+ GtrFetchAttributePipe,
9917
+ GtrSkeletonDirective,
9918
+ {
9919
+ provide: NG_VALUE_ACCESSOR,
9920
+ useExisting: forwardRef((() => GtrTableResponsiveComponent)),
9921
+ multi: true,
9922
+ },
9923
+ ], viewQueries: [{ propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "<ng-container *ngIf=\"data.length;else other\">\n <div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\">\n\n <div class='table-selection' *ngIf=\"enableSelection\">\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n\n <div class='table-responsive-wrapper-container' *ngFor=\"let row of data; let rowIndex=index\">\n <div class='table-responsive-menu'>\n\n <div class='table-responsive-menu-item' *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\"\n *ngIf=\"getActions(row?.columnsData)?.actions\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n <ng-container *ngFor=\"let column of row.columnsData;let colIndex=index\">\n\n <div class='table-responsive-container'\n *ngIf=\"(column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column, row.expand, colIndex)\">\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{columns[colIndex].label}}\n </ng-container>\n </ng-container>\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchDefault [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\">\n <span class='word-wrap' title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n <div class=\"expanded-arrow-icon\" *ngIf=\"expandAttributes && expandAttributes.expand\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"/images/arrow-down-navigate.svg\">\n </div>\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover position=\"left\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"15\" [moveY]=\"-12\">\n <span class=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div>\n <div class=\"gtr-popover-content\">\n <ul>\n <li [class.hide]=\"action.hide\"\n *ngFor=\"let action of getActions(row?.columnsData)?.actions;let actionIndex=index\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{action.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-ind=\"index\">\n <gtr-checkbox [checked]=\"row?.isSelected ? true : false\" [id]=\"tableResponsiveId+'-col-selection-'+ind\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+ind\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:var(--primary-text-color);text-decoration:underline}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrCreateComponentPipe, name: "gtrCreateComponent" }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "ngmodule", type: GtrBadgeModule }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "ngmodule", type: GtrCheckboxModule }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "ngmodule", type: GtrPopoverModule }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "closeOnClickOutside", "id", "testId"], outputs: ["stateChanged"] }, { kind: "ngmodule", type: GtrButtonModule }], encapsulation: i0.ViewEncapsulation.None }); }
9924
+ }
9925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableResponsiveComponent, decorators: [{
9926
+ type: Component,
9927
+ args: [{ selector: 'gtr-table-responsive', exportAs: 'gtrTableResponsive', standalone: true, encapsulation: ViewEncapsulation.None, imports: [
9928
+ NgClass,
9929
+ NgIf,
9930
+ NgForOf,
9931
+ NgTemplateOutlet,
9932
+ NgSwitchCase,
9933
+ NgSwitch,
9934
+ NgSwitchDefault,
9935
+ GtrCreateComponentPipe,
9936
+ GtrFetchAttributePipe,
9937
+ GtrBadgeModule,
9938
+ GtrSkeletonDirective,
9939
+ GtrCheckboxModule,
9940
+ GtrPopoverModule,
9941
+ GtrButtonModule,
9942
+ ], providers: [
9943
+ GtrFetchAttributePipe,
9944
+ GtrSkeletonDirective,
9945
+ {
9946
+ provide: NG_VALUE_ACCESSOR,
9947
+ useExisting: forwardRef((() => GtrTableResponsiveComponent)),
9948
+ multi: true,
9949
+ },
9950
+ ], template: "<ng-container *ngIf=\"data.length;else other\">\n <div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\">\n\n <div class='table-selection' *ngIf=\"enableSelection\">\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n\n <div class='table-responsive-wrapper-container' *ngFor=\"let row of data; let rowIndex=index\">\n <div class='table-responsive-menu'>\n\n <div class='table-responsive-menu-item' *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\"\n *ngIf=\"getActions(row?.columnsData)?.actions\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n <ng-container *ngFor=\"let column of row.columnsData;let colIndex=index\">\n\n <div class='table-responsive-container'\n *ngIf=\"(column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column, row.expand, colIndex)\">\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{columns[colIndex].label}}\n </ng-container>\n </ng-container>\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchDefault [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\">\n <span class='word-wrap' title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n <div class=\"expanded-arrow-icon\" *ngIf=\"expandAttributes && expandAttributes.expand\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"/images/arrow-down-navigate.svg\">\n </div>\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover position=\"left\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"15\" [moveY]=\"-12\">\n <span class=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div>\n <div class=\"gtr-popover-content\">\n <ul>\n <li [class.hide]=\"action.hide\"\n *ngFor=\"let action of getActions(row?.columnsData)?.actions;let actionIndex=index\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{action.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-ind=\"index\">\n <gtr-checkbox [checked]=\"row?.isSelected ? true : false\" [id]=\"tableResponsiveId+'-col-selection-'+ind\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+ind\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:var(--primary-text-color);text-decoration:underline}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"] }]
9951
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: GtrFetchAttributePipe }]; }, propDecorators: { templateRef: [{
9952
+ type: ViewChildren,
9953
+ args: ['template', { read: ViewContainerRef }]
9954
+ }], isLoading: [{
9955
+ type: Input
9956
+ }], enableSelection: [{
9957
+ type: Input
9958
+ }], columns: [{
9959
+ type: Input
9960
+ }], data: [{
9961
+ type: Input
9962
+ }], tableResponsiveId: [{
9963
+ type: Input
9964
+ }], onSelection: [{
9965
+ type: Output
9966
+ }], onAction: [{
9967
+ type: Output
9968
+ }], onSort: [{
9969
+ type: Output
9970
+ }], onResize: [{
9971
+ type: HostListener,
9972
+ args: ['window:resize', ['$event']]
9973
+ }] } });
9974
+
9975
+ class GtrTableMainComponent {
9976
+ constructor(cdRef) {
9977
+ this.cdRef = cdRef;
9978
+ /**
9979
+ * Set the hide/show state of checbox.
9980
+ * @default 'boolean'
9981
+ * @type CheckBox State
9982
+ */
9983
+ this.enableSelection = true;
9984
+ this.isLoading = false;
9985
+ /**
9986
+ * Table columns
9987
+ */
9988
+ this.columns = [];
9989
+ /**
9990
+ * Table columns
9991
+ */
9992
+ this.tableMainId = '';
9993
+ /**
9994
+ * Table data
9995
+ */
9996
+ this.data = [];
9997
+ /**
9998
+ * The selection changed eventemitter
9999
+ */
10000
+ this.onSelection = new EventEmitter();
10001
+ /**
10002
+ * Action eventemitter
10003
+ */
10004
+ this.onAction = new EventEmitter();
10005
+ /**
10006
+ * Sorting eventemitter
10007
+ */
10008
+ this.onSort = new EventEmitter();
10009
+ }
10010
+ ngAfterViewChecked() {
10011
+ this.cdRef.detectChanges();
10012
+ }
10013
+ onSorting(sortType, column) {
10014
+ if (sortType === column.sorting.sort) {
10015
+ column.sorting.sort = 0;
10016
+ }
10017
+ else {
10018
+ column.sorting.sort = sortType;
10019
+ }
10020
+ this.onSort.emit(column);
10021
+ }
10022
+ actionDone(event, rowId, action) {
10023
+ action.value = event.target.value;
10024
+ this.onAction.emit({ id: rowId, action });
10025
+ }
10026
+ selectAll(event) {
10027
+ this.data.map((x) => (x.isSelected = event.detail.checked));
10028
+ this.onSelection.emit({
10029
+ all: event.detail.checked,
10030
+ selectedRows: this.data.filter((x) => x.isSelected),
10031
+ });
10032
+ }
10033
+ fectchSelection() {
10034
+ return this.data.every((x) => x.isSelected);
10035
+ }
10036
+ selectionDone(event, item) {
10037
+ item['isSelected'] = event.detail.checked;
10038
+ const dataToEmit = {
10039
+ all: false,
10040
+ row: item,
10041
+ selectedRows: this.data.filter((x) => x.isSelected),
10042
+ };
10043
+ if (event.detail.checked) {
10044
+ dataToEmit['lastSelected'] = item;
10045
+ }
10046
+ this.onSelection.emit(dataToEmit);
10047
+ }
10048
+ ngOnDestroy() { }
10049
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableMainComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
10050
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, providers: [
10051
+ GtrSkeletonDirective,
10052
+ {
10053
+ provide: NG_VALUE_ACCESSOR,
10054
+ useExisting: forwardRef((() => GtrTableMainComponent)),
10055
+ multi: true,
10056
+ },
10057
+ ], viewQueries: [{ propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "<ng-container *ngIf=\"data.length;else other\">\n <table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\">\n <thead>\n <th *ngIf=\"enableSelection\"><gtr-checkbox [id]=\"tableMainId+'-row-select-all'\"\n [attr.data-testid]=\"tableMainId+'-row-select-all'\" [checked]=\"fectchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" /></th>\n\n <th class={{column.align}} [class.hide]=\"column.hide\" *ngFor=\"let column of this.columns;let colIndex=index\">\n <div [class.gtr-header-label]='column.sorting.hasSorting'\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"column.label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{column.label}}\n </ng-container>\n </ng-container>\n </div>\n <span class=\"gtr-header-sorting-wrapper\" *ngIf=\"column.sorting.hasSorting\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n </th>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of data;let rowIndex=index\">\n <td *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n <td *ngFor=\"let column of row.columnsData; let colIndex=index\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\"\n [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column?.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'actions'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngSwitchDefault [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column?.value?.length > 30 ? (column?.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\" class='word-wrap'>\n <span title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute : 'align' : i : columns) + ' action-menu'\">\n <span class=\"gtr-data-label\" *ngFor=\"let action of column.actions;let actionIndex=index\">\n <ng-container *ngIf=\"!action.hide\">\n <div [ngSwitch]=\"action.type\">\n <div *ngSwitchCase=\"'button'\">\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'icon'\">\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'dropdown'\">\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'input'\">\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'textarea'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'toggle'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</div>\n </div>\n </div>\n </ng-container>\n </span>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge type=\"pill\" [positionProperty]=\"{ 'align': (columnAttributes | gtrFetchAttribute : 'align' : i : columns)}\"\n [color]=\"columnAttributes | gtrFetchAttribute : 'color' : i : columns\">{{data}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class='gtr-table-buttons'>\n <gtr-button [id]=\"tableMainId+'-col-action-btn-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-btn-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\"> <gtr-icon\n [id]=\"tableMainId+'-col-action-icon-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-icon-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <input type='text' [id]=\"tableMainId+'-col-action-input-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-input-'+i\"\n [placeholder]=\"action.name\" (input)=\"this.actionDone($event, row['id'], action)\" />\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:var(--primary-text-color);text-decoration:underline}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrCreateComponentPipe, name: "gtrCreateComponent" }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "ngmodule", type: GtrBadgeModule }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "ngmodule", type: GtrIconModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "ngmodule", type: GtrCheckboxModule }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "ngmodule", type: GtrButtonModule }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "color", "isLoading", "variant", "disabled"] }], encapsulation: i0.ViewEncapsulation.None }); }
10058
+ }
10059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableMainComponent, decorators: [{
10060
+ type: Component,
10061
+ args: [{ selector: 'gtr-table-main', exportAs: 'gtrTableMain', standalone: true, encapsulation: ViewEncapsulation.None, imports: [
10062
+ NgClass,
10063
+ NgIf,
10064
+ NgForOf,
10065
+ NgTemplateOutlet,
10066
+ NgSwitchCase,
10067
+ NgSwitch,
10068
+ NgSwitchDefault,
10069
+ GtrCreateComponentPipe,
10070
+ GtrFetchAttributePipe,
10071
+ GtrBadgeModule,
10072
+ GtrIconModule,
10073
+ GtrCheckboxModule,
10074
+ GtrSkeletonDirective,
10075
+ GtrButtonModule,
10076
+ ], providers: [
10077
+ GtrSkeletonDirective,
10078
+ {
10079
+ provide: NG_VALUE_ACCESSOR,
10080
+ useExisting: forwardRef((() => GtrTableMainComponent)),
10081
+ multi: true,
10082
+ },
10083
+ ], template: "<ng-container *ngIf=\"data.length;else other\">\n <table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\">\n <thead>\n <th *ngIf=\"enableSelection\"><gtr-checkbox [id]=\"tableMainId+'-row-select-all'\"\n [attr.data-testid]=\"tableMainId+'-row-select-all'\" [checked]=\"fectchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" /></th>\n\n <th class={{column.align}} [class.hide]=\"column.hide\" *ngFor=\"let column of this.columns;let colIndex=index\">\n <div [class.gtr-header-label]='column.sorting.hasSorting'\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"column.label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{column.label}}\n </ng-container>\n </ng-container>\n </div>\n <span class=\"gtr-header-sorting-wrapper\" *ngIf=\"column.sorting.hasSorting\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n </th>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of data;let rowIndex=index\">\n <td *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n <td *ngFor=\"let column of row.columnsData; let colIndex=index\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\"\n [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column?.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'actions'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngSwitchDefault [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column?.value?.length > 30 ? (column?.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\" class='word-wrap'>\n <span title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute : 'align' : i : columns) + ' action-menu'\">\n <span class=\"gtr-data-label\" *ngFor=\"let action of column.actions;let actionIndex=index\">\n <ng-container *ngIf=\"!action.hide\">\n <div [ngSwitch]=\"action.type\">\n <div *ngSwitchCase=\"'button'\">\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'icon'\">\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'dropdown'\">\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'input'\">\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'textarea'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'toggle'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</div>\n </div>\n </div>\n </ng-container>\n </span>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge type=\"pill\" [positionProperty]=\"{ 'align': (columnAttributes | gtrFetchAttribute : 'align' : i : columns)}\"\n [color]=\"columnAttributes | gtrFetchAttribute : 'color' : i : columns\">{{data}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class='gtr-table-buttons'>\n <gtr-button [id]=\"tableMainId+'-col-action-btn-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-btn-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\"> <gtr-icon\n [id]=\"tableMainId+'-col-action-icon-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-icon-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <input type='text' [id]=\"tableMainId+'-col-action-input-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-input-'+i\"\n [placeholder]=\"action.name\" (input)=\"this.actionDone($event, row['id'], action)\" />\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:var(--primary-text-color);text-decoration:underline}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"] }]
10084
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { templateRef: [{
10085
+ type: ViewChildren,
10086
+ args: ['template', { read: ViewContainerRef }]
10087
+ }], childRowRef: [{
10088
+ type: ViewChildren,
10089
+ args: ['childRows', { read: ViewContainerRef }]
10090
+ }], enableSelection: [{
10091
+ type: Input
10092
+ }], isLoading: [{
10093
+ type: Input
10094
+ }], columns: [{
10095
+ type: Input
10096
+ }], tableMainId: [{
10097
+ type: Input
10098
+ }], data: [{
10099
+ type: Input
10100
+ }], onSelection: [{
10101
+ type: Output
10102
+ }], onAction: [{
10103
+ type: Output
10104
+ }], onSort: [{
10105
+ type: Output
10106
+ }] } });
10107
+
10108
+ class GtrTableComponent {
10109
+ constructor() {
10110
+ this.switchState = false;
10111
+ /**
10112
+ * Set the table type.
10113
+ * @default 'boolean'
10114
+ * @type TableType
10115
+ */
10116
+ this.isResponsive = true;
10117
+ /**
10118
+ * Set the skeleton loading state.
10119
+ * @default 'boolean'
10120
+ * @type LoadingState
10121
+ */
10122
+ this.loading = false;
10123
+ /**
10124
+ * Set the hide/show state of checbox.
10125
+ * @default 'boolean'
10126
+ * @type CheckBox State
10127
+ */
10128
+ this.enableSelection = true;
10129
+ /**
10130
+ * Set the id of main web table.
10131
+ * @default 'string'
10132
+ * @type CheckBox State
10133
+ */
10134
+ this.tableMainId = '';
10135
+ /**
10136
+ * Set id of responsive table.
10137
+ * @default 'string'
10138
+ * @type CheckBox State
10139
+ */
10140
+ this.tableResponsiveId = '';
10141
+ /**
10142
+ * Table columns
10143
+ */
10144
+ this.columns = [];
10145
+ /**
10146
+ * Table data
10147
+ */
10148
+ this.data = [];
10149
+ /**
10150
+ * The selection changed eventemitter
10151
+ * @default '{ value: any; all: boolean }'
10152
+ * @type Event Emitter
10153
+ */
10154
+ this.onSelection = new EventEmitter();
10155
+ /**
10156
+ * Action eventemitter
10157
+ */
10158
+ this.onAction = new EventEmitter();
10159
+ /**
10160
+ * Sorting eventemitter
10161
+ */
10162
+ this.onSort = new EventEmitter();
10163
+ }
10164
+ /**
10165
+ * To check screen size
10166
+ */
10167
+ onResize(event) {
10168
+ event.target.innerWidth;
10169
+ if (event.target.innerWidth <= 768) {
10170
+ this.switchState = true;
10171
+ }
10172
+ else {
10173
+ this.switchState = false;
10174
+ }
10175
+ }
10176
+ ngOnInit() {
10177
+ this.switchState = this.isResponsive && window.innerWidth <= 768;
10178
+ }
10179
+ selectionChange(ev) {
10180
+ this.onSelection.emit(ev);
10181
+ }
10182
+ actionDone(ev) {
10183
+ this.onAction.emit(ev);
10184
+ }
10185
+ sorting(ev) {
10186
+ this.onSort.emit(ev);
10187
+ }
10188
+ ngOnDestroy() { }
10189
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10190
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableComponent, isStandalone: true, selector: "gtr-table", inputs: { isResponsive: "isResponsive", loading: "loading", enableSelection: "enableSelection", tableMainId: "tableMainId", tableResponsiveId: "tableResponsiveId", columns: "columns", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
10191
+ {
10192
+ provide: NG_VALUE_ACCESSOR,
10193
+ useExisting: forwardRef((() => GtrTableComponent)),
10194
+ multi: true,
10195
+ },
10196
+ ], exportAs: ["gtrTable"], ngImport: i0, template: "<ng-container *ngIf=\"switchState\">\n <gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n<ng-container *ngIf=\"!switchState\">\n <gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n", styles: [":host{background:white;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eeeeee}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: GtrTableResponsiveComponent, selector: "gtr-table-responsive", inputs: ["isLoading", "enableSelection", "columns", "data", "tableResponsiveId"], outputs: ["onSelection", "onAction", "onSort"], exportAs: ["gtrTableResponsive"] }, { kind: "component", type: GtrTableMainComponent, selector: "gtr-table-main", inputs: ["enableSelection", "isLoading", "columns", "tableMainId", "data"], outputs: ["onSelection", "onAction", "onSort"], exportAs: ["gtrTableMain"] }] }); }
10197
+ }
10198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableComponent, decorators: [{
10199
+ type: Component,
10200
+ args: [{ selector: 'gtr-table', exportAs: 'gtrTable', standalone: true, imports: [
10201
+ NgClass,
10202
+ NgIf,
10203
+ NgForOf,
10204
+ NgTemplateOutlet,
10205
+ ReactiveFormsModule,
10206
+ GtrTableResponsiveComponent,
10207
+ GtrTableMainComponent,
10208
+ ], providers: [
10209
+ {
10210
+ provide: NG_VALUE_ACCESSOR,
10211
+ useExisting: forwardRef((() => GtrTableComponent)),
10212
+ multi: true,
10213
+ },
10214
+ ], template: "<ng-container *ngIf=\"switchState\">\n <gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n<ng-container *ngIf=\"!switchState\">\n <gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n", styles: [":host{background:white;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eeeeee}\n"] }]
10215
+ }], ctorParameters: function () { return []; }, propDecorators: { isResponsive: [{
10216
+ type: Input
10217
+ }], loading: [{
10218
+ type: Input
10219
+ }], enableSelection: [{
10220
+ type: Input
10221
+ }], tableMainId: [{
10222
+ type: Input
10223
+ }], tableResponsiveId: [{
10224
+ type: Input
10225
+ }], columns: [{
10226
+ type: Input
10227
+ }], data: [{
10228
+ type: Input
10229
+ }], onSelection: [{
10230
+ type: Output
10231
+ }], onAction: [{
10232
+ type: Output
10233
+ }], onSort: [{
10234
+ type: Output
10235
+ }], onResize: [{
10236
+ type: HostListener,
10237
+ args: ['window:resize', ['$event']]
10238
+ }] } });
10239
+
10240
+ class GtrTableModule {
10241
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10242
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent], exports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent] }); }
10243
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, providers: [GtrBadgeComponent], imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent] }); }
10244
+ }
10245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, decorators: [{
10246
+ type: NgModule,
10247
+ args: [{
10248
+ imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent],
10249
+ exports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent],
10250
+ providers: [GtrBadgeComponent],
10251
+ }]
10252
+ }] });
10253
+
9687
10254
  class GtrTabComponent {
9688
10255
  constructor() {
9689
10256
  this.label = '';
@@ -9825,5 +10392,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
9825
10392
  * Generated bundle index. Do not edit.
9826
10393
  */
9827
10394
 
9828
- export { BreakpointInfix, GettrxModule, Gtr2Accordion, Gtr2AccordionWrapper, Gtr2Badge, Gtr2Button, Gtr2Checkbox, Gtr2DatePicker, Gtr2FileInput, Gtr2GroupDropdown, Gtr2Icon, Gtr2Input, Gtr2Modal, Gtr2NumericCounter, Gtr2Pagination, Gtr2Popover, Gtr2PopoverWrapper, Gtr2RadioButton, Gtr2RadioButtonGroup, Gtr2Select, Gtr2StatsCard, Gtr2Switch, Gtr2Tab, Gtr2TabGroup, Gtr2TableContainer, Gtr2Textarea, Gtr2Toaster, Gtr2Tooltip, 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, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSelectModule, GtrSharedModule, GtrSkeletonComponent, GtrSkeletonDirective, GtrSkeletonModule, GtrStatCardComponent, GtrStatCardModule, GtrSwitchComponent, GtrSwitchModule, GtrTabComponent, GtrTabsModule, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTextareaModule, GtrTimePickerComponent, GtrTimePickerModule, GtrToasterComponent, GtrToasterModule, GtrToasterService, GtrTooltipComponent, GtrTooltipModule, GtrTrimTextPipe, GtrValidatePagePipe, RadioButtonhModule, TextValueAccessor, ValueAccessor, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
10395
+ export { BreakpointInfix, GettrxModule, Gtr2Accordion, Gtr2AccordionWrapper, Gtr2Badge, Gtr2Button, Gtr2Checkbox, Gtr2DatePicker, Gtr2FileInput, Gtr2GroupDropdown, Gtr2Icon, Gtr2Input, Gtr2Modal, Gtr2NumericCounter, Gtr2Pagination, Gtr2Popover, Gtr2PopoverWrapper, Gtr2RadioButton, Gtr2RadioButtonGroup, Gtr2Select, Gtr2StatsCard, Gtr2Switch, Gtr2Tab, Gtr2TabGroup, Gtr2TableContainer, Gtr2Textarea, Gtr2Toaster, Gtr2Tooltip, 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, 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, RadioButtonhModule, TextValueAccessor, ValueAccessor, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
9829
10396
  //# sourceMappingURL=gettrx-core-components-angular.mjs.map