@gettrx/core-components-angular 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9223,11 +9223,154 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9223
9223
  type: Input
9224
9224
  }] } });
9225
9225
 
9226
+ /**
9227
+ * Shared dynamic component renderer for table cells and expandable detail panels.
9228
+ * Creates the component, applies inputs via setInput, and bridges named outputs.
9229
+ */
9230
+ class DynamicComponentRenderer {
9231
+ render(viewContainerRef, options) {
9232
+ viewContainerRef.clear();
9233
+ const componentRef = viewContainerRef.createComponent(options.component);
9234
+ this.applyInputs(componentRef, options.inputs);
9235
+ const subscriptions = [];
9236
+ for (const eventName of options.outputs ?? []) {
9237
+ const output = componentRef.instance[eventName];
9238
+ if (output && typeof output.subscribe === 'function') {
9239
+ const sub = output.subscribe((value) => {
9240
+ options.onEvent?.(eventName, value);
9241
+ });
9242
+ subscriptions.push(sub);
9243
+ }
9244
+ }
9245
+ componentRef.injector.get(ChangeDetectorRef).detectChanges();
9246
+ return {
9247
+ componentRef,
9248
+ destroy: () => {
9249
+ subscriptions.forEach((s) => s.unsubscribe());
9250
+ componentRef.destroy();
9251
+ viewContainerRef.clear();
9252
+ },
9253
+ };
9254
+ }
9255
+ applyInputs(componentRef, inputs) {
9256
+ if (!inputs) {
9257
+ return;
9258
+ }
9259
+ Object.entries(inputs).forEach(([key, value]) => {
9260
+ try {
9261
+ componentRef.setInput(key, value);
9262
+ }
9263
+ catch {
9264
+ componentRef.instance[key] = value;
9265
+ }
9266
+ });
9267
+ }
9268
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicComponentRenderer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
9269
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicComponentRenderer, providedIn: 'root' }); }
9270
+ }
9271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: DynamicComponentRenderer, decorators: [{
9272
+ type: Injectable,
9273
+ args: [{ providedIn: 'root' }]
9274
+ }] });
9275
+
9276
+ /**
9277
+ * Hosts an expandable-row detail component without cell row/col host matching.
9278
+ */
9279
+ class GtrTableExpandHostDirective {
9280
+ constructor(viewContainerRef, renderer) {
9281
+ this.viewContainerRef = viewContainerRef;
9282
+ this.renderer = renderer;
9283
+ this.detailEvent = new EventEmitter();
9284
+ this.handle = null;
9285
+ this.renderedComponent = null;
9286
+ this.renderedRowId = null;
9287
+ this.outputSubscriptionsTeardown = null;
9288
+ }
9289
+ ngOnChanges(_changes) {
9290
+ this.sync();
9291
+ }
9292
+ ngOnDestroy() {
9293
+ this.destroyCurrent();
9294
+ }
9295
+ sync() {
9296
+ const config = this.config;
9297
+ const component = config?.component;
9298
+ if (!config || !component || !this.row) {
9299
+ this.destroyCurrent();
9300
+ return;
9301
+ }
9302
+ const sameComponent = this.handle && this.renderedComponent === component && this.renderedRowId === this.row.id;
9303
+ if (sameComponent && this.handle) {
9304
+ this.applyInputs(this.handle, config.inputs);
9305
+ return;
9306
+ }
9307
+ this.destroyCurrent();
9308
+ this.mount(config, component);
9309
+ }
9310
+ mount(config, component) {
9311
+ this.handle = this.renderer.render(this.viewContainerRef, {
9312
+ component,
9313
+ inputs: config.inputs,
9314
+ outputs: config.outputs,
9315
+ onEvent: (eventName, value) => {
9316
+ this.detailEvent.emit({
9317
+ rowId: this.row.id,
9318
+ row: this.row,
9319
+ component,
9320
+ eventName,
9321
+ value,
9322
+ });
9323
+ },
9324
+ });
9325
+ this.renderedComponent = component;
9326
+ this.renderedRowId = this.row.id;
9327
+ }
9328
+ applyInputs(handle, inputs) {
9329
+ if (!inputs) {
9330
+ return;
9331
+ }
9332
+ Object.entries(inputs).forEach(([key, value]) => {
9333
+ try {
9334
+ handle.componentRef.setInput(key, value);
9335
+ }
9336
+ catch {
9337
+ handle.componentRef.instance[key] = value;
9338
+ }
9339
+ });
9340
+ }
9341
+ destroyCurrent() {
9342
+ this.outputSubscriptionsTeardown?.();
9343
+ this.outputSubscriptionsTeardown = null;
9344
+ this.handle?.destroy();
9345
+ this.handle = null;
9346
+ this.renderedComponent = null;
9347
+ this.renderedRowId = null;
9348
+ }
9349
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableExpandHostDirective, deps: [{ token: i0.ViewContainerRef }, { token: DynamicComponentRenderer }], target: i0.ɵɵFactoryTarget.Directive }); }
9350
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.22", type: GtrTableExpandHostDirective, isStandalone: true, selector: "[gtrTableExpandHost]", inputs: { config: ["gtrTableExpandHost", "config"], row: "row" }, outputs: { detailEvent: "detailEvent" }, usesOnChanges: true, ngImport: i0 }); }
9351
+ }
9352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableExpandHostDirective, decorators: [{
9353
+ type: Directive,
9354
+ args: [{
9355
+ selector: '[gtrTableExpandHost]',
9356
+ standalone: true,
9357
+ }]
9358
+ }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: DynamicComponentRenderer }], propDecorators: { config: [{
9359
+ type: Input,
9360
+ args: ['gtrTableExpandHost']
9361
+ }], row: [{
9362
+ type: Input
9363
+ }], detailEvent: [{
9364
+ type: Output
9365
+ }] } });
9366
+
9226
9367
  class GtrTableResponsiveComponent {
9227
9368
  constructor(cdRef, attributesPipe) {
9228
9369
  this.cdRef = cdRef;
9229
9370
  this.attributesPipe = attributesPipe;
9230
9371
  this.isLoading = false;
9372
+ /** Row whose expand detail is currently shown in the shared modal (modal displayMode only). */
9373
+ this.modalRow = null;
9231
9374
  /**
9232
9375
  * Set the hide/show state of checbox.
9233
9376
  * @default 'boolean'
@@ -9242,6 +9385,18 @@ class GtrTableResponsiveComponent {
9242
9385
  * Table data
9243
9386
  */
9244
9387
  this.data = [];
9388
+ /**
9389
+ * Enables optional expandable detail rows. Default off — existing tables unchanged.
9390
+ */
9391
+ this.expandable = false;
9392
+ /**
9393
+ * single: opening one row collapses others. multiple: several rows can stay open.
9394
+ */
9395
+ this.expandMode = 'single';
9396
+ /**
9397
+ * Desktop-only position hint. Responsive chevron stays at bottom.
9398
+ */
9399
+ this.expandIconPosition = 'start';
9245
9400
  /**
9246
9401
  * Table data
9247
9402
  */
@@ -9263,6 +9418,15 @@ class GtrTableResponsiveComponent {
9263
9418
  * Sorting eventemitter
9264
9419
  */
9265
9420
  this.onSort = new EventEmitter();
9421
+ /**
9422
+ * Emitted when a detail panel is expanded or collapsed.
9423
+ */
9424
+ this.expandedChange = new EventEmitter();
9425
+ /**
9426
+ * Typed events from expanded detail component outputs.
9427
+ */
9428
+ this.expandDetailEvent = new EventEmitter();
9429
+ this.expandedIds = new Set();
9266
9430
  }
9267
9431
  /**
9268
9432
  * To check screen size
@@ -9321,30 +9485,191 @@ class GtrTableResponsiveComponent {
9321
9485
  * The method is used to check show/hidden state of row
9322
9486
  */
9323
9487
  checkRowHiddenState(row, column, expandAttributes, i) {
9324
- if (!expandAttributes) {
9325
- return;
9488
+ // No expand config → show all columns (parity with desktop behavior)
9489
+ if (!expandAttributes || !Object.keys(expandAttributes).length) {
9490
+ return true;
9326
9491
  }
9327
- const includedColumns = row.columnsData.some((x) => !x.hide);
9328
- if (this.attributesPipe.transform(column, 'priority', i, this.columns) === 'HIGH' ||
9329
- (Object.keys(expandAttributes).length && expandAttributes.isExpanded) ||
9330
- !Object.keys(expandAttributes).length ||
9331
- (Object.keys(expandAttributes).length &&
9332
- includedColumns.length - 1 < expandAttributes.expandAfter)) {
9492
+ const includedColumns = row.columnsData.filter((x) => !x.hide);
9493
+ // Determine this column's visible index among the included (non-hidden) columns.
9494
+ // This fixes cases where the original 'i' doesn't match the visible index for component-type columns.
9495
+ let visibleIndex = includedColumns.findIndex((c) => c === column ||
9496
+ (c.field && column.field && c.field === column.field) ||
9497
+ (c.id && column.id && c.id === column.id));
9498
+ // Fallback to the provided index if no match found
9499
+ if (visibleIndex === -1) {
9500
+ visibleIndex = i;
9501
+ }
9502
+ const priority = this.attributesPipe.transform(column, 'priority', visibleIndex, this.columns);
9503
+ const expandAfter = Number.isFinite(expandAttributes.expandAfter)
9504
+ ? expandAttributes.expandAfter
9505
+ : 0;
9506
+ // Show if high priority, row is expanded, or there are fewer columns than expand threshold
9507
+ if (priority === 'HIGH' ||
9508
+ expandAttributes.isExpanded ||
9509
+ includedColumns.length - 1 < expandAfter) {
9333
9510
  return true;
9334
9511
  }
9335
9512
  return false;
9336
9513
  }
9337
9514
  /**
9338
- * The method is used to toggle show/hide state of row
9515
+ * Legacy column-only expand (when expandable feature flag is off).
9339
9516
  */
9340
9517
  expandRow(row) {
9341
- if (Object.keys(row.expand).length) {
9518
+ if (this.expandable) {
9519
+ this.toggleExpand(row);
9520
+ return;
9521
+ }
9522
+ if (row?.expand && Object.keys(row.expand).length) {
9342
9523
  row.expand.isExpanded = !row.expand.isExpanded;
9343
9524
  }
9344
9525
  }
9526
+ resolveExpandConfig(row) {
9527
+ if (!this.expandConfig) {
9528
+ return null;
9529
+ }
9530
+ return this.expandConfig(row) ?? null;
9531
+ }
9532
+ /**
9533
+ * True when the row should show an expand control under the new expandable feature.
9534
+ */
9535
+ isRowExpandable(row) {
9536
+ if (!this.expandable) {
9537
+ return false;
9538
+ }
9539
+ if (this.rowExpandable && !this.rowExpandable(row)) {
9540
+ return false;
9541
+ }
9542
+ if (!this.expandConfig) {
9543
+ return true;
9544
+ }
9545
+ return this.expandConfig(row) != null;
9546
+ }
9547
+ /** True when a concrete detail component is configured for the row. */
9548
+ hasExpandComponent(row) {
9549
+ return !!this.resolveExpandConfig(row)?.component;
9550
+ }
9551
+ /** Extra panel class from expandConfig (if any). */
9552
+ getExpandPanelClass(row) {
9553
+ return this.resolveExpandConfig(row)?.panelClass || null;
9554
+ }
9555
+ /** Inline panel styles from expandConfig (padding / background). */
9556
+ getExpandPanelStyle(row) {
9557
+ const style = this.resolveExpandConfig(row)?.panelStyle;
9558
+ if (!style) {
9559
+ return null;
9560
+ }
9561
+ const resolved = {};
9562
+ if (style.padding != null && style.padding !== '') {
9563
+ resolved['padding'] = style.padding;
9564
+ }
9565
+ if (style.background != null && style.background !== '') {
9566
+ resolved['background'] = style.background;
9567
+ }
9568
+ return Object.keys(resolved).length ? resolved : null;
9569
+ }
9570
+ /** Responsive display mode for the row. Default: inline. */
9571
+ getExpandDisplayMode(row) {
9572
+ return this.resolveExpandConfig(row)?.displayMode === 'modal' ? 'modal' : 'inline';
9573
+ }
9574
+ isExpandModalMode(row) {
9575
+ return this.getExpandDisplayMode(row) === 'modal';
9576
+ }
9577
+ /**
9578
+ * Show the kebab when the row has actions, or when modal expand needs a trigger
9579
+ * even without an ACTIONS column.
9580
+ */
9581
+ shouldShowRowMenu(row) {
9582
+ return !!this.getActions(row?.columnsData)?.actions || this.shouldShowExpandModalAction(row);
9583
+ }
9584
+ /** Popover "Additional information" item for modal displayMode. */
9585
+ shouldShowExpandModalAction(row) {
9586
+ return this.isRowExpandable(row) && this.isExpandModalMode(row);
9587
+ }
9588
+ getExpandModalHeader(row) {
9589
+ if (!row) {
9590
+ return 'Additional information';
9591
+ }
9592
+ return this.resolveExpandConfig(row)?.modalHeader || 'Additional information';
9593
+ }
9594
+ getExpandModalSize(row) {
9595
+ if (!row) {
9596
+ return 'medium';
9597
+ }
9598
+ return this.resolveExpandConfig(row)?.modalSize || 'medium';
9599
+ }
9600
+ openExpandModal(row, event) {
9601
+ event?.stopPropagation();
9602
+ event?.preventDefault();
9603
+ if (!this.shouldShowExpandModalAction(row)) {
9604
+ return;
9605
+ }
9606
+ this.modalRow = row;
9607
+ }
9608
+ closeExpandModal() {
9609
+ this.modalRow = null;
9610
+ }
9611
+ isExpanded(row) {
9612
+ return this.expandedIds.has(row.id);
9613
+ }
9614
+ /** Whether the bottom chevron should render for this row. */
9615
+ showExpandToggle(row) {
9616
+ if (this.expandable) {
9617
+ return this.isRowExpandable(row);
9618
+ }
9619
+ return !!(row?.expand && Object.keys(row.expand).length);
9620
+ }
9621
+ /** Whether the chevron should show the open/rotated state. */
9622
+ isExpandToggleOpen(row) {
9623
+ if (this.expandable) {
9624
+ return this.isExpanded(row);
9625
+ }
9626
+ return !!row?.expand?.isExpanded;
9627
+ }
9628
+ onExpandToggle(row, event) {
9629
+ event.stopPropagation();
9630
+ event.preventDefault();
9631
+ this.expandRow(row);
9632
+ }
9633
+ toggleExpand(row) {
9634
+ if (!this.isRowExpandable(row)) {
9635
+ return;
9636
+ }
9637
+ const id = row.id;
9638
+ const currentlyExpanded = this.expandedIds.has(id);
9639
+ if (currentlyExpanded) {
9640
+ this.expandedIds.delete(id);
9641
+ }
9642
+ else {
9643
+ if (this.expandMode === 'single') {
9644
+ this.expandedIds.clear();
9645
+ this.data.forEach((r) => {
9646
+ if (r?.expand && r.id !== id) {
9647
+ r.expand.isExpanded = false;
9648
+ }
9649
+ });
9650
+ }
9651
+ this.expandedIds.add(id);
9652
+ }
9653
+ const expanded = this.expandedIds.has(id);
9654
+ if (row.expand) {
9655
+ row.expand.isExpanded = expanded;
9656
+ }
9657
+ this.expandedChange.emit({
9658
+ row,
9659
+ expanded,
9660
+ expandedIds: [...this.expandedIds],
9661
+ });
9662
+ }
9663
+ onExpandDetailEvent(event) {
9664
+ this.expandDetailEvent.emit(event);
9665
+ this.handleEvent.emit({
9666
+ type: 'expand-detail',
9667
+ ...event,
9668
+ });
9669
+ }
9345
9670
  ngOnDestroy() { }
9346
9671
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableResponsiveComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: GtrFetchAttributePipe }], target: i0.ɵɵFactoryTarget.Component }); }
9347
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableResponsiveComponent, isStandalone: true, selector: "gtr-table-responsive", inputs: { isLoading: "isLoading", enableSelection: "enableSelection", columns: "columns", data: "data", tableResponsiveId: "tableResponsiveId", dataTransactionName: "dataTransactionName" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
9672
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableResponsiveComponent, isStandalone: true, selector: "gtr-table-responsive", inputs: { isLoading: "isLoading", enableSelection: "enableSelection", columns: "columns", data: "data", expandable: "expandable", expandMode: "expandMode", expandIconPosition: "expandIconPosition", expandConfig: "expandConfig", rowExpandable: "rowExpandable", tableResponsiveId: "tableResponsiveId", dataTransactionName: "dataTransactionName" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort", expandedChange: "expandedChange", expandDetailEvent: "expandDetailEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
9348
9673
  GtrFetchAttributePipe,
9349
9674
  GtrSkeletonDirective,
9350
9675
  {
@@ -9352,20 +9677,24 @@ class GtrTableResponsiveComponent {
9352
9677
  useExisting: forwardRef((() => GtrTableResponsiveComponent)),
9353
9678
  multi: true,
9354
9679
  },
9355
- ], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "@if (data.length) {\n<div class='table-responsive-wrapper' [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\"\n [attr.data-transaction-name]=\"dataTransactionName\">\n\n @if (enableSelection) {\n <div class='table-selection'>\n <gtr-checkbox label=\"Select All\" [id]=\"tableResponsiveId+'-row-select-all'\"\n [attr.data-transaction-name]=\"dataTransactionName+'-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId+'-row-select-all'\" [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\" />\n </div>\n }\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <div class='table-responsive-wrapper-container'>\n <div class='table-responsive-menu'>\n\n @if (enableSelection) {\n <div class='table-responsive-menu-item'>\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: '';\n height: '20px';\n width: '20px'\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"gtrCheckbox\"></ng-container>\n </ng-container>\n </div>\n }\n\n @if (getActions(row?.columnsData)?.actions) {\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\">\n <ng-container [ngTemplateOutletContext]=\"{row: row, index: rowIndex}\"\n [ngTemplateOutlet]=\"popover\"></ng-container>\n </div>\n }\n </div>\n\n <ng-container [ngTemplateOutlet]=\"renderRow\" [ngTemplateOutletContext]=\"{row:row, index: rowIndex}\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"expandIcon\" [ngTemplateOutletContext]=\"{expandAttributes: row}\"></ng-container>\n </div>\n }\n</div>\n} @else {\n<ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n @if ((column | gtrFetchAttribute : 'type' : colIndex : columns) !== 'actions' && checkRowHiddenState(row, column,\n row.expand, colIndex)) {\n <div class='table-responsive-container'>\n\n <div class='table-responsive-item table-label' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'headingType' : colIndex : columns) {\n @case ('innerHTML') {\n <span [innerHTML]=\"columns[colIndex].label\"></span>\n }\n @default {\n {{ columns[colIndex].label }}\n }\n }\n </div>\n\n <div class='table-responsive-item' [class.hide]=\"column.hide\">\n @switch (column | gtrFetchAttribute : 'type' : colIndex : columns) {\n @case ('status') {\n <div [id]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\" class=\"col-status col-sm-status\"\n [attr.data-testid]=\"tableResponsiveId+'-col-status-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"statusColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('innerHTML') {\n <div [id]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\" class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId+'-col-innerHTML-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"innerHTMLColumn\" [ngTemplateOutletContext]=\"{data: column.value}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('link') {\n <div class=\"col-link col-sm-link\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).mainTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{data: column, index: colIndex, row: row}\">\n </ng-container>\n </ng-container>\n </div>\n }\n @case ('component') {\n <div [id]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\" class=\"col-component col-sm-component\"\n [attr.data-testid]=\"tableResponsiveId+'-col-component-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-template [appDynamicHost] #vc=\"appDynamicHost\" [rowIndex]=\"i\" [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\" [text]=\"column?.value?.text\"></ng-template>\n <ng-container [appDynamicComponent]=\"{componentData:\n { name: column?.value?.name },\n rowIndex: i,\n hosts: dynamicHosts}\" (eventEmitter)=\"fetchEvent($event)\"></ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div [id]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\" class=\"col-default col-sm-default\"\n [attr.data-testid]=\"tableResponsiveId+'-col-string-'+i+'-'+colIndex\">\n <ng-container\n *skeleton=\"isLoading;\n repeat:(((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.repeat) || 1);\n className: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.className) || 'skeleton-margin-bottom');\n height: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.height) || '20px');\n width: (((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns) && ((column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable) && (column | gtrFetchAttribute : 'skeletonConfigs' : colIndex : columns).responsiveTable.width) || '100%')\">\n <ng-container [ngTemplateOutlet]=\"stringColumn\" [ngTemplateOutletContext]=\"{column:column, index: colIndex}\">\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </div>\n }\n }\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value}}>\n {{ column.value?.length > 30 ? (column.value?.slice(0, 30) + '....') : column?.value }}\n </div>\n }\n @case ('WRAP') {\n <div>\n <span class='word-wrap' title={{column?.value}}> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case ('external') {\n <div title={{column?.value?.text}}>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{\n column?.value?.text?.length > 30\n ? (column?.value?.text?.slice(0, 30) + '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\" [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\">{{ column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n @case ('custom') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" (click)=\"this.onColumnClick(row['id'], column)\">{{\n column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n @switch (column | gtrFetchAttribute : 'wrap' : i : columns) {\n @case ('TRUNCATE') {\n <div title={{column?.value?.text}}>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column?.value?.link\">{{\n column?.value?.text?.length > 30 ? (column?.value?.text?.slice(0, 30) +\n '....') : column?.value?.text\n }}</a>\n </div>\n }\n @case ('WRAP') {\n <div>\n <a [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" [routerLink]=\"column.value?.link\"\n class=\"link wrap\">{{ column?.value?.text }}</a>\n </div>\n }\n @default {\n <div>\n <a class=\"link\" [style.color]=\"column.value?.color\" [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-link'\" routerLink=\"{{column.value?.link}}\">{{\n column?.value?.text }}</a>\n </div>\n }\n }\n </div>\n }\n }\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge type=\"pill\" [color]=\"column | gtrFetchAttribute : 'color' : i : columns\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-status-badge-'+i\"\n [dataTransactionName]=\"dataTransactionName+'--col-status-badge-'+i\">{{column?.value}}</gtr-badge>\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\">\n <div class=\"wrap\" [innerHTML]=\"data\"></div>\n</ng-template>\n\n<ng-template #expandIcon let-expandAttributes=\"expandAttributes\">\n @if (expandAttributes && expandAttributes.expand) {\n <div class=\"expanded-arrow-icon\" [attr.data-transaction-name]=\"dataTransactionName+'-expand'\"\n [class.expanded]=\"expandAttributes.expand.isExpanded\" (click)=\"this.expandRow(expandAttributes)\">\n <img src=\"assets/images/arrow-down-navigate.svg\">\n </div>\n }\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container *skeleton=\"isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\">\n <gtr-popover [position]=\"'left'\" [showPositionIndicator]=\"false\" [padding]=\"10\" [moveX]=\"5\" [moveY]=\"-25\">\n <span slot=\"gtr-popover-trigger\">\n <svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"12.6466\" cy=\"11.0002\" rx=\"1.02451\" ry=\"0.916667\" fill=\"black\" fill-opacity=\"0.4\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"17.4167\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <ellipse cx=\"12.6466\" cy=\"4.58317\" rx=\"1.02451\" ry=\"0.916667\" fill=\"#00599C\" stroke=\"#00599C\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n <div slot=\"gtr-popover-content\">\n <div class=\"gtr-popover-content\">\n <ul>\n @for (action of getActions(row?.columnsData)?.actions; track actionIndex; let actionIndex = $index) {\n <li [class.hide]=\"action.hide\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\">\n <a [id]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n [attr.data-transaction-name]=\"dataTransactionName+'-col-action-icon-'+rowIndex+'-'+actionIndex\"\n (click)=\"actionDone('', row, action)\" class=\"d-flex\">{{ action.name }}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n </gtr-popover>\n </ng-container>\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-table-responsive-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\">\n </div>\n <div class=\"gtr-table-responsive-no-data-found\">\n No Records Found\n </div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-colIndex=\"index\">\n <gtr-checkbox [checked]=\"!!row?.isSelected\" [id]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [attr.data-testid]=\"tableResponsiveId+'-col-selection-'+colIndex\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName+'--col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"></gtr-checkbox>\n</ng-template>\n", styles: [":root{display:block;--gtr-table-component-table-border: rgba(0, 0, 0, .2);--gray-shades-80: rgba(0, 0, 0, .8);width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.mt-26{margin-top:26px}.gtr-table-responsive-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-table-responsive-no-data-found img{width:60px}.table-responsive-wrapper-container .hide{display:none!important}.table-responsive-wrapper{width:100%}.table-responsive-wrapper-container .overflow-auto{overflow:auto}.table-responsive-wrapper .table-selection{padding:20px 0}.table-responsive-wrapper-container{width:100%;border-bottom:1px solid rgba(0,0,0,.2)}.table-responsive-wrapper-container .expanded-arrow-icon{transition:all .5s ease-out}.table-responsive-wrapper-container .table-responsive-menu{width:100%;margin:10px 0;display:block}.table-responsive-wrapper-container .table-responsive-menu-item{display:inline-block;width:50%;text-align:right;vertical-align:top}.table-responsive-wrapper-container .table-responsive-menu-item.full-width{width:100%}.table-responsive-wrapper-container .table-responsive-container{padding:10px;width:100%;display:table}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item:first-child{width:40%;max-width:40%}.table-responsive-wrapper-container .text-right{text-align:right}.table-responsive-wrapper-container .table-responsive-container .table-responsive-item{display:table-cell;padding:0 .5em 0 0;vertical-align:top;text-align:left;width:60%;max-width:60%;word-wrap:break-word;overflow:hidden;word-break:break-word;font-size:14px}.table-responsive-wrapper-container .col-component{overflow:auto}.table-responsive-wrapper-container .table-label{color:var(--primary-color)!important;font-size:14px;text-transform:capitalize}.table-responsive-wrapper-container .link{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container .link.disabled,.table-responsive-wrapper-container .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.table-responsive-wrapper-container .link:hover{color:#00599ccc!important;text-decoration:underline!important}.table-responsive-wrapper-container ul{list-style:none;margin:5px;padding:0}.table-responsive-wrapper-container li{color:var(--gray-shades-80, rgba(0, 0, 0, .8));text-align:left;font-size:14px;font-family:Roboto;list-style:none;font-style:normal;font-weight:400;line-height:20px;margin-bottom:6px;padding:5px 10px}.table-responsive-wrapper-container li:last-child{margin-bottom:0}.table-responsive-wrapper-container li:hover{background-color:#00599c0d}.table-responsive-wrapper-container .wrap{word-break:break-word;white-space:initial}.table-responsive-wrapper-container span.approved{color:#009e47;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.declined{color:#4b465c;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container span.withdrawn{color:#00000080;font-weight:700;font-size:15px;text-transform:capitalize}.table-responsive-wrapper-container .expanded-arrow-icon{width:100%;text-align:center;margin-top:10px;margin-bottom:10px}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "scrollToBody", "closeOnClickOutside", "dataTransactionName", "id", "testId"], outputs: ["stateChanged"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
9680
+ ], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }], exportAs: ["gtrTableResponsive"], ngImport: i0, template: "@if (data.length) {\n <div\n class=\"table-responsive-wrapper\"\n [id]=\"tableResponsiveId\"\n [attr.data-testid]=\"tableResponsiveId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n @if (enableSelection) {\n <div class=\"table-selection\">\n <gtr-checkbox\n label=\"Select All\"\n [id]=\"tableResponsiveId + '-row-select-all'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId + '-row-select-all'\"\n [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\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 @if (enableSelection) {\n <div class=\"table-responsive-menu-item\">\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </div>\n }\n\n @if (shouldShowRowMenu(row)) {\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\">\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n [ngTemplateOutlet]=\"popover\"\n ></ng-container>\n </div>\n }\n </div>\n\n <ng-container\n [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n ></ng-container>\n\n @if (expandable && isExpanded(row) && !isExpandModalMode(row)) {\n <div\n class=\"gtr-table-detail-panel\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n [attr.data-transaction-name]=\"dataTransactionName + '--detail-panel-' + rowIndex\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasExpandComponent(row)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(row)\"\n [row]=\"row\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-empty-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n }\n\n <ng-container\n [ngTemplateOutlet]=\"expandIcon\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </div>\n }\n </div>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n\n@if (modalRow) {\n <gtr-modal\n [isOpen]=\"!!modalRow\"\n [header]=\"getExpandModalHeader(modalRow)\"\n [modalSize]=\"getExpandModalSize(modalRow)\"\n [modalId]=\"tableResponsiveId + '-expand-modal'\"\n [dataTransactionName]=\"dataTransactionName + '-expand'\"\n (closeModal)=\"closeExpandModal()\"\n >\n <div slot=\"modal-body\">\n @if (hasExpandComponent(modalRow)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(modalRow)\"\n [row]=\"modalRow\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [id]=\"tableResponsiveId + '-expand-modal-empty'\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-modal-empty'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-modal-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n </gtr-modal>\n}\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n @if (\n (column | gtrFetchAttribute: \"type\" : colIndex : columns) !== \"actions\" &&\n checkRowHiddenState(row, column, row.expand, colIndex)\n ) {\n <div class=\"table-responsive-container\">\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\n [id]=\"tableResponsiveId + '-col-status-' + i + '-' + colIndex\"\n class=\"col-status col-sm-status\"\n [attr.data-testid]=\"tableResponsiveId + '-col-status-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column.value }\"\n >\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=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column.value }\"\n >\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=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n [id]=\"tableResponsiveId + '-col-component-' + i + '-' + colIndex\"\n class=\"col-component col-sm-component\"\n [attr.data-testid]=\"tableResponsiveId + '-col-component-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"i\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: { name: column?.value?.name },\n rowIndex: i,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableResponsiveId + '-col-string-' + i + '-' + colIndex\"\n class=\"col-default col-sm-default\"\n [attr.data-testid]=\"tableResponsiveId + '-col-string-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </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\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n (click)=\"this.onColumnClick(row['id'], column)\"\n >{{ column?.value?.text }}</a\n >\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\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n }\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge\n type=\"pill\"\n [color]=\"column | gtrFetchAttribute: 'color' : i : columns\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n >{{ column?.value }}</gtr-badge\n >\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-row=\"row\" let-rowIndex=\"rowIndex\">\n @if (showExpandToggle(row)) {\n <div\n class=\"expanded-arrow-icon\"\n [class.expanded]=\"isExpandToggleOpen(row)\"\n [id]=\"tableResponsiveId + '-expand-toggle-' + rowIndex\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-toggle-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '-expand'\"\n [attr.aria-expanded]=\"isExpandToggleOpen(row)\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onExpandToggle(row, $event)\"\n (keydown.enter)=\"onExpandToggle(row, $event)\"\n (keydown.space)=\"onExpandToggle(row, $event)\"\n >\n <img src=\"assets/images/arrow-down-navigate.svg\" alt=\"\" />\n </div>\n }\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\n \"\n >\n <gtr-popover\n [position]=\"'left'\"\n [showPositionIndicator]=\"false\"\n [padding]=\"10\"\n [moveX]=\"5\"\n [moveY]=\"-25\"\n >\n <span slot=\"gtr-popover-trigger\">\n <svg\n width=\"25\"\n height=\"22\"\n viewBox=\"0 0 25 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <ellipse\n cx=\"12.6466\"\n cy=\"11.0002\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"black\"\n fill-opacity=\"0.4\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <ellipse\n cx=\"12.6466\"\n cy=\"17.4167\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"#00599C\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <ellipse\n cx=\"12.6466\"\n cy=\"4.58317\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"#00599C\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </span>\n <div slot=\"gtr-popover-content\">\n <div class=\"gtr-popover-content\">\n <ul>\n @if (shouldShowExpandModalAction(row)) {\n <li\n [attr.data-transaction-name]=\"\n dataTransactionName + '-expand-additional-info-' + rowIndex\n \"\n >\n <a\n [id]=\"tableResponsiveId + '-expand-additional-info-' + rowIndex\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-additional-info-' + rowIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-expand-additional-info-' + rowIndex\n \"\n (click)=\"openExpandModal(row, $event)\"\n class=\"d-flex\"\n >Additional information</a\n >\n </li>\n }\n @for (\n action of getActions(row?.columnsData)?.actions;\n track actionIndex;\n let actionIndex = $index\n ) {\n <li\n [class.hide]=\"action.hide\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n >\n <a\n [id]=\"tableResponsiveId + '-col-action-icon-' + rowIndex + '-' + actionIndex\"\n [attr.data-testid]=\"\n tableResponsiveId + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n (click)=\"actionDone('', row, action)\"\n class=\"d-flex\"\n >{{ action.name }}</a\n >\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\">No Records Found</div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-colIndex=\"index\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [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)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: ["@charset \"UTF-8\";: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;cursor:pointer}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}.table-responsive-wrapper-container .gtr-table-detail-panel{margin:8px 0 4px;padding:16px 20px 20px;background-color:#0000000a;white-space:normal;border-radius:4px}.table-responsive-wrapper-container .gtr-table-expand-empty{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 16px;border:1px dashed rgba(0,0,0,.2);border-radius:4px;background-color:#00000005;color:#0000008c;font-family:Roboto,Arial,sans-serif;font-size:14px;font-weight:400;text-align:center}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "component", type: GtrPopoverComponent, selector: "gtr-popover", inputs: ["position", "isOpened", "showPositionIndicator", "moveX", "moveY", "padding", "marginTop", "marginBottom", "marginLeft", "marginRight", "scrollToBody", "closeOnClickOutside", "dataTransactionName", "id", "testId"], outputs: ["stateChanged"] }, { kind: "component", type: GtrModalComponent, selector: "gtr-modal", inputs: ["isOpen", "modalPosition", "modalId", "modalSize", "scrollType", "header", "hasHeading", "dataTransactionName"], outputs: ["closeModal"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "directive", type: GtrTableExpandHostDirective, selector: "[gtrTableExpandHost]", inputs: ["gtrTableExpandHost", "row"], outputs: ["detailEvent"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
9356
9681
  }
9357
9682
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableResponsiveComponent, decorators: [{
9358
9683
  type: Component,
9359
9684
  args: [{ selector: 'gtr-table-responsive', exportAs: 'gtrTableResponsive', encapsulation: ViewEncapsulation.None, imports: [
9685
+ NgClass,
9686
+ NgStyle,
9360
9687
  NgTemplateOutlet,
9361
9688
  GtrFetchAttributePipe,
9362
9689
  GtrBadgeComponent,
9363
9690
  GtrSkeletonDirective,
9364
9691
  GtrCheckboxComponent,
9365
9692
  GtrPopoverComponent,
9693
+ GtrModalComponent,
9366
9694
  RouterModule,
9367
9695
  DynamicComponentDirective,
9368
9696
  DynamicHostDirective,
9697
+ GtrTableExpandHostDirective,
9369
9698
  ], providers: [
9370
9699
  GtrFetchAttributePipe,
9371
9700
  GtrSkeletonDirective,
@@ -9374,7 +9703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9374
9703
  useExisting: forwardRef((() => GtrTableResponsiveComponent)),
9375
9704
  multi: true,
9376
9705
  },
9377
- ], 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"] }]
9706
+ ], template: "@if (data.length) {\n <div\n class=\"table-responsive-wrapper\"\n [id]=\"tableResponsiveId\"\n [attr.data-testid]=\"tableResponsiveId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n @if (enableSelection) {\n <div class=\"table-selection\">\n <gtr-checkbox\n label=\"Select All\"\n [id]=\"tableResponsiveId + '-row-select-all'\"\n [attr.data-transaction-name]=\"dataTransactionName + '-row-select-all'\"\n [attr.data-testid]=\"tableResponsiveId + '-row-select-all'\"\n [checked]=\"fetchSelection()\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\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 @if (enableSelection) {\n <div class=\"table-responsive-menu-item\">\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </div>\n }\n\n @if (shouldShowRowMenu(row)) {\n <div class=\"table-responsive-menu-item\" [class.full-width]=\"!enableSelection\">\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n [ngTemplateOutlet]=\"popover\"\n ></ng-container>\n </div>\n }\n </div>\n\n <ng-container\n [ngTemplateOutlet]=\"renderRow\"\n [ngTemplateOutletContext]=\"{ row: row, index: rowIndex }\"\n ></ng-container>\n\n @if (expandable && isExpanded(row) && !isExpandModalMode(row)) {\n <div\n class=\"gtr-table-detail-panel\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n [attr.data-transaction-name]=\"dataTransactionName + '--detail-panel-' + rowIndex\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasExpandComponent(row)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(row)\"\n [row]=\"row\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-empty-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n }\n\n <ng-container\n [ngTemplateOutlet]=\"expandIcon\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </div>\n }\n </div>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n\n@if (modalRow) {\n <gtr-modal\n [isOpen]=\"!!modalRow\"\n [header]=\"getExpandModalHeader(modalRow)\"\n [modalSize]=\"getExpandModalSize(modalRow)\"\n [modalId]=\"tableResponsiveId + '-expand-modal'\"\n [dataTransactionName]=\"dataTransactionName + '-expand'\"\n (closeModal)=\"closeExpandModal()\"\n >\n <div slot=\"modal-body\">\n @if (hasExpandComponent(modalRow)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(modalRow)\"\n [row]=\"modalRow\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [id]=\"tableResponsiveId + '-expand-modal-empty'\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-modal-empty'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-modal-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n </gtr-modal>\n}\n<ng-template #renderRow let-row=\"row\" let-i=\"index\">\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n @if (\n (column | gtrFetchAttribute: \"type\" : colIndex : columns) !== \"actions\" &&\n checkRowHiddenState(row, column, row.expand, colIndex)\n ) {\n <div class=\"table-responsive-container\">\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\n [id]=\"tableResponsiveId + '-col-status-' + i + '-' + colIndex\"\n class=\"col-status col-sm-status\"\n [attr.data-testid]=\"tableResponsiveId + '-col-status-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column.value }\"\n >\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=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n class=\"col-innerHtml col-sm-innerHtml\"\n [attr.data-testid]=\"tableResponsiveId + '-col-innerHTML-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column.value }\"\n >\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=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns).mainTable\n .width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n [id]=\"tableResponsiveId + '-col-component-' + i + '-' + colIndex\"\n class=\"col-component col-sm-component\"\n [attr.data-testid]=\"tableResponsiveId + '-col-component-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"i\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: { name: column?.value?.name },\n rowIndex: i,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableResponsiveId + '-col-string-' + i + '-' + colIndex\"\n class=\"col-default col-sm-default\"\n [attr.data-testid]=\"tableResponsiveId + '-col-string-' + i + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.height) ||\n '20px';\n width: ((column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .responsiveTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </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\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n (click)=\"this.onColumnClick(row['id'], column)\"\n >{{ column?.value?.text }}</a\n >\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\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n }\n</ng-template>\n\n<ng-template #statusColumn let-column=\"column\" let-i=\"index\">\n <gtr-badge\n type=\"pill\"\n [color]=\"column | gtrFetchAttribute: 'color' : i : columns\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n >{{ column?.value }}</gtr-badge\n >\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-row=\"row\" let-rowIndex=\"rowIndex\">\n @if (showExpandToggle(row)) {\n <div\n class=\"expanded-arrow-icon\"\n [class.expanded]=\"isExpandToggleOpen(row)\"\n [id]=\"tableResponsiveId + '-expand-toggle-' + rowIndex\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-toggle-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '-expand'\"\n [attr.aria-expanded]=\"isExpandToggleOpen(row)\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onExpandToggle(row, $event)\"\n (keydown.enter)=\"onExpandToggle(row, $event)\"\n (keydown.space)=\"onExpandToggle(row, $event)\"\n >\n <img src=\"assets/images/arrow-down-navigate.svg\" alt=\"\" />\n </div>\n }\n</ng-template>\n\n<ng-template #popover let-row=\"row\" let-rowIndex=\"index\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: 1;\n className: 'sk-float-right-mr-10';\n height: '20px';\n width: '5px'\n \"\n >\n <gtr-popover\n [position]=\"'left'\"\n [showPositionIndicator]=\"false\"\n [padding]=\"10\"\n [moveX]=\"5\"\n [moveY]=\"-25\"\n >\n <span slot=\"gtr-popover-trigger\">\n <svg\n width=\"25\"\n height=\"22\"\n viewBox=\"0 0 25 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <ellipse\n cx=\"12.6466\"\n cy=\"11.0002\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"black\"\n fill-opacity=\"0.4\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <ellipse\n cx=\"12.6466\"\n cy=\"17.4167\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"#00599C\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <ellipse\n cx=\"12.6466\"\n cy=\"4.58317\"\n rx=\"1.02451\"\n ry=\"0.916667\"\n fill=\"#00599C\"\n stroke=\"#00599C\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </span>\n <div slot=\"gtr-popover-content\">\n <div class=\"gtr-popover-content\">\n <ul>\n @if (shouldShowExpandModalAction(row)) {\n <li\n [attr.data-transaction-name]=\"\n dataTransactionName + '-expand-additional-info-' + rowIndex\n \"\n >\n <a\n [id]=\"tableResponsiveId + '-expand-additional-info-' + rowIndex\"\n [attr.data-testid]=\"tableResponsiveId + '-expand-additional-info-' + rowIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-expand-additional-info-' + rowIndex\n \"\n (click)=\"openExpandModal(row, $event)\"\n class=\"d-flex\"\n >Additional information</a\n >\n </li>\n }\n @for (\n action of getActions(row?.columnsData)?.actions;\n track actionIndex;\n let actionIndex = $index\n ) {\n <li\n [class.hide]=\"action.hide\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n >\n <a\n [id]=\"tableResponsiveId + '-col-action-icon-' + rowIndex + '-' + actionIndex\"\n [attr.data-testid]=\"\n tableResponsiveId + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-action-icon-' + rowIndex + '-' + actionIndex\n \"\n (click)=\"actionDone('', row, action)\"\n class=\"d-flex\"\n >{{ action.name }}</a\n >\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\">No Records Found</div>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\" let-colIndex=\"index\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [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)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: ["@charset \"UTF-8\";: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;cursor:pointer}.table-responsive-wrapper-container .expanded-arrow-icon.expanded{transform:rotate(180deg)}.table-responsive-wrapper-container .gtr-table-detail-panel{margin:8px 0 4px;padding:16px 20px 20px;background-color:#0000000a;white-space:normal;border-radius:4px}.table-responsive-wrapper-container .gtr-table-expand-empty{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 16px;border:1px dashed rgba(0,0,0,.2);border-radius:4px;background-color:#00000005;color:#0000008c;font-family:Roboto,Arial,sans-serif;font-size:14px;font-weight:400;text-align:center}\n"] }]
9378
9707
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: GtrFetchAttributePipe }], propDecorators: { dynamicHosts: [{
9379
9708
  type: ViewChildren,
9380
9709
  args: [DynamicHostDirective]
@@ -9386,6 +9715,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9386
9715
  type: Input
9387
9716
  }], data: [{
9388
9717
  type: Input
9718
+ }], expandable: [{
9719
+ type: Input
9720
+ }], expandMode: [{
9721
+ type: Input
9722
+ }], expandIconPosition: [{
9723
+ type: Input
9724
+ }], expandConfig: [{
9725
+ type: Input
9726
+ }], rowExpandable: [{
9727
+ type: Input
9389
9728
  }], tableResponsiveId: [{
9390
9729
  type: Input
9391
9730
  }], dataTransactionName: [{
@@ -9398,11 +9737,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9398
9737
  type: Output
9399
9738
  }], onSort: [{
9400
9739
  type: Output
9740
+ }], expandedChange: [{
9741
+ type: Output
9742
+ }], expandDetailEvent: [{
9743
+ type: Output
9401
9744
  }], onResize: [{
9402
9745
  type: HostListener,
9403
9746
  args: ['window:resize', ['$event']]
9404
9747
  }] } });
9405
9748
 
9749
+ const ROW_EXPAND_IGNORE_SELECTOR = [
9750
+ 'a',
9751
+ 'button',
9752
+ 'input',
9753
+ 'textarea',
9754
+ 'select',
9755
+ 'gtr-checkbox',
9756
+ 'gtr-button',
9757
+ '.action-menu',
9758
+ '.gtr-header-sorting-wrapper',
9759
+ '.gtr-table-expand-toggle',
9760
+ '.gtr-table-detail-panel',
9761
+ '.link',
9762
+ ].join(',');
9406
9763
  class GtrTableMainComponent {
9407
9764
  constructor(cdRef) {
9408
9765
  this.cdRef = cdRef;
@@ -9426,6 +9783,18 @@ class GtrTableMainComponent {
9426
9783
  * Table data
9427
9784
  */
9428
9785
  this.data = [];
9786
+ /**
9787
+ * Enables optional expandable detail rows (desktop). Default off — existing tables unchanged.
9788
+ */
9789
+ this.expandable = false;
9790
+ /**
9791
+ * single: opening one row collapses others. multiple: several rows can stay open.
9792
+ */
9793
+ this.expandMode = 'single';
9794
+ /**
9795
+ * start: chevron before selection/data. end: chevron after data columns.
9796
+ */
9797
+ this.expandIconPosition = 'start';
9429
9798
  /**
9430
9799
  * The selection changed eventemitter
9431
9800
  */
@@ -9442,10 +9811,135 @@ class GtrTableMainComponent {
9442
9811
  * Sorting eventemitter
9443
9812
  */
9444
9813
  this.onSort = new EventEmitter();
9814
+ /**
9815
+ * Emitted when a detail panel is expanded or collapsed.
9816
+ */
9817
+ this.expandedChange = new EventEmitter();
9818
+ /**
9819
+ * Typed events from expanded detail component outputs.
9820
+ */
9821
+ this.expandDetailEvent = new EventEmitter();
9822
+ this.expandedIds = new Set();
9445
9823
  }
9446
9824
  ngAfterViewChecked() {
9447
9825
  this.cdRef.detectChanges();
9448
9826
  }
9827
+ get detailColSpan() {
9828
+ let count = this.columns.length;
9829
+ if (this.enableSelection) {
9830
+ count += 1;
9831
+ }
9832
+ if (this.expandable) {
9833
+ count += 1;
9834
+ }
9835
+ return count;
9836
+ }
9837
+ resolveExpandConfig(row) {
9838
+ if (!this.expandConfig) {
9839
+ return null;
9840
+ }
9841
+ return this.expandConfig(row) ?? null;
9842
+ }
9843
+ /**
9844
+ * True when the row should show an expand control.
9845
+ * - No expandConfig at all → expandable (lib shows empty-state message)
9846
+ * - expandConfig(row) returns null/undefined → not expandable for that row
9847
+ * - expandConfig(row) returns a config → expandable (component or empty-state if no component)
9848
+ */
9849
+ isRowExpandable(row) {
9850
+ if (!this.expandable) {
9851
+ return false;
9852
+ }
9853
+ if (this.rowExpandable && !this.rowExpandable(row)) {
9854
+ return false;
9855
+ }
9856
+ if (!this.expandConfig) {
9857
+ return true;
9858
+ }
9859
+ return this.expandConfig(row) != null;
9860
+ }
9861
+ /** True when a concrete detail component is configured for the row. */
9862
+ hasExpandComponent(row) {
9863
+ return !!this.resolveExpandConfig(row)?.component;
9864
+ }
9865
+ /** Extra panel class from expandConfig (if any). */
9866
+ getExpandPanelClass(row) {
9867
+ return this.resolveExpandConfig(row)?.panelClass || null;
9868
+ }
9869
+ /** Inline panel styles from expandConfig (padding / background). */
9870
+ getExpandPanelStyle(row) {
9871
+ const style = this.resolveExpandConfig(row)?.panelStyle;
9872
+ if (!style) {
9873
+ return null;
9874
+ }
9875
+ const resolved = {};
9876
+ if (style.padding != null && style.padding !== '') {
9877
+ resolved['padding'] = style.padding;
9878
+ }
9879
+ if (style.background != null && style.background !== '') {
9880
+ resolved['background'] = style.background;
9881
+ }
9882
+ return Object.keys(resolved).length ? resolved : null;
9883
+ }
9884
+ isExpanded(row) {
9885
+ return this.expandedIds.has(row.id);
9886
+ }
9887
+ onExpandToggle(row, event) {
9888
+ event.stopPropagation();
9889
+ event.preventDefault();
9890
+ this.toggleExpand(row);
9891
+ }
9892
+ onRowClick(row, event) {
9893
+ if (!this.isRowExpandable(row) || this.shouldIgnoreRowExpandClick(event)) {
9894
+ return;
9895
+ }
9896
+ this.toggleExpand(row);
9897
+ }
9898
+ onRowKeydown(row, event) {
9899
+ if (!this.isRowExpandable(row)) {
9900
+ return;
9901
+ }
9902
+ if (event.key !== 'Enter' && event.key !== ' ') {
9903
+ return;
9904
+ }
9905
+ event.preventDefault();
9906
+ this.toggleExpand(row);
9907
+ }
9908
+ toggleExpand(row) {
9909
+ if (!this.isRowExpandable(row)) {
9910
+ return;
9911
+ }
9912
+ const id = row.id;
9913
+ const currentlyExpanded = this.expandedIds.has(id);
9914
+ if (currentlyExpanded) {
9915
+ this.expandedIds.delete(id);
9916
+ }
9917
+ else {
9918
+ if (this.expandMode === 'single') {
9919
+ this.expandedIds.clear();
9920
+ }
9921
+ this.expandedIds.add(id);
9922
+ }
9923
+ this.expandedChange.emit({
9924
+ row,
9925
+ expanded: this.expandedIds.has(id),
9926
+ expandedIds: [...this.expandedIds],
9927
+ });
9928
+ }
9929
+ onExpandDetailEvent(event) {
9930
+ this.expandDetailEvent.emit(event);
9931
+ this.handleEvent.emit({
9932
+ type: 'expand-detail',
9933
+ ...event,
9934
+ });
9935
+ }
9936
+ shouldIgnoreRowExpandClick(event) {
9937
+ const target = event.target;
9938
+ if (!target) {
9939
+ return true;
9940
+ }
9941
+ return !!target.closest(ROW_EXPAND_IGNORE_SELECTOR);
9942
+ }
9449
9943
  onSorting(sortType, column) {
9450
9944
  if (sortType === column.sorting.sort) {
9451
9945
  column.sorting.sort = 0;
@@ -9488,18 +9982,20 @@ class GtrTableMainComponent {
9488
9982
  this.onSelection.emit(dataToEmit);
9489
9983
  }
9490
9984
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableMainComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
9491
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { dataTransactionName: "dataTransactionName", enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, providers: [
9985
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableMainComponent, isStandalone: true, selector: "gtr-table-main", inputs: { dataTransactionName: "dataTransactionName", enableSelection: "enableSelection", isLoading: "isLoading", columns: "columns", tableMainId: "tableMainId", data: "data", expandable: "expandable", expandMode: "expandMode", expandIconPosition: "expandIconPosition", expandConfig: "expandConfig", rowExpandable: "rowExpandable" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort", expandedChange: "expandedChange", expandDetailEvent: "expandDetailEvent" }, providers: [
9492
9986
  GtrSkeletonDirective,
9493
9987
  {
9494
9988
  provide: NG_VALUE_ACCESSOR,
9495
9989
  useExisting: forwardRef((() => GtrTableMainComponent)),
9496
9990
  multi: true,
9497
9991
  },
9498
- ], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }, { propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\">\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "name", "dataTransactionName", "color", "isLoading", "variant", "disabled"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
9992
+ ], viewQueries: [{ propertyName: "dynamicHosts", predicate: DynamicHostDirective, descendants: true }, { propertyName: "templateRef", predicate: ["template"], descendants: true, read: ViewContainerRef }, { propertyName: "childRowRef", predicate: ["childRows"], descendants: true, read: ViewContainerRef }], exportAs: ["gtrTableMain"], ngImport: i0, template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (expandable && expandIconPosition === \"start\") {\n <th class=\"gtr-table-expand-col\" aria-hidden=\"true\"></th>\n }\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n @if (expandable && expandIconPosition === \"end\") {\n <th class=\"gtr-table-expand-col\" aria-hidden=\"true\"></th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr\n [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\"\n [class.gtr-table-row--expandable]=\"isRowExpandable(row)\"\n [class.gtr-table-row--expanded]=\"isExpanded(row)\"\n [attr.role]=\"isRowExpandable(row) ? 'button' : null\"\n [attr.tabindex]=\"isRowExpandable(row) ? 0 : null\"\n [attr.aria-expanded]=\"isRowExpandable(row) ? isExpanded(row) : null\"\n (click)=\"onRowClick(row, $event)\"\n (keydown)=\"onRowKeydown(row, $event)\"\n >\n @if (expandable && expandIconPosition === \"start\") {\n <td\n class=\"gtr-table-expand-col\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-expand'\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expandToggle\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </td>\n }\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n @if (expandable && expandIconPosition === \"end\") {\n <td\n class=\"gtr-table-expand-col\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-expand'\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expandToggle\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </td>\n }\n </tr>\n @if (expandable && isExpanded(row)) {\n <tr\n class=\"gtr-table-detail-row\"\n [attr.data-transaction-name]=\"dataTransactionName + '--detail-row-' + rowIndex\"\n >\n <td [attr.colspan]=\"detailColSpan\">\n <div\n class=\"gtr-table-detail-panel\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasExpandComponent(row)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(row)\"\n [row]=\"row\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n [attr.data-testid]=\"tableMainId + '-expand-empty-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n </td>\n </tr>\n }\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 #expandToggle let-row=\"row\" let-rowIndex=\"rowIndex\">\n @if (isRowExpandable(row)) {\n <button\n type=\"button\"\n class=\"gtr-table-expand-toggle\"\n [class.gtr-table-expand-toggle--open]=\"isExpanded(row)\"\n [id]=\"tableMainId + '-expand-toggle-' + rowIndex\"\n [attr.data-testid]=\"tableMainId + '-expand-toggle-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-toggle-' + rowIndex\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"isExpanded(row) ? 'Collapse row' : 'Expand row'\"\n (click)=\"onExpandToggle(row, $event)\"\n >\n <gtr-icon\n name=\"chevron-down\"\n [size]=\"16\"\n [color]=\"isExpanded(row) ? 'var(--primary-color, #00599c)' : 'currentColor'\"\n [dataTransactionName]=\"dataTransactionName + '--expand-icon'\"\n ></gtr-icon>\n </button>\n }\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}.gtr-table th.gtr-table-expand-col,.gtr-table td.gtr-table-expand-col{min-width:40px!important;max-width:48px;width:40px;padding:10px 4px;text-align:center;white-space:nowrap;vertical-align:middle}.gtr-table .gtr-table-expand-toggle{display:inline-flex;align-items:center;justify-content:center;padding:4px;margin:0;border:none;background:transparent;cursor:pointer;color:var(--gray-shades-80, rgba(0, 0, 0, .8));line-height:0;border-radius:4px;transition:color .15s ease}.gtr-table .gtr-table-expand-toggle .gtr-icon{display:inline-block;transition:transform .2s ease}.gtr-table .gtr-table-expand-toggle:hover{background-color:var(--gtr-table-component-table-hover-bg)}.gtr-table .gtr-table-expand-toggle--open{color:var(--primary-color, #00599c)}.gtr-table .gtr-table-expand-toggle--open gtr-icon,.gtr-table .gtr-table-expand-toggle--open .gtr-icon{color:var(--primary-color, #00599c)!important;transform:rotate(180deg)}.gtr-table tr.gtr-table-row--expandable:focus-visible{outline:2px solid var(--primary-color, #00599c);outline-offset:-2px}.gtr-table tr.gtr-table-detail-row{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr.gtr-table-detail-row:hover{background-color:transparent;color:inherit;cursor:default}.gtr-table tr.gtr-table-detail-row>td{padding:0;white-space:normal;min-width:0;max-width:none;vertical-align:top}.gtr-table .gtr-table-detail-panel{padding:16px 20px 20px;background-color:var(--gtr-color-base-white-100, #ffffff);white-space:normal}.gtr-table .gtr-table-expand-empty{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 16px;border:1px dashed rgba(0,0,0,.2);border-radius:4px;background-color:#00000005;color:#0000008c;font-family:Roboto,Arial,sans-serif;font-size:14px;font-weight:400;text-align:center}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["name", "dataTransactionName", "shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrCheckboxComponent, selector: "gtr-checkbox", inputs: ["name", "dataTransactionName", "identifier", "value", "label", "checked", "disabled", "readonly"], outputs: ["selectionChanged"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrButtonComponent, selector: "gtr-button", inputs: ["type", "btnId", "name", "dataTransactionName", "color", "isLoading", "variant", "disabled"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[appDynamicComponent]", inputs: ["appDynamicComponent", "isDestroy"], outputs: ["eventEmitter"] }, { kind: "directive", type: DynamicHostDirective, selector: "[appDynamicHost]", inputs: ["rowIndex", "properties", "events", "text", "colIndex"], exportAs: ["appDynamicHost"] }, { kind: "directive", type: GtrTableExpandHostDirective, selector: "[gtrTableExpandHost]", inputs: ["gtrTableExpandHost", "row"], outputs: ["detailEvent"] }, { kind: "pipe", type: GtrFetchAttributePipe, name: "gtrFetchAttribute" }], encapsulation: i0.ViewEncapsulation.None }); }
9499
9993
  }
9500
9994
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableMainComponent, decorators: [{
9501
9995
  type: Component,
9502
9996
  args: [{ selector: 'gtr-table-main', exportAs: 'gtrTableMain', encapsulation: ViewEncapsulation.None, imports: [
9997
+ NgClass,
9998
+ NgStyle,
9503
9999
  NgTemplateOutlet,
9504
10000
  GtrFetchAttributePipe,
9505
10001
  GtrBadgeComponent,
@@ -9510,6 +10006,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9510
10006
  RouterModule,
9511
10007
  DynamicComponentDirective,
9512
10008
  DynamicHostDirective,
10009
+ GtrTableExpandHostDirective,
9513
10010
  ], providers: [
9514
10011
  GtrSkeletonDirective,
9515
10012
  {
@@ -9517,7 +10014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9517
10014
  useExisting: forwardRef((() => GtrTableMainComponent)),
9518
10015
  multi: true,
9519
10016
  },
9520
- ], template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\">\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n} @else {\n <ng-container *ngTemplateOutlet=\"other\"></ng-container>\n}\n<ng-template #childRows></ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}\n"] }]
10017
+ ], template: "@if (data.length) {\n <table\n class=\"gtr-table\"\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [attr.data-transaction-name]=\"dataTransactionName\"\n >\n <thead [attr.data-transaction-name]=\"dataTransactionName + '--thead'\">\n @if (expandable && expandIconPosition === \"start\") {\n <th class=\"gtr-table-expand-col\" aria-hidden=\"true\"></th>\n }\n @if (enableSelection) {\n <th>\n <gtr-checkbox\n [id]=\"tableMainId + '-row-select-all'\"\n [attr.data-testid]=\"tableMainId + '-row-select-all'\"\n [checked]=\"fectchSelection()\"\n [attr.data-transaction-name]=\"dataTransactionName + '--row-select-all'\"\n (selectionChanged)=\"this.selectAll($event)\"\n />\n </th>\n }\n\n @for (column of this.columns; track colIndex; let colIndex = $index) {\n <th\n class=\"{{ column.align }}\"\n [class.hide]=\"column.hide\"\n [style.min-width]=\"column.styles?.min\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column'\"\n [style.max-width]=\"column.styles?.max\"\n >\n <div\n [class.gtr-header-label]=\"column.sorting.hasSorting\"\n [class.split-heading]=\"column.wrap === 'SPLITHEADING'\"\n >\n @switch (column | gtrFetchAttribute: \"headingType\" : colIndex : columns) {\n @case (\"innerHTML\") {\n <span [innerHTML]=\"column.label\"></span>\n }\n @default {\n {{ column.label }}\n }\n }\n </div>\n @if (column.sorting.hasSorting) {\n <span\n class=\"gtr-header-sorting-wrapper\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort'\"\n >\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-up\"\n [id]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-up-' + colIndex\"\n [class.active]=\"column.sorting.sort === 1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-up' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(1, column)\"\n ></a>\n <a\n href=\"javascript:void(0)\"\n class=\"gtr-sorting-arrow-down\"\n [id]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-sort-down-' + colIndex\"\n [class.active]=\"column.sorting.sort === -1\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-sort-down' + colIndex\"\n (click)=\"$event.stopPropagation(); onSorting(-1, column)\"\n ></a>\n </span>\n }\n </th>\n }\n @if (expandable && expandIconPosition === \"end\") {\n <th class=\"gtr-table-expand-col\" aria-hidden=\"true\"></th>\n }\n </thead>\n <tbody [attr.data-transaction-name]=\"dataTransactionName + '--tbody'\">\n @for (row of data; track rowIndex; let rowIndex = $index) {\n <tr\n [attr.data-transaction-name]=\"dataTransactionName + '--row-' + rowIndex\"\n [class.gtr-table-row--expandable]=\"isRowExpandable(row)\"\n [class.gtr-table-row--expanded]=\"isExpanded(row)\"\n [attr.role]=\"isRowExpandable(row) ? 'button' : null\"\n [attr.tabindex]=\"isRowExpandable(row) ? 0 : null\"\n [attr.aria-expanded]=\"isRowExpandable(row) ? isExpanded(row) : null\"\n (click)=\"onRowClick(row, $event)\"\n (keydown)=\"onRowKeydown(row, $event)\"\n >\n @if (expandable && expandIconPosition === \"start\") {\n <td\n class=\"gtr-table-expand-col\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-expand'\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expandToggle\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </td>\n }\n @if (enableSelection) {\n <td\n [attr.data-transaction-name]=\"dataTransactionName + '--column-selection'\"\n class=\"col-selectionSS\"\n >\n <ng-container\n *skeleton=\"isLoading; repeat: 1; className: ''; height: '20px'; width: '20px'\"\n >\n <ng-container\n [ngTemplateOutletContext]=\"{ row: row }\"\n [ngTemplateOutlet]=\"gtrCheckbox\"\n ></ng-container>\n </ng-container>\n </td>\n }\n @for (column of row.columnsData; track colIndex; let colIndex = $index) {\n <td\n (click)=\"onColumnClick(row['id'], column, $event, colIndex, 'click')\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-' + colIndex\"\n [class.hide]=\"column.hide\"\n [class]=\"column | gtrFetchAttribute: 'align' : colIndex : columns\"\n [style.color]=\"column | gtrFetchAttribute: 'color' : colIndex : columns\"\n >\n <div [class.gtr-data-label]=\"this.columns[colIndex].sorting.hasSorting\">\n @switch (column | gtrFetchAttribute: \"type\" : colIndex : columns) {\n @case (\"status\") {\n <div\n [id]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n class=\"col-status\"\n [attr.data-testid]=\"tableMainId + '-col-status-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"statusColumn\"\n [ngTemplateOutletContext]=\"{\n columnAttributes: column,\n index: colIndex,\n data: column.value,\n }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"innerHTML\") {\n <div\n [id]=\"tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\"\n class=\"col-innerHtml\"\n [attr.data-testid]=\"\n tableMainId + '-col-innerHTML-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"innerHTMLColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"link\") {\n <div class=\"col-link\">\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"linkColumn\"\n [ngTemplateOutletContext]=\"{ data: column, index: colIndex, row: row }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @case (\"component\") {\n <div\n class=\"col-component\"\n [id]=\"tableMainId + '-col-component-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"\n tableMainId + '-col-component-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-template\n [appDynamicHost]\n #vc=\"appDynamicHost\"\n [rowIndex]=\"rowIndex\"\n [colIndex]=\"colIndex\"\n [properties]=\"column?.value?.properties\"\n [events]=\"column?.value?.events\"\n [text]=\"column?.value?.text\"\n ></ng-template>\n <ng-container\n [appDynamicComponent]=\"{\n componentData: {\n name: column.value.name,\n },\n rowIndex: rowIndex,\n colIndex: colIndex,\n hosts: dynamicHosts,\n }\"\n (eventEmitter)=\"fetchEvent($event)\"\n ></ng-container>\n </ng-container>\n </div>\n }\n @case (\"actions\") {\n <div\n class=\"overflow-auto\"\n class=\"col-actions\"\n [id]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-testid]=\"tableMainId + '-col-actions-' + rowIndex + '-' + colIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '-col-actions-' + rowIndex + '-' + colIndex\n \"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"actionMenu\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n class=\"col-default\"\n [attr.data-testid]=\"tableMainId + '-col-string-' + rowIndex + '-' + colIndex\"\n >\n <ng-container\n *skeleton=\"\n isLoading;\n repeat: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.repeat) ||\n 1;\n className: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.className) ||\n 'skeleton-margin-bottom';\n height: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.height) ||\n '20px';\n width: ((column\n | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns) &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable &&\n (column | gtrFetchAttribute: 'skeletonConfigs' : colIndex : columns)\n .mainTable.width) ||\n '100%'\n \"\n >\n <ng-container\n [ngTemplateOutlet]=\"stringColumn\"\n [ngTemplateOutletContext]=\"{ column: column, index: colIndex }\"\n >\n </ng-container>\n </ng-container>\n </div>\n }\n }\n </div>\n </td>\n }\n @if (expandable && expandIconPosition === \"end\") {\n <td\n class=\"gtr-table-expand-col\"\n [attr.data-transaction-name]=\"dataTransactionName + '--column-expand'\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expandToggle\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n ></ng-container>\n </td>\n }\n </tr>\n @if (expandable && isExpanded(row)) {\n <tr\n class=\"gtr-table-detail-row\"\n [attr.data-transaction-name]=\"dataTransactionName + '--detail-row-' + rowIndex\"\n >\n <td [attr.colspan]=\"detailColSpan\">\n <div\n class=\"gtr-table-detail-panel\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasExpandComponent(row)) {\n <ng-container\n [gtrTableExpandHost]=\"resolveExpandConfig(row)\"\n [row]=\"row\"\n (detailEvent)=\"onExpandDetailEvent($event)\"\n ></ng-container>\n } @else {\n <div\n class=\"gtr-table-expand-empty\"\n role=\"status\"\n [ngClass]=\"getExpandPanelClass(row)\"\n [ngStyle]=\"getExpandPanelStyle(row)\"\n [attr.data-testid]=\"tableMainId + '-expand-empty-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-empty'\"\n >\n No addition information available\n </div>\n }\n </div>\n </td>\n </tr>\n }\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 #expandToggle let-row=\"row\" let-rowIndex=\"rowIndex\">\n @if (isRowExpandable(row)) {\n <button\n type=\"button\"\n class=\"gtr-table-expand-toggle\"\n [class.gtr-table-expand-toggle--open]=\"isExpanded(row)\"\n [id]=\"tableMainId + '-expand-toggle-' + rowIndex\"\n [attr.data-testid]=\"tableMainId + '-expand-toggle-' + rowIndex\"\n [attr.data-transaction-name]=\"dataTransactionName + '--expand-toggle-' + rowIndex\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n [attr.aria-label]=\"isExpanded(row) ? 'Collapse row' : 'Expand row'\"\n (click)=\"onExpandToggle(row, $event)\"\n >\n <gtr-icon\n name=\"chevron-down\"\n [size]=\"16\"\n [color]=\"isExpanded(row) ? 'var(--primary-color, #00599c)' : 'currentColor'\"\n [dataTransactionName]=\"dataTransactionName + '--expand-icon'\"\n ></gtr-icon>\n </button>\n }\n</ng-template>\n\n<ng-template #other>\n <div class=\"gtr-no-data-found mt-26\">\n <img src=\"./assets/images/no-data.svg\" />\n </div>\n <div class=\"gtr-no-data-found\">No Records Found</div>\n</ng-template>\n\n<ng-template #stringColumn let-column=\"column\" let-i=\"index\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value }}\">\n {{ column?.value?.length > 30 ? column?.value?.slice(0, 30) + \"....\" : column?.value }}\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <span title=\"{{ column?.value }}\" class=\"wrap\"> {{ column?.value }} </span>\n </div>\n }\n @default {\n <div>{{ column?.value }}</div>\n }\n }\n</ng-template>\n\n<ng-template #linkColumn let-column=\"data\" let-i=\"index\" let-row=\"row\">\n @switch (column.value?.type) {\n @case (\"external\") {\n <div title=\"{{ column?.value?.text }}\">\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column?.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [href]=\"column.value?.link\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n class=\"link wrap\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [href]=\"column.value?.link\"\n [target]=\"column?.value?.target || '_blank'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n </div>\n }\n @case (\"custom\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link-custom'\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n @switch (column | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div title=\"{{ column?.value?.text }}\">\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column?.value?.link\"\n >{{\n column?.value?.text?.length > 30\n ? column?.value?.text?.slice(0, 30) + \"....\"\n : column?.value?.text\n }}</a\n >\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <a\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n [routerLink]=\"column.value?.link\"\n class=\"link wrap\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n @default {\n <div>\n <a\n class=\"link\"\n [style.color]=\"column.value?.color\"\n [class.disabled]=\"column.value?.disabled\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-link'\"\n routerLink=\"{{ column.value?.link }}\"\n >{{ column?.value?.text }}</a\n >\n </div>\n }\n }\n }\n }\n</ng-template>\n\n<ng-template #actionMenu let-row=\"row\" let-column=\"column\" let-i=\"index\">\n <div [class]=\"(column | gtrFetchAttribute: 'align' : i : columns) + ' action-menu'\">\n @for (action of column.actions; track actionIndex; let actionIndex = $index) {\n <span class=\"gtr-data-label\">\n @if (!action.hide) {\n @switch (action.type) {\n @case (\"button\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrButton\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"icon\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrIcon\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"dropdown\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrDropdown\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"input\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrInput\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"textarea\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @case (\"toggle\") {\n <ng-container\n [ngTemplateOutlet]=\"gtrTextarea\"\n [ngTemplateOutletContext]=\"{ row: row, action: action, index: actionIndex }\"\n >\n </ng-container>\n }\n @default {\n <div\n [id]=\"tableMainId + '-col-action-default-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-default-' + actionIndex\"\n [attr.data-transaction-name]=\"\n dataTransactionName + '--col-action-default-' + actionIndex\n \"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n {{ action.name }}\n </div>\n }\n }\n }\n </span>\n }\n </div>\n</ng-template>\n\n<ng-template #statusColumn let-columnAttributes=\"columnAttributes\" let-i=\"index\" let-data=\"data\">\n <gtr-badge\n type=\"pill\"\n [positionProperty]=\"{ align: (columnAttributes | gtrFetchAttribute: 'align' : i : columns) }\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-status-badge-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-status-badge-' + i\"\n [color]=\"columnAttributes | gtrFetchAttribute: 'color' : i : columns\"\n >{{ data }}</gtr-badge\n >\n</ng-template>\n\n<ng-template #innerHTMLColumn let-data=\"data\" let-i=\"index\">\n @switch (data | gtrFetchAttribute: \"wrap\" : i : columns) {\n @case (\"TRUNCATE\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"WRAP\") {\n <div>\n <div [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @case (\"INNERHTMLWRAP\") {\n <div>\n <div class=\"wrap-content\" [innerHTML]=\"data?.value\"></div>\n </div>\n }\n @default {\n <div [innerHTML]=\"data?.value\"></div>\n }\n }\n</ng-template>\n\n<ng-template #gtrButton let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <div class=\"gtr-table-buttons\">\n <gtr-button\n [id]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-btn-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-btn-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-btn-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >{{ action.name }}\n </gtr-button>\n </div>\n</ng-template>\n\n<ng-template #gtrIcon let-row=\"row\" let-action=\"action\" let-i=\"index\">\n @if (action.link) {\n <a\n [href]=\"action.link\"\n class=\"action-link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n } @else {\n <gtr-icon\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n (click)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n }\n</ng-template>\n\n<ng-template #gtrInput let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <a\n class=\"table-action-link\"\n [id]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-icon-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-icon-' + i\"\n [href]=\"action.link\"\n (click)=\"\n $event.preventDefault(); $event.stopPropagation(); actionDone($event, row['id'], action)\n \"\n >\n <gtr-icon\n [dataTransactionName]=\"dataTransactionName + '--col-action-icon-' + i\"\n [size]=\"action.size\"\n [name]=\"action.icon\"\n [color]=\"action.color\"\n ></gtr-icon>\n </a>\n</ng-template>\n\n<ng-template #gtrTextarea let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <textarea\n [placeholder]=\"action.name\"\n [id]=\"tableMainId + '-col-action-textarea-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-textarea-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-textarea-' + i\"\n (input)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n ></textarea>\n</ng-template>\n\n<ng-template #gtrDropdown let-row=\"row\" let-action=\"action\" let-i=\"index\">\n <select\n [id]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-testid]=\"tableMainId + '-col-action-select-' + i\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-action-select-' + i\"\n (change)=\"$event.stopPropagation(); actionDone($event, row['id'], action)\"\n >\n <option value=\"\">Select</option>\n <option value=\"1\">Yes</option>\n <option value=\"2\">No</option>\n </select>\n</ng-template>\n\n<ng-template #gtrCheckbox let-row=\"row\">\n <gtr-checkbox\n [checked]=\"!!row?.isSelected\"\n [id]=\"tableMainId + '-col-selection'\"\n [dataTransactionName]=\"dataTransactionName + '--col-selection'\"\n [attr.data-transaction-name]=\"dataTransactionName + '--col-selection'\"\n [attr.data-testid]=\"tableMainId + '-col-selection'\"\n (selectionChanged)=\"selectionDone($event, row)\"\n ></gtr-checkbox>\n</ng-template>\n", styles: [":root{--gtr-color-base-white-100: #ffffff;--gtr-color-base-black-20: rgba(0, 0, 0, .2);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gray-shades-80: rgba(0, 0, 0, .8);--gtr-table-component-table-hover-bg: rgba(0, 96, 194, .05);--gtr-table-component-table-hover-color: #000000;--gray-shades-20: rgba(0, 0, 0, .2);--gray-shades-10: rgba(0, 0, 0, .1);display:block;width:100%;--gtr-disabled-60: rgba(0, 0, 0, .6)}.gtr-no-data-found{display:flex;gap:10px;align-items:center;justify-content:center}.gtr-no-data-found img{width:60px}.gtr-table .mt-26{margin-top:26px}.gtr-table td .link{color:#00599ccc!important;text-decoration:underline!important;font-size:15px!important}.gtr-table td .link:hover{color:#00599ccc!important;text-decoration:underline!important}.gtr-table td .link.disabled,.gtr-table td .disabled{pointer-events:none;color:var(--gtr-disabled-60)!important;cursor:not-allowed;text-decoration:none!important}.gtr-table{width:100%}.gtr-table .hide{display:none!important}.gtr-table .gtr-header-label{padding:0 10px;white-space:pre}.gtr-table .gtr-data-label{padding:0 10px 0 14px}.gtr-table .gtr-header-sorting-wrapper{position:absolute;right:0;top:50%;transform:translateY(-50%)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;background-position:center;transform:rotate(0)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-up.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down:after{display:block;content:\"\";background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M14 11.25L9.5 6.75L5 11.25\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A');background-position:center;background-repeat:no-repeat;width:15px;height:12px;padding:6px;cursor:pointer;transform:rotate(180deg)}.gtr-table .gtr-header-sorting-wrapper .gtr-sorting-arrow-down.active:after{background-position:center;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%234B465C\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A<path d=\"M13.5 11.25L9 6.75L4.5 11.25\" stroke=\"%235D596D\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>%0A</svg>%0A')}.gtr-table table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}.gtr-table td,.gtr-table th{text-align:left;padding:10px;position:relative;white-space:pre;min-width:100px;max-width:700px}.gtr-table td :has(.WRAP){max-width:300px}.gtr-table th :has(.WRAP){max-width:300px}.gtr-table .split-heading{word-break:break-word;white-space:normal;width:100%;display:inline-block}.gtr-table .wrap-content{display:inline-block;min-width:200px;white-space:normal}.gtr-table .wrap{word-break:break-word;white-space:normal}.gtr-table th:has(gtr-checkbox){min-width:auto!important}.gtr-table td:has(gtr-checkbox){min-width:auto!important}.gtr-table .overflow-auto{overflow:auto}.gtr-table th{border-top:solid 1px var(--gtr-color-base-black-20)!important;border-bottom:solid 1px var(--gtr-color-base-black-20)!important;color:var(--primary-color);font-weight:600;font-size:13px;text-transform:uppercase}.gtr-table tr{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr:hover{background-color:var(--gtr-table-component-table-hover-bg);color:var(--gtr-table-component-table-hover-color);cursor:pointer}.gtr-table tr:last-child{border-bottom:none!important}.gtr-table td{font-size:15px}.gtr-table .word-wrap{word-break:break-word;overflow:auto;white-space:initial}.gtr-table th.left,.gtr-table td.left{text-align:left}.gtr-table th.right,.gtr-table td.right{text-align:right}.gtr-table th.center,.gtr-table td.center{text-align:center}.gtr-table .action-menu>*{margin:10px 10px 10px 0;vertical-align:middle;cursor:pointer}.gtr-table .action-menu .table-action-link{color:var(--icon-color);text-decoration:none}.gtr-table .action-menu .gtr-data-label{display:inline-flex;align-items:center;gap:10px;line-height:0;margin-right:0!important}.gtr-table .action-menu>*:last-child{margin:10px 0}.gtr-table th.gtr-table-expand-col,.gtr-table td.gtr-table-expand-col{min-width:40px!important;max-width:48px;width:40px;padding:10px 4px;text-align:center;white-space:nowrap;vertical-align:middle}.gtr-table .gtr-table-expand-toggle{display:inline-flex;align-items:center;justify-content:center;padding:4px;margin:0;border:none;background:transparent;cursor:pointer;color:var(--gray-shades-80, rgba(0, 0, 0, .8));line-height:0;border-radius:4px;transition:color .15s ease}.gtr-table .gtr-table-expand-toggle .gtr-icon{display:inline-block;transition:transform .2s ease}.gtr-table .gtr-table-expand-toggle:hover{background-color:var(--gtr-table-component-table-hover-bg)}.gtr-table .gtr-table-expand-toggle--open{color:var(--primary-color, #00599c)}.gtr-table .gtr-table-expand-toggle--open gtr-icon,.gtr-table .gtr-table-expand-toggle--open .gtr-icon{color:var(--primary-color, #00599c)!important;transform:rotate(180deg)}.gtr-table tr.gtr-table-row--expandable:focus-visible{outline:2px solid var(--primary-color, #00599c);outline-offset:-2px}.gtr-table tr.gtr-table-detail-row{border-bottom:solid 1px var(--gtr-color-base-black-20)!important}.gtr-table tr.gtr-table-detail-row:hover{background-color:transparent;color:inherit;cursor:default}.gtr-table tr.gtr-table-detail-row>td{padding:0;white-space:normal;min-width:0;max-width:none;vertical-align:top}.gtr-table .gtr-table-detail-panel{padding:16px 20px 20px;background-color:var(--gtr-color-base-white-100, #ffffff);white-space:normal}.gtr-table .gtr-table-expand-empty{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 16px;border:1px dashed rgba(0,0,0,.2);border-radius:4px;background-color:#00000005;color:#0000008c;font-family:Roboto,Arial,sans-serif;font-size:14px;font-weight:400;text-align:center}\n"] }]
9521
10018
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { dynamicHosts: [{
9522
10019
  type: ViewChildren,
9523
10020
  args: [DynamicHostDirective]
@@ -9539,6 +10036,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9539
10036
  type: Input
9540
10037
  }], data: [{
9541
10038
  type: Input
10039
+ }], expandable: [{
10040
+ type: Input
10041
+ }], expandMode: [{
10042
+ type: Input
10043
+ }], expandIconPosition: [{
10044
+ type: Input
10045
+ }], expandConfig: [{
10046
+ type: Input
10047
+ }], rowExpandable: [{
10048
+ type: Input
9542
10049
  }], onSelection: [{
9543
10050
  type: Output
9544
10051
  }], onAction: [{
@@ -9547,6 +10054,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9547
10054
  type: Output
9548
10055
  }], onSort: [{
9549
10056
  type: Output
10057
+ }], expandedChange: [{
10058
+ type: Output
10059
+ }], expandDetailEvent: [{
10060
+ type: Output
9550
10061
  }] } });
9551
10062
 
9552
10063
  class GtrTableComponent {
@@ -9591,6 +10102,18 @@ class GtrTableComponent {
9591
10102
  * Table data
9592
10103
  */
9593
10104
  this.data = [];
10105
+ /**
10106
+ * Enables optional expandable detail rows on the desktop table. Default off.
10107
+ */
10108
+ this.expandable = false;
10109
+ /**
10110
+ * single: opening one row collapses others. multiple: several rows can stay open.
10111
+ */
10112
+ this.expandMode = 'single';
10113
+ /**
10114
+ * start: chevron before selection/data. end: chevron after data columns.
10115
+ */
10116
+ this.expandIconPosition = 'start';
9594
10117
  /**
9595
10118
  * The selection changed eventemitter
9596
10119
  * @default '{ value: any; all: boolean }'
@@ -9609,6 +10132,14 @@ class GtrTableComponent {
9609
10132
  * Sorting eventemitter
9610
10133
  */
9611
10134
  this.onSort = new EventEmitter();
10135
+ /**
10136
+ * Emitted when a detail panel is expanded or collapsed (desktop table).
10137
+ */
10138
+ this.expandedChange = new EventEmitter();
10139
+ /**
10140
+ * Typed events from expanded detail component outputs.
10141
+ */
10142
+ this.expandDetailEvent = new EventEmitter();
9612
10143
  }
9613
10144
  /**
9614
10145
  * To check screen size
@@ -9637,15 +10168,21 @@ class GtrTableComponent {
9637
10168
  sorting(ev) {
9638
10169
  this.onSort.emit(ev);
9639
10170
  }
10171
+ onExpandedChange(ev) {
10172
+ this.expandedChange.emit(ev);
10173
+ }
10174
+ onExpandDetailEvent(ev) {
10175
+ this.expandDetailEvent.emit(ev);
10176
+ }
9640
10177
  ngOnDestroy() { }
9641
10178
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9642
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableComponent, isStandalone: true, selector: "gtr-table", inputs: { dataTransactionName: "dataTransactionName", isResponsive: "isResponsive", loading: "loading", enableSelection: "enableSelection", tableMainId: "tableMainId", tableResponsiveId: "tableResponsiveId", columns: "columns", data: "data" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
10179
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.22", type: GtrTableComponent, isStandalone: true, selector: "gtr-table", inputs: { dataTransactionName: "dataTransactionName", isResponsive: "isResponsive", loading: "loading", enableSelection: "enableSelection", tableMainId: "tableMainId", tableResponsiveId: "tableResponsiveId", columns: "columns", data: "data", expandable: "expandable", expandMode: "expandMode", expandIconPosition: "expandIconPosition", expandConfig: "expandConfig", rowExpandable: "rowExpandable" }, outputs: { onSelection: "onSelection", onAction: "onAction", handleEvent: "handleEvent", onSort: "onSort", expandedChange: "expandedChange", expandDetailEvent: "expandDetailEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
9643
10180
  {
9644
10181
  provide: NG_VALUE_ACCESSOR,
9645
10182
  useExisting: forwardRef((() => GtrTableComponent)),
9646
10183
  multi: true,
9647
10184
  },
9648
- ], exportAs: ["gtrTable"], ngImport: i0, template: "@if (switchState) {\n<gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" />\n}\n@if (!switchState) {\n<gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" [enableSelection]=\"this.enableSelection\" />\n}\n", styles: [":host{background:#fff;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eee}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: GtrTableResponsiveComponent, selector: "gtr-table-responsive", inputs: ["isLoading", "enableSelection", "columns", "data", "tableResponsiveId", "dataTransactionName"], outputs: ["onSelection", "onAction", "handleEvent", "onSort"], exportAs: ["gtrTableResponsive"] }, { kind: "component", type: GtrTableMainComponent, selector: "gtr-table-main", inputs: ["dataTransactionName", "enableSelection", "isLoading", "columns", "tableMainId", "data"], outputs: ["onSelection", "onAction", "handleEvent", "onSort"], exportAs: ["gtrTableMain"] }] }); }
10185
+ ], exportAs: ["gtrTable"], ngImport: i0, template: "@if (switchState) {\n <gtr-table-responsive\n [id]=\"tableResponsiveId\"\n [attr.data-testid]=\"tableResponsiveId\"\n [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\"\n (onSelection)=\"this.selectionChange($event)\"\n (onAction)=\"this.actionDone($event)\"\n (expandedChange)=\"onExpandedChange($event)\"\n (expandDetailEvent)=\"onExpandDetailEvent($event)\"\n [data]=\"this.data\"\n [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\"\n [expandable]=\"expandable\"\n [expandMode]=\"expandMode\"\n [expandIconPosition]=\"expandIconPosition\"\n [expandConfig]=\"expandConfig\"\n [rowExpandable]=\"rowExpandable\"\n [dataTransactionName]=\"dataTransactionName + '-table'\"\n />\n}\n@if (!switchState) {\n <gtr-table-main\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\"\n (onSelection)=\"this.selectionChange($event)\"\n (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\"\n (expandedChange)=\"onExpandedChange($event)\"\n (expandDetailEvent)=\"onExpandDetailEvent($event)\"\n [data]=\"this.data\"\n [columns]=\"this.columns\"\n [dataTransactionName]=\"dataTransactionName + '-table'\"\n [enableSelection]=\"this.enableSelection\"\n [expandable]=\"expandable\"\n [expandMode]=\"expandMode\"\n [expandIconPosition]=\"expandIconPosition\"\n [expandConfig]=\"expandConfig\"\n [rowExpandable]=\"rowExpandable\"\n />\n}\n", styles: [":host{background:#fff;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eee}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: GtrTableResponsiveComponent, selector: "gtr-table-responsive", inputs: ["isLoading", "enableSelection", "columns", "data", "expandable", "expandMode", "expandIconPosition", "expandConfig", "rowExpandable", "tableResponsiveId", "dataTransactionName"], outputs: ["onSelection", "onAction", "handleEvent", "onSort", "expandedChange", "expandDetailEvent"], exportAs: ["gtrTableResponsive"] }, { kind: "component", type: GtrTableMainComponent, selector: "gtr-table-main", inputs: ["dataTransactionName", "enableSelection", "isLoading", "columns", "tableMainId", "data", "expandable", "expandMode", "expandIconPosition", "expandConfig", "rowExpandable"], outputs: ["onSelection", "onAction", "handleEvent", "onSort", "expandedChange", "expandDetailEvent"], exportAs: ["gtrTableMain"] }] }); }
9649
10186
  }
9650
10187
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImport: i0, type: GtrTableComponent, decorators: [{
9651
10188
  type: Component,
@@ -9655,7 +10192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9655
10192
  useExisting: forwardRef((() => GtrTableComponent)),
9656
10193
  multi: true,
9657
10194
  },
9658
- ], template: "@if (switchState) {\n<gtr-table-responsive [id]=\"tableResponsiveId\" [attr.data-testid]=\"tableResponsiveId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n [data]=\"this.data\" [columns]=\"this.columns\" [enableSelection]=\"this.enableSelection\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" />\n}\n@if (!switchState) {\n<gtr-table-main [id]=\"tableMainId\" [attr.data-testid]=\"tableMainId\" [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\" (onSelection)=\"this.selectionChange($event)\" (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\" [data]=\"this.data\" [columns]=\"this.columns\"\n [dataTransactionName]=\"dataTransactionName + '-table'\" [enableSelection]=\"this.enableSelection\" />\n}\n", styles: [":host{background:#fff;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eee}\n"] }]
10195
+ ], template: "@if (switchState) {\n <gtr-table-responsive\n [id]=\"tableResponsiveId\"\n [attr.data-testid]=\"tableResponsiveId\"\n [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\"\n (onSelection)=\"this.selectionChange($event)\"\n (onAction)=\"this.actionDone($event)\"\n (expandedChange)=\"onExpandedChange($event)\"\n (expandDetailEvent)=\"onExpandDetailEvent($event)\"\n [data]=\"this.data\"\n [columns]=\"this.columns\"\n [enableSelection]=\"this.enableSelection\"\n [expandable]=\"expandable\"\n [expandMode]=\"expandMode\"\n [expandIconPosition]=\"expandIconPosition\"\n [expandConfig]=\"expandConfig\"\n [rowExpandable]=\"rowExpandable\"\n [dataTransactionName]=\"dataTransactionName + '-table'\"\n />\n}\n@if (!switchState) {\n <gtr-table-main\n [id]=\"tableMainId\"\n [attr.data-testid]=\"tableMainId\"\n [isLoading]=\"loading\"\n (handleEvent)=\"fetchEvent($event)\"\n (onSelection)=\"this.selectionChange($event)\"\n (onAction)=\"this.actionDone($event)\"\n (onSort)=\"this.sorting($event)\"\n (expandedChange)=\"onExpandedChange($event)\"\n (expandDetailEvent)=\"onExpandDetailEvent($event)\"\n [data]=\"this.data\"\n [columns]=\"this.columns\"\n [dataTransactionName]=\"dataTransactionName + '-table'\"\n [enableSelection]=\"this.enableSelection\"\n [expandable]=\"expandable\"\n [expandMode]=\"expandMode\"\n [expandIconPosition]=\"expandIconPosition\"\n [expandConfig]=\"expandConfig\"\n [rowExpandable]=\"rowExpandable\"\n />\n}\n", styles: [":host{background:#fff;padding:10px;display:block;overflow:auto;overflow-y:auto}:host::-webkit-scrollbar{height:7px;background-color:transparent!important;border-radius:15px!important}:host::-webkit-scrollbar-track{-webkit-box-shadow:none;border-radius:15px}:host::-webkit-scrollbar-thumb{border-radius:15px;-webkit-box-shadow:none;background:#eee}\n"] }]
9659
10196
  }], ctorParameters: () => [], propDecorators: { dataTransactionName: [{
9660
10197
  type: Input
9661
10198
  }], isResponsive: [{
@@ -9672,6 +10209,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9672
10209
  type: Input
9673
10210
  }], data: [{
9674
10211
  type: Input
10212
+ }], expandable: [{
10213
+ type: Input
10214
+ }], expandMode: [{
10215
+ type: Input
10216
+ }], expandIconPosition: [{
10217
+ type: Input
10218
+ }], expandConfig: [{
10219
+ type: Input
10220
+ }], rowExpandable: [{
10221
+ type: Input
9675
10222
  }], onSelection: [{
9676
10223
  type: Output
9677
10224
  }], onAction: [{
@@ -9680,6 +10227,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.22", ngImpo
9680
10227
  type: Output
9681
10228
  }], onSort: [{
9682
10229
  type: Output
10230
+ }], expandedChange: [{
10231
+ type: Output
10232
+ }], expandDetailEvent: [{
10233
+ type: Output
9683
10234
  }], onResize: [{
9684
10235
  type: HostListener,
9685
10236
  args: ['window:resize', ['$event']]
@@ -10267,5 +10818,5 @@ function debounce(func, timeout) {
10267
10818
  * Generated bundle index. Do not edit.
10268
10819
  */
10269
10820
 
10270
- export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
10821
+ export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, DynamicComponentRenderer, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
10271
10822
  //# sourceMappingURL=gettrx-core-components-angular.mjs.map