@gettrx/core-components-angular 1.0.53 → 1.0.55
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 +1 -1
- package/esm2022/lib/atoms/icon/gtr-icon.component.mjs +7 -4
- package/esm2022/lib/atoms/input/gtr-input.component.mjs +1 -1
- package/esm2022/lib/atoms/switch/gtr-switch.component.mjs +6 -3
- package/esm2022/lib/atoms/textarea/gtr-textarea.component.mjs +1 -1
- package/esm2022/lib/atoms/toaster/gtr-toaster.component.mjs +1 -1
- package/esm2022/lib/molecules/accordion/accordion/gtr-accordion.component.mjs +6 -3
- package/esm2022/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.mjs +6 -3
- package/esm2022/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.mjs +1 -1
- package/esm2022/lib/molecules/checkbox/checkbox/gtr-checkbox.component.mjs +1 -1
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +1 -1
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +1 -1
- package/esm2022/lib/molecules/file-input/file-input/gtr-file-input.component.mjs +3 -3
- package/esm2022/lib/molecules/input-color/gtr-input-color.component.mjs +1 -1
- package/esm2022/lib/molecules/modal/gtr-modal.component.mjs +6 -3
- package/esm2022/lib/molecules/modal/gtr-modal.module.mjs +5 -4
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.component.mjs +1 -1
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +6 -3
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +1 -1
- package/esm2022/lib/molecules/stat-card/gtr-stat-card.component.mjs +6 -3
- package/esm2022/lib/molecules/table/gtr-table.component.mjs +8 -5
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +7 -4
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +7 -4
- package/esm2022/lib/molecules/tabs/tab/gtr-tab.component.mjs +6 -3
- package/esm2022/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.mjs +6 -3
- package/fesm2022/gettrx-core-components-angular.mjs +2114 -2078
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/icon/gtr-icon.component.d.ts +2 -1
- package/lib/atoms/switch/gtr-switch.component.d.ts +2 -1
- package/lib/molecules/accordion/accordion/gtr-accordion.component.d.ts +2 -1
- package/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.d.ts +2 -1
- package/lib/molecules/modal/gtr-modal.component.d.ts +2 -1
- package/lib/molecules/modal/gtr-modal.module.d.ts +2 -1
- package/lib/molecules/pagination/pagination/gtr-pagination.component.d.ts +2 -1
- package/lib/molecules/stat-card/gtr-stat-card.component.d.ts +2 -1
- package/lib/molecules/table/gtr-table.component.d.ts +2 -1
- package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +2 -1
- package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +2 -1
- package/lib/molecules/tabs/tab/gtr-tab.component.d.ts +2 -1
- package/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.d.ts +2 -1
- package/package.json +2 -2
|
@@ -48,7 +48,7 @@ export class GtrBadgeComponent {
|
|
|
48
48
|
this.id = this.testid;
|
|
49
49
|
}
|
|
50
50
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { name: "name", dataTransactionName: "dataTransactionName", 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 [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrBadgeComponent, selector: "gtr-badge", inputs: { name: "name", dataTransactionName: "dataTransactionName", 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 [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name\"\n role=\"status\"\n [attr.aria-hidden]=\"hidden ? 'true' : 'false'\"\n [attr.aria-label]=\"ariaLabel || 'gtr-badges'\"\n [class]=\"'gtr-badge ' + type +' ' + color +' ' + shape +' ' + (hidden ? 'hide' : '') +' ' + position\"\n tabindex=\"0\"\n [style]=\"{\n top: positionProperty.top,\n left: positionProperty.left,\n bottom: positionProperty.bottom,\n right: positionProperty.right,\n }\"\n >\n <gtr-icon *ngIf=\"type === 'icon' && iconName\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n <ng-content></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:relative;--gtr-color-base-warning-100: rgb(242, 153, 74);--gtr-color-base-info-100: var(--gtr-color-base-primary-60);--gtr-color-base-dark-100: var(--gtr-color-base-black-60);--gtr-color-base-warning-10: rgb(242, 153, 74, .1);--gtr-color-base-info-10: var(--gtr-color-base-primary-10);--gtr-color-base-dark-10: var(--gtr-color-base-black-10)}.gtr-badge{width:-moz-fit-content;width:fit-content;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;cursor:default;font-family:Roboto,sans-serif;font-size:13px;font-style:normal;font-weight:500;line-height:14px}.gtr-badge.overlap{position:absolute;top:0;left:0}.gtr-badge.default{position:relative}.gtr-badge.hide{display:none}.gtr-badge.pill{padding:5px 10px;border-radius:6px}.gtr-badge.pill.round{padding:5px 10px;border-radius:20px}.gtr-badge.icon{padding:5px;border-radius:6px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.icon.round{padding:5px;border-radius:20px;min-width:24px;min-height:24px;width:auto;height:auto}.gtr-badge.dot{font-family:var(--gtr-component-font-family-base);font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-component-button-text-color-gray)}.gtr-badge.dot:before{content:\"\";width:10px;height:10px;margin-right:6px;border-radius:20px}.gtr-badge.dot.secondary:before{background:var(--gtr-color-base-secondary-100)}.gtr-badge.dot.danger:before{background:var(--gtr-color-base-danger-10)}.gtr-badge.dot.info:before{background:rgba(0,89,156,.6)}.gtr-badge.dot.brown:before{background:rgb(191,145,55)}.gtr-badge.dot.pink:before{background:rgb(210,72,131)}.gtr-badge.dot.purple:before{background:rgb(155,49,218)}.gtr-badge.dot.blue:before{background:rgba(0,89,156,.8)}.gtr-badge.dot.warning:before{background:rgb(242,153,74)}.gtr-badge.dot.success:before{background:rgba(0,158,71,.6)}.gtr-badge.dot.dark:before{background:rgba(0,0,0,.6)}.gtr-badge.dot.gray:before{background:rgb(168,170,174)}.gtr-badge.dot.dark-green:before{background:rgb(64,140,81)}.gtr-badge.secondary:not(.dot){color:var(--gtr-color-base-secondary-100);background:var(--gtr-color-base-secondary-10)}.gtr-badge.danger:not(.dot){color:var(--gtr-color-base-danger-100);background:var(--gtr-color-base-danger-10)}.gtr-badge.info:not(.dot){color:#00599c99;background:rgba(0,89,156,.1)}.gtr-badge.brown:not(.dot){color:#bf9137;background:rgba(255,235,197,.6)}.gtr-badge.pink:not(.dot){color:#d24883;background:rgba(255,212,231,.6)}.gtr-badge.purple:not(.dot){color:#9b31da;background:rgba(236,206,255,.6)}.gtr-badge.blue:not(.dot){color:#00599ccc;background:rgba(0,89,156,.1)}.gtr-badge.warning:not(.dot){color:#f2994a;background:rgba(242,153,74,.1)}.gtr-badge.success:not(.dot){color:#009e4799;background:rgba(0,158,71,.1)}.gtr-badge.dark:not(.dot){color:#0009;background:rgba(0,0,0,.1)}.gtr-badge.gray:not(.dot){color:#a8aaae;background:rgba(0,0,0,.05)}.gtr-badge.dark-green:not(.dot){color:#408c51;background:rgb(180,228,191)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
52
52
|
}
|
|
53
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrBadgeComponent, decorators: [{
|
|
54
54
|
type: Component,
|
|
@@ -2,6 +2,7 @@ import { Component, HostBinding, Input } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class GtrIconComponent {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.dataTransactionName = 'icon';
|
|
5
6
|
/**
|
|
6
7
|
* The font icon
|
|
7
8
|
*/
|
|
@@ -28,12 +29,14 @@ export class GtrIconComponent {
|
|
|
28
29
|
}
|
|
29
30
|
ngOnDestroy() { }
|
|
30
31
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrIconComponent, selector: "gtr-icon", inputs: { name: "name", weight: "weight", color: "color", size: "size", iconId: "iconId" }, host: { properties: { "style.height": "this.height" } }, ngImport: i0, template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }); }
|
|
32
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrIconComponent, selector: "gtr-icon", inputs: { dataTransactionName: "dataTransactionName", name: "name", weight: "weight", color: "color", size: "size", iconId: "iconId" }, host: { properties: { "style.height": "this.height" } }, ngImport: i0, template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [attr.data-transaction-name]=\"dataTransactionName + '--icon-'+ name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }); }
|
|
32
33
|
}
|
|
33
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrIconComponent, decorators: [{
|
|
34
35
|
type: Component,
|
|
35
|
-
args: [{ selector: 'gtr-icon', template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }]
|
|
36
|
-
}], propDecorators: {
|
|
36
|
+
args: [{ selector: 'gtr-icon', template: "<i [id]=\"iconId+'-icon'\" [attr.data-testid]=\"iconId+'-icon'\" [class]=\"'gtr-icon gtr-icon-'+name\"\n [attr.data-transaction-name]=\"dataTransactionName + '--icon-'+ name\"\n [style.font-size]=\"this.height\" [style.color]=\"this.color\" [style.font-weight]=\"this.weight\"></i>\n", styles: [":host{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;padding:0;margin:0}\n"] }]
|
|
37
|
+
}], propDecorators: { dataTransactionName: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], name: [{
|
|
37
40
|
type: Input
|
|
38
41
|
}], weight: [{
|
|
39
42
|
type: Input
|
|
@@ -47,4 +50,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
47
50
|
type: HostBinding,
|
|
48
51
|
args: ['style.height']
|
|
49
52
|
}] } });
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RyLWljb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9hdG9tcy9pY29uL2d0ci1pY29uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvYXRvbXMvaWNvbi9ndHItaWNvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQWEsTUFBTSxlQUFlLENBQUM7O0FBT3pFLE1BQU0sT0FBTyxnQkFBZ0I7SUFMN0I7UUFNVyx3QkFBbUIsR0FBVyxNQUFNLENBQUM7UUFDOUM7O1dBRUc7UUFDTSxTQUFJLEdBQVcsS0FBSyxDQUFDO1FBQzlCOztXQUVHO1FBQ00sV0FBTSxHQUFXLFFBQVEsQ0FBQztRQUNuQzs7V0FFRztRQUNNLFVBQUssR0FBVyxjQUFjLENBQUM7UUFReEM7O1dBRUc7UUFDTSxXQUFNLEdBQUcsRUFBRSxDQUFDO1FBR3JCLFdBQU0sR0FBRyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQzt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ovXG4gIEBJbnB1dCgpIHdlaWdodDogc3RyaW5nID0gJ25vcm1hbCc7XG4gIC8qKlxuICAgKiBUaGUgaWNvbiBjb2xvclxuICAgKi9cbiAgQElucHV0KCkgY29sb3I6IHN0cmluZyA9ICdjdXJyZW50Q29sb3InO1xuICAvKipcbiAgICogVGhlIGljb24gc2l6ZVxuICAgKi9cbiAgQElucHV0KCkgc2V0IHNpemUodmFsdWU6IG51bWJlcikge1xuICAgIHRoaXMuaGVpZ2h0ID0gdmFsdWUgKyAncHgnO1xuICB9XG5cbiAgLyoqXG4gICAqIFRoZSBlbGVtZW50IGlkXG4gICAqL1xuICBASW5wdXQoKSBpY29uSWQgPSAnJztcblxuICBASG9zdEJpbmRpbmcoJ3N0eWxlLmhlaWdodCcpXG4gIGhlaWdodCA9IHRoaXMuc2l6ZSArICdweCc7XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7fVxufVxuIiwiPGkgW2lkXT1cImljb25JZCsnLWljb24nXCIgW2F0dHIuZGF0YS10ZXN0aWRdPVwiaWNvbklkKyctaWNvbidcIiBbY2xhc3NdPVwiJ2d0ci1pY29uIGd0ci1pY29uLScrbmFtZVwiXG4gICBbYXR0ci5kYXRhLXRyYW5zYWN0aW9uLW5hbWVdPVwiZGF0YVRyYW5zYWN0aW9uTmFtZSArICctLWljb24tJysgbmFtZVwiXG4gIFtzdHlsZS5mb250LXNpemVdPVwidGhpcy5oZWlnaHRcIiBbc3R5bGUuY29sb3JdPVwidGhpcy5jb2xvclwiIFtzdHlsZS5mb250LXdlaWdodF09XCJ0aGlzLndlaWdodFwiPjwvaT5cbiJdfQ==
|
|
@@ -322,7 +322,7 @@ export class GtrInputComponent {
|
|
|
322
322
|
: false;
|
|
323
323
|
}
|
|
324
324
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
325
|
-
/** @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", name: "name", dataTransactionName: "dataTransactionName", 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", setFocus: "setFocus" }, 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\"\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 [name]=\"name + '-input'\" [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input'\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n <div class=\"input-icon\">\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'start'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition)\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value ? value : placeholder}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'end'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n </div>\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) }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:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}.input-icon{display:flex;align-items:center}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.start.isOnlyView{position:relative;line-height:0;margin:0 0 0 -5px}.gtr-input-icon.end.isOnlyView{position:relative;margin:0;right:auto;line-height:0}.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: i4.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
325
|
+
/** @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", name: "name", dataTransactionName: "dataTransactionName", 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", setFocus: "setFocus" }, 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\"\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 [name]=\"name + '-input'\" [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input'\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n <div class=\"input-icon\">\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'start'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition)\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value ? value : placeholder}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'end'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n </div>\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) }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:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}.input-icon{display:flex;align-items:center}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.start.isOnlyView{position:relative;line-height:0;margin:0 0 0 -5px}.gtr-input-icon.end.isOnlyView{position:relative;margin:0;right:auto;line-height:0}.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: i4.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
326
326
|
}
|
|
327
327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, decorators: [{
|
|
328
328
|
type: Component,
|
|
@@ -30,6 +30,7 @@ export class GtrSwitchComponent {
|
|
|
30
30
|
* accept boolean value
|
|
31
31
|
*/
|
|
32
32
|
this.tabIndex = 0;
|
|
33
|
+
this.dataTransactionName = 'switch';
|
|
33
34
|
/**
|
|
34
35
|
* To detect value change events in gtr switch
|
|
35
36
|
* @returns Custom event for latest checked state
|
|
@@ -85,11 +86,11 @@ export class GtrSwitchComponent {
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSwitchComponent, selector: "gtr-switch", inputs: { checked: "checked", switchId: "switchId", disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", label: "label" }, outputs: { gtrChange: "gtrChange" }, ngImport: i0, template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;top:0;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:3.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
89
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSwitchComponent, selector: "gtr-switch", inputs: { checked: "checked", switchId: "switchId", disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", label: "label", dataTransactionName: "dataTransactionName" }, outputs: { gtrChange: "gtrChange" }, ngImport: i0, template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;top:0;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:3.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
89
90
|
}
|
|
90
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSwitchComponent, decorators: [{
|
|
91
92
|
type: Component,
|
|
92
|
-
args: [{ selector: 'gtr-switch', template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;top:0;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:3.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"] }]
|
|
93
|
+
args: [{ selector: 'gtr-switch', template: "<label [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\" [attr.data-testid]=\"switchId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n [class.readonly]=\"readonly\"\n role=\"switch\">\n <input [class]=\"'gtr-switch-input'\"\n [id]=\"switchId+'-input'\"\n [attr.data-testid]=\"switchId+'-input'\"\n [class.readonly]=\"readonly\"\n type=\"checkbox\"\n [checked]=\"this.checked\"\n data-toggle=\"toggle\"\n [disabled]=\"this.disabled\"\n [readonly]=\"this.readonly\"\n [attr.aria-label]=\"this.label\"\n [attr.aria-describedBy]=\"this.label\"\n [attr.aria-readonly]=\"this.readonly\"\n [attr.aria-disabled]=\"this.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\" />\n <span class=\"gtr-switch-button\"></span>\n <span class=\"gtr-switch-label\"\n [id]=\"switchId+'-label'\"\n [attr.data-testid]=\"switchId+'-label'\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n *ngIf=\"label\">{{label}}</span>\n</label>\n", styles: [".gtr-switch-wrapper *,.gtr-switch-wrapper *:after,.gtr-switch-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-switch-wrapper{position:relative;top:0;display:flex;align-items:center;align-self:center;flex-direction:row;min-height:40px}.gtr-switch-wrapper.readonly{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-input{width:0px;height:0px;opacity:0}.gtr-switch-wrapper .gtr-switch-input:focus+.gtr-switch-button{border-color:var(--gtr-color-base-black-40)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button{opacity:.5;pointer-events:none;cursor:default;background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked+.gtr-switch-button:before{background:var(--gtr-color-font-inverse-primary);transform:translate(11px);-webkit-transform:translateX(11px);-ms-transform:translateX(11px)}.gtr-switch-wrapper .gtr-switch-input:disabled:checked~.gtr-switch-label{pointer-events:none;cursor:default;opacity:.5}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button{pointer-events:none;cursor:default;background:var(--gtr-color-base-black-20);border:solid 1px var(--gtr-color-base-black-10)}.gtr-switch-wrapper .gtr-switch-input:disabled+.gtr-switch-button:before{background:var(--gtr-color-base-black-20)}.gtr-switch-wrapper .gtr-switch-input:disabled~.gtr-switch-label{pointer-events:none;cursor:default}.gtr-switch-wrapper .gtr-switch-button{position:relative;width:30px;height:18px;background:var(--gtr-color-font-inverse-primary);border:solid 1px var(--gtr-color-base-black-20);border-radius:34px;transition:.4s all ease-in-out;cursor:pointer}.gtr-switch-wrapper .gtr-switch-button:before{position:absolute;content:\"\";width:10px;height:10px;border-radius:50%;top:3.32px;left:3px;background:var(--gtr-color-base-black-20);transition:.4s all ease-in-out}.gtr-switch-wrapper .gtr-switch-label{display:flex;align-self:center;position:relative;cursor:pointer;font-size:15px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-left:8px}\n"] }]
|
|
93
94
|
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
94
95
|
type: Optional
|
|
95
96
|
}, {
|
|
@@ -106,7 +107,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
106
107
|
type: Input
|
|
107
108
|
}], label: [{
|
|
108
109
|
type: Input
|
|
110
|
+
}], dataTransactionName: [{
|
|
111
|
+
type: Input
|
|
109
112
|
}], gtrChange: [{
|
|
110
113
|
type: Output
|
|
111
114
|
}] } });
|
|
112
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
115
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RyLXN3aXRjaC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi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RoaXMuaGFuZGxlS2V5RG93bigkZXZlbnQpXCJcbiAgICAgICAgIChjaGFuZ2UpPVwidGhpcy5oYW5kbGVDbGljaygpXCIgLz5cbiAgPHNwYW4gY2xhc3M9XCJndHItc3dpdGNoLWJ1dHRvblwiPjwvc3Bhbj5cbiAgPHNwYW4gY2xhc3M9XCJndHItc3dpdGNoLWxhYmVsXCJcbiAgICAgICAgW2lkXT1cInN3aXRjaElkKyctbGFiZWwnXCJcbiAgICAgICAgW2F0dHIuZGF0YS10ZXN0aWRdPVwic3dpdGNoSWQrJy1sYWJlbCdcIlxuICAgICAgICBbYXR0ci5kYXRhLXRyYW5zYWN0aW9uLW5hbWVdPVwiZGF0YVRyYW5zYWN0aW9uTmFtZVwiXG4gICAgICAgICpuZ0lmPVwibGFiZWxcIj57e2xhYmVsfX08L3NwYW4+XG48L2xhYmVsPlxuIl19
|
|
@@ -207,7 +207,7 @@ export class GtrTextareaComponent {
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
210
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { name: "name", dataTransactionName: "dataTransactionName", 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 [attr.name]=\"name\" [attr.data-transaction-name]=\"dataTransactionName || name\"\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;word-break:break-all}.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: i4.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
210
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrTextareaComponent, selector: "gtr-textarea", inputs: { name: "name", dataTransactionName: "dataTransactionName", 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 [attr.name]=\"name\" [attr.data-transaction-name]=\"dataTransactionName || name\"\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;word-break:break-all}.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: i4.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
211
211
|
}
|
|
212
212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrTextareaComponent, decorators: [{
|
|
213
213
|
type: Component,
|
|
@@ -69,7 +69,7 @@ export class GtrToasterComponent {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrToasterComponent, deps: [{ token: i1.GtrToasterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
72
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrToasterComponent, selector: "gtr-toaster", inputs: { id: "id", testId: "testId" }, viewQueries: [{ propertyName: "toasterElement", first: true, predicate: ["toasterElement"], descendants: true, static: true }], ngImport: i0, template: "<!-- gtr2-toaster.component.html -->\n\n<div\n tabindex=\"0\"\n #toasterElement\n class=\"gtr-toaster-wrapper\"\n [ngClass]=\"{\n 'show': open,\n 'hide': !open,\n 'top-right': toasterData && toasterData.position ? toasterData.position : 'top-right'\n }\"\n (keydown)=\"handleKeyDown($event)\"\n [id]=\"id\" [attr.data-test-id]=\"testId\"\n>\n <div\n *ngIf=\"open\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n class=\"gtr-toaster-content-wrapper\"\n [ngStyle]=\"{ 'background-color': toasterData.backgroundColor }\"\n >\n <div class=\"gtr-toaster-icon\">\n <gtr-badge\n [shape]=\"'default'\"\n [type]=\"'icon'\"\n [color]=\"\n toasterData.type === 'success'\n ? 'success'\n : toasterData.type === 'error'\n ? 'danger'\n : toasterData.type === 'info'\n ? 'info'\n : toasterData.type === 'warning'\n ? 'warning'\n : 'default'\n \"\n >\n <gtr-icon\n [name]=\"\n toasterData.type === 'success'\n ? 'check'\n : toasterData.type === 'error'\n ? 'x'\n : toasterData.type === 'info'\n ? 'info-circle'\n : toasterData.type === 'warning'\n ? 'alert-triangle'\n : 'message'\n \"\n [size]=\"18\"\n ></gtr-icon>\n </gtr-badge>\n </div>\n <div class=\"gtr-toaster-content\">\n <h5 [style.color]=\"toasterData.color\"><b>{{ (toasterData.heading || toasterData.type) | titlecase }}</b></h5>\n <p *ngIf=\"toasterData.message\" [style.color]=\"toasterData.messageColor\">{{ toasterData.message }}</p>\n </div>\n <div class=\"close\" (click)=\"hideToast()\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.gtr-toaster-wrapper *,.gtr-toaster-wrapper *:after,.gtr-toaster-wrapper *:before{box-sizing:border-box}.gtr-toaster-wrapper{position:fixed;z-index:9999;transition:.6s ease-in-out;display:none}.gtr-toaster-wrapper.top-right{right:12px;top:12px}.gtr-toaster-wrapper.top-left{top:12px;left:12px}.gtr-toaster-wrapper.bottom-left{bottom:12px;left:12px}.gtr-toaster-wrapper.bottom-right{bottom:12px;right:12px}.gtr-toaster-wrapper.center-left{left:12px;top:50%}.gtr-toaster-wrapper.center-right{right:12px;top:50%}.gtr-toaster-wrapper.show{animation:fade-in .4s linear;display:block}.gtr-toaster-wrapper.hide{animation:fade-out .4s linear;display:none}.gtr-toaster-wrapper .gtr-toaster-content-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;width:380px;max-width:380px;border-radius:6px;box-shadow:0 4px 16px #a5a3ae73;background:#fff;padding:20px;align-items:flex-start;box-sizing:border-box}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-icon{margin-right:12px}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content{flex-grow:1;padding:0;margin:0}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content h5{font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-bold);font-size:15px;line-height:22px;padding:0;margin:0;color:var(--gtr-color-base-black-100)}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content p{margin:2px 0 0;padding:0;font-size:13px!important;line-height:20px;color:var(--gtr-color-base-black-60);color:var(--Light-Typography-Color-Body-Text, #4b465c);font-weight:400}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .close{cursor:pointer;color:var(--gtr-color-base-black-60)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@media only screen and (max-width: 480px){.gtr-toaster-content-wrapper{width:100%!important}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "component", type: i4.GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "pipe", type: i2.TitleCasePipe, name: "titlecase" }] }); }
|
|
72
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrToasterComponent, selector: "gtr-toaster", inputs: { id: "id", testId: "testId" }, viewQueries: [{ propertyName: "toasterElement", first: true, predicate: ["toasterElement"], descendants: true, static: true }], ngImport: i0, template: "<!-- gtr2-toaster.component.html -->\n\n<div\n tabindex=\"0\"\n #toasterElement\n class=\"gtr-toaster-wrapper\"\n [ngClass]=\"{\n 'show': open,\n 'hide': !open,\n 'top-right': toasterData && toasterData.position ? toasterData.position : 'top-right'\n }\"\n (keydown)=\"handleKeyDown($event)\"\n [id]=\"id\" [attr.data-test-id]=\"testId\"\n>\n <div\n *ngIf=\"open\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n class=\"gtr-toaster-content-wrapper\"\n [ngStyle]=\"{ 'background-color': toasterData.backgroundColor }\"\n >\n <div class=\"gtr-toaster-icon\">\n <gtr-badge\n [shape]=\"'default'\"\n [type]=\"'icon'\"\n [color]=\"\n toasterData.type === 'success'\n ? 'success'\n : toasterData.type === 'error'\n ? 'danger'\n : toasterData.type === 'info'\n ? 'info'\n : toasterData.type === 'warning'\n ? 'warning'\n : 'default'\n \"\n >\n <gtr-icon\n [name]=\"\n toasterData.type === 'success'\n ? 'check'\n : toasterData.type === 'error'\n ? 'x'\n : toasterData.type === 'info'\n ? 'info-circle'\n : toasterData.type === 'warning'\n ? 'alert-triangle'\n : 'message'\n \"\n [size]=\"18\"\n ></gtr-icon>\n </gtr-badge>\n </div>\n <div class=\"gtr-toaster-content\">\n <h5 [style.color]=\"toasterData.color\"><b>{{ (toasterData.heading || toasterData.type) | titlecase }}</b></h5>\n <p *ngIf=\"toasterData.message\" [style.color]=\"toasterData.messageColor\">{{ toasterData.message }}</p>\n </div>\n <div class=\"close\" (click)=\"hideToast()\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.gtr-toaster-wrapper *,.gtr-toaster-wrapper *:after,.gtr-toaster-wrapper *:before{box-sizing:border-box}.gtr-toaster-wrapper{position:fixed;z-index:9999;transition:.6s ease-in-out;display:none}.gtr-toaster-wrapper.top-right{right:12px;top:12px}.gtr-toaster-wrapper.top-left{top:12px;left:12px}.gtr-toaster-wrapper.bottom-left{bottom:12px;left:12px}.gtr-toaster-wrapper.bottom-right{bottom:12px;right:12px}.gtr-toaster-wrapper.center-left{left:12px;top:50%}.gtr-toaster-wrapper.center-right{right:12px;top:50%}.gtr-toaster-wrapper.show{animation:fade-in .4s linear;display:block}.gtr-toaster-wrapper.hide{animation:fade-out .4s linear;display:none}.gtr-toaster-wrapper .gtr-toaster-content-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;width:380px;max-width:380px;border-radius:6px;box-shadow:0 4px 16px #a5a3ae73;background:#fff;padding:20px;align-items:flex-start;box-sizing:border-box}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-icon{margin-right:12px}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content{flex-grow:1;padding:0;margin:0}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content h5{font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-bold);font-size:15px;line-height:22px;padding:0;margin:0;color:var(--gtr-color-base-black-100)}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .gtr-toaster-content p{margin:2px 0 0;padding:0;font-size:13px!important;line-height:20px;color:var(--gtr-color-base-black-60);color:var(--Light-Typography-Color-Body-Text, #4b465c);font-weight:400}.gtr-toaster-wrapper .gtr-toaster-content-wrapper .close{cursor:pointer;color:var(--gtr-color-base-black-60)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@media only screen and (max-width: 480px){.gtr-toaster-content-wrapper{width:100%!important}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: i4.GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "pipe", type: i2.TitleCasePipe, name: "titlecase" }] }); }
|
|
73
73
|
}
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrToasterComponent, decorators: [{
|
|
75
75
|
type: Component,
|
|
@@ -55,6 +55,7 @@ export class GtrAccordionComponent {
|
|
|
55
55
|
* The accordion arrow icon boolean
|
|
56
56
|
*/
|
|
57
57
|
this.showArrowIcon = true;
|
|
58
|
+
this.dataTransactionName = 'accordion';
|
|
58
59
|
/**
|
|
59
60
|
* The accordion data eventemitter
|
|
60
61
|
*/
|
|
@@ -71,11 +72,11 @@ export class GtrAccordionComponent {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
74
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionComponent, selector: "gtr-accordion", inputs: { header: "header", status: "status", id: "id", testId: "testId", justifyContent: "justifyContent", prefixIcon: "prefixIcon", opened: "opened", iconSize: "iconSize", iconColor: "iconColor", iconWeight: "iconWeight", allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionState: "accordionState" }, ngImport: i0, template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\" (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "component", type: i3.GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
|
|
75
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionComponent, selector: "gtr-accordion", inputs: { header: "header", status: "status", id: "id", testId: "testId", justifyContent: "justifyContent", prefixIcon: "prefixIcon", opened: "opened", iconSize: "iconSize", iconColor: "iconColor", iconWeight: "iconWeight", allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon", dataTransactionName: "dataTransactionName" }, outputs: { accordionState: "accordionState" }, ngImport: i0, template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-toggle'\"\n (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: i3.GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
|
|
75
76
|
}
|
|
76
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, decorators: [{
|
|
77
78
|
type: Component,
|
|
78
|
-
args: [{ selector: 'gtr-accordion', template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\" (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"] }]
|
|
79
|
+
args: [{ selector: 'gtr-accordion', template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-toggle'\"\n (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"] }]
|
|
79
80
|
}], ctorParameters: function () { return []; }, propDecorators: { header: [{
|
|
80
81
|
type: Input
|
|
81
82
|
}], status: [{
|
|
@@ -102,7 +103,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
102
103
|
type: Input
|
|
103
104
|
}], showArrowIcon: [{
|
|
104
105
|
type: Input
|
|
106
|
+
}], dataTransactionName: [{
|
|
107
|
+
type: Input
|
|
105
108
|
}], accordionState: [{
|
|
106
109
|
type: Output
|
|
107
110
|
}] } });
|
|
108
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
111
|
+
//# sourceMapp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ICAgICAgICAoY2xpY2spPVwidG9nZ2xlU2VjdGlvbigpXCIgdGFiaW5kZXg9XCIwXCI+XG4gICAgICAgIDxkaXYgW2NsYXNzXT1cImp1c3RpZnlDb250ZW50ICsgJyBndHItcm93J1wiPlxuICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZ3RyLXd3XCI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwicHJlZml4SWNvblwiPlxuICAgICAgICAgICAgICA8Z3RyLWljb24gW25hbWVdPVwicHJlZml4SWNvblwiIFtzaXplXT1cImljb25TaXplXCIgW2NvbG9yXT1cImljb25Db2xvclwiIFt3ZWlnaHRdPVwiaWNvbldlaWdodFwiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJndHItYWNjb3JkaW9uLWljb25cIj48L2d0ci1pY29uPlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICB7eyBoZWFkZXIgfX1cbiAgICAgICAgICA8L3NwYW4+XG5cbiAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwic3RhdHVzPy5pY29uXCI+XG4gICAgICAgICAgICA8Z3RyLWljb24gdHlwZT1cInBpbGxcIiBbbmFtZV09XCJzdGF0dXM/Lm5hbWVcIj5cbiAgICAgICAgICAgIDwvZ3RyLWljb24+XG4gICAgICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwic3RhdHVzPy50ZXh0XCI+XG4gICAgICAgICAgICA8Z3RyLWJhZGdlIHR5cGU9XCJwaWxsXCIgW2NvbG9yXT1cInN0YXR1cz8uY29sb3JcIj5cbiAgICAgICAgICAgICAge3sgc3RhdHVzPy50ZXh0IH19PC9ndHItYmFkZ2U+XG4gICAgICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJzaG93QXJyb3dJY29uXCI+XG4gICAgICAgICAgPGd0ci1pY29uIFtuYW1lXT1cIidjaGV2cm9uLXJpZ2h0J1wiIFtzaXplXT1cIjI0XCIgY29sb3I9XCJ2YXIoLS1ndHItY29sb3ItYmFzZS1ibGFjay02MClcIlxuICAgICAgICAgICAgY2xhc3M9XCJndHItYWNjb3JkaW9uLWFycm93LWljb25cIiBbY2xhc3Mucm90YXRlLWljb25dPVwib3BlbmVkXCI+PC9ndHItaWNvbj5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICA8L2Rpdj5cbiAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJvcGVuZWRcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImd0ci1hY2NvcmRpb24tY29udGVudFwiPlxuICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
package/esm2022/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.mjs
CHANGED
|
@@ -19,6 +19,7 @@ export class GtrAccordionWrapperComponent {
|
|
|
19
19
|
* The accordion wrapper testing identifier
|
|
20
20
|
*/
|
|
21
21
|
this.testId = '';
|
|
22
|
+
this.dataTransactionName = 'accordion-wrapper';
|
|
22
23
|
/**
|
|
23
24
|
* The accordion wrapper expand boolean
|
|
24
25
|
*/
|
|
@@ -76,11 +77,11 @@ export class GtrAccordionWrapperComponent {
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionWrapperComponent, selector: "gtr-accordion-wrapper", inputs: { allowMultiple: "allowMultiple", id: "id", testId: "testId", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionStateChanged: "accordionStateChanged" }, queries: [{ propertyName: "accordions", predicate: GtrAccordionComponent }], ngImport: i0, template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
80
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionWrapperComponent, selector: "gtr-accordion-wrapper", inputs: { allowMultiple: "allowMultiple", id: "id", testId: "testId", dataTransactionName: "dataTransactionName", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionStateChanged: "accordionStateChanged" }, queries: [{ propertyName: "accordions", predicate: GtrAccordionComponent }], ngImport: i0, template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\" [attr.data-transaction-name]=\"dataTransactionName\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
80
81
|
}
|
|
81
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionWrapperComponent, decorators: [{
|
|
82
83
|
type: Component,
|
|
83
|
-
args: [{ selector: 'gtr-accordion-wrapper', template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
84
|
+
args: [{ selector: 'gtr-accordion-wrapper', template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\" [attr.data-transaction-name]=\"dataTransactionName\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
84
85
|
}], propDecorators: { accordionStateChanged: [{
|
|
85
86
|
type: Output
|
|
86
87
|
}], allowMultiple: [{
|
|
@@ -89,6 +90,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
89
90
|
type: Input
|
|
90
91
|
}], testId: [{
|
|
91
92
|
type: Input
|
|
93
|
+
}], dataTransactionName: [{
|
|
94
|
+
type: Input
|
|
92
95
|
}], expandAll: [{
|
|
93
96
|
type: Input
|
|
94
97
|
}], showArrowIcon: [{
|
|
@@ -97,4 +100,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
97
100
|
type: ContentChildren,
|
|
98
101
|
args: [GtrAccordionComponent]
|
|
99
102
|
}] } });
|
|
100
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
103
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RyLWFjY29yZGlvbi13cmFwcGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvbW9sZWN1bGVzL2FjY29yZGlvbi9hY2NvcmRpb24td3JhcHBlci9ndHItYWNjb3JkaW9uLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2xlY3VsZXMvYWNjb3JkaW9uL2FjY29yZGlvbi13cmFwcGVyL2d0ci1hY2NvcmRpb24td3JhcHBlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNuRyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQzs7QUFPN0UsTUFBTSxPQUFPLDRCQUE0QjtJQUx6QztRQU1FOztXQUVHO1FBRUgsMEJBQXFCLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFFOUQ7O1dBRUc7UUFFSCxrQkFBYSxHQUFZLEtBQUssQ0FBQztRQUUvQjs7V0FF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ICAgdGhpcy5hY2NvcmRpb25zPy50b0FycmF5KCkuZm9yRWFjaCgoYWNjb3JkaW9uKSA9PiB7XG4gICAgICAgICAgaWYgKGFjY29yZGlvbiAhPT0gc2VsZWN0ZWRBY2NvcmRpb24pIHtcbiAgICAgICAgICAgIGFjY29yZGlvbi5vcGVuZWQgPSBmYWxzZTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IG9wZW5lZEFjY29yZGlvbnMgPSB0aGlzLmFjY29yZGlvbnM/LmZpbHRlcihcbiAgICAgICAgICAoYWNjb3JkaW9uOiBHdHJBY2NvcmRpb25Db21wb25lbnQpID0+IGFjY29yZGlvbi5vcGVuZWQsXG4gICAgICAgICk7XG5cbiAgICAgICAgdGhpcy5hY2NvcmRpb25TdGF0ZUNoYW5nZWQuZW1pdCh7IGFjdGl2ZVNlY3Rpb25zOiBvcGVuZWRBY2NvcmRpb25zIH0pO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIiwiPGRpdiBbaWRdPVwiaWRcIiBbYXR0ci5kYXRhLXRlc3QtaWRdPVwidGVzdElkXCIgW2F0dHIuZGF0YS10cmFuc2FjdGlvbi1uYW1lXT1cImRhdGFUcmFuc2FjdGlvbk5hbWVcIj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
|
package/esm2022/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.mjs
CHANGED
|
@@ -60,7 +60,7 @@ export class GtrCalendarNavigationComponent {
|
|
|
60
60
|
this.navigationClick.emit({ direction, years: years });
|
|
61
61
|
}
|
|
62
62
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarNavigationComponent, deps: [{ token: i1.GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, { month: 'long' }) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, { year: 'numeric' }) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n", styles: [":root{--gtr-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"], dependencies: [{ kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: GtrIconModule }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
63
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrCalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"navigation\" class=\"calendar-nav-prev\">\n <button\n *ngIf=\"view !== 'days'\"\n (click)=\"handleNavigationClick('prev', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n (click)=\"handleNavigationClick('prev')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-left\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\">\n <button\n (click)=\"setView('months')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n >\n {{ date.toLocaleDateString(locale, { month: 'long' }) }}\n </button>\n <button\n (click)=\"setView('years')\"\n *ngIf=\"view !== 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\">\n {{ date.toLocaleDateString(locale, { year: 'numeric' }) }}\n </button>\n\n <button\n *ngIf=\"view === 'years'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n</div>\n\n<div *ngIf=\"navigation\" class=\"calendar-nav-next\">\n <button\n (click)=\"handleNavigationClick('next')\"\n *ngIf=\"view === 'days'\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevron-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n <button\n *ngIf=\"view !== 'days'\"\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n >\n <gtr-icon name=\"chevrons-right\"\n [size]=\"20\"></gtr-icon>\n </button>\n</div>\n", styles: [":root{--gtr-calendar-nav-date-color: var(--gtr-color-base-black-60) !important;--gtr-color-base-button-icon-bg: rgba(75, 70, 92, .08);--gtr-color-base-button-icon-color: #6F6B7D}.calendar-nav-prev .calendar-nav-icon-button,.calendar-nav-next .calendar-nav-icon-button{border-radius:50%;background-color:var(--gtr-color-base-button-icon-bg);color:var(--gtr-color-base-button-icon-color);height:28px;width:28px;padding:4px;margin:0;border:none}.calendar-nav-date .calendar-nav-date-button{border:none}.calendar-nav-date .calendar-nav-date-button:hover{color:var(--gtr-color-base-primary-base)!important}\n"], dependencies: [{ kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: GtrIconModule }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
64
64
|
}
|
|
65
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCalendarNavigationComponent, decorators: [{
|
|
66
66
|
type: Component,
|
|
@@ -69,7 +69,7 @@ export class GtrCheckboxComponent {
|
|
|
69
69
|
useExisting: forwardRef((() => GtrCheckboxComponent)),
|
|
70
70
|
multi: true,
|
|
71
71
|
},
|
|
72
|
-
], ngImport: i0, template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n>\n <input\n type=\"checkbox\"\n name=\"gtr-checkbox-input\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (change)=\"handleClick()\"\n (keydown)=\"handleKeydown($event)\"\n [attr.aria-checked]=\"checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.role]=\"readonly ? 'switch' : 'checkbox'\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\">\n <gtr-icon\n *ngIf=\"!disabled || (checked && disabled)\"\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n ></gtr-icon>\n </span>\n <span *ngIf=\"label\" class=\"gtr-checkbox-label\">{{ label }}</span>\n</label>\n", styles: [":root{--gtr-color-base-black-100: rgba(0, 0, 0, 0);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-primary-100: rgba(0, 96, 194, 1);--gtr-content-box-shadow-20: 0px 2px 4px rgba(0, 0, 0, .2);--gtr-color-base-white-100: rgba(0, 0, 0, 1)}:host{box-sizing:border-box}.gtr-checkbox-wrapper{display:flex;align-self:center;position:relative;top:0;cursor:pointer;font-size:13px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100)}.gtr-checkbox-wrapper .gtr-checkbox-label{padding-left:6px}.gtr-checkbox-wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.gtr-checkmark{height:18px;width:18px;border-radius:4px;background-color:var(--gtr-color-base-white-100);border:solid 1px var(--gtr-color-base-black-20)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled~.gtr-checkmark{background-color:var(--gtr-color-base-black-20);border-color:var(--gtr-color-base-black-10);cursor:default}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);opacity:.5;border-color:var(--gtr-color-base-primary-100);cursor:default;box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkbox-label{opacity:.5}.gtr-checkmark{color:var(--gtr-color-base-white-100)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
|
|
72
|
+
], ngImport: i0, template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n>\n <input\n type=\"checkbox\"\n name=\"gtr-checkbox-input\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (change)=\"handleClick()\"\n (keydown)=\"handleKeydown($event)\"\n [attr.aria-checked]=\"checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.role]=\"readonly ? 'switch' : 'checkbox'\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\">\n <gtr-icon\n *ngIf=\"!disabled || (checked && disabled)\"\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n ></gtr-icon>\n </span>\n <span *ngIf=\"label\" class=\"gtr-checkbox-label\">{{ label }}</span>\n</label>\n", styles: [":root{--gtr-color-base-black-100: rgba(0, 0, 0, 0);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-primary-100: rgba(0, 96, 194, 1);--gtr-content-box-shadow-20: 0px 2px 4px rgba(0, 0, 0, .2);--gtr-color-base-white-100: rgba(0, 0, 0, 1)}:host{box-sizing:border-box}.gtr-checkbox-wrapper{display:flex;align-self:center;position:relative;top:0;cursor:pointer;font-size:13px;line-height:22px;-webkit-user-select:none;user-select:none;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100)}.gtr-checkbox-wrapper .gtr-checkbox-label{padding-left:6px}.gtr-checkbox-wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.gtr-checkmark{height:18px;width:18px;border-radius:4px;background-color:var(--gtr-color-base-white-100);border:solid 1px var(--gtr-color-base-black-20)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100);box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled~.gtr-checkmark{background-color:var(--gtr-color-base-black-20);border-color:var(--gtr-color-base-black-10);cursor:default}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkmark{background-color:var(--gtr-color-base-primary-100);opacity:.5;border-color:var(--gtr-color-base-primary-100);cursor:default;box-shadow:var(--gtr-content-box-shadow-20)}.gtr-checkbox-wrapper input:disabled:checked~.gtr-checkbox-label{opacity:.5}.gtr-checkmark{color:var(--gtr-color-base-white-100)}.gtr-checkbox-wrapper input:checked~.gtr-checkmark{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
73
73
|
}
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrCheckboxComponent, decorators: [{
|
|
75
75
|
type: Component,
|