@gettrx/core-components-angular 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/molecules/calendar/calendar/gtr-calendar.component.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/gtr-calendar-month.component.mjs +3 -3
- package/esm2022/lib/molecules/date-picker/gtr-date-picker.component.mjs +3 -3
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/gtr-date-range-picker.component.mjs +3 -3
- package/esm2022/lib/molecules/pagination/pagination/gtr-pagination.component.mjs +3 -3
- package/esm2022/lib/molecules/select/select/gtr-select.component.mjs +3 -3
- package/esm2022/lib/molecules/stat-card/gtr-stat-card.component.mjs +3 -3
- package/esm2022/lib/molecules/table/table-main/gtr-table-main.component.mjs +3 -3
- package/esm2022/lib/molecules/table/table-responsive/gtr-table-responsive.component.mjs +3 -3
- package/esm2022/lib/molecules/tabs/tabs-wrapper/gtr-tabs-wrapper.component.mjs +3 -3
- package/esm2022/lib/molecules/time-picker/gtr-time-picker.component.mjs +3 -3
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.mjs +3 -6
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-col.component.mjs +3 -3
- package/fesm2022/gettrx-core-components-angular.mjs +26 -29
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/molecules/time-picker/time-picker-roll-col/gtr-time-picker-roll-am-pm.component.d.ts +0 -1
- package/package.json +2 -2
|
@@ -3077,7 +3077,7 @@ class GtrCalendarMonthComponent {
|
|
|
3077
3077
|
this.calendarStateSubscribe(false);
|
|
3078
3078
|
}
|
|
3079
3079
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrCalendarMonthComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3080
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
3080
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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: "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" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
3081
3081
|
}
|
|
3082
3082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrCalendarMonthComponent, decorators: [{
|
|
3083
3083
|
type: Component,
|
|
@@ -3092,7 +3092,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3092
3092
|
GtrCalendarClassYearPipe,
|
|
3093
3093
|
GtrCalendarWeekdayPipe,
|
|
3094
3094
|
NgClass,
|
|
3095
|
-
], 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
|
|
3095
|
+
], 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"] }]
|
|
3096
3096
|
}], ctorParameters: () => [{ type: GtrCalendarService }], propDecorators: { dataTransactionName: [{
|
|
3097
3097
|
type: Input
|
|
3098
3098
|
}], addMonths: [{
|
|
@@ -3493,7 +3493,7 @@ class GtrCalendarComponent {
|
|
|
3493
3493
|
this.calendarService.update({ startDate: null });
|
|
3494
3494
|
}
|
|
3495
3495
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrCalendarComponent, deps: [{ token: GtrCalendarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3496
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
3496
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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: "pipe", type: GtrCalendarClassViewPipe, name: "gtrCalendarClassView" }, { 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"] }] }); }
|
|
3497
3497
|
}
|
|
3498
3498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrCalendarComponent, decorators: [{
|
|
3499
3499
|
type: Component,
|
|
@@ -3502,7 +3502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3502
3502
|
GtrCalendarClassViewPipe,
|
|
3503
3503
|
GtrCalendarMonthComponent,
|
|
3504
3504
|
NgClass,
|
|
3505
|
-
], template: "@for (calendar of calendarsArray; track
|
|
3505
|
+
], 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" }]
|
|
3506
3506
|
}], ctorParameters: () => [{ type: GtrCalendarService }], propDecorators: { calendarDate: [{
|
|
3507
3507
|
type: Input
|
|
3508
3508
|
}], calendars: [{
|
|
@@ -5779,11 +5779,11 @@ class GtrTimePickerRollColComponent {
|
|
|
5779
5779
|
return element.value;
|
|
5780
5780
|
}
|
|
5781
5781
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTimePickerRollColComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5782
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
5782
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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"] }] }); }
|
|
5783
5783
|
}
|
|
5784
5784
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTimePickerRollColComponent, decorators: [{
|
|
5785
5785
|
type: Component,
|
|
5786
|
-
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', standalone: true, imports: [GtrTimeElementDirective, NgClass, NgStyle], template: "@for (element of elements; track
|
|
5786
|
+
args: [{ selector: 'gtr-time-picker-roll-col', exportAs: 'gtrTimePickerRollCol', standalone: true, 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" }]
|
|
5787
5787
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { disabled: [{
|
|
5788
5788
|
type: Input
|
|
5789
5789
|
}], elements: [{
|
|
@@ -5877,15 +5877,12 @@ class GtrTimePickerRollAmPmComponent {
|
|
|
5877
5877
|
this.onClick && this.onClick(element.value);
|
|
5878
5878
|
this.selectedChange.emit(element.value);
|
|
5879
5879
|
}
|
|
5880
|
-
trackByElement(index, element) {
|
|
5881
|
-
return element.value;
|
|
5882
|
-
}
|
|
5883
5880
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTimePickerRollAmPmComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5884
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
5881
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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"] }] }); }
|
|
5885
5882
|
}
|
|
5886
5883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTimePickerRollAmPmComponent, decorators: [{
|
|
5887
5884
|
type: Component,
|
|
5888
|
-
args: [{ selector: 'gtr-time-picker-roll-am-pm', standalone: true, imports: [GtrDayPeriodElementDirective, NgClass, NgStyle], template: "@for (element of elements; track
|
|
5885
|
+
args: [{ selector: 'gtr-time-picker-roll-am-pm', standalone: true, 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" }]
|
|
5889
5886
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { disabled: [{
|
|
5890
5887
|
type: Input
|
|
5891
5888
|
}], elements: [{
|
|
@@ -6335,7 +6332,7 @@ class GtrTimePickerComponent {
|
|
|
6335
6332
|
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
6336
6333
|
multi: true,
|
|
6337
6334
|
},
|
|
6338
|
-
], 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
|
|
6335
|
+
], 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"] }] }); }
|
|
6339
6336
|
}
|
|
6340
6337
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTimePickerComponent, decorators: [{
|
|
6341
6338
|
type: Component,
|
|
@@ -6358,7 +6355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6358
6355
|
useExisting: forwardRef((() => GtrTimePickerComponent)),
|
|
6359
6356
|
multi: true,
|
|
6360
6357
|
},
|
|
6361
|
-
], 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
|
|
6358
|
+
], 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" }]
|
|
6362
6359
|
}], ctorParameters: () => [], propDecorators: { cleaner: [{
|
|
6363
6360
|
type: Input
|
|
6364
6361
|
}], dateTimeFormatOptions: [{
|
|
@@ -7051,7 +7048,7 @@ class GtrDateRangePickerComponent {
|
|
|
7051
7048
|
provide: LOCALE_ID,
|
|
7052
7049
|
useValue: 'en-US', //navigator.language || 'en-US',
|
|
7053
7050
|
},
|
|
7054
|
-
], 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 customRange) {\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" }] }); }
|
|
7051
|
+
], 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" }] }); }
|
|
7055
7052
|
}
|
|
7056
7053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrDateRangePickerComponent, decorators: [{
|
|
7057
7054
|
type: Component,
|
|
@@ -7080,7 +7077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
7080
7077
|
GtrTimePickerComponent,
|
|
7081
7078
|
GtrButtonDirective,
|
|
7082
7079
|
GtrCustomRangeKeyPipe,
|
|
7083
|
-
], 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
|
|
7080
|
+
], 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"] }]
|
|
7084
7081
|
}], ctorParameters: () => [{ type: i1$1.BreakpointObserver }, { type: undefined, decorators: [{
|
|
7085
7082
|
type: Inject,
|
|
7086
7083
|
args: [LOCALE_ID]
|
|
@@ -7250,7 +7247,7 @@ class GtrDatePickerComponent extends GtrDateRangePickerComponent {
|
|
|
7250
7247
|
provide: LOCALE_ID,
|
|
7251
7248
|
useValue: 'en-US', //navigator.language || 'en-US',
|
|
7252
7249
|
},
|
|
7253
|
-
], 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 customRange) {\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" }] }); }
|
|
7250
|
+
], 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" }] }); }
|
|
7254
7251
|
}
|
|
7255
7252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrDatePickerComponent, decorators: [{
|
|
7256
7253
|
type: Component,
|
|
@@ -7279,7 +7276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
7279
7276
|
GtrTimePickerComponent,
|
|
7280
7277
|
GtrButtonDirective,
|
|
7281
7278
|
GtrCustomRangeKeyPipe,
|
|
7282
|
-
], 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
|
|
7279
|
+
], 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"] }]
|
|
7283
7280
|
}], ctorParameters: () => [{ type: i1$1.BreakpointObserver }, { type: undefined, decorators: [{
|
|
7284
7281
|
type: Inject,
|
|
7285
7282
|
args: [LOCALE_ID]
|
|
@@ -8445,7 +8442,7 @@ class GtrSelectComponent {
|
|
|
8445
8442
|
useExisting: forwardRef((() => GtrSelectComponent)),
|
|
8446
8443
|
multi: true,
|
|
8447
8444
|
},
|
|
8448
|
-
], 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 item; 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 </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 item; 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 option; 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 -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;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-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" }] }); }
|
|
8445
|
+
], 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 </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 -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;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-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" }] }); }
|
|
8449
8446
|
}
|
|
8450
8447
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrSelectComponent, decorators: [{
|
|
8451
8448
|
type: Component,
|
|
@@ -8462,7 +8459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8462
8459
|
GtrIconComponent,
|
|
8463
8460
|
GtrFormatSelectedValuePipe,
|
|
8464
8461
|
GtrTrimTextPipe,
|
|
8465
|
-
], 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 item; 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 </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 item; 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 option; 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 -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;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-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"] }]
|
|
8462
|
+
], 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 </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 -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;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-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"] }]
|
|
8466
8463
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inputLabel: [{
|
|
8467
8464
|
type: Input
|
|
8468
8465
|
}], placeholder: [{
|
|
@@ -8678,11 +8675,11 @@ class GtrPaginationComponent {
|
|
|
8678
8675
|
this.options?.type !== 'token' && this._setTotalPages();
|
|
8679
8676
|
}
|
|
8680
8677
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8681
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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 page; 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", "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" }] }); }
|
|
8678
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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", "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" }] }); }
|
|
8682
8679
|
}
|
|
8683
8680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrPaginationComponent, decorators: [{
|
|
8684
8681
|
type: Component,
|
|
8685
|
-
args: [{ standalone: true, 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 page; 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"] }]
|
|
8682
|
+
args: [{ standalone: true, 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"] }]
|
|
8686
8683
|
}], propDecorators: { options: [{
|
|
8687
8684
|
type: Input
|
|
8688
8685
|
}], identifier: [{
|
|
@@ -8801,11 +8798,11 @@ class GtrStatCardComponent {
|
|
|
8801
8798
|
this.closeDateSelect();
|
|
8802
8799
|
}
|
|
8803
8800
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrStatCardComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8804
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
8801
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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"] }] }); }
|
|
8805
8802
|
}
|
|
8806
8803
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrStatCardComponent, decorators: [{
|
|
8807
8804
|
type: Component,
|
|
8808
|
-
args: [{ standalone: true, 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
|
|
8805
|
+
args: [{ standalone: true, 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"] }]
|
|
8809
8806
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { iconContainer: [{
|
|
8810
8807
|
type: ViewChild,
|
|
8811
8808
|
args: ['iconContainer']
|
|
@@ -9267,7 +9264,7 @@ class GtrTableResponsiveComponent {
|
|
|
9267
9264
|
useExisting: forwardRef((() => GtrTableResponsiveComponent)),
|
|
9268
9265
|
multi: true,
|
|
9269
9266
|
},
|
|
9270
|
-
], 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 row; 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 column; 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 action; 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", "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"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9267
|
+
], 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", "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"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9271
9268
|
}
|
|
9272
9269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTableResponsiveComponent, decorators: [{
|
|
9273
9270
|
type: Component,
|
|
@@ -9292,7 +9289,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9292
9289
|
useExisting: forwardRef((() => GtrTableResponsiveComponent)),
|
|
9293
9290
|
multi: true,
|
|
9294
9291
|
},
|
|
9295
|
-
], 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 row; 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 column; 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 action; 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"] }]
|
|
9292
|
+
], 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"] }]
|
|
9296
9293
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: GtrFetchAttributePipe }], propDecorators: { dynamicHosts: [{
|
|
9297
9294
|
type: ViewChildren,
|
|
9298
9295
|
args: [DynamicHostDirective]
|
|
@@ -9414,7 +9411,7 @@ class GtrTableMainComponent {
|
|
|
9414
9411
|
useExisting: forwardRef((() => GtrTableMainComponent)),
|
|
9415
9412
|
multi: true,
|
|
9416
9413
|
},
|
|
9417
|
-
], 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 class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <thead [attr.data-transaction-name]=\"dataTransactionName+'--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox [id]=\"tableMainId+'-row-select-all'\" [attr.data-testid]=\"tableMainId+'-row-select-all'\"\n [checked]=\"fectchSelection()\" [attr.data-transaction-name]=\"dataTransactionName+'--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </th>\n }\n\n @for (column of this.columns; track column; let colIndex = $index) {\n <th class={{column.align}} [class.hide]=\"column.hide\" [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName+'--column'\" [style.max-width]=\"column.styles?.max\">\n <div [class.gtr-header-label]='column.sorting.hasSorting' [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\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 class=\"gtr-header-sorting-wrapper\" [attr.data-transaction-name]=\"dataTransactionName+'--col-sort'\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-up'+ colIndex\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-down'+ colIndex\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName+'--tbody'\">\n @for (row of data; track row; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName+'--row-' + rowIndex\">\n @if (enableSelection) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-selection'\" class=\"col-selectionSS\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track column; let colIndex = $index) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-' + colIndex\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\" class=\"col-status\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\" class=\"col-innerHtml\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-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 class=\"col-component\" [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"rowIndex\"\n [properties]=\"column?.value?.properties\" [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n {\n name: column.value.name },\n rowIndex: rowIndex,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @case ('actions') {\n <div class=\"overflow-auto\" class=\"col-actions\" [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\" class=\"col-default\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\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\">\n No Records Found\n </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 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-custom'\"\n (click)=\"this.onColumnClick(row['id'], column)\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\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\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 action; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case ('button') {\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('icon') {\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('dropdown') {\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('input') {\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('textarea') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('toggle') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @default {\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{ action.name }}</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 type=\"pill\" [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\">{{data}}</gtr-badge>\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 [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('WRAP') {\n <div [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('INNERHTMLWRAP') {\n <div [title]=\"data?.value\">\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 [id]=\"tableMainId+'-col-action-btn-'+i\" [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)=\"this.actionDone($event, row['id'], action)\">{{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 [href]=\"action.link\" class=\"action-link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" [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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n </a>\n } @else {\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" (click)=\"this.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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a class=\"table-action-link\" [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\" [href]=\"action.link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [dataTransactionName]=\"dataTransactionName+'--col-action-icon-'+i\" [size]=\"action.size\"\n [name]=\"action.icon\" [color]=\"action.color\"></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-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,.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}.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"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9414
|
+
], 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 class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <thead [attr.data-transaction-name]=\"dataTransactionName+'--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox [id]=\"tableMainId+'-row-select-all'\" [attr.data-testid]=\"tableMainId+'-row-select-all'\"\n [checked]=\"fectchSelection()\" [attr.data-transaction-name]=\"dataTransactionName+'--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th class={{column.align}} [class.hide]=\"column.hide\" [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName+'--column'\" [style.max-width]=\"column.styles?.max\">\n <div [class.gtr-header-label]='column.sorting.hasSorting' [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\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 class=\"gtr-header-sorting-wrapper\" [attr.data-transaction-name]=\"dataTransactionName+'--col-sort'\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-up'+ colIndex\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-down'+ colIndex\"\n (click)=\"this.onSorting(-1, column)\"></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 [attr.data-transaction-name]=\"dataTransactionName+'--column-selection'\" class=\"col-selectionSS\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-' + colIndex\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\" class=\"col-status\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\" class=\"col-innerHtml\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-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 class=\"col-component\" [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"rowIndex\"\n [properties]=\"column?.value?.properties\" [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n {\n name: column.value.name },\n rowIndex: rowIndex,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @case ('actions') {\n <div class=\"overflow-auto\" class=\"col-actions\" [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\" class=\"col-default\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\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\">\n No Records Found\n </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 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-custom'\"\n (click)=\"this.onColumnClick(row['id'], column)\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\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\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 [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('icon') {\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('dropdown') {\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('input') {\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('textarea') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('toggle') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @default {\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{ action.name }}</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 type=\"pill\" [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\">{{data}}</gtr-badge>\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 [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('WRAP') {\n <div [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('INNERHTMLWRAP') {\n <div [title]=\"data?.value\">\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 [id]=\"tableMainId+'-col-action-btn-'+i\" [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)=\"this.actionDone($event, row['id'], action)\">{{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 [href]=\"action.link\" class=\"action-link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" [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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n </a>\n } @else {\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" (click)=\"this.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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a class=\"table-action-link\" [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\" [href]=\"action.link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [dataTransactionName]=\"dataTransactionName+'--col-action-icon-'+i\" [size]=\"action.size\"\n [name]=\"action.icon\" [color]=\"action.color\"></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-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,.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"], exportAs: ["appDynamicHost"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9418
9415
|
}
|
|
9419
9416
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTableMainComponent, decorators: [{
|
|
9420
9417
|
type: Component,
|
|
@@ -9438,7 +9435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9438
9435
|
useExisting: forwardRef((() => GtrTableMainComponent)),
|
|
9439
9436
|
multi: true,
|
|
9440
9437
|
},
|
|
9441
|
-
], template: "@if (data.length) {\n<table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <thead [attr.data-transaction-name]=\"dataTransactionName+'--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox [id]=\"tableMainId+'-row-select-all'\" [attr.data-testid]=\"tableMainId+'-row-select-all'\"\n [checked]=\"fectchSelection()\" [attr.data-transaction-name]=\"dataTransactionName+'--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </th>\n }\n\n @for (column of this.columns; track column; let colIndex = $index) {\n <th class={{column.align}} [class.hide]=\"column.hide\" [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName+'--column'\" [style.max-width]=\"column.styles?.max\">\n <div [class.gtr-header-label]='column.sorting.hasSorting' [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\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 class=\"gtr-header-sorting-wrapper\" [attr.data-transaction-name]=\"dataTransactionName+'--col-sort'\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-up'+ colIndex\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-down'+ colIndex\"\n (click)=\"this.onSorting(-1, column)\"></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName+'--tbody'\">\n @for (row of data; track row; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName+'--row-' + rowIndex\">\n @if (enableSelection) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-selection'\" class=\"col-selectionSS\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track column; let colIndex = $index) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-' + colIndex\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\" class=\"col-status\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\" class=\"col-innerHtml\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-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 class=\"col-component\" [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"rowIndex\"\n [properties]=\"column?.value?.properties\" [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n {\n name: column.value.name },\n rowIndex: rowIndex,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @case ('actions') {\n <div class=\"overflow-auto\" class=\"col-actions\" [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\" class=\"col-default\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\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\">\n No Records Found\n </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 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-custom'\"\n (click)=\"this.onColumnClick(row['id'], column)\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\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\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 action; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case ('button') {\n <ng-container [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('icon') {\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('dropdown') {\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('input') {\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('textarea') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('toggle') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @default {\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{ action.name }}</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 type=\"pill\" [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\">{{data}}</gtr-badge>\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 [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('WRAP') {\n <div [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('INNERHTMLWRAP') {\n <div [title]=\"data?.value\">\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 [id]=\"tableMainId+'-col-action-btn-'+i\" [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)=\"this.actionDone($event, row['id'], action)\">{{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 [href]=\"action.link\" class=\"action-link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" [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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n </a>\n } @else {\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" (click)=\"this.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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a class=\"table-action-link\" [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\" [href]=\"action.link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [dataTransactionName]=\"dataTransactionName+'--col-action-icon-'+i\" [size]=\"action.size\"\n [name]=\"action.icon\" [color]=\"action.color\"></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-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,.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}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"] }]
|
|
9438
|
+
], template: "@if (data.length) {\n<table class='gtr-table' [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n <thead [attr.data-transaction-name]=\"dataTransactionName+'--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox [id]=\"tableMainId+'-row-select-all'\" [attr.data-testid]=\"tableMainId+'-row-select-all'\"\n [checked]=\"fectchSelection()\" [attr.data-transaction-name]=\"dataTransactionName+'--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th class={{column.align}} [class.hide]=\"column.hide\" [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName+'--column'\" [style.max-width]=\"column.styles?.max\">\n <div [class.gtr-header-label]='column.sorting.hasSorting' [class.split-heading]=\"column.wrap === 'SPLITHEADING'\">\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 class=\"gtr-header-sorting-wrapper\" [attr.data-transaction-name]=\"dataTransactionName+'--col-sort'\">\n <a class=\"gtr-sorting-arrow-up\" [id]=\"tableMainId+'-col-sort-up-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-up-'+ colIndex\" [class.active]=\"column.sorting.sort===1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-up'+ colIndex\"\n (click)=\"onSorting(1, column)\"></a>\n <a class=\"gtr-sorting-arrow-down\" [id]=\"tableMainId+'-col-sort-down-'+ colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-sort-down-'+ colIndex\" [class.active]=\"column.sorting.sort=== -1\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-sort-down'+ colIndex\"\n (click)=\"this.onSorting(-1, column)\"></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 [attr.data-transaction-name]=\"dataTransactionName+'--column-selection'\" class=\"col-selectionSS\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row}\" [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td [attr.data-transaction-name]=\"dataTransactionName+'--column-' + colIndex\" [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute : 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute : 'color' : colIndex : columns\">\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\" class=\"col-status\"\n [attr.data-testid]=\"tableMainId+'-col-status-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{columnAttributes: column, index: colIndex, data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\" class=\"col-innerHtml\"\n [attr.data-testid]=\"tableMainId+'-col-innerHTML-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-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 class=\"col-component\" [id]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-component-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"rowIndex\"\n [properties]=\"column?.value?.properties\" [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n {\n name: column.value.name },\n rowIndex: rowIndex,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @case ('actions') {\n <div class=\"overflow-auto\" class=\"col-actions\" [id]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-testid]=\"tableMainId+'-col-actions-'+rowIndex+'-'+colIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-actions-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{row: row, column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\" class=\"col-default\"\n [attr.data-testid]=\"tableMainId+'-col-string-'+rowIndex+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{column: column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\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\">\n No Records Found\n </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 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-custom'\"\n (click)=\"this.onColumnClick(row['id'], column)\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\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\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 [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('icon') {\n <ng-container [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('dropdown') {\n <ng-container [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('input') {\n <ng-container [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('textarea') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @case ('toggle') {\n <ng-container [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{row:row, action: action, index: actionIndex}\">\n </ng-container>\n }\n @default {\n <div [id]=\"tableMainId+'-col-action-default-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-default-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-default-'+actionIndex\"\n (click)=\"this.actionDone($event, row['id'], action)\">{{ action.name }}</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 type=\"pill\" [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\">{{data}}</gtr-badge>\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 [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('WRAP') {\n <div [title]=\"data?.value\">\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case ('INNERHTMLWRAP') {\n <div [title]=\"data?.value\">\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 [id]=\"tableMainId+'-col-action-btn-'+i\" [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)=\"this.actionDone($event, row['id'], action)\">{{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 [href]=\"action.link\" class=\"action-link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" [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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n </a>\n } @else {\n <gtr-icon [id]=\"tableMainId+'-col-action-icon-'+i\" (click)=\"this.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\" [size]=\"action.size\" [name]=\"action.icon\"\n [color]=\"action.color\"></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a class=\"table-action-link\" [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\" [href]=\"action.link\"\n (click)=\"this.actionDone($event, row['id'], action); $event.preventDefault();\">\n <gtr-icon [dataTransactionName]=\"dataTransactionName+'--col-action-icon-'+i\" [size]=\"action.size\"\n [name]=\"action.icon\" [color]=\"action.color\"></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea [placeholder]=\"action.name\" [id]=\"tableMainId+'-col-action-textarea-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-textarea-'+i\"\n [attr.data-testid]=\"tableMainId+'-col-action-textarea-'+i\"\n (input)=\"this.actionDone($event, row['id'], action)\"></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select [id]=\"tableMainId+'-col-action-select-'+i\" [attr.data-testid]=\"tableMainId+'-col-action-select-'+i\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-action-select-'+i\"\n (change)=\"this.actionDone($event, row['id'], action)\">\n <option value=''>Select</option>\n <option value='1'>Yes</option>\n <option value='2'>No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableMainId+'-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n [attr.data-testid]=\"tableMainId+'-col-selection'\" (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-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,.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"] }]
|
|
9442
9439
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { dynamicHosts: [{
|
|
9443
9440
|
type: ViewChildren,
|
|
9444
9441
|
args: [DynamicHostDirective]
|
|
@@ -9705,11 +9702,11 @@ class GtrTabsWrapperComponent {
|
|
|
9705
9702
|
return hasHorizontalScroll;
|
|
9706
9703
|
}
|
|
9707
9704
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTabsWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9708
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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
|
|
9705
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", 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"] }); }
|
|
9709
9706
|
}
|
|
9710
9707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GtrTabsWrapperComponent, decorators: [{
|
|
9711
9708
|
type: Component,
|
|
9712
|
-
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
|
|
9709
|
+
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"] }]
|
|
9713
9710
|
}], propDecorators: { tabs: [{
|
|
9714
9711
|
type: ContentChildren,
|
|
9715
9712
|
args: [GtrTabComponent]
|