@gettrx/core-components-angular 1.1.28 → 2.0.0
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/fesm2022/gettrx-core-components-angular.mjs +294 -285
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/index.d.ts +3525 -1
- package/package.json +6 -3
- package/helpers/color.helper.d.ts +0 -4
- package/lib/atoms/badge/gtr-badge.component.d.ts +0 -28
- package/lib/atoms/badge/index.d.ts +0 -1
- package/lib/atoms/badge/public_api.d.ts +0 -1
- package/lib/atoms/button/gtr-button.component.d.ts +0 -42
- package/lib/atoms/button/gtr-button.types.d.ts +0 -3
- package/lib/atoms/button/index.d.ts +0 -1
- package/lib/atoms/button-directive/gtr-button-close.directive.d.ts +0 -13
- package/lib/atoms/button-directive/gtr-button.directive.d.ts +0 -48
- package/lib/atoms/button-directive/index.d.ts +0 -1
- package/lib/atoms/button-directive/public_api.d.ts +0 -2
- package/lib/atoms/button-dropdown/gtr-button-dropdown.component.d.ts +0 -33
- package/lib/atoms/button-dropdown/index.d.ts +0 -1
- package/lib/atoms/button-dropdown/public_api.d.ts +0 -1
- package/lib/atoms/display-value/gtr-display-value.component.d.ts +0 -28
- package/lib/atoms/display-value/index.d.ts +0 -1
- package/lib/atoms/display-value/public-api.d.ts +0 -1
- package/lib/atoms/icon/gtr-icon.component.d.ts +0 -29
- package/lib/atoms/icon/index.d.ts +0 -1
- package/lib/atoms/icon/public_api.d.ts +0 -1
- package/lib/atoms/input/gtr-input.component.d.ts +0 -172
- package/lib/atoms/input/index.d.ts +0 -1
- package/lib/atoms/input/public_api.d.ts +0 -1
- package/lib/atoms/input/utils/gtr-input-utils.d.ts +0 -30
- package/lib/atoms/popover/gtr-popover.component.d.ts +0 -49
- package/lib/atoms/popover/index.d.ts +0 -1
- package/lib/atoms/popover/public_api.d.ts +0 -1
- package/lib/atoms/radio-button/gtr-radio-button.component.d.ts +0 -92
- package/lib/atoms/radio-button/index.d.ts +0 -1
- package/lib/atoms/radio-button/public_api.d.ts +0 -1
- package/lib/atoms/skeleton/gtr-skeleton.component.d.ts +0 -12
- package/lib/atoms/skeleton/index.d.ts +0 -1
- package/lib/atoms/skeleton/public_api.d.ts +0 -2
- package/lib/atoms/skeleton/utils/gtr-skeleton.directive.d.ts +0 -15
- package/lib/atoms/switch/gtr-switch.component.d.ts +0 -58
- package/lib/atoms/switch/index.d.ts +0 -1
- package/lib/atoms/switch/public_api.d.ts +0 -1
- package/lib/atoms/textarea/gtr-textarea.component.d.ts +0 -113
- package/lib/atoms/textarea/index.d.ts +0 -1
- package/lib/atoms/textarea/public_api.d.ts +0 -1
- package/lib/atoms/textarea/utils/gtr-textarea.types.d.ts +0 -12
- package/lib/atoms/toaster/gtr-toaster.component.d.ts +0 -28
- package/lib/atoms/toaster/index.d.ts +0 -1
- package/lib/atoms/toaster/public_api.d.ts +0 -2
- package/lib/atoms/toaster/services/gtr-toaster.service.d.ts +0 -14
- package/lib/atoms/toaster/util/gtr-toaster.util.d.ts +0 -13
- package/lib/atoms/tooltip/gtr-tooltip.component.d.ts +0 -50
- package/lib/atoms/tooltip/index.d.ts +0 -1
- package/lib/atoms/tooltip/public_api.d.ts +0 -1
- package/lib/atoms/tooltip/utils/utils.d.ts +0 -1
- package/lib/core-components.types.d.ts +0 -46
- package/lib/directives/autosize/autosize.directive.d.ts +0 -32
- package/lib/directives/autosize/index.d.ts +0 -1
- package/lib/directives/autosize/public-api.d.ts +0 -1
- package/lib/molecules/accordion/accordion/gtr-accordion.component.d.ts +0 -60
- package/lib/molecules/accordion/accordion-wrapper/gtr-accordion-wrapper.component.d.ts +0 -40
- package/lib/molecules/accordion/index.d.ts +0 -1
- package/lib/molecules/accordion/public_api.d.ts +0 -2
- package/lib/molecules/calendar/calendar/gtr-calendar-class-view.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar/gtr-calendar.component.d.ts +0 -178
- package/lib/molecules/calendar/calendar-month/gtr-calendar-class-day.pipe.d.ts +0 -15
- package/lib/molecules/calendar/calendar-month/gtr-calendar-class-month.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/gtr-calendar-class-year.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/gtr-calendar-day-title.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/gtr-calendar-day.directive.d.ts +0 -33
- package/lib/molecules/calendar/calendar-month/gtr-calendar-day.pipe.d.ts +0 -8
- package/lib/molecules/calendar/calendar-month/gtr-calendar-month-title.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.d.ts +0 -136
- package/lib/molecules/calendar/calendar-month/gtr-calendar-month.pipe.d.ts +0 -7
- package/lib/molecules/calendar/calendar-month/gtr-calendar-weekday.pipe.d.ts +0 -8
- package/lib/molecules/calendar/calendar-navigation/gtr-calendar-navigation.component.d.ts +0 -32
- package/lib/molecules/calendar/gtr-calendar.service.d.ts +0 -36
- package/lib/molecules/calendar/gtr-calendar.utils.d.ts +0 -28
- package/lib/molecules/calendar/index.d.ts +0 -1
- package/lib/molecules/calendar/public_api.d.ts +0 -3
- package/lib/molecules/checkbox/checkbox/gtr-checkbox.component.d.ts +0 -56
- package/lib/molecules/checkbox/checkbox/gtr-checkbox.utils.d.ts +0 -4
- package/lib/molecules/checkbox/index.d.ts +0 -1
- package/lib/molecules/checkbox/public_api.d.ts +0 -2
- package/lib/molecules/date-picker/gtr-date-picker.component.d.ts +0 -19
- package/lib/molecules/date-picker/index.d.ts +0 -1
- package/lib/molecules/date-picker/public_api.d.ts +0 -1
- package/lib/molecules/date-range-picker/date-range-picker/gtr-custom-range-key.pipe.d.ts +0 -8
- package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.d.ts +0 -286
- package/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.types.d.ts +0 -7
- package/lib/molecules/date-range-picker/index.d.ts +0 -1
- package/lib/molecules/date-range-picker/public_api.d.ts +0 -1
- package/lib/molecules/dropdown/dropdown/gtr-dropdown.component.d.ts +0 -136
- package/lib/molecules/dropdown/dropdown-close/gtr-dropdown-close.directive.d.ts +0 -26
- package/lib/molecules/dropdown/dropdown-divider/gtr-dropdown-divider.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-header/gtr-dropdown-header.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item-plain.directive.d.ts +0 -6
- package/lib/molecules/dropdown/dropdown-item/gtr-dropdown-item.directive.d.ts +0 -36
- package/lib/molecules/dropdown/dropdown-menu/gtr-dropdown-menu.directive.d.ts +0 -34
- package/lib/molecules/dropdown/gtr-dropdown.service.d.ts +0 -13
- package/lib/molecules/dropdown/index.d.ts +0 -1
- package/lib/molecules/dropdown/public_api.d.ts +0 -8
- package/lib/molecules/file-input/file-input/gtr-file-input.component.d.ts +0 -74
- package/lib/molecules/file-input/file-input/gtr-file-input.model.d.ts +0 -3
- package/lib/molecules/file-input/index.d.ts +0 -1
- package/lib/molecules/file-input/public_api.d.ts +0 -2
- package/lib/molecules/form/form/gtr-form.directive.d.ts +0 -13
- package/lib/molecules/form/form-check/gtr-form-check-input.directive.d.ts +0 -31
- package/lib/molecules/form/form-check/gtr-form-check-label.directive.d.ts +0 -6
- package/lib/molecules/form/form-check/gtr-form-check.component.d.ts +0 -39
- package/lib/molecules/form/form-control/gtr-form-control.directive.d.ts +0 -31
- package/lib/molecules/form/form-feedback/gtr-form-feedback.component.d.ts +0 -17
- package/lib/molecules/form/form-floating/gtr-form-floating.directive.d.ts +0 -12
- package/lib/molecules/form/form-label/gtr-form-label.directive.d.ts +0 -16
- package/lib/molecules/form/form-select/gtr-form-select.directive.d.ts +0 -16
- package/lib/molecules/form/form-text/gtr-form-text.directive.d.ts +0 -6
- package/lib/molecules/form/index.d.ts +0 -1
- package/lib/molecules/form/input-group/gtr-input-group.component.d.ts +0 -12
- package/lib/molecules/form/input-group-text/gtr-input-group-text.directive.d.ts +0 -7
- package/lib/molecules/form/public_api.d.ts +0 -12
- package/lib/molecules/input-color/gtr-input-color.component.d.ts +0 -39
- package/lib/molecules/input-color/index.d.ts +0 -1
- package/lib/molecules/input-color/public_api.d.ts +0 -1
- package/lib/molecules/modal/gtr-modal.component.d.ts +0 -78
- package/lib/molecules/modal/index.d.ts +0 -1
- package/lib/molecules/modal/public_api.d.ts +0 -1
- package/lib/molecules/numeric-counter/index.d.ts +0 -1
- package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.component.d.ts +0 -28
- package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.const.d.ts +0 -1
- package/lib/molecules/numeric-counter/numeric-counter/gtr-numeric-counter.type.d.ts +0 -4
- package/lib/molecules/numeric-counter/public_api.d.ts +0 -3
- package/lib/molecules/pagination/helpers/index.d.ts +0 -2
- package/lib/molecules/pagination/helpers/models/gtr-pagination.interface.d.ts +0 -15
- package/lib/molecules/pagination/helpers/models/gtr-pagination.model.d.ts +0 -2
- package/lib/molecules/pagination/helpers/models/index.d.ts +0 -2
- package/lib/molecules/pagination/helpers/pipes/index.d.ts +0 -1
- package/lib/molecules/pagination/helpers/pipes/validate-page/gtr-validate-page.pipe.d.ts +0 -8
- package/lib/molecules/pagination/index.d.ts +0 -1
- package/lib/molecules/pagination/pagination/gtr-pagination.component.d.ts +0 -75
- package/lib/molecules/pagination/pagination/gtr-pagination.utils.d.ts +0 -21
- package/lib/molecules/pagination/public_api.d.ts +0 -2
- package/lib/molecules/select/helpers/enums/gtr-select.enums.d.ts +0 -4
- package/lib/molecules/select/helpers/enums/index.d.ts +0 -1
- package/lib/molecules/select/helpers/index.d.ts +0 -3
- package/lib/molecules/select/helpers/pipes/format-selected-value/gtr-format-selected-value.pipe.d.ts +0 -8
- package/lib/molecules/select/helpers/pipes/index.d.ts +0 -2
- package/lib/molecules/select/helpers/pipes/trim-text/gtr-trim-text.pipe.d.ts +0 -7
- package/lib/molecules/select/helpers/types/gtr-select.type.d.ts +0 -7
- package/lib/molecules/select/helpers/types/index.d.ts +0 -1
- package/lib/molecules/select/index.d.ts +0 -1
- package/lib/molecules/select/public_api.d.ts +0 -2
- package/lib/molecules/select/select/gtr-select.component.d.ts +0 -233
- package/lib/molecules/shared/gtr-html-attr.directive.d.ts +0 -16
- package/lib/molecules/shared/gtr-template-id.directive.d.ts +0 -9
- package/lib/molecules/shared/index.d.ts +0 -1
- package/lib/molecules/shared/public_api.d.ts +0 -2
- package/lib/molecules/stat-card/gtr-stat-card.component.d.ts +0 -58
- package/lib/molecules/stat-card/index.d.ts +0 -1
- package/lib/molecules/stat-card/public_api.d.ts +0 -1
- package/lib/molecules/table/dynamic-component.directive.d.ts +0 -24
- package/lib/molecules/table/dynamic-host.directive.d.ts +0 -13
- package/lib/molecules/table/gtr-fetch-attribute.pipe.d.ts +0 -9
- package/lib/molecules/table/gtr-table.component.d.ts +0 -89
- package/lib/molecules/table/gtr-table.interface.d.ts +0 -87
- package/lib/molecules/table/index.d.ts +0 -1
- package/lib/molecules/table/public_api.d.ts +0 -4
- package/lib/molecules/table/table-main/gtr-table-main.component.d.ts +0 -62
- package/lib/molecules/table/table-responsive/gtr-table-responsive.component.d.ts +0 -84
- package/lib/molecules/tabs/index.d.ts +0 -1
- package/lib/molecules/tabs/public_api.d.ts +0 -2
- package/lib/molecules/tabs/tab/gtr-tab.component.d.ts +0 -17
- package/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.d.ts +0 -24
- package/lib/molecules/tags-input/helpers/functions.d.ts +0 -2
- package/lib/molecules/tags-input/index.d.ts +0 -1
- package/lib/molecules/tags-input/public_api.d.ts +0 -1
- package/lib/molecules/tags-input/tag-input/gtr-tags-input.component.d.ts +0 -57
- package/lib/molecules/time-picker/gtr-time-picker.component.d.ts +0 -196
- package/lib/molecules/time-picker/gtr-time.utils.d.ts +0 -57
- package/lib/molecules/time-picker/index.d.ts +0 -1
- package/lib/molecules/time-picker/public_api.d.ts +0 -2
- package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.d.ts +0 -38
- package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-col.component.d.ts +0 -38
- package/parameters/colors.parameter.d.ts +0 -8
- package/parameters/variables.parameters.d.ts +0 -7
- package/public-api.d.ts +0 -37
|
@@ -54,10 +54,10 @@ class GtrIconComponent {
|
|
|
54
54
|
this.height = value + 'px';
|
|
55
55
|
}
|
|
56
56
|
ngOnDestroy() { }
|
|
57
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
57
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrIconComponent, isStandalone: true, 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"] }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrIconComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{ standalone: true, 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"] }]
|
|
63
63
|
}], propDecorators: { dataTransactionName: [{
|
|
@@ -122,10 +122,10 @@ class GtrBadgeComponent {
|
|
|
122
122
|
this.positionProperty = {};
|
|
123
123
|
this.id = this.testid;
|
|
124
124
|
}
|
|
125
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
126
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
125
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
126
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrBadgeComponent, isStandalone: true, 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: "@if (!hidden) {\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-badge'\"\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 @if (type === 'icon' && iconName) {\n <gtr-icon [dataTransactionName]=\"dataTransactionName || name + '-badge-icon'\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n }\n <ng-content></ng-content>\n </div>\n}\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: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:#00599c99}.gtr-badge.dot.brown:before{background:#bf9137}.gtr-badge.dot.pink:before{background:#d24883}.gtr-badge.dot.purple:before{background:#9b31da}.gtr-badge.dot.blue:before{background:#00599ccc}.gtr-badge.dot.warning:before{background:#f2994a}.gtr-badge.dot.success:before{background:#009e4799}.gtr-badge.dot.dark:before{background:#0009}.gtr-badge.dot.gray:before{background:#a8aaae}.gtr-badge.dot.dark-green:before{background:#408c51}.gtr-badge.dot.indigo:not(.dot){background:#6155f5}.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:#00599c1a}.gtr-badge.brown:not(.dot){color:#bf9137;background:#ffebc599}.gtr-badge.pink:not(.dot){color:#d24883;background:#ffd4e799}.gtr-badge.purple:not(.dot){color:#9b31da;background:#ecceff99}.gtr-badge.blue:not(.dot){color:#00599ccc;background:#00599c1a}.gtr-badge.warning:not(.dot){color:#f2994a;background:#f2994a1a}.gtr-badge.success:not(.dot){color:#009e4799;background:#009e471a}.gtr-badge.dark:not(.dot){color:#0009;background:#0000001a}.gtr-badge.gray:not(.dot){color:#a8aaae;background:#0000000d}.gtr-badge.dark-green:not(.dot){color:#408c51;background:#b4e4bf}.gtr-badge.indigo:not(.dot){color:#6155f5;background:#6155f51a}\n"], dependencies: [{ kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
127
127
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrBadgeComponent, decorators: [{
|
|
129
129
|
type: Component,
|
|
130
130
|
args: [{ selector: 'gtr-badge', imports: [GtrIconComponent], template: "@if (!hidden) {\n <div\n [id]=\"id\"\n [attr.data-testid]=\"testid\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-badge'\"\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 @if (type === 'icon' && iconName) {\n <gtr-icon [dataTransactionName]=\"dataTransactionName || name + '-badge-icon'\"\n [name]=\"iconName\" [size]=\"16\"></gtr-icon>\n }\n <ng-content></ng-content>\n </div>\n}\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: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:#00599c99}.gtr-badge.dot.brown:before{background:#bf9137}.gtr-badge.dot.pink:before{background:#d24883}.gtr-badge.dot.purple:before{background:#9b31da}.gtr-badge.dot.blue:before{background:#00599ccc}.gtr-badge.dot.warning:before{background:#f2994a}.gtr-badge.dot.success:before{background:#009e4799}.gtr-badge.dot.dark:before{background:#0009}.gtr-badge.dot.gray:before{background:#a8aaae}.gtr-badge.dot.dark-green:before{background:#408c51}.gtr-badge.dot.indigo:not(.dot){background:#6155f5}.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:#00599c1a}.gtr-badge.brown:not(.dot){color:#bf9137;background:#ffebc599}.gtr-badge.pink:not(.dot){color:#d24883;background:#ffd4e799}.gtr-badge.purple:not(.dot){color:#9b31da;background:#ecceff99}.gtr-badge.blue:not(.dot){color:#00599ccc;background:#00599c1a}.gtr-badge.warning:not(.dot){color:#f2994a;background:#f2994a1a}.gtr-badge.success:not(.dot){color:#009e4799;background:#009e471a}.gtr-badge.dark:not(.dot){color:#0009;background:#0000001a}.gtr-badge.gray:not(.dot){color:#a8aaae;background:#0000000d}.gtr-badge.dark-green:not(.dot){color:#408c51;background:#b4e4bf}.gtr-badge.indigo:not(.dot){color:#6155f5;background:#6155f51a}\n"] }]
|
|
131
131
|
}], ctorParameters: () => [], propDecorators: { name: [{
|
|
@@ -214,10 +214,10 @@ class GtrButtonDirective {
|
|
|
214
214
|
get tabIndex() {
|
|
215
215
|
return this.disabled ? '-1' : null;
|
|
216
216
|
}
|
|
217
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
218
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
217
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
218
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrButtonDirective, isStandalone: true, selector: "[gtrButton]", inputs: { active: ["active", "active", booleanAttribute], color: "color", disabled: ["disabled", "disabled", booleanAttribute], shape: "shape", size: "size", type: "type", variant: "variant" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses", "attr.aria-disabled": "this.ariaDisabled", "attr.aria-pressed": "this.isActive", "attr.disabled": "this.attrDisabled", "attr.tabindex": "this.tabIndex" } }, exportAs: ["gtrButton"], ngImport: i0 }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonDirective, decorators: [{
|
|
221
221
|
type: Directive,
|
|
222
222
|
args: [{
|
|
223
223
|
selector: '[gtrButton]',
|
|
@@ -279,10 +279,10 @@ class GtrButtonCloseDirective extends GtrButtonDirective {
|
|
|
279
279
|
active: this.active,
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
283
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
282
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonCloseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
283
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrButtonCloseDirective, isStandalone: true, selector: "[gtrButtonClose]", inputs: { white: ["white", "white", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
|
284
284
|
}
|
|
285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonCloseDirective, decorators: [{
|
|
286
286
|
type: Directive,
|
|
287
287
|
args: [{
|
|
288
288
|
selector: '[gtrButtonClose]',
|
|
@@ -337,10 +337,10 @@ class GtrButtonComponent {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
ngOnInit() { }
|
|
340
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
341
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: GtrButtonComponent, isStandalone: true, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", name: "name", dataTransactionName: "dataTransactionName", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-button'\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
340
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
341
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrButtonComponent, isStandalone: true, selector: "gtr-button", inputs: { type: "type", btnId: "btnId", name: "name", dataTransactionName: "dataTransactionName", color: "color", isLoading: "isLoading", variant: "variant", disabled: "disabled" }, ngImport: i0, template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-button'\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
342
342
|
}
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonComponent, decorators: [{
|
|
344
344
|
type: Component,
|
|
345
345
|
args: [{ standalone: true, selector: 'gtr-button', template: "<button [type]=\"this.type\" [class]=\"getCssClassMap()\" [id]=\"btnId\" [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-button'\" [attr.data-testid]=\"btnId\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\" [disabled]=\"this.disabled\">\n <ng-content></ng-content>\n</button>\n", styles: [":root{--gtr-content-layout-grid-row-columns: 6;--gtr-content-layout-grid-columns: 12;--gtr-content-box-shadow-base: 0px 6px 12px -6px rgba(24, 39, 75, .12), 0px 8px 24px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-80: 0px 8px 22px -6px rgba(24, 39, 75, .12), 0px 14px 64px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-70: 0px 8px 18px -6px rgba(24, 39, 75, .12), 0px 12px 42px -4px rgba(24, 39, 75, .12);--gtr-content-box-shadow-60: 0px 6px 14px -6px rgba(24, 39, 75, .12), 0px 10px 32px -4px rgba(24, 39, 75, .1);--gtr-content-box-shadow-40: 0px 6px 8px -6px rgba(24, 39, 75, .12), 0px 8px 16px -6px rgba(24, 39, 75, .08);--gtr-content-box-shadow-30: 0px 4px 6px -4px rgba(24, 39, 75, .12), 0px 8px 8px -4px rgba(24, 39, 75, .08);--gtr-content-box-shadow-20: 0px 2px 4px -2px rgba(24, 39, 75, .12), 0px 4px 4px -2px rgba(24, 39, 75, .08);--gtr-content-border-style: solid;--gtr-size-layout-grid-gutter-width: 1.5rem;--gtr-size-layout-container-max-width-xxl: 1320rem;--gtr-size-layout-container-max-width-xl: 1140rem;--gtr-size-layout-container-max-width-lg: 960rem;--gtr-size-layout-container-max-width-md: 720rem;--gtr-size-layout-container-max-width-sm: 540rem;--gtr-size-layout-breakpoints-xxl: 1400rem;--gtr-size-layout-breakpoints-xl: 1200rem;--gtr-size-layout-breakpoints-lg: 992rem;--gtr-size-layout-breakpoints-md: 768rem;--gtr-size-layout-breakpoints-sm: 576rem;--gtr-size-layout-breakpoints-xs: 0rem;--gtr-size-spacing-none: 0rem;--gtr-size-spacing-16: 10rem;--gtr-size-spacing-15: 6rem;--gtr-size-spacing-14: 5.5rem;--gtr-size-spacing-13: 5rem;--gtr-size-spacing-12: 4.5rem;--gtr-size-spacing-11: 4rem;--gtr-size-spacing-10: 3.5rem;--gtr-size-spacing-9: 3rem;--gtr-size-spacing-8: 2.5rem;--gtr-size-spacing-7: 2rem;--gtr-size-spacing-6: 1.75rem;--gtr-size-spacing-5: 1.5rem;--gtr-size-spacing-4: 1rem;--gtr-size-spacing-3: .75rem;--gtr-size-spacing-2: .5rem;--gtr-size-spacing-1: .25rem;--gtr-size-padding-xxl: 3rem;--gtr-size-padding-xl: 2rem;--gtr-size-padding-large: 1.5rem;--gtr-size-padding-medium: 1rem;--gtr-size-padding-small: .5rem;--gtr-size-padding-tiny: .25rem;--gtr-size-icon-xxl: 5rem;--gtr-size-icon-xl: 3rem;--gtr-size-icon-large: 2.5rem;--gtr-size-icon-base: 2rem;--gtr-size-icon-small: 1.5rem;--gtr-size-font-heading-5: 1.25rem;--gtr-size-font-heading-4: 1.5rem;--gtr-size-font-heading-3: 1.75rem;--gtr-size-font-heading-2: 2rem;--gtr-size-font-heading-1: 2.5rem;--gtr-size-font-weight-bolder: 800rem;--gtr-size-font-weight-bold: 700rem;--gtr-size-font-weight-semibold: 600rem;--gtr-size-font-weight-medium: 500rem;--gtr-size-font-weight-normal: 400rem;--gtr-size-font-weight-light: 300rem;--gtr-size-font-weight-lighter: 200rem;--gtr-size-font-size-lg: 1.25rem;--gtr-size-font-size-sm: .875rem;--gtr-size-font-size-base: 1rem;--gtr-size-font-size-root: 1rem;--gtr-size-border-radius-pill: 50rem;--gtr-size-border-radius-xxl: 2rem;--gtr-size-border-radius-xl: 1.5rem;--gtr-size-border-radius-lg: 1rem;--gtr-size-border-radius-sm: .75rem;--gtr-size-border-radius-xxs: .25rem;--gtr-size-border-radius-base: .5rem;--gtr-size-border-radius-none: 0rem;--gtr-size-border-width-bolder: 5rem;--gtr-size-border-width-bold: 4rem;--gtr-size-border-width-semibold: 3rem;--gtr-size-border-width-medium: 2rem;--gtr-size-border-width-normal: 1rem;--gtr-component-position-100: 100%;--gtr-component-position-50: 50%;--gtr-component-position-0: 0;--gtr-component-font-line-height-lg: 2;--gtr-component-font-line-height-sm: 1.25;--gtr-component-font-line-height-base: 1.5;--gtr-component-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--gtr-component-font-family-sans-serif: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--gtr-component-button-text-align: center;--gtr-component-button-font-size: 2rem;--gtr-color-base-white-pressed: #d9d9d9;--gtr-color-base-white-hover: #e6e6e6;--gtr-color-base-white-100: #ffffff;--gtr-color-base-white-80: rgba(255, 255, 255, .8);--gtr-color-base-white-60: rgba(255, 255, 255, .6);--gtr-color-base-white-40: rgba(255, 255, 255, .4);--gtr-color-base-white-20: rgba(255, 255, 255, .2);--gtr-color-base-white-10: rgba(255, 255, 255, .1);--gtr-color-base-white-5: rgba(255, 255, 255, .05);--gtr-color-base-black-pressed: #000000;--gtr-color-base-black-hover: #000000;--gtr-color-base-black-100: #000000;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-pressed: #d71a1c;--gtr-color-base-danger-hover: #e42728;--gtr-color-base-danger-100: #ea5455;--gtr-color-base-danger-80: rgba(234, 84, 85, .8);--gtr-color-base-danger-60: rgba(234, 84, 85, .6);--gtr-color-base-danger-40: rgba(234, 84, 85, .4);--gtr-color-base-danger-20: rgba(234, 84, 85, .2);--gtr-color-base-danger-10: rgba(234, 84, 85, .1);--gtr-color-base-danger-5: rgba(234, 84, 85, .05);--gtr-color-base-success-pressed: #005125;--gtr-color-base-success-hover: #006b30;--gtr-color-base-success-100: #009e47;--gtr-color-base-success-80: rgba(0, 158, 71, .8);--gtr-color-base-success-60: rgba(0, 158, 71, .6);--gtr-color-base-success-40: rgba(0, 158, 71, .4);--gtr-color-base-success-20: rgba(0, 158, 71, .2);--gtr-color-base-success-10: rgba(0, 158, 71, .1);--gtr-color-base-success-5: rgba(0, 158, 71, .05);--gtr-color-base-secondary-pressed: #df7210;--gtr-color-base-secondary-hover: #ef7e1a;--gtr-color-base-secondary-100: #f2994a;--gtr-color-base-secondary-80: rgba(242, 153, 74, .8);--gtr-color-base-secondary-60: rgba(242, 153, 74, .6);--gtr-color-base-secondary-40: rgba(242, 153, 74, .4);--gtr-color-base-secondary-20: rgba(242, 153, 74, .2);--gtr-color-base-secondary-10: rgba(242, 153, 74, .1);--gtr-color-base-secondary-5: rgba(242, 153, 74, .05);--gtr-color-base-primary-pressed: #002d4f;--gtr-color-base-primary-hover: #003c69;--gtr-color-base-primary-100: #00599c;--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-primary-60: rgba(0, 89, 156, .6);--gtr-color-base-primary-40: rgba(0, 89, 156, .4);--gtr-color-base-primary-20: rgba(0, 89, 156, .2);--gtr-color-base-primary-10: rgba(0, 89, 156, .1);--gtr-color-base-primary-5: rgba(0, 89, 156, .05);--gtr-content-layout-container-padding-x: var(--gtr-size-layout-grid-gutter-width);--gtr-content-box-shadow-50: var(--gtr-content-box-shadow-base);--gtr-size-spacing-base: var(--gtr-size-spacing-4);--gtr-size-padding-base: var(--gtr-size-padding-medium);--gtr-size-font-heading-6: var(--gtr-size-font-size-base);--gtr-size-font-weight-base: var(--gtr-size-font-weight-normal);--gtr-size-border-radius-xs: var(--gtr-size-border-radius-base);--gtr-component-font-family-code: var(--gtr-component-font-family-monospace);--gtr-component-font-family-base: var(--gtr-component-font-family-sans-serif);--gtr-component-button-background-color-danger-hover: var(--gtr-color-base-danger-hover);--gtr-component-button-background-color-danger-focus: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-active: var(--gtr-color-base-danger-pressed);--gtr-component-button-background-color-danger-disabled: var(--gtr-color-base-danger-40);--gtr-component-button-background-color-danger-base: var(--gtr-color-base-danger-100);--gtr-component-button-background-color-success-hover: var(--gtr-color-base-success-hover);--gtr-component-button-background-color-success-focus: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-active: var(--gtr-color-base-success-pressed);--gtr-component-button-background-color-success-disabled: var(--gtr-color-base-success-40);--gtr-component-button-background-color-success-base: var(--gtr-color-base-success-100);--gtr-component-button-background-color-secondary-hover: var(--gtr-color-base-secondary-hover);--gtr-component-button-background-color-secondary-focus: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-active: var(--gtr-color-base-secondary-pressed);--gtr-component-button-background-color-secondary-disabled: var(--gtr-color-base-secondary-40);--gtr-component-button-background-color-secondary-base: var(--gtr-color-base-secondary-100);--gtr-component-button-background-color-primary-hover: var(--gtr-color-base-primary-hover);--gtr-component-button-background-color-primary-focus: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-active: var(--gtr-color-base-primary-pressed);--gtr-component-button-background-color-primary-disabled: var(--gtr-color-base-primary-40);--gtr-component-button-background-color-primary-base: var(--gtr-color-base-primary-100);--gtr-component-button-background-color-gray-hover: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-focus: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-active: var(--gtr-color-base-black-10);--gtr-component-button-background-color-gray-disabled: var(--gtr-color-base-black-5);--gtr-component-button-background-color-gray-base: var(--gtr-color-base-black-5);--gtr-component-button-text-color-gray: var(--gtr-color-base-black-100);--gtr-component-button-padding: var(--gtr-size-padding-medium);--gtr-color-font-inverse-white: var(--gtr-color-base-black-80);--gtr-color-font-inverse-black: var(--gtr-color-base-white-100);--gtr-color-font-inverse-danger: var(--gtr-color-base-white-100);--gtr-color-font-inverse-success: var(--gtr-color-base-white-100);--gtr-color-font-inverse-secondary: var(--gtr-color-base-white-100);--gtr-color-font-inverse-primary: var(--gtr-color-base-white-100);--gtr-color-font-white: var(--gtr-color-base-white-100);--gtr-color-font-black: var(--gtr-color-base-black-100);--gtr-color-font-danger: var(--gtr-color-base-danger-100);--gtr-color-font-success: var(--gtr-color-base-success-100);--gtr-color-font-secondary: var(--gtr-color-base-secondary-100);--gtr-color-font-primary: var(--gtr-color-base-primary-100);--gtr-color-border-white: var(--gtr-color-base-white-100);--gtr-color-border-black: var(--gtr-color-base-black-100);--gtr-color-border-danger: var(--gtr-color-base-danger-100);--gtr-color-border-success: var(--gtr-color-base-success-100);--gtr-color-border-secondary: var(--gtr-color-base-secondary-100);--gtr-color-border-primary: var(--gtr-color-base-primary-100);--gtr-color-base-white-base: var(--gtr-color-base-white-100);--gtr-color-base-black-base: var(--gtr-color-base-black-100);--gtr-color-base-danger-base: var(--gtr-color-base-danger-100);--gtr-color-base-success-base: var(--gtr-color-base-success-100);--gtr-color-base-secondary-base: var(--gtr-color-base-secondary-100);--gtr-color-base-primary-base: var(--gtr-color-base-primary-100);--gtr-color-background-danger: var(--gtr-color-base-danger-100);--gtr-color-background-success: var(--gtr-color-base-success-100);--gtr-color-background-base: var(--gtr-color-base-white-100);--gtr-component-button-text-color-danger: var(--gtr-color-font-inverse-danger);--gtr-component-button-text-color-success: var(--gtr-color-font-inverse-success);--gtr-component-button-text-color-secondary: var(--gtr-color-font-inverse-secondary);--gtr-component-button-text-color-primary: var(--gtr-color-font-inverse-primary)}:host{box-sizing:border-box}:host([disabled]){pointer-events:none}button{font-family:var(--gtr-component-font-family-base);line-height:18px;font-size:15px;font-weight:400;letter-spacing:.43px;cursor:pointer;border:1px solid transparent;border-radius:6px;padding:8px 12px 8px 10px;display:flex;justify-content:center;align-items:center;outline:none}button.raised{box-shadow:0 2px 4px #a5a3ae4d}button.raised,button.flat{color:var(--gtr-component-button-text-color-primary)}button.raised.primary,button.flat.primary{background-color:var(--gtr-color-base-primary-base)}button.raised.primary:hover,button.flat.primary:hover{background-color:var(--gtr-color-base-primary-hover)}button.raised.primary:active,button.raised.primary:focus,button.flat.primary:active,button.flat.primary:focus{background-color:var(--gtr-color-base-primary-pressed)}button.raised.primary:disabled,button.raised.primary.disabled,button.flat.primary:disabled,button.flat.primary.disabled{background-color:var(--gtr-color-base-primary-40)}button.raised.secondary,button.flat.secondary{background-color:var(--gtr-color-base-secondary-base);color:var(--gtr-component-button-text-color-secondary)!important}button.raised.secondary:hover,button.flat.secondary:hover{background-color:var(--gtr-color-base-secondary-hover)}button.raised.secondary:active,button.raised.secondary:focus,button.flat.secondary:active,button.flat.secondary:focus{background-color:var(--gtr-color-base-secondary-pressed)}button.raised.secondary:disabled,button.raised.secondary.disabled,button.flat.secondary:disabled,button.flat.secondary.disabled{background-color:var(--gtr-color-base-secondary-40)}button.raised.success,button.flat.success{background-color:var(--gtr-color-base-success-base)}button.raised.success:hover,button.flat.success:hover{background-color:var(--gtr-color-base-success-hover)}button.raised.success:active,button.raised.success:focus,button.flat.success:active,button.flat.success:focus{background-color:var(--gtr-color-base-success-pressed)}button.raised.success:disabled,button.raised.success.disabled,button.flat.success:disabled,button.flat.success.disabled{background-color:var(--gtr-color-base-success-40)}button.raised.danger,button.flat.danger{background-color:var(--gtr-color-base-danger-base)}button.raised.danger:hover,button.flat.danger:hover{background-color:var(--gtr-color-base-danger-hover)}button.raised.danger:active,button.raised.danger:focus,button.flat.danger:active,button.flat.danger:focus{background-color:var(--gtr-color-base-danger-pressed)}button.raised.danger:disabled,button.raised.danger.disabled,button.flat.danger:disabled,button.flat.danger.disabled{background-color:var(--gtr-color-base-danger-40)}button.raised.gray,button.flat.gray{background-color:var(--gtr-component-button-background-color-gray-base);color:var(--gtr-color-base-black-80, rgba(0, 0, 0, .8))}button.raised.gray:hover,button.flat.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:active,button.raised.gray:focus,button.flat.gray:active,button.flat.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.raised.gray:disabled,button.raised.gray.disabled,button.flat.gray:disabled,button.flat.gray.disabled{background-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline{background-color:transparent}button.outline.primary{border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-primary-base)}button.outline.primary:hover{background-color:var(--gtr-color-base-primary-base);border-color:var(--gtr-color-base-primary-base);color:var(--gtr-color-base-white-base)}button.outline.primary:active,button.outline.primary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-primary-pressed);border-color:var(--gtr-color-base-primary-pressed)}button.outline.primary:disabled,button.outline.primary.disabled{color:var(--gtr-color-base-primary-40);border-color:var(--gtr-color-base-primary-40)}button.outline.secondary{border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-secondary-base)}button.outline.secondary:hover{background-color:var(--gtr-color-base-secondary-base);border-color:var(--gtr-color-base-secondary-base);color:var(--gtr-color-base-white-base)}button.outline.secondary:active,button.outline.secondary:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-secondary-pressed);border-color:var(--gtr-color-base-secondary-pressed)}button.outline.secondary:disabled,button.outline.secondary.disabled{color:var(--gtr-color-base-secondary-40);border-color:var(--gtr-color-base-secondary-40)}button.outline.success{border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-success-base)}button.outline.success:hover{background-color:var(--gtr-color-base-success-base);border-color:var(--gtr-color-base-success-base);color:var(--gtr-color-base-white-base)}button.outline.success:active,button.outline.success:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-success-pressed);border-color:var(--gtr-color-base-success-pressed)}button.outline.success:disabled,button.outline.success.disabled{color:var(--gtr-color-base-success-40);border-color:var(--gtr-color-base-success-40)}button.outline.danger{border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-danger-base)}button.outline.danger:hover{background-color:var(--gtr-color-base-danger-base);border-color:var(--gtr-color-base-danger-base);color:var(--gtr-color-base-white-base)}button.outline.danger:active,button.outline.danger:focus{color:var(--gtr-color-base-white-base);background-color:var(--gtr-color-base-danger-pressed);border-color:var(--gtr-color-base-danger-pressed)}button.outline.danger:disabled,button.outline.danger.disabled{color:var(--gtr-color-base-danger-40);border-color:var(--gtr-color-base-danger-40)}button.outline.gray{border-color:var(--gtr-color-base-black-40);color:var(--gtr-color-base-black-80)}button.outline.gray:hover{background-color:var(--gtr-component-button-background-color-gray-hover);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:active,button.outline.gray:focus{background-color:var(--gtr-component-button-background-color-gray-active);border-color:transparent;color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.outline.gray:disabled,button.outline.gray.disabled{border-color:var(--gtr-component-button-background-color-gray-disabled);color:var(--gtr-color-base-black-40, rgba(0, 0, 0, .4))}button.link{border-color:transparent;background-color:transparent}button.link:hover{text-decoration:underline}button.link.primary{color:var(--gtr-color-base-primary-base)}button.link.primary:disabled,button.link.primary.disabled{color:var(--gtr-color-base-primary-40)}button.link.secondary{color:var(--gtr-color-base-secondary-base)}button.link.secondary:disabled,button.link.secondary.disabled{color:var(--gtr-color-base-secondary-40)}button.link.success{color:var(--gtr-color-base-success-base)}button.link.success:disabled,button.link.success.disabled{color:var(--gtr-color-base-success-40)}button.link.danger{color:var(--gtr-color-base-danger-base)}button.link.danger:disabled,button.link.danger.disabled{color:var(--gtr-color-base-danger-40)}button.link.gray{color:var(--gtr-color-base-black-80)}button.link.gray:disabled,button.link.gray.disabled{color:var(--gtr-color-base-black-40)}.button--loading:before{content:\" \";width:.75em;height:.75em;margin-right:.5em;display:inline-block;border-radius:50%;border:2px solid #fff;border-color:#fff transparent #fff transparent;animation:loading-spinner-animation 1s linear infinite}@keyframes loading-spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
346
346
|
}], propDecorators: { type: [{
|
|
@@ -410,10 +410,10 @@ class GtrButtonDropdownComponent {
|
|
|
410
410
|
onSelectOption(option) {
|
|
411
411
|
this.onSelect.emit(option);
|
|
412
412
|
}
|
|
413
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
414
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
413
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonDropdownComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
414
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrButtonDropdownComponent, isStandalone: true, selector: "gtr-button-dropdown", inputs: { options: "options", color: "color", backgroundColor: "backgroundColor", type: "type", btnId: "btnId", name: "name", dataTransactionName: "dataTransactionName" }, outputs: { onSelect: "onSelect" }, host: { listeners: { "document:click": "closeDropdown($event)" } }, viewQueries: [{ propertyName: "dropdownMenu", first: true, predicate: ["dropdownMenu"], descendants: true }], ngImport: i0, template: "<div class=\"dropdown\">\n <button class=\"dropbtn\" [type]=\"type\" [name]=\"name\" [style.color]=\"color\" [id]=\"btnId\" [style.background-color]=\"backgroundColor\" (click)=\"toggleDropdown($event)\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-button-dropdown'\" [attr.data-testid]=\"btnId\">\n Actions\n <span class=\"arrow\" [class]=\"{ 'open': isDropdownOpen }\">▾</span>\n </button>\n <div class=\"dropdown-content\" [class]=\"{ show: isDropdownOpen }\" #dropdownMenu [style.top]=\"dropdownPosition.top\"\n [style.left]=\"dropdownPosition.left\" style=\"position: fixed;\">\n @for (option of options; track $index) {\n <a (click)=\"onSelectOption(option)\">{{option?.name}}</a>\n }\n </div>\n</div>\n", styles: [":host{--iso-search-wrapper-width: 19.6rem}.dropdown{position:relative}.dropbtn{background-color:var(--secondary-color);color:#fff;padding:8px 12px 8px 10px;font-size:16px;border:none;cursor:pointer;display:flex;align-items:center;border-radius:6px}.arrow{margin-left:8px;transition:transform .2s ease}.arrow.open{transform:rotate(180deg)}.dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;border:1px solid #ddd;border-radius:4px;z-index:1000}.show{display:block}.dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content a:hover{background-color:#ddd}@media only screen and (max-width: 576px){:host{--iso-search-wrapper-width: 21.6rem}}.confirmation-content ul{padding:.5rem 1rem}.confirmation-content ul li{list-style-type:disc!important}\n"] }); }
|
|
415
415
|
}
|
|
416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrButtonDropdownComponent, decorators: [{
|
|
417
417
|
type: Component,
|
|
418
418
|
args: [{ standalone: true, selector: 'gtr-button-dropdown', template: "<div class=\"dropdown\">\n <button class=\"dropbtn\" [type]=\"type\" [name]=\"name\" [style.color]=\"color\" [id]=\"btnId\" [style.background-color]=\"backgroundColor\" (click)=\"toggleDropdown($event)\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-button-dropdown'\" [attr.data-testid]=\"btnId\">\n Actions\n <span class=\"arrow\" [class]=\"{ 'open': isDropdownOpen }\">▾</span>\n </button>\n <div class=\"dropdown-content\" [class]=\"{ show: isDropdownOpen }\" #dropdownMenu [style.top]=\"dropdownPosition.top\"\n [style.left]=\"dropdownPosition.left\" style=\"position: fixed;\">\n @for (option of options; track $index) {\n <a (click)=\"onSelectOption(option)\">{{option?.name}}</a>\n }\n </div>\n</div>\n", styles: [":host{--iso-search-wrapper-width: 19.6rem}.dropdown{position:relative}.dropbtn{background-color:var(--secondary-color);color:#fff;padding:8px 12px 8px 10px;font-size:16px;border:none;cursor:pointer;display:flex;align-items:center;border-radius:6px}.arrow{margin-left:8px;transition:transform .2s ease}.arrow.open{transform:rotate(180deg)}.dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;border:1px solid #ddd;border-radius:4px;z-index:1000}.show{display:block}.dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content a:hover{background-color:#ddd}@media only screen and (max-width: 576px){:host{--iso-search-wrapper-width: 21.6rem}}.confirmation-content ul{padding:.5rem 1rem}.confirmation-content ul li{list-style-type:disc!important}\n"] }]
|
|
419
419
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
@@ -523,10 +523,10 @@ class GtrSwitchComponent {
|
|
|
523
523
|
this.gtrChange.emit(this.checked);
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
527
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
526
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSwitchComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
527
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrSwitchComponent, isStandalone: true, 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\n [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\"\n [attr.data-testid]=\"switchId\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-wrapper'\"\n [class.readonly]=\"readonly\"\n role=\"switch\"\n>\n <input\n [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 + 'switch'\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\"\n />\n <span\n class=\"gtr-switch-button\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-button'\"\n ></span>\n @if (label) {\n <span\n class=\"gtr-switch-label\"\n (click)=\"$event.preventDefault(); $event.stopPropagation()\"\n [id]=\"switchId + '-label'\"\n [attr.data-testid]=\"switchId + '-label'\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-label'\"\n >{{ label }}</span\n >\n }\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;-moz-user-select:none;-ms-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"] }); }
|
|
528
528
|
}
|
|
529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSwitchComponent, decorators: [{
|
|
530
530
|
type: Component,
|
|
531
531
|
args: [{ standalone: true, selector: 'gtr-switch', template: "<label\n [class]=\"'gtr-switch-wrapper'\"\n [id]=\"switchId\"\n [attr.data-testid]=\"switchId\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-wrapper'\"\n [class.readonly]=\"readonly\"\n role=\"switch\"\n>\n <input\n [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 + 'switch'\"\n [tabIndex]=\"this.tabIndex\"\n (keydown)=\"this.handleKeyDown($event)\"\n (change)=\"this.handleClick()\"\n />\n <span\n class=\"gtr-switch-button\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-button'\"\n ></span>\n @if (label) {\n <span\n class=\"gtr-switch-label\"\n (click)=\"$event.preventDefault(); $event.stopPropagation()\"\n [id]=\"switchId + '-label'\"\n [attr.data-testid]=\"switchId + '-label'\"\n [attr.data-transaction-name]=\"dataTransactionName + 'switch-label'\"\n >{{ label }}</span\n >\n }\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;-moz-user-select:none;-ms-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"] }]
|
|
532
532
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
@@ -636,10 +636,10 @@ class GtrTooltipComponent {
|
|
|
636
636
|
this.autoAdjustable && this.adjustPosition();
|
|
637
637
|
}, 100);
|
|
638
638
|
}
|
|
639
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
640
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
639
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
640
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrTooltipComponent, isStandalone: true, selector: "gtr-tooltip", inputs: { tooltipId: "tooltipId", content: "content", position: "position", autoAdjustable: "autoAdjustable", dataTransactionName: "dataTransactionName" }, host: { listeners: { "scroll": "handleResizeScroll()", "resize": "handleResizeScroll()" } }, viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tooltip-wrapper'\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tooltip'\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }); }
|
|
641
641
|
}
|
|
642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTooltipComponent, decorators: [{
|
|
643
643
|
type: Component,
|
|
644
644
|
args: [{ standalone: true, selector: 'gtr-tooltip', template: "<div class=\"gtr-tooltip-wrapper\" [id]=\"tooltipId\" [attr.data-testid]=\"tooltipId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tooltip-wrapper'\">\n <ng-content></ng-content>\n <div #contentEl [class]=\"'gtr-tooltip-text ' + newPosition\" [id]=\"tooltipId+'-text'\"\n [attr.data-testid]=\"tooltipId+'-text'\" role=\"tooltip\" tabIndex=\"0\" [attr.aria-describedby]=\"'tooltip-'+tooltipId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tooltip'\"\n [innerHTML]=\"this.content\"></div>\n</div>\n", styles: [":host{position:relative;display:inline-block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent}.gtr-tooltip-text{visibility:hidden;position:absolute;color:var(--gtr-color-base-white-100);padding:4px 12px;white-space:normal;background:var(--gtr-color-base-black-80);box-shadow:var(--gtr-content-box-shadow-base);border-radius:var(--gtr-border-radius-6);z-index:1;max-width:100vh;width:max-content;text-align:start;font-size:15px;font-style:normal;font-weight:400;line-height:22px}.gtr-tooltip-text.top{bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.top:after{content:\"\";position:absolute;top:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-top-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.bottom{top:calc(100% + 5px);left:50%;transform:translate(-50%)}.gtr-tooltip-text.bottom:after{content:\"\";position:absolute;bottom:100%;left:50%;border:5px solid var(--gtr-background-transparent);border-bottom-color:var(--gtr-color-base-black-80);transform:translate(-50%)}.gtr-tooltip-text.left{top:50%;right:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.left:after{content:\"\";position:absolute;top:50%;left:100%;border:5px solid var(--gtr-background-transparent);border-left-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}.gtr-tooltip-text.right{top:50%;left:calc(100% + 5px);transform:translateY(-50%)}.gtr-tooltip-text.right:after{content:\"\";position:absolute;top:50%;right:100%;border:5px solid var(--gtr-background-transparent);border-right-color:var(--gtr-color-base-black-80);transform:translateY(-50%)}:host(:hover) .gtr-tooltip-text{visibility:visible}\n"] }]
|
|
645
645
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { contentEl: [{
|
|
@@ -701,10 +701,10 @@ class GtrSkeletonComponent {
|
|
|
701
701
|
host.style.setProperty('--skeleton-rect-width', this.width ?? '100%');
|
|
702
702
|
host.style.setProperty('--skeleton-rect-height', this.height ?? '20px');
|
|
703
703
|
}
|
|
704
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
705
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
704
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSkeletonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
705
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrSkeletonComponent, isStandalone: true, selector: "gtr-skeleton", host: { classAttribute: "pulse" }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:block;width:var(--skeleton-rect-width);height:var(--skeleton-rect-height);background:#eff1f6 no-repeat}.skeleton-margin-bottom{margin-bottom:12px}.sk-prospect-created-date{margin-bottom:12px!important;margin:0 auto}.sk-prospect-created-date:last-child{margin-bottom:0!important}.skeleton-margin-bottom:last-child{margin-bottom:0}.sk-float-right{float:right}.sk-float-right-mr-10{float:right;margin-right:10px}.sk-mr-10{margin-right:10px}.sk-float-left{float:left}.sk-float-none{margin:0 auto}.pulse{animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}\n"] }); }
|
|
706
706
|
}
|
|
707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSkeletonComponent, decorators: [{
|
|
708
708
|
type: Component,
|
|
709
709
|
args: [{ standalone: true, selector: 'gtr-skeleton', host: {
|
|
710
710
|
class: 'pulse',
|
|
@@ -719,27 +719,30 @@ class GtrSkeletonDirective {
|
|
|
719
719
|
this.size = 1;
|
|
720
720
|
}
|
|
721
721
|
ngOnChanges(changes) {
|
|
722
|
-
if (changes['isLoading']) {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
722
|
+
if (!changes['isLoading']) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
this.vcr.clear();
|
|
726
|
+
if (changes['isLoading'].currentValue) {
|
|
727
|
+
Array.from({ length: this.size }).forEach(() => {
|
|
728
|
+
const ref = this.vcr.createComponent(GtrSkeletonComponent);
|
|
729
|
+
Object.assign(ref.instance, {
|
|
730
|
+
width: this.width === 'rand' ? `${Math.random}%` : this.width,
|
|
731
|
+
height: this.height,
|
|
732
|
+
className: this.className,
|
|
732
733
|
});
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
734
|
+
ref.changeDetectorRef.detectChanges();
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
const viewRef = this.vcr.createEmbeddedView(this.tpl);
|
|
739
|
+
viewRef.detectChanges();
|
|
737
740
|
}
|
|
738
741
|
}
|
|
739
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
740
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
742
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSkeletonDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
743
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrSkeletonDirective, isStandalone: true, selector: "[skeleton]", inputs: { isLoading: ["skeleton", "isLoading"], size: ["skeletonRepeat", "size"], width: ["skeletonWidth", "width"], height: ["skeletonHeight", "height"], className: ["skeletonClassName", "className"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
741
744
|
}
|
|
742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSkeletonDirective, decorators: [{
|
|
743
746
|
type: Directive,
|
|
744
747
|
args: [{
|
|
745
748
|
selector: '[skeleton]',
|
|
@@ -1082,10 +1085,10 @@ class GtrInputComponent {
|
|
|
1082
1085
|
? this.hasError || (!this.defaultValidation ? !this.isValid : false)
|
|
1083
1086
|
: false;
|
|
1084
1087
|
}
|
|
1085
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1086
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1088
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1089
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrInputComponent, isStandalone: true, 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", crop: "crop", inputId: "inputId", setFocus: "setFocus" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "@if (this.isDesiredInput()) {\n <div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\">\n @if (inputLabel) {\n <label for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n }\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n @if (!isOnlyView) {\n <input [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\"\n [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\"\n (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 }\n <div class=\"input-icon\">\n @if (inputIcon && iconPosition == 'start') {\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n }\n @if (isOnlyView) {\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition) + (crop ? ' crop':'')\"\n [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\"\n [title]=\"(crop ? value:'')\">\n {{ value ? value : placeholder }}\n </span>\n }\n\n @if (inputIcon && iconPosition == 'end') {\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n }\n </div>\n @if (isShowDefaultError) {\n <div class=\"gtr-error-wrap\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{ this.errorMsg }}\n </div>\n }\n @if (isShowCustomError) {\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n }\n </ng-container>\n </div>\n}\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}.gtr-form-element-input.crop.isonlyview{display:block;pointer-events:all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}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: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
1087
1090
|
}
|
|
1088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputComponent, decorators: [{
|
|
1089
1092
|
type: Component,
|
|
1090
1093
|
args: [{ selector: 'gtr-input', imports: [GtrSkeletonDirective, GtrIconComponent], template: "@if (this.isDesiredInput()) {\n <div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\">\n @if (inputLabel) {\n <label for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-transaction-name]=\"(dataTransactionName || name) + '-input-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{ inputLabel }}\n </label>\n }\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n @if (!isOnlyView) {\n <input [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\"\n [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\"\n (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 }\n <div class=\"input-icon\">\n @if (inputIcon && iconPosition == 'start') {\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n }\n @if (isOnlyView) {\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition) + (crop ? ' crop':'')\"\n [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\"\n [title]=\"(crop ? value:'')\">\n {{ value ? value : placeholder }}\n </span>\n }\n\n @if (inputIcon && iconPosition == 'end') {\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n }\n </div>\n @if (isShowDefaultError) {\n <div class=\"gtr-error-wrap\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{ this.errorMsg }}\n </div>\n }\n @if (isShowCustomError) {\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n }\n </ng-container>\n </div>\n}\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}.gtr-form-element-input.crop.isonlyview{display:block;pointer-events:all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}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"] }]
|
|
1091
1094
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
@@ -1304,7 +1307,7 @@ class GtrTextareaComponent {
|
|
|
1304
1307
|
else {
|
|
1305
1308
|
this.hasErrorValidate();
|
|
1306
1309
|
}
|
|
1307
|
-
this.textareaId = `grt-textarea-${Math.random().toString(36).
|
|
1310
|
+
this.textareaId = `grt-textarea-${Math.random().toString(36).slice(2, 12)}`;
|
|
1308
1311
|
return;
|
|
1309
1312
|
}
|
|
1310
1313
|
/**
|
|
@@ -1342,10 +1345,10 @@ class GtrTextareaComponent {
|
|
|
1342
1345
|
? this.hasError || (!this.defaultValidation ? !this.isValid : false)
|
|
1343
1346
|
: false;
|
|
1344
1347
|
}
|
|
1345
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1346
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1348
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTextareaComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1349
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTextareaComponent, isStandalone: true, 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 [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea-wrapper'\"\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-transaction-name]=\"dataTransactionName || name + '-textarea-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\"\n [class.isonlyview]=\"isOnlyView\">{{ this.textareaLabel }}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n @if (!isOnlyView) {\n <textarea [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\"\n [readOnly]=\"this.readonly\"\n [attr.name]=\"name\" [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea'\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\"\n (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n }\n\n @if (isOnlyView) {\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\">\n {{ value }}\n </span>\n }\n\n @if (isShowDefaultError) {\n <div class=\"gtr-error-wrap\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{ this.errorMsg }}\n </div>\n }\n @if (isShowCustomError) {\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n }\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: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
1347
1350
|
}
|
|
1348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTextareaComponent, decorators: [{
|
|
1349
1352
|
type: Component,
|
|
1350
1353
|
args: [{ selector: 'gtr-textarea', imports: [GtrSkeletonDirective, GtrIconComponent], template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea-wrapper'\"\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-transaction-name]=\"dataTransactionName || name + '-textarea-label'\"\n [attr.data-testid]=\"textAreaWrapperId+'-label'\"\n [class.isonlyview]=\"isOnlyView\">{{ this.textareaLabel }}</label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n @if (!isOnlyView) {\n <textarea [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\"\n [readOnly]=\"this.readonly\"\n [attr.name]=\"name\" [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea'\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\"\n (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleTextarea($event)\"></textarea>\n }\n\n @if (isOnlyView) {\n <span [class]=\"'gtr-form-element-textarea'\" [id]=\"textAreaWrapperId+'-readonly'\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-textarea-readonly'\"\n [attr.data-testid]=\"textAreaWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\">\n {{ value }}\n </span>\n }\n\n @if (isShowDefaultError) {\n <div class=\"gtr-error-wrap\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{ this.errorMsg }}\n </div>\n }\n @if (isShowCustomError) {\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n }\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"] }]
|
|
1351
1354
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
@@ -1564,10 +1567,10 @@ class GtrPopoverComponent {
|
|
|
1564
1567
|
});
|
|
1565
1568
|
}
|
|
1566
1569
|
}
|
|
1567
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1568
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
1570
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrPopoverComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1571
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.22", type: GtrPopoverComponent, isStandalone: true, selector: "gtr-popover", inputs: { position: "position", isOpened: ["isOpened", "isOpened", booleanAttribute], showPositionIndicator: ["showPositionIndicator", "showPositionIndicator", booleanAttribute], moveX: "moveX", moveY: "moveY", padding: "padding", marginTop: "marginTop", marginBottom: "marginBottom", marginLeft: "marginLeft", marginRight: "marginRight", scrollToBody: "scrollToBody", closeOnClickOutside: ["closeOnClickOutside", "closeOnClickOutside", booleanAttribute], dataTransactionName: "dataTransactionName", id: "id", testId: "testId" }, outputs: { stateChanged: "stateChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "popoverEl", first: true, predicate: ["popoverEl"], descendants: true }, { propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true }], ngImport: i0, template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-popover-wrapper'\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class.scroll-to-body]=\"scrollToBody\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n [attr.data-transaction-name]=\"dataTransactionName + '-popover'\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content.scroll-to-body{position:fixed!important;padding:0}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#fff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1569
1572
|
}
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrPopoverComponent, decorators: [{
|
|
1571
1574
|
type: Component,
|
|
1572
1575
|
args: [{ selector: 'gtr-popover', imports: [NgStyle], template: "<div\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-popover-wrapper'\"\n #popoverEl\n class=\"gtr-popover\"\n (click)=\"togglePopover()\"\n role=\"popover\"\n [attr.aria-describedby]=\"'gtr-popover'\"\n [ngStyle]=\"{\n 'margin-top.px': marginTop,\n 'margin-bottom.px': marginBottom,\n 'margin-left.px': marginLeft,\n 'margin-right.px': marginRight,\n }\"\n>\n <ng-content select=\"[slot='gtr-popover-trigger']\"></ng-content>\n <div\n #contentEl\n [hidden]=\"!isVisible\"\n [class.gtr-content-visible]=\"isVisible\"\n [class.scroll-to-body]=\"scrollToBody\"\n [class]=\"\n 'gtr-content' +\n ' ' +\n adjustedPosition +\n ' ' +\n ' ' +\n (showPositionIndicator ? 'gtr-indicator' : '')\n \"\n [tabIndex]=\"0\"\n (click)=\"popoverContentClicked($event)\"\n [style.padding.px]=\"padding\"\n [ngStyle]=\"{ transform: 'translate(' + moveX + '%, ' + moveY + '%)' }\"\n [attr.data-transaction-name]=\"dataTransactionName + '-popover'\"\n >\n <ng-container>\n <ng-content select=\"[slot='gtr-popover-content']\"></ng-content>\n </ng-container>\n </div>\n</div>\n", styles: [":host{position:relative;display:inline-block!important;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;padding:0;--gtr-border-radius-6: 6px;--gtr-background-transparent: transparent;--background-color: var(--gtr-color-base-white-100);--text-color: var(--gtr-color-base-black-60)}.gtr-popover{position:relative;width:auto;display:inline-block}.gtr-content.scroll-to-body{position:fixed!important;padding:0}.gtr-content{position:absolute;z-index:1;background-color:var(--background-color)!important;color:var(--text-color);padding:16px 18px;box-shadow:var(--gtr-content-box-shadow-base);white-space:normal;max-width:300px;width:max-content;min-width:200px;overflow-x:hidden;color:#000}.gtr-content.gtr-indicator{overflow-x:visible!important}.gtr-content::-webkit-scrollbar,::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:0px;background:var(var(--gtr-color-base-black-40))}.gtr-content.top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.top:before{content:\"\";position:absolute;top:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-top-color:var(--background-color);transform:translate(-50%)}.gtr-content.right{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.right:before{content:\"\";position:absolute;top:50%;right:100%;border:7px solid var(--gtr-background-transparent);border-right-color:var(--background-color);transform:translateY(-50%)}.gtr-content.bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.gtr-content.bottom:before{content:\"\";position:absolute;bottom:100%;left:50%;border:7px solid var(--gtr-background-transparent);border-bottom-color:var(--background-color);transform:translate(-50%)}.gtr-content.left{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.gtr-content.left:before{content:\"\";position:absolute;top:50%;left:100%;border:7px solid var(--gtr-background-transparent);border-left-color:var(--background-color);transform:translateY(-50%)}.gtr-content-visible{display:inline-block!important;background:#fff!important}@media screen and (max-width: 860px){.gtr-content{width:max-content;max-width:300px}}\n"] }]
|
|
1573
1576
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { position: [{
|
|
@@ -1676,14 +1679,14 @@ class GtrRadioButtonComponent {
|
|
|
1676
1679
|
* The componentDidLoad hook
|
|
1677
1680
|
*/
|
|
1678
1681
|
ngAfterViewInit() {
|
|
1679
|
-
// this.radioId = `grt-radio-${Math.random().toString(36).
|
|
1682
|
+
// this.radioId = `grt-radio-${Math.random().toString(36).slice(2, 12)}`;
|
|
1680
1683
|
}
|
|
1681
1684
|
/**
|
|
1682
1685
|
* The decorator is used to select value via keyboard
|
|
1683
1686
|
*/
|
|
1684
1687
|
handleKeyDown(event) {
|
|
1685
1688
|
if (this.radioEl.nativeElement.contains(event.target)) {
|
|
1686
|
-
if (event.key === 'Enter' || event.
|
|
1689
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
1687
1690
|
event.preventDefault();
|
|
1688
1691
|
this.handleChange();
|
|
1689
1692
|
}
|
|
@@ -1773,10 +1776,10 @@ class GtrRadioButtonComponent {
|
|
|
1773
1776
|
throw new Error('[gtr-radio-button] should contain only one checked value.');
|
|
1774
1777
|
}
|
|
1775
1778
|
}
|
|
1776
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1777
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
1779
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrRadioButtonComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1780
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.22", type: GtrRadioButtonComponent, isStandalone: true, selector: "gtr-radio-button", inputs: { name: "name", dataTransactionName: "dataTransactionName", value: "value", disabled: ["disabled", "disabled", booleanAttribute], checked: ["checked", "checked", booleanAttribute], label: "label", tabIndexNav: "tabIndexNav", radioId: "radioId", groupName: "groupName" }, outputs: { valueChanged: "valueChanged" }, host: { listeners: { "document:keyup": "handleKeyDown($event)" } }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper\"\n [id]=\"radioId+'-wrapper'\"\n [attr.data-testid]=\"radioId+'-wrapper'\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button-wrapper'\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\"\n [name]=\"groupName\"\n class=\"gtr-form-element-radio\"\n role=\"radio\"\n [id]=\"this.radioId\"\n [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\"\n value=\"{{value}}\"\n [checked]=\"this.checked\"\n [disabled]=\"this.disabled\"\n (change)=\"this.handleChange($event)\"\n (keydown)=\"detectEnter($event)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button'\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\"/>\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\"\n [attr.data-testid]=\"this.radioId+'-label'\"\n [class]=\"'gtr-radio-label' + (this.disabled ? ' disabled' : '')\"\n [for]=\"this.radioId\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button-label'\"\n (click)=\"this.handleClick()\"\n role=\"radio\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{ this.label }}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7;--gtr-color-base-black-80: rgba(0, 0, 0, .8)}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;max-width:fit-content;gap:5px}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}label.gtr-radio-label{margin-left:1px!important;font-style:normal;font-weight:500;font-size:14px!important;line-height:22px;position:relative!important;top:1px;color:var(--gtr-color-base-black-80)}label.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }); }
|
|
1778
1781
|
}
|
|
1779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrRadioButtonComponent, decorators: [{
|
|
1780
1783
|
type: Component,
|
|
1781
1784
|
args: [{ standalone: true, selector: 'gtr-radio-button', template: "<div class=\"gtr-form-element-wrapper\"\n [id]=\"radioId+'-wrapper'\"\n [attr.data-testid]=\"radioId+'-wrapper'\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button-wrapper'\">\n <div class=\"gtr-form-element-radio-wrapper gtr-relative-element\">\n <input type=\"radio\"\n [name]=\"groupName\"\n class=\"gtr-form-element-radio\"\n role=\"radio\"\n [id]=\"this.radioId\"\n [attr.data-testid]=\"this.radioId\"\n [tabIndex]=\"this.disabled ? -1 : this.tabIndexNav || 0\"\n value=\"{{value}}\"\n [checked]=\"this.checked\"\n [disabled]=\"this.disabled\"\n (change)=\"this.handleChange($event)\"\n (keydown)=\"detectEnter($event)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button'\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\"\n [attr.aria-disabled]=\"this.disabled ? 'true' : 'false'\"/>\n <span class=\"gtr-radio-stats\"> </span>\n <label [id]=\"this.radioId+'-label'\"\n [attr.data-testid]=\"this.radioId+'-label'\"\n [class]=\"'gtr-radio-label' + (this.disabled ? ' disabled' : '')\"\n [for]=\"this.radioId\"\n [attr.data-transaction-name]=\"dataTransactionName || name + '-radio-button-label'\"\n (click)=\"this.handleClick()\"\n role=\"radio\"\n [attr.aria-checked]=\"this.checked ? 'true' : 'false'\">{{ this.label }}</label>\n </div>\n <ng-content select=\"[slot='grt-info']\"></ng-content>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-opacity-05: .5;--gtr-opacity-07: .7;--gtr-color-base-black-80: rgba(0, 0, 0, .8)}.gtr-relative-element{position:relative}.gtr-form-element-wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;margin-bottom:5px}.gtr-form-element-wrapper:focus-visible,.gtr-form-element-wrapper :focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0}.gtr-form-element-radio:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;max-width:fit-content;gap:5px}.gtr-form-element-radio-wrapper:focus{outline:none!important;background:var(--primary-light)}label.gtr-radio-label{margin-left:1px!important;font-style:normal;font-weight:500;font-size:14px!important;line-height:22px;position:relative!important;top:1px;color:var(--gtr-color-base-black-80)}label.gtr-radio-label:focus{outline:none!important;background:var(--primary-light)}.gtr-form-element-radio+.gtr-radio-stats{width:16px;height:16px;display:inline-block;margin-top:1px;border-width:1px;border-radius:100px;border-style:solid}.gtr-form-element-radio:not(:checked)+.gtr-radio-stats{border-color:var(--gtr-color-base-black-20);background:var(--gtr-color-base-white-100)}.gtr-form-element-radio:not(:checked):disabled+.gtr-radio-stats{background:linear-gradient(0deg,var(--gtr-color-base-white-80),var(--gtr-color-base-white-80)),var(--gtr-color-base-black-80);border-color:var(--gtr-color-base-white-80)}.gtr-form-element-radio:checked+.gtr-radio-stats{border-color:var(--gtr-color-base-primary-100);background:var(--gtr-color-base-primary-100);position:relative}.gtr-form-element-radio:checked+.gtr-radio-stats:after{content:\"\";display:block;height:8px;width:8px;position:absolute;background:var(--gtr-color-base-white-100);border-radius:calc(var(--gtr-border-radius-6) * 12);top:3px;left:3px}.gtr-form-element-radio:checked:disabled+.gtr-radio-stats,.gtr-form-element-radio:checked:disabled+.gtr-radio-stats+.gtr-radio-label{opacity:var(--gtr-opacity-05)}.gtr-form-element-radio:disabled{cursor:default}.gtr-radio-label.disabled{opacity:var(--gtr-opacity-07)}\n"] }]
|
|
1782
1785
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
@@ -1853,10 +1856,10 @@ class GtrToasterService {
|
|
|
1853
1856
|
getToastSubject() {
|
|
1854
1857
|
return this.toastSubject;
|
|
1855
1858
|
}
|
|
1856
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1857
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1859
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrToasterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1860
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrToasterService, providedIn: 'root' }); }
|
|
1858
1861
|
}
|
|
1859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrToasterService, decorators: [{
|
|
1860
1863
|
type: Injectable,
|
|
1861
1864
|
args: [{
|
|
1862
1865
|
providedIn: 'root',
|
|
@@ -1927,10 +1930,10 @@ class GtrToasterComponent {
|
|
|
1927
1930
|
});
|
|
1928
1931
|
}
|
|
1929
1932
|
}
|
|
1930
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1931
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1933
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrToasterComponent, deps: [{ token: GtrToasterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1934
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrToasterComponent, isStandalone: true, selector: "gtr-toaster", inputs: { id: "id", testId: "testId", dataTransactionName: "dataTransactionName" }, viewQueries: [{ propertyName: "toasterElement", first: true, predicate: ["toasterElement"], descendants: true, static: true }], ngImport: i0, template: "<!-- gtr-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 [attr.data-transaction-name]=\"dataTransactionName + '-toaster-wrapper'\"\n>\n @if (open) {\n <div\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n class=\"gtr-toaster-content-wrapper\"\n [ngStyle]=\"{ 'background-color': toasterData.backgroundColor }\"\n [attr.data-transaction-name]=\"dataTransactionName + '-toaster'\"\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 [dataTransactionName]=\"dataTransactionName + '-toaster-badge'\"\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 @if (toasterData.message) {\n <p [style.color]=\"toasterData.messageColor\">{{ toasterData.message }}</p>\n }\n </div>\n <div class=\"close\" (click)=\"hideToast()\" [attr.data-transaction-name]=\"dataTransactionName + '-toaster-hide'\">\n <gtr-icon name=\"x\" [size]=\"20\" [dataTransactionName]=\"dataTransactionName + '-toaster-hide'\"></gtr-icon>\n </div>\n </div>\n }\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: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }] }); }
|
|
1932
1935
|
}
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrToasterComponent, decorators: [{
|
|
1934
1937
|
type: Component,
|
|
1935
1938
|
args: [{ selector: 'gtr-toaster', imports: [NgClass, GtrIconComponent, NgStyle, GtrBadgeComponent, TitleCasePipe], template: "<!-- gtr-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 [attr.data-transaction-name]=\"dataTransactionName + '-toaster-wrapper'\"\n>\n @if (open) {\n <div\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n class=\"gtr-toaster-content-wrapper\"\n [ngStyle]=\"{ 'background-color': toasterData.backgroundColor }\"\n [attr.data-transaction-name]=\"dataTransactionName + '-toaster'\"\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 [dataTransactionName]=\"dataTransactionName + '-toaster-badge'\"\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 @if (toasterData.message) {\n <p [style.color]=\"toasterData.messageColor\">{{ toasterData.message }}</p>\n }\n </div>\n <div class=\"close\" (click)=\"hideToast()\" [attr.data-transaction-name]=\"dataTransactionName + '-toaster-hide'\">\n <gtr-icon name=\"x\" [size]=\"20\" [dataTransactionName]=\"dataTransactionName + '-toaster-hide'\"></gtr-icon>\n </div>\n </div>\n }\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"] }]
|
|
1936
1939
|
}], ctorParameters: () => [{ type: GtrToasterService }], propDecorators: { id: [{
|
|
@@ -1948,10 +1951,10 @@ class GtrDisplayValueComponent {
|
|
|
1948
1951
|
constructor() {
|
|
1949
1952
|
this.dataTransactionName = 'no-tagged';
|
|
1950
1953
|
}
|
|
1951
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1952
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1954
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDisplayValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1955
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrDisplayValueComponent, isStandalone: true, selector: "gtr-display-value", inputs: { loading: "loading", label: "label", value: "value", contentType: "contentType", id: "id", dataTestId: "dataTestId", skeletonConfigs: "skeletonConfigs", dataTransactionName: "dataTransactionName" }, ngImport: i0, template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-wrapper'\">\n @if (label) {\n <div class=\"gtr-display-value-label\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-label'\">{{ label }}\n </div>\n }\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n @if (contentType !== 'projected') {\n <span class=\"gtr-display-value-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-innerHTML'\"\n [innerHTML]=\"value\"></span>\n } @else {\n <span class=\"gtr-display-value-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-content'\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n }\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"], dependencies: [{ kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }] }); }
|
|
1953
1956
|
}
|
|
1954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDisplayValueComponent, decorators: [{
|
|
1955
1958
|
type: Component,
|
|
1956
1959
|
args: [{ selector: 'gtr-display-value', imports: [GtrSkeletonDirective], template: "<div class=\"gtr-display-value-wrapper\" [attr.id]=\"id\" [attr.data-testid]=\"dataTestId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-wrapper'\">\n @if (label) {\n <div class=\"gtr-display-value-label\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-label'\">{{ label }}\n </div>\n }\n <ng-container\n *skeleton=\"\n loading;\n repeat: skeletonConfigs?.repeat ?? 1;\n className: skeletonConfigs?.className ?? 'skeleton-margin-bottom';\n height: skeletonConfigs?.height ?? '16px';\n width: skeletonConfigs?.width ?? '150px'\n \"\n >\n @if (contentType !== 'projected') {\n <span class=\"gtr-display-value-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-innerHTML'\"\n [innerHTML]=\"value\"></span>\n } @else {\n <span class=\"gtr-display-value-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-display-value-content'\">\n <ng-content select=\"[slot='custom-content']\"></ng-content>\n </span>\n }\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;margin:0;--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-font-size-13: 13px;--gtr-color-base-label-100: var(--default)}.gtr-display-value-wrapper{position:relative;width:auto}.gtr-display-value-wrapper .gtr-display-value-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);margin:0;pointer-events:none}.gtr-display-value-wrapper .gtr-display-value-content{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}\n"] }]
|
|
1957
1960
|
}], propDecorators: { loading: [{
|
|
@@ -2040,10 +2043,10 @@ class GtrAccordionComponent {
|
|
|
2040
2043
|
event.preventDefault();
|
|
2041
2044
|
}
|
|
2042
2045
|
}
|
|
2043
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2044
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2046
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2047
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrAccordionComponent, isStandalone: true, 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 + '-accordion'\">\n <div class=\"d-flex gtr-accordion-container\">\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 + '-accordion-header'\"\n (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n @if (prefixIcon) {\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n [dataTransactionName]=\"dataTransactionName + '-accordion-icon'\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n }\n {{ header }}\n </span>\n\n @if (status?.icon) {\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n }\n\n @if (status?.text) {\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}\n </gtr-badge>\n }\n\n </div>\n @if (showArrowIcon) {\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n [dataTransactionName]=\"dataTransactionName + '-accordion-icon'\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n }\n </div>\n\n @if (opened) {\n <div class=\"gtr-accordion-content\" [attr.data-transaction-name]=\"dataTransactionName + '-accordion-content'\">\n <ng-content></ng-content>\n </div>\n }\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-container{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: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
|
|
2045
2048
|
}
|
|
2046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrAccordionComponent, decorators: [{
|
|
2047
2050
|
type: Component,
|
|
2048
2051
|
args: [{ selector: 'gtr-accordion', imports: [GtrIconComponent, GtrBadgeComponent], template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-accordion'\">\n <div class=\"d-flex gtr-accordion-container\">\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 + '-accordion-header'\"\n (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n @if (prefixIcon) {\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n [dataTransactionName]=\"dataTransactionName + '-accordion-icon'\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n }\n {{ header }}\n </span>\n\n @if (status?.icon) {\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n }\n\n @if (status?.text) {\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}\n </gtr-badge>\n }\n\n </div>\n @if (showArrowIcon) {\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n [dataTransactionName]=\"dataTransactionName + '-accordion-icon'\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n }\n </div>\n\n @if (opened) {\n <div class=\"gtr-accordion-content\" [attr.data-transaction-name]=\"dataTransactionName + '-accordion-content'\">\n <ng-content></ng-content>\n </div>\n }\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-container{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"] }]
|
|
2049
2052
|
}], ctorParameters: () => [], propDecorators: { header: [{
|
|
@@ -2153,10 +2156,10 @@ class GtrAccordionWrapperComponent {
|
|
|
2153
2156
|
}
|
|
2154
2157
|
}
|
|
2155
2158
|
}
|
|
2156
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2157
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2159
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrAccordionWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2160
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrAccordionWrapperComponent, isStandalone: true, 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 + '-accordion-wrapper'\">\n <ng-content></ng-content>\n</div>\n", styles: [""] }); }
|
|
2158
2161
|
}
|
|
2159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrAccordionWrapperComponent, decorators: [{
|
|
2160
2163
|
type: Component,
|
|
2161
2164
|
args: [{ standalone: true, selector: 'gtr-accordion-wrapper', template: "<div [id]=\"id\" [attr.data-test-id]=\"testId\" [attr.data-transaction-name]=\"dataTransactionName + '-accordion-wrapper'\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
2162
2165
|
}], propDecorators: { accordionStateChanged: [{
|
|
@@ -2542,10 +2545,10 @@ class GtrCalendarService {
|
|
|
2542
2545
|
}
|
|
2543
2546
|
}
|
|
2544
2547
|
}
|
|
2545
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2546
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2548
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarService, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2549
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarService }); }
|
|
2547
2550
|
}
|
|
2548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarService, decorators: [{
|
|
2549
2552
|
type: Injectable
|
|
2550
2553
|
}], ctorParameters: () => [{ type: i0.KeyValueDiffers }] });
|
|
2551
2554
|
|
|
@@ -2604,10 +2607,10 @@ class GtrCalendarNavigationComponent {
|
|
|
2604
2607
|
handleNavigationClick(direction, years = false) {
|
|
2605
2608
|
this.navigationClick.emit({ direction, years: years });
|
|
2606
2609
|
}
|
|
2607
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2608
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2610
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarNavigationComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2611
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrCalendarNavigationComponent, isStandalone: true, selector: "gtr-calendar-navigation", inputs: { dataTransactionName: "dataTransactionName", addMonths: "addMonths", calendarDate: "calendarDate", navigation: "navigation", navYearFirst: "navYearFirst" }, outputs: { navigationClick: "navigationClick" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "@if (navigation) {\n <div class=\"calendar-nav-prev\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous-wrapper'\">\n\n @if (view !== 'days') {\n <button\n (click)=\"handleNavigationClick('prev', true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous-first'\"\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 [dataTransactionName]=\"dataTransactionName + '-navigation-previous-first'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n @if (view === 'days') {\n <button\n (click)=\"handleNavigationClick('prev')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous'\"\n >\n <gtr-icon name=\"chevron-left\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-previous'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n}\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-wrapper'\">\n\n @if (view === 'days') {\n <button\n (click)=\"setView('months')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-month'\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n }\n @if (view !== 'years') {\n <button\n (click)=\"setView('years')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-year'\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n }\n @if (view === 'years') {\n <button\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n }\n</div>\n\n@if (navigation) {\n <div class=\"calendar-nav-next\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next-wrapper'\">\n @if (view === 'days') {\n <button\n (click)=\"handleNavigationClick('next')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next'\"\n >\n <gtr-icon name=\"chevron-right\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-next'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n @if (view !== 'days') {\n <button\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next-last'\"\n >\n <gtr-icon name=\"chevrons-right\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-next-last'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n}\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: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
2609
2612
|
}
|
|
2610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarNavigationComponent, decorators: [{
|
|
2611
2614
|
type: Component,
|
|
2612
2615
|
args: [{ selector: 'gtr-calendar-navigation', imports: [GtrButtonDirective, NgStyle, GtrIconComponent], template: "@if (navigation) {\n <div class=\"calendar-nav-prev\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous-wrapper'\">\n\n @if (view !== 'days') {\n <button\n (click)=\"handleNavigationClick('prev', true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous-first'\"\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 [dataTransactionName]=\"dataTransactionName + '-navigation-previous-first'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n @if (view === 'days') {\n <button\n (click)=\"handleNavigationClick('prev')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-previous'\"\n >\n <gtr-icon name=\"chevron-left\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-previous'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n}\n<div class=\"calendar-nav-date\" [ngStyle]=\"navYearFirst ? { display: 'flex', justifyContent: 'center' } : {}\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-wrapper'\">\n\n @if (view === 'days') {\n <button\n (click)=\"setView('months')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-date-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-month'\"\n >\n {{ date.toLocaleDateString(locale, {month: 'long'}) }}\n </button>\n }\n @if (view !== 'years') {\n <button\n (click)=\"setView('years')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\"\n [ngStyle]=\"navYearFirst ? { order: '-1' } : {}\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-date-year'\">\n {{ date.toLocaleDateString(locale, {year: 'numeric'}) }}\n </button>\n }\n @if (view === 'years') {\n <button\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n class=\"calendar-nav-date-button\"\n tabindex=\"0\">\n Year\n </button>\n }\n</div>\n\n@if (navigation) {\n <div class=\"calendar-nav-next\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next-wrapper'\">\n @if (view === 'days') {\n <button\n (click)=\"handleNavigationClick('next')\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next'\"\n >\n <gtr-icon name=\"chevron-right\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-next'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n @if (view !== 'days') {\n <button\n (click)=\"handleNavigationClick('next', true)\"\n gtrButton\n color=\"transparent\"\n size=\"sm\"\n tabindex=\"0\"\n class=\"calendar-nav-icon-button\"\n [attr.data-transaction-name]=\"dataTransactionName + '-navigation-next-last'\"\n >\n <gtr-icon name=\"chevrons-right\"\n [dataTransactionName]=\"dataTransactionName + '-navigation-next-last'\"\n [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n}\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"] }]
|
|
2613
2616
|
}], ctorParameters: () => [{ type: GtrCalendarService }], propDecorators: { dataTransactionName: [{
|
|
@@ -2635,10 +2638,10 @@ class GtrCalendarWeekdayPipe {
|
|
|
2635
2638
|
? date.toLocaleDateString(locale, { weekday: weekdayFormat })
|
|
2636
2639
|
: date.toLocaleDateString(locale, { weekday: 'long' }).slice(0, weekdayFormat);
|
|
2637
2640
|
}
|
|
2638
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2639
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2641
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarWeekdayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2642
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarWeekdayPipe, isStandalone: true, name: "gtrCalendarWeekday" }); }
|
|
2640
2643
|
}
|
|
2641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarWeekdayPipe, decorators: [{
|
|
2642
2645
|
type: Pipe,
|
|
2643
2646
|
args: [{
|
|
2644
2647
|
name: 'gtrCalendarWeekday',
|
|
@@ -2654,10 +2657,10 @@ class GtrCalendarClassYearPipe {
|
|
|
2654
2657
|
today: isThisYear(year),
|
|
2655
2658
|
};
|
|
2656
2659
|
}
|
|
2657
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2658
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2660
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassYearPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2661
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassYearPipe, isStandalone: true, name: "gtrCalendarClassYear" }); }
|
|
2659
2662
|
}
|
|
2660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassYearPipe, decorators: [{
|
|
2661
2664
|
type: Pipe,
|
|
2662
2665
|
args: [{
|
|
2663
2666
|
name: 'gtrCalendarClassYear',
|
|
@@ -2674,10 +2677,10 @@ class GtrCalendarClassMonthPipe {
|
|
|
2674
2677
|
today: isThisMonth(date, monthIndex),
|
|
2675
2678
|
};
|
|
2676
2679
|
}
|
|
2677
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2678
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2680
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2681
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassMonthPipe, isStandalone: true, name: "gtrCalendarClassMonth" }); }
|
|
2679
2682
|
}
|
|
2680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassMonthPipe, decorators: [{
|
|
2681
2684
|
type: Pipe,
|
|
2682
2685
|
args: [{
|
|
2683
2686
|
name: 'gtrCalendarClassMonth',
|
|
@@ -2691,10 +2694,10 @@ class GtrCalendarDayPipe {
|
|
|
2691
2694
|
? dayFormat(date)
|
|
2692
2695
|
: date.toLocaleDateString(locale, { day: dayFormat });
|
|
2693
2696
|
}
|
|
2694
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2695
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2697
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2698
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayPipe, isStandalone: true, name: "gtrCalendarDay" }); }
|
|
2696
2699
|
}
|
|
2697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayPipe, decorators: [{
|
|
2698
2701
|
type: Pipe,
|
|
2699
2702
|
args: [{
|
|
2700
2703
|
name: 'gtrCalendarDay',
|
|
@@ -2794,10 +2797,10 @@ class GtrCalendarDayDirective {
|
|
|
2794
2797
|
}
|
|
2795
2798
|
this.calendarStateSubscription?.unsubscribe();
|
|
2796
2799
|
}
|
|
2797
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2798
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2800
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayDirective, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2801
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrCalendarDayDirective, isStandalone: true, selector: "[gtrCalendarDay]", inputs: { dateObj: ["gtrCalendarDay", "dateObj"], dateMonth: ["gtrCalendarMonth", "dateMonth"], dateYear: ["gtrCalendarYear", "dateYear"] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
2799
2802
|
}
|
|
2800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayDirective, decorators: [{
|
|
2801
2804
|
type: Directive,
|
|
2802
2805
|
args: [{
|
|
2803
2806
|
selector: '[gtrCalendarDay]',
|
|
@@ -2821,10 +2824,10 @@ class GtrCalendarDayTitlePipe {
|
|
|
2821
2824
|
transform(date, locale = 'default') {
|
|
2822
2825
|
return date.toLocaleDateString(locale);
|
|
2823
2826
|
}
|
|
2824
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2825
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2827
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayTitlePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2828
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayTitlePipe, isStandalone: true, name: "gtrCalendarDayTitle" }); }
|
|
2826
2829
|
}
|
|
2827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarDayTitlePipe, decorators: [{
|
|
2828
2831
|
type: Pipe,
|
|
2829
2832
|
args: [{
|
|
2830
2833
|
name: 'gtrCalendarDayTitle',
|
|
@@ -2848,10 +2851,10 @@ class GtrCalendarClassDayPipe {
|
|
|
2848
2851
|
last: isLastDayOfMonth(date),
|
|
2849
2852
|
};
|
|
2850
2853
|
}
|
|
2851
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2852
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2854
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassDayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2855
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassDayPipe, isStandalone: true, name: "gtrCalendarClassDay" }); }
|
|
2853
2856
|
}
|
|
2854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassDayPipe, decorators: [{
|
|
2855
2858
|
type: Pipe,
|
|
2856
2859
|
args: [{
|
|
2857
2860
|
name: 'gtrCalendarClassDay',
|
|
@@ -2866,10 +2869,10 @@ class GtrCalendarMonthTitlePipe {
|
|
|
2866
2869
|
year: 'numeric',
|
|
2867
2870
|
});
|
|
2868
2871
|
}
|
|
2869
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2870
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2872
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthTitlePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2873
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthTitlePipe, isStandalone: true, name: "gtrCalendarMonthTitle" }); }
|
|
2871
2874
|
}
|
|
2872
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthTitlePipe, decorators: [{
|
|
2873
2876
|
type: Pipe,
|
|
2874
2877
|
args: [{
|
|
2875
2878
|
name: 'gtrCalendarMonthTitle',
|
|
@@ -2881,10 +2884,10 @@ class GtrCalendarMonthPipe {
|
|
|
2881
2884
|
transform(date, monthIndex) {
|
|
2882
2885
|
return new Date(date.getFullYear(), monthIndex);
|
|
2883
2886
|
}
|
|
2884
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2885
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2887
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2888
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthPipe, isStandalone: true, name: "gtrCalendarMonth" }); }
|
|
2886
2889
|
}
|
|
2887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthPipe, decorators: [{
|
|
2888
2891
|
type: Pipe,
|
|
2889
2892
|
args: [{
|
|
2890
2893
|
name: 'gtrCalendarMonth',
|
|
@@ -3239,10 +3242,10 @@ class GtrCalendarMonthComponent {
|
|
|
3239
3242
|
ngOnDestroy() {
|
|
3240
3243
|
this.calendarStateSubscribe(false);
|
|
3241
3244
|
}
|
|
3242
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3243
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3245
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3246
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrCalendarMonthComponent, isStandalone: true, selector: "gtr-calendar-month", inputs: { dataTransactionName: "dataTransactionName", addMonths: "addMonths", startDate: "startDate", endDate: "endDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", range: "range", weekdayFormat: "weekdayFormat", view: "view", type: "type", maxDate: "maxDate", minDate: "minDate", calendarDate: "calendarDate" }, exportAs: ["gtrCalendarMonth"], ngImport: i0, template: "<table [attr.data-transaction-name]=\"dataTransactionName + '-content'\">\n @if (view === 'days') {\n <thead [attr.data-transaction-name]=\"dataTransactionName + '-content-weekdays'\">\n <tr [attr.data-transaction-name]=\"dataTransactionName + '-content-weekdays'\">\n @for (weekDay of weekDays; track i; let i = $index; let cnt = $count) {\n <th class=\"calendar-cell\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-weekdays'\">\n <div class=\"calendar-header-cell-inner\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-weekdays'\">\n {{ weekDay.date | gtrCalendarWeekday:weekdayFormat:locale }}\n </div>\n </th>\n }\n </tr>\n </thead>\n }\n <tbody (mouseleave)=\"handleCellMouseLeave()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-body'\">\n @switch (view) {\n @case ('years') {\n @for (yearsRow of listOfYears; track rowIdx; let rowIdx = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '-content-year'\">\n @for (year of yearsRow; track idx; let idx = $index) {\n <td\n (click)=\"handleYearCellClick(year)\"\n (keyup)=\"handleYearCellKeyUp($event, year)\"\n (mouseenter)=\"!touchDevice && handleYearCellMouseEnter(year)\"\n gtrCalendarDay\n [gtrCalendarYear]=\"year\"\n [ngClass]=\"year | gtrCalendarClassYear\"\n [tabindex]=\"0\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-year'\"\n >\n <div class=\"calendar-cell-inner\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-year'\">\n {{ yearNumber(year) }}\n </div>\n </td>\n }\n </tr>\n }\n }\n @case ('months') {\n @for (monthsRow of listOfMonths; track rowIdx; let rowIdx = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '-content-month'\">\n @for (month of monthsRow; track idx; let idx = $index) {\n <td\n (click)=\"handleMonthCellClick(rowIdx, idx)\"\n (keyup)=\"handleMonthCellKeyUp($event, rowIdx, idx)\"\n (mouseenter)=\"!touchDevice && handleMonthCellMouseEnter(date, rowIdx, idx)\"\n gtrCalendarDay\n [gtrCalendarMonth]=\"date| gtrCalendarMonth:(rowIdx*3+idx)\"\n [ngClass]=\"date | gtrCalendarClassMonth:(rowIdx*3+idx)\"\n [title]=\"date | gtrCalendarMonthTitle:(rowIdx*3+idx):locale\"\n [tabindex]=\"0\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-month'\"\n >\n <div class=\"calendar-cell-inner\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-month'\">\n {{ month }}\n </div>\n </td>\n }\n </tr>\n }\n }\n @default {\n @for (week of monthDetails; track i; let i = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '-content-day'\">\n @for (dateObj of week; track idx; let idx = $index) {\n @if ((dateObj.month === 'current' || showAdjacentDays)) {\n <td (click)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellClick(dateObj.date)\"\n (keyup)=\"(dateObj.month === 'current' || selectAdjacentDays) && handleDayCellKeyUp($event, dateObj.date)\"\n (mouseenter)=\"!touchDevice && (dateObj.month === 'current' || selectAdjacentDays) && handleCellMouseEnter(dateObj.date)\"\n [gtrCalendarDay]=\"dateObj\"\n [ngClass]=\"dateObj | gtrCalendarClassDay:{minDate, maxDate, disabledDates, dateFilter}\"\n [tabindex]=\"(dateObj.month === 'current' || selectAdjacentDays) && !isDateDisabled(dateObj.date) ? 0 : -1\"\n [title]=\"dateObj.date | gtrCalendarDayTitle:locale\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-day'\"\n >\n <div class=\"calendar-cell-inner\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-day'\">\n {{ dateObj.date | gtrCalendarDay:dayFormat:locale }}\n </div>\n </td>\n } @else {\n <td class=\"calendar-cell\"\n [attr.data-transaction-name]=\"dataTransactionName + '-content-day-empty'\"></td>\n }\n }\n </tr>\n }\n }\n }\n </tbody>\n</table>\n\n\n", styles: [":root{--gtr-calendar-cell-selected-bg: var(--gtr-color-base-primary-base) !important}.calendar-header-cell-inner{color:var(--light-typography-color-heading-text, #4B465C);text-align:center;font-size:13px;font-style:normal;font-weight:600;line-height:14px}.calendar-cell.end.range.selected .calendar-cell-inner{border-radius:0 .375rem .375rem 0!important}.calendar-cell.start.range.selected .calendar-cell-inner{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.selected:not(.previous):not(.next).end .calendar-cell-inner:before{border-radius:0 .375rem .375rem 0!important}.calendar-cell.selected:not(.previous):not(.next).start .calendar-cell-inner:before{border-radius:.375rem 0 0 .375rem!important}.calendar-cell.today .calendar-cell-inner{background-color:var(--gtr-color-base-success-20)!important;color:var(--gtr-color-base-success-100)!important;border-radius:.375rem!important}\n"], dependencies: [{ kind: "directive", type: GtrCalendarDayDirective, selector: "[gtrCalendarDay]", inputs: ["gtrCalendarDay", "gtrCalendarMonth", "gtrCalendarYear"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: GtrCalendarDayPipe, name: "gtrCalendarDay" }, { kind: "pipe", type: GtrCalendarDayTitlePipe, name: "gtrCalendarDayTitle" }, { kind: "pipe", type: GtrCalendarMonthTitlePipe, name: "gtrCalendarMonthTitle" }, { kind: "pipe", type: GtrCalendarMonthPipe, name: "gtrCalendarMonth" }, { kind: "pipe", type: GtrCalendarClassDayPipe, name: "gtrCalendarClassDay" }, { kind: "pipe", type: GtrCalendarClassMonthPipe, name: "gtrCalendarClassMonth" }, { kind: "pipe", type: GtrCalendarClassYearPipe, name: "gtrCalendarClassYear" }, { kind: "pipe", type: GtrCalendarWeekdayPipe, name: "gtrCalendarWeekday" }] }); }
|
|
3244
3247
|
}
|
|
3245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarMonthComponent, decorators: [{
|
|
3246
3249
|
type: Component,
|
|
3247
3250
|
args: [{ selector: 'gtr-calendar-month', exportAs: 'gtrCalendarMonth', imports: [
|
|
3248
3251
|
GtrCalendarDayDirective,
|
|
@@ -3293,10 +3296,10 @@ class GtrCalendarClassViewPipe {
|
|
|
3293
3296
|
[`${view}`]: !!view,
|
|
3294
3297
|
};
|
|
3295
3298
|
}
|
|
3296
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3297
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3299
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassViewPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3300
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassViewPipe, isStandalone: true, name: "gtrCalendarClassView" }); }
|
|
3298
3301
|
}
|
|
3299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarClassViewPipe, decorators: [{
|
|
3300
3303
|
type: Pipe,
|
|
3301
3304
|
args: [{
|
|
3302
3305
|
name: 'gtrCalendarClassView',
|
|
@@ -3655,10 +3658,10 @@ class GtrCalendarComponent {
|
|
|
3655
3658
|
this.calendarService.update({ endDate: null });
|
|
3656
3659
|
this.calendarService.update({ startDate: null });
|
|
3657
3660
|
}
|
|
3658
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3659
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3661
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3662
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrCalendarComponent, isStandalone: true, selector: "gtr-calendar", inputs: { calendarDate: "calendarDate", calendars: "calendars", dayFormat: "dayFormat", disabledDates: "disabledDates", startDate: "startDate", endDate: "endDate", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", navYearFirst: "navYearFirst", range: "range", view: "view", type: "type", weekdayFormat: "weekdayFormat", dateFilter: "dateFilter", selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays", dataTransactionName: "dataTransactionName" }, outputs: { calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange", viewChange: "viewChange" }, host: { properties: { "class": "this.hostClasses" } }, providers: [GtrCalendarService], viewQueries: [{ propertyName: "calendarMonths", predicate: GtrCalendarMonthComponent, descendants: true }], exportAs: ["gtrCalendar"], ngImport: i0, template: "@for (calendar of calendarsArray; track i; let i = $index) {\n <div [ngClass]=\"view | gtrCalendarClassView\">\n <gtr-calendar-navigation\n [addMonths]=\"i\"\n [navigation]=\"navigation\"\n (navigationClick)=\"handleNavigationClick($event.direction, $event.years)\"\n [dataTransactionName]=\"dataTransactionName + '-calendar'\"\n ></gtr-calendar-navigation>\n\n <gtr-calendar-month\n [addMonths]=\"i\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [weekdayFormat]=\"weekdayFormat\"\n [dataTransactionName]=\"dataTransactionName + '-calendar'\"\n ></gtr-calendar-month>\n </div>\n}\n\n", dependencies: [{ kind: "component", type: GtrCalendarNavigationComponent, selector: "gtr-calendar-navigation", inputs: ["dataTransactionName", "addMonths", "calendarDate", "navigation", "navYearFirst"], outputs: ["navigationClick"] }, { kind: "component", type: GtrCalendarMonthComponent, selector: "gtr-calendar-month", inputs: ["dataTransactionName", "addMonths", "startDate", "endDate", "disabledDates", "firstDayOfWeek", "locale", "range", "weekdayFormat", "view", "type", "maxDate", "minDate", "calendarDate"], exportAs: ["gtrCalendarMonth"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: GtrCalendarClassViewPipe, name: "gtrCalendarClassView" }] }); }
|
|
3660
3663
|
}
|
|
3661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCalendarComponent, decorators: [{
|
|
3662
3665
|
type: Component,
|
|
3663
3666
|
args: [{ selector: 'gtr-calendar', exportAs: 'gtrCalendar', providers: [GtrCalendarService], imports: [
|
|
3664
3667
|
GtrCalendarNavigationComponent,
|
|
@@ -3783,8 +3786,8 @@ class GtrCheckboxComponent {
|
|
|
3783
3786
|
event.preventDefault();
|
|
3784
3787
|
}
|
|
3785
3788
|
}
|
|
3786
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3787
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3789
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3790
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrCheckboxComponent, isStandalone: true, selector: "gtr-checkbox", inputs: { name: "name", dataTransactionName: "dataTransactionName", identifier: "identifier", value: "value", label: "label", checked: "checked", disabled: "disabled", readonly: "readonly" }, outputs: { selectionChanged: "selectionChanged" }, providers: [
|
|
3788
3791
|
{
|
|
3789
3792
|
provide: NG_VALUE_ACCESSOR,
|
|
3790
3793
|
useExisting: forwardRef((() => GtrCheckboxComponent)),
|
|
@@ -3792,7 +3795,7 @@ class GtrCheckboxComponent {
|
|
|
3792
3795
|
},
|
|
3793
3796
|
], ngImport: i0, template: "<label\n class=\"gtr-checkbox-wrapper\"\n [attr.id]=\"identifier || 'gtr-checkbox'\"\n [attr.data-testid]=\"identifier || 'gtr-checkbox'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-checkbox-wrapper'\"\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 + '-checkbox'\"\n tabindex=\"0\"\n />\n <span class=\"gtr-checkmark\"\n [attr.data-transaction-name]=\"dataTransactionName + '-checkbox-checkmark'\">\n @if (!disabled || (checked && disabled)) {\n <gtr-icon\n name=\"check\"\n [size]=\"14\"\n weight=\"bold\"\n [dataTransactionName]=\"dataTransactionName + '-checkbox-checkbox'\"\n ></gtr-icon>\n }\n </span>\n @if (label) {\n <span class=\"gtr-checkbox-label\"\n [attr.data-transaction-name]=\"dataTransactionName + '-checkbox-label'\">{{ label }}</span>\n }\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;-moz-user-select:none;-ms-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: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
3794
3797
|
}
|
|
3795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCheckboxComponent, decorators: [{
|
|
3796
3799
|
type: Component,
|
|
3797
3800
|
args: [{ selector: 'gtr-checkbox', providers: [
|
|
3798
3801
|
{
|
|
@@ -3932,10 +3935,10 @@ class GtrModalComponent {
|
|
|
3932
3935
|
bodyElement.style.overflow = 'auto';
|
|
3933
3936
|
this.closeModal.emit();
|
|
3934
3937
|
}
|
|
3935
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3936
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3938
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrModalComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3939
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrModalComponent, isStandalone: true, selector: "gtr-modal", inputs: { isOpen: ["isOpen", "isOpen", booleanAttribute], modalPosition: "modalPosition", modalId: "modalId", modalSize: "modalSize", scrollType: "scrollType", header: "header", hasHeading: ["hasHeading", "hasHeading", booleanAttribute], dataTransactionName: "dataTransactionName" }, outputs: { closeModal: "closeModal" }, host: { listeners: { "keydown": "handleKeyDown($event)" } }, viewQueries: [{ propertyName: "modalElement", first: true, predicate: ["modalElement"], descendants: true }], ngImport: i0, template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\"\n [attr.data-transaction-name]=\"dataTransactionName + '-modal'\"\n [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n @if (hasHeading) {\n <div class=\"gtr-modal-header\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{ this.header }}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\"\n [attr.data-testid]=\"modalId+'-modal-cross-button'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-modal-close'\"\n (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\"/>\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\"/>\n </svg>\n </button>\n </div>\n }\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-size-border-radius-modal);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"] }); }
|
|
3937
3940
|
}
|
|
3938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrModalComponent, decorators: [{
|
|
3939
3942
|
type: Component,
|
|
3940
3943
|
args: [{ standalone: true, selector: 'gtr-modal', template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\"\n [attr.data-transaction-name]=\"dataTransactionName + '-modal'\"\n [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n @if (hasHeading) {\n <div class=\"gtr-modal-header\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{ this.header }}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\"\n [attr.data-testid]=\"modalId+'-modal-cross-button'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-modal-close'\"\n (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\"/>\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\"/>\n </svg>\n </button>\n </div>\n }\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[slot='modal-body']\">\n </ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[slot='modal-actions']\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-size-border-radius-modal);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"] }]
|
|
3941
3944
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
@@ -4009,10 +4012,10 @@ class GtrHtmlAttributesDirective {
|
|
|
4009
4012
|
? this.renderer.setAttribute(this.el.nativeElement, key, value)
|
|
4010
4013
|
: this.renderer.removeAttribute(this.el.nativeElement, key);
|
|
4011
4014
|
}
|
|
4012
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4013
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4015
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrHtmlAttributesDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4016
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrHtmlAttributesDirective, isStandalone: true, selector: "[gtrHtmlAttr]", inputs: { gtrHtmlAttr: "gtrHtmlAttr" }, exportAs: ["gtrHtmlAttr"], ngImport: i0 }); }
|
|
4014
4017
|
}
|
|
4015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrHtmlAttributesDirective, decorators: [{
|
|
4016
4019
|
type: Directive,
|
|
4017
4020
|
args: [{
|
|
4018
4021
|
selector: '[gtrHtmlAttr]',
|
|
@@ -4027,10 +4030,10 @@ class GtrTemplateIdDirective {
|
|
|
4027
4030
|
constructor(templateRef) {
|
|
4028
4031
|
this.templateRef = templateRef;
|
|
4029
4032
|
}
|
|
4030
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4031
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4033
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTemplateIdDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4034
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrTemplateIdDirective, isStandalone: true, selector: "[gtrTemplateId]", inputs: { id: ["gtrTemplateId", "id"] }, ngImport: i0 }); }
|
|
4032
4035
|
}
|
|
4033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTemplateIdDirective, decorators: [{
|
|
4034
4037
|
type: Directive,
|
|
4035
4038
|
args: [{
|
|
4036
4039
|
selector: '[gtrTemplateId]',
|
|
@@ -4047,10 +4050,10 @@ class GtrDropdownDividerDirective {
|
|
|
4047
4050
|
'dropdown-divider': true,
|
|
4048
4051
|
};
|
|
4049
4052
|
}
|
|
4050
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4051
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4053
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownDividerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4054
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownDividerDirective, isStandalone: true, selector: "[gtrDropdownDivider]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4052
4055
|
}
|
|
4053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownDividerDirective, decorators: [{
|
|
4054
4057
|
type: Directive,
|
|
4055
4058
|
args: [{
|
|
4056
4059
|
selector: '[gtrDropdownDivider]',
|
|
@@ -4067,10 +4070,10 @@ class GtrDropdownHeaderDirective {
|
|
|
4067
4070
|
'dropdown-header': true,
|
|
4068
4071
|
};
|
|
4069
4072
|
}
|
|
4070
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4071
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4073
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4074
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownHeaderDirective, isStandalone: true, selector: "[gtrDropdownHeader]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4072
4075
|
}
|
|
4073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownHeaderDirective, decorators: [{
|
|
4074
4077
|
type: Directive,
|
|
4075
4078
|
args: [{
|
|
4076
4079
|
selector: '[gtrDropdownHeader]',
|
|
@@ -4089,10 +4092,10 @@ class GtrDropdownService {
|
|
|
4089
4092
|
toggle(state) {
|
|
4090
4093
|
this.dropdownState.next(state);
|
|
4091
4094
|
}
|
|
4092
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4093
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4095
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4096
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownService }); }
|
|
4094
4097
|
}
|
|
4095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownService, decorators: [{
|
|
4096
4099
|
type: Injectable
|
|
4097
4100
|
}], ctorParameters: () => [] });
|
|
4098
4101
|
|
|
@@ -4143,10 +4146,10 @@ class GtrDropdownMenuDirective {
|
|
|
4143
4146
|
this.dropdownStateSubscription?.unsubscribe();
|
|
4144
4147
|
}
|
|
4145
4148
|
}
|
|
4146
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4147
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
4149
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownMenuDirective, deps: [{ token: i0.ElementRef }, { token: GtrDropdownService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4150
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrDropdownMenuDirective, isStandalone: true, selector: "[gtrDropdownMenu]", inputs: { alignment: "alignment", visible: "visible", dark: ["dark", "dark", booleanAttribute] }, host: { properties: { "class": "this.hostClasses", "style": "this.hostStyles" } }, exportAs: ["gtrDropdownMenu"], ngImport: i0 }); }
|
|
4148
4151
|
}
|
|
4149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownMenuDirective, decorators: [{
|
|
4150
4153
|
type: Directive,
|
|
4151
4154
|
args: [{
|
|
4152
4155
|
selector: '[gtrDropdownMenu]',
|
|
@@ -4220,15 +4223,15 @@ class GtrDropdownToggleDirective {
|
|
|
4220
4223
|
this.dropdownService = this.dropdownComponent?.dropdownService;
|
|
4221
4224
|
}
|
|
4222
4225
|
}
|
|
4223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4224
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4226
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownToggleDirective, deps: [{ token: i0.ElementRef }, { token: GtrDropdownService }, { token: GtrDropdownToken, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4227
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownToggleDirective, isStandalone: true, selector: "[gtrDropdownToggle]", inputs: { dropdownComponent: "dropdownComponent", disabled: "disabled", caret: "caret", split: "split" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class": "this.hostClasses" } }, providers: [
|
|
4225
4228
|
{
|
|
4226
4229
|
provide: GtrDropdownToken,
|
|
4227
4230
|
useExisting: forwardRef((() => GtrDropdownComponent)),
|
|
4228
4231
|
},
|
|
4229
4232
|
], exportAs: ["gtrDropdownToggle"], ngImport: i0 }); }
|
|
4230
4233
|
}
|
|
4231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownToggleDirective, decorators: [{
|
|
4232
4235
|
type: Directive,
|
|
4233
4236
|
args: [{
|
|
4234
4237
|
selector: '[gtrDropdownToggle]',
|
|
@@ -4497,10 +4500,10 @@ class GtrDropdownComponent {
|
|
|
4497
4500
|
this.listeners.fill(undefined);
|
|
4498
4501
|
this.listeners = [];
|
|
4499
4502
|
}
|
|
4500
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4501
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4503
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownComponent, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: GtrDropdownService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4504
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownComponent, isStandalone: true, selector: "gtr-dropdown", inputs: { alignment: "alignment", autoClose: "autoClose", dark: "dark", direction: "direction", placement: "placement", popper: "popper", popperOptions: "popperOptions", variant: "variant", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "class": "this.hostClasses", "style": "this.hostStyle" } }, providers: [GtrDropdownService], queries: [{ propertyName: "_toggler", first: true, predicate: GtrDropdownToggleDirective, descendants: true }, { propertyName: "_menu", first: true, predicate: GtrDropdownMenuDirective, descendants: true }, { propertyName: "_menuElementRef", first: true, predicate: GtrDropdownMenuDirective, descendants: true, read: ElementRef }], exportAs: ["gtrDropdown"], usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block;min-width:fit-content}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] }); }
|
|
4502
4505
|
}
|
|
4503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownComponent, decorators: [{
|
|
4504
4507
|
type: Component,
|
|
4505
4508
|
args: [{ selector: 'gtr-dropdown', template: '<ng-content></ng-content>', exportAs: 'gtrDropdown', providers: [GtrDropdownService], standalone: true, styles: [":host-context(.dropdown,.dropup):not(.btn-group){display:block;min-width:fit-content}:host-context(.dropstart,.dropend):not(.btn-group){display:inline-flex}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}:host-context(html:not([dir=rtl])) :host-context(.input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host{direction:rtl}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :first-child{border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:first-child::ng-deep :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child{border-top-right-radius:0;border-bottom-right-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl] .input-group) :host:last-child::ng-deep :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}\n"] }]
|
|
4506
4509
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
@@ -4595,10 +4598,10 @@ class GtrDropdownItemDirective {
|
|
|
4595
4598
|
}
|
|
4596
4599
|
}
|
|
4597
4600
|
}
|
|
4598
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4599
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4601
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownItemDirective, deps: [{ token: GtrDropdownService }, { token: GtrDropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4602
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownItemDirective, isStandalone: true, selector: "[gtrDropdownItem]", inputs: { active: "active", autoClose: "autoClose", disabled: "disabled", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "attr.aria-current": "this.ariaCurrent", "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, exportAs: ["gtrDropdownItem"], ngImport: i0 }); }
|
|
4600
4603
|
}
|
|
4601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownItemDirective, decorators: [{
|
|
4602
4605
|
type: Directive,
|
|
4603
4606
|
args: [{
|
|
4604
4607
|
selector: '[gtrDropdownItem]',
|
|
@@ -4641,10 +4644,10 @@ class GtrDropdownItemPlainDirective {
|
|
|
4641
4644
|
'dropdown-item-text': true,
|
|
4642
4645
|
};
|
|
4643
4646
|
}
|
|
4644
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4645
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4647
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownItemPlainDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4648
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownItemPlainDirective, isStandalone: true, selector: "[gtrDropdownItemPlain]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4646
4649
|
}
|
|
4647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownItemPlainDirective, decorators: [{
|
|
4648
4651
|
type: Directive,
|
|
4649
4652
|
args: [{
|
|
4650
4653
|
selector: '[gtrDropdownItemPlain]',
|
|
@@ -4693,10 +4696,10 @@ class GtrDropdownCloseDirective {
|
|
|
4693
4696
|
});
|
|
4694
4697
|
}
|
|
4695
4698
|
}
|
|
4696
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4697
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4699
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownCloseDirective, deps: [{ token: GtrDropdownService }, { token: GtrDropdownComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4700
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDropdownCloseDirective, isStandalone: true, selector: "[gtrDropdownClose]", inputs: { disabled: "disabled", dropdownComponent: "dropdownComponent", tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick($event)", "keyup": "onKeyUp($event)" }, properties: { "class": "this.hostClasses", "attr.tabindex": "this.tabIndex", "attr.aria-disabled": "this.isDisabled" } }, providers: [GtrDropdownService], exportAs: ["gtrDropdownClose"], ngImport: i0 }); }
|
|
4698
4701
|
}
|
|
4699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDropdownCloseDirective, decorators: [{
|
|
4700
4703
|
type: Directive,
|
|
4701
4704
|
args: [{
|
|
4702
4705
|
selector: '[gtrDropdownClose]',
|
|
@@ -4743,10 +4746,10 @@ class GtrFormDirective {
|
|
|
4743
4746
|
'was-validated': this.validated,
|
|
4744
4747
|
};
|
|
4745
4748
|
}
|
|
4746
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4747
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
4749
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4750
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrFormDirective, isStandalone: true, selector: "form[gtrForm]", inputs: { validated: ["validated", "validated", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4748
4751
|
}
|
|
4749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormDirective, decorators: [{
|
|
4750
4753
|
type: Directive,
|
|
4751
4754
|
args: [{
|
|
4752
4755
|
selector: 'form[gtrForm]',
|
|
@@ -4776,10 +4779,10 @@ class GtrFormFeedbackComponent {
|
|
|
4776
4779
|
'invalid-tooltip': this.valid !== true && this.tooltip,
|
|
4777
4780
|
};
|
|
4778
4781
|
}
|
|
4779
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4780
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
4782
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormFeedbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4783
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.22", type: GtrFormFeedbackComponent, isStandalone: true, selector: "gtr-form-feedback", inputs: { tooltip: ["tooltip", "tooltip", booleanAttribute], valid: "valid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
4781
4784
|
}
|
|
4782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormFeedbackComponent, decorators: [{
|
|
4783
4786
|
type: Component,
|
|
4784
4787
|
args: [{
|
|
4785
4788
|
selector: 'gtr-form-feedback',
|
|
@@ -4811,10 +4814,10 @@ class GtrInputGroupComponent {
|
|
|
4811
4814
|
this.sizing = '';
|
|
4812
4815
|
this.invalid = false;
|
|
4813
4816
|
}
|
|
4814
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4815
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4817
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4818
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrInputGroupComponent, isStandalone: true, selector: "gtr-input-group", inputs: { sizing: "sizing", invalid: "invalid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
4816
4819
|
}
|
|
4817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputGroupComponent, decorators: [{
|
|
4818
4821
|
type: Component,
|
|
4819
4822
|
args: [{
|
|
4820
4823
|
selector: 'gtr-input-group',
|
|
@@ -4845,10 +4848,10 @@ class GtrFormSelectDirective {
|
|
|
4845
4848
|
*/
|
|
4846
4849
|
this.sizing = '';
|
|
4847
4850
|
}
|
|
4848
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4849
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4851
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4852
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrFormSelectDirective, isStandalone: true, selector: "select[gtrSelect]", inputs: { sizing: "sizing", valid: "valid" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4850
4853
|
}
|
|
4851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormSelectDirective, decorators: [{
|
|
4852
4855
|
type: Directive,
|
|
4853
4856
|
args: [{
|
|
4854
4857
|
selector: 'select[gtrSelect]',
|
|
@@ -4882,10 +4885,10 @@ class GtrFormLabelDirective {
|
|
|
4882
4885
|
*/
|
|
4883
4886
|
this.sizing = '';
|
|
4884
4887
|
}
|
|
4885
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4886
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4888
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4889
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrFormLabelDirective, isStandalone: true, selector: "[gtrLabel]", inputs: { col: ["gtrLabel", "col"], sizing: "sizing" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4887
4890
|
}
|
|
4888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormLabelDirective, decorators: [{
|
|
4889
4892
|
type: Directive,
|
|
4890
4893
|
args: [{
|
|
4891
4894
|
selector: '[gtrLabel]',
|
|
@@ -4907,10 +4910,10 @@ class GtrFormCheckLabelDirective {
|
|
|
4907
4910
|
'form-check-label': true,
|
|
4908
4911
|
};
|
|
4909
4912
|
}
|
|
4910
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4911
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4913
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4914
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrFormCheckLabelDirective, isStandalone: true, selector: "label[gtrFormCheckLabel]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
4912
4915
|
}
|
|
4913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckLabelDirective, decorators: [{
|
|
4914
4917
|
type: Directive,
|
|
4915
4918
|
args: [{
|
|
4916
4919
|
selector: 'label[gtrFormCheckLabel]',
|
|
@@ -4965,10 +4968,10 @@ class GtrFormCheckComponent {
|
|
|
4965
4968
|
ngAfterContentInit() {
|
|
4966
4969
|
this.#formCheckClass = !!this.formCheckLabel;
|
|
4967
4970
|
}
|
|
4968
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4969
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
4971
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4972
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.22", type: GtrFormCheckComponent, isStandalone: true, selector: "gtr-form-check", inputs: { inline: ["inline", "inline", booleanAttribute], reverse: ["reverse", "reverse", booleanAttribute], sizing: "sizing", switch: ["switch", "switch", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, queries: [{ propertyName: "formCheckLabel", first: true, predicate: GtrFormCheckLabelDirective, descendants: true }], exportAs: ["gtrFormCheck"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
4970
4973
|
}
|
|
4971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckComponent, decorators: [{
|
|
4972
4975
|
type: Component,
|
|
4973
4976
|
args: [{
|
|
4974
4977
|
selector: 'gtr-form-check',
|
|
@@ -5031,10 +5034,10 @@ class GtrFormCheckInputDirective {
|
|
|
5031
5034
|
this.type = 'checkbox';
|
|
5032
5035
|
this._indeterminate = false;
|
|
5033
5036
|
}
|
|
5034
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5035
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5037
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5038
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrFormCheckInputDirective, isStandalone: true, selector: "input[gtrFormCheckInput]", inputs: { type: "type", indeterminate: "indeterminate", valid: "valid" }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5036
5039
|
}
|
|
5037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormCheckInputDirective, decorators: [{
|
|
5038
5041
|
type: Directive,
|
|
5039
5042
|
args: [{
|
|
5040
5043
|
selector: 'input[gtrFormCheckInput]',
|
|
@@ -5092,10 +5095,10 @@ class GtrFormControlDirective {
|
|
|
5092
5095
|
console.warn(`Gettrx [gtrFormControl] works with '<input>' and '<texarea>' - not with '<${hostTag}>'`);
|
|
5093
5096
|
}
|
|
5094
5097
|
}
|
|
5095
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5096
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
5098
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormControlDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5099
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrFormControlDirective, isStandalone: true, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: { sizing: "sizing", valid: "valid", type: "type", plaintext: ["plaintext", "plaintext", booleanAttribute] }, host: { properties: { "attr.type": "this.type", "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5097
5100
|
}
|
|
5098
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormControlDirective, decorators: [{
|
|
5099
5102
|
type: Directive,
|
|
5100
5103
|
args: [{
|
|
5101
5104
|
selector: 'input[gtrFormControl], textarea[gtrFormControl]',
|
|
@@ -5124,10 +5127,10 @@ class GtrFormTextDirective {
|
|
|
5124
5127
|
'form-text': true,
|
|
5125
5128
|
};
|
|
5126
5129
|
}
|
|
5127
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5128
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5130
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5131
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrFormTextDirective, isStandalone: true, selector: "[gtrFormText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5129
5132
|
}
|
|
5130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormTextDirective, decorators: [{
|
|
5131
5134
|
type: Directive,
|
|
5132
5135
|
args: [{
|
|
5133
5136
|
selector: '[gtrFormText]',
|
|
@@ -5151,10 +5154,10 @@ class GtrFormFloatingDirective {
|
|
|
5151
5154
|
'form-floating': this.floating,
|
|
5152
5155
|
};
|
|
5153
5156
|
}
|
|
5154
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5155
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
5157
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5158
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.22", type: GtrFormFloatingDirective, isStandalone: true, selector: "[gtrFormFloating]", inputs: { floating: ["gtrFormFloating", "floating", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5156
5159
|
}
|
|
5157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormFloatingDirective, decorators: [{
|
|
5158
5161
|
type: Directive,
|
|
5159
5162
|
args: [{
|
|
5160
5163
|
selector: '[gtrFormFloating]',
|
|
@@ -5175,10 +5178,10 @@ class GtrInputGroupTextDirective {
|
|
|
5175
5178
|
};
|
|
5176
5179
|
}
|
|
5177
5180
|
constructor() { }
|
|
5178
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5179
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5181
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputGroupTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5182
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrInputGroupTextDirective, isStandalone: true, selector: "[gtrInputGroupText]", host: { properties: { "class": "this.hostClasses" } }, ngImport: i0 }); }
|
|
5180
5183
|
}
|
|
5181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputGroupTextDirective, decorators: [{
|
|
5182
5185
|
type: Directive,
|
|
5183
5186
|
args: [{
|
|
5184
5187
|
selector: '[gtrInputGroupText]',
|
|
@@ -5868,10 +5871,10 @@ class GtrTimeElementDirective {
|
|
|
5868
5871
|
constructor(elementRef) {
|
|
5869
5872
|
this.elementRef = elementRef;
|
|
5870
5873
|
}
|
|
5871
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5872
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5874
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimeElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5875
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrTimeElementDirective, isStandalone: true, selector: "[gtrTimeElement]", inputs: { gtrTimeElement: "gtrTimeElement" }, exportAs: ["gtrTimeElement"], ngImport: i0 }); }
|
|
5873
5876
|
}
|
|
5874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimeElementDirective, decorators: [{
|
|
5875
5878
|
type: Directive,
|
|
5876
5879
|
args: [{
|
|
5877
5880
|
selector: '[gtrTimeElement]',
|
|
@@ -5941,10 +5944,10 @@ class GtrTimePickerRollColComponent {
|
|
|
5941
5944
|
trackByElement(index, element) {
|
|
5942
5945
|
return element.value;
|
|
5943
5946
|
}
|
|
5944
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5945
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5947
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerRollColComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5948
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTimePickerRollColComponent, isStandalone: true, selector: "gtr-time-picker-roll-col", inputs: { disabled: "disabled", elements: "elements", onClick: "onClick", selected: "selected", refresh: "refresh" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "timeElements", predicate: GtrTimeElementDirective, descendants: true }], exportAs: ["gtrTimePickerRollCol"], usesOnChanges: true, ngImport: i0, template: "@for (element of elements; track i; let i = $index) {\n <div (click)=\"handleElementClick($event, element)\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrTimeElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\"\n>\n {{element.label}}\n</div>\n}\n", dependencies: [{ kind: "directive", type: GtrTimeElementDirective, selector: "[gtrTimeElement]", inputs: ["gtrTimeElement"], exportAs: ["gtrTimeElement"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
5946
5949
|
}
|
|
5947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerRollColComponent, decorators: [{
|
|
5948
5951
|
type: Component,
|
|
5949
5952
|
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', imports: [GtrTimeElementDirective, NgClass, NgStyle], template: "@for (element of elements; track i; let i = $index) {\n <div (click)=\"handleElementClick($event, element)\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrTimeElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\"\n>\n {{element.label}}\n</div>\n}\n" }]
|
|
5950
5953
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { disabled: [{
|
|
@@ -5971,10 +5974,10 @@ class GtrDayPeriodElementDirective {
|
|
|
5971
5974
|
constructor(elementRef) {
|
|
5972
5975
|
this.elementRef = elementRef;
|
|
5973
5976
|
}
|
|
5974
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5975
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5977
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDayPeriodElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5978
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrDayPeriodElementDirective, isStandalone: true, selector: "[gtrDayPeriodElement]", inputs: { gtrDayPeriodElement: "gtrDayPeriodElement" }, exportAs: ["gtrDayPeriodElement"], ngImport: i0 }); }
|
|
5976
5979
|
}
|
|
5977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDayPeriodElementDirective, decorators: [{
|
|
5978
5981
|
type: Directive,
|
|
5979
5982
|
args: [{
|
|
5980
5983
|
selector: '[gtrDayPeriodElement]',
|
|
@@ -6040,10 +6043,10 @@ class GtrTimePickerRollAmPmComponent {
|
|
|
6040
6043
|
this.onClick && this.onClick(element.value);
|
|
6041
6044
|
this.selectedChange.emit(element.value);
|
|
6042
6045
|
}
|
|
6043
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6044
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
6046
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerRollAmPmComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6047
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTimePickerRollAmPmComponent, isStandalone: true, selector: "gtr-time-picker-roll-am-pm", inputs: { disabled: "disabled", elements: "elements", onClick: "onClick", selected: "selected", refresh: "refresh" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class": "this.hostClasses" } }, viewQueries: [{ propertyName: "dayPeriodElements", predicate: GtrDayPeriodElementDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "@for (element of elements; track i; let i = $index) {\n <div (click)=\"handleElementClick($event, element)\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrDayPeriodElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\">\n {{ element.label }}\n </div>\n}\n\n", dependencies: [{ kind: "directive", type: GtrDayPeriodElementDirective, selector: "[gtrDayPeriodElement]", inputs: ["gtrDayPeriodElement"], exportAs: ["gtrDayPeriodElement"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
6045
6048
|
}
|
|
6046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerRollAmPmComponent, decorators: [{
|
|
6047
6050
|
type: Component,
|
|
6048
6051
|
args: [{ selector: 'gtr-time-picker-roll-am-pm', imports: [GtrDayPeriodElementDirective, NgClass, NgStyle], template: "@for (element of elements; track i; let i = $index) {\n <div (click)=\"handleElementClick($event, element)\"\n [attr.disabled]=\"element.disabled || null\"\n [gtrDayPeriodElement]=\"element\"\n [ngClass]=\"{'time-picker-roll-cell': true, selected: element.value === selected, disabled: element.disabled}\"\n [ngStyle]=\"{'width': 'fit-content'}\"\n role=\"button\">\n {{ element.label }}\n </div>\n}\n\n" }]
|
|
6049
6052
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { disabled: [{
|
|
@@ -6488,8 +6491,8 @@ class GtrTimePickerComponent {
|
|
|
6488
6491
|
}
|
|
6489
6492
|
this.dropdownRef?.nativeElement?.classList.add('show');
|
|
6490
6493
|
}
|
|
6491
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6492
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
6494
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6495
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTimePickerComponent, isStandalone: true, selector: "gtr-time-picker", inputs: { cleaner: "cleaner", dateTimeFormatOptions: "dateTimeFormatOptions", disabled: "disabled", filterHours: "filterHours", filterMinutes: "filterMinutes", filterSeconds: "filterSeconds", indicator: "indicator", inputReadOnly: "inputReadOnly", locale: "locale", placeholder: "placeholder", seconds: "seconds", size: "size", time: "time", variant: "variant", valid: "valid", visible: "visible" }, outputs: { timeChange: "timeChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
6493
6496
|
{
|
|
6494
6497
|
provide: NG_VALUE_ACCESSOR,
|
|
6495
6498
|
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
@@ -6497,7 +6500,7 @@ class GtrTimePickerComponent {
|
|
|
6497
6500
|
},
|
|
6498
6501
|
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "dropdownRef", first: true, predicate: GtrDropdownComponent, descendants: true, read: ElementRef }], exportAs: ["gtrTimePicker"], usesOnChanges: true, ngImport: i0, template: "@if (variant === 'select') {\n <div class=\"date-picker-timepickers\">\n <div class=\"picker time-picker\">\n <div [formGroup]=\"selectTime\" class=\"time-picker-body\" [ngClass]=\"timePickerClasses\">\n <span class=\"time-picker-inline-icon\"></span>\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectHours\"\n (ngModelChange)=\"handleSelectHoursChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n @for (hour of listOfHours12; track i; let i = $index) {\n <option [ngValue]=\"hour.value\"\n [attr.disabled]=\"hour.disabled || null\">{{ hour.label }}\n </option>\n }\n </select>\n {{ ' :' }}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectMinutes\"\n (ngModelChange)=\"handleSelectMinutesChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n @for (minute of listOfMinutes; track $index) {\n <option [ngValue]=\"minute.value\"\n [attr.disabled]=\"minute.disabled || null\">{{ minute.label }}\n </option>\n }\n </select>\n @if (seconds) {\n {{ ' :' }}<select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectSeconds\"\n (ngModelChange)=\"handleSelectSecondsChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n @for (second of listOfSeconds; track $index) {\n <option [ngValue]=\"second.value\"\n [attr.disabled]=\"second.disabled || null\">{{ second.label }}\n </option>\n }\n </select>\n }\n @if (hour12) {\n <select [attr.disabled]=\"disabled || null\" gtrSelect class=\"ms-0\" formControlName=\"selectDayPeriod\"\n (ngModelChange)=\"handleSelectDayPeriodChange($event)\" (blur)=\"onBlur()\" [sizing]=\"size ?? ''\">\n @for (dayPeriod of dayPeriods; track $index) {\n <option [ngValue]=\"dayPeriod.value\"\n class=\"time-picker-roll-cell\">{{ dayPeriod.label }}\n </option>\n }\n </select>\n }\n </div>\n </div>\n </div>\n}\n\n@if (variant === 'roll') {\n <gtr-dropdown #dropdown=\"gtrDropdown\" [autoClose]=\"'outside'\" class=\"time-picker picker\" [ngClass]=\"timePickerClasses\"\n [visible]=\"visible\">\n <gtr-input-group [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\"\n [sizing]=\"size ?? ''\"\n gtrDropdownToggle\n class=\"picker-input-group\">\n <input (blur)=\"handleBlur($event);\"\n (change)=\"handleTimeInputChange($event)\"\n (focus)=\"handleFocus($event)\"\n [formControl]=\"timeInput\"\n [placeholder]=\"placeholder\"\n gtrFormControl\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled ? '' : null\"\n [attr.pattern]=\"hour12 ? '(((0[1-9])|(1[0-2])):([0-5])([0-9])\\\\\\\\s(A|P)M)' : '([01]?[0-9]|2[0-3]):[0-5][0-9]'\"\n [readonly]=\"inputReadOnly ?? null\"\n [valid]=\"valid\"\n >\n @if (indicator || cleaner) {\n <span gtrInputGroupText>\n @if (indicator) {\n <span class=\"picker-input-group-indicator\">\n <span class=\"picker-input-group-icon time-picker-input-icon\"></span>\n </span>\n }\n @if (cleaner && time && !disabled) {\n <span (click)=\"!disabled && handleClear($event)\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <span class=\"picker-input-group-icon time-picker-cleaner-icon\"></span>\n </span>\n }\n </span>\n }\n\n </gtr-input-group>\n <div gtrDropdownMenu #dropdownMenu=\"gtrDropdownMenu\">\n <div class=\"time-picker-body time-picker-roll\" style=\"position: relative;\">\n <gtr-time-picker-roll-col\n [elements]=\"listOfHours12\"\n [selected]=\"hour\"\n (selectedChange)=\"handleSelectHoursChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n <gtr-time-picker-roll-col\n [elements]=\"listOfMinutes\"\n [selected]=\"minute\"\n (selectedChange)=\"handleSelectMinutesChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n\n @if (seconds) {\n <gtr-time-picker-roll-col\n [elements]=\"listOfSeconds\"\n [selected]=\"second\"\n (selectedChange)=\"handleSelectSecondsChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-col>\n }\n\n @if (hour12) {\n <gtr-time-picker-roll-am-pm\n [elements]=\"dayPeriods\"\n [selected]=\"dayPeriod\"\n (selectedChange)=\"handleSelectDayPeriodChange($event)\"\n [disabled]=\"disabled\"\n [refresh]=\"dropdownMenu.visible\"\n role=\"listbox\"\n >\n </gtr-time-picker-roll-am-pm>\n }\n </div>\n @if (templates?.timePickerFooter) {\n <div class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.timePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n }\n </div>\n </gtr-dropdown>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrFormSelectDirective, selector: "select[gtrSelect]", inputs: ["sizing", "valid"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrTimePickerRollColComponent, selector: "gtr-time-picker-roll-col", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"], exportAs: ["gtrTimePickerRollCol"] }, { kind: "component", type: GtrTimePickerRollAmPmComponent, selector: "gtr-time-picker-roll-am-pm", inputs: ["disabled", "elements", "onClick", "selected", "refresh"], outputs: ["selectedChange"] }] }); }
|
|
6499
6502
|
}
|
|
6500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTimePickerComponent, decorators: [{
|
|
6501
6504
|
type: Component,
|
|
6502
6505
|
args: [{ selector: 'gtr-time-picker', exportAs: 'gtrTimePicker', imports: [
|
|
6503
6506
|
NgClass,
|
|
@@ -6568,10 +6571,10 @@ class GtrCustomRangeKeyPipe {
|
|
|
6568
6571
|
transform(customRange, ...args) {
|
|
6569
6572
|
return customRange[0];
|
|
6570
6573
|
}
|
|
6571
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6572
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
6574
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCustomRangeKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
6575
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrCustomRangeKeyPipe, isStandalone: true, name: "gtrCustomRangeKey" }); }
|
|
6573
6576
|
}
|
|
6574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrCustomRangeKeyPipe, decorators: [{
|
|
6575
6578
|
type: Pipe,
|
|
6576
6579
|
args: [{
|
|
6577
6580
|
name: 'gtrCustomRangeKey',
|
|
@@ -7200,8 +7203,8 @@ class GtrDateRangePickerComponent {
|
|
|
7200
7203
|
this.dateValidationChange.emit(errors);
|
|
7201
7204
|
this.invalid = !valid;
|
|
7202
7205
|
}
|
|
7203
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7204
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7206
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDateRangePickerComponent, deps: [{ token: i1$1.BreakpointObserver }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7207
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrDateRangePickerComponent, isStandalone: true, selector: "gtr-date-range-picker", inputs: { id: "id", testid: "testid", required: "required", dayFormat: "dayFormat", calendars: "calendars", cleaner: "cleaner", closeOnSelect: "closeOnSelect", format: "format", indicator: "indicator", inputReadOnly: "inputReadOnly", navYearFirst: "navYearFirst", alwaysOpen: "alwaysOpen", placeholder: "placeholder", ranges: "ranges", type: "type", rangesButtonsColor: "rangesButtonsColor", rangesButtonsSize: "rangesButtonsSize", rangesButtonsVariant: "rangesButtonsVariant", separator: "separator", size: "size", timepicker: "timepicker", valid: "valid", invalid: ["invalid", "invalid", booleanAttribute], visible: "visible", startDate: "startDate", endDate: "endDate", calendarDate: "calendarDate", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", maxDate: "maxDate", minDate: "minDate", name: "name", dataTransactionName: "dataTransactionName", navigation: "navigation", range: "range", dateFilter: "dateFilter", disabled: "disabled", value: "value", weekdayFormat: "weekdayFormat", popperjsOptions: ["popperOptions", "popperjsOptions"], selectAdjacentDays: "selectAdjacentDays", showAdjacentDays: "showAdjacentDays" }, outputs: { valueChange: "valueChange", calendarCellHover: "calendarCellHover", calendarDateChange: "calendarDateChange", endDateChange: "endDateChange", startDateChange: "startDateChange", dateValidationChange: "dateValidationChange" }, host: { listeners: { "blur": "onBlur()" } }, providers: [
|
|
7205
7208
|
{
|
|
7206
7209
|
provide: NG_VALUE_ACCESSOR,
|
|
7207
7210
|
useExisting: forwardRef((() => GtrDateRangePickerComponent)),
|
|
@@ -7213,7 +7216,7 @@ class GtrDateRangePickerComponent {
|
|
|
7213
7216
|
},
|
|
7214
7217
|
], queries: [{ propertyName: "contentTemplates", predicate: GtrTemplateIdDirective, descendants: true }], viewQueries: [{ propertyName: "startDateElementRef", first: true, predicate: ["startDateElementRef"], descendants: true }, { propertyName: "endDateElementRef", first: true, predicate: ["endDateElementRef"], descendants: true }], exportAs: ["gtrDateRangePicker"], usesOnChanges: true, ngImport: i0, template: "@if (alwaysOpen) {\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n @if (templates?.datePickerFooter) {\n <div class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n }\n </div>\n <ng-content></ng-content>\n}\n\n@if (!alwaysOpen) {\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n @if (templates?.datePickerFooter) {\n <div class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n }\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n}\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-input-start-date'\"\n class=\"date-picker-input\"\n >\n @if (range && separator !== false) {\n <span gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n }\n\n @if (range) {\n <input (change)=\"handleEndDateInputChange($event)\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-input-end-date'\"\n class=\"date-picker-input\"\n >\n }\n\n @if (!alwaysOpen) {\n @if (indicator || cleaner) {\n <span class=\"picker-input-group-icons\">\n @if (indicator) {\n <span class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n }\n @if (cleaner && startDateElementRef.value && !disabled) {\n <span (click)=\"!disabled && handleClear($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-cleaner'\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n }\n </span>\n }\n }\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n @if (!showRanges) {\n @if (ranges && customRanges.length > 0) {\n <div class=\"date-picker-ranges\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-range-picker'\">\n @for (customRange of customRanges; track $index) {\n <button (click)=\"setCustomRange(customRange)\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-range-picker'\"\n gtrButton>\n {{ customRange | gtrCustomRangeKey }}\n </button>\n }\n </div>\n }\n }\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [dataTransactionName]=\"dataTransactionName + '-date-picker'\"\n [type]=\"type\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n @if (false && timepicker) {\n <div class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n @if (range) {\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n }\n </div>\n }\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}.input-group-invalid{border-color:var(--gtr-color-base-danger-100)!important}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays", "dataTransactionName"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["gtrTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "pipe", type: GtrCustomRangeKeyPipe, name: "gtrCustomRangeKey" }] }); }
|
|
7215
7218
|
}
|
|
7216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDateRangePickerComponent, decorators: [{
|
|
7217
7220
|
type: Component,
|
|
7218
7221
|
args: [{ selector: 'gtr-date-range-picker', exportAs: 'gtrDateRangePicker', providers: [
|
|
7219
7222
|
{
|
|
@@ -7399,8 +7402,8 @@ class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
|
7399
7402
|
subscription?.unsubscribe();
|
|
7400
7403
|
});
|
|
7401
7404
|
}
|
|
7402
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7403
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7405
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDatePickerComponent, deps: [{ token: i1$1.BreakpointObserver }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7406
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrDatePickerComponent, isStandalone: true, selector: "gtr-date-picker", inputs: { name: "name", dataTransactionName: "dataTransactionName", date: "date" }, outputs: { startDateChange: "dateChange" }, providers: [
|
|
7404
7407
|
{
|
|
7405
7408
|
provide: NG_VALUE_ACCESSOR,
|
|
7406
7409
|
useExisting: forwardRef((() => GtrDatePickerComponent)),
|
|
@@ -7412,7 +7415,7 @@ class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
|
7412
7415
|
},
|
|
7413
7416
|
], exportAs: ["gtrDatePicker"], usesInheritance: true, ngImport: i0, template: "@if (alwaysOpen) {\n <div class=\"date-range-picker-input\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div class=\"date-range-picker-calendar\">\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n @if (templates?.datePickerFooter) {\n <div class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter\"></ng-container>\n </div>\n }\n </div>\n <ng-content></ng-content>\n}\n\n@if (!alwaysOpen) {\n <gtr-dropdown #dropdown=\"gtrDropdown\"\n [autoClose]=\"'outside'\"\n class=\"date-picker picker\"\n [ngClass]=\"datePickerClasses\"\n [(visible)]=\"visible\" [popperOptions]=\"popperjsOptions\">\n\n <div gtrDropdownToggle\n [caret]=\"false\"\n [disabled]=\"disabled ?? dropdown.visible\">\n <ng-container *ngTemplateOutlet=\"dateRangePickerInput\"></ng-container>\n </div>\n <div gtrDropdownMenu>\n <ng-container *ngTemplateOutlet=\"dateRangePicker\"></ng-container>\n\n @if (templates?.datePickerFooter) {\n <div class=\"picker-footer\">\n <ng-container *ngTemplateOutlet=\"templates?.datePickerFooter; context: {$implicit: dropdown}\"></ng-container>\n </div>\n }\n </div>\n <ng-content></ng-content>\n </gtr-dropdown>\n}\n\n<ng-template #dateRangePickerInput>\n\n <gtr-input-group [sizing]=\"size ?? ''\"\n [invalid]=\"invalid\"\n class=\"picker-input-group\"\n >\n <input (change)=\"handleStartDateInputChange($event)\"\n [formControl]=\"startDateInput\"\n [ngClass]=\"{hover: !!inputStartHoverValue}\"\n [placeholder]=\"startDatePlaceholder\"\n gtrFormControl\n #startDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"range ? undefined : valid\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-input-start-date'\"\n class=\"date-picker-input\"\n >\n @if (range && separator !== false) {\n <span gtrInputGroupText>\n <span class=\"picker-input-group-icon date-picker-arrow-icon\"></span>\n </span>\n }\n\n @if (range) {\n <input (change)=\"handleEndDateInputChange($event)\"\n [formControl]=\"endDateInput\"\n [ngClass]=\"{hover: !!inputEndHoverValue}\"\n [placeholder]=\"endDatePlaceholder\"\n gtrFormControl\n #endDateElementRef\n [attr.tabindex]=\"disabled ? -1 : 0\"\n pattern=\"[1-9]*\"\n [readonly]=\"inputReadOnly ?? null\"\n [required]=\"required ?? null\"\n [valid]=\"valid ?? undefined\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-input-end-date'\"\n class=\"date-picker-input\"\n >\n }\n\n @if (!alwaysOpen) {\n @if (indicator || cleaner) {\n <span class=\"picker-input-group-icons\">\n @if (indicator) {\n <span class=\"picker-input-group-indicator\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\"></gtr-icon>\n </span>\n }\n @if (cleaner && startDateElementRef.value && !disabled) {\n <span (click)=\"!disabled && handleClear($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-picker-cleaner'\"\n class=\"picker-input-group-cleaner\" role=\"button\">\n <gtr-icon name=\"x\" [size]=\"20\"></gtr-icon>\n </span>\n }\n </span>\n }\n }\n </gtr-input-group>\n</ng-template>\n\n<ng-template #dateRangePicker>\n\n <div class=\"date-picker-body\">\n @if (!showRanges) {\n @if (ranges && customRanges.length > 0) {\n <div class=\"date-picker-ranges\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-range-picker'\">\n @for (customRange of customRanges; track $index) {\n <button (click)=\"setCustomRange(customRange)\"\n [color]=\"rangesButtonsColor\"\n [size]=\"rangesButtonsSize\"\n [variant]=\"rangesButtonsVariant\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-date-range-picker'\"\n gtrButton>\n {{ customRange | gtrCustomRangeKey }}\n </button>\n }\n </div>\n }\n }\n <gtr-calendar\n (calendarCellHover)=\"handleCalendarCellHover($event)\"\n (calendarDateChange)=\"handleCalendarDateChange($event)\"\n (endDateChange)=\"handleEndDateChange($event)\"\n (startDateChange)=\"handleStartDateChange($event)\"\n [calendarDate]=\"calendarDate\"\n [calendars]=\"isMobile ? 1 : calendars\"\n [dateFilter]=\"dateFilter\"\n [disabledDates]=\"disabledDates\"\n [endDate]=\"endDate\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [locale]=\"locale\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [navigation]=\"navigation\"\n [range]=\"range\"\n [startDate]=\"startDate\"\n [navYearFirst]=\"navYearFirst\"\n [dayFormat]=\"dayFormat\"\n [weekdayFormat]=\"weekdayFormat\"\n [selectAdjacentDays]=\"selectAdjacentDays\"\n [showAdjacentDays]=\"showAdjacentDays\"\n [dataTransactionName]=\"dataTransactionName + '-date-picker'\"\n [type]=\"type\"\n class=\"date-picker-calendars\"\n ></gtr-calendar>\n @if (false && timepicker) {\n <div class=\"date-picker-timepickers\">\n <!-- todo-->\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!startDate\"\n [time]=\"startDate ?? undefined\"\n (timeChange)=\"handleStartTimeChange($event)\"\n ></gtr-time-picker>\n @if (range) {\n <gtr-time-picker\n variant=\"select\"\n [locale]=\"locale\"\n [disabled]=\"!endDate\"\n [time]=\"endDate ?? undefined\"\n (timeChange)=\"handleEndTimeChange($event)\"\n ></gtr-time-picker>\n }\n </div>\n }\n </div>\n\n\n</ng-template>\n", styles: [".picker-input-group-indicator{color:var(--gtr-color-base-black-80)!important}.picker-input-group-icons{border:none;display:flex;align-items:center;padding:0 14px}.date-picker-input{border:none!important;outline:none!important;padding:7px 14px}.picker-input-group{outline:none!important;box-shadow:none!important;background-color:#fff!important;border-radius:6px!important;border:1px solid var(--light-solid-color-extra-divider, #DBDADE)!important;background:var(--light-solid-color-extra-card-background, #FFF)!important}.date-picker-calendars{background-color:#fff}.input-group-invalid{border-color:var(--gtr-color-base-danger-100)!important}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrDropdownComponent, selector: "gtr-dropdown", inputs: ["alignment", "autoClose", "dark", "direction", "placement", "popper", "popperOptions", "variant", "visible"], outputs: ["visibleChange"], exportAs: ["gtrDropdown"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: GtrDropdownToggleDirective, selector: "[gtrDropdownToggle]", inputs: ["dropdownComponent", "disabled", "caret", "split"], exportAs: ["gtrDropdownToggle"] }, { kind: "directive", type: GtrDropdownMenuDirective, selector: "[gtrDropdownMenu]", inputs: ["alignment", "visible", "dark"], exportAs: ["gtrDropdownMenu"] }, { kind: "component", type: GtrInputGroupComponent, selector: "gtr-input-group", inputs: ["sizing", "invalid"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: GtrFormControlDirective, selector: "input[gtrFormControl], textarea[gtrFormControl]", inputs: ["sizing", "valid", "type", "plaintext"] }, { kind: "directive", type: GtrInputGroupTextDirective, selector: "[gtrInputGroupText]" }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCalendarComponent, selector: "gtr-calendar", inputs: ["calendarDate", "calendars", "dayFormat", "disabledDates", "startDate", "endDate", "firstDayOfWeek", "locale", "maxDate", "minDate", "navigation", "navYearFirst", "range", "view", "type", "weekdayFormat", "dateFilter", "selectAdjacentDays", "showAdjacentDays", "dataTransactionName"], outputs: ["calendarCellHover", "calendarDateChange", "endDateChange", "startDateChange", "viewChange"], exportAs: ["gtrCalendar"] }, { kind: "component", type: GtrTimePickerComponent, selector: "gtr-time-picker", inputs: ["cleaner", "dateTimeFormatOptions", "disabled", "filterHours", "filterMinutes", "filterSeconds", "indicator", "inputReadOnly", "locale", "placeholder", "seconds", "size", "time", "variant", "valid", "visible"], outputs: ["timeChange"], exportAs: ["gtrTimePicker"] }, { kind: "directive", type: GtrButtonDirective, selector: "[gtrButton]", inputs: ["active", "color", "disabled", "shape", "size", "type", "variant"], exportAs: ["gtrButton"] }, { kind: "pipe", type: GtrCustomRangeKeyPipe, name: "gtrCustomRangeKey" }] }); }
|
|
7414
7417
|
}
|
|
7415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrDatePickerComponent, decorators: [{
|
|
7416
7419
|
type: Component,
|
|
7417
7420
|
args: [{ selector: 'gtr-date-picker', exportAs: 'gtrDatePicker', providers: [
|
|
7418
7421
|
{
|
|
@@ -7572,10 +7575,10 @@ class GtrFileInputComponent {
|
|
|
7572
7575
|
fileTextLimit(fileName) {
|
|
7573
7576
|
return fileName ? (fileName.length > 30 ? `${fileName.slice(0, 30)}...` : fileName) : '';
|
|
7574
7577
|
}
|
|
7575
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7576
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7578
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7579
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrFileInputComponent, isStandalone: true, selector: "gtr-file-input", inputs: { name: "name", dataTransactionName: "dataTransactionName", accept: "accept", heading: "heading", description: "description", ariaLabel: "ariaLabel", identifier: "identifier" }, outputs: { gtrFileSelected: "gtrFileSelected", gtrFileError: "gtrFileError" }, viewQueries: [{ propertyName: "fileInputElement", first: true, predicate: ["fileInputElement"], descendants: true }], ngImport: i0, template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n [attr.data-transaction-name]=\"dataTransactionName + '-file-input-drop'\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-file-input'\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\"\n [dataTransactionName]=\"dataTransactionName + '-file-input-select'\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"], dependencies: [{ kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "name", "dataTransactionName", "color", "isLoading", "variant", "disabled"] }] }); }
|
|
7577
7580
|
}
|
|
7578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFileInputComponent, decorators: [{
|
|
7579
7582
|
type: Component,
|
|
7580
7583
|
args: [{ selector: 'gtr-file-input', imports: [GtrButtonComponent], template: "<div\n class=\"gtr-file-input-wrapper\"\n [attr.id]=\"identifier || 'gtr-file-input'\"\n [attr.data-testid]=\"identifier || 'gtr-file-input'\"\n>\n <div\n class=\"gtr-file-input-container\"\n [attr.data-transaction-name]=\"dataTransactionName + '-file-input-drop'\"\n (drop)=\"handleDrop($event)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"ariaLabel ?? 'gtr-file-input'\"\n >\n <input\n hidden\n #fileInputElement\n type=\"file\"\n [accept]=\"accept\"\n (change)=\"handleFileChange($event)\"\n [name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-file-input'\"\n aria-hidden=\"true\"\n />\n <div class=\"gtr-file-input-icon\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M24 24V42\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M40.7799 36.78C42.7306 35.7165 44.2716 34.0337 45.1597 31.9972C46.0477 29.9607 46.2323 27.6864 45.6843 25.5334C45.1363 23.3803 43.8869 21.471 42.1333 20.1069C40.3796 18.7427 38.2216 18.0014 35.9999 18H33.4799C32.8745 15.6585 31.7462 13.4846 30.1798 11.642C28.6134 9.79927 26.6496 8.33567 24.4361 7.36118C22.2226 6.3867 19.817 5.92669 17.4002 6.01573C14.9833 6.10478 12.6181 6.74057 10.4823 7.8753C8.34649 9.01003 6.49574 10.6142 5.06916 12.5671C3.64259 14.5201 2.6773 16.771 2.24588 19.1508C1.81446 21.5305 1.92813 23.977 2.57835 26.3065C3.22856 28.636 4.3984 30.7877 5.99992 32.6\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M32 32L24 24L16 32\"\n stroke=\"#F2994A\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <div class=\"gtr-file-info-wrapper\">\n <span class=\"gtr-file-input-heading\">\n {{ currentSelectedFileName ?? heading ?? \"Drag and drop files here, or click to browse\" }}\n </span>\n <span class=\"gtr-file-input-description\">\n {{ description || \"CSV, excel, PNG, JPG, JPEG files accepted\" }}\n </span>\n </div>\n <div>\n <gtr-button variant=\"outline\" color=\"success\" (click)=\"fileInputElement.click()\"\n [dataTransactionName]=\"dataTransactionName + '-file-input-select'\">\n Select File\n </gtr-button>\n </div>\n </div>\n</div>\n", styles: [".gtr-file-input-wrapper *,.gtr-file-input-wrapper *:after,.gtr-file-input-wrapper *:before{box-sizing:border-box;margin:0;width:auto}.gtr-file-input-wrapper .gtr-file-input-container{width:100%;position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-self:center;padding:16px 24px 16px 32px;border-radius:10px;border:1px dashed var(--gtr-color-base-black-20);gap:24px;transition:.4s all ease-in-out}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-input-icon{width:48px;height:48px;object-fit:contain}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper{flex-grow:1;display:flex;flex-direction:column}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-heading{cursor:pointer;font-size:18px;line-height:normal;font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-100);margin-bottom:12px}.gtr-file-input-wrapper .gtr-file-input-container .gtr-file-info-wrapper .gtr-file-input-description{font-family:var(--gtr-component-font-family-base);color:var(--gtr-color-base-black-40);font-size:16px;font-style:normal;font-weight:400;line-height:normal}\n"] }]
|
|
7581
7584
|
}], propDecorators: { fileInputElement: [{
|
|
@@ -7659,8 +7662,11 @@ class GtrInputColorComponent {
|
|
|
7659
7662
|
constructor() {
|
|
7660
7663
|
this.destroyRef = inject(DestroyRef);
|
|
7661
7664
|
this.touched = false;
|
|
7662
|
-
this.inputControl = new FormControl('',
|
|
7663
|
-
|
|
7665
|
+
this.inputControl = new FormControl('', {
|
|
7666
|
+
nonNullable: true,
|
|
7667
|
+
validators: [validColorValidator()],
|
|
7668
|
+
});
|
|
7669
|
+
this.colorControl = new FormControl('', { nonNullable: true });
|
|
7664
7670
|
this.hasBorder = false;
|
|
7665
7671
|
this.inputInvalid = false;
|
|
7666
7672
|
this.inputLabel = 'Color';
|
|
@@ -7685,7 +7691,7 @@ class GtrInputColorComponent {
|
|
|
7685
7691
|
}
|
|
7686
7692
|
});
|
|
7687
7693
|
this.colorControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((color) => {
|
|
7688
|
-
this.inputControl.setValue(color);
|
|
7694
|
+
this.inputControl.setValue(color || '');
|
|
7689
7695
|
});
|
|
7690
7696
|
}
|
|
7691
7697
|
handleValue(color) {
|
|
@@ -7720,8 +7726,8 @@ class GtrInputColorComponent {
|
|
|
7720
7726
|
this.touched = true;
|
|
7721
7727
|
this.onTouched(true);
|
|
7722
7728
|
}
|
|
7723
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7724
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
7729
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputColorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7730
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrInputColorComponent, isStandalone: true, selector: "gtr-input-color", inputs: { inputLabel: "inputLabel", invalid: "invalid", placeholder: "placeholder", colorPickerControls: "colorPickerControls", hideColorPicker: "hideColorPicker", hidePickerTextInput: "hidePickerTextInput", hideErrorMessage: "hideErrorMessage", name: "name", dataTransactionName: "dataTransactionName", disabled: "disabled", value: "value", inputValue: "inputValue", colorValue: "colorValue" }, outputs: { valueChange: "valueChange" }, providers: [
|
|
7725
7731
|
{
|
|
7726
7732
|
provide: NG_VALUE_ACCESSOR,
|
|
7727
7733
|
useExisting: forwardRef((() => GtrInputColorComponent)),
|
|
@@ -7729,7 +7735,7 @@ class GtrInputColorComponent {
|
|
|
7729
7735
|
},
|
|
7730
7736
|
], ngImport: i0, template: "<div class=\"input-color-container\">\n <div class=\"gtr-custom-label\">{{ inputLabel }}</div>\n\n <div\n class=\"d-flex flex-row align-items-center input-color\"\n [class.has-border]=\"hasBorder\"\n [class.invalid]=\"!disabled && (invalid || inputInvalid)\"\n >\n <gtr-input\n type=\"text\"\n [isValid]=\"inputControl.valid\"\n [placeholder]=\"placeholder || ''\"\n [dataTransactionName]=\"dataTransactionName + '-color'\"\n [name]=\"name\"\n [formControl]=\"inputControl\">\n </gtr-input>\n\n <ngx-colors\n ngx-colors-trigger\n [hideColorPicker]=\"hideColorPicker\"\n [colorPickerControls]=\"colorPickerControls\"\n [hideTextInput]=\"hidePickerTextInput\"\n [formControl]=\"colorControl\"\n acceptLabel=\"Accept\"\n cancelLabel=\"Cancel\"\n ></ngx-colors>\n\n </div>\n @if (!disabled && (invalid || inputInvalid) && inputControl.errors && !hideErrorMessage) {\n @if (inputControl.invalid && (inputControl.dirty || inputControl.touched)) {\n <div class=\"custom-error\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n @if (inputControl.errors['invalidColor']) {\n <span>The color is invalid.</span>\n }\n </div>\n }\n }\n</div>\n", styles: [".input-color-container .gtr-custom-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input-color-container ::ng-deep ngx-colors{display:inline-block;margin-left:5px}.input-color-container ::ng-deep ngx-colors .preview{border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}.input-color-container ::ng-deep ngx-colors .preview-background{border-radius:6px!important}.input-color-container ::ng-deep ngx-colors .circle{border:1px solid transparent!important;border-radius:6px!important;width:42px!important;height:100%!important;min-height:38px!important}.input-color-container .input-color.has-border ::ng-deep ngx-colors .circle{border-color:var(--gtr-color-base-black-10)!important}::ng-deep ngx-colors-panel .opened button{letter-spacing:.43px!important;padding:8px 12px 8px 10px!important;line-height:18px!important;font-size:15px!important;font-weight:400!important;border:1px solid transparent!important;border-radius:6px!important}\n"], dependencies: [{ kind: "component", type: GtrInputComponent, selector: "gtr-input", inputs: ["inputWrapperId", "loading", "type", "name", "dataTransactionName", "value", "placeholder", "inputIcon", "iconSize", "iconColor", "iconPosition", "iconFontWeight", "inputLabel", "disabled", "validateLabel", "isNumber", "readonly", "isOnlyView", "defaultValidation", "required", "isValid", "crop", "inputId", "setFocus"], outputs: ["inputChanged", "handleError"] }, { kind: "ngmodule", type: NgxColorsModule }, { kind: "component", type: i1$2.NgxColorsComponent, selector: "ngx-colors" }, { kind: "directive", type: i1$2.NgxColorsTriggerDirective, selector: "[ngx-colors-trigger]", inputs: ["colorsAnimation", "palette", "format", "formats", "position", "hideTextInput", "hideColorPicker", "attachTo", "overlayClassName", "colorPickerControls", "acceptLabel", "cancelLabel"], outputs: ["change", "input", "slider", "close", "open"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
7731
7737
|
}
|
|
7732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrInputColorComponent, decorators: [{
|
|
7733
7739
|
type: Component,
|
|
7734
7740
|
args: [{ selector: 'gtr-input-color', providers: [
|
|
7735
7741
|
{
|
|
@@ -7886,8 +7892,8 @@ class GtrNumericCounterComponent {
|
|
|
7886
7892
|
}
|
|
7887
7893
|
}
|
|
7888
7894
|
}
|
|
7889
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7890
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7895
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrNumericCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7896
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.22", type: GtrNumericCounterComponent, isStandalone: true, selector: "gtr-numeric-counter", inputs: { value: "value", step: "step", min: "min", max: "max", name: "name", identifier: "identifier", disabled: "disabled", readonly: "readonly", dataTransactionName: "dataTransactionName" }, outputs: { gtrChange: "gtrChange" }, providers: [
|
|
7891
7897
|
{
|
|
7892
7898
|
provide: NG_VALUE_ACCESSOR,
|
|
7893
7899
|
useExisting: forwardRef((() => GtrNumericCounterComponent)),
|
|
@@ -7895,7 +7901,7 @@ class GtrNumericCounterComponent {
|
|
|
7895
7901
|
},
|
|
7896
7902
|
], ngImport: i0, template: "<div\n aria-label=\"gtr-numeric-counter\"\n aria-describedBy=\"gtr-numeric-counter\"\n class=\"gtr-numeric-counter-wrapper\"\n [ngClass]=\"{\n readonly: readonly,\n disabled: disabled\n }\"\n tabindex=\"0\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n [attr.id]=\"identifier || 'gtr-numeric-counter'\"\n [attr.data-testid]=\"identifier || 'gtr-numeric-counter'\"\n (keydown)=\"handleKeyDown($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-numeric-counter'\"\n>\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isminus\"\n [attr.aria-disabled]=\"value <= min ? 'true' : 'false'\"\n [disabled]=\"value <= min\"\n (click)=\"decrementCounter()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-numeric-counter-minus'\"\n >\n <gtr-icon name=\"minus\" [size]=\"18\"\n [dataTransactionName]=\"dataTransactionName + '-numeric-counter-minus'\"></gtr-icon>\n </button>\n <input\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [attr.aria-disabled]=\"disabled ? 'true' : 'false'\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n role=\"spinbutton\"\n class=\"gtr-numeric-counter-input\"\n type=\"number\"\n [step]=\"step\"\n [min]=\"min\"\n [max]=\"max\"\n [name]=\"name\"\n [value]=\"value\"\n pattern=\"[0-9]*\"\n inputmode=\"numeric\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"value\"\n (change)=\"handleOnChange($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-numeric-counter-input'\"\n />\n <button\n type=\"button\"\n class=\"gtr-numeric-counter-button gtr__isplus\"\n [attr.aria-disabled]=\"value >= max ? 'true' : 'false'\"\n (click)=\"incrementCounter()\"\n [disabled]=\"value >= max - 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-numeric-counter-plus'\"\n >\n <gtr-icon name=\"plus\" [size]=\"18\"\n [dataTransactionName]=\"dataTransactionName + '-numeric-counter-plus'\"></gtr-icon>\n </button>\n</div>\n", styles: [":host{--gtr-component-numeric-counter-bg-color: rgba(213, 213, 213, 1)}.gtr-numeric-counter-wrapper *,.gtr-numeric-counter-wrapper *:after,.gtr-numeric-counter-wrapper *:before{margin:0;width:auto;box-sizing:border-box}.gtr-numeric-counter-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;align-self:center;width:fit-content}.gtr-numeric-counter-wrapper.disabled{pointer-events:none;cursor:default;opacity:.5}.gtr-numeric-counter-wrapper.readonly{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button{width:30px;height:25px;outline:none;border:none;border:solid 1px var(--gtr-component-numeric-counter-bg-color);background:var(--gtr-component-numeric-counter-bg-color);display:flex;align-items:center;align-self:center;justify-content:center;cursor:pointer}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button::ng-deep gtr-icon{color:#000}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:disabled{pointer-events:none;opacity:.5;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:first-child{border-radius:6px 0 0 6px}.gtr-numeric-counter-wrapper .gtr-numeric-counter-button:last-child{border-radius:0 6px 6px 0}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input{color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-size:17px;height:25px;font-style:normal;font-weight:400;line-height:normal;width:33px;outline:none;border:none;text-align:center;border:solid 1px var(--gtr-component-numeric-counter-bg-color);border-radius:0}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input:disabled{pointer-events:none;cursor:default}.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-outer-spin-button,.gtr-numeric-counter-wrapper .gtr-numeric-counter-input::-webkit-inner-spin-button{-moz-appearance:textfield;appearance:none;-webkit-appearance:none;margin:0}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
7897
7903
|
}
|
|
7898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrNumericCounterComponent, decorators: [{
|
|
7899
7905
|
type: Component,
|
|
7900
7906
|
args: [{ selector: 'gtr-numeric-counter', providers: [
|
|
7901
7907
|
{
|
|
@@ -7936,10 +7942,10 @@ class GtrValidatePagePipe {
|
|
|
7936
7942
|
}
|
|
7937
7943
|
return returnValue ?? '';
|
|
7938
7944
|
}
|
|
7939
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7940
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
7945
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrValidatePagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
7946
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrValidatePagePipe, isStandalone: true, name: "gtrValidatePage" }); }
|
|
7941
7947
|
}
|
|
7942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrValidatePagePipe, decorators: [{
|
|
7943
7949
|
type: Pipe,
|
|
7944
7950
|
args: [{
|
|
7945
7951
|
name: 'gtrValidatePage',
|
|
@@ -8041,10 +8047,10 @@ class GtrTrimTextPipe {
|
|
|
8041
8047
|
}
|
|
8042
8048
|
return value?.substring(0, limit) + '...';
|
|
8043
8049
|
}
|
|
8044
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8045
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
8050
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTrimTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8051
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrTrimTextPipe, isStandalone: true, name: "gtrTrimText" }); }
|
|
8046
8052
|
}
|
|
8047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTrimTextPipe, decorators: [{
|
|
8048
8054
|
type: Pipe,
|
|
8049
8055
|
args: [{
|
|
8050
8056
|
name: 'gtrTrimText',
|
|
@@ -8095,10 +8101,10 @@ class GtrFormatSelectedValuePipe {
|
|
|
8095
8101
|
return formattedOption ? formattedOption : selectedValues?.[0] ? selectedValues?.[0] : '';
|
|
8096
8102
|
}
|
|
8097
8103
|
}
|
|
8098
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8099
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
8104
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormatSelectedValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8105
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrFormatSelectedValuePipe, isStandalone: true, name: "gtrFormatSelectedValue" }); }
|
|
8100
8106
|
}
|
|
8101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFormatSelectedValuePipe, decorators: [{
|
|
8102
8108
|
type: Pipe,
|
|
8103
8109
|
args: [{
|
|
8104
8110
|
name: 'gtrFormatSelectedValue',
|
|
@@ -8614,8 +8620,8 @@ class GtrSelectComponent {
|
|
|
8614
8620
|
ngOnDestroy() {
|
|
8615
8621
|
this.cleanSearch();
|
|
8616
8622
|
}
|
|
8617
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8618
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8623
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSelectComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8624
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrSelectComponent, isStandalone: true, selector: "gtr-select", inputs: { inputLabel: "inputLabel", placeholder: "placeholder", floatPlaceholder: "floatPlaceholder", labelKey: "labelKey", valueKey: "valueKey", selectedLabel: "selectedLabel", highlightLabel: "highlightLabel", subLabel: "subLabel", isOnlyView: "isOnlyView", value: "value", multiple: "multiple", lazyLoaded: "lazyLoaded", searchable: "searchable", disabled: "disabled", hideOptions: "hideOptions", cleanSearchWhenClose: "cleanSearchWhenClose", readonly: "readonly", is_invalid: "is_invalid", listLoading: "listLoading", loading: "loading", changeLoading: "changeLoading", listLoaderVariation: "listLoaderVariation", options: "options", textLimit: "textLimit", autoSelect: "autoSelect", autocomplete: "autocomplete", resetAutocomplete: "resetAutocomplete", enableAddButton: "enableAddButton", addButtonPosition: "addButtonPosition", addButtonLabel: "addButtonLabel", searchPlaceholder: "searchPlaceholder", clearable: "clearable", name: "name", dataTransactionName: "dataTransactionName" }, outputs: { addButtonClicked: "addButtonClicked", valueChanged: "valueChanged", searchChanged: "searchChanged", autocompleteInputChanged: "autocompleteInputChanged", gtrScroll: "gtrScroll", gtrTouched: "gtrTouched", gtrBlur: "gtrBlur" }, host: { listeners: { "keydown": "handleKeyboardNavigations($event)", "window:click": "onClickOutside($event)", "window:resize": "onWindowResize($event)", "window:scroll": "onWindowScroll($event)" } }, providers: [
|
|
8619
8625
|
{
|
|
8620
8626
|
provide: NG_VALUE_ACCESSOR,
|
|
8621
8627
|
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
@@ -8623,7 +8629,7 @@ class GtrSelectComponent {
|
|
|
8623
8629
|
},
|
|
8624
8630
|
], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n @if (inputLabel) {\n <ng-container *ngTemplateOutlet=\"inputLabelTemplate\"></ng-container>\n }\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \">\n <!-- Select Box Container -->\n <div class=\"gtr-select\" [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\" [attr.aria-readonly]=\"readonly ? 'true' : 'false'\">\n\n @if (autocomplete) {\n <!-- Select box autocomplete container -->\n\n @if (!multiple) {\n <input type=\"text\" class=\"gtr-autocomplete-input gtr-select-box\" tabindex=\"0\"\n [placeholder]=\"placeholder || ''\" [value]=\"\n selectedValues && selectedValues.length && !multiple\n ? (selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded)\n : autocompleteInputValue || ''\n \" (input)=\"handleAutocompleteInput($event)\" (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n } @else {\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\">\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-close'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- Enter autocomplete input -->\n <input type=\"text\" class=\"gtr-autocomplete-input\" tabindex=\"0\" [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\" (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\" (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n </div>\n }\n\n <!-- Multi-select selected values ends here... -->\n }\n <!-- Select box autocomplete container ends here -->\n\n } @else {\n <!-- Select Box Input Wrapper -->\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\" (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-wrapper'\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n @if (!(multipleSelectedValues?.length || selectedValues?.length)) {\n <ng-container *ngTemplateOutlet=\"placeholderTemplate\"></ng-container>\n }\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n @if (selectedValues?.length && !multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n\n <!-- Clear button for single select -->\n @if (clearable && !disabled && !readonly) {\n <gtr-icon name=\"x\" [size]=\"16\" weight=\"bold\" color=\"var(--gtr-color-base-black-60)\" class=\"gtr-clear-icon\" (click)=\"clearValue($event)\" [attr.data-transaction-name]=\"dataTransactionName + '-select-clear'\"></gtr-icon>\n }\n </div>\n }\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-remove-option'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n }\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n }\n\n <!-- Select Box options list wrapper -->\n @if (!disabled && !readonly) {\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n @if (!autocomplete && searchable) {\n <span class=\"gtr-input-wrapper\">\n <input type=\"text\" class=\"gtr-search-input\" [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \" [placeholder]=\"searchPlaceholder\" [value]=\"searchValue || ''\" (input)=\"handleSearchInput($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-input-search'\"/>\n <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n }\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n @if (enableAddButton && addButtonPosition === 'top') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option-list'\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n @if (listLoading && listLoaderVariation === loaderVariation.TEXT) {\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n }\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n @if (!listLoading && !filteredOptions?.length) {\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n }\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n @if ((!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length) {\n @for (option of filteredOptions; track i; let i = $index) {\n <!-- NOTE: for single select -->\n @if (!multiple) {\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" role=\"option\" (keyup.enter)=\"handleOptionClick(option)\" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\"\n tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n } @else {\n <!-- NOTE: for multi select -->\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" (keyup.enter)=\"handleOptionClick(option)\" [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n }\n }\n }\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n @if (enableAddButton && addButtonPosition === 'bottom') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button -->\n </span>\n }\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n @if (is_invalid && !isOnlyView) {\n <ng-container *ngTemplateOutlet=\"errorMessageTemplate\"></ng-container>\n }\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">{{ inputLabel }}</label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\">{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span>\n @if (subLabel) {\n <br/>\n <span class=\"sub-label\" [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\">{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span>\n }\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div class=\"add-button-wrapper\" [class.disabled]=\"hideOptions\" tabindex=\"0\" (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-add-button'\">\n <span class=\"add-button\">\n <span [innerHTML]=\"addButtonLabel\"></span>\n </span>\n </div>\n</ng-template>\n<!-- Add button template ends here -->", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;box-sizing:border-box;perspective:1000px;transform-origin:top center;animation:growOut .1s 0s ease-in-out none;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover,.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.hovered{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled{pointer-events:none;cursor:default}.add-button-wrapper.disabled,.gtr-options-list.disabled{pointer-events:none;cursor:default;opacity:.6}.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-clear-icon{margin-left:auto;cursor:pointer;transition:.2s ease}.gtr-select .gtr-select-box .gtr-selected-items .gtr-clear-icon:hover{color:var(--gtr-color-base-black-100)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.add-button-wrapper{background:var(--gtr-color-base-secondary-100);color:var(--gtr-color-font-inverse-secondary);min-height:38px;width:100%;padding:.5rem;display:flex;align-items:center;align-self:center;justify-content:flex-start;font-size:13px;font-weight:500;padding:8px 16px;cursor:pointer}.gtr-autocomplete-input{border:none;padding:0;margin:0;outline:0;width:100%;height:100%}.gtr-autocomplete-input::placeholder{color:var(--gtr-color-base-black-40)}.gtr-select-box:has(.gtr-autocomplete-input::focus){border-color:var(--gtr-color-base-primary-60)}.gtr-select-spinner{display:flex;justify-content:center;width:fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}80%{-webkit-transform:scale(1.07);-moz-transform:scale(1.07);-o-transform:scale(1.07);-ms-transform:scale(1.07);transform:scale(1.07)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
|
|
8625
8631
|
}
|
|
8626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrSelectComponent, decorators: [{
|
|
8627
8633
|
type: Component,
|
|
8628
8634
|
args: [{ selector: 'gtr-select', providers: [
|
|
8629
8635
|
{
|
|
@@ -8855,10 +8861,10 @@ class GtrPaginationComponent {
|
|
|
8855
8861
|
this._isMobile = hasMobileView();
|
|
8856
8862
|
this.options?.type !== 'token' && this._setTotalPages();
|
|
8857
8863
|
}
|
|
8858
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8859
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: GtrPaginationComponent, isStandalone: true, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", dataTransactionName: "dataTransactionName", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel", nextPageToken: "nextPageToken", prevPageToken: "prevPageToken", currentPageToken: "currentPageToken" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<div>\n @switch (options.type) {\n @case ('flat') {\n <div class=\"flat\">\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ul class=\"gtr-pagination\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n href=\"javascript:void(0);\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n @if (!options.hideLast) {\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n id=\"gtr-pagination-link-last\"\n (click)=\"changePage(totalPages)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n href=\"javascript:void(0);\">Last </a>\n </li>\n }\n </ul>\n </nav>\n </div>\n }\n <!-- token pagination -->\n @case ('token') {\n <div class=\"flat\">\n <ng-container [ngTemplateOutlet]=\"tokenPagination\"></ng-container>\n </div>\n }\n <!-- token pagination ends -->\n\n @default {\n <div>\n @if (pageIndex !== 0 && pagesArray?.length) {\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n }\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (pagesArray?.length) {\n @for (page of pagesArray; track i; let i = $index) {\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-' + page\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n }\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n }\n </div>\n }\n }\n</div>\n<ng-template #tokenPagination>\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n >\n <ul class=\"gtr-pagination\" [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changeTokenPagination(null)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changeTokenPagination(prevPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!nextPageToken || currentPageToken === nextPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changeTokenPagination(nextPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n </ul>\n </nav>\n</ng-template>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "hideOptions", "cleanSearchWhenClose", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "resetAutocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder", "clearable", "name", "dataTransactionName"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
|
|
8864
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8865
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrPaginationComponent, isStandalone: true, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", dataTransactionName: "dataTransactionName", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel", nextPageToken: "nextPageToken", prevPageToken: "prevPageToken", currentPageToken: "currentPageToken" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize()" } }, usesOnChanges: true, ngImport: i0, template: "<div>\n @switch (options.type) {\n @case ('flat') {\n <div class=\"flat\">\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ul class=\"gtr-pagination\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n href=\"javascript:void(0);\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n @if (!options.hideLast) {\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n id=\"gtr-pagination-link-last\"\n (click)=\"changePage(totalPages)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n href=\"javascript:void(0);\">Last </a>\n </li>\n }\n </ul>\n </nav>\n </div>\n }\n <!-- token pagination -->\n @case ('token') {\n <div class=\"flat\">\n <ng-container [ngTemplateOutlet]=\"tokenPagination\"></ng-container>\n </div>\n }\n <!-- token pagination ends -->\n\n @default {\n <div>\n @if (pageIndex !== 0 && pagesArray?.length) {\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n }\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (pagesArray?.length) {\n @for (page of pagesArray; track i; let i = $index) {\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-' + page\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n }\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n }\n </div>\n }\n }\n</div>\n<ng-template #tokenPagination>\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n >\n <ul class=\"gtr-pagination\" [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changeTokenPagination(null)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changeTokenPagination(prevPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!nextPageToken || currentPageToken === nextPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changeTokenPagination(nextPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n </ul>\n </nav>\n</ng-template>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "hideOptions", "cleanSearchWhenClose", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "resetAutocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder", "clearable", "name", "dataTransactionName"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
|
|
8860
8866
|
}
|
|
8861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrPaginationComponent, decorators: [{
|
|
8862
8868
|
type: Component,
|
|
8863
8869
|
args: [{ selector: 'gtr-pagination', imports: [GtrSelectComponent, GtrIconComponent, NgTemplateOutlet, GtrValidatePagePipe], template: "<div>\n @switch (options.type) {\n @case ('flat') {\n <div class=\"flat\">\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n <ul class=\"gtr-pagination\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n href=\"javascript:void(0);\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n @if (!options.hideLast) {\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"pageIndex === totalPages\"\n id=\"gtr-pagination-link-last\"\n (click)=\"changePage(totalPages)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n >\n <a class=\"gtr-pagination-link\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n href=\"javascript:void(0);\">Last </a>\n </li>\n }\n </ul>\n </nav>\n </div>\n }\n <!-- token pagination -->\n @case ('token') {\n <div class=\"flat\">\n <ng-container [ngTemplateOutlet]=\"tokenPagination\"></ng-container>\n </div>\n }\n <!-- token pagination ends -->\n\n @default {\n <div>\n @if (pageIndex !== 0 && pagesArray?.length) {\n <div\n class=\"gtr-pagination-wrapper\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n >\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n (valueChanged)=\"onPageSizeChange($event)\"\n ></gtr-select>\n </div>\n }\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changePage(defaultPage)\"\n aria-label=\"gtr__pagination-first-page\"\n >\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === 1 || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changePage(pageIndex - 1)\"\n aria-label=\"gtr__pagination-prev-page\"\n >\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (pagesArray?.length) {\n @for (page of pagesArray; track i; let i = $index) {\n <button\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"changePage(page)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-' + page\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\"\n class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\"\n tabindex=\"0\"\n >\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n }\n }\n\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\"\n >\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n @if (showFirstLastButtons) {\n <button\n tabindex=\"0\"\n class=\"gtr-pagination-button\"\n type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-last-page'\"\n (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\"\n >\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n }\n </div>\n }\n </div>\n }\n }\n</div>\n<ng-template #tokenPagination>\n @if (!this.hidePageSize) {\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select\n [value]=\"pageSize\"\n [options]=\"pageSizeOptions\"\n [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"\n [dataTransactionName]=\"dataTransactionName + '-pagination-page-size'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-page-size'\"\n ></gtr-select>\n </div>\n }\n\n <nav\n aria-label=\"page\"\n [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\"\n role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\"\n >\n <ul class=\"gtr-pagination\" [attr.data-transaction-name]=\"dataTransactionName + '-pagination-nav'\">\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\"\n (click)=\"changeTokenPagination(null)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-first-page'\">First </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!currentPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\"\n (click)=\"changeTokenPagination(prevPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-previous-page'\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n <li\n class=\"gtr-pagination-item\"\n [class.disabled]=\"!nextPageToken || currentPageToken === nextPageToken\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\"\n (click)=\"changeTokenPagination(nextPageToken)\"\n >\n <a class=\"gtr-pagination-link\" href=\"javascript:void(0);\"\n [attr.data-transaction-name]=\"dataTransactionName + '-pagination-next-page'\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a>\n </li>\n </ul>\n </nav>\n</ng-template>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"] }]
|
|
8864
8870
|
}], propDecorators: { options: [{
|
|
@@ -8897,7 +8903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
8897
8903
|
type: Output
|
|
8898
8904
|
}], onScreenResize: [{
|
|
8899
8905
|
type: HostListener,
|
|
8900
|
-
args: ['window:resize'
|
|
8906
|
+
args: ['window:resize']
|
|
8901
8907
|
}] } });
|
|
8902
8908
|
|
|
8903
8909
|
const CStatCardDateList = [
|
|
@@ -8978,10 +8984,10 @@ class GtrStatCardComponent {
|
|
|
8978
8984
|
this.dateSelectedChange.emit(date);
|
|
8979
8985
|
this.closeDateSelect();
|
|
8980
8986
|
}
|
|
8981
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8982
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
8987
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrStatCardComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8988
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrStatCardComponent, isStandalone: true, selector: "gtr-stat-card", inputs: { showSkeletonLoading: "showSkeletonLoading", title: "title", displayValue: "displayValue", value: "value", iconName: "iconName", isDangerCard: ["isDangerCard", "isDangerCard", booleanAttribute], enabledPercentage: ["enabledPercentage", "enabledPercentage", booleanAttribute], percentage: "percentage", isPercentageTrendUp: ["isPercentageTrendUp", "isPercentageTrendUp", booleanAttribute], statsCardId: "statsCardId", dataTransactionName: "dataTransactionName", enabledDateSelect: ["enabledDateSelect", "enabledDateSelect", booleanAttribute], dateOptions: "dateOptions", dateSelected: "dateSelected" }, outputs: { dateSelectedChange: "dateSelectedChange" }, viewQueries: [{ propertyName: "iconContainer", first: true, predicate: ["iconContainer"], descendants: true }, { propertyName: "labelContainer", first: true, predicate: ["labelContainer"], descendants: true }, { propertyName: "dateSelectWrapper", first: true, predicate: ["dateSelectWrapper"], descendants: true }, { propertyName: "dateSelectOptions", first: true, predicate: ["DateSelectOptions"], descendants: true }], ngImport: i0, template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card'\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\"\n [attr.data-testid]=\"statsCardId+'-title'\">{{ title }}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\"\n class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\"\n [attr.data-testid]=\"statsCardId+'-content-label'\">{{ value }}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n @if (enabledPercentage || enabledDateSelect) {\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\">\n @if (enabledDateSelect) {\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-option-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{ dateSelected }}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n @for (date of dateOptions; track $index) {\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-option'\"\n [class.active]=\"dateSelected === date\">{{ date }}\n </span>\n }\n </div>\n\n </div>\n }\n\n @if (enabledPercentage) {\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{ percentage }}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n }\n </div>\n }\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#fff;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"], dependencies: [{ kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }] }); }
|
|
8983
8989
|
}
|
|
8984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrStatCardComponent, decorators: [{
|
|
8985
8991
|
type: Component,
|
|
8986
8992
|
args: [{ selector: 'gtr-stat-card', imports: [GtrIconComponent, GtrSkeletonDirective], template: "<div class=\"gtr-stats-card\" [id]=\"statsCardId\" [attr.data-testid]=\"statsCardId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card'\">\n <div class=\"gtr-stats-card-header\">\n <div class=\"gtr-stats-card-title-wrapper\">\n <h3 class=\"gtr-stats-card-title\" [id]=\"statsCardId+'-title'\"\n [attr.data-testid]=\"statsCardId+'-title'\">{{ title }}</h3>\n </div>\n </div>\n\n <div class=\"gtr-stats-card-content\">\n <div [id]=\"statsCardId+'-content-icon'\" [attr.data-testid]=\"statsCardId+'-content-icon'\"\n class=\"gtr-stats-card-icon-wrapper gtr-stats-card-icon-{{isDangerCard ? 'danger' : 'success'}}\">\n <gtr-icon [name]=\"iconName\" [size]=\"18\">\n </gtr-icon>\n </div>\n <div class=\"gtr-stats-card-value\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '20px'; width: '100px'\">\n <h2 class=\"gtr-stats-card-value-label\">\n <span [title]=\"displayValue\" [id]=\"statsCardId+'-content-label'\"\n [attr.data-testid]=\"statsCardId+'-content-label'\">{{ value }}</span>\n </h2>\n </ng-container>\n </div>\n </div>\n @if (enabledPercentage || enabledDateSelect) {\n <div class=\"gtr-stats-card-footer\" [class.content-right]=\"!enabledDateSelect && enabledPercentage\">\n @if (enabledDateSelect) {\n <div class=\"gtr-stats-card-date\" [id]=\"statsCardId+'-date'\" [attr.data-testid]=\"statsCardId+'-date'\">\n\n <div class=\"gtr-stats-card-date-select\" #dateSelectWrapper [id]=\"statsCardId+'-date-select'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-select'\"\n [attr.data-testid]=\"statsCardId+'-date-select'\" (click)=\"openDateSelect()\">\n <span class=\"gtr-stats-card-date-select-label\" [id]=\"statsCardId+'-date-select-label'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-option-label'\"\n [attr.data-testid]=\"statsCardId+'-date-select-label'\" #labelContainer>{{ dateSelected }}</span>\n <gtr-icon #iconContainer class=\"gtr-stats-card-date-select-icon\" name=\"chevron-down\" [size]=\"12\"></gtr-icon>\n </div>\n\n <div class=\"gtr-stats-card-date-options-wrapper\" [id]=\"statsCardId+'-date-options-wrapper'\"\n [attr.data-testid]=\"statsCardId+'-date-options-wrapper'\" tabindex=\"0\" #DateSelectOptions>\n @for (date of dateOptions; track $index) {\n <span class=\"gtr-stats-card-date-options-value\" [id]=\"statsCardId+'-date-options-value'\"\n [attr.data-testid]=\"statsCardId+'-date-options-value'\" (click)=\"dateSelectedChangeEvent(date)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-stat-card-date-option'\"\n [class.active]=\"dateSelected === date\">{{ date }}\n </span>\n }\n </div>\n\n </div>\n }\n\n @if (enabledPercentage) {\n <span class=\"gtr-stats-card-percentage\" [id]=\"statsCardId+'-percentage'\"\n [attr.data-testid]=\"statsCardId+'-percentage'\">\n <ng-container *skeleton=\"showSkeletonLoading; repeat: 1; height: '14px'; width: '48px'\">\n <span class=\"gtr-stats-card-percentage-label\" [id]=\"statsCardId+'-percentage-label'\"\n [attr.data-testid]=\"statsCardId+'-percentage-label'\">\n {{ percentage }}%\n </span>\n <gtr-icon [id]=\"statsCardId+'-percentage-icon'\" [attr.data-testid]=\"statsCardId+'-percentage-icon'\"\n [name]=\"isPercentageTrendUp ?\n 'trending-up' :\n 'trending-down'\" [color]=\"isPercentageTrendUp ?\n 'var(--gtr-color-base-success-base)' :\n 'var(--gtr-color-base-danger-base)'\" [size]=\"14\"></gtr-icon>\n </ng-container>\n </span>\n }\n </div>\n }\n</div>\n", styles: [":root{--gray-shades-10: rgba(0, 0, 0, .1);--gtr-color-base-black-20: rgba(0, 0, 0, .2)}.gtr-stats-card{border-radius:6px;border:1px solid var(--gray-shades-10, rgba(0, 0, 0, .1));border-bottom:2px solid var(--secondary-color);background:#fff;padding:16px;height:100%;position:relative;display:flex;flex-direction:column;gap:14px}.gtr-stats-card-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.gtr-stats-card-title{color:#6e6b7b;font-size:13px;font-style:normal;font-weight:400;line-height:18px;margin:0}.gtr-stats-card-date{position:relative}.gtr-stats-card-date-select{cursor:pointer;display:flex;gap:4px}.gtr-stats-card-date-select-label{color:var(--gtr-color-base-primary-100);font-size:11px;font-style:normal;font-weight:600;line-height:11px}.gtr-stats-card-date-select-icon{color:var(--light-typography-color-muted-text, #4B465C)}.gtr-stats-card-date-options-wrapper{position:absolute;right:0;z-index:99;border-radius:6px;background:var(--light-solid-color-extra-card-background, #FFF);box-shadow:0 10px 20px #a5a3ae66;padding:8px;width:220px;display:none;flex-direction:column;gap:4px}.gtr-stats-card-date-options-wrapper.open{display:flex}.gtr-stats-card-date-options-value{color:var(--light-typography-color-heading-text, #4B465C);font-size:15px;font-style:normal;font-weight:400;line-height:22px;border-radius:6px;cursor:pointer;display:block;padding:8px 16px;transition:all ease-in-out .2s}.gtr-stats-card-date-options-value:hover{background:var(--gtr-color-base-primary-5);color:var(--gtr-color-base-primary-base)}.gtr-stats-card-date-options-value.active{background-color:var(--gtr-color-base-primary-base);color:#fff}.gtr-stats-card-content{display:flex;gap:16px;align-items:center}.gtr-stats-card-icon-wrapper{width:48px;height:48px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center}.gtr-stats-card-icon-success{background-color:var(--gtr-color-base-success-10);color:var(--gtr-color-base-success-base)}.gtr-stats-card-icon-danger{background-color:#0000000d;color:#4c465d80}.gtr-stats-card-value-label{color:var(--gray-shades-80, rgba(0, 0, 0, .8));font-size:24px;font-style:normal;font-weight:600;line-height:normal;margin:0}.gtr-stats-card-footer{width:100%;display:flex;gap:16px;justify-content:space-between;align-items:center}.gtr-stats-card-footer.content-right{justify-content:flex-end}.gtr-stats-card-percentage{display:inline-flex;align-items:center;gap:4px}.gtr-stats-card-percentage-label{color:var(-gtr-color-base-primary-100);font-size:14px;font-style:normal;font-weight:600;line-height:12px}@media screen and (max-width: 980px){.gtr-stats-card-value-label{font-size:14px}}\n"] }]
|
|
8987
8993
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { iconContainer: [{
|
|
@@ -9047,10 +9053,10 @@ class GtrFetchAttributePipe {
|
|
|
9047
9053
|
}
|
|
9048
9054
|
return '';
|
|
9049
9055
|
}
|
|
9050
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9051
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
9056
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFetchAttributePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9057
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.22", ngImport: i0, type: GtrFetchAttributePipe, isStandalone: true, name: "gtrFetchAttribute" }); }
|
|
9052
9058
|
}
|
|
9053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrFetchAttributePipe, decorators: [{
|
|
9054
9060
|
type: Pipe,
|
|
9055
9061
|
args: [{ name: 'gtrFetchAttribute', standalone: true }]
|
|
9056
9062
|
}], ctorParameters: () => [] });
|
|
@@ -9173,10 +9179,10 @@ class DynamicComponentDirective {
|
|
|
9173
9179
|
this.componentRef.destroy();
|
|
9174
9180
|
}
|
|
9175
9181
|
}
|
|
9176
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9177
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9182
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicComponentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9183
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: DynamicComponentDirective, isStandalone: true, selector: "[appDynamicComponent]", inputs: { component: ["appDynamicComponent", "component"], isDestroy: "isDestroy" }, outputs: { eventEmitter: "eventEmitter" }, usesOnChanges: true, ngImport: i0 }); }
|
|
9178
9184
|
}
|
|
9179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicComponentDirective, decorators: [{
|
|
9180
9186
|
type: Directive,
|
|
9181
9187
|
args: [{
|
|
9182
9188
|
selector: '[appDynamicComponent]',
|
|
@@ -9195,10 +9201,10 @@ class DynamicHostDirective {
|
|
|
9195
9201
|
constructor(viewContainerRef) {
|
|
9196
9202
|
this.viewContainerRef = viewContainerRef;
|
|
9197
9203
|
}
|
|
9198
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9199
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9204
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicHostDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9205
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: DynamicHostDirective, isStandalone: true, selector: "[appDynamicHost]", inputs: { rowIndex: "rowIndex", properties: "properties", events: "events", text: "text", colIndex: "colIndex" }, exportAs: ["appDynamicHost"], ngImport: i0 }); }
|
|
9200
9206
|
}
|
|
9201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicHostDirective, decorators: [{
|
|
9202
9208
|
type: Directive,
|
|
9203
9209
|
args: [{
|
|
9204
9210
|
selector: '[appDynamicHost]',
|
|
@@ -9262,7 +9268,7 @@ class GtrTableResponsiveComponent {
|
|
|
9262
9268
|
* To check screen size
|
|
9263
9269
|
*/
|
|
9264
9270
|
onResize(event) {
|
|
9265
|
-
event.target
|
|
9271
|
+
event.target?.innerWidth;
|
|
9266
9272
|
}
|
|
9267
9273
|
ngAfterViewChecked() {
|
|
9268
9274
|
this.cdRef.detectChanges();
|
|
@@ -9337,8 +9343,8 @@ class GtrTableResponsiveComponent {
|
|
|
9337
9343
|
}
|
|
9338
9344
|
}
|
|
9339
9345
|
ngOnDestroy() { }
|
|
9340
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9341
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9346
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableResponsiveComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: GtrFetchAttributePipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9347
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableResponsiveComponent, isStandalone: true, selector: "gtr-table-responsive", inputs: { isLoading: "isLoading", enableSelection: "enableSelection", columns: "columns", data: "data", tableResponsiveId: "tableResponsiveId", dataTransactionName: "dataTransactionName" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
|
|
9342
9348
|
GtrFetchAttributePipe,
|
|
9343
9349
|
GtrSkeletonDirective,
|
|
9344
9350
|
{
|
|
@@ -9346,9 +9352,9 @@ class GtrTableResponsiveComponent {
|
|
|
9346
9352
|
useExisting: forwardRef((() => GtrTableResponsiveComponent)),
|
|
9347
9353
|
multi: true,
|
|
9348
9354
|
},
|
|
9349
|
-
], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "@if (data.length) {\n<div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n\n @if (enableSelection) {\n <div class='table-selection'>\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-transaction-name]=\"dataTransactionName+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n }\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <div class='table-responsive-wrapper-container'>\n <div class='table-responsive-menu'>\n\n @if (enableSelection) {\n <div class='table-responsive-menu-item'>\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n }\n\n @if (getActions(row?.columnsData)?.actions) {\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n }\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\" [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n }\n</div>\n} @else {\n<ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n @if ((column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column,\n row.expand, colIndex)) {\n <div class='table-responsive-container'>\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'headingType' : colIndex : columns) {\n @case ('innerHTML') {\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n }\n @default {\n {{ columns[colIndex].label }}\n }\n }\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\" class=\"col-status col-sm-status\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\" class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-link col-sm-link\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex, row: row}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('component') {\n <div [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\" class=\"col-component col-sm-component\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"i\" [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\" [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n { name: column?.value?.name },\n rowIndex: i,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\" class=\"col-default col-sm-default\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </div>\n }\n }\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value}}>\n {{ column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value }}\n </div>\n }\n @case ('WRAP') {\n <div>\n <span class='word-wrap' title={{column?.value}}> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case ('external') {\n <div title={{column?.value?.text}}>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{\n column?.value?.text?.length > 30\n ? (column?.value?.text?.slice(0, 30) + '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\" [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n @case ('custom') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" (click)=\"this.onColumnClick(row['id'], column)\">{{\n column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column?.value?.link\">{{\n column?.value?.text?.length > 30 ? (column?.value?.text?.slice(0, 30) +\n '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column.value?.link\"\n class=\"link wrap\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" routerLink=\"{{column.value?.link}}\">{{\n column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n }\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-status-badge-'+i\"\n [dataTransactionName]=\"dataTransactionName+'--col-status-badge-'+i\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHTML]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n @if (expandAttributes && expandAttributes.expand) {\n <div class=\"expanded-arrow-icon\" [attr.data-transaction-name]=\"dataTransactionName+'-expand'\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"assets/images/arrow-down-navigate.svg\">\n </div>\n }\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover [position]=\"'left'\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"5\" [moveY]=\"-25\">\n <span slot=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div slot=\"gtr-popover-content\">\n <div class=\"gtr-popover-content\">\n <ul>\n @for (action of getActions(row?.columnsData)?.actions; track actionIndex; let actionIndex = $index) {\n <li [class.hide]=\"action.hide\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{ action.name }}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-colIndex=\"index\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .col-component{overflow:auto}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container .link.disabled,.table-responsive-wrapper-container .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.table-responsive-wrapper-container .link:hover{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "scrollToBody", "closeOnClickOutside", "dataTransactionName", "id", "testId"], outputs: ["stateChanged"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9355
|
+
], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "@if (data.length) {\n<div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n\n @if (enableSelection) {\n <div class='table-selection'>\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-transaction-name]=\"dataTransactionName+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n }\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <div class='table-responsive-wrapper-container'>\n <div class='table-responsive-menu'>\n\n @if (enableSelection) {\n <div class='table-responsive-menu-item'>\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n }\n\n @if (getActions(row?.columnsData)?.actions) {\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n }\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\" [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n }\n</div>\n} @else {\n<ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n @if ((column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column,\n row.expand, colIndex)) {\n <div class='table-responsive-container'>\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'headingType' : colIndex : columns) {\n @case ('innerHTML') {\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n }\n @default {\n {{ columns[colIndex].label }}\n }\n }\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\" class=\"col-status col-sm-status\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\" class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-link col-sm-link\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex, row: row}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('component') {\n <div [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\" class=\"col-component col-sm-component\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"i\" [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\" [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n { name: column?.value?.name },\n rowIndex: i,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\" class=\"col-default col-sm-default\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </div>\n }\n }\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value}}>\n {{ column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value }}\n </div>\n }\n @case ('WRAP') {\n <div>\n <span class='word-wrap' title={{column?.value}}> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case ('external') {\n <div title={{column?.value?.text}}>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{\n column?.value?.text?.length > 30\n ? (column?.value?.text?.slice(0, 30) + '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\" [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n @case ('custom') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" (click)=\"this.onColumnClick(row['id'], column)\">{{\n column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column?.value?.link\">{{\n column?.value?.text?.length > 30 ? (column?.value?.text?.slice(0, 30) +\n '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column.value?.link\"\n class=\"link wrap\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" routerLink=\"{{column.value?.link}}\">{{\n column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n }\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-status-badge-'+i\"\n [dataTransactionName]=\"dataTransactionName+'--col-status-badge-'+i\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHTML]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n @if (expandAttributes && expandAttributes.expand) {\n <div class=\"expanded-arrow-icon\" [attr.data-transaction-name]=\"dataTransactionName+'-expand'\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"assets/images/arrow-down-navigate.svg\">\n </div>\n }\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover [position]=\"'left'\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"5\" [moveY]=\"-25\">\n <span slot=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div slot=\"gtr-popover-content\">\n <div class=\"gtr-popover-content\">\n <ul>\n @for (action of getActions(row?.columnsData)?.actions; track actionIndex; let actionIndex = $index) {\n <li [class.hide]=\"action.hide\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{ action.name }}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-colIndex=\"index\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .col-component{overflow:auto}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container .link.disabled,.table-responsive-wrapper-container .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.table-responsive-wrapper-container .link:hover{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "scrollToBody", "closeOnClickOutside", "dataTransactionName", "id", "testId"], outputs: ["stateChanged"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9350
9356
|
}
|
|
9351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableResponsiveComponent, decorators: [{
|
|
9352
9358
|
type: Component,
|
|
9353
9359
|
args: [{ selector: 'gtr-table-responsive', exportAs: 'gtrTableResponsive', encapsulation: ViewEncapsulation.None, imports: [
|
|
9354
9360
|
NgTemplateOutlet,
|
|
@@ -9481,18 +9487,17 @@ class GtrTableMainComponent {
|
|
|
9481
9487
|
}
|
|
9482
9488
|
this.onSelection.emit(dataToEmit);
|
|
9483
9489
|
}
|
|
9484
|
-
|
|
9485
|
-
/** @nocollapse */ static { this.ɵ
|
|
9486
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { dataTransactionName: "dataTransactionName", enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, providers: [
|
|
9490
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableMainComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9491
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { dataTransactionName: "dataTransactionName", enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, providers: [
|
|
9487
9492
|
GtrSkeletonDirective,
|
|
9488
9493
|
{
|
|
9489
9494
|
provide: NG_VALUE_ACCESSOR,
|
|
9490
9495
|
useExisting: forwardRef((() => GtrTableMainComponent)),
|
|
9491
9496
|
multi: true,
|
|
9492
9497
|
},
|
|
9493
|
-
], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }, { propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\">\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "name", "dataTransactionName", "color", "isLoading", "variant", "disabled"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9498
|
+
], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }, { propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\">\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "name", "dataTransactionName", "color", "isLoading", "variant", "disabled"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9494
9499
|
}
|
|
9495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableMainComponent, decorators: [{
|
|
9496
9501
|
type: Component,
|
|
9497
9502
|
args: [{ selector: 'gtr-table-main', exportAs: 'gtrTableMain', encapsulation: ViewEncapsulation.None, imports: [
|
|
9498
9503
|
NgTemplateOutlet,
|
|
@@ -9609,8 +9614,8 @@ class GtrTableComponent {
|
|
|
9609
9614
|
* To check screen size
|
|
9610
9615
|
*/
|
|
9611
9616
|
onResize(event) {
|
|
9612
|
-
event.target.innerWidth;
|
|
9613
|
-
if (
|
|
9617
|
+
const innerWidth = event.target?.innerWidth ?? window.innerWidth;
|
|
9618
|
+
if (innerWidth <= 768) {
|
|
9614
9619
|
this.switchState = true;
|
|
9615
9620
|
}
|
|
9616
9621
|
else {
|
|
@@ -9633,8 +9638,8 @@ class GtrTableComponent {
|
|
|
9633
9638
|
this.onSort.emit(ev);
|
|
9634
9639
|
}
|
|
9635
9640
|
ngOnDestroy() { }
|
|
9636
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9637
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9641
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9642
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableComponent, isStandalone: true, selector: "gtr-table", inputs: { dataTransactionName: "dataTransactionName", isResponsive: "isResponsive", loading: "loading", enableSelection: "enableSelection", tableMainId: "tableMainId", tableResponsiveId: "tableResponsiveId", columns: "columns", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
|
|
9638
9643
|
{
|
|
9639
9644
|
provide: NG_VALUE_ACCESSOR,
|
|
9640
9645
|
useExisting: forwardRef((() => GtrTableComponent)),
|
|
@@ -9642,7 +9647,7 @@ class GtrTableComponent {
|
|
|
9642
9647
|
},
|
|
9643
9648
|
], exportAs: ["gtrTable"], ngImport: i0, template: "@if (switchState) {\n<gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" />\n}\n@if (!switchState) {\n<gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" [enableSelection]=\"this.enableSelection\" />\n}\n", styles: [":host{background:#fff;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eee}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: GtrTableResponsiveComponent, selector: "gtr-table-responsive", inputs: ["isLoading", "enableSelection", "columns", "data", "tableResponsiveId", "dataTransactionName"], outputs: ["onSelection", "onAction", "handleEvent", "onSort"], exportAs: ["gtrTableResponsive"] }, { kind: "component", type: GtrTableMainComponent, selector: "gtr-table-main", inputs: ["dataTransactionName", "enableSelection", "isLoading", "columns", "tableMainId", "data"], outputs: ["onSelection", "onAction", "handleEvent", "onSort"], exportAs: ["gtrTableMain"] }] }); }
|
|
9644
9649
|
}
|
|
9645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableComponent, decorators: [{
|
|
9646
9651
|
type: Component,
|
|
9647
9652
|
args: [{ selector: 'gtr-table', exportAs: 'gtrTable', imports: [ReactiveFormsModule, GtrTableResponsiveComponent, GtrTableMainComponent], providers: [
|
|
9648
9653
|
{
|
|
@@ -9696,10 +9701,10 @@ class GtrTabComponent {
|
|
|
9696
9701
|
this._activeTab.index = activeTab?.index;
|
|
9697
9702
|
this.tabChange.emit(this._activeTab);
|
|
9698
9703
|
}
|
|
9699
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9700
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9704
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9705
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTabComponent, isStandalone: true, selector: "gtr-tab", inputs: { label: "label", active: "active", dataTransactionName: "dataTransactionName", disabled: "disabled" }, outputs: { tabChange: "tabChange" }, ngImport: i0, template: "@if (active) {\n <div class=\"gtr-active-tab-content\" [class.active]=\"active\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tab'\">\n <ng-content></ng-content>\n </div>\n}\n", styles: [""] }); }
|
|
9701
9706
|
}
|
|
9702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTabComponent, decorators: [{
|
|
9703
9708
|
type: Component,
|
|
9704
9709
|
args: [{ standalone: true, selector: 'gtr-tab', template: "@if (active) {\n <div class=\"gtr-active-tab-content\" [class.active]=\"active\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tab'\">\n <ng-content></ng-content>\n </div>\n}\n" }]
|
|
9705
9710
|
}], ctorParameters: () => [], propDecorators: { label: [{
|
|
@@ -9778,10 +9783,10 @@ class GtrTabsWrapperComponent {
|
|
|
9778
9783
|
const hasHorizontalScroll = element?.scrollWidth > element?.clientWidth;
|
|
9779
9784
|
return hasHorizontalScroll;
|
|
9780
9785
|
}
|
|
9781
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9782
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9786
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTabsWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9787
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTabsWrapperComponent, isStandalone: true, selector: "gtr-tabs-wrapper", inputs: { position: "position", dataTransactionName: "dataTransactionName", id: "id", testId: "testId" }, outputs: { tabChanges: "tabChanges" }, queries: [{ propertyName: "tabs", predicate: GtrTabComponent }], viewQueries: [{ propertyName: "tabScrollContainerRef", first: true, predicate: ["tabScrollContainerRef"], descendants: true, static: true }, { propertyName: "tabScrollListRef", first: true, predicate: ["tabScrollListRef"], descendants: true, static: true }], ngImport: i0, template: "<div\n class=\"gtr-tabs-list-container\"\n #tabScrollContainerRef\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper'\"\n>\n <div\n [class]=\"tabsContainerClass\"\n (scroll)=\"onTabListScroll()\"\n #tabScrollListRef\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper'\"\n >\n <div [class]=\"tabsWrapperClass\">\n @for (tab of tabs; track $index) {\n <div #tabButton\n class=\"gtr-tab-button tab\"\n [class.w-100]=\"position === 'fill'\"\n [class.active]=\"tab.active\"\n [class.disabled]=\"tab.disabled\"\n (click)=\"selectTab(tab)\"\n (keyup.enter)=\"selectTab(tab)\"\n role=\"tab\"\n [tabindex]=\"tab.disabled ? -1 : 0\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-button'\"\n >\n {{ tab.label }}\n </div>\n }\n </div>\n </div>\n</div>\n@if (tabListLength > 0) {\n <div class=\"gtr-tab-content-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-content-wrapper'\">\n <div class=\"gtr-tab-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-content'\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host{display:block;box-sizing:border-box;--gtr-component-font-family-base: Roboto;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-background-transparent: transparent;--gtr-box-shadow-30: 0px 2px 4px 0px rgba(165, 163, 174, .3);--gtr-default-active-light-shade: #f8f9fa;--gtr-tab-color: #4b465c;--gtr-padding-12: 12px;--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-05: rgba(0, 0, 0, .05);--gtr-color-base-white-100: #ffffff}*{box-sizing:border-box}.gtr-tabs-list-container{position:relative;height:40px;margin-bottom:16px}.gtr-tabs-container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap;width:100%;overflow-x:scroll;overflow-y:hidden}.gtr-tabs-wrapper{width:100%;display:flex;justify-content:flex-start;align-items:center;scroll-snap-align:center;touch-action:auto;-webkit-overflow-scrolling:touch}.gtr-tab-button{font-style:normal;font-weight:400;font-size:15px;line-height:22px;padding:8px 20px;border-radius:var(--gtr-border-radius-6);color:var(--gtr-tab-color);display:grid;place-items:center;place-content:center;cursor:pointer;white-space:nowrap;word-wrap:none}.gtr-tab-button:focus{background:var(--gtr-color-base-black-05)}.gtr-tab-button.disabled{opacity:.6;font-size:15px;line-height:22px;cursor:default;pointer-events:none}.gtr-tab-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-default-active-light-shade);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-box-shadow-30)}.gtr-tab-content-wrapper{height:100%}.gtr-tab-content{position:relative;line-height:22px;font-size:15px;padding:var(--gtr-padding-24);box-shadow:0 4px 18px #4b465c1a;background:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);color:var(--gtr-color-base-black-60)}.gtr-tabs-container.fade-left:before{content:\"\";position:absolute;top:0;right:0;width:120px;height:40px;background:linear-gradient(to right,#fff0,#fffc);pointer-events:none;z-index:1}.gtr-tabs-container.fade-right:after{content:\"\";position:absolute;top:0;left:0;width:120px;height:40px;background:linear-gradient(to left,#fff0,#fffc);pointer-events:none;z-index:1}.gtr-tabs-container.center,.gtr-tabs-wrapper.center{display:flex;justify-content:center;align-items:flex-start}.gtr-tabs-container.end,.gtr-tabs-wrapper.end{display:flex;justify-content:flex-end;align-items:flex-start}.gtr-tabs-container{background:var(--gtr-background-transparent)}.gtr-tabs-container::-webkit-scrollbar{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:10px;background:var(--gtr-background-transparent)}::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}\n"] }); }
|
|
9783
9788
|
}
|
|
9784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTabsWrapperComponent, decorators: [{
|
|
9785
9790
|
type: Component,
|
|
9786
9791
|
args: [{ standalone: true, selector: 'gtr-tabs-wrapper', template: "<div\n class=\"gtr-tabs-list-container\"\n #tabScrollContainerRef\n [id]=\"id\"\n [attr.data-test-id]=\"testId\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper'\"\n>\n <div\n [class]=\"tabsContainerClass\"\n (scroll)=\"onTabListScroll()\"\n #tabScrollListRef\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper'\"\n >\n <div [class]=\"tabsWrapperClass\">\n @for (tab of tabs; track $index) {\n <div #tabButton\n class=\"gtr-tab-button tab\"\n [class.w-100]=\"position === 'fill'\"\n [class.active]=\"tab.active\"\n [class.disabled]=\"tab.disabled\"\n (click)=\"selectTab(tab)\"\n (keyup.enter)=\"selectTab(tab)\"\n role=\"tab\"\n [tabindex]=\"tab.disabled ? -1 : 0\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-button'\"\n >\n {{ tab.label }}\n </div>\n }\n </div>\n </div>\n</div>\n@if (tabListLength > 0) {\n <div class=\"gtr-tab-content-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-content-wrapper'\">\n <div class=\"gtr-tab-content\"\n [attr.data-transaction-name]=\"dataTransactionName + '-tabs-wrapper-content'\">\n <ng-content></ng-content>\n </div>\n </div>\n}\n", styles: [":host{display:block;box-sizing:border-box;--gtr-component-font-family-base: Roboto;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-background-transparent: transparent;--gtr-box-shadow-30: 0px 2px 4px 0px rgba(165, 163, 174, .3);--gtr-default-active-light-shade: #f8f9fa;--gtr-tab-color: #4b465c;--gtr-padding-12: 12px;--gtr-color-base-black-60: rgba(0, 0, 0, .6);--gtr-color-base-black-05: rgba(0, 0, 0, .05);--gtr-color-base-white-100: #ffffff}*{box-sizing:border-box}.gtr-tabs-list-container{position:relative;height:40px;margin-bottom:16px}.gtr-tabs-container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap;width:100%;overflow-x:scroll;overflow-y:hidden}.gtr-tabs-wrapper{width:100%;display:flex;justify-content:flex-start;align-items:center;scroll-snap-align:center;touch-action:auto;-webkit-overflow-scrolling:touch}.gtr-tab-button{font-style:normal;font-weight:400;font-size:15px;line-height:22px;padding:8px 20px;border-radius:var(--gtr-border-radius-6);color:var(--gtr-tab-color);display:grid;place-items:center;place-content:center;cursor:pointer;white-space:nowrap;word-wrap:none}.gtr-tab-button:focus{background:var(--gtr-color-base-black-05)}.gtr-tab-button.disabled{opacity:.6;font-size:15px;line-height:22px;cursor:default;pointer-events:none}.gtr-tab-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-default-active-light-shade);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-box-shadow-30)}.gtr-tab-content-wrapper{height:100%}.gtr-tab-content{position:relative;line-height:22px;font-size:15px;padding:var(--gtr-padding-24);box-shadow:0 4px 18px #4b465c1a;background:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);color:var(--gtr-color-base-black-60)}.gtr-tabs-container.fade-left:before{content:\"\";position:absolute;top:0;right:0;width:120px;height:40px;background:linear-gradient(to right,#fff0,#fffc);pointer-events:none;z-index:1}.gtr-tabs-container.fade-right:after{content:\"\";position:absolute;top:0;left:0;width:120px;height:40px;background:linear-gradient(to left,#fff0,#fffc);pointer-events:none;z-index:1}.gtr-tabs-container.center,.gtr-tabs-wrapper.center{display:flex;justify-content:center;align-items:flex-start}.gtr-tabs-container.end,.gtr-tabs-wrapper.end{display:flex;justify-content:flex-end;align-items:flex-start}.gtr-tabs-container{background:var(--gtr-background-transparent)}.gtr-tabs-container::-webkit-scrollbar{background:var(--gtr-background-transparent)}::-webkit-scrollbar{width:10px;background:var(--gtr-background-transparent)}::-webkit-scrollbar-thumb{background:var(--gtr-background-transparent)}\n"] }]
|
|
9787
9792
|
}], propDecorators: { tabs: [{
|
|
@@ -10014,10 +10019,10 @@ class GtrTagsInputComponent {
|
|
|
10014
10019
|
this.tagInputRef?.nativeElement?.focus();
|
|
10015
10020
|
}
|
|
10016
10021
|
}
|
|
10017
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10018
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
10022
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTagsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10023
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTagsInputComponent, isStandalone: true, selector: "gtr-tags-input", inputs: { value: "value", inputLabel: "inputLabel", type: "type", disabled: "disabled", readonly: "readonly", dataTransactionName: "dataTransactionName", invalid: "invalid", placeholder: "placeholder", options: "options", maxTags: "maxTags", removeLastOnBackspace: "removeLastOnBackspace", canDeleteTags: "canDeleteTags", canAddTags: "canAddTags", onlyFromDropdown: "onlyFromDropdown", color: "color", dangerColor: "dangerColor", resetTagInput: "resetTagInput", removeValidators: "removeValidators", customValidators: "customValidators" }, outputs: { valueChanged: "valueChanged", touched: "touched", inputStatus: "inputStatus" }, viewQueries: [{ propertyName: "tagInputRef", first: true, predicate: ["tagInputRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .input-wrapper input{width:100%;box-sizing:border-box}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:-11px;right:0;background:#fff;border:1px solid #ccc;z-index:10;overflow-y:auto;margin-top:6px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out;padding:8px;max-height:250px;width:107%;border-radius:6px!important}.tag-input-wrapper .dropdown-list li{padding:10px 15px;cursor:pointer;margin:0 0 5px;font-size:13px;line-height:18px;transition:background-color .2s ease;font-weight:var(--gtr-size-font-weight-normal);font-style:normal;color:var(--gtr-color-base-black-100);white-space:break-spaces;word-wrap:break-word;transition:.3s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:6px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:6px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:6px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
10019
10024
|
}
|
|
10020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTagsInputComponent, decorators: [{
|
|
10021
10026
|
type: Component,
|
|
10022
10027
|
args: [{ selector: 'gtr-tags-input', imports: [ReactiveFormsModule, FormsModule, GtrIconComponent], template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .input-wrapper input{width:100%;box-sizing:border-box}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:-11px;right:0;background:#fff;border:1px solid #ccc;z-index:10;overflow-y:auto;margin-top:6px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out;padding:8px;max-height:250px;width:107%;border-radius:6px!important}.tag-input-wrapper .dropdown-list li{padding:10px 15px;cursor:pointer;margin:0 0 5px;font-size:13px;line-height:18px;transition:background-color .2s ease;font-weight:var(--gtr-size-font-weight-normal);font-style:normal;color:var(--gtr-color-base-black-100);white-space:break-spaces;word-wrap:break-word;transition:.3s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:6px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:6px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:6px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"] }]
|
|
10023
10028
|
}], ctorParameters: () => [], propDecorators: { tagInputRef: [{
|
|
@@ -10080,7 +10085,11 @@ class AutosizeDirective {
|
|
|
10080
10085
|
set _autosize(autosize) {
|
|
10081
10086
|
this.autosize = typeof autosize === 'boolean' ? autosize : true;
|
|
10082
10087
|
}
|
|
10083
|
-
onInput(
|
|
10088
|
+
onInput(event) {
|
|
10089
|
+
const textArea = event.target;
|
|
10090
|
+
if (!textArea) {
|
|
10091
|
+
return;
|
|
10092
|
+
}
|
|
10084
10093
|
this.adjust();
|
|
10085
10094
|
}
|
|
10086
10095
|
constructor(element, _zone) {
|
|
@@ -10214,10 +10223,10 @@ class AutosizeDirective {
|
|
|
10214
10223
|
}
|
|
10215
10224
|
return lineHeight;
|
|
10216
10225
|
}
|
|
10217
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10218
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
10226
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: AutosizeDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10227
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: AutosizeDirective, isStandalone: true, selector: "[autosize]", inputs: { minRows: "minRows", _autosize: ["autosize", "_autosize"], maxRows: "maxRows", onlyGrow: "onlyGrow", useImportant: "useImportant" }, outputs: { resized: "resized" }, host: { listeners: { "input": "onInput($event)" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
10219
10228
|
}
|
|
10220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: AutosizeDirective, decorators: [{
|
|
10221
10230
|
type: Directive,
|
|
10222
10231
|
args: [{
|
|
10223
10232
|
selector: '[autosize]',
|
|
@@ -10238,7 +10247,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
10238
10247
|
type: Output
|
|
10239
10248
|
}], onInput: [{
|
|
10240
10249
|
type: HostListener,
|
|
10241
|
-
args: ['input', ['$event
|
|
10250
|
+
args: ['input', ['$event']]
|
|
10242
10251
|
}] } });
|
|
10243
10252
|
function debounce(func, timeout) {
|
|
10244
10253
|
let timer;
|
|
@@ -10258,5 +10267,5 @@ function debounce(func, timeout) {
|
|
|
10258
10267
|
* Generated bundle index. Do not edit.
|
|
10259
10268
|
*/
|
|
10260
10269
|
|
|
10261
|
-
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
10270
|
+
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
10262
10271
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|