@gettrx/core-components-angular 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/atoms/badge/badge.component.mjs +3 -3
- package/esm2022/lib/atoms/badge/badge.module.mjs +5 -5
- package/esm2022/lib/atoms/button/button.component.mjs +60 -0
- package/esm2022/lib/atoms/button/button.module.mjs +9 -7
- package/esm2022/lib/atoms/button/index.mjs +3 -2
- package/esm2022/lib/atoms/button/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/{button → button-directive}/button-close.directive.mjs +1 -1
- package/esm2022/lib/atoms/button-directive/button-directive.module.mjs +17 -0
- package/esm2022/lib/atoms/button-directive/button.directive.mjs +102 -0
- package/esm2022/lib/atoms/button-directive/index.mjs +2 -0
- package/esm2022/lib/atoms/button-directive/public_api.mjs +4 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +14 -8
- package/esm2022/lib/atoms/icon/icon.module.mjs +6 -6
- package/esm2022/lib/atoms/icon/public_api.mjs +2 -2
- package/esm2022/lib/atoms/input/index.mjs +2 -0
- package/esm2022/lib/atoms/input/input.component.mjs +375 -0
- package/esm2022/lib/atoms/input/input.module.mjs +21 -0
- package/esm2022/lib/atoms/input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/input/utils/input-utils.mjs +26 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +3 -3
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +3 -5
- package/esm2022/lib/atoms/switch/index.mjs +2 -0
- package/esm2022/lib/atoms/switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/switch/switch.component.mjs +106 -0
- package/esm2022/lib/atoms/switch/switch.module.mjs +18 -0
- package/esm2022/lib/atoms/textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/textarea/textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/textarea/textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/textarea/utils/textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/tooltip/tooltip.component.mjs +111 -0
- package/esm2022/lib/atoms/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +5 -5
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +5 -5
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +1 -1
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +6 -6
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +4 -4
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +8 -6
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +2 -2
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +5 -5
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +1 -1
- package/esm2022/lib/molecules/modal/index.mjs +2 -0
- package/esm2022/lib/molecules/modal/modal.component.mjs +148 -0
- package/esm2022/lib/molecules/modal/modal.module.mjs +18 -0
- package/esm2022/lib/molecules/modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +5 -5
- package/esm2022/lib/molecules/select/select/select.component.mjs +4 -4
- package/esm2022/lib/molecules/select/select.module.mjs +5 -5
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +6 -5
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +2 -2
- package/esm2022/public-api.mjs +8 -8
- package/fesm2022/gettrx-core-components-angular.mjs +162 -326
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/badge/badge.component.d.ts +1 -1
- package/lib/atoms/badge/badge.module.d.ts +1 -1
- package/lib/atoms/{custom-button/custom-button.component.d.ts → button/button.component.d.ts} +3 -3
- package/lib/atoms/button/button.module.d.ts +4 -3
- package/lib/atoms/button/index.d.ts +2 -1
- package/lib/atoms/button-directive/button-directive.module.d.ts +8 -0
- package/lib/atoms/{button → button-directive}/button.directive.d.ts +1 -1
- package/lib/atoms/{button → button-directive}/public_api.d.ts +1 -1
- package/lib/atoms/icon/icon.component.d.ts +2 -1
- package/lib/atoms/icon/icon.module.d.ts +4 -4
- package/lib/atoms/icon/public_api.d.ts +1 -1
- package/lib/atoms/{custom-input/custom-input.component.d.ts → input/input.component.d.ts} +4 -5
- package/lib/atoms/input/input.module.d.ts +10 -0
- package/lib/atoms/input/public_api.d.ts +2 -0
- package/lib/atoms/popover/popover.component.d.ts +1 -1
- package/lib/atoms/radio-button/radio-button.component.d.ts +1 -5
- package/lib/atoms/switch/public_api.d.ts +2 -0
- package/lib/atoms/{custom-gtr-switch/custom-gtr-switch.component.d.ts → switch/switch.component.d.ts} +4 -5
- package/lib/atoms/switch/switch.module.d.ts +8 -0
- package/lib/atoms/textarea/public_api.d.ts +2 -0
- package/lib/atoms/{custom-textarea/custom-textarea.component.d.ts → textarea/textarea.component.d.ts} +4 -4
- package/lib/atoms/textarea/textarea.module.d.ts +10 -0
- package/lib/atoms/tooltip/public_api.d.ts +2 -0
- package/lib/atoms/tooltip/tooltip.component.d.ts +49 -0
- package/lib/atoms/tooltip/tooltip.module.d.ts +8 -0
- package/lib/molecules/accordion/accordion.module.d.ts +1 -1
- package/lib/molecules/checkbox/checkbox.module.d.ts +1 -1
- package/lib/molecules/date-picker/date-picker.module.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +2 -2
- package/lib/molecules/file-input/file-input.module.d.ts +2 -2
- package/lib/molecules/form/form-control/form-control.directive.d.ts +1 -1
- package/lib/molecules/{custom-gtr-modal/custom-gtr-modal.component.d.ts → modal/modal.component.d.ts} +3 -3
- package/lib/molecules/modal/modal.module.d.ts +8 -0
- package/lib/molecules/modal/public_api.d.ts +2 -0
- package/lib/molecules/pagination/pagination.module.d.ts +1 -1
- package/lib/molecules/select/select.module.d.ts +1 -1
- package/lib/molecules/stat-card/stat-card.module.d.ts +1 -1
- package/lib/molecules/time-picker/time-picker.module.d.ts +1 -1
- package/package.json +3 -2
- package/public-api.d.ts +7 -7
- package/esm2022/lib/atoms/button/button.directive.mjs +0 -102
- package/esm2022/lib/atoms/button/public_api.mjs +0 -4
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +0 -60
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +0 -19
- package/esm2022/lib/atoms/custom-button/index.mjs +0 -3
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +0 -109
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +0 -143
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +0 -364
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-input/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +0 -26
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +0 -242
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-textarea/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +0 -9
- package/esm2022/lib/atoms/gtr.types.mjs +0 -10
- package/esm2022/lib/molecules/button/button-close.directive.mjs +0 -39
- package/esm2022/lib/molecules/button/button.directive.mjs +0 -100
- package/esm2022/lib/molecules/button/button.module.mjs +0 -17
- package/esm2022/lib/molecules/button/index.mjs +0 -2
- package/esm2022/lib/molecules/button/public_api.mjs +0 -4
- package/esm2022/lib/molecules/core-components.types.mjs +0 -10
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +0 -148
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +0 -18
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +0 -2
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +0 -3
- package/lib/atoms/custom-button/custom-button.module.d.ts +0 -9
- package/lib/atoms/custom-button/index.d.ts +0 -2
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +0 -2
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +0 -59
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +0 -2
- package/lib/atoms/custom-input/custom-input.module.d.ts +0 -10
- package/lib/atoms/custom-input/public_api.d.ts +0 -2
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +0 -10
- package/lib/atoms/custom-textarea/public_api.d.ts +0 -2
- package/lib/atoms/gtr.types.d.ts +0 -46
- package/lib/molecules/button/button-close.directive.d.ts +0 -13
- package/lib/molecules/button/button.directive.d.ts +0 -48
- package/lib/molecules/button/button.module.d.ts +0 -8
- package/lib/molecules/button/public_api.d.ts +0 -3
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +0 -8
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +0 -2
- /package/lib/atoms/{custom-button → button}/utils/utils.d.ts +0 -0
- /package/lib/atoms/{button → button-directive}/button-close.directive.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-switch → button-directive}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → input}/index.d.ts +0 -0
- /package/lib/atoms/{custom-input → input}/utils/input-utils.d.ts +0 -0
- /package/lib/atoms/{custom-input → switch}/index.d.ts +0 -0
- /package/lib/atoms/{custom-textarea → textarea}/index.d.ts +0 -0
- /package/lib/atoms/{custom-textarea/utils/gtr-textarea.types.d.ts → textarea/utils/textarea.types.d.ts} +0 -0
- /package/lib/{molecules/button → atoms/tooltip}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → tooltip}/utils/utils.d.ts +0 -0
- /package/lib/{molecules/core-components.types.d.ts → core-components.types.d.ts} +0 -0
- /package/lib/molecules/{custom-gtr-modal → modal}/index.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input,
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Directive, HostListener, NgModule, Input, HostBinding, booleanAttribute, EventEmitter, Optional, Self, Output, ViewChild, forwardRef, ContentChildren, Injectable, Pipe, ViewChildren, ElementRef, Inject, ContentChild } from '@angular/core';
|
|
4
4
|
import { fromEvent, BehaviorSubject, throwError } 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';
|
|
@@ -902,22 +902,25 @@ class IconComponent {
|
|
|
902
902
|
* The icon color
|
|
903
903
|
*/
|
|
904
904
|
this.color = 'currentColor';
|
|
905
|
-
/**
|
|
906
|
-
* The icon size
|
|
907
|
-
*/
|
|
908
|
-
this.size = 24;
|
|
909
905
|
/**
|
|
910
906
|
* The element id
|
|
911
907
|
*/
|
|
912
908
|
this.iconId = '';
|
|
909
|
+
this.height = this.size + 'px';
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* The icon size
|
|
913
|
+
*/
|
|
914
|
+
set size(value) {
|
|
915
|
+
this.height = value + 'px';
|
|
913
916
|
}
|
|
914
917
|
ngOnDestroy() { }
|
|
915
918
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
916
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconComponent, selector: "gtr-icon", inputs: { name: "name", weight: "weight", color: "color", size: "size", iconId: "iconId" },
|
|
919
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconComponent, selector: "gtr-icon", inputs: { name: "name", weight: "weight", color: "color", size: "size", iconId: "iconId" }, host: { properties: { "style.height": "this.height" } }, ngImport: i0, template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }); }
|
|
917
920
|
}
|
|
918
921
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconComponent, decorators: [{
|
|
919
922
|
type: Component,
|
|
920
|
-
args: [{ selector: 'gtr-icon', template: "<
|
|
923
|
+
args: [{ selector: 'gtr-icon', template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }]
|
|
921
924
|
}], propDecorators: { name: [{
|
|
922
925
|
type: Input
|
|
923
926
|
}], weight: [{
|
|
@@ -928,6 +931,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
928
931
|
type: Input
|
|
929
932
|
}], iconId: [{
|
|
930
933
|
type: Input
|
|
934
|
+
}], height: [{
|
|
935
|
+
type: HostBinding,
|
|
936
|
+
args: ['style.height']
|
|
931
937
|
}] } });
|
|
932
938
|
|
|
933
939
|
class BadgeComponent {
|
|
@@ -960,8 +966,8 @@ class BadgeComponent {
|
|
|
960
966
|
Option to set badge position overlap or default to specific element
|
|
961
967
|
@default value is default
|
|
962
968
|
*/
|
|
963
|
-
this.id = '
|
|
964
|
-
this.testid = '
|
|
969
|
+
this.id = '';
|
|
970
|
+
this.testid = '';
|
|
965
971
|
/*
|
|
966
972
|
Option to set badge position using attributes
|
|
967
973
|
(Note: use position property if position value is overlap)
|
|
@@ -1003,12 +1009,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1003
1009
|
args: ['icon-name']
|
|
1004
1010
|
}] } });
|
|
1005
1011
|
|
|
1006
|
-
class
|
|
1007
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1008
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1009
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1012
|
+
class IconModule {
|
|
1013
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1014
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IconModule, declarations: [IconComponent], imports: [CommonModule], exports: [IconComponent] }); }
|
|
1015
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule, imports: [CommonModule] }); }
|
|
1010
1016
|
}
|
|
1011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule, decorators: [{
|
|
1012
1018
|
type: NgModule,
|
|
1013
1019
|
args: [{
|
|
1014
1020
|
declarations: [IconComponent],
|
|
@@ -1019,19 +1025,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1019
1025
|
|
|
1020
1026
|
class BadgeModule {
|
|
1021
1027
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1022
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, declarations: [BadgeComponent], imports: [CommonModule,
|
|
1023
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, imports: [CommonModule,
|
|
1028
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, declarations: [BadgeComponent], imports: [CommonModule, IconModule], exports: [BadgeComponent] }); }
|
|
1029
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, imports: [CommonModule, IconModule] }); }
|
|
1024
1030
|
}
|
|
1025
1031
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BadgeModule, decorators: [{
|
|
1026
1032
|
type: NgModule,
|
|
1027
1033
|
args: [{
|
|
1028
1034
|
declarations: [BadgeComponent],
|
|
1029
1035
|
exports: [BadgeComponent],
|
|
1030
|
-
imports: [CommonModule,
|
|
1036
|
+
imports: [CommonModule, IconModule],
|
|
1031
1037
|
}]
|
|
1032
1038
|
}] });
|
|
1033
1039
|
|
|
1034
|
-
|
|
1040
|
+
class ButtonDirective {
|
|
1035
1041
|
constructor() {
|
|
1036
1042
|
/**
|
|
1037
1043
|
* Toggle the active state for the component. [docs]
|
|
@@ -1087,8 +1093,8 @@ let ButtonDirective$1 = class ButtonDirective {
|
|
|
1087
1093
|
}
|
|
1088
1094
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1089
1095
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: ButtonDirective, isStandalone: true, selector: "[gtrButton]", inputs: { active: ["active", "active", booleanAttribute], color: "color", disabled: ["disabled", "disabled", booleanAttribute], shape: "shape", size: "size", type: "type", variant: "variant" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses", "attr.aria-disabled": "this.ariaDisabled", "attr.aria-pressed": "this.isActive", "attr.disabled": "this.attrDisabled", "attr.tabindex": "this.tabIndex" } }, exportAs: ["gtrButton"], ngImport: i0 }); }
|
|
1090
|
-
}
|
|
1091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirective
|
|
1096
|
+
}
|
|
1097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
1092
1098
|
type: Directive,
|
|
1093
1099
|
args: [{
|
|
1094
1100
|
selector: '[gtrButton]',
|
|
@@ -1131,7 +1137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1131
1137
|
args: ['attr.tabindex']
|
|
1132
1138
|
}] } });
|
|
1133
1139
|
|
|
1134
|
-
|
|
1140
|
+
class ButtonCloseDirective extends ButtonDirective {
|
|
1135
1141
|
constructor() {
|
|
1136
1142
|
super(...arguments);
|
|
1137
1143
|
/**
|
|
@@ -1152,8 +1158,8 @@ let ButtonCloseDirective$1 = class ButtonCloseDirective extends ButtonDirective$
|
|
|
1152
1158
|
}
|
|
1153
1159
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonCloseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1154
1160
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: ButtonCloseDirective, isStandalone: true, selector: "[gtrButtonClose]", inputs: { white: ["white", "white", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
|
1155
|
-
}
|
|
1156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonCloseDirective
|
|
1161
|
+
}
|
|
1162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonCloseDirective, decorators: [{
|
|
1157
1163
|
type: Directive,
|
|
1158
1164
|
args: [{
|
|
1159
1165
|
selector: '[gtrButtonClose]',
|
|
@@ -1167,20 +1173,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1167
1173
|
args: ['class']
|
|
1168
1174
|
}] } });
|
|
1169
1175
|
|
|
1170
|
-
|
|
1171
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1172
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1173
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1174
|
-
}
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1176
|
+
class ButtonDirectiveModule {
|
|
1177
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1178
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirectiveModule, imports: [ButtonDirective, ButtonCloseDirective], exports: [ButtonDirective, ButtonCloseDirective] }); }
|
|
1179
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirectiveModule }); }
|
|
1180
|
+
}
|
|
1181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirectiveModule, decorators: [{
|
|
1176
1182
|
type: NgModule,
|
|
1177
1183
|
args: [{
|
|
1178
|
-
imports: [ButtonDirective
|
|
1179
|
-
exports: [ButtonDirective
|
|
1184
|
+
imports: [ButtonDirective, ButtonCloseDirective],
|
|
1185
|
+
exports: [ButtonDirective, ButtonCloseDirective],
|
|
1180
1186
|
}]
|
|
1181
1187
|
}] });
|
|
1182
1188
|
|
|
1183
|
-
class
|
|
1189
|
+
class ButtonComponent {
|
|
1184
1190
|
constructor() {
|
|
1185
1191
|
/** (optional) Button type */
|
|
1186
1192
|
this.type = 'button';
|
|
@@ -1218,10 +1224,10 @@ class CustomButtonComponent {
|
|
|
1218
1224
|
};
|
|
1219
1225
|
}
|
|
1220
1226
|
ngOnInit() { }
|
|
1221
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1222
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomButtonComponent, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: 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\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
1227
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1228
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonComponent, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: 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\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
1223
1229
|
}
|
|
1224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1225
1231
|
type: Component,
|
|
1226
1232
|
args: [{ selector: 'gtr-button', template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: 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\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
1227
1233
|
}], propDecorators: { type: [{
|
|
@@ -1238,21 +1244,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1238
1244
|
type: Input
|
|
1239
1245
|
}] } });
|
|
1240
1246
|
|
|
1241
|
-
class
|
|
1242
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1243
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1244
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1247
|
+
class ButtonModule {
|
|
1248
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1249
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, FormsModule], exports: [ButtonComponent] }); }
|
|
1250
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, imports: [CommonModule, FormsModule] }); }
|
|
1245
1251
|
}
|
|
1246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, decorators: [{
|
|
1247
1253
|
type: NgModule,
|
|
1248
1254
|
args: [{
|
|
1249
|
-
declarations: [
|
|
1255
|
+
declarations: [ButtonComponent],
|
|
1250
1256
|
imports: [CommonModule, FormsModule],
|
|
1251
|
-
exports: [
|
|
1257
|
+
exports: [ButtonComponent],
|
|
1252
1258
|
}]
|
|
1253
1259
|
}] });
|
|
1254
1260
|
|
|
1255
|
-
class
|
|
1261
|
+
class SwitchComponent {
|
|
1256
1262
|
constructor(ngControl) {
|
|
1257
1263
|
this.ngControl = ngControl;
|
|
1258
1264
|
/**
|
|
@@ -1289,9 +1295,6 @@ class CustomGtrSwitchComponent {
|
|
|
1289
1295
|
this.ngControl.valueAccessor = this;
|
|
1290
1296
|
}
|
|
1291
1297
|
}
|
|
1292
|
-
ngAfterViewInit() {
|
|
1293
|
-
// throw new Error('Method not implemented.');
|
|
1294
|
-
}
|
|
1295
1298
|
writeValue(obj) {
|
|
1296
1299
|
// throw new Error('Method not implemented.');
|
|
1297
1300
|
}
|
|
@@ -1331,10 +1334,10 @@ class CustomGtrSwitchComponent {
|
|
|
1331
1334
|
this.gtrChange.emit(this.checked);
|
|
1332
1335
|
}
|
|
1333
1336
|
}
|
|
1334
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1335
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1337
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SwitchComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1338
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SwitchComponent, selector: "gtr-switch", inputs: { checked: "checked", switchId: "switchId", disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", label: "label" }, outputs: { gtrChange: "gtrChange" }, ngImport: i0, template: "<label [class]=\"'gtr-switch-wrapper'\" [id]=\"switchId\" [attr.data-testid]=\"switchId\" [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\" [id]=\"switchId+'-input'\" [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\" type=\"checkbox\" [checked]=\"this.checked\" data-toggle=\"toggle\" [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\" [attr.aria-label]=\"this.label\" [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\" [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\" (keydown)=\"this.handleKeyDown($event)\" (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\" [id]=\"switchId+'-label'\" [attr.data-testid]=\"switchId+'-label'\" *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:2.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1336
1339
|
}
|
|
1337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
1338
1341
|
type: Component,
|
|
1339
1342
|
args: [{ selector: 'gtr-switch', template: "<label [class]=\"'gtr-switch-wrapper'\" [id]=\"switchId\" [attr.data-testid]=\"switchId\" [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\" [id]=\"switchId+'-input'\" [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\" type=\"checkbox\" [checked]=\"this.checked\" data-toggle=\"toggle\" [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\" [attr.aria-label]=\"this.label\" [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\" [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\" (keydown)=\"this.handleKeyDown($event)\" (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\" [id]=\"switchId+'-label'\" [attr.data-testid]=\"switchId+'-label'\" *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:2.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"] }]
|
|
1340
1343
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
@@ -1357,42 +1360,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1357
1360
|
type: Output
|
|
1358
1361
|
}] } });
|
|
1359
1362
|
|
|
1360
|
-
class
|
|
1361
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1362
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1363
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1363
|
+
class SwitchModule {
|
|
1364
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1365
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SwitchModule, declarations: [SwitchComponent], imports: [CommonModule], exports: [SwitchComponent] }); }
|
|
1366
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SwitchModule, imports: [CommonModule] }); }
|
|
1364
1367
|
}
|
|
1365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SwitchModule, decorators: [{
|
|
1366
1369
|
type: NgModule,
|
|
1367
1370
|
args: [{
|
|
1368
1371
|
imports: [CommonModule],
|
|
1369
|
-
exports: [
|
|
1370
|
-
declarations: [
|
|
1372
|
+
exports: [SwitchComponent],
|
|
1373
|
+
declarations: [SwitchComponent],
|
|
1371
1374
|
}]
|
|
1372
1375
|
}] });
|
|
1373
1376
|
|
|
1374
|
-
class
|
|
1375
|
-
/**
|
|
1376
|
-
* The keyup event for hide tooltip visibility on escape key
|
|
1377
|
-
*/
|
|
1378
|
-
handleKeyDown(event) {
|
|
1379
|
-
if (event.key === 'Escape') {
|
|
1380
|
-
// this.hideTooltip();
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1377
|
+
class TooltipComponent {
|
|
1383
1378
|
/**
|
|
1384
1379
|
* The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
|
|
1385
1380
|
*/
|
|
1386
1381
|
handleResizeScroll() {
|
|
1387
1382
|
this.autoAdjustable && this.adjustPosition();
|
|
1388
1383
|
}
|
|
1389
|
-
constructor(
|
|
1390
|
-
this.ngControl = ngControl;
|
|
1384
|
+
constructor(tooltipElement) {
|
|
1391
1385
|
this.tooltipElement = tooltipElement;
|
|
1392
1386
|
/**
|
|
1393
1387
|
* The tooltip content
|
|
1394
1388
|
*/
|
|
1395
|
-
this.tooltipId = '';
|
|
1389
|
+
this.tooltipId = 'gtr-tooltip';
|
|
1396
1390
|
/**
|
|
1397
1391
|
* The tooltip position
|
|
1398
1392
|
*/
|
|
@@ -1405,21 +1399,6 @@ class CustomGtrTooltipComponent {
|
|
|
1405
1399
|
* The tooltip adjustable position
|
|
1406
1400
|
*/
|
|
1407
1401
|
this.newPosition = '';
|
|
1408
|
-
if (this.ngControl != null) {
|
|
1409
|
-
this.ngControl.valueAccessor = this;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
writeValue(obj) {
|
|
1413
|
-
// throw new Error('Method not implemented.');
|
|
1414
|
-
}
|
|
1415
|
-
registerOnChange(fn) {
|
|
1416
|
-
// throw new Error('Method not implemented.');
|
|
1417
|
-
}
|
|
1418
|
-
registerOnTouched(fn) {
|
|
1419
|
-
// throw new Error('Method not implemented.');
|
|
1420
|
-
}
|
|
1421
|
-
setDisabledState(isDisabled) {
|
|
1422
|
-
// throw new Error('Method not implemented.');
|
|
1423
1402
|
}
|
|
1424
1403
|
// contentEl!: HTMLElement;
|
|
1425
1404
|
/**
|
|
@@ -1479,22 +1458,15 @@ class CustomGtrTooltipComponent {
|
|
|
1479
1458
|
this.autoAdjustable && this.adjustPosition();
|
|
1480
1459
|
}, 100);
|
|
1481
1460
|
}
|
|
1482
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1483
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1461
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1462
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipComponent, selector: "gtr-tooltip", inputs: { tooltipId: "tooltipId", content: "content", position: "position", autoAdjustable: "autoAdjustable" }, host: { listeners: { "scroll": "handleResizeScroll()", "resize": "handleResizeScroll()" } }, viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }); }
|
|
1484
1463
|
}
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1486
1465
|
type: Component,
|
|
1487
1466
|
args: [{ selector: 'gtr-tooltip', template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }]
|
|
1488
|
-
}], ctorParameters: function () { return [{ type:
|
|
1489
|
-
type: Optional
|
|
1490
|
-
}, {
|
|
1491
|
-
type: Self
|
|
1492
|
-
}] }, { type: i0.ElementRef }]; }, propDecorators: { contentEl: [{
|
|
1467
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { contentEl: [{
|
|
1493
1468
|
type: ViewChild,
|
|
1494
1469
|
args: ['contentEl']
|
|
1495
|
-
}], handleKeyDown: [{
|
|
1496
|
-
type: HostListener,
|
|
1497
|
-
args: ['keydown']
|
|
1498
1470
|
}], handleResizeScroll: [{
|
|
1499
1471
|
type: HostListener,
|
|
1500
1472
|
args: ['scroll']
|
|
@@ -1511,17 +1483,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1511
1483
|
type: Input
|
|
1512
1484
|
}] } });
|
|
1513
1485
|
|
|
1514
|
-
class
|
|
1515
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1516
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1517
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1486
|
+
class TooltipModule {
|
|
1487
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1488
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent], imports: [CommonModule], exports: [TooltipComponent] }); }
|
|
1489
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, imports: [CommonModule] }); }
|
|
1518
1490
|
}
|
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, decorators: [{
|
|
1520
1492
|
type: NgModule,
|
|
1521
1493
|
args: [{
|
|
1522
1494
|
imports: [CommonModule],
|
|
1523
|
-
exports: [
|
|
1524
|
-
declarations: [
|
|
1495
|
+
exports: [TooltipComponent],
|
|
1496
|
+
declarations: [TooltipComponent],
|
|
1525
1497
|
}]
|
|
1526
1498
|
}] });
|
|
1527
1499
|
|
|
@@ -1621,7 +1593,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1621
1593
|
args: ['skeletonClassName']
|
|
1622
1594
|
}] } });
|
|
1623
1595
|
|
|
1624
|
-
class
|
|
1596
|
+
class InputComponent {
|
|
1625
1597
|
constructor(ngControl) {
|
|
1626
1598
|
this.ngControl = ngControl;
|
|
1627
1599
|
this.onChanged = (e) => {
|
|
@@ -1751,8 +1723,6 @@ class CustomInputComponent {
|
|
|
1751
1723
|
this.ngControl.valueAccessor = this;
|
|
1752
1724
|
}
|
|
1753
1725
|
}
|
|
1754
|
-
// The form control is only set after initialization
|
|
1755
|
-
ngAfterViewInit() { }
|
|
1756
1726
|
registerOnChange(fn) {
|
|
1757
1727
|
this.onChanged = fn;
|
|
1758
1728
|
}
|
|
@@ -1922,12 +1892,24 @@ class CustomInputComponent {
|
|
|
1922
1892
|
? this.hasError || (!this.defaultValidation ? !this.isValid : false)
|
|
1923
1893
|
: false;
|
|
1924
1894
|
}
|
|
1925
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1926
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
1895
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1896
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InputComponent, 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" }, providers: [
|
|
1897
|
+
{
|
|
1898
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1899
|
+
useExisting: forwardRef((() => InputComponent)),
|
|
1900
|
+
multi: true,
|
|
1901
|
+
},
|
|
1902
|
+
], 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: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
1927
1903
|
}
|
|
1928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputComponent, decorators: [{
|
|
1929
1905
|
type: Component,
|
|
1930
|
-
args: [{ selector: 'gtr-input',
|
|
1906
|
+
args: [{ selector: 'gtr-input', providers: [
|
|
1907
|
+
{
|
|
1908
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1909
|
+
useExisting: forwardRef((() => InputComponent)),
|
|
1910
|
+
multi: true,
|
|
1911
|
+
},
|
|
1912
|
+
], 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"] }]
|
|
1931
1913
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
1932
1914
|
type: Optional
|
|
1933
1915
|
}, {
|
|
@@ -1978,17 +1960,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1978
1960
|
type: Input
|
|
1979
1961
|
}] } });
|
|
1980
1962
|
|
|
1981
|
-
class
|
|
1982
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1983
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1984
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1963
|
+
class InputModule {
|
|
1964
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1965
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: InputModule, declarations: [InputComponent], imports: [CommonModule, SkeletonDirective, IconModule], exports: [InputComponent] }); }
|
|
1966
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputModule, providers: [SkeletonDirective], imports: [CommonModule, IconModule] }); }
|
|
1985
1967
|
}
|
|
1986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputModule, decorators: [{
|
|
1987
1969
|
type: NgModule,
|
|
1988
1970
|
args: [{
|
|
1989
|
-
imports: [CommonModule, SkeletonDirective,
|
|
1990
|
-
exports: [
|
|
1991
|
-
declarations: [
|
|
1971
|
+
imports: [CommonModule, SkeletonDirective, IconModule],
|
|
1972
|
+
exports: [InputComponent],
|
|
1973
|
+
declarations: [InputComponent],
|
|
1992
1974
|
providers: [SkeletonDirective],
|
|
1993
1975
|
}]
|
|
1994
1976
|
}] });
|
|
@@ -2002,7 +1984,7 @@ var textareaState;
|
|
|
2002
1984
|
textareaState["INVALID"] = "invalid";
|
|
2003
1985
|
})(textareaState || (textareaState = {}));
|
|
2004
1986
|
|
|
2005
|
-
class
|
|
1987
|
+
class TextareaComponent {
|
|
2006
1988
|
constructor(ngControl) {
|
|
2007
1989
|
this.ngControl = ngControl;
|
|
2008
1990
|
this.onChanged = (e) => {
|
|
@@ -2201,10 +2183,10 @@ class CustomTextareaComponent {
|
|
|
2201
2183
|
isonlyview: this.isOnlyView,
|
|
2202
2184
|
};
|
|
2203
2185
|
}
|
|
2204
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2205
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
2186
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2187
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TextareaComponent, 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: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
2206
2188
|
}
|
|
2207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
2208
2190
|
type: Component,
|
|
2209
2191
|
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"] }]
|
|
2210
2192
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
@@ -2237,17 +2219,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2237
2219
|
type: Output
|
|
2238
2220
|
}] } });
|
|
2239
2221
|
|
|
2240
|
-
class
|
|
2241
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2242
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2243
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2222
|
+
class TextareaModule {
|
|
2223
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2224
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TextareaModule, declarations: [TextareaComponent], imports: [CommonModule, SkeletonDirective, IconModule], exports: [TextareaComponent] }); }
|
|
2225
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaModule, providers: [SkeletonDirective], imports: [CommonModule, IconModule] }); }
|
|
2244
2226
|
}
|
|
2245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
2227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaModule, decorators: [{
|
|
2246
2228
|
type: NgModule,
|
|
2247
2229
|
args: [{
|
|
2248
|
-
imports: [CommonModule, SkeletonDirective,
|
|
2249
|
-
exports: [
|
|
2250
|
-
declarations: [
|
|
2230
|
+
imports: [CommonModule, SkeletonDirective, IconModule],
|
|
2231
|
+
exports: [TextareaComponent],
|
|
2232
|
+
declarations: [TextareaComponent],
|
|
2251
2233
|
providers: [SkeletonDirective],
|
|
2252
2234
|
}]
|
|
2253
2235
|
}] });
|
|
@@ -2352,11 +2334,11 @@ class PopoverComponent {
|
|
|
2352
2334
|
}
|
|
2353
2335
|
}
|
|
2354
2336
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopoverComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2355
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PopoverComponent, selector: "gtr-popover", inputs: { position: "position", isOpened: "isOpened", showPositionIndicator: "showPositionIndicator", moveX: "moveX", moveY: "moveY", padding: "padding", marginTop: "marginTop", marginBottom: "marginBottom", marginLeft: "marginLeft", marginRight: "marginRight", closeOnClickOutside: "closeOnClickOutside", id: "id", testId: "testId" }, outputs: { stateChanged: "stateChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "popoverEl", first: true, predicate: ["popoverEl"], descendants: true }, { propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"
|
|
2337
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PopoverComponent, selector: "gtr-popover", inputs: { position: "position", isOpened: "isOpened", showPositionIndicator: "showPositionIndicator", moveX: "moveX", moveY: "moveY", padding: "padding", marginTop: "marginTop", marginBottom: "marginBottom", marginLeft: "marginLeft", marginRight: "marginRight", closeOnClickOutside: "closeOnClickOutside", id: "id", testId: "testId" }, outputs: { stateChanged: "stateChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "popoverEl", first: true, predicate: ["popoverEl"], descendants: true }, { propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px!important;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#ffffff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
2356
2338
|
}
|
|
2357
2339
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
2358
2340
|
type: Component,
|
|
2359
|
-
args: [{ selector: 'gtr-popover', template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"
|
|
2341
|
+
args: [{ selector: 'gtr-popover', template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px!important;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#ffffff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"] }]
|
|
2360
2342
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { position: [{
|
|
2361
2343
|
type: Input
|
|
2362
2344
|
}], isOpened: [{
|
|
@@ -2561,11 +2543,11 @@ class RadioButtonComponent {
|
|
|
2561
2543
|
}
|
|
2562
2544
|
}
|
|
2563
2545
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2564
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RadioButtonComponent, selector: "gtr-radio-button", inputs: { value: "value", disabled: "disabled", checked: "checked", label: "label", tabIndexNav: "tabIndexNav",
|
|
2546
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RadioButtonComponent, selector: "gtr-radio-button", inputs: { value: "value", disabled: "disabled", checked: "checked", label: "label", tabIndexNav: "tabIndexNav", radioId: "radioId", groupName: "groupName" }, outputs: { valueChanged: "valueChanged" }, host: { listeners: { "document:keyup": "handleKeyDown($event)" } }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper\" [id]=\"radioId+'-wrapper'\" [attr.data-testid]=\"radioId+'-wrapper'\" [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\" [name]=\"groupName\" class=\"gtr-form-element-radio\" role=\"radio\" [id]=\"this.radioId\" [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\" value=\"{{value}}\" [checked]=\"this.checked\"\n [disabled]=\"this.disabled\" (change)=\"this.handleChange($event)\" (keydown)=\"detectEnter($event)\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\" [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" />\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\" [attr.data-testid]=\"this.radioId+'-label'\" [class]=\"'gtr-radio-label'+ this.disabled ? ' disabled' : ''\" [for]=\"this.radioId\"\n (click)=\"this.handleClick()\" role=\"radio\" [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{this.label}}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;align-items:center;max-width:-moz-fit-content;max-width:fit-content}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}.gtr-radio-label{margin-left:8px;font-style:normal;font-weight:400;font-size:15px;line-height:22px;position:relative;top:1px}.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }); }
|
|
2565
2547
|
}
|
|
2566
2548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
2567
2549
|
type: Component,
|
|
2568
|
-
args: [{ selector: 'gtr-radio-button', template: "<div class=\"gtr-form-element-wrapper\" [id]=\"radioId+'-wrapper'\" [attr.data-testid]=\"radioId+'-wrapper'\" [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\" [name]=\"groupName\" class=\"gtr-form-element-radio\" role=\"radio\" [id]=\"this.radioId\" [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\" value=\"{{value}}\" [checked]=\"this.checked\"\n [disabled]=\"this.disabled\" (change)=\"this.handleChange($event)\" (keydown)=\"detectEnter($event)\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\" [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" />\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\" [attr.data-testid]=\"this.radioId+'-label'\" [class]=\"'gtr-radio-label'+ this.disabled ? ' disabled' : ''\" [for]=\"this.radioId\"\n (click)=\"this.handleClick()\" role=\"radio\" [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{this.label}}</label>\n </div>\n <ng-content select=\"
|
|
2550
|
+
args: [{ selector: 'gtr-radio-button', template: "<div class=\"gtr-form-element-wrapper\" [id]=\"radioId+'-wrapper'\" [attr.data-testid]=\"radioId+'-wrapper'\" [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\" [name]=\"groupName\" class=\"gtr-form-element-radio\" role=\"radio\" [id]=\"this.radioId\" [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\" value=\"{{value}}\" [checked]=\"this.checked\"\n [disabled]=\"this.disabled\" (change)=\"this.handleChange($event)\" (keydown)=\"detectEnter($event)\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\" [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" />\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\" [attr.data-testid]=\"this.radioId+'-label'\" [class]=\"'gtr-radio-label'+ this.disabled ? ' disabled' : ''\" [for]=\"this.radioId\"\n (click)=\"this.handleClick()\" role=\"radio\" [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{this.label}}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;align-items:center;max-width:-moz-fit-content;max-width:fit-content}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}.gtr-radio-label{margin-left:8px;font-style:normal;font-weight:400;font-size:15px;line-height:22px;position:relative;top:1px}.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }]
|
|
2569
2551
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
2570
2552
|
type: Optional
|
|
2571
2553
|
}, {
|
|
@@ -2580,8 +2562,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2580
2562
|
type: Input
|
|
2581
2563
|
}], tabIndexNav: [{
|
|
2582
2564
|
type: Input
|
|
2583
|
-
}], templateId: [{
|
|
2584
|
-
type: Input
|
|
2585
2565
|
}], valueChanged: [{
|
|
2586
2566
|
type: Output
|
|
2587
2567
|
}], radioId: [{
|
|
@@ -2816,162 +2796,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2816
2796
|
|
|
2817
2797
|
class AccordionModule {
|
|
2818
2798
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2819
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, declarations: [AccordionComponent, AccordionWrapperComponent], imports: [CommonModule,
|
|
2820
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, imports: [CommonModule,
|
|
2799
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, declarations: [AccordionComponent, AccordionWrapperComponent], imports: [CommonModule, IconModule, BadgeModule], exports: [AccordionComponent, AccordionWrapperComponent] }); }
|
|
2800
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, imports: [CommonModule, IconModule, BadgeModule] }); }
|
|
2821
2801
|
}
|
|
2822
2802
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccordionModule, decorators: [{
|
|
2823
2803
|
type: NgModule,
|
|
2824
2804
|
args: [{
|
|
2825
2805
|
declarations: [AccordionComponent, AccordionWrapperComponent],
|
|
2826
2806
|
exports: [AccordionComponent, AccordionWrapperComponent],
|
|
2827
|
-
imports: [CommonModule,
|
|
2828
|
-
}]
|
|
2829
|
-
}] });
|
|
2830
|
-
|
|
2831
|
-
class ButtonDirective {
|
|
2832
|
-
constructor() {
|
|
2833
|
-
/**
|
|
2834
|
-
* Toggle the active state for the component. [docs]
|
|
2835
|
-
* @type boolean
|
|
2836
|
-
*/
|
|
2837
|
-
this.active = false;
|
|
2838
|
-
/**
|
|
2839
|
-
* Sets the color context of the component to one of Gettrx Core’s themed colors. [docs]
|
|
2840
|
-
* @type Colors
|
|
2841
|
-
*/
|
|
2842
|
-
this.color = 'primary';
|
|
2843
|
-
/**
|
|
2844
|
-
* Toggle the disabled state for the component.
|
|
2845
|
-
* @type boolean
|
|
2846
|
-
*/
|
|
2847
|
-
this.disabled = false;
|
|
2848
|
-
/**
|
|
2849
|
-
* Size the component small or large.
|
|
2850
|
-
* @type {'sm' | 'lg'}
|
|
2851
|
-
*/
|
|
2852
|
-
this.size = '';
|
|
2853
|
-
/**
|
|
2854
|
-
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
2855
|
-
* Different browsers may use different default types for the `<button>` element.
|
|
2856
|
-
*/
|
|
2857
|
-
this.type = 'button';
|
|
2858
|
-
}
|
|
2859
|
-
get hostClasses() {
|
|
2860
|
-
return {
|
|
2861
|
-
btn: true,
|
|
2862
|
-
[`btn-${this.color}`]: !!this.color && !this.variant,
|
|
2863
|
-
[`btn-${this.variant}`]: !!this.variant && !this.color,
|
|
2864
|
-
[`btn-${this.variant}-${this.color}`]: !!this.variant && !!this.color,
|
|
2865
|
-
[`btn-${this.size}`]: !!this.size,
|
|
2866
|
-
[`${this.shape}`]: !!this.shape,
|
|
2867
|
-
disabled: this.disabled,
|
|
2868
|
-
active: this.active,
|
|
2869
|
-
};
|
|
2870
|
-
}
|
|
2871
|
-
get ariaDisabled() {
|
|
2872
|
-
return this.disabled || null;
|
|
2873
|
-
}
|
|
2874
|
-
get isActive() {
|
|
2875
|
-
return this.active || null;
|
|
2876
|
-
}
|
|
2877
|
-
get attrDisabled() {
|
|
2878
|
-
return this.disabled ? '' : null;
|
|
2879
|
-
}
|
|
2880
|
-
get tabIndex() {
|
|
2881
|
-
return this.disabled ? '-1' : null;
|
|
2882
|
-
}
|
|
2883
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2884
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: ButtonDirective, isStandalone: true, selector: "[gtrButton]", inputs: { active: ["active", "active", booleanAttribute], color: "color", disabled: ["disabled", "disabled", booleanAttribute], shape: "shape", size: "size", type: "type", variant: "variant" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses", "attr.aria-disabled": "this.ariaDisabled", "attr.aria-pressed": "this.isActive", "attr.disabled": "this.attrDisabled", "attr.tabindex": "this.tabIndex" } }, exportAs: ["gtrButton"], ngImport: i0 }); }
|
|
2885
|
-
}
|
|
2886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
2887
|
-
type: Directive,
|
|
2888
|
-
args: [{
|
|
2889
|
-
selector: '[gtrButton]',
|
|
2890
|
-
exportAs: 'gtrButton',
|
|
2891
|
-
standalone: true,
|
|
2892
|
-
}]
|
|
2893
|
-
}], propDecorators: { active: [{
|
|
2894
|
-
type: Input,
|
|
2895
|
-
args: [{ transform: booleanAttribute }]
|
|
2896
|
-
}], color: [{
|
|
2897
|
-
type: Input
|
|
2898
|
-
}], disabled: [{
|
|
2899
|
-
type: Input,
|
|
2900
|
-
args: [{ transform: booleanAttribute }]
|
|
2901
|
-
}], shape: [{
|
|
2902
|
-
type: Input
|
|
2903
|
-
}], size: [{
|
|
2904
|
-
type: Input
|
|
2905
|
-
}], type: [{
|
|
2906
|
-
type: HostBinding,
|
|
2907
|
-
args: ['attr.type']
|
|
2908
|
-
}, {
|
|
2909
|
-
type: Input
|
|
2910
|
-
}], variant: [{
|
|
2911
|
-
type: Input
|
|
2912
|
-
}], hostClasses: [{
|
|
2913
|
-
type: HostBinding,
|
|
2914
|
-
args: ['class']
|
|
2915
|
-
}], ariaDisabled: [{
|
|
2916
|
-
type: HostBinding,
|
|
2917
|
-
args: ['attr.aria-disabled']
|
|
2918
|
-
}], isActive: [{
|
|
2919
|
-
type: HostBinding,
|
|
2920
|
-
args: ['attr.aria-pressed']
|
|
2921
|
-
}], attrDisabled: [{
|
|
2922
|
-
type: HostBinding,
|
|
2923
|
-
args: ['attr.disabled']
|
|
2924
|
-
}], tabIndex: [{
|
|
2925
|
-
type: HostBinding,
|
|
2926
|
-
args: ['attr.tabindex']
|
|
2927
|
-
}] } });
|
|
2928
|
-
|
|
2929
|
-
class ButtonCloseDirective extends ButtonDirective {
|
|
2930
|
-
constructor() {
|
|
2931
|
-
super(...arguments);
|
|
2932
|
-
/**
|
|
2933
|
-
* Change the default color to white.
|
|
2934
|
-
* @type boolean
|
|
2935
|
-
*/
|
|
2936
|
-
this.white = false;
|
|
2937
|
-
}
|
|
2938
|
-
get hostClasses() {
|
|
2939
|
-
return {
|
|
2940
|
-
btn: true,
|
|
2941
|
-
'btn-close': true,
|
|
2942
|
-
'btn-close-white': this.white,
|
|
2943
|
-
[`btn-${this.size}`]: !!this.size,
|
|
2944
|
-
disabled: this.disabled,
|
|
2945
|
-
active: this.active,
|
|
2946
|
-
};
|
|
2947
|
-
}
|
|
2948
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonCloseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2949
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: ButtonCloseDirective, isStandalone: true, selector: "[gtrButtonClose]", inputs: { white: ["white", "white", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
|
2950
|
-
}
|
|
2951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonCloseDirective, decorators: [{
|
|
2952
|
-
type: Directive,
|
|
2953
|
-
args: [{
|
|
2954
|
-
selector: '[gtrButtonClose]',
|
|
2955
|
-
standalone: true,
|
|
2956
|
-
}]
|
|
2957
|
-
}], propDecorators: { white: [{
|
|
2958
|
-
type: Input,
|
|
2959
|
-
args: [{ transform: booleanAttribute }]
|
|
2960
|
-
}], hostClasses: [{
|
|
2961
|
-
type: HostBinding,
|
|
2962
|
-
args: ['class']
|
|
2963
|
-
}] } });
|
|
2964
|
-
|
|
2965
|
-
class ButtonModule {
|
|
2966
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2967
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, imports: [ButtonDirective, ButtonCloseDirective], exports: [ButtonDirective, ButtonCloseDirective] }); }
|
|
2968
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule }); }
|
|
2969
|
-
}
|
|
2970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, decorators: [{
|
|
2971
|
-
type: NgModule,
|
|
2972
|
-
args: [{
|
|
2973
|
-
imports: [ButtonDirective, ButtonCloseDirective],
|
|
2974
|
-
exports: [ButtonDirective, ButtonCloseDirective],
|
|
2807
|
+
imports: [CommonModule, IconModule, BadgeModule],
|
|
2975
2808
|
}]
|
|
2976
2809
|
}] });
|
|
2977
2810
|
|
|
@@ -3088,11 +2921,11 @@ class CalendarNavigationComponent {
|
|
|
3088
2921
|
this.navigationClick.emit({ direction, years: years });
|
|
3089
2922
|
}
|
|
3090
2923
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalendarNavigationComponent, deps: [{ token: CalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3091
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navShowYear: "navShowYear", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n", styles: [":root{--cui-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"], dependencies: [{ kind: "directive", type: ButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type:
|
|
2924
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navShowYear: "navShowYear", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n", styles: [":root{--cui-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"], dependencies: [{ kind: "directive", type: ButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
3092
2925
|
}
|
|
3093
2926
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalendarNavigationComponent, decorators: [{
|
|
3094
2927
|
type: Component,
|
|
3095
|
-
args: [{ selector: 'gtr-calendar-navigation', standalone: true, imports: [ButtonDirective, NgIf, NgStyle,
|
|
2928
|
+
args: [{ selector: 'gtr-calendar-navigation', standalone: true, imports: [ButtonDirective, NgIf, NgStyle, IconModule, ButtonDirective], template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"navShowYear || view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n\n", styles: [":root{--cui-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"] }]
|
|
3096
2929
|
}], ctorParameters: function () { return [{ type: CalendarService }]; }, propDecorators: { addMonths: [{
|
|
3097
2930
|
type: Input
|
|
3098
2931
|
}], calendarDate: [{
|
|
@@ -4642,19 +4475,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4642
4475
|
|
|
4643
4476
|
class CheckboxModule {
|
|
4644
4477
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4645
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [NgIf, NgFor, FormsModule,
|
|
4646
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, imports: [FormsModule,
|
|
4478
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [NgIf, NgFor, FormsModule, IconModule], exports: [CheckboxComponent] }); }
|
|
4479
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, imports: [FormsModule, IconModule] }); }
|
|
4647
4480
|
}
|
|
4648
4481
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
4649
4482
|
type: NgModule,
|
|
4650
4483
|
args: [{
|
|
4651
4484
|
declarations: [CheckboxComponent],
|
|
4652
|
-
imports: [NgIf, NgFor, FormsModule,
|
|
4485
|
+
imports: [NgIf, NgFor, FormsModule, IconModule],
|
|
4653
4486
|
exports: [CheckboxComponent],
|
|
4654
4487
|
}]
|
|
4655
4488
|
}] });
|
|
4656
4489
|
|
|
4657
|
-
class
|
|
4490
|
+
class ModalComponent {
|
|
4658
4491
|
/**
|
|
4659
4492
|
* The listen decorator used to close modal via keyboard
|
|
4660
4493
|
*/
|
|
@@ -4764,12 +4597,12 @@ class CustomGtrModalComponent {
|
|
|
4764
4597
|
bodyElement.style.overflow = 'auto';
|
|
4765
4598
|
this.closeModal.emit();
|
|
4766
4599
|
}
|
|
4767
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4768
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
4600
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4601
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ModalComponent, selector: "gtr-modal", inputs: { isOpen: "isOpen", modalPosition: "modalPosition", modalId: "modalId", modalSize: "modalSize", scrollType: "scrollType", header: "header", hasHeading: "hasHeading" }, outputs: { closeModal: "closeModal" }, host: { listeners: { "keydown": "handleKeyDown($event)" } }, viewQueries: [{ propertyName: "modalElement", first: true, predicate: ["modalElement"], descendants: true }], ngImport: i0, template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-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)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
4769
4602
|
}
|
|
4770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
4771
4604
|
type: Component,
|
|
4772
|
-
args: [{ selector: 'gtr-modal', template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[modal-body]\"
|
|
4605
|
+
args: [{ selector: 'gtr-modal', template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-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)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"] }]
|
|
4773
4606
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
4774
4607
|
type: Optional
|
|
4775
4608
|
}, {
|
|
@@ -4798,17 +4631,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4798
4631
|
type: Output
|
|
4799
4632
|
}] } });
|
|
4800
4633
|
|
|
4801
|
-
class
|
|
4802
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4803
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4804
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4634
|
+
class ModalModule {
|
|
4635
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4636
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ModalModule, declarations: [ModalComponent], imports: [CommonModule], exports: [ModalComponent] }); }
|
|
4637
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalModule, imports: [CommonModule] }); }
|
|
4805
4638
|
}
|
|
4806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
4639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalModule, decorators: [{
|
|
4807
4640
|
type: NgModule,
|
|
4808
4641
|
args: [{
|
|
4809
4642
|
imports: [CommonModule],
|
|
4810
|
-
exports: [
|
|
4811
|
-
declarations: [
|
|
4643
|
+
exports: [ModalComponent],
|
|
4644
|
+
declarations: [ModalComponent],
|
|
4812
4645
|
}]
|
|
4813
4646
|
}] });
|
|
4814
4647
|
|
|
@@ -7548,8 +7381,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
7548
7381
|
class DateRangePickerComponent {
|
|
7549
7382
|
constructor(breakpointObserver) {
|
|
7550
7383
|
this.breakpointObserver = breakpointObserver;
|
|
7551
|
-
this.id = '
|
|
7552
|
-
this.testid = '
|
|
7384
|
+
this.id = '';
|
|
7385
|
+
this.testid = '';
|
|
7553
7386
|
/**
|
|
7554
7387
|
* Set the format of day name.
|
|
7555
7388
|
* @default 'numeric'
|
|
@@ -8269,11 +8102,12 @@ class DateRangePickerModule {
|
|
|
8269
8102
|
InputGroupComponent,
|
|
8270
8103
|
FormControlDirective,
|
|
8271
8104
|
InputGroupTextDirective,
|
|
8272
|
-
|
|
8105
|
+
IconModule,
|
|
8106
|
+
ButtonDirective], exports: [DateRangePickerComponent] }); }
|
|
8273
8107
|
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePickerModule, imports: [ReactiveFormsModule,
|
|
8274
8108
|
CalendarComponent,
|
|
8275
8109
|
TimePickerComponent,
|
|
8276
|
-
|
|
8110
|
+
IconModule] }); }
|
|
8277
8111
|
}
|
|
8278
8112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePickerModule, decorators: [{
|
|
8279
8113
|
type: NgModule,
|
|
@@ -8294,7 +8128,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8294
8128
|
InputGroupComponent,
|
|
8295
8129
|
FormControlDirective,
|
|
8296
8130
|
InputGroupTextDirective,
|
|
8297
|
-
|
|
8131
|
+
IconModule,
|
|
8132
|
+
ButtonDirective,
|
|
8298
8133
|
],
|
|
8299
8134
|
exports: [DateRangePickerComponent],
|
|
8300
8135
|
}]
|
|
@@ -8382,11 +8217,11 @@ class DatePickerModule {
|
|
|
8382
8217
|
InputGroupComponent,
|
|
8383
8218
|
FormControlDirective,
|
|
8384
8219
|
InputGroupTextDirective,
|
|
8385
|
-
|
|
8220
|
+
IconModule], exports: [DatePickerComponent] }); }
|
|
8386
8221
|
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerModule, imports: [ReactiveFormsModule,
|
|
8387
8222
|
CalendarComponent,
|
|
8388
8223
|
TimePickerComponent,
|
|
8389
|
-
|
|
8224
|
+
IconModule] }); }
|
|
8390
8225
|
}
|
|
8391
8226
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerModule, decorators: [{
|
|
8392
8227
|
type: NgModule,
|
|
@@ -8407,7 +8242,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8407
8242
|
InputGroupComponent,
|
|
8408
8243
|
FormControlDirective,
|
|
8409
8244
|
InputGroupTextDirective,
|
|
8410
|
-
|
|
8245
|
+
IconModule,
|
|
8411
8246
|
],
|
|
8412
8247
|
exports: [DatePickerComponent],
|
|
8413
8248
|
}]
|
|
@@ -8530,7 +8365,7 @@ class FileInputComponent {
|
|
|
8530
8365
|
return fileName ? (fileName.length > 30 ? `${fileName.slice(0, 30)}...` : fileName) : '';
|
|
8531
8366
|
}
|
|
8532
8367
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8533
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileInputComponent, selector: "gtr-file-input", inputs: { accept: "accept", heading: "heading", description: "description", ariaLabel: "ariaLabel", identifier: "identifier" }, outputs: { gtrFileSelected: "gtrFileSelected", gtrFileError: "gtrFileError" }, viewQueries: [{ propertyName: "fileInputElement", first: true, predicate: ["fileInputElement"], descendants: true }], ngImport: i0, template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"], dependencies: [{ kind: "component", type:
|
|
8368
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileInputComponent, selector: "gtr-file-input", inputs: { accept: "accept", heading: "heading", description: "description", ariaLabel: "ariaLabel", identifier: "identifier" }, outputs: { gtrFileSelected: "gtrFileSelected", gtrFileError: "gtrFileError" }, viewQueries: [{ propertyName: "fileInputElement", first: true, predicate: ["fileInputElement"], descendants: true }], ngImport: i0, template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "color", "isLoading", "variant", "disabled"] }] }); }
|
|
8534
8369
|
}
|
|
8535
8370
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputComponent, decorators: [{
|
|
8536
8371
|
type: Component,
|
|
@@ -8556,14 +8391,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8556
8391
|
|
|
8557
8392
|
class FileInputModule {
|
|
8558
8393
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8559
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, declarations: [FileInputComponent], imports: [
|
|
8560
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, imports: [
|
|
8394
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, declarations: [FileInputComponent], imports: [ButtonModule], exports: [FileInputComponent] }); }
|
|
8395
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, imports: [ButtonModule] }); }
|
|
8561
8396
|
}
|
|
8562
8397
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileInputModule, decorators: [{
|
|
8563
8398
|
type: NgModule,
|
|
8564
8399
|
args: [{
|
|
8565
8400
|
declarations: [FileInputComponent],
|
|
8566
|
-
imports: [
|
|
8401
|
+
imports: [ButtonModule],
|
|
8567
8402
|
exports: [FileInputComponent],
|
|
8568
8403
|
}]
|
|
8569
8404
|
}] });
|
|
@@ -8976,7 +8811,7 @@ class SelectComponent {
|
|
|
8976
8811
|
this.adjustPosition = () => {
|
|
8977
8812
|
const rect = this._el?.nativeElement.getBoundingClientRect();
|
|
8978
8813
|
const viewHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
8979
|
-
const selectBox = this._el?.nativeElement?.querySelector('.gtr-
|
|
8814
|
+
const selectBox = this._el?.nativeElement?.querySelector('.gtr-select');
|
|
8980
8815
|
if (selectBox) {
|
|
8981
8816
|
if (rect.top > viewHeight - rect.bottom) {
|
|
8982
8817
|
selectBox.classList.remove('open-bottom');
|
|
@@ -9264,7 +9099,7 @@ class SelectComponent {
|
|
|
9264
9099
|
useExisting: forwardRef((() => SelectComponent)),
|
|
9265
9100
|
multi: true,
|
|
9266
9101
|
},
|
|
9267
|
-
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-custom-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-custom-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 | formatSelectedValue\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 | formatSelectedValue\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-custom-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 | limitText : 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 | limitText : 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) | limitText : 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) | limitText : 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-custom-select-wrapper *,.gtr-custom-select-wrapper :after,.gtr-custom-select-wrapper :before{box-sizing:border-box}.gtr-custom-select-wrapper{display:block;width:100%}.gtr-custom-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-custom-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-custom-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-custom-select-wrapper.gtr-only-view .gtr-custom-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-custom-select-wrapper.gtr-only-view .gtr-custom-select .gtr-select-box .gtr-placeholder{display:none}.gtr-custom-select-wrapper.gtr-only-view .gtr-custom-select .gtr-select-box gtr-icon{display:none}.gtr-custom-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-custom-select ::-webkit-scrollbar{width:6px}.gtr-custom-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-custom-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-custom-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-custom-select:active .gtr-select-box,.gtr-custom-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-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-custom-select .gtr-select-box:focus,.gtr-custom-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select .gtr-select-box.multi{padding-left:6px}.gtr-custom-select .gtr-select-box.multi.float{padding-left:15px}.gtr-custom-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-custom-select.open-up .gtr-options-wrapper{top:100%}.gtr-custom-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-custom-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-custom-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-custom-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-custom-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-custom-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-custom-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-custom-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-custom-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-custom-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-custom-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-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select.disabled,.gtr-custom-select.readonly{pointer-events:none;cursor:default}.gtr-custom-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-custom-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-custom-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-custom-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-custom-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-custom-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-custom-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-custom-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: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: FormatSelectedValuePipe, name: "formatSelectedValue" }, { kind: "pipe", type: TrimTextPipe, name: "limitText" }] }); }
|
|
9102
|
+
], 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 | formatSelectedValue\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 | formatSelectedValue\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 | limitText : 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 | limitText : 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) | limitText : 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) | limitText : 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: IconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: SkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: FormatSelectedValuePipe, name: "formatSelectedValue" }, { kind: "pipe", type: TrimTextPipe, name: "limitText" }] }); }
|
|
9268
9103
|
}
|
|
9269
9104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectComponent, decorators: [{
|
|
9270
9105
|
type: Component,
|
|
@@ -9274,7 +9109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9274
9109
|
useExisting: forwardRef((() => SelectComponent)),
|
|
9275
9110
|
multi: true,
|
|
9276
9111
|
},
|
|
9277
|
-
], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-custom-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-custom-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 | formatSelectedValue\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 | formatSelectedValue\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-custom-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 | limitText : 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 | limitText : 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) | limitText : 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) | limitText : 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-custom-select-wrapper *,.gtr-custom-select-wrapper :after,.gtr-custom-select-wrapper :before{box-sizing:border-box}.gtr-custom-select-wrapper{display:block;width:100%}.gtr-custom-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-custom-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-custom-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-custom-select-wrapper.gtr-only-view .gtr-custom-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-custom-select-wrapper.gtr-only-view .gtr-custom-select .gtr-select-box .gtr-placeholder{display:none}.gtr-custom-select-wrapper.gtr-only-view .gtr-custom-select .gtr-select-box gtr-icon{display:none}.gtr-custom-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-custom-select ::-webkit-scrollbar{width:6px}.gtr-custom-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-custom-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-custom-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-custom-select:active .gtr-select-box,.gtr-custom-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-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-custom-select .gtr-select-box:focus,.gtr-custom-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select .gtr-select-box.multi{padding-left:6px}.gtr-custom-select .gtr-select-box.multi.float{padding-left:15px}.gtr-custom-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-custom-select.open-up .gtr-options-wrapper{top:100%}.gtr-custom-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-custom-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-custom-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-custom-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-custom-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-custom-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-custom-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-custom-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-custom-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-custom-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-custom-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-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-custom-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-custom-select.disabled,.gtr-custom-select.readonly{pointer-events:none;cursor:default}.gtr-custom-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-custom-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-custom-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-custom-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-custom-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-custom-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-custom-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-custom-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"] }]
|
|
9112
|
+
], 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 | formatSelectedValue\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 | formatSelectedValue\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 | limitText : 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 | limitText : 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) | limitText : 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) | limitText : 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"] }]
|
|
9278
9113
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inputLabel: [{
|
|
9279
9114
|
type: Input
|
|
9280
9115
|
}], placeholder: [{
|
|
@@ -9504,9 +9339,9 @@ class SelectModule {
|
|
|
9504
9339
|
NgTemplateOutlet,
|
|
9505
9340
|
FormatSelectedValuePipe,
|
|
9506
9341
|
TrimTextPipe,
|
|
9507
|
-
|
|
9342
|
+
IconModule,
|
|
9508
9343
|
SkeletonDirective], exports: [SelectComponent] }); }
|
|
9509
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectModule, imports: [
|
|
9344
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectModule, imports: [IconModule] }); }
|
|
9510
9345
|
}
|
|
9511
9346
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectModule, decorators: [{
|
|
9512
9347
|
type: NgModule,
|
|
@@ -9519,7 +9354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9519
9354
|
NgTemplateOutlet,
|
|
9520
9355
|
FormatSelectedValuePipe,
|
|
9521
9356
|
TrimTextPipe,
|
|
9522
|
-
|
|
9357
|
+
IconModule,
|
|
9523
9358
|
SkeletonDirective,
|
|
9524
9359
|
],
|
|
9525
9360
|
exports: [SelectComponent],
|
|
@@ -9528,14 +9363,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9528
9363
|
|
|
9529
9364
|
class PaginationModule {
|
|
9530
9365
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9531
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [NgIf, NgFor, NgClass, NgTemplateOutlet, SelectModule,
|
|
9532
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, imports: [SelectModule,
|
|
9366
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [NgIf, NgFor, NgClass, NgTemplateOutlet, SelectModule, IconModule, ValidatePagePipe], exports: [PaginationComponent] }); }
|
|
9367
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, imports: [SelectModule, IconModule] }); }
|
|
9533
9368
|
}
|
|
9534
9369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationModule, decorators: [{
|
|
9535
9370
|
type: NgModule,
|
|
9536
9371
|
args: [{
|
|
9537
9372
|
declarations: [PaginationComponent],
|
|
9538
|
-
imports: [NgIf, NgFor, NgClass, NgTemplateOutlet, SelectModule,
|
|
9373
|
+
imports: [NgIf, NgFor, NgClass, NgTemplateOutlet, SelectModule, IconModule, ValidatePagePipe],
|
|
9539
9374
|
exports: [PaginationComponent],
|
|
9540
9375
|
}]
|
|
9541
9376
|
}] });
|
|
@@ -9672,15 +9507,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9672
9507
|
|
|
9673
9508
|
class StatCardModule {
|
|
9674
9509
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9675
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, declarations: [StatCardComponent], imports: [CommonModule, FormsModule, SkeletonDirective,
|
|
9676
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, imports: [CommonModule, FormsModule,
|
|
9510
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, declarations: [StatCardComponent], imports: [CommonModule, FormsModule, SkeletonDirective, IconModule], exports: [StatCardComponent] }); }
|
|
9511
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, providers: [SkeletonDirective], imports: [CommonModule, FormsModule, IconModule] }); }
|
|
9677
9512
|
}
|
|
9678
9513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatCardModule, decorators: [{
|
|
9679
9514
|
type: NgModule,
|
|
9680
9515
|
args: [{
|
|
9681
9516
|
declarations: [StatCardComponent],
|
|
9682
9517
|
exports: [StatCardComponent],
|
|
9683
|
-
|
|
9518
|
+
providers: [SkeletonDirective],
|
|
9519
|
+
imports: [CommonModule, FormsModule, SkeletonDirective, IconModule],
|
|
9684
9520
|
}]
|
|
9685
9521
|
}] });
|
|
9686
9522
|
|
|
@@ -9692,5 +9528,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9692
9528
|
* Generated bundle index. Do not edit.
|
|
9693
9529
|
*/
|
|
9694
9530
|
|
|
9695
|
-
export { AccordionComponent, AccordionModule, AccordionWrapperComponent, BadgeComponent, BadgeModule, BreakpointInfix, ButtonCloseDirective
|
|
9531
|
+
export { AccordionComponent, AccordionModule, AccordionWrapperComponent, BadgeComponent, BadgeModule, BreakpointInfix, ButtonCloseDirective, ButtonComponent, ButtonDirective, ButtonDirectiveModule, ButtonModule, CalendarComponent, CalendarModule, CalendarMonthComponent, CalendarNavigationComponent, CheckboxComponent, CheckboxModule, ComponentName, DatePickerComponent, DatePickerModule, DateRangePickerComponent, DateRangePickerModule, DropdownCloseDirective, DropdownComponent, DropdownDividerDirective, DropdownHeaderDirective, DropdownItemDirective, DropdownItemPlainDirective, DropdownMenuDirective, DropdownModule, DropdownService, DropdownToggleDirective, FileInputComponent, FileInputModule, FormCheckComponent, FormCheckInputDirective, FormCheckLabelDirective, FormControlDirective, FormDirective, FormFeedbackComponent, FormFloatingDirective, FormLabelDirective, FormModule, FormSelectDirective, FormTextDirective, FormatSelectedValuePipe, 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, GtrSelectListLoaderVariation, HtmlAttributesDirective, IconComponent, IconModule, InputComponent, InputGroupComponent, InputGroupTextDirective, InputModule, ModalComponent, ModalModule, NumericCounterComponent, NumericCounterModule, PaginationComponent, PaginationModule, PopoverComponent, PopoverModule, RadioButtonComponent, RadioButtonhModule, SelectComponent, SelectModule, SharedModule, SkeletonComponent, SkeletonDirective, SkeletonModule, StatCardComponent, StatCardModule, SwitchComponent, SwitchModule, TemplateIdDirective, TextValueAccessor, TextareaComponent, TextareaModule, TimePickerComponent, TimePickerModule, TooltipComponent, TooltipModule, TrimTextPipe, ValidatePagePipe, ValueAccessor };
|
|
9696
9532
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|