@gettrx/core-components-angular 1.0.6 → 1.0.8
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/gtr-badge.component.mjs +3 -3
- package/esm2022/lib/atoms/input/gtr-input.component.mjs +3 -3
- package/esm2022/lib/atoms/textarea/gtr-textarea.component.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar/gtr-calendar.component.mjs +10 -6
- package/esm2022/lib/molecules/calendar/gtr-calendar.utils.mjs +4 -4
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +5 -4
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +11 -5
- package/esm2022/lib/molecules/date-range-picker/gtr-date-range-picker.module.mjs +2 -4
- package/esm2022/lib/molecules/form/input-group/gtr-input-group.component.mjs +6 -2
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.mjs +3 -3
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +3 -3
- package/esm2022/lib/molecules/stat-card/gtr-stat-card.component.mjs +8 -5
- package/esm2022/lib/molecules/table/gtr-create-component.pipe.mjs +88 -0
- package/esm2022/lib/molecules/table/gtr-fetch-attribute.pipe.mjs +21 -0
- package/esm2022/lib/molecules/table/gtr-table.component.mjs +138 -0
- package/esm2022/lib/molecules/table/gtr-table.interface.mjs +8 -0
- package/esm2022/lib/molecules/table/gtr-table.module.mjs +20 -0
- package/esm2022/lib/molecules/table/index.mjs +2 -0
- package/esm2022/lib/molecules/table/public_api.mjs +5 -0
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +148 -0
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +185 -0
- package/esm2022/lib/molecules/time-picker/gtr-time-picker.component.mjs +2 -2
- package/esm2022/public-api.mjs +2 -6
- package/fesm2022/gettrx-core-components-angular.mjs +603 -902
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/badge/gtr-badge.component.d.ts +1 -0
- package/lib/atoms/input/gtr-input.component.d.ts +1 -1
- package/lib/atoms/textarea/gtr-textarea.component.d.ts +1 -1
- package/lib/molecules/calendar/calendar/gtr-calendar.component.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +8 -1
- package/lib/molecules/date-range-picker/gtr-date-range-picker.module.d.ts +1 -1
- package/lib/molecules/form/input-group/gtr-input-group.component.d.ts +2 -1
- package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts +1 -1
- package/lib/molecules/stat-card/gtr-stat-card.component.d.ts +1 -0
- package/lib/molecules/table/gtr-create-component.pipe.d.ts +17 -0
- package/lib/molecules/table/gtr-fetch-attribute.pipe.d.ts +9 -0
- package/lib/molecules/table/gtr-table.component.d.ts +83 -0
- package/lib/molecules/table/gtr-table.interface.d.ts +78 -0
- package/lib/molecules/table/gtr-table.module.d.ts +9 -0
- package/lib/molecules/table/index.d.ts +1 -0
- package/lib/molecules/table/public_api.d.ts +5 -0
- package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +53 -0
- package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +75 -0
- package/package.json +2 -3
- package/public-api.d.ts +1 -4
- package/esm2022/generated/angular-component-lib/utils.mjs +0 -51
- package/esm2022/generated/components.mjs +0 -729
- package/esm2022/generated/proxies-list.mjs +0 -30
- package/esm2022/generated/text-value-accessor.mjs +0 -36
- package/esm2022/generated/value-accessor.mjs +0 -40
- package/esm2022/gettrx-module.mjs +0 -26
- package/generated/angular-component-lib/utils.d.ts +0 -9
- package/generated/components.d.ts +0 -378
- package/generated/proxies-list.d.ts +0 -2
- package/generated/text-value-accessor.d.ts +0 -8
- package/generated/value-accessor.d.ts +0 -18
- package/gettrx-module.d.ts +0 -10
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component,
|
|
4
|
-
import { fromEvent, Subject, Subscription, BehaviorSubject, throwError } from 'rxjs';
|
|
5
|
-
import { defineCustomElement as defineCustomElement$1 } from '@gettrx/core-components/components/gtr2-accordion.js';
|
|
6
|
-
import { defineCustomElement as defineCustomElement$2 } from '@gettrx/core-components/components/gtr2-accordion-wrapper.js';
|
|
7
|
-
import { defineCustomElement as defineCustomElement$3 } from '@gettrx/core-components/components/gtr2-badge.js';
|
|
8
|
-
import { defineCustomElement as defineCustomElement$4 } from '@gettrx/core-components/components/gtr2-button.js';
|
|
9
|
-
import { defineCustomElement as defineCustomElement$5 } from '@gettrx/core-components/components/gtr2-checkbox.js';
|
|
10
|
-
import { defineCustomElement as defineCustomElement$6 } from '@gettrx/core-components/components/gtr2-date-picker.js';
|
|
11
|
-
import { defineCustomElement as defineCustomElement$7 } from '@gettrx/core-components/components/gtr2-file-input.js';
|
|
12
|
-
import { defineCustomElement as defineCustomElement$8 } from '@gettrx/core-components/components/gtr2-group-dropdown.js';
|
|
13
|
-
import { defineCustomElement as defineCustomElement$9 } from '@gettrx/core-components/components/gtr2-icon.js';
|
|
14
|
-
import { defineCustomElement as defineCustomElement$a } from '@gettrx/core-components/components/gtr2-input.js';
|
|
15
|
-
import { defineCustomElement as defineCustomElement$b } from '@gettrx/core-components/components/gtr2-modal.js';
|
|
16
|
-
import { defineCustomElement as defineCustomElement$c } from '@gettrx/core-components/components/gtr2-numeric-counter.js';
|
|
17
|
-
import { defineCustomElement as defineCustomElement$d } from '@gettrx/core-components/components/gtr2-pagination.js';
|
|
18
|
-
import { defineCustomElement as defineCustomElement$e } from '@gettrx/core-components/components/gtr2-popover.js';
|
|
19
|
-
import { defineCustomElement as defineCustomElement$f } from '@gettrx/core-components/components/gtr2-popover-wrapper.js';
|
|
20
|
-
import { defineCustomElement as defineCustomElement$g } from '@gettrx/core-components/components/gtr2-radio-button.js';
|
|
21
|
-
import { defineCustomElement as defineCustomElement$h } from '@gettrx/core-components/components/gtr2-radio-button-group.js';
|
|
22
|
-
import { defineCustomElement as defineCustomElement$i } from '@gettrx/core-components/components/gtr2-select.js';
|
|
23
|
-
import { defineCustomElement as defineCustomElement$j } from '@gettrx/core-components/components/gtr2-stats-card.js';
|
|
24
|
-
import { defineCustomElement as defineCustomElement$k } from '@gettrx/core-components/components/gtr2-switch.js';
|
|
25
|
-
import { defineCustomElement as defineCustomElement$l } from '@gettrx/core-components/components/gtr2-tab.js';
|
|
26
|
-
import { defineCustomElement as defineCustomElement$m } from '@gettrx/core-components/components/gtr2-tab-group.js';
|
|
27
|
-
import { defineCustomElement as defineCustomElement$n } from '@gettrx/core-components/components/gtr2-table-container.js';
|
|
28
|
-
import { defineCustomElement as defineCustomElement$o } from '@gettrx/core-components/components/gtr2-textarea.js';
|
|
29
|
-
import { defineCustomElement as defineCustomElement$p } from '@gettrx/core-components/components/gtr2-toaster.js';
|
|
30
|
-
import { defineCustomElement as defineCustomElement$q } from '@gettrx/core-components/components/gtr2-tooltip.js';
|
|
31
|
-
import * as i1$1 from '@angular/forms';
|
|
32
|
-
import { NG_VALUE_ACCESSOR, FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
2
|
+
import { Component, Input, HostBinding, booleanAttribute, NgModule, Directive, EventEmitter, Optional, Self, Output, ViewChild, HostListener, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, Inject, ContentChild, ViewContainerRef, ViewEncapsulation, QueryList } from '@angular/core';
|
|
33
3
|
import * as i1 from '@angular/common';
|
|
34
4
|
import { CommonModule, NgIf, NgStyle, NgClass, NgForOf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgFor, DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
35
|
-
import
|
|
5
|
+
import * as i1$1 from '@angular/forms';
|
|
6
|
+
import { FormsModule, NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import { Subject, Subscription, BehaviorSubject, throwError, takeUntil } from 'rxjs';
|
|
36
8
|
import { isValid, format } from 'date-fns';
|
|
37
9
|
import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
38
10
|
import * as i1$2 from '@angular/cdk/layout';
|
|
@@ -40,844 +12,6 @@ import { Breakpoints } from '@angular/cdk/layout';
|
|
|
40
12
|
import { filter } from 'rxjs/operators';
|
|
41
13
|
import { createPopper } from '@popperjs/core';
|
|
42
14
|
|
|
43
|
-
/* eslint-disable */
|
|
44
|
-
/* tslint:disable */
|
|
45
|
-
const proxyInputs = (Cmp, inputs) => {
|
|
46
|
-
const Prototype = Cmp.prototype;
|
|
47
|
-
inputs.forEach((item) => {
|
|
48
|
-
Object.defineProperty(Prototype, item, {
|
|
49
|
-
get() {
|
|
50
|
-
return this.el[item];
|
|
51
|
-
},
|
|
52
|
-
set(val) {
|
|
53
|
-
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
const proxyMethods = (Cmp, methods) => {
|
|
59
|
-
const Prototype = Cmp.prototype;
|
|
60
|
-
methods.forEach((methodName) => {
|
|
61
|
-
Prototype[methodName] = function () {
|
|
62
|
-
const args = arguments;
|
|
63
|
-
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
64
|
-
};
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const proxyOutputs = (instance, el, events) => {
|
|
68
|
-
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
69
|
-
};
|
|
70
|
-
const defineCustomElement = (tagName, customElement) => {
|
|
71
|
-
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
72
|
-
customElements.define(tagName, customElement);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
// tslint:disable-next-line: only-arrow-functions
|
|
76
|
-
function ProxyCmp(opts) {
|
|
77
|
-
const decorator = function (cls) {
|
|
78
|
-
const { defineCustomElementFn, inputs, methods } = opts;
|
|
79
|
-
if (defineCustomElementFn !== undefined) {
|
|
80
|
-
defineCustomElementFn();
|
|
81
|
-
}
|
|
82
|
-
if (inputs) {
|
|
83
|
-
proxyInputs(cls, inputs);
|
|
84
|
-
}
|
|
85
|
-
if (methods) {
|
|
86
|
-
proxyMethods(cls, methods);
|
|
87
|
-
}
|
|
88
|
-
return cls;
|
|
89
|
-
};
|
|
90
|
-
return decorator;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
let Gtr2Accordion = class Gtr2Accordion {
|
|
94
|
-
constructor(c, r, z) {
|
|
95
|
-
this.z = z;
|
|
96
|
-
c.detach();
|
|
97
|
-
this.el = r.nativeElement;
|
|
98
|
-
proxyOutputs(this, this.el, ['accordionState', 'handleError']);
|
|
99
|
-
}
|
|
100
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Accordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
101
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Accordion, selector: "gtr2-accordion", inputs: { arrowIcon: "arrowIcon", header: "header", iconColor: "iconColor", iconSize: "iconSize", iconWeight: "iconWeight", justifyContent: "justifyContent", opened: "opened", prefixIcon: "prefixIcon", slotName: "slotName", status: "status" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
102
|
-
};
|
|
103
|
-
Gtr2Accordion = __decorate([
|
|
104
|
-
ProxyCmp({
|
|
105
|
-
defineCustomElementFn: defineCustomElement$1,
|
|
106
|
-
inputs: ['arrowIcon', 'header', 'iconColor', 'iconSize', 'iconWeight', 'justifyContent', 'opened', 'prefixIcon', 'slotName', 'status']
|
|
107
|
-
})
|
|
108
|
-
], Gtr2Accordion);
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Accordion, decorators: [{
|
|
110
|
-
type: Component,
|
|
111
|
-
args: [{
|
|
112
|
-
selector: 'gtr2-accordion',
|
|
113
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
114
|
-
template: '<ng-content></ng-content>',
|
|
115
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
116
|
-
inputs: ['arrowIcon', 'header', 'iconColor', 'iconSize', 'iconWeight', 'justifyContent', 'opened', 'prefixIcon', 'slotName', 'status'],
|
|
117
|
-
}]
|
|
118
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
119
|
-
let Gtr2AccordionWrapper = class Gtr2AccordionWrapper {
|
|
120
|
-
constructor(c, r, z) {
|
|
121
|
-
this.z = z;
|
|
122
|
-
c.detach();
|
|
123
|
-
this.el = r.nativeElement;
|
|
124
|
-
proxyOutputs(this, this.el, ['accordionStateChanged']);
|
|
125
|
-
}
|
|
126
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2AccordionWrapper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
127
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2AccordionWrapper, selector: "gtr2-accordion-wrapper", inputs: { allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
128
|
-
};
|
|
129
|
-
Gtr2AccordionWrapper = __decorate([
|
|
130
|
-
ProxyCmp({
|
|
131
|
-
defineCustomElementFn: defineCustomElement$2,
|
|
132
|
-
inputs: ['allowMultiple', 'expandAll', 'showArrowIcon']
|
|
133
|
-
})
|
|
134
|
-
], Gtr2AccordionWrapper);
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2AccordionWrapper, decorators: [{
|
|
136
|
-
type: Component,
|
|
137
|
-
args: [{
|
|
138
|
-
selector: 'gtr2-accordion-wrapper',
|
|
139
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
-
template: '<ng-content></ng-content>',
|
|
141
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
142
|
-
inputs: ['allowMultiple', 'expandAll', 'showArrowIcon'],
|
|
143
|
-
}]
|
|
144
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
145
|
-
let Gtr2Badge = class Gtr2Badge {
|
|
146
|
-
constructor(c, r, z) {
|
|
147
|
-
this.z = z;
|
|
148
|
-
c.detach();
|
|
149
|
-
this.el = r.nativeElement;
|
|
150
|
-
}
|
|
151
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Badge, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
152
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Badge, selector: "gtr2-badge", inputs: { ariaLabel: "ariaLabel", backgroundColor: "backgroundColor", color: "color", hidden: "hidden", position: "position", positionProperty: "positionProperty", shape: "shape", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
153
|
-
};
|
|
154
|
-
Gtr2Badge = __decorate([
|
|
155
|
-
ProxyCmp({
|
|
156
|
-
defineCustomElementFn: defineCustomElement$3,
|
|
157
|
-
inputs: ['ariaLabel', 'backgroundColor', 'color', 'hidden', 'position', 'positionProperty', 'shape', 'type']
|
|
158
|
-
})
|
|
159
|
-
], Gtr2Badge);
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Badge, decorators: [{
|
|
161
|
-
type: Component,
|
|
162
|
-
args: [{
|
|
163
|
-
selector: 'gtr2-badge',
|
|
164
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
165
|
-
template: '<ng-content></ng-content>',
|
|
166
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
167
|
-
inputs: ['ariaLabel', 'backgroundColor', 'color', 'hidden', 'position', 'positionProperty', 'shape', 'type'],
|
|
168
|
-
}]
|
|
169
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
170
|
-
let Gtr2Button = class Gtr2Button {
|
|
171
|
-
constructor(c, r, z) {
|
|
172
|
-
this.z = z;
|
|
173
|
-
c.detach();
|
|
174
|
-
this.el = r.nativeElement;
|
|
175
|
-
}
|
|
176
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Button, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Button, selector: "gtr2-button", inputs: { color: "color", disabled: "disabled", isLoading: "isLoading", type: "type", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
178
|
-
};
|
|
179
|
-
Gtr2Button = __decorate([
|
|
180
|
-
ProxyCmp({
|
|
181
|
-
defineCustomElementFn: defineCustomElement$4,
|
|
182
|
-
inputs: ['color', 'disabled', 'isLoading', 'type', 'variant']
|
|
183
|
-
})
|
|
184
|
-
], Gtr2Button);
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Button, decorators: [{
|
|
186
|
-
type: Component,
|
|
187
|
-
args: [{
|
|
188
|
-
selector: 'gtr2-button',
|
|
189
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
190
|
-
template: '<ng-content></ng-content>',
|
|
191
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
192
|
-
inputs: ['color', 'disabled', 'isLoading', 'type', 'variant'],
|
|
193
|
-
}]
|
|
194
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
195
|
-
let Gtr2Checkbox = class Gtr2Checkbox {
|
|
196
|
-
constructor(c, r, z) {
|
|
197
|
-
this.z = z;
|
|
198
|
-
c.detach();
|
|
199
|
-
this.el = r.nativeElement;
|
|
200
|
-
proxyOutputs(this, this.el, ['selectionChanged']);
|
|
201
|
-
}
|
|
202
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Checkbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
203
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Checkbox, selector: "gtr2-checkbox", inputs: { checked: "checked", disabled: "disabled", label: "label", readonly: "readonly", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
204
|
-
};
|
|
205
|
-
Gtr2Checkbox = __decorate([
|
|
206
|
-
ProxyCmp({
|
|
207
|
-
defineCustomElementFn: defineCustomElement$5,
|
|
208
|
-
inputs: ['checked', 'disabled', 'label', 'readonly', 'value']
|
|
209
|
-
})
|
|
210
|
-
], Gtr2Checkbox);
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Checkbox, decorators: [{
|
|
212
|
-
type: Component,
|
|
213
|
-
args: [{
|
|
214
|
-
selector: 'gtr2-checkbox',
|
|
215
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
216
|
-
template: '<ng-content></ng-content>',
|
|
217
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
218
|
-
inputs: ['checked', 'disabled', 'label', 'readonly', 'value'],
|
|
219
|
-
}]
|
|
220
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
221
|
-
let Gtr2DatePicker = class Gtr2DatePicker {
|
|
222
|
-
constructor(c, r, z) {
|
|
223
|
-
this.z = z;
|
|
224
|
-
c.detach();
|
|
225
|
-
this.el = r.nativeElement;
|
|
226
|
-
proxyOutputs(this, this.el, ['gtrChange', 'gtrInput', 'gtrBlur', 'gtrFocus', 'gtrOpen', 'gtrClose']);
|
|
227
|
-
}
|
|
228
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2DatePicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2DatePicker, selector: "gtr2-date-picker", inputs: { dateAdapter: "dateAdapter", datePickerLabel: "datePickerLabel", direction: "direction", disabled: "disabled", firstDayOfWeek: "firstDayOfWeek", identifier: "identifier", invalid: "invalid", isDateDisabled: "isDateDisabled", localization: "localization", max: "max", min: "min", name: "name", readonly: "readonly", required: "required", role: "role", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
230
|
-
};
|
|
231
|
-
Gtr2DatePicker = __decorate([
|
|
232
|
-
ProxyCmp({
|
|
233
|
-
defineCustomElementFn: defineCustomElement$6,
|
|
234
|
-
inputs: ['dateAdapter', 'datePickerLabel', 'direction', 'disabled', 'firstDayOfWeek', 'identifier', 'invalid', 'isDateDisabled', 'localization', 'max', 'min', 'name', 'readonly', 'required', 'role', 'value'],
|
|
235
|
-
methods: ['setFocus', 'show', 'hide']
|
|
236
|
-
})
|
|
237
|
-
], Gtr2DatePicker);
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2DatePicker, decorators: [{
|
|
239
|
-
type: Component,
|
|
240
|
-
args: [{
|
|
241
|
-
selector: 'gtr2-date-picker',
|
|
242
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
243
|
-
template: '<ng-content></ng-content>',
|
|
244
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
245
|
-
inputs: ['dateAdapter', 'datePickerLabel', 'direction', 'disabled', 'firstDayOfWeek', 'identifier', 'invalid', 'isDateDisabled', 'localization', 'max', 'min', 'name', 'readonly', 'required', 'role', 'value'],
|
|
246
|
-
}]
|
|
247
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
248
|
-
let Gtr2FileInput = class Gtr2FileInput {
|
|
249
|
-
constructor(c, r, z) {
|
|
250
|
-
this.z = z;
|
|
251
|
-
c.detach();
|
|
252
|
-
this.el = r.nativeElement;
|
|
253
|
-
proxyOutputs(this, this.el, ['gtrFileSelected', 'gtrFileError']);
|
|
254
|
-
}
|
|
255
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2FileInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
256
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2FileInput, selector: "gtr2-file-input", inputs: { accept: "accept", ariaLabel: "ariaLabel", description: "description", heading: "heading" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
257
|
-
};
|
|
258
|
-
Gtr2FileInput = __decorate([
|
|
259
|
-
ProxyCmp({
|
|
260
|
-
defineCustomElementFn: defineCustomElement$7,
|
|
261
|
-
inputs: ['accept', 'ariaLabel', 'description', 'heading']
|
|
262
|
-
})
|
|
263
|
-
], Gtr2FileInput);
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2FileInput, decorators: [{
|
|
265
|
-
type: Component,
|
|
266
|
-
args: [{
|
|
267
|
-
selector: 'gtr2-file-input',
|
|
268
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
269
|
-
template: '<ng-content></ng-content>',
|
|
270
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
271
|
-
inputs: ['accept', 'ariaLabel', 'description', 'heading'],
|
|
272
|
-
}]
|
|
273
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
274
|
-
let Gtr2GroupDropdown = class Gtr2GroupDropdown {
|
|
275
|
-
constructor(c, r, z) {
|
|
276
|
-
this.z = z;
|
|
277
|
-
c.detach();
|
|
278
|
-
this.el = r.nativeElement;
|
|
279
|
-
proxyOutputs(this, this.el, ['gtrChange']);
|
|
280
|
-
}
|
|
281
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2GroupDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
282
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2GroupDropdown, selector: "gtr2-group-dropdown", inputs: { label: "label", labelKey: "labelKey", multiple: "multiple", options: "options", value: "value", valueKey: "valueKey" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
283
|
-
};
|
|
284
|
-
Gtr2GroupDropdown = __decorate([
|
|
285
|
-
ProxyCmp({
|
|
286
|
-
defineCustomElementFn: defineCustomElement$8,
|
|
287
|
-
inputs: ['label', 'labelKey', 'multiple', 'options', 'value', 'valueKey']
|
|
288
|
-
})
|
|
289
|
-
], Gtr2GroupDropdown);
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2GroupDropdown, decorators: [{
|
|
291
|
-
type: Component,
|
|
292
|
-
args: [{
|
|
293
|
-
selector: 'gtr2-group-dropdown',
|
|
294
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
295
|
-
template: '<ng-content></ng-content>',
|
|
296
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
297
|
-
inputs: ['label', 'labelKey', 'multiple', 'options', 'value', 'valueKey'],
|
|
298
|
-
}]
|
|
299
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
300
|
-
let Gtr2Icon = class Gtr2Icon {
|
|
301
|
-
constructor(c, r, z) {
|
|
302
|
-
this.z = z;
|
|
303
|
-
c.detach();
|
|
304
|
-
this.el = r.nativeElement;
|
|
305
|
-
}
|
|
306
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Icon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
307
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Icon, selector: "gtr2-icon", inputs: { color: "color", name: "name", size: "size", weight: "weight" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
308
|
-
};
|
|
309
|
-
Gtr2Icon = __decorate([
|
|
310
|
-
ProxyCmp({
|
|
311
|
-
defineCustomElementFn: defineCustomElement$9,
|
|
312
|
-
inputs: ['color', 'name', 'size', 'weight']
|
|
313
|
-
})
|
|
314
|
-
], Gtr2Icon);
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Icon, decorators: [{
|
|
316
|
-
type: Component,
|
|
317
|
-
args: [{
|
|
318
|
-
selector: 'gtr2-icon',
|
|
319
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
320
|
-
template: '<ng-content></ng-content>',
|
|
321
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
322
|
-
inputs: ['color', 'name', 'size', 'weight'],
|
|
323
|
-
}]
|
|
324
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
325
|
-
let Gtr2Input = class Gtr2Input {
|
|
326
|
-
constructor(c, r, z) {
|
|
327
|
-
this.z = z;
|
|
328
|
-
c.detach();
|
|
329
|
-
this.el = r.nativeElement;
|
|
330
|
-
proxyOutputs(this, this.el, ['inputChanged', 'handleError']);
|
|
331
|
-
}
|
|
332
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Input, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
333
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Input, selector: "gtr2-input", inputs: { defaultValidation: "defaultValidation", disabled: "disabled", iconColor: "iconColor", iconFontWeight: "iconFontWeight", iconPosition: "iconPosition", iconSize: "iconSize", inputIcon: "inputIcon", inputLabel: "inputLabel", isNumber: "isNumber", isOnlyView: "isOnlyView", isValid: "isValid", placeholder: "placeholder", readonly: "readonly", required: "required", type: "type", validateLabel: "validateLabel", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
334
|
-
};
|
|
335
|
-
Gtr2Input = __decorate([
|
|
336
|
-
ProxyCmp({
|
|
337
|
-
defineCustomElementFn: defineCustomElement$a,
|
|
338
|
-
inputs: ['defaultValidation', 'disabled', 'iconColor', 'iconFontWeight', 'iconPosition', 'iconSize', 'inputIcon', 'inputLabel', 'isNumber', 'isOnlyView', 'isValid', 'placeholder', 'readonly', 'required', 'type', 'validateLabel', 'value']
|
|
339
|
-
})
|
|
340
|
-
], Gtr2Input);
|
|
341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Input, decorators: [{
|
|
342
|
-
type: Component,
|
|
343
|
-
args: [{
|
|
344
|
-
selector: 'gtr2-input',
|
|
345
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
346
|
-
template: '<ng-content></ng-content>',
|
|
347
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
348
|
-
inputs: ['defaultValidation', 'disabled', 'iconColor', 'iconFontWeight', 'iconPosition', 'iconSize', 'inputIcon', 'inputLabel', 'isNumber', 'isOnlyView', 'isValid', 'placeholder', 'readonly', 'required', 'type', 'validateLabel', 'value'],
|
|
349
|
-
}]
|
|
350
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
351
|
-
let Gtr2Modal = class Gtr2Modal {
|
|
352
|
-
constructor(c, r, z) {
|
|
353
|
-
this.z = z;
|
|
354
|
-
c.detach();
|
|
355
|
-
this.el = r.nativeElement;
|
|
356
|
-
proxyOutputs(this, this.el, ['closeModal']);
|
|
357
|
-
}
|
|
358
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Modal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
359
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Modal, selector: "gtr2-modal", inputs: { hasHeading: "hasHeading", header: "header", isOpen: "isOpen", modalPosition: "modalPosition", modalSize: "modalSize", scrollType: "scrollType" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
360
|
-
};
|
|
361
|
-
Gtr2Modal = __decorate([
|
|
362
|
-
ProxyCmp({
|
|
363
|
-
defineCustomElementFn: defineCustomElement$b,
|
|
364
|
-
inputs: ['hasHeading', 'header', 'isOpen', 'modalPosition', 'modalSize', 'scrollType']
|
|
365
|
-
})
|
|
366
|
-
], Gtr2Modal);
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Modal, decorators: [{
|
|
368
|
-
type: Component,
|
|
369
|
-
args: [{
|
|
370
|
-
selector: 'gtr2-modal',
|
|
371
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
372
|
-
template: '<ng-content></ng-content>',
|
|
373
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
374
|
-
inputs: ['hasHeading', 'header', 'isOpen', 'modalPosition', 'modalSize', 'scrollType'],
|
|
375
|
-
}]
|
|
376
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
377
|
-
let Gtr2NumericCounter = class Gtr2NumericCounter {
|
|
378
|
-
constructor(c, r, z) {
|
|
379
|
-
this.z = z;
|
|
380
|
-
c.detach();
|
|
381
|
-
this.el = r.nativeElement;
|
|
382
|
-
proxyOutputs(this, this.el, ['gtrChange']);
|
|
383
|
-
}
|
|
384
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2NumericCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
385
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2NumericCounter, selector: "gtr2-numeric-counter", inputs: { disabled: "disabled", identifier: "identifier", max: "max", min: "min", name: "name", readonly: "readonly", step: "step", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
386
|
-
};
|
|
387
|
-
Gtr2NumericCounter = __decorate([
|
|
388
|
-
ProxyCmp({
|
|
389
|
-
defineCustomElementFn: defineCustomElement$c,
|
|
390
|
-
inputs: ['disabled', 'identifier', 'max', 'min', 'name', 'readonly', 'step', 'value']
|
|
391
|
-
})
|
|
392
|
-
], Gtr2NumericCounter);
|
|
393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2NumericCounter, decorators: [{
|
|
394
|
-
type: Component,
|
|
395
|
-
args: [{
|
|
396
|
-
selector: 'gtr2-numeric-counter',
|
|
397
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
398
|
-
template: '<ng-content></ng-content>',
|
|
399
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
400
|
-
inputs: ['disabled', 'identifier', 'max', 'min', 'name', 'readonly', 'step', 'value'],
|
|
401
|
-
}]
|
|
402
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
403
|
-
let Gtr2Pagination = class Gtr2Pagination {
|
|
404
|
-
constructor(c, r, z) {
|
|
405
|
-
this.z = z;
|
|
406
|
-
c.detach();
|
|
407
|
-
this.el = r.nativeElement;
|
|
408
|
-
proxyOutputs(this, this.el, ['pageEvent', 'getNumberOfPages']);
|
|
409
|
-
}
|
|
410
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Pagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
411
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Pagination, selector: "gtr2-pagination", inputs: { ariaLabel: "ariaLabel", disabled: "disabled", hidePageSize: "hidePageSize", limit: "limit", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", showFirstLastButtons: "showFirstLastButtons" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
412
|
-
};
|
|
413
|
-
Gtr2Pagination = __decorate([
|
|
414
|
-
ProxyCmp({
|
|
415
|
-
defineCustomElementFn: defineCustomElement$d,
|
|
416
|
-
inputs: ['ariaLabel', 'disabled', 'hidePageSize', 'limit', 'pageIndex', 'pageSize', 'pageSizeOptions', 'showFirstLastButtons']
|
|
417
|
-
})
|
|
418
|
-
], Gtr2Pagination);
|
|
419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Pagination, decorators: [{
|
|
420
|
-
type: Component,
|
|
421
|
-
args: [{
|
|
422
|
-
selector: 'gtr2-pagination',
|
|
423
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
424
|
-
template: '<ng-content></ng-content>',
|
|
425
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
426
|
-
inputs: ['ariaLabel', 'disabled', 'hidePageSize', 'limit', 'pageIndex', 'pageSize', 'pageSizeOptions', 'showFirstLastButtons'],
|
|
427
|
-
}]
|
|
428
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
429
|
-
let Gtr2Popover = class Gtr2Popover {
|
|
430
|
-
constructor(c, r, z) {
|
|
431
|
-
this.z = z;
|
|
432
|
-
c.detach();
|
|
433
|
-
this.el = r.nativeElement;
|
|
434
|
-
proxyOutputs(this, this.el, ['stateChanged']);
|
|
435
|
-
}
|
|
436
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Popover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
437
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Popover, selector: "gtr2-popover", inputs: { accessible: "accessible", autoAdjustable: "autoAdjustable", content: "content", isOpened: "isOpened", moveX: "moveX", moveY: "moveY", padding: "padding", position: "position", showPositionIndicator: "showPositionIndicator" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
438
|
-
};
|
|
439
|
-
Gtr2Popover = __decorate([
|
|
440
|
-
ProxyCmp({
|
|
441
|
-
defineCustomElementFn: defineCustomElement$e,
|
|
442
|
-
inputs: ['accessible', 'autoAdjustable', 'content', 'isOpened', 'moveX', 'moveY', 'padding', 'position', 'showPositionIndicator']
|
|
443
|
-
})
|
|
444
|
-
], Gtr2Popover);
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Popover, decorators: [{
|
|
446
|
-
type: Component,
|
|
447
|
-
args: [{
|
|
448
|
-
selector: 'gtr2-popover',
|
|
449
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
450
|
-
template: '<ng-content></ng-content>',
|
|
451
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
452
|
-
inputs: ['accessible', 'autoAdjustable', 'content', 'isOpened', 'moveX', 'moveY', 'padding', 'position', 'showPositionIndicator'],
|
|
453
|
-
}]
|
|
454
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
455
|
-
let Gtr2PopoverWrapper = class Gtr2PopoverWrapper {
|
|
456
|
-
constructor(c, r, z) {
|
|
457
|
-
this.z = z;
|
|
458
|
-
c.detach();
|
|
459
|
-
this.el = r.nativeElement;
|
|
460
|
-
}
|
|
461
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2PopoverWrapper, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
462
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2PopoverWrapper, selector: "gtr2-popover-wrapper", inputs: { alignment: "alignment", layout: "layout", layoutGap: "layoutGap" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
463
|
-
};
|
|
464
|
-
Gtr2PopoverWrapper = __decorate([
|
|
465
|
-
ProxyCmp({
|
|
466
|
-
defineCustomElementFn: defineCustomElement$f,
|
|
467
|
-
inputs: ['alignment', 'layout', 'layoutGap']
|
|
468
|
-
})
|
|
469
|
-
], Gtr2PopoverWrapper);
|
|
470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2PopoverWrapper, decorators: [{
|
|
471
|
-
type: Component,
|
|
472
|
-
args: [{
|
|
473
|
-
selector: 'gtr2-popover-wrapper',
|
|
474
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
475
|
-
template: '<ng-content></ng-content>',
|
|
476
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
477
|
-
inputs: ['alignment', 'layout', 'layoutGap'],
|
|
478
|
-
}]
|
|
479
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
480
|
-
let Gtr2RadioButton = class Gtr2RadioButton {
|
|
481
|
-
constructor(c, r, z) {
|
|
482
|
-
this.z = z;
|
|
483
|
-
c.detach();
|
|
484
|
-
this.el = r.nativeElement;
|
|
485
|
-
proxyOutputs(this, this.el, ['valueChanged']);
|
|
486
|
-
}
|
|
487
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2RadioButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
488
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2RadioButton, selector: "gtr2-radio-button", inputs: { checked: "checked", disabled: "disabled", label: "label", tabIndexNav: "tabIndexNav", templateId: "templateId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
489
|
-
};
|
|
490
|
-
Gtr2RadioButton = __decorate([
|
|
491
|
-
ProxyCmp({
|
|
492
|
-
defineCustomElementFn: defineCustomElement$g,
|
|
493
|
-
inputs: ['checked', 'disabled', 'label', 'tabIndexNav', 'templateId', 'value']
|
|
494
|
-
})
|
|
495
|
-
], Gtr2RadioButton);
|
|
496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2RadioButton, decorators: [{
|
|
497
|
-
type: Component,
|
|
498
|
-
args: [{
|
|
499
|
-
selector: 'gtr2-radio-button',
|
|
500
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
501
|
-
template: '<ng-content></ng-content>',
|
|
502
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
503
|
-
inputs: ['checked', 'disabled', 'label', 'tabIndexNav', 'templateId', 'value'],
|
|
504
|
-
}]
|
|
505
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
506
|
-
let Gtr2RadioButtonGroup = class Gtr2RadioButtonGroup {
|
|
507
|
-
constructor(c, r, z) {
|
|
508
|
-
this.z = z;
|
|
509
|
-
c.detach();
|
|
510
|
-
this.el = r.nativeElement;
|
|
511
|
-
proxyOutputs(this, this.el, ['gtrValueChanged']);
|
|
512
|
-
}
|
|
513
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2RadioButtonGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
514
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2RadioButtonGroup, selector: "gtr2-radio-button-group", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
515
|
-
};
|
|
516
|
-
Gtr2RadioButtonGroup = __decorate([
|
|
517
|
-
ProxyCmp({
|
|
518
|
-
defineCustomElementFn: defineCustomElement$h
|
|
519
|
-
})
|
|
520
|
-
], Gtr2RadioButtonGroup);
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2RadioButtonGroup, decorators: [{
|
|
522
|
-
type: Component,
|
|
523
|
-
args: [{
|
|
524
|
-
selector: 'gtr2-radio-button-group',
|
|
525
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
526
|
-
template: '<ng-content></ng-content>',
|
|
527
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
528
|
-
inputs: [],
|
|
529
|
-
}]
|
|
530
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
531
|
-
let Gtr2Select = class Gtr2Select {
|
|
532
|
-
constructor(c, r, z) {
|
|
533
|
-
this.z = z;
|
|
534
|
-
c.detach();
|
|
535
|
-
this.el = r.nativeElement;
|
|
536
|
-
proxyOutputs(this, this.el, ['valueChanged', 'searchChanged', 'gtrScroll', 'gtrTouched']);
|
|
537
|
-
}
|
|
538
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Select, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
539
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Select, selector: "gtr2-select", inputs: { disabled: "disabled", floatPlaceholder: "floatPlaceholder", highlightLabel: "highlightLabel", inputLabel: "inputLabel", isOnlyView: "isOnlyView", is_invalid: "is_invalid", labelKey: "labelKey", lazyLoaded: "lazyLoaded", loading: "loading", multiple: "multiple", options: "options", pageClass: "pageClass", placeholder: "placeholder", readonly: "readonly", searchable: "searchable", selectedLabel: "selectedLabel", subLabel: "subLabel", textLimit: "textLimit", value: "value", valueKey: "valueKey" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
540
|
-
};
|
|
541
|
-
Gtr2Select = __decorate([
|
|
542
|
-
ProxyCmp({
|
|
543
|
-
defineCustomElementFn: defineCustomElement$i,
|
|
544
|
-
inputs: ['disabled', 'floatPlaceholder', 'highlightLabel', 'inputLabel', 'isOnlyView', 'is_invalid', 'labelKey', 'lazyLoaded', 'loading', 'multiple', 'options', 'pageClass', 'placeholder', 'readonly', 'searchable', 'selectedLabel', 'subLabel', 'textLimit', 'value', 'valueKey']
|
|
545
|
-
})
|
|
546
|
-
], Gtr2Select);
|
|
547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Select, decorators: [{
|
|
548
|
-
type: Component,
|
|
549
|
-
args: [{
|
|
550
|
-
selector: 'gtr2-select',
|
|
551
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
552
|
-
template: '<ng-content></ng-content>',
|
|
553
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
554
|
-
inputs: ['disabled', 'floatPlaceholder', 'highlightLabel', 'inputLabel', 'isOnlyView', 'is_invalid', 'labelKey', 'lazyLoaded', 'loading', 'multiple', 'options', 'pageClass', 'placeholder', 'readonly', 'searchable', 'selectedLabel', 'subLabel', 'textLimit', 'value', 'valueKey'],
|
|
555
|
-
}]
|
|
556
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
557
|
-
let Gtr2StatsCard = class Gtr2StatsCard {
|
|
558
|
-
constructor(c, r, z) {
|
|
559
|
-
this.z = z;
|
|
560
|
-
c.detach();
|
|
561
|
-
this.el = r.nativeElement;
|
|
562
|
-
proxyOutputs(this, this.el, ['filterChanged']);
|
|
563
|
-
}
|
|
564
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2StatsCard, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
565
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2StatsCard, selector: "gtr2-stats-card", inputs: { cardIcon: "cardIcon", cardTitle: "cardTitle", dataPercentage: "dataPercentage", dataTotalCount: "dataTotalCount", dataTotalLabel: "dataTotalLabel", enableFilter: "enableFilter", iconColor: "iconColor", isDanger: "isDanger", isTrendUp: "isTrendUp", showPercentage: "showPercentage", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
566
|
-
};
|
|
567
|
-
Gtr2StatsCard = __decorate([
|
|
568
|
-
ProxyCmp({
|
|
569
|
-
defineCustomElementFn: defineCustomElement$j,
|
|
570
|
-
inputs: ['cardIcon', 'cardTitle', 'dataPercentage', 'dataTotalCount', 'dataTotalLabel', 'enableFilter', 'iconColor', 'isDanger', 'isTrendUp', 'showPercentage', 'size']
|
|
571
|
-
})
|
|
572
|
-
], Gtr2StatsCard);
|
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2StatsCard, decorators: [{
|
|
574
|
-
type: Component,
|
|
575
|
-
args: [{
|
|
576
|
-
selector: 'gtr2-stats-card',
|
|
577
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
578
|
-
template: '<ng-content></ng-content>',
|
|
579
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
580
|
-
inputs: ['cardIcon', 'cardTitle', 'dataPercentage', 'dataTotalCount', 'dataTotalLabel', 'enableFilter', 'iconColor', 'isDanger', 'isTrendUp', 'showPercentage', 'size'],
|
|
581
|
-
}]
|
|
582
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
583
|
-
let Gtr2Switch = class Gtr2Switch {
|
|
584
|
-
constructor(c, r, z) {
|
|
585
|
-
this.z = z;
|
|
586
|
-
c.detach();
|
|
587
|
-
this.el = r.nativeElement;
|
|
588
|
-
proxyOutputs(this, this.el, ['gtrChange']);
|
|
589
|
-
}
|
|
590
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Switch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
591
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Switch, selector: "gtr2-switch", inputs: { checked: "checked", disabled: "disabled", label: "label", readonly: "readonly", tabIndex: "tabIndex" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
592
|
-
};
|
|
593
|
-
Gtr2Switch = __decorate([
|
|
594
|
-
ProxyCmp({
|
|
595
|
-
defineCustomElementFn: defineCustomElement$k,
|
|
596
|
-
inputs: ['checked', 'disabled', 'label', 'readonly', 'tabIndex']
|
|
597
|
-
})
|
|
598
|
-
], Gtr2Switch);
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Switch, decorators: [{
|
|
600
|
-
type: Component,
|
|
601
|
-
args: [{
|
|
602
|
-
selector: 'gtr2-switch',
|
|
603
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
604
|
-
template: '<ng-content></ng-content>',
|
|
605
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
606
|
-
inputs: ['checked', 'disabled', 'label', 'readonly', 'tabIndex'],
|
|
607
|
-
}]
|
|
608
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
609
|
-
let Gtr2Tab = class Gtr2Tab {
|
|
610
|
-
constructor(c, r, z) {
|
|
611
|
-
this.z = z;
|
|
612
|
-
c.detach();
|
|
613
|
-
this.el = r.nativeElement;
|
|
614
|
-
proxyOutputs(this, this.el, ['tabSlotChange', 'tabChange', 'contentChanged']);
|
|
615
|
-
}
|
|
616
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Tab, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
617
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Tab, selector: "gtr2-tab", inputs: { active: "active", disabled: "disabled", isContentLoaded: "isContentLoaded", label: "label" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
618
|
-
};
|
|
619
|
-
Gtr2Tab = __decorate([
|
|
620
|
-
ProxyCmp({
|
|
621
|
-
defineCustomElementFn: defineCustomElement$l,
|
|
622
|
-
inputs: ['active', 'disabled', 'isContentLoaded', 'label'],
|
|
623
|
-
methods: ['changeTab']
|
|
624
|
-
})
|
|
625
|
-
], Gtr2Tab);
|
|
626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Tab, decorators: [{
|
|
627
|
-
type: Component,
|
|
628
|
-
args: [{
|
|
629
|
-
selector: 'gtr2-tab',
|
|
630
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
631
|
-
template: '<ng-content></ng-content>',
|
|
632
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
633
|
-
inputs: ['active', 'disabled', 'isContentLoaded', 'label'],
|
|
634
|
-
}]
|
|
635
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
636
|
-
let Gtr2TabGroup = class Gtr2TabGroup {
|
|
637
|
-
constructor(c, r, z) {
|
|
638
|
-
this.z = z;
|
|
639
|
-
c.detach();
|
|
640
|
-
this.el = r.nativeElement;
|
|
641
|
-
proxyOutputs(this, this.el, ['tabSlotChanges', 'tabChanges']);
|
|
642
|
-
}
|
|
643
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2TabGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
644
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2TabGroup, selector: "gtr2-tab-group", inputs: { contentAspectRatio: "contentAspectRatio", position: "position" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
645
|
-
};
|
|
646
|
-
Gtr2TabGroup = __decorate([
|
|
647
|
-
ProxyCmp({
|
|
648
|
-
defineCustomElementFn: defineCustomElement$m,
|
|
649
|
-
inputs: ['contentAspectRatio', 'position']
|
|
650
|
-
})
|
|
651
|
-
], Gtr2TabGroup);
|
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2TabGroup, decorators: [{
|
|
653
|
-
type: Component,
|
|
654
|
-
args: [{
|
|
655
|
-
selector: 'gtr2-tab-group',
|
|
656
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
657
|
-
template: '<ng-content></ng-content>',
|
|
658
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
659
|
-
inputs: ['contentAspectRatio', 'position'],
|
|
660
|
-
}]
|
|
661
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
662
|
-
let Gtr2TableContainer = class Gtr2TableContainer {
|
|
663
|
-
constructor(c, r, z) {
|
|
664
|
-
this.z = z;
|
|
665
|
-
c.detach();
|
|
666
|
-
this.el = r.nativeElement;
|
|
667
|
-
}
|
|
668
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2TableContainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
669
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2TableContainer, selector: "gtr2-table-container", inputs: { ariaLabel: "ariaLabel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
670
|
-
};
|
|
671
|
-
Gtr2TableContainer = __decorate([
|
|
672
|
-
ProxyCmp({
|
|
673
|
-
defineCustomElementFn: defineCustomElement$n,
|
|
674
|
-
inputs: ['ariaLabel']
|
|
675
|
-
})
|
|
676
|
-
], Gtr2TableContainer);
|
|
677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2TableContainer, decorators: [{
|
|
678
|
-
type: Component,
|
|
679
|
-
args: [{
|
|
680
|
-
selector: 'gtr2-table-container',
|
|
681
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
682
|
-
template: '<ng-content></ng-content>',
|
|
683
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
684
|
-
inputs: ['ariaLabel'],
|
|
685
|
-
}]
|
|
686
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
687
|
-
let Gtr2Textarea = class Gtr2Textarea {
|
|
688
|
-
constructor(c, r, z) {
|
|
689
|
-
this.z = z;
|
|
690
|
-
c.detach();
|
|
691
|
-
this.el = r.nativeElement;
|
|
692
|
-
proxyOutputs(this, this.el, ['textareaChanged', 'handleError']);
|
|
693
|
-
}
|
|
694
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Textarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
695
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Textarea, selector: "gtr2-textarea", inputs: { defaultValidation: "defaultValidation", disabled: "disabled", isOnlyView: "isOnlyView", isValid: "isValid", placeholder: "placeholder", readonly: "readonly", textareaLabel: "textareaLabel", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
696
|
-
};
|
|
697
|
-
Gtr2Textarea = __decorate([
|
|
698
|
-
ProxyCmp({
|
|
699
|
-
defineCustomElementFn: defineCustomElement$o,
|
|
700
|
-
inputs: ['defaultValidation', 'disabled', 'isOnlyView', 'isValid', 'placeholder', 'readonly', 'textareaLabel', 'value']
|
|
701
|
-
})
|
|
702
|
-
], Gtr2Textarea);
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Textarea, decorators: [{
|
|
704
|
-
type: Component,
|
|
705
|
-
args: [{
|
|
706
|
-
selector: 'gtr2-textarea',
|
|
707
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
708
|
-
template: '<ng-content></ng-content>',
|
|
709
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
710
|
-
inputs: ['defaultValidation', 'disabled', 'isOnlyView', 'isValid', 'placeholder', 'readonly', 'textareaLabel', 'value'],
|
|
711
|
-
}]
|
|
712
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
713
|
-
let Gtr2Toaster = class Gtr2Toaster {
|
|
714
|
-
constructor(c, r, z) {
|
|
715
|
-
this.z = z;
|
|
716
|
-
c.detach();
|
|
717
|
-
this.el = r.nativeElement;
|
|
718
|
-
}
|
|
719
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Toaster, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
720
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Toaster, selector: "gtr2-toaster", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
721
|
-
};
|
|
722
|
-
Gtr2Toaster = __decorate([
|
|
723
|
-
ProxyCmp({
|
|
724
|
-
defineCustomElementFn: defineCustomElement$p,
|
|
725
|
-
methods: ['showToast']
|
|
726
|
-
})
|
|
727
|
-
], Gtr2Toaster);
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Toaster, decorators: [{
|
|
729
|
-
type: Component,
|
|
730
|
-
args: [{
|
|
731
|
-
selector: 'gtr2-toaster',
|
|
732
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
733
|
-
template: '<ng-content></ng-content>',
|
|
734
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
735
|
-
inputs: [],
|
|
736
|
-
}]
|
|
737
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
738
|
-
let Gtr2Tooltip = class Gtr2Tooltip {
|
|
739
|
-
constructor(c, r, z) {
|
|
740
|
-
this.z = z;
|
|
741
|
-
c.detach();
|
|
742
|
-
this.el = r.nativeElement;
|
|
743
|
-
}
|
|
744
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Tooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
745
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Gtr2Tooltip, selector: "gtr2-tooltip", inputs: { autoAdjustable: "autoAdjustable", content: "content", position: "position" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
746
|
-
};
|
|
747
|
-
Gtr2Tooltip = __decorate([
|
|
748
|
-
ProxyCmp({
|
|
749
|
-
defineCustomElementFn: defineCustomElement$q,
|
|
750
|
-
inputs: ['autoAdjustable', 'content', 'position']
|
|
751
|
-
})
|
|
752
|
-
], Gtr2Tooltip);
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Gtr2Tooltip, decorators: [{
|
|
754
|
-
type: Component,
|
|
755
|
-
args: [{
|
|
756
|
-
selector: 'gtr2-tooltip',
|
|
757
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
758
|
-
template: '<ng-content></ng-content>',
|
|
759
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
760
|
-
inputs: ['autoAdjustable', 'content', 'position'],
|
|
761
|
-
}]
|
|
762
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
763
|
-
|
|
764
|
-
class ValueAccessor {
|
|
765
|
-
constructor(el) {
|
|
766
|
-
this.el = el;
|
|
767
|
-
this.onChange = () => { };
|
|
768
|
-
this.onTouched = () => { };
|
|
769
|
-
}
|
|
770
|
-
writeValue(value) {
|
|
771
|
-
this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
|
|
772
|
-
}
|
|
773
|
-
handleChangeEvent(value) {
|
|
774
|
-
if (value !== this.lastValue) {
|
|
775
|
-
this.lastValue = value;
|
|
776
|
-
this.onChange(value);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
_handleBlurEvent() {
|
|
780
|
-
this.onTouched();
|
|
781
|
-
}
|
|
782
|
-
registerOnChange(fn) {
|
|
783
|
-
this.onChange = fn;
|
|
784
|
-
}
|
|
785
|
-
registerOnTouched(fn) {
|
|
786
|
-
this.onTouched = fn;
|
|
787
|
-
}
|
|
788
|
-
setDisabledState(isDisabled) {
|
|
789
|
-
this.el.nativeElement.disabled = isDisabled;
|
|
790
|
-
}
|
|
791
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
792
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 }); }
|
|
793
|
-
}
|
|
794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
795
|
-
type: Directive,
|
|
796
|
-
args: [{}]
|
|
797
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
|
|
798
|
-
type: HostListener,
|
|
799
|
-
args: ['focusout']
|
|
800
|
-
}] } });
|
|
801
|
-
|
|
802
|
-
class TextValueAccessor extends ValueAccessor {
|
|
803
|
-
constructor(el) {
|
|
804
|
-
super(el);
|
|
805
|
-
}
|
|
806
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
807
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TextValueAccessor, selector: "gtr2-input, gtr2-textarea, gtr2-select", host: { listeners: { "inputChanged": "handleChangeEvent($event.target.value)", "valueChanged": "handleChangeEvent($event.target.value)" } }, providers: [
|
|
808
|
-
{
|
|
809
|
-
provide: NG_VALUE_ACCESSOR,
|
|
810
|
-
useExisting: TextValueAccessor,
|
|
811
|
-
multi: true
|
|
812
|
-
}
|
|
813
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
814
|
-
}
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextValueAccessor, decorators: [{
|
|
816
|
-
type: Directive,
|
|
817
|
-
args: [{
|
|
818
|
-
/* tslint:disable-next-line:directive-selector */
|
|
819
|
-
selector: 'gtr2-input, gtr2-textarea, gtr2-select',
|
|
820
|
-
host: {
|
|
821
|
-
'(inputChanged)': 'handleChangeEvent($event.target.value)',
|
|
822
|
-
'(valueChanged)': 'handleChangeEvent($event.target.value)'
|
|
823
|
-
},
|
|
824
|
-
providers: [
|
|
825
|
-
{
|
|
826
|
-
provide: NG_VALUE_ACCESSOR,
|
|
827
|
-
useExisting: TextValueAccessor,
|
|
828
|
-
multi: true
|
|
829
|
-
}
|
|
830
|
-
]
|
|
831
|
-
}]
|
|
832
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
833
|
-
|
|
834
|
-
const DIRECTIVES = [
|
|
835
|
-
Gtr2Accordion,
|
|
836
|
-
Gtr2AccordionWrapper,
|
|
837
|
-
Gtr2Badge,
|
|
838
|
-
Gtr2Button,
|
|
839
|
-
Gtr2Checkbox,
|
|
840
|
-
Gtr2DatePicker,
|
|
841
|
-
Gtr2FileInput,
|
|
842
|
-
Gtr2GroupDropdown,
|
|
843
|
-
Gtr2Icon,
|
|
844
|
-
Gtr2Input,
|
|
845
|
-
Gtr2Modal,
|
|
846
|
-
Gtr2NumericCounter,
|
|
847
|
-
Gtr2Pagination,
|
|
848
|
-
Gtr2Popover,
|
|
849
|
-
Gtr2PopoverWrapper,
|
|
850
|
-
Gtr2RadioButton,
|
|
851
|
-
Gtr2RadioButtonGroup,
|
|
852
|
-
Gtr2Select,
|
|
853
|
-
Gtr2StatsCard,
|
|
854
|
-
Gtr2Switch,
|
|
855
|
-
Gtr2Tab,
|
|
856
|
-
Gtr2TabGroup,
|
|
857
|
-
Gtr2TableContainer,
|
|
858
|
-
Gtr2Textarea,
|
|
859
|
-
Gtr2Toaster,
|
|
860
|
-
Gtr2Tooltip
|
|
861
|
-
];
|
|
862
|
-
|
|
863
|
-
applyPolyfills().then(() => {
|
|
864
|
-
defineCustomElements();
|
|
865
|
-
});
|
|
866
|
-
const DECLARATIONS = [...DIRECTIVES, TextValueAccessor];
|
|
867
|
-
class GettrxModule {
|
|
868
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GettrxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
869
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GettrxModule, declarations: [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, TextValueAccessor], imports: [CommonModule, FormsModule], exports: [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, TextValueAccessor] }); }
|
|
870
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GettrxModule, imports: [CommonModule, FormsModule] }); }
|
|
871
|
-
}
|
|
872
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GettrxModule, decorators: [{
|
|
873
|
-
type: NgModule,
|
|
874
|
-
args: [{
|
|
875
|
-
declarations: DECLARATIONS,
|
|
876
|
-
exports: DECLARATIONS,
|
|
877
|
-
imports: [CommonModule, FormsModule],
|
|
878
|
-
}]
|
|
879
|
-
}] });
|
|
880
|
-
|
|
881
15
|
var BreakpointInfix;
|
|
882
16
|
(function (BreakpointInfix) {
|
|
883
17
|
BreakpointInfix["xs"] = "xs";
|
|
@@ -976,11 +110,11 @@ class GtrBadgeComponent {
|
|
|
976
110
|
this.id = this.testid;
|
|
977
111
|
}
|
|
978
112
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
979
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { shape: "shape", type: "type", color: "color", ariaLabel: ["aria-label", "ariaLabel"], hidden: ["hidden", "hidden", booleanAttribute], position: "position", id: "id", testid: "testid", positionProperty: "positionProperty", backgroundColor: ["background-color", "backgroundColor"], iconName: ["icon-name", "iconName"] }, ngImport: i0, template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:
|
|
113
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { shape: "shape", type: "type", color: "color", ariaLabel: ["aria-label", "ariaLabel"], hidden: ["hidden", "hidden", booleanAttribute], position: "position", id: "id", testid: "testid", positionProperty: "positionProperty", backgroundColor: ["background-color", "backgroundColor"], iconName: ["icon-name", "iconName"] }, ngImport: i0, template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
980
114
|
}
|
|
981
115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, decorators: [{
|
|
982
116
|
type: Component,
|
|
983
|
-
args: [{ selector: 'gtr-badge', template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:
|
|
117
|
+
args: [{ selector: 'gtr-badge', template: "<ng-container *ngIf=\"!hidden\">\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"] }]
|
|
984
118
|
}], ctorParameters: function () { return []; }, propDecorators: { shape: [{
|
|
985
119
|
type: Input
|
|
986
120
|
}], type: [{
|
|
@@ -1899,11 +1033,11 @@ class GtrInputComponent {
|
|
|
1899
1033
|
: false;
|
|
1900
1034
|
}
|
|
1901
1035
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1902
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <
|
|
1036
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
1903
1037
|
}
|
|
1904
1038
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, decorators: [{
|
|
1905
1039
|
type: Component,
|
|
1906
|
-
args: [{ selector: 'gtr-input', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <
|
|
1040
|
+
args: [{ selector: 'gtr-input', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n\n <span [class]=\"'gtr-form-element-input'\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\" *ngIf=\"inputIcon\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px;pointer-events:none}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"] }]
|
|
1907
1041
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
1908
1042
|
type: Optional
|
|
1909
1043
|
}, {
|
|
@@ -2178,11 +1312,11 @@ class GtrTextareaComponent {
|
|
|
2178
1312
|
};
|
|
2179
1313
|
}
|
|
2180
1314
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2181
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { value: "value", placeholder: "placeholder", loading: "loading", textareaLabel: "textareaLabel", disabled: "disabled", textAreaWrapperId: "textAreaWrapperId", readonly: "readonly", isValid: "isValid", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation" }, outputs: { textareaChanged: "textareaChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-
|
|
1315
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { value: "value", placeholder: "placeholder", loading: "loading", textareaLabel: "textareaLabel", disabled: "disabled", textAreaWrapperId: "textAreaWrapperId", readonly: "readonly", isValid: "isValid", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation" }, outputs: { textareaChanged: "textareaChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
2182
1316
|
}
|
|
2183
1317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, decorators: [{
|
|
2184
1318
|
type: Component,
|
|
2185
|
-
args: [{ selector: 'gtr-textarea', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-
|
|
1319
|
+
args: [{ selector: 'gtr-textarea', template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"textAreaWrapperId+'-wrapper'\" [attr.data-testid]=\"textAreaWrapperId+'-wrapper'\">\n <label for={{this.textareaId}} [class]=\"'gtr-form-element-label'\" [id]=\"textAreaWrapperId+'-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">{{this.textareaLabel}}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <textarea *ngIf=\"!isOnlyView\" [id]=\"this.textareaId\" [attr.data-testid]=\"this.textareaId\"\n class=\"gtr-form-element-textarea\" [class.gtr-invalid]=\"isInputInvalid\" [class.isonlyview]=\"isOnlyView\"\n [value]=\"this.value\" [placeholder]=\"this.placeholder\" [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value}}\n </span>\n\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100: var(--default) }textarea[readonly=readonly],textarea[readonly]{height:var(--gtr-textarea-readonly-height)!important}textarea{resize:none}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:100%}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}label{position:relative;left:auto;top:auto}.gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100)}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-form-element-textarea{height:var(--gtr-textarea-height);border:1px solid var(--gtr-color-base-black-10);width:100%;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6);display:flex;height:85px;padding:8px 10px;align-items:flex-start;gap:10px;flex-shrink:0}.gtr-form-element-textarea::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px;font-style:normal;font-weight:400}.gtr-form-element-textarea:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-textarea:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-textarea.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea.isonlyview{border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:23px;pointer-events:none;height:auto}.gtr-form-element-label.isonlyview{line-height:27px;margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-textarea-icon{position:absolute;margin:-30px 0 0 7px}.gtr-form-element-textarea.gtr-textarea-width-icon{padding-left:var(--gtr-padding-32)}.gtr-form-element-textarea.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}.gtr-form-element-textarea::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}\n"] }]
|
|
2186
1320
|
}], ctorParameters: function () { return [{ type: i1$1.NgControl, decorators: [{
|
|
2187
1321
|
type: Optional
|
|
2188
1322
|
}, {
|
|
@@ -3255,9 +2389,9 @@ const isLastDayOfMonth = (date) => {
|
|
|
3255
2389
|
return test.getMonth() !== month;
|
|
3256
2390
|
};
|
|
3257
2391
|
const isSameDateAs = (date, date2) => {
|
|
3258
|
-
return (date
|
|
3259
|
-
date
|
|
3260
|
-
date
|
|
2392
|
+
return (date?.getDate() == date2?.getDate() &&
|
|
2393
|
+
date?.getMonth() == date2?.getMonth() &&
|
|
2394
|
+
date?.getFullYear() == date2?.getFullYear());
|
|
3261
2395
|
};
|
|
3262
2396
|
const isStartDate = (date, start, end) => {
|
|
3263
2397
|
return date && start && end && isSameDateAs(start, date) && start < end;
|
|
@@ -4231,8 +3365,10 @@ class GtrCalendarComponent {
|
|
|
4231
3365
|
* Max selectable date.
|
|
4232
3366
|
*/
|
|
4233
3367
|
set maxDate(value) {
|
|
4234
|
-
|
|
4235
|
-
|
|
3368
|
+
if (isValidDate(value) && !isSameDateAs(this.maxDate, value)) {
|
|
3369
|
+
this._maxDate = !!value ? tryDate(value, 'maxDate') : null;
|
|
3370
|
+
this.calendarService.update({ maxDate: this._maxDate });
|
|
3371
|
+
}
|
|
4236
3372
|
}
|
|
4237
3373
|
get maxDate() {
|
|
4238
3374
|
return this._maxDate;
|
|
@@ -4241,8 +3377,10 @@ class GtrCalendarComponent {
|
|
|
4241
3377
|
* Min selectable date.
|
|
4242
3378
|
*/
|
|
4243
3379
|
set minDate(value) {
|
|
4244
|
-
|
|
4245
|
-
|
|
3380
|
+
if (isValidDate(value) && !isSameDateAs(this.minDate, value)) {
|
|
3381
|
+
this._minDate = value ? tryDate(value, 'minDate') : null;
|
|
3382
|
+
this.calendarService.update({ minDate: this._minDate });
|
|
3383
|
+
}
|
|
4246
3384
|
}
|
|
4247
3385
|
get minDate() {
|
|
4248
3386
|
return this._minDate;
|
|
@@ -6364,6 +5502,7 @@ class GtrInputGroupComponent {
|
|
|
6364
5502
|
return {
|
|
6365
5503
|
'input-group': true,
|
|
6366
5504
|
[`input-group-${this.sizing}`]: !!this.sizing,
|
|
5505
|
+
[`input-group-invalid`]: this.invalid,
|
|
6367
5506
|
};
|
|
6368
5507
|
}
|
|
6369
5508
|
constructor() {
|
|
@@ -6371,9 +5510,10 @@ class GtrInputGroupComponent {
|
|
|
6371
5510
|
* Size the component small or large.
|
|
6372
5511
|
*/
|
|
6373
5512
|
this.sizing = '';
|
|
5513
|
+
this.invalid = false;
|
|
6374
5514
|
}
|
|
6375
5515
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6376
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
5516
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing", invalid: "invalid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
6377
5517
|
}
|
|
6378
5518
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputGroupComponent, decorators: [{
|
|
6379
5519
|
type: Component,
|
|
@@ -6384,6 +5524,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
6384
5524
|
}]
|
|
6385
5525
|
}], ctorParameters: function () { return []; }, propDecorators: { sizing: [{
|
|
6386
5526
|
type: Input
|
|
5527
|
+
}], invalid: [{
|
|
5528
|
+
type: Input
|
|
6387
5529
|
}], hostClasses: [{
|
|
6388
5530
|
type: HostBinding,
|
|
6389
5531
|
args: ['class']
|
|
@@ -7443,7 +6585,7 @@ class GtrTimePickerComponent {
|
|
|
7443
6585
|
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
7444
6586
|
multi: true,
|
|
7445
6587
|
},
|
|
7446
|
-
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
|
|
6588
|
+
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["cTimePicker"], usesOnChanges: true, ngImport: i0, template: "<div class=\"date-picker-timepickers\" *ngIf=\"variant==='select'\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let hour of listOfHours12; index as i; trackBy: trackByHour\" [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{hour.label}}</option>\n </select>\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let minute of listOfMinutes\" [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{minute.label}}</option>\n </select>\n <ng-template [ngIf]=\"seconds\">\n {{' :'}}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let second of listOfSeconds\" [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{second.label}}</option>\n </select>\n </ng-template>\n <ng-template [ngIf]=\"hour12\">\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n <option *ngFor=\"let dayPeriod of dayPeriods\" [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{dayPeriod.label}}</option>\n </select>\n </ng-template>\n </div>\n </div>\n</div>\n\n<gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n *ngIf=\"variant==='roll'\" [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n <span *ngIf=\"indicator || cleaner\" gtrInputGroupText>\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n <span (click)=\"!disabled && handleClear($event)\" *ngIf=\"cleaner && time && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n </span>\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n *ngIf=\"seconds\"\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-am-pm\n *ngIf=\"hour12\" [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n </div>\n <div *ngIf=\"templates?.timePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n</gtr-dropdown>\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
|
|
7447
6589
|
}
|
|
7448
6590
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTimePickerComponent, decorators: [{
|
|
7449
6591
|
type: Component,
|
|
@@ -7532,6 +6674,7 @@ class GtrDateRangePickerComponent {
|
|
|
7532
6674
|
this.breakpointObserver = breakpointObserver;
|
|
7533
6675
|
this.id = '';
|
|
7534
6676
|
this.testid = '';
|
|
6677
|
+
this.required = false;
|
|
7535
6678
|
/**
|
|
7536
6679
|
* Set the format of day name.
|
|
7537
6680
|
* @default 'numeric'
|
|
@@ -8071,13 +7214,13 @@ class GtrDateRangePickerComponent {
|
|
|
8071
7214
|
this.endDate = time ?? this.endDate;
|
|
8072
7215
|
}
|
|
8073
7216
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, deps: [{ token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8074
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDateRangePickerComponent, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", rangesType: "rangesType", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
7217
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrDateRangePickerComponent, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", required: "required", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", rangesType: "rangesType", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", invalid: "invalid", visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
8075
7218
|
{
|
|
8076
7219
|
provide: NG_VALUE_ACCESSOR,
|
|
8077
7220
|
useExisting: forwardRef((() => GtrDateRangePickerComponent)),
|
|
8078
7221
|
multi: true,
|
|
8079
7222
|
},
|
|
8080
|
-
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "calendarComponent", first: true, predicate: GtrCalendarComponent, descendants: true }, { propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
7223
|
+
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "calendarComponent", first: true, predicate: GtrCalendarComponent, descendants: true }, { propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
8081
7224
|
}
|
|
8082
7225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerComponent, decorators: [{
|
|
8083
7226
|
type: Component,
|
|
@@ -8087,11 +7230,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8087
7230
|
useExisting: forwardRef((() => GtrDateRangePickerComponent)),
|
|
8088
7231
|
multi: true,
|
|
8089
7232
|
},
|
|
8090
|
-
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
|
|
7233
|
+
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
|
|
8091
7234
|
}], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { id: [{
|
|
8092
7235
|
type: Input
|
|
8093
7236
|
}], testid: [{
|
|
8094
7237
|
type: Input
|
|
7238
|
+
}], required: [{
|
|
7239
|
+
type: Input
|
|
8095
7240
|
}], dayFormat: [{
|
|
8096
7241
|
type: Input
|
|
8097
7242
|
}], calendars: [{
|
|
@@ -8130,6 +7275,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8130
7275
|
type: Input
|
|
8131
7276
|
}], valid: [{
|
|
8132
7277
|
type: Input
|
|
7278
|
+
}], invalid: [{
|
|
7279
|
+
type: Input
|
|
8133
7280
|
}], visible: [{
|
|
8134
7281
|
type: Input
|
|
8135
7282
|
}], startDate: [{
|
|
@@ -8251,8 +7398,7 @@ class GtrDateRangePickerModule {
|
|
|
8251
7398
|
GtrInputGroupComponent,
|
|
8252
7399
|
GtrFormControlDirective,
|
|
8253
7400
|
GtrInputGroupTextDirective,
|
|
8254
|
-
GtrIconModule,
|
|
8255
|
-
GtrButtonDirective], exports: [GtrDateRangePickerComponent] }); }
|
|
7401
|
+
GtrIconModule], exports: [GtrDateRangePickerComponent] }); }
|
|
8256
7402
|
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDateRangePickerModule, imports: [ReactiveFormsModule,
|
|
8257
7403
|
GtrCalendarComponent,
|
|
8258
7404
|
GtrTimePickerComponent,
|
|
@@ -8278,7 +7424,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8278
7424
|
GtrFormControlDirective,
|
|
8279
7425
|
GtrInputGroupTextDirective,
|
|
8280
7426
|
GtrIconModule,
|
|
8281
|
-
GtrButtonDirective,
|
|
8282
7427
|
],
|
|
8283
7428
|
exports: [GtrDateRangePickerComponent],
|
|
8284
7429
|
}]
|
|
@@ -8330,7 +7475,7 @@ class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
|
8330
7475
|
useExisting: forwardRef((() => GtrDatePickerComponent)),
|
|
8331
7476
|
multi: true,
|
|
8332
7477
|
},
|
|
8333
|
-
], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
7478
|
+
], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["cTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
8334
7479
|
}
|
|
8335
7480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrDatePickerComponent, decorators: [{
|
|
8336
7481
|
type: Component,
|
|
@@ -8340,7 +7485,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
8340
7485
|
useExisting: forwardRef((() => GtrDatePickerComponent)),
|
|
8341
7486
|
multi: true,
|
|
8342
7487
|
},
|
|
8343
|
-
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}\n"] }]
|
|
7488
|
+
], template: "<ng-container *ngIf=\"alwaysOpen\">\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!alwaysOpen\">\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n <div *ngIf=\"templates?.datePickerFooter\" class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n</ng-container>\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n class=\"date-picker-input\"\n >\n <span *ngIf=\"range && separator !== false\" gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n <input (change)=\"handleEndDateInputChange($event)\"\n *ngIf=\"range\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n class=\"date-picker-input\"\n >\n\n <ng-container *ngIf=\"!alwaysOpen\">\n <span *ngIf=\"indicator || cleaner\" class=\"picker-input-group-icons\">\n <span *ngIf=\"indicator\" class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n <span (click)=\"!disabled && handleClear($event)\"\n *ngIf=\"cleaner && startDateElementRef.value && !disabled\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n </span>\n </ng-container>\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n <ng-template [ngIf]=\"!isMobile\">\n <div *ngIf=\"ranges\" class=\"date-picker-ranges\">\n <button (click)=\"setCustomRange(customRange)\"\n *ngFor=\"let customRange of customRanges\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n gtrButton>\n {{getCustomRangeKey(customRange)}}\n </button>\n </div>\n </ng-template>\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [type]=\"rangesType\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n <div *ngIf=\"false && timepicker\" class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n <gtr-time-picker\n *ngIf=\"range\"\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n </div>\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}\n"] }]
|
|
8344
7489
|
}], ctorParameters: function () { return [{ type: i1$2.BreakpointObserver }]; }, propDecorators: { placeholder: [{
|
|
8345
7490
|
type: Input
|
|
8346
7491
|
}], startDateChange: [{
|
|
@@ -8872,12 +8017,12 @@ class GtrFormatSelectedValuePipe {
|
|
|
8872
8017
|
}
|
|
8873
8018
|
}
|
|
8874
8019
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8875
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "
|
|
8020
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "gtrFormatSelectedValue" }); }
|
|
8876
8021
|
}
|
|
8877
8022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFormatSelectedValuePipe, decorators: [{
|
|
8878
8023
|
type: Pipe,
|
|
8879
8024
|
args: [{
|
|
8880
|
-
name: '
|
|
8025
|
+
name: 'gtrFormatSelectedValue',
|
|
8881
8026
|
standalone: true,
|
|
8882
8027
|
}]
|
|
8883
8028
|
}] });
|
|
@@ -9248,7 +8393,7 @@ class GtrSelectComponent {
|
|
|
9248
8393
|
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
9249
8394
|
multi: true,
|
|
9250
8395
|
},
|
|
9251
|
-
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "GtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
|
|
8396
|
+
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
|
|
9252
8397
|
}
|
|
9253
8398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, decorators: [{
|
|
9254
8399
|
type: Component,
|
|
@@ -9258,7 +8403,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9258
8403
|
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
9259
8404
|
multi: true,
|
|
9260
8405
|
},
|
|
9261
|
-
], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | GtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
8406
|
+
], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select Box Input Wrapper -->\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"i <= 1\">\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : lazyLoaded) + \" \"\n }}\n <gtr-icon\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"multipleSelectedValues && multipleSelectedValues.length > 2\">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"listLoading && listLoaderVariation === loaderVariation.SPINNER\"\n placeholder=\"Search\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" role=\"listbox\" (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"listLoading && listLoaderVariation === loaderVariation.TEXT\">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading && listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(valueKey ? option[valueKey] : option)\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">\n {{ placeholder | gtrTrimText : textLimit }}\n </span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >\n {{ (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit }}\n </span>\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >\n {{ (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit }}\n </span>\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;transition:.2s ease;box-sizing:border-box;perspective:1000px;animation:growOut .2s ease-in-out forwards;transform-origin:top center;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled,.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.gtr-select-spinner{display:flex;justify-content:center;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{transform:scale(0)}80%{transform:scale(1.1)}to{transform:scale(1)}}\n"] }]
|
|
9262
8407
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inputLabel: [{
|
|
9263
8408
|
type: Input
|
|
9264
8409
|
}], placeholder: [{
|
|
@@ -9592,8 +8737,8 @@ class GtrStatCardComponent {
|
|
|
9592
8737
|
*/
|
|
9593
8738
|
if (this.labelContainer &&
|
|
9594
8739
|
this.dateSelectOptions &&
|
|
9595
|
-
this.
|
|
9596
|
-
e.target
|
|
8740
|
+
this.dateSelectWrapper &&
|
|
8741
|
+
!this.dateSelectWrapper?.nativeElement?.contains(e.target) &&
|
|
9597
8742
|
e.target !== this.dateSelectOptions.nativeElement &&
|
|
9598
8743
|
e.target !== this.labelContainer.nativeElement) {
|
|
9599
8744
|
if (this.dateSelectOptions?.nativeElement?.classList.contains('open')) {
|
|
@@ -9617,17 +8762,20 @@ class GtrStatCardComponent {
|
|
|
9617
8762
|
this.closeDateSelect();
|
|
9618
8763
|
}
|
|
9619
8764
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9620
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrStatCardComponent, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color
|
|
8765
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrStatCardComponent, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectWrapper", first: true, predicate: ["dateSelectWrapper"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
9621
8766
|
}
|
|
9622
8767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrStatCardComponent, decorators: [{
|
|
9623
8768
|
type: Component,
|
|
9624
|
-
args: [{ selector: 'gtr-stat-card', template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color
|
|
8769
|
+
args: [{ selector: 'gtr-stat-card', template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\" [attr.data-testid]=\"statsCardId+'-title'\">{{title}}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\" class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\" [attr.data-testid]=\"statsCardId+'-content-label'\">{{value}}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\"\n *ngIf=\"enabledPercentage || enabledDateSelect\">\n <ng-container *ngIf=\"enabledDateSelect\">\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{dateSelected}}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n <ng-container *ngFor=\"let date of dateOptions\">\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [class.active]=\"dateSelected === date\">{{date}}\n </span>\n </ng-container>\n </div>\n\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"enabledPercentage\">\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{percentage}}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n </ng-container>\n </div>\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#FFF;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"] }]
|
|
9625
8770
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { iconContainer: [{
|
|
9626
8771
|
type: ViewChild,
|
|
9627
8772
|
args: ['iconContainer']
|
|
9628
8773
|
}], labelContainer: [{
|
|
9629
8774
|
type: ViewChild,
|
|
9630
8775
|
args: ['labelContainer']
|
|
8776
|
+
}], dateSelectWrapper: [{
|
|
8777
|
+
type: ViewChild,
|
|
8778
|
+
args: ['dateSelectWrapper']
|
|
9631
8779
|
}], showSkeletonLoading: [{
|
|
9632
8780
|
type: Input,
|
|
9633
8781
|
args: [{ required: false }]
|
|
@@ -9684,6 +8832,559 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9684
8832
|
}]
|
|
9685
8833
|
}] });
|
|
9686
8834
|
|
|
8835
|
+
class GtrCreateComponentPipe {
|
|
8836
|
+
constructor() {
|
|
8837
|
+
this.closed$ = new Subject();
|
|
8838
|
+
}
|
|
8839
|
+
transform(component, container, isDestroy = false) {
|
|
8840
|
+
if (!container) {
|
|
8841
|
+
return;
|
|
8842
|
+
}
|
|
8843
|
+
if (isDestroy) {
|
|
8844
|
+
this.destroyComponent();
|
|
8845
|
+
}
|
|
8846
|
+
else {
|
|
8847
|
+
container.changes.subscribe(() => {
|
|
8848
|
+
// The container has been added to the DOM
|
|
8849
|
+
container.toArray().map((ref) => {
|
|
8850
|
+
const dynamicComponent = this.createDynamicComponent(component.name, ref);
|
|
8851
|
+
if (dynamicComponent) {
|
|
8852
|
+
this.componentRef = dynamicComponent;
|
|
8853
|
+
}
|
|
8854
|
+
if (component.properties.length) {
|
|
8855
|
+
this.updateInstance(component.properties);
|
|
8856
|
+
}
|
|
8857
|
+
if (component.events.length) {
|
|
8858
|
+
this.detectChanges(this.componentRef, component.events);
|
|
8859
|
+
}
|
|
8860
|
+
if (component.text && this.componentRef) {
|
|
8861
|
+
this.componentRef.location.nativeElement.innerText = component.text;
|
|
8862
|
+
}
|
|
8863
|
+
});
|
|
8864
|
+
});
|
|
8865
|
+
}
|
|
8866
|
+
}
|
|
8867
|
+
createDynamicComponent(component, viewRef) {
|
|
8868
|
+
if (!viewRef) {
|
|
8869
|
+
return null;
|
|
8870
|
+
}
|
|
8871
|
+
viewRef.clear();
|
|
8872
|
+
return viewRef.createComponent(component);
|
|
8873
|
+
}
|
|
8874
|
+
updateInstance(instances) {
|
|
8875
|
+
instances.map((item) => {
|
|
8876
|
+
Object.keys(item).map((key) => {
|
|
8877
|
+
if (this.componentRef?.instance[key])
|
|
8878
|
+
this.componentRef.instance[key] = item[key];
|
|
8879
|
+
});
|
|
8880
|
+
});
|
|
8881
|
+
}
|
|
8882
|
+
detectChanges(ref, events) {
|
|
8883
|
+
events.map((event) => {
|
|
8884
|
+
// get `@Output` emitter from the component
|
|
8885
|
+
if (ref.instance[event]) {
|
|
8886
|
+
ref.instance[event]
|
|
8887
|
+
.pipe(takeUntil(this.closed$))
|
|
8888
|
+
.subscribe((event) => this.eventHandler(event));
|
|
8889
|
+
}
|
|
8890
|
+
});
|
|
8891
|
+
// add `click` event handler to the component
|
|
8892
|
+
// fromEvent(ref.location.nativeElement, 'click')
|
|
8893
|
+
// .pipe(takeUntil(this.closed$))
|
|
8894
|
+
// .subscribe((event: any) => this.clickHandler(event));
|
|
8895
|
+
// ref.instance.geneSelection.subscribe(event => {
|
|
8896
|
+
// this.geneSelection.emit(event);
|
|
8897
|
+
// });
|
|
8898
|
+
// const comp = (this.compRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement
|
|
8899
|
+
// this.cdr.detectChanges()
|
|
8900
|
+
}
|
|
8901
|
+
clickHandler(event) {
|
|
8902
|
+
console.log(event);
|
|
8903
|
+
}
|
|
8904
|
+
eventHandler(event) {
|
|
8905
|
+
console.log(event);
|
|
8906
|
+
}
|
|
8907
|
+
destroyComponent() {
|
|
8908
|
+
// viewRef.clear();
|
|
8909
|
+
this.closed$.next(''); // <-- close open subscriptions
|
|
8910
|
+
this.componentRef?.destroy();
|
|
8911
|
+
}
|
|
8912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8913
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, isStandalone: true, name: "gtrCreateComponent" }); }
|
|
8914
|
+
}
|
|
8915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCreateComponentPipe, decorators: [{
|
|
8916
|
+
type: Pipe,
|
|
8917
|
+
args: [{ name: 'gtrCreateComponent', standalone: true }]
|
|
8918
|
+
}], ctorParameters: function () { return []; } });
|
|
8919
|
+
|
|
8920
|
+
class GtrFetchAttributePipe {
|
|
8921
|
+
constructor() { }
|
|
8922
|
+
transform(column, attribute, index, data) {
|
|
8923
|
+
if (column[attribute]) {
|
|
8924
|
+
return column[attribute];
|
|
8925
|
+
}
|
|
8926
|
+
if (data[index][attribute]) {
|
|
8927
|
+
return data[index][attribute];
|
|
8928
|
+
}
|
|
8929
|
+
return '';
|
|
8930
|
+
}
|
|
8931
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8932
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, isStandalone: true, name: "gtrFetchAttribute" }); }
|
|
8933
|
+
}
|
|
8934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrFetchAttributePipe, decorators: [{
|
|
8935
|
+
type: Pipe,
|
|
8936
|
+
args: [{ name: 'gtrFetchAttribute', standalone: true }]
|
|
8937
|
+
}], ctorParameters: function () { return []; } });
|
|
8938
|
+
|
|
8939
|
+
class GtrTableResponsiveComponent {
|
|
8940
|
+
constructor(cdRef, attributesPipe) {
|
|
8941
|
+
this.cdRef = cdRef;
|
|
8942
|
+
this.attributesPipe = attributesPipe;
|
|
8943
|
+
this.isLoading = false;
|
|
8944
|
+
/**
|
|
8945
|
+
* Set the hide/show state of checbox.
|
|
8946
|
+
* @default 'boolean'
|
|
8947
|
+
* @type CheckBox State
|
|
8948
|
+
*/
|
|
8949
|
+
this.enableSelection = true;
|
|
8950
|
+
/**
|
|
8951
|
+
* Table columns
|
|
8952
|
+
*/
|
|
8953
|
+
this.columns = [];
|
|
8954
|
+
/**
|
|
8955
|
+
* Table data
|
|
8956
|
+
*/
|
|
8957
|
+
this.data = [];
|
|
8958
|
+
/**
|
|
8959
|
+
* Table data
|
|
8960
|
+
*/
|
|
8961
|
+
this.tableResponsiveId = '';
|
|
8962
|
+
/**
|
|
8963
|
+
* The selection changed eventemitter
|
|
8964
|
+
*/
|
|
8965
|
+
this.onSelection = new EventEmitter();
|
|
8966
|
+
/**
|
|
8967
|
+
* Action eventemitter
|
|
8968
|
+
*/
|
|
8969
|
+
this.onAction = new EventEmitter();
|
|
8970
|
+
/**
|
|
8971
|
+
* Sorting eventemitter
|
|
8972
|
+
*/
|
|
8973
|
+
this.onSort = new EventEmitter();
|
|
8974
|
+
}
|
|
8975
|
+
/**
|
|
8976
|
+
* To check screen size
|
|
8977
|
+
*/
|
|
8978
|
+
onResize(event) {
|
|
8979
|
+
event.target.innerWidth;
|
|
8980
|
+
}
|
|
8981
|
+
ngAfterViewChecked() {
|
|
8982
|
+
this.cdRef.detectChanges();
|
|
8983
|
+
}
|
|
8984
|
+
fetchSelection() {
|
|
8985
|
+
return this.data.every((x) => x.isSelected);
|
|
8986
|
+
}
|
|
8987
|
+
/**
|
|
8988
|
+
* The method is used to emit Select All state
|
|
8989
|
+
*/
|
|
8990
|
+
selectAll(event) {
|
|
8991
|
+
this.data.map((x) => (x.isSelected = event.detail.checked));
|
|
8992
|
+
this.onSelection.emit({
|
|
8993
|
+
all: event.detail.checked,
|
|
8994
|
+
selectedRows: this.data.filter((x) => x.isSelected),
|
|
8995
|
+
});
|
|
8996
|
+
}
|
|
8997
|
+
/**
|
|
8998
|
+
* The method is used to emit selected rows
|
|
8999
|
+
*/
|
|
9000
|
+
selectionDone(event, item) {
|
|
9001
|
+
item['isSelected'] = event.detail.checked;
|
|
9002
|
+
const dataToEmit = {
|
|
9003
|
+
all: false,
|
|
9004
|
+
row: item,
|
|
9005
|
+
selectedRows: this.data.filter((x) => x.isSelected),
|
|
9006
|
+
};
|
|
9007
|
+
if (event.detail.checked) {
|
|
9008
|
+
dataToEmit['lastSelected'] = item;
|
|
9009
|
+
}
|
|
9010
|
+
this.onSelection.emit(dataToEmit);
|
|
9011
|
+
}
|
|
9012
|
+
/**
|
|
9013
|
+
* The method is used to emit action
|
|
9014
|
+
*/
|
|
9015
|
+
actionDone(value, row, action) {
|
|
9016
|
+
action.value = value;
|
|
9017
|
+
this.onAction.emit({ id: row.id, action });
|
|
9018
|
+
}
|
|
9019
|
+
getActions(columns) {
|
|
9020
|
+
return columns?.find((x) => x.actions);
|
|
9021
|
+
}
|
|
9022
|
+
/**
|
|
9023
|
+
* The method is used to check show/hidden state of row
|
|
9024
|
+
*/
|
|
9025
|
+
checkRowHiddenState(row, column, expandAttributes, i) {
|
|
9026
|
+
if (!expandAttributes) {
|
|
9027
|
+
return;
|
|
9028
|
+
}
|
|
9029
|
+
const includedColumns = row.columnsData.some((x) => !x.hide);
|
|
9030
|
+
if (this.attributesPipe.transform(column, 'priority', i, this.columns) === 'HIGH' ||
|
|
9031
|
+
(Object.keys(expandAttributes).length && expandAttributes.isExpanded) ||
|
|
9032
|
+
!Object.keys(expandAttributes).length ||
|
|
9033
|
+
(Object.keys(expandAttributes).length &&
|
|
9034
|
+
includedColumns.length - 1 < expandAttributes.expandAfter)) {
|
|
9035
|
+
return true;
|
|
9036
|
+
}
|
|
9037
|
+
return false;
|
|
9038
|
+
}
|
|
9039
|
+
/**
|
|
9040
|
+
* The method is used to toggle show/hide state of row
|
|
9041
|
+
*/
|
|
9042
|
+
expandRow(row) {
|
|
9043
|
+
if (Object.keys(row.expand).length) {
|
|
9044
|
+
row.expand.isExpanded = !row.expand.isExpanded;
|
|
9045
|
+
}
|
|
9046
|
+
}
|
|
9047
|
+
ngOnDestroy() { }
|
|
9048
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableResponsiveComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: GtrFetchAttributePipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9049
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableResponsiveComponent, isStandalone: true, selector: "gtr-table-responsive", inputs: { isLoading: "isLoading", enableSelection: "enableSelection", columns: "columns", data: "data", tableResponsiveId: "tableResponsiveId" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
|
|
9050
|
+
GtrFetchAttributePipe,
|
|
9051
|
+
GtrSkeletonDirective,
|
|
9052
|
+
{
|
|
9053
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9054
|
+
useExisting: forwardRef((() => GtrTableResponsiveComponent)),
|
|
9055
|
+
multi: true,
|
|
9056
|
+
},
|
|
9057
|
+
], viewQueries: [{ propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "<ng-container *ngIf=\"data.length;else other\">\n <div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\">\n\n <div class='table-selection' *ngIf=\"enableSelection\">\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n\n <div class='table-responsive-wrapper-container' *ngFor=\"let row of data; let rowIndex=index\">\n <div class='table-responsive-menu'>\n\n <div class='table-responsive-menu-item' *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\"\n *ngIf=\"getActions(row?.columnsData)?.actions\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n <ng-container *ngFor=\"let column of row.columnsData;let colIndex=index\">\n\n <div class='table-responsive-container'\n *ngIf=\"(column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column, row.expand, colIndex)\">\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{columns[colIndex].label}}\n </ng-container>\n </ng-container>\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchDefault [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\">\n <span class='word-wrap' title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n <div class=\"expanded-arrow-icon\" *ngIf=\"expandAttributes && expandAttributes.expand\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"/images/arrow-down-navigate.svg\">\n </div>\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover position=\"left\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"15\" [moveY]=\"-12\">\n <span class=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div>\n <div class=\"gtr-popover-content\">\n <ul>\n <li [class.hide]=\"action.hide\"\n *ngFor=\"let action of getActions(row?.columnsData)?.actions;let actionIndex=index\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{action.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-ind=\"index\">\n <gtr-checkbox [checked]=\"row?.isSelected ? true : false\" [id]=\"tableResponsiveId+'-col-selection-'+ind\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+ind\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:var(--primary-text-color);text-decoration:underline}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrCreateComponentPipe, name: "gtrCreateComponent" }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "ngmodule", type: GtrBadgeModule }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "ngmodule", type: GtrCheckboxModule }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "ngmodule", type: GtrPopoverModule }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "closeOnClickOutside", "id", "testId"], outputs: ["stateChanged"] }, { kind: "ngmodule", type: GtrButtonModule }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9058
|
+
}
|
|
9059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableResponsiveComponent, decorators: [{
|
|
9060
|
+
type: Component,
|
|
9061
|
+
args: [{ selector: 'gtr-table-responsive', exportAs: 'gtrTableResponsive', standalone: true, encapsulation: ViewEncapsulation.None, imports: [
|
|
9062
|
+
NgClass,
|
|
9063
|
+
NgIf,
|
|
9064
|
+
NgForOf,
|
|
9065
|
+
NgTemplateOutlet,
|
|
9066
|
+
NgSwitchCase,
|
|
9067
|
+
NgSwitch,
|
|
9068
|
+
NgSwitchDefault,
|
|
9069
|
+
GtrCreateComponentPipe,
|
|
9070
|
+
GtrFetchAttributePipe,
|
|
9071
|
+
GtrBadgeModule,
|
|
9072
|
+
GtrSkeletonDirective,
|
|
9073
|
+
GtrCheckboxModule,
|
|
9074
|
+
GtrPopoverModule,
|
|
9075
|
+
GtrButtonModule,
|
|
9076
|
+
], providers: [
|
|
9077
|
+
GtrFetchAttributePipe,
|
|
9078
|
+
GtrSkeletonDirective,
|
|
9079
|
+
{
|
|
9080
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9081
|
+
useExisting: forwardRef((() => GtrTableResponsiveComponent)),
|
|
9082
|
+
multi: true,
|
|
9083
|
+
},
|
|
9084
|
+
], template: "<ng-container *ngIf=\"data.length;else other\">\n <div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\">\n\n <div class='table-selection' *ngIf=\"enableSelection\">\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n\n <div class='table-responsive-wrapper-container' *ngFor=\"let row of data; let rowIndex=index\">\n <div class='table-responsive-menu'>\n\n <div class='table-responsive-menu-item' *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\"\n *ngIf=\"getActions(row?.columnsData)?.actions\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n <ng-container *ngFor=\"let column of row.columnsData;let colIndex=index\">\n\n <div class='table-responsive-container'\n *ngIf=\"(column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column, row.expand, colIndex)\">\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{columns[colIndex].label}}\n </ng-container>\n </ng-container>\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchDefault [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\">\n <span class='word-wrap' title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n <div class=\"expanded-arrow-icon\" *ngIf=\"expandAttributes && expandAttributes.expand\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"/images/arrow-down-navigate.svg\">\n </div>\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover position=\"left\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"15\" [moveY]=\"-12\">\n <span class=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div>\n <div class=\"gtr-popover-content\">\n <ul>\n <li [class.hide]=\"action.hide\"\n *ngFor=\"let action of getActions(row?.columnsData)?.actions;let actionIndex=index\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{action.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-ind=\"index\">\n <gtr-checkbox [checked]=\"row?.isSelected ? true : false\" [id]=\"tableResponsiveId+'-col-selection-'+ind\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+ind\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:var(--primary-text-color);text-decoration:underline}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"] }]
|
|
9085
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: GtrFetchAttributePipe }]; }, propDecorators: { templateRef: [{
|
|
9086
|
+
type: ViewChildren,
|
|
9087
|
+
args: ['template', { read: ViewContainerRef }]
|
|
9088
|
+
}], isLoading: [{
|
|
9089
|
+
type: Input
|
|
9090
|
+
}], enableSelection: [{
|
|
9091
|
+
type: Input
|
|
9092
|
+
}], columns: [{
|
|
9093
|
+
type: Input
|
|
9094
|
+
}], data: [{
|
|
9095
|
+
type: Input
|
|
9096
|
+
}], tableResponsiveId: [{
|
|
9097
|
+
type: Input
|
|
9098
|
+
}], onSelection: [{
|
|
9099
|
+
type: Output
|
|
9100
|
+
}], onAction: [{
|
|
9101
|
+
type: Output
|
|
9102
|
+
}], onSort: [{
|
|
9103
|
+
type: Output
|
|
9104
|
+
}], onResize: [{
|
|
9105
|
+
type: HostListener,
|
|
9106
|
+
args: ['window:resize', ['$event']]
|
|
9107
|
+
}] } });
|
|
9108
|
+
|
|
9109
|
+
class GtrTableMainComponent {
|
|
9110
|
+
constructor(cdRef) {
|
|
9111
|
+
this.cdRef = cdRef;
|
|
9112
|
+
/**
|
|
9113
|
+
* Set the hide/show state of checbox.
|
|
9114
|
+
* @default 'boolean'
|
|
9115
|
+
* @type CheckBox State
|
|
9116
|
+
*/
|
|
9117
|
+
this.enableSelection = true;
|
|
9118
|
+
this.isLoading = false;
|
|
9119
|
+
/**
|
|
9120
|
+
* Table columns
|
|
9121
|
+
*/
|
|
9122
|
+
this.columns = [];
|
|
9123
|
+
/**
|
|
9124
|
+
* Table columns
|
|
9125
|
+
*/
|
|
9126
|
+
this.tableMainId = '';
|
|
9127
|
+
/**
|
|
9128
|
+
* Table data
|
|
9129
|
+
*/
|
|
9130
|
+
this.data = [];
|
|
9131
|
+
/**
|
|
9132
|
+
* The selection changed eventemitter
|
|
9133
|
+
*/
|
|
9134
|
+
this.onSelection = new EventEmitter();
|
|
9135
|
+
/**
|
|
9136
|
+
* Action eventemitter
|
|
9137
|
+
*/
|
|
9138
|
+
this.onAction = new EventEmitter();
|
|
9139
|
+
/**
|
|
9140
|
+
* Sorting eventemitter
|
|
9141
|
+
*/
|
|
9142
|
+
this.onSort = new EventEmitter();
|
|
9143
|
+
}
|
|
9144
|
+
ngAfterViewChecked() {
|
|
9145
|
+
this.cdRef.detectChanges();
|
|
9146
|
+
}
|
|
9147
|
+
onSorting(sortType, column) {
|
|
9148
|
+
if (sortType === column.sorting.sort) {
|
|
9149
|
+
column.sorting.sort = 0;
|
|
9150
|
+
}
|
|
9151
|
+
else {
|
|
9152
|
+
column.sorting.sort = sortType;
|
|
9153
|
+
}
|
|
9154
|
+
this.onSort.emit(column);
|
|
9155
|
+
}
|
|
9156
|
+
actionDone(event, rowId, action) {
|
|
9157
|
+
action.value = event.target.value;
|
|
9158
|
+
this.onAction.emit({ id: rowId, action });
|
|
9159
|
+
}
|
|
9160
|
+
selectAll(event) {
|
|
9161
|
+
this.data.map((x) => (x.isSelected = event.detail.checked));
|
|
9162
|
+
this.onSelection.emit({
|
|
9163
|
+
all: event.detail.checked,
|
|
9164
|
+
selectedRows: this.data.filter((x) => x.isSelected),
|
|
9165
|
+
});
|
|
9166
|
+
}
|
|
9167
|
+
fectchSelection() {
|
|
9168
|
+
return this.data.every((x) => x.isSelected);
|
|
9169
|
+
}
|
|
9170
|
+
selectionDone(event, item) {
|
|
9171
|
+
item['isSelected'] = event.detail.checked;
|
|
9172
|
+
const dataToEmit = {
|
|
9173
|
+
all: false,
|
|
9174
|
+
row: item,
|
|
9175
|
+
selectedRows: this.data.filter((x) => x.isSelected),
|
|
9176
|
+
};
|
|
9177
|
+
if (event.detail.checked) {
|
|
9178
|
+
dataToEmit['lastSelected'] = item;
|
|
9179
|
+
}
|
|
9180
|
+
this.onSelection.emit(dataToEmit);
|
|
9181
|
+
}
|
|
9182
|
+
ngOnDestroy() { }
|
|
9183
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableMainComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9184
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, providers: [
|
|
9185
|
+
GtrSkeletonDirective,
|
|
9186
|
+
{
|
|
9187
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9188
|
+
useExisting: forwardRef((() => GtrTableMainComponent)),
|
|
9189
|
+
multi: true,
|
|
9190
|
+
},
|
|
9191
|
+
], viewQueries: [{ propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "<ng-container *ngIf=\"data.length;else other\">\n <table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\">\n <thead>\n <th *ngIf=\"enableSelection\"><gtr-checkbox [id]=\"tableMainId+'-row-select-all'\"\n [attr.data-testid]=\"tableMainId+'-row-select-all'\" [checked]=\"fectchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" /></th>\n\n <th class={{column.align}} [class.hide]=\"column.hide\" *ngFor=\"let column of this.columns;let colIndex=index\">\n <div [class.gtr-header-label]='column.sorting.hasSorting'\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"column.label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{column.label}}\n </ng-container>\n </ng-container>\n </div>\n <span class=\"gtr-header-sorting-wrapper\" *ngIf=\"column.sorting.hasSorting\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n </th>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of data;let rowIndex=index\">\n <td *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n <td *ngFor=\"let column of row.columnsData; let colIndex=index\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\"\n [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column?.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'actions'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngSwitchDefault [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column?.value?.length > 30 ? (column?.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\" class='word-wrap'>\n <span title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute : 'align' : i : columns) + ' action-menu'\">\n <span class=\"gtr-data-label\" *ngFor=\"let action of column.actions;let actionIndex=index\">\n <ng-container *ngIf=\"!action.hide\">\n <div [ngSwitch]=\"action.type\">\n <div *ngSwitchCase=\"'button'\">\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'icon'\">\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'dropdown'\">\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'input'\">\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'textarea'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'toggle'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</div>\n </div>\n </div>\n </ng-container>\n </span>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge type=\"pill\" [positionProperty]=\"{ 'align': (columnAttributes | gtrFetchAttribute : 'align' : i : columns)}\"\n [color]=\"columnAttributes | gtrFetchAttribute : 'color' : i : columns\">{{data}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class='gtr-table-buttons'>\n <gtr-button [id]=\"tableMainId+'-col-action-btn-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-btn-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\"> <gtr-icon\n [id]=\"tableMainId+'-col-action-icon-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-icon-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <input type='text' [id]=\"tableMainId+'-col-action-input-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-input-'+i\"\n [placeholder]=\"action.name\" (input)=\"this.actionDone($event, row['id'], action)\" />\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:var(--primary-text-color);text-decoration:underline}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrCreateComponentPipe, name: "gtrCreateComponent" }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "ngmodule", type: GtrBadgeModule }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "ngmodule", type: GtrIconModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "ngmodule", type: GtrCheckboxModule }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "ngmodule", type: GtrButtonModule }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "color", "isLoading", "variant", "disabled"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9192
|
+
}
|
|
9193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableMainComponent, decorators: [{
|
|
9194
|
+
type: Component,
|
|
9195
|
+
args: [{ selector: 'gtr-table-main', exportAs: 'gtrTableMain', standalone: true, encapsulation: ViewEncapsulation.None, imports: [
|
|
9196
|
+
NgClass,
|
|
9197
|
+
NgIf,
|
|
9198
|
+
NgForOf,
|
|
9199
|
+
NgTemplateOutlet,
|
|
9200
|
+
NgSwitchCase,
|
|
9201
|
+
NgSwitch,
|
|
9202
|
+
NgSwitchDefault,
|
|
9203
|
+
GtrCreateComponentPipe,
|
|
9204
|
+
GtrFetchAttributePipe,
|
|
9205
|
+
GtrBadgeModule,
|
|
9206
|
+
GtrIconModule,
|
|
9207
|
+
GtrCheckboxModule,
|
|
9208
|
+
GtrSkeletonDirective,
|
|
9209
|
+
GtrButtonModule,
|
|
9210
|
+
], providers: [
|
|
9211
|
+
GtrSkeletonDirective,
|
|
9212
|
+
{
|
|
9213
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9214
|
+
useExisting: forwardRef((() => GtrTableMainComponent)),
|
|
9215
|
+
multi: true,
|
|
9216
|
+
},
|
|
9217
|
+
], template: "<ng-container *ngIf=\"data.length;else other\">\n <table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\">\n <thead>\n <th *ngIf=\"enableSelection\"><gtr-checkbox [id]=\"tableMainId+'-row-select-all'\"\n [attr.data-testid]=\"tableMainId+'-row-select-all'\" [checked]=\"fectchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" /></th>\n\n <th class={{column.align}} [class.hide]=\"column.hide\" *ngFor=\"let column of this.columns;let colIndex=index\">\n <div [class.gtr-header-label]='column.sorting.hasSorting'\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\n <ng-container [ngSwitch]=\"column | gtrFetchAttribute : 'headingType' : colIndex : columns\">\n <ng-container *ngSwitchCase=\"'innerHTML'\">\n <span [innerHTML]=\"column.label\"></span>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{column.label}}\n </ng-container>\n </ng-container>\n </div>\n <span class=\"gtr-header-sorting-wrapper\" *ngIf=\"column.sorting.hasSorting\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n </th>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of data;let rowIndex=index\">\n <td *ngIf=\"enableSelection\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n <td *ngFor=\"let column of row.columnsData; let colIndex=index\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'type' : colIndex : columns\"\n [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n <div *ngSwitchCase=\"'status'\" [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'innerHTML'\" [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'component'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template #template></ng-template>\n {{column?.value | gtrCreateComponent : templateRef}}\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'actions'\" class=\"overflow-auto\"\n [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n\n <div *ngSwitchDefault [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"/images/no-data.svg\">\n </div>\n <div class=\"gtr-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n <div [ngSwitch]=\"column | gtrFetchAttribute : 'wrap' : i : columns\">\n <div *ngSwitchCase=\"'TRUNCATE'\" title={{column?.value}}>\n {{column?.value?.length > 30 ? (column?.value?.slice(0, 30) + '....') : column?.value}}\n </div>\n\n <div *ngSwitchCase=\"'WRAP'\" class='word-wrap'>\n <span title={{column?.value}}> {{column?.value}} </span>\n </div>\n\n <div *ngSwitchDefault>{{column?.value}}</div>\n </div>\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute : 'align' : i : columns) + ' action-menu'\">\n <span class=\"gtr-data-label\" *ngFor=\"let action of column.actions;let actionIndex=index\">\n <ng-container *ngIf=\"!action.hide\">\n <div [ngSwitch]=\"action.type\">\n <div *ngSwitchCase=\"'button'\">\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'icon'\">\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'dropdown'\">\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'input'\">\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'textarea'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'toggle'\">\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n </div>\n <div *ngSwitchDefault>\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</div>\n </div>\n </div>\n </ng-container>\n </span>\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge type=\"pill\" [positionProperty]=\"{ 'align': (columnAttributes | gtrFetchAttribute : 'align' : i : columns)}\"\n [color]=\"columnAttributes | gtrFetchAttribute : 'color' : i : columns\">{{data}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div [innerHtml]=\"data\"></div>\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class='gtr-table-buttons'>\n <gtr-button [id]=\"tableMainId+'-col-action-btn-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-btn-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{action.name}}</gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\"> <gtr-icon\n [id]=\"tableMainId+'-col-action-icon-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-icon-'+i\"\n (click)=\"this.actionDone($event, row['id'], action)\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <input type='text' [id]=\"tableMainId+'-col-action-input-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-input-'+i\"\n [placeholder]=\"action.name\" (input)=\"this.actionDone($event, row['id'], action)\" />\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:var(--primary-text-color);text-decoration:underline}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2219%22 height%3D%2218%22 viewBox%3D%220 0 19 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M14 11.25L9.5 6.75L5 11.25%22 stroke%3D%22white%22 stroke-opacity%3D%220.5%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width%3D%2218%22 height%3D%2218%22 viewBox%3D%220 0 18 18%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%234B465C%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M13.5 11.25L9 6.75L4.5 11.25%22 stroke%3D%22%235D596D%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"] }]
|
|
9218
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { templateRef: [{
|
|
9219
|
+
type: ViewChildren,
|
|
9220
|
+
args: ['template', { read: ViewContainerRef }]
|
|
9221
|
+
}], childRowRef: [{
|
|
9222
|
+
type: ViewChildren,
|
|
9223
|
+
args: ['childRows', { read: ViewContainerRef }]
|
|
9224
|
+
}], enableSelection: [{
|
|
9225
|
+
type: Input
|
|
9226
|
+
}], isLoading: [{
|
|
9227
|
+
type: Input
|
|
9228
|
+
}], columns: [{
|
|
9229
|
+
type: Input
|
|
9230
|
+
}], tableMainId: [{
|
|
9231
|
+
type: Input
|
|
9232
|
+
}], data: [{
|
|
9233
|
+
type: Input
|
|
9234
|
+
}], onSelection: [{
|
|
9235
|
+
type: Output
|
|
9236
|
+
}], onAction: [{
|
|
9237
|
+
type: Output
|
|
9238
|
+
}], onSort: [{
|
|
9239
|
+
type: Output
|
|
9240
|
+
}] } });
|
|
9241
|
+
|
|
9242
|
+
class GtrTableComponent {
|
|
9243
|
+
constructor() {
|
|
9244
|
+
this.switchState = false;
|
|
9245
|
+
/**
|
|
9246
|
+
* Set the table type.
|
|
9247
|
+
* @default 'boolean'
|
|
9248
|
+
* @type TableType
|
|
9249
|
+
*/
|
|
9250
|
+
this.isResponsive = true;
|
|
9251
|
+
/**
|
|
9252
|
+
* Set the skeleton loading state.
|
|
9253
|
+
* @default 'boolean'
|
|
9254
|
+
* @type LoadingState
|
|
9255
|
+
*/
|
|
9256
|
+
this.loading = false;
|
|
9257
|
+
/**
|
|
9258
|
+
* Set the hide/show state of checbox.
|
|
9259
|
+
* @default 'boolean'
|
|
9260
|
+
* @type CheckBox State
|
|
9261
|
+
*/
|
|
9262
|
+
this.enableSelection = true;
|
|
9263
|
+
/**
|
|
9264
|
+
* Set the id of main web table.
|
|
9265
|
+
* @default 'string'
|
|
9266
|
+
* @type CheckBox State
|
|
9267
|
+
*/
|
|
9268
|
+
this.tableMainId = '';
|
|
9269
|
+
/**
|
|
9270
|
+
* Set id of responsive table.
|
|
9271
|
+
* @default 'string'
|
|
9272
|
+
* @type CheckBox State
|
|
9273
|
+
*/
|
|
9274
|
+
this.tableResponsiveId = '';
|
|
9275
|
+
/**
|
|
9276
|
+
* Table columns
|
|
9277
|
+
*/
|
|
9278
|
+
this.columns = [];
|
|
9279
|
+
/**
|
|
9280
|
+
* Table data
|
|
9281
|
+
*/
|
|
9282
|
+
this.data = [];
|
|
9283
|
+
/**
|
|
9284
|
+
* The selection changed eventemitter
|
|
9285
|
+
* @default '{ value: any; all: boolean }'
|
|
9286
|
+
* @type Event Emitter
|
|
9287
|
+
*/
|
|
9288
|
+
this.onSelection = new EventEmitter();
|
|
9289
|
+
/**
|
|
9290
|
+
* Action eventemitter
|
|
9291
|
+
*/
|
|
9292
|
+
this.onAction = new EventEmitter();
|
|
9293
|
+
/**
|
|
9294
|
+
* Sorting eventemitter
|
|
9295
|
+
*/
|
|
9296
|
+
this.onSort = new EventEmitter();
|
|
9297
|
+
}
|
|
9298
|
+
/**
|
|
9299
|
+
* To check screen size
|
|
9300
|
+
*/
|
|
9301
|
+
onResize(event) {
|
|
9302
|
+
event.target.innerWidth;
|
|
9303
|
+
if (event.target.innerWidth <= 768) {
|
|
9304
|
+
this.switchState = true;
|
|
9305
|
+
}
|
|
9306
|
+
else {
|
|
9307
|
+
this.switchState = false;
|
|
9308
|
+
}
|
|
9309
|
+
}
|
|
9310
|
+
ngOnInit() {
|
|
9311
|
+
this.switchState = this.isResponsive && window.innerWidth <= 768;
|
|
9312
|
+
}
|
|
9313
|
+
selectionChange(ev) {
|
|
9314
|
+
this.onSelection.emit(ev);
|
|
9315
|
+
}
|
|
9316
|
+
actionDone(ev) {
|
|
9317
|
+
this.onAction.emit(ev);
|
|
9318
|
+
}
|
|
9319
|
+
sorting(ev) {
|
|
9320
|
+
this.onSort.emit(ev);
|
|
9321
|
+
}
|
|
9322
|
+
ngOnDestroy() { }
|
|
9323
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9324
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTableComponent, isStandalone: true, selector: "gtr-table", inputs: { isResponsive: "isResponsive", loading: "loading", enableSelection: "enableSelection", tableMainId: "tableMainId", tableResponsiveId: "tableResponsiveId", columns: "columns", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
|
|
9325
|
+
{
|
|
9326
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9327
|
+
useExisting: forwardRef((() => GtrTableComponent)),
|
|
9328
|
+
multi: true,
|
|
9329
|
+
},
|
|
9330
|
+
], exportAs: ["gtrTable"], ngImport: i0, template: "<ng-container *ngIf=\"switchState\">\n <gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n<ng-container *ngIf=\"!switchState\">\n <gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n", styles: [":host{background:white;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eeeeee}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: GtrTableResponsiveComponent, selector: "gtr-table-responsive", inputs: ["isLoading", "enableSelection", "columns", "data", "tableResponsiveId"], outputs: ["onSelection", "onAction", "onSort"], exportAs: ["gtrTableResponsive"] }, { kind: "component", type: GtrTableMainComponent, selector: "gtr-table-main", inputs: ["enableSelection", "isLoading", "columns", "tableMainId", "data"], outputs: ["onSelection", "onAction", "onSort"], exportAs: ["gtrTableMain"] }] }); }
|
|
9331
|
+
}
|
|
9332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableComponent, decorators: [{
|
|
9333
|
+
type: Component,
|
|
9334
|
+
args: [{ selector: 'gtr-table', exportAs: 'gtrTable', standalone: true, imports: [
|
|
9335
|
+
NgClass,
|
|
9336
|
+
NgIf,
|
|
9337
|
+
NgForOf,
|
|
9338
|
+
NgTemplateOutlet,
|
|
9339
|
+
ReactiveFormsModule,
|
|
9340
|
+
GtrTableResponsiveComponent,
|
|
9341
|
+
GtrTableMainComponent,
|
|
9342
|
+
], providers: [
|
|
9343
|
+
{
|
|
9344
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9345
|
+
useExisting: forwardRef((() => GtrTableComponent)),
|
|
9346
|
+
multi: true,
|
|
9347
|
+
},
|
|
9348
|
+
], template: "<ng-container *ngIf=\"switchState\">\n <gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n<ng-container *ngIf=\"!switchState\">\n <gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\" />\n</ng-container>\n", styles: [":host{background:white;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eeeeee}\n"] }]
|
|
9349
|
+
}], ctorParameters: function () { return []; }, propDecorators: { isResponsive: [{
|
|
9350
|
+
type: Input
|
|
9351
|
+
}], loading: [{
|
|
9352
|
+
type: Input
|
|
9353
|
+
}], enableSelection: [{
|
|
9354
|
+
type: Input
|
|
9355
|
+
}], tableMainId: [{
|
|
9356
|
+
type: Input
|
|
9357
|
+
}], tableResponsiveId: [{
|
|
9358
|
+
type: Input
|
|
9359
|
+
}], columns: [{
|
|
9360
|
+
type: Input
|
|
9361
|
+
}], data: [{
|
|
9362
|
+
type: Input
|
|
9363
|
+
}], onSelection: [{
|
|
9364
|
+
type: Output
|
|
9365
|
+
}], onAction: [{
|
|
9366
|
+
type: Output
|
|
9367
|
+
}], onSort: [{
|
|
9368
|
+
type: Output
|
|
9369
|
+
}], onResize: [{
|
|
9370
|
+
type: HostListener,
|
|
9371
|
+
args: ['window:resize', ['$event']]
|
|
9372
|
+
}] } });
|
|
9373
|
+
|
|
9374
|
+
class GtrTableModule {
|
|
9375
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9376
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent], exports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent] }); }
|
|
9377
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, providers: [GtrBadgeComponent], imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent] }); }
|
|
9378
|
+
}
|
|
9379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTableModule, decorators: [{
|
|
9380
|
+
type: NgModule,
|
|
9381
|
+
args: [{
|
|
9382
|
+
imports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent],
|
|
9383
|
+
exports: [GtrTableComponent, GtrTableResponsiveComponent, GtrTableMainComponent],
|
|
9384
|
+
providers: [GtrBadgeComponent],
|
|
9385
|
+
}]
|
|
9386
|
+
}] });
|
|
9387
|
+
|
|
9687
9388
|
class GtrTabComponent {
|
|
9688
9389
|
constructor() {
|
|
9689
9390
|
this.label = '';
|
|
@@ -9825,5 +9526,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9825
9526
|
* Generated bundle index. Do not edit.
|
|
9826
9527
|
*/
|
|
9827
9528
|
|
|
9828
|
-
export { BreakpointInfix,
|
|
9529
|
+
export { BreakpointInfix, GtrAccordionComponent, GtrAccordionModule, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrBadgeModule, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDirectiveModule, GtrButtonModule, GtrCalendarComponent, GtrCalendarModule, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrCheckboxModule, GtrComponentName, GtrDatePickerComponent, GtrDatePickerModule, GtrDateRangePickerComponent, GtrDateRangePickerModule, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownModule, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFileInputModule, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormModule, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrIconModule, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrInputModule, GtrModalComponent, GtrModalModule, GtrNumericCounterComponent, GtrNumericCounterModule, GtrPaginationComponent, GtrPaginationModule, GtrPopoverComponent, GtrPopoverModule, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSelectModule, GtrSharedModule, GtrSkeletonComponent, GtrSkeletonDirective, GtrSkeletonModule, GtrStatCardComponent, GtrStatCardModule, GtrSwitchComponent, GtrSwitchModule, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableModule, GtrTableResponsiveComponent, GtrTabsModule, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTextareaModule, GtrTimePickerComponent, GtrTimePickerModule, GtrToasterComponent, GtrToasterModule, GtrToasterService, GtrTooltipComponent, GtrTooltipModule, GtrTrimTextPipe, GtrValidatePagePipe, RadioButtonhModule, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
9829
9530
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|